@meantjs/profile 0.1.0 → 0.2.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/CHANGELOG.md +23 -0
- package/README.md +31 -2
- package/data/packs/erc20.profile.json +221 -0
- package/data/profile-v0.schema.json +158 -6
- package/data/profile-v0.validate.mjs +4 -1
- package/package.json +8 -1
- package/src/abi-iface.mjs +112 -0
- package/src/abi-pack.mjs +114 -0
- package/src/abi.mjs +672 -0
- package/src/analyze.mjs +74 -28
- package/src/browser.d.mts +8 -4
- package/src/browser.mjs +2 -0
- package/src/checks.mjs +83 -10
- package/src/cli.mjs +12 -6
- package/src/evm.d.mts +86 -0
- package/src/evm.mjs +28 -0
- package/src/keccak.mjs +108 -0
- package/src/resolve.mjs +58 -5
- package/src/resolved.mjs +7 -3
- package/src/validate.mjs +20 -4
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// Generated by packages/resolver/scripts/data.mjs from spec/profile-v0.schema.json with ajv 8.18.0 (standalone code).
|
|
2
2
|
// Do not edit: run `npm run data -w packages/resolver`. The validator generates no code at run time.
|
|
3
|
-
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:candid-profile:v0:schema","title":"Candid Profile v0","description":"Meaning for positions in a Candid interface (units, formats, intent, risk, idempotency, outcome classes). Normative prose: docs/profile-v0.md. Structural checks only; address resolution and tag applicability are checked by scripts/validate.mjs.","type":"object","required":["format","format_version","kind","name","origin","binds","annotations"],"additionalProperties":false,"properties":{"format":{"const":"candid-profile"},"format_version":{"const":0},"kind":{"enum":["canister","pack"]},"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"origin":{"enum":["author","third_party","pack","inferred"]},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$","default":"en"},"description":{"type":"string"},"binds":{"type":"object"},"annotations":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/annotation"}}},"allOf":[{"if":{"properties":{"kind":{"const":"pack"}}},"then":{"properties":{"origin":{"const":"pack"},"binds":{"$ref":"#/$defs/pack_binds"}}}},{"if":{"properties":{"kind":{"const":"canister"}}},"then":{"properties":{"origin":{"enum":["author","third_party","inferred"]},"binds":{"$ref":"#/$defs/canister_binds"}}}}],"$defs":{"pack_binds":{"type":"object","required":["standard","requires"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."}}},"canister_binds":{"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}},"value_address":{"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},"method_address":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"relpath":{"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1},"int_string":{"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"},"dynamic":{"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}},"time_unit":{"enum":["ns","us","ms","s"]},"outcome_class":{"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]},"annotation":{"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["intent","effect","idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]},"args_empty":{"type":"object","additionalProperties":false,"maxProperties":0},"args_amount":{"type":"object","required":["decimals"],"additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]}}},"args_timestamp":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"}}},"args_duration":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}},"args_account":{"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}},"args_bytes":{"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}},"args_text":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}},"args_range":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}},"args_default":{"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}},"args_describe":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}},"args_ui":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}},"args_intent":{"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}},"args_effect":{"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"}}},"args_idempotency":{"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}},"args_outcome":{"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}},"args_list":{"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}},"set_name":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."},"args_names":{"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}},"args_named":{"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}}}};const schema32 = {"type":"object","required":["standard","requires"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."}}};const schema33 = {"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}};const pattern4 = new RegExp("^[A-Z]+-[0-9]+$", "u");const pattern5 = new RegExp("^https://", "u");const pattern6 = new RegExp("^candid-core:interface:v1:sha256:[0-9a-f]{64}$", "u");const pattern7 = new RegExp("^candid-core:contract:v1:sha256:[0-9a-f]{64}$", "u");const pattern8 = new RegExp("^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$", "u");const pattern9 = new RegExp("^[a-z0-9][a-z0-9_.-]{0,63}$", "u");const pattern10 = new RegExp("^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$", "u");const func1 = ucs2length;const func2 = Object.prototype.hasOwnProperty;const schema34 = {"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["intent","effect","idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]};const schema35 = {"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"};const schema36 = {"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"};const schema46 = {"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}};const schema47 = {"type":"object","additionalProperties":false,"maxProperties":0};const schema48 = {"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}};const schema49 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}};const schema55 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}};const schema56 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}};const schema57 = {"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}};const schema58 = {"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"}}};const pattern11 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$", "u");const pattern12 = new RegExp("^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");const schema39 = {"type":"object","required":["decimals"],"additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]}}};const schema40 = {"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}};const pattern15 = new RegExp("^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$", "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.decimals === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "decimals"},message:"must have required property '"+"decimals"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "decimals") || (key0 === "symbol"))){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.decimals !== undefined){let data0 = data.decimals;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err2 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 255 || isNaN(data0)){const err3 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/maximum",keyword:"maximum",params:{comparison: "<=", limit: 255},message:"must be <= 255"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data0 < 0 || isNaN(data0)){const err4 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err5 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err6 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern15.test(data1)){const err7 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err10 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.symbol !== undefined){let data2 = data.symbol;const _errs13 = errors;let valid4 = false;let passing1 = null;const _errs14 = errors;if(typeof data2 === "string"){if(func1(data2) > 32){const err11 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(func1(data2) < 1){const err12 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs14 === errors;if(_valid1){valid4 = true;passing1 = 0;}const _errs16 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.from === undefined){const err14 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}for(const key2 in data2){if(!(key2 === "from")){const err15 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.from !== undefined){let data3 = data2.from;if(typeof data3 === "string"){if(!pattern15.test(data3)){const err16 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid1 = _errs16 === errors;if(_valid1 && valid4){valid4 = false;passing1 = [passing1, 1];}else {if(_valid1){valid4 = true;passing1 = 1;}}if(!valid4){const err19 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}}else {const err20 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}validate22.errors = vErrors;return errors === 0;}validate22.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema42 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"}}};const schema43 = {"enum":["ns","us","ms","s"]};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "unit") || (key0 === "epoch"))){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema43.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.epoch !== undefined){if("unix" !== data.epoch){const err3 = {instancePath:instancePath+"/epoch",schemaPath:"#/properties/epoch/const",keyword:"const",params:{allowedValue: "unix"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate24.errors = vErrors;return errors === 0;}validate24.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema44 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}};function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate26.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "unit")){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema43.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}else {const err3 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}validate26.errors = vErrors;return errors === 0;}validate26.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema50 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}};const schema51 = {"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"};const pattern17 = new RegExp("^(0|-?[1-9][0-9]*)$", "u");function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((((key0 === "min") || (key0 === "max")) || (key0 === "min_len")) || (key0 === "max_len"))){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.min !== undefined){let data0 = data.min;if(typeof data0 === "string"){if(!pattern17.test(data0)){const err2 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.max !== undefined){let data1 = data.max;if(typeof data1 === "string"){if(!pattern17.test(data1)){const err4 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.min_len !== undefined){let data2 = data.min_len;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){const err7 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}if(data.max_len !== undefined){let data3 = data.max_len;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err8 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){const err9 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};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++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema53 = {"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.mode === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "value") || (key0 === "mode"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.value !== undefined){let data0 = data.value;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(typeof data0 !== "string"){const err3 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err4 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err5 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern15.test(data1)){const err6 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err9 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.mode !== undefined){let data2 = data.mode;if(!((data2 === "auto") || (data2 === "suggest"))){const err10 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues: schema53.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema59 = {"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}};const schema60 = {"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1};const pattern20 = new RegExp("^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate32.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.mode === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.stamp === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stamp"},message:"must have required property '"+"stamp"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "mode") || (key0 === "stamp"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.mode !== undefined){if("replay_same_payload" !== data.mode){const err3 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/const",keyword:"const",params:{allowedValue: "replay_same_payload"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.stamp !== undefined){let data1 = data.stamp;if(typeof data1 === "string"){if(func1(data1) < 1){const err4 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern20.test(data1)){const err5 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate32.errors = vErrors;return errors === 0;}validate32.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema61 = {"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}};const schema63 = {"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "classes") || (key0 === "default"))){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.classes !== undefined){let data0 = data.classes;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(Object.keys(data0).length < 1){const err2 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key1 in data0){const _errs4 = errors;if(typeof key1 === "string"){if(func1(key1) < 1){const err3 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key1};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!pattern20.test(key1)){const err4 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs4 === errors;if(!valid1){const err6 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}for(const key2 in data0){let data1 = data0[key2];if(!((((((data1 === "success") || (data1 === "already_done")) || (data1 === "retry_same")) || (data1 === "retry_new")) || (data1 === "fix_input")) || (data1 === "fail"))){const err7 = {instancePath:instancePath+"/classes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema63.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.default !== undefined){let data2 = data.default;if(!((((((data2 === "success") || (data2 === "already_done")) || (data2 === "retry_same")) || (data2 === "retry_new")) || (data2 === "fix_input")) || (data2 === "fail"))){const err9 = {instancePath:instancePath+"/default",schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema63.enum},message:"must be equal to one of the allowed values"};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++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema65 = {"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.cursor === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "cursor"},message:"must have required property '"+"cursor"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.next === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "next"},message:"must have required property '"+"next"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.items === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "cursor") || (key0 === "next")) || (key0 === "items"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.cursor !== undefined){let data0 = data.cursor;if(typeof data0 === "string"){if(func1(data0) < 1){const err4 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern20.test(data0)){const err5 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.next !== undefined){let data1 = data.next;if(typeof data1 === "string"){if(func1(data1) < 1){const err7 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/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(!pattern20.test(data1)){const err8 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.items !== undefined){let data2 = data.items;if(typeof data2 === "string"){if(func1(data2) < 1){const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(!pattern20.test(data2)){const err11 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate36.errors = vErrors;return errors === 0;}validate36.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema69 = {"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}};const schema70 = {"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."};const pattern25 = new RegExp("^[a-z][a-z0-9_]*$", "u");function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate38.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};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.value === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((key0 === "set") || (key0 === "items")) || (key0 === "name")) || (key0 === "value")) || (key0 === "show")) || (key0 === "kind"))){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.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err5 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(!pattern25.test(data0)){const err6 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.items !== undefined){let data1 = data.items;if(typeof data1 === "string"){if(func1(data1) < 1){const err8 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(!pattern20.test(data1)){const err9 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.name !== undefined){let data2 = data.name;if(typeof data2 === "string"){if(func1(data2) < 1){const err11 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!pattern20.test(data2)){const err12 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.value !== undefined){let data3 = data.value;if(typeof data3 === "string"){if(func1(data3) < 1){const err14 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/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(!pattern20.test(data3)){const err15 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.show !== undefined){let data4 = data.show;if(typeof data4 === "string"){if(func1(data4) < 1){const err17 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(!pattern20.test(data4)){const err18 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.kind !== undefined){let data5 = data.kind;if(typeof data5 === "string"){if(func1(data5) < 1){const err20 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/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(!pattern20.test(data5)){const err21 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}validate38.errors = vErrors;return errors === 0;}validate38.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema76 = {"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "set") || (key0 === "by"))){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.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err2 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!pattern25.test(data0)){const err3 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.by !== undefined){let data1 = data.by;if(!((data1 === "value") || (data1 === "show"))){const err5 = {instancePath:instancePath+"/by",schemaPath:"#/properties/by/enum",keyword:"enum",params:{allowedValues: schema76.properties.by.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate40.errors = vErrors;return errors === 0;}validate40.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 _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data0 = data.tag;if(!((((((data0 === "intent") || (data0 === "effect")) || (data0 === "idempotency")) || (data0 === "outcome")) || (data0 === "list")) || (data0 === "names"))){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data1 = data.at;if(typeof data1 === "string"){if(!pattern11.test(data1)){const err1 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}else {const err2 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.at = true;props0.tag = true;}}if(!valid1){const err3 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const _errs10 = errors;let valid5 = true;const _errs11 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data2 = data.tag;if(!(((((((((((data2 === "amount") || (data2 === "timestamp")) || (data2 === "duration")) || (data2 === "account")) || (data2 === "subaccount")) || (data2 === "bytes")) || (data2 === "text")) || (data2 === "range")) || (data2 === "default")) || (data2 === "ui")) || (data2 === "named"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}var _valid1 = _errs11 === errors;errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}if(_valid1){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data3 = data.at;if(typeof data3 === "string"){if(!pattern12.test(data3)){const err5 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}var _valid1 = _errs13 === errors;valid5 = _valid1;if(valid5){var props1 = {};props1.at = true;props1.tag = true;}}if(!valid5){const err7 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs18 = errors;let valid9 = true;const _errs19 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}var _valid2 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid2){const _errs21 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data5 = data.at;const _errs23 = errors;let valid12 = false;const _errs24 = errors;if(typeof data5 === "string"){if(!pattern12.test(data5)){const err9 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs24 === errors;valid12 = valid12 || _valid3;const _errs27 = errors;if(typeof data5 === "string"){if(!pattern11.test(data5)){const err11 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid3 = _errs27 === errors;valid12 = valid12 || _valid3;if(!valid12){const err13 = {instancePath:instancePath+"/at",schemaPath:"#/allOf/2/then/properties/at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}}}var _valid2 = _errs21 === errors;valid9 = _valid2;if(valid9){var props2 = {};props2.at = true;props2.tag = true;}}if(!valid9){const err14 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}const _errs31 = errors;let valid15 = true;const _errs32 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("amount" !== data.tag){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}var _valid4 = _errs32 === errors;errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}if(_valid4){const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate22(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}}var _valid4 = _errs34 === errors;valid15 = _valid4;if(valid15){var props3 = {};props3.args = true;props3.tag = true;}}if(!valid15){const err16 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(props0 !== true && props3 !== undefined){if(props3 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props3);}}const _errs37 = errors;let valid18 = true;const _errs38 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("timestamp" !== data.tag){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}var _valid5 = _errs38 === errors;errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}if(_valid5){const _errs40 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate24(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}var _valid5 = _errs40 === errors;valid18 = _valid5;if(valid18){var props4 = {};props4.args = true;props4.tag = true;}}if(!valid18){const err18 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(props0 !== true && props4 !== undefined){if(props4 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props4);}}const _errs43 = errors;let valid21 = true;const _errs44 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("duration" !== data.tag){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid6 = _errs44 === errors;errors = _errs43;if(vErrors !== null){if(_errs43){vErrors.length = _errs43;}else {vErrors = null;}}if(_valid6){const _errs46 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate26(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}}var _valid6 = _errs46 === errors;valid21 = _valid6;if(valid21){var props5 = {};props5.args = true;props5.tag = true;}}if(!valid21){const err20 = {instancePath,schemaPath:"#/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(props0 !== true && props5 !== undefined){if(props5 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props5);}}const _errs49 = errors;let valid24 = true;const _errs50 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("account" !== data.tag){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var _valid7 = _errs50 === errors;errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}if(_valid7){const _errs52 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data13 = data.args;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){for(const key0 in data13){if(!(key0 === "encoding")){const err22 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.encoding !== undefined){if("icrc1" !== data13.encoding){const err23 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_account/properties/encoding/const",keyword:"const",params:{allowedValue: "icrc1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid7 = _errs52 === errors;valid24 = _valid7;if(valid24){var props6 = {};props6.args = true;props6.tag = true;}}if(!valid24){const err25 = {instancePath,schemaPath:"#/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(props0 !== true && props6 !== undefined){if(props6 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props6);}}const _errs59 = errors;let valid29 = true;const _errs60 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("subaccount" !== data.tag){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}var _valid8 = _errs60 === errors;errors = _errs59;if(vErrors !== null){if(_errs59){vErrors.length = _errs59;}else {vErrors = null;}}if(_valid8){const _errs62 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data16 = data.args;if(data16 && typeof data16 == "object" && !Array.isArray(data16)){if(Object.keys(data16).length > 0){const err27 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/maxProperties",keyword:"maxProperties",params:{limit: 0},message:"must NOT have more than 0 properties"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}for(const key1 in data16){const err28 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var _valid8 = _errs62 === errors;valid29 = _valid8;if(valid29){var props7 = {};props7.args = true;props7.tag = true;}}if(!valid29){const err30 = {instancePath,schemaPath:"#/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(props0 !== true && props7 !== undefined){if(props7 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props7);}}const _errs68 = errors;let valid33 = true;const _errs69 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("bytes" !== data.tag){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid9 = _errs69 === errors;errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}if(_valid9){const _errs71 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data18 = data.args;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(data18.encoding === undefined){const err32 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/required",keyword:"required",params:{missingProperty: "encoding"},message:"must have required property '"+"encoding"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}for(const key2 in data18){if(!((key2 === "encoding") || (key2 === "max_len"))){const err33 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data18.encoding !== undefined){let data19 = data18.encoding;if(!(((data19 === "utf8") || (data19 === "hex")) || (data19 === "base64"))){const err34 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_bytes/properties/encoding/enum",keyword:"enum",params:{allowedValues: schema48.properties.encoding.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data18.max_len !== undefined){let data20 = data18.max_len;if(!(((typeof data20 == "number") && (!(data20 % 1) && !isNaN(data20))) && (isFinite(data20)))){const err35 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if((typeof data20 == "number") && (isFinite(data20))){if(data20 < 0 || isNaN(data20)){const err36 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}}else {const err37 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid9 = _errs71 === errors;valid33 = _valid9;if(valid33){var props8 = {};props8.args = true;props8.tag = true;}}if(!valid33){const err38 = {instancePath,schemaPath:"#/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(props0 !== true && props8 !== undefined){if(props8 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props8);}}const _errs80 = errors;let valid38 = true;const _errs81 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("text" !== data.tag){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid10 = _errs81 === errors;errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}if(_valid10){const _errs83 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data22 = data.args;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err40 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}for(const key3 in data22){if(!(((key3 === "format") || (key3 === "max_len")) || (key3 === "pattern"))){const err41 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data22.format !== undefined){let data23 = data22.format;if(!((((data23 === "plain") || (data23 === "markdown")) || (data23 === "email")) || (data23 === "url"))){const err42 = {instancePath:instancePath+"/args/format",schemaPath:"#/$defs/args_text/properties/format/enum",keyword:"enum",params:{allowedValues: schema49.properties.format.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data22.max_len !== undefined){let data24 = data22.max_len;if(!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))){const err43 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if((typeof data24 == "number") && (isFinite(data24))){if(data24 < 0 || isNaN(data24)){const err44 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}if(data22.pattern !== undefined){if(typeof data22.pattern !== "string"){const err45 = {instancePath:instancePath+"/args/pattern",schemaPath:"#/$defs/args_text/properties/pattern/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}var _valid10 = _errs83 === errors;valid38 = _valid10;if(valid38){var props9 = {};props9.args = true;props9.tag = true;}}if(!valid38){const err47 = {instancePath,schemaPath:"#/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(props0 !== true && props9 !== undefined){if(props9 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props9);}}const _errs94 = errors;let valid43 = true;const _errs95 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("range" !== data.tag){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}var _valid11 = _errs95 === errors;errors = _errs94;if(vErrors !== null){if(_errs94){vErrors.length = _errs94;}else {vErrors = null;}}if(_valid11){const _errs97 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate28(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}}var _valid11 = _errs97 === errors;valid43 = _valid11;if(valid43){var props10 = {};props10.args = true;props10.tag = true;}}if(!valid43){const err49 = {instancePath,schemaPath:"#/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(props0 !== true && props10 !== undefined){if(props10 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props10);}}const _errs100 = errors;let valid46 = true;const _errs101 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("default" !== data.tag){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid12 = _errs101 === errors;errors = _errs100;if(vErrors !== null){if(_errs100){vErrors.length = _errs100;}else {vErrors = null;}}if(_valid12){const _errs103 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate30(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}var _valid12 = _errs103 === errors;valid46 = _valid12;if(valid46){var props11 = {};props11.args = true;props11.tag = true;}}if(!valid46){const err51 = {instancePath,schemaPath:"#/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(props0 !== true && props11 !== undefined){if(props11 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props11);}}const _errs106 = errors;let valid49 = true;const _errs107 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}var _valid13 = _errs107 === errors;errors = _errs106;if(vErrors !== null){if(_errs106){vErrors.length = _errs106;}else {vErrors = null;}}if(_valid13){const _errs109 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data31 = data.args;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err53 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}for(const key4 in data31){if(!((key4 === "label") || (key4 === "help"))){const err54 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func1(data32) > 80){const err55 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(func1(data32) < 1){const err56 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}else {const err57 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data31.help !== undefined){let data33 = data31.help;if(typeof data33 === "string"){if(func1(data33) > 2000){const err58 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/maxLength",keyword:"maxLength",params:{limit: 2000},message:"must NOT have more than 2000 characters"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(func1(data33) < 1){const err59 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}else {const err60 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var _valid13 = _errs109 === errors;valid49 = _valid13;if(valid49){var props12 = {};props12.args = true;props12.tag = true;}}if(!valid49){const err62 = {instancePath,schemaPath:"#/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(props0 !== true && props12 !== undefined){if(props12 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props12);}}const _errs119 = errors;let valid54 = true;const _errs120 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("ui" !== data.tag){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}var _valid14 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid14){const _errs122 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data35 = data.args;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(Object.keys(data35).length < 1){const err64 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}for(const key5 in data35){if(!((((key5 === "order") || (key5 === "group")) || (key5 === "hidden")) || (key5 === "widget"))){const err65 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data35.order !== undefined){let data36 = data35.order;if(!(((typeof data36 == "number") && (!(data36 % 1) && !isNaN(data36))) && (isFinite(data36)))){const err66 = {instancePath:instancePath+"/args/order",schemaPath:"#/$defs/args_ui/properties/order/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data35.group !== undefined){if(typeof data35.group !== "string"){const err67 = {instancePath:instancePath+"/args/group",schemaPath:"#/$defs/args_ui/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data35.hidden !== undefined){if(typeof data35.hidden !== "boolean"){const err68 = {instancePath:instancePath+"/args/hidden",schemaPath:"#/$defs/args_ui/properties/hidden/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data35.widget !== undefined){if(typeof data35.widget !== "string"){const err69 = {instancePath:instancePath+"/args/widget",schemaPath:"#/$defs/args_ui/properties/widget/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}var _valid14 = _errs122 === errors;valid54 = _valid14;if(valid54){var props13 = {};props13.args = true;props13.tag = true;}}if(!valid54){const err71 = {instancePath,schemaPath:"#/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(props0 !== true && props13 !== undefined){if(props13 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props13);}}const _errs136 = errors;let valid59 = true;const _errs137 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("intent" !== data.tag){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}var _valid15 = _errs137 === errors;errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}if(_valid15){const _errs139 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data41 = data.args;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.title === undefined){const err73 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(data41.template === undefined){const err74 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "template"},message:"must have required property '"+"template"+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}for(const key6 in data41){if(!((key6 === "title") || (key6 === "template"))){const err75 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data41.title !== undefined){let data42 = data41.title;if(typeof data42 === "string"){if(func1(data42) > 60){const err76 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/maxLength",keyword:"maxLength",params:{limit: 60},message:"must NOT have more than 60 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(func1(data42) < 1){const err77 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}else {const err78 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data41.template !== undefined){let data43 = data41.template;if(typeof data43 === "string"){if(func1(data43) > 500){const err79 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/maxLength",keyword:"maxLength",params:{limit: 500},message:"must NOT have more than 500 characters"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(func1(data43) < 1){const err80 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}var _valid15 = _errs139 === errors;valid59 = _valid15;if(valid59){var props14 = {};props14.args = true;props14.tag = true;}}if(!valid59){const err83 = {instancePath,schemaPath:"#/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(props0 !== true && props14 !== undefined){if(props14 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props14);}}const _errs149 = errors;let valid64 = true;const _errs150 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("effect" !== data.tag){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}var _valid16 = _errs150 === errors;errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}if(_valid16){const _errs152 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data45 = data.args;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.kind === undefined){const err85 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data45.irreversible === undefined){const err86 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/required",keyword:"required",params:{missingProperty: "irreversible"},message:"must have required property '"+"irreversible"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}for(const key7 in data45){if(!(((key7 === "kind") || (key7 === "irreversible")) || (key7 === "replicated"))){const err87 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data45.kind !== undefined){let data46 = data45.kind;if(!((((((data46 === "read") || (data46 === "write")) || (data46 === "transfer")) || (data46 === "approve")) || (data46 === "admin")) || (data46 === "destroy"))){const err88 = {instancePath:instancePath+"/args/kind",schemaPath:"#/$defs/args_effect/properties/kind/enum",keyword:"enum",params:{allowedValues: schema58.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data45.irreversible !== undefined){if(typeof data45.irreversible !== "boolean"){const err89 = {instancePath:instancePath+"/args/irreversible",schemaPath:"#/$defs/args_effect/properties/irreversible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}if(data45.replicated !== undefined){if(typeof data45.replicated !== "boolean"){const err90 = {instancePath:instancePath+"/args/replicated",schemaPath:"#/$defs/args_effect/properties/replicated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}var _valid16 = _errs152 === errors;valid64 = _valid16;if(valid64){var props15 = {};props15.args = true;props15.tag = true;}}if(!valid64){const err92 = {instancePath,schemaPath:"#/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(props0 !== true && props15 !== undefined){if(props15 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props15);}}const _errs163 = errors;let valid69 = true;const _errs164 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("idempotency" !== data.tag){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}var _valid17 = _errs164 === errors;errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}if(_valid17){const _errs166 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate32(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}}var _valid17 = _errs166 === errors;valid69 = _valid17;if(valid69){var props16 = {};props16.args = true;props16.tag = true;}}if(!valid69){const err94 = {instancePath,schemaPath:"#/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(props0 !== true && props16 !== undefined){if(props16 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props16);}}const _errs169 = errors;let valid72 = true;const _errs170 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("outcome" !== data.tag){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}}var _valid18 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid18){const _errs172 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate34(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}}var _valid18 = _errs172 === errors;valid72 = _valid18;if(valid72){var props17 = {};props17.args = true;props17.tag = true;}}if(!valid72){const err96 = {instancePath,schemaPath:"#/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(props0 !== true && props17 !== undefined){if(props17 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props17);}}const _errs175 = errors;let valid75 = true;const _errs176 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("list" !== data.tag){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}var _valid19 = _errs176 === errors;errors = _errs175;if(vErrors !== null){if(_errs175){vErrors.length = _errs175;}else {vErrors = null;}}if(_valid19){const _errs178 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate36(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}}}var _valid19 = _errs178 === errors;valid75 = _valid19;if(valid75){var props18 = {};props18.args = true;props18.tag = true;}}if(!valid75){const err98 = {instancePath,schemaPath:"#/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(props0 !== true && props18 !== undefined){if(props18 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props18);}}const _errs181 = errors;let valid78 = true;const _errs182 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("names" !== data.tag){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}var _valid20 = _errs182 === errors;errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}if(_valid20){const _errs184 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate38(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}}}var _valid20 = _errs184 === errors;valid78 = _valid20;if(valid78){var props19 = {};props19.args = true;props19.tag = true;}}if(!valid78){const err100 = {instancePath,schemaPath:"#/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(props0 !== true && props19 !== undefined){if(props19 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props19);}}const _errs187 = errors;let valid81 = true;const _errs188 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("named" !== data.tag){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}}var _valid21 = _errs188 === errors;errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}if(_valid21){const _errs190 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate40(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}}var _valid21 = _errs190 === errors;valid81 = _valid21;if(valid81){var props20 = {};props20.args = true;props20.tag = true;}}if(!valid81){const err102 = {instancePath,schemaPath:"#/allOf/20/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(props0 !== true && props20 !== undefined){if(props20 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props20);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.at === undefined){const err103 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "at"},message:"must have required property '"+"at"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data.tag === undefined){const err104 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data.args === undefined){const err105 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "args"},message:"must have required property '"+"args"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}for(const key8 in data){if(!((((key8 === "at") || (key8 === "tag")) || (key8 === "args")) || (key8 === "note"))){const err106 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(data.at !== undefined){if(typeof data.at !== "string"){const err107 = {instancePath:instancePath+"/at",schemaPath:"#/properties/at/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data.tag !== undefined){let data60 = data.tag;if(!((((((((((((((((((data60 === "amount") || (data60 === "timestamp")) || (data60 === "duration")) || (data60 === "account")) || (data60 === "subaccount")) || (data60 === "bytes")) || (data60 === "text")) || (data60 === "range")) || (data60 === "default")) || (data60 === "describe")) || (data60 === "ui")) || (data60 === "intent")) || (data60 === "effect")) || (data60 === "idempotency")) || (data60 === "outcome")) || (data60 === "list")) || (data60 === "names")) || (data60 === "named"))){const err108 = {instancePath:instancePath+"/tag",schemaPath:"#/properties/tag/enum",keyword:"enum",params:{allowedValues: schema34.properties.tag.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data.args !== undefined){let data61 = data.args;if(!(data61 && typeof data61 == "object" && !Array.isArray(data61))){const err109 = {instancePath:instancePath+"/args",schemaPath:"#/properties/args/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data.note !== undefined){if(typeof data.note !== "string"){const err110 = {instancePath:instancePath+"/note",schemaPath:"#/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}else {const err111 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="urn:candid-profile:v0:schema" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("pack" !== data.kind){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){if("pack" !== data.origin){const err1 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/0/then/properties/origin/const",keyword:"const",params:{allowedValue: "pack"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.binds !== undefined){let data2 = data.binds;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.standard === undefined){const err2 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/pack_binds/required",keyword:"required",params:{missingProperty: "standard"},message:"must have required property '"+"standard"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data2.requires === undefined){const err3 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/pack_binds/required",keyword:"required",params:{missingProperty: "requires"},message:"must have required property '"+"requires"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data2){if(!(((key0 === "standard") || (key0 === "spec_url")) || (key0 === "requires"))){const err4 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/pack_binds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data2.standard !== undefined){let data3 = data2.standard;if(typeof data3 === "string"){if(!pattern4.test(data3)){const err5 = {instancePath:instancePath+"/binds/standard",schemaPath:"#/$defs/pack_binds/properties/standard/pattern",keyword:"pattern",params:{pattern: "^[A-Z]+-[0-9]+$"},message:"must match pattern \""+"^[A-Z]+-[0-9]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/binds/standard",schemaPath:"#/$defs/pack_binds/properties/standard/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data2.spec_url !== undefined){let data4 = data2.spec_url;if(typeof data4 === "string"){if(!pattern5.test(data4)){const err7 = {instancePath:instancePath+"/binds/spec_url",schemaPath:"#/$defs/pack_binds/properties/spec_url/pattern",keyword:"pattern",params:{pattern: "^https://"},message:"must match pattern \""+"^https://"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/binds/spec_url",schemaPath:"#/$defs/pack_binds/properties/spec_url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data2.requires !== undefined){let data5 = data2.requires;if(typeof data5 === "string"){if(func1(data5) < 10){const err9 = {instancePath:instancePath+"/binds/requires",schemaPath:"#/$defs/pack_binds/properties/requires/minLength",keyword:"minLength",params:{limit: 10},message:"must NOT have fewer than 10 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/binds/requires",schemaPath:"#/$defs/pack_binds/properties/requires/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/pack_binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.origin = true;props0.binds = true;props0.kind = true;}}if(!valid1){const err12 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("canister" !== data.kind){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid1){const _errs21 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){let data7 = data.origin;if(!(((data7 === "author") || (data7 === "third_party")) || (data7 === "inferred"))){const err14 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/1/then/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.allOf[1].then.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.binds !== undefined){let data8 = data.binds;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.interface_id === undefined){const err15 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/required",keyword:"required",params:{missingProperty: "interface_id"},message:"must have required property '"+"interface_id"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}for(const key1 in data8){if(!(((key1 === "interface_id") || (key1 === "contract_id")) || (key1 === "canister_id"))){const err16 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data8.interface_id !== undefined){let data9 = data8.interface_id;if(typeof data9 === "string"){if(!pattern6.test(data9)){const err17 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data8.contract_id !== undefined){let data10 = data8.contract_id;if(typeof data10 === "string"){if(!pattern7.test(data10)){const err19 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}else {const err20 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data8.canister_id !== undefined){let data11 = data8.canister_id;if(typeof data11 === "string"){if(!pattern8.test(data11)){const err21 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"},message:"must match pattern \""+"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/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+"/binds",schemaPath:"#/$defs/canister_binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}var _valid1 = _errs21 === errors;valid6 = _valid1;if(valid6){var props1 = {};props1.origin = true;props1.binds = true;props1.kind = true;}}if(!valid6){const err24 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err25 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.format_version === undefined){const err26 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format_version"},message:"must have required property '"+"format_version"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.kind === undefined){const err27 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data.name === undefined){const err28 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.origin === undefined){const err29 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "origin"},message:"must have required property '"+"origin"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.binds === undefined){const err30 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "binds"},message:"must have required property '"+"binds"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.annotations === undefined){const err31 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "annotations"},message:"must have required property '"+"annotations"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key2 in data){if(!(func2.call(schema31.properties, key2))){const err32 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.format !== undefined){if("candid-profile" !== data.format){const err33 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "candid-profile"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.format_version !== undefined){if(0 !== data.format_version){const err34 = {instancePath:instancePath+"/format_version",schemaPath:"#/properties/format_version/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.kind !== undefined){let data14 = data.kind;if(!((data14 === "canister") || (data14 === "pack"))){const err35 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema31.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.name !== undefined){let data15 = data.name;if(typeof data15 === "string"){if(!pattern9.test(data15)){const err36 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9_.-]{0,63}$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9_.-]{0,63}$"+"\""};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}else {const err37 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.origin !== undefined){let data16 = data.origin;if(!((((data16 === "author") || (data16 === "third_party")) || (data16 === "pack")) || (data16 === "inferred"))){const err38 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data.language !== undefined){let data17 = data.language;if(typeof data17 === "string"){if(!pattern10.test(data17)){const err39 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err41 = {instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.binds !== undefined){let data19 = data.binds;if(!(data19 && typeof data19 == "object" && !Array.isArray(data19))){const err42 = {instancePath:instancePath+"/binds",schemaPath:"#/properties/binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.annotations !== undefined){let data20 = data.annotations;if(Array.isArray(data20)){if(data20.length < 1){const err43 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}const len0 = data20.length;for(let i0=0; i0<len0; i0++){if(!(validate21(data20[i0], {instancePath:instancePath+"/annotations/" + i0,parentData:data20,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}else {const err44 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
|
|
3
|
+
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:candid-profile:v0:schema","title":"Candid Profile v0","description":"Meaning for positions in a Candid interface (units, formats, intent, risk, idempotency, outcome classes). Normative prose: docs/profile-v0.md. Structural checks only; address resolution and tag applicability are checked by scripts/validate.mjs.","type":"object","required":["format","format_version","kind","name","origin","binds","annotations"],"additionalProperties":false,"properties":{"format":{"const":"candid-profile"},"format_version":{"const":0},"kind":{"enum":["canister","pack","contract"]},"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,63}$"},"origin":{"enum":["author","third_party","pack","inferred"]},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$","default":"en"},"description":{"type":"string"},"binds":{"type":"object"},"annotations":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/annotation"}}},"allOf":[{"if":{"properties":{"kind":{"const":"pack"}}},"then":{"properties":{"origin":{"const":"pack"},"binds":{"$ref":"#/$defs/pack_binds"}}}},{"if":{"properties":{"kind":{"const":"canister"}}},"then":{"properties":{"origin":{"enum":["author","third_party","inferred"]},"binds":{"$ref":"#/$defs/canister_binds"}}}},{"if":{"properties":{"kind":{"const":"contract"}}},"then":{"properties":{"origin":{"enum":["author","third_party","inferred"]},"binds":{"$ref":"#/$defs/contract_binds"}}}}],"$defs":{"pack_binds":{"type":"object","required":["standard"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."},"abi":{"$ref":"#/$defs/evm_abi","description":"An EVM pack (spec section 15, experimental): the functions it applies to. The pack applies to a contract that has each of them, with the same selector, outputs and kind of call."}},"oneOf":[{"required":["requires"],"properties":{"requires":true}},{"required":["abi"],"properties":{"abi":true}}]},"canister_binds":{"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}},"contract_binds":{"type":"object","description":"An EVM contract (spec section 15, experimental): its ABI, and where it is deployed.","required":["abi"],"additionalProperties":false,"properties":{"abi":{"$ref":"#/$defs/evm_abi"},"deployments":{"type":"array","minItems":1,"description":"The chain ids and addresses the profile describes (ERC-7730 context.contract.deployments). A consumer applies the profile to a call only when its target is listed.","items":{"type":"object","required":["chain_id","address"],"additionalProperties":false,"properties":{"chain_id":{"type":"integer","minimum":1},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}}}},"evm_abi":{"type":"array","minItems":1,"description":"EVM ABI function fragments: human-readable (`function transfer(address to, uint256 value) returns (bool)`) or JSON ABI entries. Only functions are read; events, errors, the constructor, fallback and receive are skipped. Parameter names are what addresses use.","items":{"oneOf":[{"type":"string","pattern":"^\\s*(function|event|error|constructor|fallback|receive)\\b"},{"type":"object","required":["type"],"properties":{"type":{"enum":["function","event","error","constructor","fallback","receive"]}}}]}},"value_address":{"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},"method_address":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"relpath":{"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1},"int_string":{"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"},"dynamic":{"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}},"time_unit":{"enum":["ns","us","ms","s"]},"outcome_class":{"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]},"annotation":{"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["intent","effect"]}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/method_address"},{"$ref":"#/$defs/value_address"}]}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]},"args_empty":{"type":"object","additionalProperties":false,"maxProperties":0},"args_amount":{"type":"object","required":["decimals"],"additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (base units, a decimal string) displays as `message` and the symbol, for example \"Unlimited USDC\" (spec section 5.3)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as (default \"Unlimited\")."}},"dependentRequired":{"message":["threshold"]}},"args_timestamp":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"}}},"args_duration":{"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}},"args_account":{"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}},"args_bytes":{"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}},"args_text":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}},"args_range":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}},"args_default":{"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}},"args_describe":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}},"args_ui":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}},"args_intent":{"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}},"args_effect":{"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"}}},"args_idempotency":{"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}},"args_outcome":{"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}},"args_list":{"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}},"set_name":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."},"args_names":{"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}},"args_named":{"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}}}};const schema34 = {"type":"object","required":["interface_id"],"additionalProperties":false,"properties":{"interface_id":{"type":"string","pattern":"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},"contract_id":{"type":"string","pattern":"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},"canister_id":{"type":"string","pattern":"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"}}};const schema32 = {"type":"object","required":["standard"],"additionalProperties":false,"properties":{"standard":{"type":"string","pattern":"^[A-Z]+-[0-9]+$"},"spec_url":{"type":"string","pattern":"^https://"},"requires":{"type":"string","minLength":10,"description":"A Candid service fragment. The pack applies to a canister whose service type is a subtype of this fragment."},"abi":{"$ref":"#/$defs/evm_abi","description":"An EVM pack (spec section 15, experimental): the functions it applies to. The pack applies to a contract that has each of them, with the same selector, outputs and kind of call."}},"oneOf":[{"required":["requires"],"properties":{"requires":true}},{"required":["abi"],"properties":{"abi":true}}]};const schema33 = {"type":"array","minItems":1,"description":"EVM ABI function fragments: human-readable (`function transfer(address to, uint256 value) returns (bool)`) or JSON ABI entries. Only functions are read; events, errors, the constructor, fallback and receive are skipped. Parameter names are what addresses use.","items":{"oneOf":[{"type":"string","pattern":"^\\s*(function|event|error|constructor|fallback|receive)\\b"},{"type":"object","required":["type"],"properties":{"type":{"enum":["function","event","error","constructor","fallback","receive"]}}}]}};const pattern4 = new RegExp("^[A-Z]+-[0-9]+$", "u");const pattern5 = new RegExp("^https://", "u");const pattern6 = new RegExp("^\\s*(function|event|error|constructor|fallback|receive)\\b", "u");const func1 = ucs2length;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 _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.requires === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "requires"},message:"must have required property '"+"requires"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = {};props0.requires = true;}const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.abi === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "abi"},message:"must have required property '"+"abi"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.abi = true;}}}if(!valid0){const err2 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.standard === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "standard"},message:"must have required property '"+"standard"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((key0 === "standard") || (key0 === "spec_url")) || (key0 === "requires")) || (key0 === "abi"))){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.standard !== undefined){let data0 = data.standard;if(typeof data0 === "string"){if(!pattern4.test(data0)){const err5 = {instancePath:instancePath+"/standard",schemaPath:"#/properties/standard/pattern",keyword:"pattern",params:{pattern: "^[A-Z]+-[0-9]+$"},message:"must match pattern \""+"^[A-Z]+-[0-9]+$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/standard",schemaPath:"#/properties/standard/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.spec_url !== undefined){let data1 = data.spec_url;if(typeof data1 === "string"){if(!pattern5.test(data1)){const err7 = {instancePath:instancePath+"/spec_url",schemaPath:"#/properties/spec_url/pattern",keyword:"pattern",params:{pattern: "^https://"},message:"must match pattern \""+"^https://"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/spec_url",schemaPath:"#/properties/spec_url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.requires !== undefined){let data2 = data.requires;if(typeof data2 === "string"){if(func1(data2) < 10){const err9 = {instancePath:instancePath+"/requires",schemaPath:"#/properties/requires/minLength",keyword:"minLength",params:{limit: 10},message:"must NOT have fewer than 10 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/requires",schemaPath:"#/properties/requires/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.abi !== undefined){let data3 = data.abi;if(Array.isArray(data3)){if(data3.length < 1){const err11 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs15 = errors;let valid5 = false;let passing1 = null;const _errs16 = errors;if(typeof data4 === "string"){if(!pattern6.test(data4)){const err12 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^\\s*(function|event|error|constructor|fallback|receive)\\b"},message:"must match pattern \""+"^\\s*(function|event|error|constructor|fallback|receive)\\b"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs16 === errors;if(_valid1){valid5 = true;passing1 = 0;}const _errs18 = errors;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.type === undefined){const err14 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data4.type !== undefined){let data5 = data4.type;if(!((((((data5 === "function") || (data5 === "event")) || (data5 === "error")) || (data5 === "constructor")) || (data5 === "fallback")) || (data5 === "receive"))){const err15 = {instancePath:instancePath+"/abi/" + i0+"/type",schemaPath:"#/$defs/evm_abi/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid1 = _errs18 === errors;if(_valid1 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid1){valid5 = true;passing1 = 1;var props1 = {};props1.type = true;}}if(!valid5){const err17 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}}}else {const err18 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema35 = {"type":"object","description":"An EVM contract (spec section 15, experimental): its ABI, and where it is deployed.","required":["abi"],"additionalProperties":false,"properties":{"abi":{"$ref":"#/$defs/evm_abi"},"deployments":{"type":"array","minItems":1,"description":"The chain ids and addresses the profile describes (ERC-7730 context.contract.deployments). A consumer applies the profile to a call only when its target is listed.","items":{"type":"object","required":["chain_id","address"],"additionalProperties":false,"properties":{"chain_id":{"type":"integer","minimum":1},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}}}};const pattern11 = new RegExp("^0x[0-9a-fA-F]{40}$", "u");function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate23.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.abi === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "abi"},message:"must have required property '"+"abi"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "abi") || (key0 === "deployments"))){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.abi !== undefined){let data0 = data.abi;if(Array.isArray(data0)){if(data0.length < 1){const err2 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs6 = errors;let valid4 = false;let passing0 = null;const _errs7 = errors;if(typeof data1 === "string"){if(!pattern6.test(data1)){const err3 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^\\s*(function|event|error|constructor|fallback|receive)\\b"},message:"must match pattern \""+"^\\s*(function|event|error|constructor|fallback|receive)\\b"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs7 === errors;if(_valid0){valid4 = true;passing0 = 0;}const _errs9 = errors;if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.type === undefined){const err5 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data1.type !== undefined){let data2 = data1.type;if(!((((((data2 === "function") || (data2 === "event")) || (data2 === "error")) || (data2 === "constructor")) || (data2 === "fallback")) || (data2 === "receive"))){const err6 = {instancePath:instancePath+"/abi/" + i0+"/type",schemaPath:"#/$defs/evm_abi/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid0 = _errs9 === errors;if(_valid0 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid0){valid4 = true;passing0 = 1;var props0 = {};props0.type = true;}}if(!valid4){const err8 = {instancePath:instancePath+"/abi/" + i0,schemaPath:"#/$defs/evm_abi/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}}}else {const err9 = {instancePath:instancePath+"/abi",schemaPath:"#/$defs/evm_abi/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deployments !== undefined){let data3 = data.deployments;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/deployments",schemaPath:"#/properties/deployments/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.chain_id === undefined){const err11 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/required",keyword:"required",params:{missingProperty: "chain_id"},message:"must have required property '"+"chain_id"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.address === undefined){const err12 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/required",keyword:"required",params:{missingProperty: "address"},message:"must have required property '"+"address"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}for(const key1 in data4){if(!((key1 === "chain_id") || (key1 === "address"))){const err13 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data4.chain_id !== undefined){let data5 = data4.chain_id;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err14 = {instancePath:instancePath+"/deployments/" + i1+"/chain_id",schemaPath:"#/properties/deployments/items/properties/chain_id/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){const err15 = {instancePath:instancePath+"/deployments/" + i1+"/chain_id",schemaPath:"#/properties/deployments/items/properties/chain_id/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(data4.address !== undefined){let data6 = data4.address;if(typeof data6 === "string"){if(!pattern11.test(data6)){const err16 = {instancePath:instancePath+"/deployments/" + i1+"/address",schemaPath:"#/properties/deployments/items/properties/address/pattern",keyword:"pattern",params:{pattern: "^0x[0-9a-fA-F]{40}$"},message:"must match pattern \""+"^0x[0-9a-fA-F]{40}$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/deployments/" + i1+"/address",schemaPath:"#/properties/deployments/items/properties/address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/deployments/" + i1,schemaPath:"#/properties/deployments/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath:instancePath+"/deployments",schemaPath:"#/properties/deployments/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema37 = {"type":"object","required":["at","tag","args"],"additionalProperties":false,"properties":{"at":{"type":"string"},"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","describe","ui","intent","effect","idempotency","outcome","list","names","named"]},"args":{"type":"object"},"note":{"type":"string"}},"allOf":[{"if":{"properties":{"tag":{"enum":["idempotency","outcome","list","names"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/method_address"}}}},{"if":{"properties":{"tag":{"enum":["intent","effect"]}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/method_address"},{"$ref":"#/$defs/value_address"}]}}}},{"if":{"properties":{"tag":{"enum":["amount","timestamp","duration","account","subaccount","bytes","text","range","default","ui","named"]}}},"then":{"properties":{"at":{"$ref":"#/$defs/value_address"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"at":{"anyOf":[{"$ref":"#/$defs/value_address"},{"$ref":"#/$defs/method_address"}]}}}},{"if":{"properties":{"tag":{"const":"amount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_amount"}}}},{"if":{"properties":{"tag":{"const":"timestamp"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_timestamp"}}}},{"if":{"properties":{"tag":{"const":"duration"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_duration"}}}},{"if":{"properties":{"tag":{"const":"account"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_account"}}}},{"if":{"properties":{"tag":{"const":"subaccount"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_empty"}}}},{"if":{"properties":{"tag":{"const":"bytes"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_bytes"}}}},{"if":{"properties":{"tag":{"const":"text"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_text"}}}},{"if":{"properties":{"tag":{"const":"range"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_range"}}}},{"if":{"properties":{"tag":{"const":"default"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_default"}}}},{"if":{"properties":{"tag":{"const":"describe"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_describe"}}}},{"if":{"properties":{"tag":{"const":"ui"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_ui"}}}},{"if":{"properties":{"tag":{"const":"intent"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_intent"}}}},{"if":{"properties":{"tag":{"const":"effect"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_effect"}}}},{"if":{"properties":{"tag":{"const":"idempotency"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_idempotency"}}}},{"if":{"properties":{"tag":{"const":"outcome"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_outcome"}}}},{"if":{"properties":{"tag":{"const":"list"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_list"}}}},{"if":{"properties":{"tag":{"const":"names"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_names"}}}},{"if":{"properties":{"tag":{"const":"named"}}},"then":{"properties":{"args":{"$ref":"#/$defs/args_named"}}}}]};const schema38 = {"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"};const schema40 = {"type":"string","description":"METHOD(i)path | METHOD->(i)path | type:DECL path. Paths: .label, .#id, [] (vec element). opt is transparent.","pattern":"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"};const schema51 = {"type":"object","additionalProperties":false,"properties":{"encoding":{"const":"icrc1"}}};const schema52 = {"type":"object","additionalProperties":false,"maxProperties":0};const schema53 = {"type":"object","required":["encoding"],"additionalProperties":false,"properties":{"encoding":{"enum":["utf8","hex","base64"]},"max_len":{"type":"integer","minimum":0}}};const schema54 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"format":{"enum":["plain","markdown","email","url"]},"max_len":{"type":"integer","minimum":0},"pattern":{"type":"string"}}};const schema60 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"help":{"type":"string","minLength":1,"maxLength":2000}}};const schema61 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"order":{"type":"integer"},"group":{"type":"string"},"hidden":{"type":"boolean"},"widget":{"type":"string"}}};const schema62 = {"type":"object","required":["title","template"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":60},"template":{"type":"string","minLength":1,"maxLength":500}}};const schema63 = {"type":"object","required":["kind","irreversible"],"additionalProperties":false,"properties":{"kind":{"enum":["read","write","transfer","approve","admin","destroy"]},"irreversible":{"type":"boolean"},"replicated":{"type":"boolean"}}};const pattern14 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$", "u");const pattern16 = new RegExp("^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");const schema44 = {"type":"object","required":["decimals"],"additionalProperties":false,"properties":{"decimals":{"oneOf":[{"type":"integer","minimum":0,"maximum":255},{"$ref":"#/$defs/dynamic"}]},"symbol":{"oneOf":[{"type":"string","minLength":1,"maxLength":32},{"$ref":"#/$defs/dynamic"}]},"threshold":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Display only: a value at or above this (base units, a decimal string) displays as `message` and the symbol, for example \"Unlimited USDC\" (spec section 5.3)."},"message":{"type":"string","minLength":1,"maxLength":32,"description":"What a value at or above `threshold` displays as (default \"Unlimited\")."}},"dependentRequired":{"message":["threshold"]}};const schema45 = {"type":"object","required":["from"],"additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"}}};const pattern20 = new RegExp("^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$", "u");const pattern22 = new RegExp("^(0|[1-9][0-9]{0,77})$", "u");function validate26(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate26.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.decimals === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "decimals"},message:"must have required property '"+"decimals"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((((key0 === "decimals") || (key0 === "symbol")) || (key0 === "threshold")) || (key0 === "message"))){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.decimals !== undefined){let data0 = data.decimals;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err2 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 255 || isNaN(data0)){const err3 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/maximum",keyword:"maximum",params:{comparison: "<=", limit: 255},message:"must be <= 255"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data0 < 0 || isNaN(data0)){const err4 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err5 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err6 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern20.test(data1)){const err7 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/decimals/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}else {const err9 = {instancePath:instancePath+"/decimals",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err10 = {instancePath:instancePath+"/decimals",schemaPath:"#/properties/decimals/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.symbol !== undefined){let data2 = data.symbol;const _errs13 = errors;let valid4 = false;let passing1 = null;const _errs14 = errors;if(typeof data2 === "string"){if(func1(data2) > 32){const err11 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(func1(data2) < 1){const err12 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid1 = _errs14 === errors;if(_valid1){valid4 = true;passing1 = 0;}const _errs16 = errors;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.from === undefined){const err14 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}for(const key2 in data2){if(!(key2 === "from")){const err15 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.from !== undefined){let data3 = data2.from;if(typeof data3 === "string"){if(!pattern20.test(data3)){const err16 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/symbol/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/symbol",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid1 = _errs16 === errors;if(_valid1 && valid4){valid4 = false;passing1 = [passing1, 1];}else {if(_valid1){valid4 = true;passing1 = 1;}}if(!valid4){const err19 = {instancePath:instancePath+"/symbol",schemaPath:"#/properties/symbol/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}if(data.threshold !== undefined){let data4 = data.threshold;if(typeof data4 === "string"){if(!pattern22.test(data4)){const err20 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,77})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,77})$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/threshold",schemaPath:"#/properties/threshold/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.message !== undefined){let data5 = data.message;if(typeof data5 === "string"){if(func1(data5) > 32){const err22 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(func1(data5) < 1){const err23 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.message !== undefined){if(data.threshold === undefined){const err25 = {instancePath,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property: "message",
|
|
4
|
+
missingProperty: "threshold",
|
|
5
|
+
depsCount: 1,
|
|
6
|
+
deps: "threshold"},message:"must have property threshold when property message is present"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}else {const err26 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}validate26.errors = vErrors;return errors === 0;}validate26.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema47 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"},"epoch":{"const":"unix"}}};const schema48 = {"enum":["ns","us","ms","s"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "unit") || (key0 === "epoch"))){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema48.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.epoch !== undefined){if("unix" !== data.epoch){const err3 = {instancePath:instancePath+"/epoch",schemaPath:"#/properties/epoch/const",keyword:"const",params:{allowedValue: "unix"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}else {const err4 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema49 = {"type":"object","required":["unit"],"additionalProperties":false,"properties":{"unit":{"$ref":"#/$defs/time_unit"}}};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.unit === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "unit"},message:"must have required property '"+"unit"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!(key0 === "unit")){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.unit !== undefined){let data0 = data.unit;if(!((((data0 === "ns") || (data0 === "us")) || (data0 === "ms")) || (data0 === "s"))){const err2 = {instancePath:instancePath+"/unit",schemaPath:"#/$defs/time_unit/enum",keyword:"enum",params:{allowedValues: schema48.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}else {const err3 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema55 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"min":{"$ref":"#/$defs/int_string"},"max":{"$ref":"#/$defs/int_string"},"min_len":{"type":"integer","minimum":0},"max_len":{"type":"integer","minimum":0}}};const schema56 = {"type":"string","pattern":"^(0|-?[1-9][0-9]*)$"};const pattern23 = new RegExp("^(0|-?[1-9][0-9]*)$", "u");function validate32(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate32.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((((key0 === "min") || (key0 === "max")) || (key0 === "min_len")) || (key0 === "max_len"))){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.min !== undefined){let data0 = data.min;if(typeof data0 === "string"){if(!pattern23.test(data0)){const err2 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/min",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.max !== undefined){let data1 = data.max;if(typeof data1 === "string"){if(!pattern23.test(data1)){const err4 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/pattern",keyword:"pattern",params:{pattern: "^(0|-?[1-9][0-9]*)$"},message:"must match pattern \""+"^(0|-?[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/max",schemaPath:"#/$defs/int_string/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.min_len !== undefined){let data2 = data.min_len;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){const err7 = {instancePath:instancePath+"/min_len",schemaPath:"#/properties/min_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}if(data.max_len !== undefined){let data3 = data.max_len;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err8 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){const err9 = {instancePath:instancePath+"/max_len",schemaPath:"#/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};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++;}validate32.errors = vErrors;return errors === 0;}validate32.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema58 = {"type":"object","required":["value","mode"],"additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","description":"Candid textual literal, e.g. \"null\" or \"opt 0\""},{"$ref":"#/$defs/dynamic"}]},"mode":{"enum":["auto","suggest"]}}};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.value === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.mode === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "value") || (key0 === "mode"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.value !== undefined){let data0 = data.value;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(typeof data0 !== "string"){const err3 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.from === undefined){const err4 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key1 in data0){if(!(key1 === "from")){const err5 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data0.from !== undefined){let data1 = data0.from;if(typeof data1 === "string"){if(!pattern20.test(data1)){const err6 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/pattern",keyword:"pattern",params:{pattern: "^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"},message:"must match pattern \""+"^(query:[A-Za-z_][A-Za-z0-9_]*|now|caller)$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/value/from",schemaPath:"#/$defs/dynamic/properties/from/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/dynamic/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}}if(!valid1){const err9 = {instancePath:instancePath+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.mode !== undefined){let data2 = data.mode;if(!((data2 === "auto") || (data2 === "suggest"))){const err10 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues: schema58.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema64 = {"type":"object","required":["mode","stamp"],"additionalProperties":false,"properties":{"mode":{"const":"replay_same_payload"},"stamp":{"$ref":"#/$defs/relpath"}}};const schema65 = {"type":"string","description":"Path relative to a method's argument tuple (or result tuple, for outcome/list.next/list.items). Starts with (i) when the tuple has more than one element; otherwise relative to element 0.","pattern":"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$","minLength":1};const pattern26 = new RegExp("^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$", "u");function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.mode === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.stamp === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stamp"},message:"must have required property '"+"stamp"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "mode") || (key0 === "stamp"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.mode !== undefined){if("replay_same_payload" !== data.mode){const err3 = {instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/const",keyword:"const",params:{allowedValue: "replay_same_payload"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.stamp !== undefined){let data1 = data.stamp;if(typeof data1 === "string"){if(func1(data1) < 1){const err4 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern26.test(data1)){const err5 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/stamp",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate36.errors = vErrors;return errors === 0;}validate36.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema66 = {"type":"object","description":"classes, default or both: a result with no variant to select has default alone (spec 5.3, D-049)","minProperties":1,"additionalProperties":false,"properties":{"classes":{"type":"object","minProperties":1,"propertyNames":{"$ref":"#/$defs/relpath"},"additionalProperties":{"$ref":"#/$defs/outcome_class"}},"default":{"$ref":"#/$defs/outcome_class"}}};const schema68 = {"enum":["success","already_done","retry_same","retry_new","fix_input","fail"]};function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate38.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){const err0 = {instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "classes") || (key0 === "default"))){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.classes !== undefined){let data0 = data.classes;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(Object.keys(data0).length < 1){const err2 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key1 in data0){const _errs4 = errors;if(typeof key1 === "string"){if(func1(key1) < 1){const err3 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key1};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!pattern26.test(key1)){const err4 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\"",propertyName:key1};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/classes",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key1};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid1 = _errs4 === errors;if(!valid1){const err6 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/propertyNames",keyword:"propertyNames",params:{propertyName: key1},message:"property name must be valid"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}for(const key2 in data0){let data1 = data0[key2];if(!((((((data1 === "success") || (data1 === "already_done")) || (data1 === "retry_same")) || (data1 === "retry_new")) || (data1 === "fix_input")) || (data1 === "fail"))){const err7 = {instancePath:instancePath+"/classes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath:instancePath+"/classes",schemaPath:"#/properties/classes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.default !== undefined){let data2 = data.default;if(!((((((data2 === "success") || (data2 === "already_done")) || (data2 === "retry_same")) || (data2 === "retry_new")) || (data2 === "fix_input")) || (data2 === "fail"))){const err9 = {instancePath:instancePath+"/default",schemaPath:"#/$defs/outcome_class/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};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++;}validate38.errors = vErrors;return errors === 0;}validate38.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema70 = {"type":"object","required":["cursor","next","items"],"additionalProperties":false,"properties":{"cursor":{"$ref":"#/$defs/relpath"},"next":{"$ref":"#/$defs/relpath"},"items":{"$ref":"#/$defs/relpath"}}};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.cursor === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "cursor"},message:"must have required property '"+"cursor"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.next === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "next"},message:"must have required property '"+"next"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.items === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "cursor") || (key0 === "next")) || (key0 === "items"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.cursor !== undefined){let data0 = data.cursor;if(typeof data0 === "string"){if(func1(data0) < 1){const err4 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(!pattern26.test(data0)){const err5 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/cursor",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.next !== undefined){let data1 = data.next;if(typeof data1 === "string"){if(func1(data1) < 1){const err7 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/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(!pattern26.test(data1)){const err8 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/next",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.items !== undefined){let data2 = data.items;if(typeof data2 === "string"){if(func1(data2) < 1){const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(!pattern26.test(data2)){const err11 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}validate40.errors = vErrors;return errors === 0;}validate40.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema74 = {"type":"object","required":["set","items","name","value"],"additionalProperties":false,"description":"A method that lists named things (spec 5.3, D-045). items is a results relpath to a vec of records; name, value, show and kind are paths inside one item.","properties":{"set":{"$ref":"#/$defs/set_name"},"items":{"$ref":"#/$defs/relpath"},"name":{"$ref":"#/$defs/relpath"},"value":{"$ref":"#/$defs/relpath"},"show":{"$ref":"#/$defs/relpath"},"kind":{"$ref":"#/$defs/relpath"}}};const schema75 = {"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":64,"description":"A names set's name, which named tags refer to."};const pattern31 = new RegExp("^[a-z][a-z0-9_]*$", "u");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.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};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.value === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((key0 === "set") || (key0 === "items")) || (key0 === "name")) || (key0 === "value")) || (key0 === "show")) || (key0 === "kind"))){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.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err5 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(!pattern31.test(data0)){const err6 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.items !== undefined){let data1 = data.items;if(typeof data1 === "string"){if(func1(data1) < 1){const err8 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(!pattern26.test(data1)){const err9 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.name !== undefined){let data2 = data.name;if(typeof data2 === "string"){if(func1(data2) < 1){const err11 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!pattern26.test(data2)){const err12 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.value !== undefined){let data3 = data.value;if(typeof data3 === "string"){if(func1(data3) < 1){const err14 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/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(!pattern26.test(data3)){const err15 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.show !== undefined){let data4 = data.show;if(typeof data4 === "string"){if(func1(data4) < 1){const err17 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(!pattern26.test(data4)){const err18 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/show",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.kind !== undefined){let data5 = data.kind;if(typeof data5 === "string"){if(func1(data5) < 1){const err20 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/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(!pattern26.test(data5)){const err21 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/pattern",keyword:"pattern",params:{pattern: "^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(\\((0|[1-9][0-9]*)\\))?(\\.?([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9}))|\\[\\])?((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/kind",schemaPath:"#/$defs/relpath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}validate42.errors = vErrors;return errors === 0;}validate42.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema81 = {"type":"object","required":["set"],"additionalProperties":false,"description":"A position a name from a names set can stand for (spec 5.3, D-045).","properties":{"set":{"$ref":"#/$defs/set_name"},"by":{"enum":["value","show"]}}};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.set === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "set"},message:"must have required property '"+"set"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "set") || (key0 === "by"))){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.set !== undefined){let data0 = data.set;if(typeof data0 === "string"){if(func1(data0) > 64){const err2 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!pattern31.test(data0)){const err3 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]*$"},message:"must match pattern \""+"^[a-z][a-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/set",schemaPath:"#/$defs/set_name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.by !== undefined){let data1 = data.by;if(!((data1 === "value") || (data1 === "show"))){const err5 = {instancePath:instancePath+"/by",schemaPath:"#/properties/by/enum",keyword:"enum",params:{allowedValues: schema81.properties.by.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}validate44.errors = vErrors;return errors === 0;}validate44.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data0 = data.tag;if(!((((data0 === "idempotency") || (data0 === "outcome")) || (data0 === "list")) || (data0 === "names"))){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data1 = data.at;if(typeof data1 === "string"){if(!pattern14.test(data1)){const err1 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}else {const err2 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.at = true;props0.tag = true;}}if(!valid1){const err3 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const _errs10 = errors;let valid5 = true;const _errs11 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data2 = data.tag;if(!((data2 === "intent") || (data2 === "effect"))){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}var _valid1 = _errs11 === errors;errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}if(_valid1){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data3 = data.at;const _errs15 = errors;let valid8 = false;const _errs16 = errors;if(typeof data3 === "string"){if(!pattern14.test(data3)){const err5 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs16 === errors;valid8 = valid8 || _valid2;const _errs19 = errors;if(typeof data3 === "string"){if(!pattern16.test(data3)){const err7 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid2 = _errs19 === errors;valid8 = valid8 || _valid2;if(!valid8){const err9 = {instancePath:instancePath+"/at",schemaPath:"#/allOf/1/then/properties/at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}}}var _valid1 = _errs13 === errors;valid5 = _valid1;if(valid5){var props1 = {};props1.at = true;props1.tag = true;}}if(!valid5){const err10 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs23 = errors;let valid11 = true;const _errs24 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){let data4 = data.tag;if(!(((((((((((data4 === "amount") || (data4 === "timestamp")) || (data4 === "duration")) || (data4 === "account")) || (data4 === "subaccount")) || (data4 === "bytes")) || (data4 === "text")) || (data4 === "range")) || (data4 === "default")) || (data4 === "ui")) || (data4 === "named"))){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}var _valid3 = _errs24 === errors;errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}if(_valid3){const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data5 = data.at;if(typeof data5 === "string"){if(!pattern16.test(data5)){const err12 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid3 = _errs26 === errors;valid11 = _valid3;if(valid11){var props2 = {};props2.at = true;props2.tag = true;}}if(!valid11){const err14 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}const _errs31 = errors;let valid15 = true;const _errs32 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}var _valid4 = _errs32 === errors;errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}if(_valid4){const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.at !== undefined){let data7 = data.at;const _errs36 = errors;let valid18 = false;const _errs37 = errors;if(typeof data7 === "string"){if(!pattern16.test(data7)){const err16 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/pattern",keyword:"pattern",params:{pattern: "^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"},message:"must match pattern \""+"^(([A-Za-z_][A-Za-z0-9_]*)(\\((0|[1-9][0-9]*)\\)|->\\((0|[1-9][0-9]*)\\))|type:[A-Za-z_][A-Za-z0-9_]*)((\\.([A-Za-z_][A-Za-z0-9_]*|#(0|[1-9][0-9]{0,9})))|\\[\\])*$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/value_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid5 = _errs37 === errors;valid18 = valid18 || _valid5;const _errs40 = errors;if(typeof data7 === "string"){if(!pattern14.test(data7)){const err18 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\""};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/at",schemaPath:"#/$defs/method_address/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid5 = _errs40 === errors;valid18 = valid18 || _valid5;if(!valid18){const err20 = {instancePath:instancePath+"/at",schemaPath:"#/allOf/3/then/properties/at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}}}var _valid4 = _errs34 === errors;valid15 = _valid4;if(valid15){var props3 = {};props3.at = true;props3.tag = true;}}if(!valid15){const err21 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(props0 !== true && props3 !== undefined){if(props3 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props3);}}const _errs44 = errors;let valid21 = true;const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("amount" !== data.tag){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid6 = _errs45 === errors;errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}if(_valid6){const _errs47 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate26(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate26.errors : vErrors.concat(validate26.errors);errors = vErrors.length;}}}var _valid6 = _errs47 === errors;valid21 = _valid6;if(valid21){var props4 = {};props4.args = true;props4.tag = true;}}if(!valid21){const err23 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(props0 !== true && props4 !== undefined){if(props4 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props4);}}const _errs50 = errors;let valid24 = true;const _errs51 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("timestamp" !== data.tag){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid7 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid7){const _errs53 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate28(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}}var _valid7 = _errs53 === errors;valid24 = _valid7;if(valid24){var props5 = {};props5.args = true;props5.tag = true;}}if(!valid24){const err25 = {instancePath,schemaPath:"#/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(props0 !== true && props5 !== undefined){if(props5 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props5);}}const _errs56 = errors;let valid27 = true;const _errs57 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("duration" !== data.tag){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}var _valid8 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid8){const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate30(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}}var _valid8 = _errs59 === errors;valid27 = _valid8;if(valid27){var props6 = {};props6.args = true;props6.tag = true;}}if(!valid27){const err27 = {instancePath,schemaPath:"#/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(props0 !== true && props6 !== undefined){if(props6 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props6);}}const _errs62 = errors;let valid30 = true;const _errs63 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("account" !== data.tag){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}var _valid9 = _errs63 === errors;errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}if(_valid9){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data15 = data.args;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){for(const key0 in data15){if(!(key0 === "encoding")){const err29 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data15.encoding !== undefined){if("icrc1" !== data15.encoding){const err30 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_account/properties/encoding/const",keyword:"const",params:{allowedValue: "icrc1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_account/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid9 = _errs65 === errors;valid30 = _valid9;if(valid30){var props7 = {};props7.args = true;props7.tag = true;}}if(!valid30){const err32 = {instancePath,schemaPath:"#/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(props0 !== true && props7 !== undefined){if(props7 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props7);}}const _errs72 = errors;let valid35 = true;const _errs73 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("subaccount" !== data.tag){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid10 = _errs73 === errors;errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}if(_valid10){const _errs75 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data18 = data.args;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(Object.keys(data18).length > 0){const err34 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/maxProperties",keyword:"maxProperties",params:{limit: 0},message:"must NOT have more than 0 properties"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}for(const key1 in data18){const err35 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_empty/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid10 = _errs75 === errors;valid35 = _valid10;if(valid35){var props8 = {};props8.args = true;props8.tag = true;}}if(!valid35){const err37 = {instancePath,schemaPath:"#/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(props0 !== true && props8 !== undefined){if(props8 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props8);}}const _errs81 = errors;let valid39 = true;const _errs82 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("bytes" !== data.tag){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}var _valid11 = _errs82 === errors;errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}if(_valid11){const _errs84 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data20 = data.args;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.encoding === undefined){const err39 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/required",keyword:"required",params:{missingProperty: "encoding"},message:"must have required property '"+"encoding"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}for(const key2 in data20){if(!((key2 === "encoding") || (key2 === "max_len"))){const err40 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data20.encoding !== undefined){let data21 = data20.encoding;if(!(((data21 === "utf8") || (data21 === "hex")) || (data21 === "base64"))){const err41 = {instancePath:instancePath+"/args/encoding",schemaPath:"#/$defs/args_bytes/properties/encoding/enum",keyword:"enum",params:{allowedValues: schema53.properties.encoding.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data20.max_len !== undefined){let data22 = data20.max_len;if(!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))){const err42 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if((typeof data22 == "number") && (isFinite(data22))){if(data22 < 0 || isNaN(data22)){const err43 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_bytes/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}}else {const err44 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_bytes/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}var _valid11 = _errs84 === errors;valid39 = _valid11;if(valid39){var props9 = {};props9.args = true;props9.tag = true;}}if(!valid39){const err45 = {instancePath,schemaPath:"#/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(props0 !== true && props9 !== undefined){if(props9 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props9);}}const _errs93 = errors;let valid44 = true;const _errs94 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("text" !== data.tag){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}var _valid12 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid12){const _errs96 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data24 = data.args;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err47 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key3 in data24){if(!(((key3 === "format") || (key3 === "max_len")) || (key3 === "pattern"))){const err48 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data24.format !== undefined){let data25 = data24.format;if(!((((data25 === "plain") || (data25 === "markdown")) || (data25 === "email")) || (data25 === "url"))){const err49 = {instancePath:instancePath+"/args/format",schemaPath:"#/$defs/args_text/properties/format/enum",keyword:"enum",params:{allowedValues: schema54.properties.format.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data24.max_len !== undefined){let data26 = data24.max_len;if(!(((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26))) && (isFinite(data26)))){const err50 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if((typeof data26 == "number") && (isFinite(data26))){if(data26 < 0 || isNaN(data26)){const err51 = {instancePath:instancePath+"/args/max_len",schemaPath:"#/$defs/args_text/properties/max_len/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}if(data24.pattern !== undefined){if(typeof data24.pattern !== "string"){const err52 = {instancePath:instancePath+"/args/pattern",schemaPath:"#/$defs/args_text/properties/pattern/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}else {const err53 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_text/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}var _valid12 = _errs96 === errors;valid44 = _valid12;if(valid44){var props10 = {};props10.args = true;props10.tag = true;}}if(!valid44){const err54 = {instancePath,schemaPath:"#/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(props0 !== true && props10 !== undefined){if(props10 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props10);}}const _errs107 = errors;let valid49 = true;const _errs108 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("range" !== data.tag){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid13 = _errs108 === errors;errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}if(_valid13){const _errs110 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate32(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);errors = vErrors.length;}}}var _valid13 = _errs110 === errors;valid49 = _valid13;if(valid49){var props11 = {};props11.args = true;props11.tag = true;}}if(!valid49){const err56 = {instancePath,schemaPath:"#/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(props0 !== true && props11 !== undefined){if(props11 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props11);}}const _errs113 = errors;let valid52 = true;const _errs114 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("default" !== data.tag){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var _valid14 = _errs114 === errors;errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}if(_valid14){const _errs116 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate34(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}}var _valid14 = _errs116 === errors;valid52 = _valid14;if(valid52){var props12 = {};props12.args = true;props12.tag = true;}}if(!valid52){const err58 = {instancePath,schemaPath:"#/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(props0 !== true && props12 !== undefined){if(props12 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props12);}}const _errs119 = errors;let valid55 = true;const _errs120 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("describe" !== data.tag){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}}var _valid15 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid15){const _errs122 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data33 = data.args;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err60 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}for(const key4 in data33){if(!((key4 === "label") || (key4 === "help"))){const err61 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func1(data34) > 80){const err62 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(func1(data34) < 1){const err63 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/args/label",schemaPath:"#/$defs/args_describe/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data33.help !== undefined){let data35 = data33.help;if(typeof data35 === "string"){if(func1(data35) > 2000){const err65 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/maxLength",keyword:"maxLength",params:{limit: 2000},message:"must NOT have more than 2000 characters"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(func1(data35) < 1){const err66 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/args/help",schemaPath:"#/$defs/args_describe/properties/help/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_describe/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid15 = _errs122 === errors;valid55 = _valid15;if(valid55){var props13 = {};props13.args = true;props13.tag = true;}}if(!valid55){const err69 = {instancePath,schemaPath:"#/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(props0 !== true && props13 !== undefined){if(props13 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props13);}}const _errs132 = errors;let valid60 = true;const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("ui" !== data.tag){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}var _valid16 = _errs133 === errors;errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}if(_valid16){const _errs135 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data37 = data.args;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(Object.keys(data37).length < 1){const err71 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}for(const key5 in data37){if(!((((key5 === "order") || (key5 === "group")) || (key5 === "hidden")) || (key5 === "widget"))){const err72 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data37.order !== undefined){let data38 = data37.order;if(!(((typeof data38 == "number") && (!(data38 % 1) && !isNaN(data38))) && (isFinite(data38)))){const err73 = {instancePath:instancePath+"/args/order",schemaPath:"#/$defs/args_ui/properties/order/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data37.group !== undefined){if(typeof data37.group !== "string"){const err74 = {instancePath:instancePath+"/args/group",schemaPath:"#/$defs/args_ui/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data37.hidden !== undefined){if(typeof data37.hidden !== "boolean"){const err75 = {instancePath:instancePath+"/args/hidden",schemaPath:"#/$defs/args_ui/properties/hidden/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data37.widget !== undefined){if(typeof data37.widget !== "string"){const err76 = {instancePath:instancePath+"/args/widget",schemaPath:"#/$defs/args_ui/properties/widget/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}else {const err77 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_ui/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}var _valid16 = _errs135 === errors;valid60 = _valid16;if(valid60){var props14 = {};props14.args = true;props14.tag = true;}}if(!valid60){const err78 = {instancePath,schemaPath:"#/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(props0 !== true && props14 !== undefined){if(props14 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props14);}}const _errs149 = errors;let valid65 = true;const _errs150 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("intent" !== data.tag){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var _valid17 = _errs150 === errors;errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}if(_valid17){const _errs152 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data43 = data.args;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.title === undefined){const err80 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data43.template === undefined){const err81 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/required",keyword:"required",params:{missingProperty: "template"},message:"must have required property '"+"template"+"'"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}for(const key6 in data43){if(!((key6 === "title") || (key6 === "template"))){const err82 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data43.title !== undefined){let data44 = data43.title;if(typeof data44 === "string"){if(func1(data44) > 60){const err83 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/maxLength",keyword:"maxLength",params:{limit: 60},message:"must NOT have more than 60 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(func1(data44) < 1){const err84 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}else {const err85 = {instancePath:instancePath+"/args/title",schemaPath:"#/$defs/args_intent/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data43.template !== undefined){let data45 = data43.template;if(typeof data45 === "string"){if(func1(data45) > 500){const err86 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/maxLength",keyword:"maxLength",params:{limit: 500},message:"must NOT have more than 500 characters"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(func1(data45) < 1){const err87 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/args/template",schemaPath:"#/$defs/args_intent/properties/template/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_intent/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}var _valid17 = _errs152 === errors;valid65 = _valid17;if(valid65){var props15 = {};props15.args = true;props15.tag = true;}}if(!valid65){const err90 = {instancePath,schemaPath:"#/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(props0 !== true && props15 !== undefined){if(props15 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props15);}}const _errs162 = errors;let valid70 = true;const _errs163 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("effect" !== data.tag){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}var _valid18 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid18){const _errs165 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){let data47 = data.args;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.kind === undefined){const err92 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data47.irreversible === undefined){const err93 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/required",keyword:"required",params:{missingProperty: "irreversible"},message:"must have required property '"+"irreversible"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key7 in data47){if(!(((key7 === "kind") || (key7 === "irreversible")) || (key7 === "replicated"))){const err94 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data47.kind !== undefined){let data48 = data47.kind;if(!((((((data48 === "read") || (data48 === "write")) || (data48 === "transfer")) || (data48 === "approve")) || (data48 === "admin")) || (data48 === "destroy"))){const err95 = {instancePath:instancePath+"/args/kind",schemaPath:"#/$defs/args_effect/properties/kind/enum",keyword:"enum",params:{allowedValues: schema63.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data47.irreversible !== undefined){if(typeof data47.irreversible !== "boolean"){const err96 = {instancePath:instancePath+"/args/irreversible",schemaPath:"#/$defs/args_effect/properties/irreversible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}if(data47.replicated !== undefined){if(typeof data47.replicated !== "boolean"){const err97 = {instancePath:instancePath+"/args/replicated",schemaPath:"#/$defs/args_effect/properties/replicated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/args",schemaPath:"#/$defs/args_effect/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}var _valid18 = _errs165 === errors;valid70 = _valid18;if(valid70){var props16 = {};props16.args = true;props16.tag = true;}}if(!valid70){const err99 = {instancePath,schemaPath:"#/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(props0 !== true && props16 !== undefined){if(props16 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props16);}}const _errs176 = errors;let valid75 = true;const _errs177 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("idempotency" !== data.tag){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}var _valid19 = _errs177 === errors;errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}if(_valid19){const _errs179 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate36(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}}}var _valid19 = _errs179 === errors;valid75 = _valid19;if(valid75){var props17 = {};props17.args = true;props17.tag = true;}}if(!valid75){const err101 = {instancePath,schemaPath:"#/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(props0 !== true && props17 !== undefined){if(props17 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props17);}}const _errs182 = errors;let valid78 = true;const _errs183 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("outcome" !== data.tag){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}var _valid20 = _errs183 === errors;errors = _errs182;if(vErrors !== null){if(_errs182){vErrors.length = _errs182;}else {vErrors = null;}}if(_valid20){const _errs185 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate38(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}}}var _valid20 = _errs185 === errors;valid78 = _valid20;if(valid78){var props18 = {};props18.args = true;props18.tag = true;}}if(!valid78){const err103 = {instancePath,schemaPath:"#/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(props0 !== true && props18 !== undefined){if(props18 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props18);}}const _errs188 = errors;let valid81 = true;const _errs189 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("list" !== data.tag){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}var _valid21 = _errs189 === errors;errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}if(_valid21){const _errs191 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate40(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}}var _valid21 = _errs191 === errors;valid81 = _valid21;if(valid81){var props19 = {};props19.args = true;props19.tag = true;}}if(!valid81){const err105 = {instancePath,schemaPath:"#/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(props0 !== true && props19 !== undefined){if(props19 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props19);}}const _errs194 = errors;let valid84 = true;const _errs195 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("names" !== data.tag){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}var _valid22 = _errs195 === errors;errors = _errs194;if(vErrors !== null){if(_errs194){vErrors.length = _errs194;}else {vErrors = null;}}if(_valid22){const _errs197 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate42(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}}var _valid22 = _errs197 === errors;valid84 = _valid22;if(valid84){var props20 = {};props20.args = true;props20.tag = true;}}if(!valid84){const err107 = {instancePath,schemaPath:"#/allOf/20/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(props0 !== true && props20 !== undefined){if(props20 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props20);}}const _errs200 = errors;let valid87 = true;const _errs201 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.tag !== undefined){if("named" !== data.tag){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}var _valid23 = _errs201 === errors;errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}if(_valid23){const _errs203 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.args !== undefined){if(!(validate44(data.args, {instancePath:instancePath+"/args",parentData:data,parentDataProperty:"args",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);errors = vErrors.length;}}}var _valid23 = _errs203 === errors;valid87 = _valid23;if(valid87){var props21 = {};props21.args = true;props21.tag = true;}}if(!valid87){const err109 = {instancePath,schemaPath:"#/allOf/21/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(props0 !== true && props21 !== undefined){if(props21 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props21);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.at === undefined){const err110 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "at"},message:"must have required property '"+"at"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data.tag === undefined){const err111 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "tag"},message:"must have required property '"+"tag"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data.args === undefined){const err112 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "args"},message:"must have required property '"+"args"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}for(const key8 in data){if(!((((key8 === "at") || (key8 === "tag")) || (key8 === "args")) || (key8 === "note"))){const err113 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data.at !== undefined){if(typeof data.at !== "string"){const err114 = {instancePath:instancePath+"/at",schemaPath:"#/properties/at/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data.tag !== undefined){let data62 = data.tag;if(!((((((((((((((((((data62 === "amount") || (data62 === "timestamp")) || (data62 === "duration")) || (data62 === "account")) || (data62 === "subaccount")) || (data62 === "bytes")) || (data62 === "text")) || (data62 === "range")) || (data62 === "default")) || (data62 === "describe")) || (data62 === "ui")) || (data62 === "intent")) || (data62 === "effect")) || (data62 === "idempotency")) || (data62 === "outcome")) || (data62 === "list")) || (data62 === "names")) || (data62 === "named"))){const err115 = {instancePath:instancePath+"/tag",schemaPath:"#/properties/tag/enum",keyword:"enum",params:{allowedValues: schema37.properties.tag.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data.args !== undefined){let data63 = data.args;if(!(data63 && typeof data63 == "object" && !Array.isArray(data63))){const err116 = {instancePath:instancePath+"/args",schemaPath:"#/properties/args/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data.note !== undefined){if(typeof data.note !== "string"){const err117 = {instancePath:instancePath+"/note",schemaPath:"#/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}else {const err118 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const pattern7 = new RegExp("^candid-core:interface:v1:sha256:[0-9a-f]{64}$", "u");const pattern8 = new RegExp("^candid-core:contract:v1:sha256:[0-9a-f]{64}$", "u");const pattern9 = new RegExp("^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$", "u");const pattern12 = new RegExp("^[a-z0-9][a-z0-9_.-]{0,63}$", "u");const pattern13 = new RegExp("^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$", "u");const func2 = Object.prototype.hasOwnProperty;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="urn:candid-profile:v0:schema" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("pack" !== data.kind){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){if("pack" !== data.origin){const err1 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/0/then/properties/origin/const",keyword:"const",params:{allowedValue: "pack"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.binds !== undefined){if(!(validate21(data.binds, {instancePath:instancePath+"/binds",parentData:data,parentDataProperty:"binds",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.origin = true;props0.binds = true;props0.kind = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const _errs9 = errors;let valid4 = true;const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("canister" !== data.kind){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}var _valid1 = _errs10 === errors;errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}if(_valid1){const _errs12 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){let data4 = data.origin;if(!(((data4 === "author") || (data4 === "third_party")) || (data4 === "inferred"))){const err4 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/1/then/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.allOf[1].then.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.binds !== undefined){let data5 = data.binds;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.interface_id === undefined){const err5 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/required",keyword:"required",params:{missingProperty: "interface_id"},message:"must have required property '"+"interface_id"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data5){if(!(((key0 === "interface_id") || (key0 === "contract_id")) || (key0 === "canister_id"))){const err6 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data5.interface_id !== undefined){let data6 = data5.interface_id;if(typeof data6 === "string"){if(!pattern7.test(data6)){const err7 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:interface:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:interface:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/binds/interface_id",schemaPath:"#/$defs/canister_binds/properties/interface_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data5.contract_id !== undefined){let data7 = data5.contract_id;if(typeof data7 === "string"){if(!pattern8.test(data7)){const err9 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/pattern",keyword:"pattern",params:{pattern: "^candid-core:contract:v1:sha256:[0-9a-f]{64}$"},message:"must match pattern \""+"^candid-core:contract:v1:sha256:[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/binds/contract_id",schemaPath:"#/$defs/canister_binds/properties/contract_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.canister_id !== undefined){let data8 = data5.canister_id;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err11 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"},message:"must match pattern \""+"^[a-z0-9]{5}(-[a-z0-9]{5})*(-[a-z0-9]{1,5})?$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/binds/canister_id",schemaPath:"#/$defs/canister_binds/properties/canister_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/binds",schemaPath:"#/$defs/canister_binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid1 = _errs12 === errors;valid4 = _valid1;if(valid4){var props1 = {};props1.origin = true;props1.binds = true;props1.kind = true;}}if(!valid4){const err14 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs25 = errors;let valid9 = true;const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("contract" !== data.kind){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}var _valid2 = _errs26 === errors;errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}if(_valid2){const _errs28 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.origin !== undefined){let data10 = data.origin;if(!(((data10 === "author") || (data10 === "third_party")) || (data10 === "inferred"))){const err16 = {instancePath:instancePath+"/origin",schemaPath:"#/allOf/2/then/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.allOf[2].then.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.binds !== undefined){if(!(validate23(data.binds, {instancePath:instancePath+"/binds",parentData:data,parentDataProperty:"binds",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}}}var _valid2 = _errs28 === errors;valid9 = _valid2;if(valid9){var props2 = {};props2.origin = true;props2.binds = true;props2.kind = true;}}if(!valid9){const err17 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err18 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.format_version === undefined){const err19 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format_version"},message:"must have required property '"+"format_version"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.kind === undefined){const err20 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.name === undefined){const err21 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.origin === undefined){const err22 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "origin"},message:"must have required property '"+"origin"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.binds === undefined){const err23 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "binds"},message:"must have required property '"+"binds"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data.annotations === undefined){const err24 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "annotations"},message:"must have required property '"+"annotations"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}for(const key1 in data){if(!(func2.call(schema31.properties, key1))){const err25 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.format !== undefined){if("candid-profile" !== data.format){const err26 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "candid-profile"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.format_version !== undefined){if(0 !== data.format_version){const err27 = {instancePath:instancePath+"/format_version",schemaPath:"#/properties/format_version/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.kind !== undefined){let data14 = data.kind;if(!(((data14 === "canister") || (data14 === "pack")) || (data14 === "contract"))){const err28 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues: schema31.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.name !== undefined){let data15 = data.name;if(typeof data15 === "string"){if(!pattern12.test(data15)){const err29 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9][a-z0-9_.-]{0,63}$"},message:"must match pattern \""+"^[a-z0-9][a-z0-9_.-]{0,63}$"+"\""};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}else {const err30 = {instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.origin !== undefined){let data16 = data.origin;if(!((((data16 === "author") || (data16 === "third_party")) || (data16 === "pack")) || (data16 === "inferred"))){const err31 = {instancePath:instancePath+"/origin",schemaPath:"#/properties/origin/enum",keyword:"enum",params:{allowedValues: schema31.properties.origin.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.language !== undefined){let data17 = data.language;if(typeof data17 === "string"){if(!pattern13.test(data17)){const err32 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err34 = {instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.binds !== undefined){let data19 = data.binds;if(!(data19 && typeof data19 == "object" && !Array.isArray(data19))){const err35 = {instancePath:instancePath+"/binds",schemaPath:"#/properties/binds/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.annotations !== undefined){let data20 = data.annotations;if(Array.isArray(data20)){if(data20.length < 1){const err36 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}const len0 = data20.length;for(let i0=0; i0<len0; i0++){if(!(validate25(data20[i0], {instancePath:instancePath+"/annotations/" + i0,parentData:data20,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}}else {const err37 = {instancePath:instancePath+"/annotations",schemaPath:"#/properties/annotations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
|
|
4
7
|
// Code points, counted as ajv's runtime ucs2length counts them: a surrogate pair is one, a lone surrogate is one.
|
|
5
8
|
function ucs2length(s) {
|
|
6
9
|
let n = 0;
|