Files
SubMiner/vendor/yomitan/lib/validate-schemas.js

5 lines
455 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// @ts-nocheck
import {ucs2length} from './ucs2length.js';"use strict";export const customAudioList = validate10;const schema11 = {"$id":"customAudioList","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["type","audioSources"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"audioSourceList"},"audioSources":{"type":"array","items":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"name":{"type":"string"},"url":{"type":"string"}}}}}};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="customAudioList" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.type === undefined) && (missing0 = "type")) || ((data.audioSources === undefined) && (missing0 = "audioSources"))){validate10.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs1 = errors;for(const key0 in data){if(!((key0 === "type") || (key0 === "audioSources"))){validate10.errors = [{instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs1 === errors){if(data.type !== undefined){let data0 = data.type;const _errs2 = errors;if(typeof data0 !== "string"){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("audioSourceList" !== data0){validate10.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "audioSourceList"},message:"must be equal to constant"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.audioSources !== undefined){let data1 = data.audioSources;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;if(errors === _errs6){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((data2.url === undefined) && (missing1 = "url")){validate10.errors = [{instancePath:instancePath+"/audioSources/" + i0,schemaPath:"#/properties/audioSources/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs8 = errors;for(const key1 in data2){if(!((key1 === "name") || (key1 === "url"))){validate10.errors = [{instancePath:instancePath+"/audioSources/" + i0,schemaPath:"#/properties/audioSources/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs8 === errors){if(data2.name !== undefined){const _errs9 = errors;if(typeof data2.name !== "string"){validate10.errors = [{instancePath:instancePath+"/audioSources/" + i0+"/name",schemaPath:"#/properties/audioSources/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;}else {var valid2 = true;}if(valid2){if(data2.url !== undefined){const _errs11 = errors;if(typeof data2.url !== "string"){validate10.errors = [{instancePath:instancePath+"/audioSources/" + i0+"/url",schemaPath:"#/properties/audioSources/items/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;}else {var valid2 = true;}}}}}else {validate10.errors = [{instancePath:instancePath+"/audioSources/" + i0,schemaPath:"#/properties/audioSources/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs6 === errors;if(!valid1){break;}}}else {validate10.errors = [{instancePath:instancePath+"/audioSources",schemaPath:"#/properties/audioSources/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}export const dictionaryIndex = validate11;const schema12 = {"$id":"dictionaryIndex","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"isoLanguageCode":{"type":"string","description":"ISO language code (ISO 639-1 where possible, ISO 639-3 otherwise).","pattern":"^[a-z]{2,3}$"}},"type":"object","description":"Index file containing information about the data contained in the dictionary.","required":["title","revision"],"properties":{"title":{"type":"string","description":"Title of the dictionary."},"revision":{"type":"string","description":"Revision of the dictionary. This value is displayed, and used to check for dictionary updates."},"minimumYomitanVersion":{"type":"string","description":"Minimum version of Yomitan that is compatible with this dictionary."},"sequenced":{"type":"boolean","default":false,"description":"Whether or not this dictionary contains sequencing information for related terms."},"format":{"type":"integer","description":"Format of data found in the JSON data files.","enum":[1,2,3]},"version":{"type":"integer","description":"Alias for format.","enum":[1,2,3]},"author":{"type":"string","description":"Creator of the dictionary."},"isUpdatable":{"type":"boolean","const":true,"description":"Whether this dictionary contains links to its latest version."},"indexUrl":{"type":"string","description":"URL for the index file of the latest revision of the dictionary, used to check for updates."},"downloadUrl":{"type":"string","description":"URL for the download of the latest revision of the dictionary."},"url":{"type":"string","description":"URL for the source of the dictionary, displayed in the dictionary details."},"description":{"type":"string","description":"Description of the dictionary data."},"attribution":{"type":"string","description":"Attribution information for the dictionary data."},"sourceLanguage":{"$ref":"#/definitions/isoLanguageCode","description":"Language of the terms in the dictionary."},"targetLanguage":{"$ref":"#/definitions/isoLanguageCode","description":"Main language of the definitions in the dictionary."},"frequencyMode":{"type":"string","enum":["occurrence-based","rank-based"]},"tagMeta":{"type":"object","description":"Tag information for terms and kanji. This object is obsolete and individual tag files should be used instead.","additionalProperties":{"type":"object","description":"Information about a single tag. The object key is the name of the tag.","properties":{"category":{"type":"string","description":"Category for the tag."},"order":{"type":"number","description":"Sorting order for the tag."},"notes":{"type":"string","description":"Notes for the tag."},"score":{"type":"number","description":"Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."}},"additionalProperties":false}}},"anyOf":[{"required":["format"]},{"required":["version"]}],"dependencies":{"isUpdatable":["indexUrl","downloadUrl"]}};const schema13 = {"type":"string","description":"ISO language code (ISO 639-1 where possible, ISO 639-3 otherwise).","pattern":"^[a-z]{2,3}$"};const pattern0 = new RegExp("^[a-z]{2,3}$", "u");function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryIndex" */;let vErrors = null;let errors = 0;const _errs1 = errors;let valid0 = false;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.format === undefined) && (missing0 = "format")){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(!valid0){const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.version === undefined) && (missing1 = "version")){const err1 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;}if(!valid0){const err2 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate11.errors = vErrors;return false;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.title === undefined) && (missing2 = "title")) || ((data.revision === undefined) && (missing2 = "revision"))){validate11.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {let missing3;if(data.isUpdatable !== undefined && (((data.indexUrl === undefined) && (missing3 = "indexUrl")) || ((data.downloadUrl === undefined) && (missing3 = "downloadUrl")))){validate11.errors = [{instancePath,schemaPath:"#/dependencies",keyword:"dependencies",params:{property: "isUpdatable",
missingProperty: missing3,
depsCount: 2,
deps: "indexUrl, downloadUrl"},message:"must have properties indexUrl, downloadUrl when property isUpdatable is present"}];return false;}else {if(data.title !== undefined){const _errs4 = errors;if(typeof data.title !== "string"){validate11.errors = [{instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs4 === errors;}else {var valid2 = true;}if(valid2){if(data.revision !== undefined){const _errs6 = errors;if(typeof data.revision !== "string"){validate11.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs6 === errors;}else {var valid2 = true;}if(valid2){if(data.minimumYomitanVersion !== undefined){const _errs8 = errors;if(typeof data.minimumYomitanVersion !== "string"){validate11.errors = [{instancePath:instancePath+"/minimumYomitanVersion",schemaPath:"#/properties/minimumYomitanVersion/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs8 === errors;}else {var valid2 = true;}if(valid2){if(data.sequenced !== undefined){const _errs10 = errors;if(typeof data.sequenced !== "boolean"){validate11.errors = [{instancePath:instancePath+"/sequenced",schemaPath:"#/properties/sequenced/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.format !== undefined){let data4 = data.format;const _errs12 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){validate11.errors = [{instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(!(((data4 === 1) || (data4 === 2)) || (data4 === 3))){validate11.errors = [{instancePath:instancePath+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues: schema12.properties.format.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs12 === errors;}else {var valid2 = true;}if(valid2){if(data.version !== undefined){let data5 = data.version;const _errs14 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){validate11.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(!(((data5 === 1) || (data5 === 2)) || (data5 === 3))){validate11.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/enum",keyword:"enum",params:{allowedValues: schema12.properties.version.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs14 === errors;}else {var valid2 = true;}if(valid2){if(data.author !== undefined){const _errs16 = errors;if(typeof data.author !== "string"){validate11.errors = [{instancePath:instancePath+"/author",schemaPath:"#/properties/author/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs16 === errors;}else {var valid2 = true;}if(valid2){if(data.isUpdatable !== undefined){let data7 = data.isUpdatable;const _errs18 = errors;if(typeof data7 !== "boolean"){validate11.errors = [{instancePath:instancePath+"/isUpdatable",schemaPath:"#/properties/isUpdatable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}if(true !== data7){validate11.errors = [{instancePath:instancePath+"/isUpdatable",schemaPath:"#/properties/isUpdatable/const",keyword:"const",params:{allowedValue: true},message:"must be equal to constant"}];return false;}var valid2 = _errs18 === errors;}else {var valid2 = true;}if(valid2){if(data.indexUrl !== undefined){const _errs20 = errors;if(typeof data.indexUrl !== "string"){validate11.errors = [{instancePath:instancePath+"/indexUrl",schemaPath:"#/properties/indexUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs20 === errors;}else {var valid2 = true;}if(valid2){if(data.downloadUrl !== undefined){const _errs22 = errors;if(typeof data.downloadUrl !== "string"){validate11.errors = [{instancePath:instancePath+"/downloadUrl",schemaPath:"#/properties/downloadUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs22 === errors;}else {var valid2 = true;}if(valid2){if(data.url !== undefined){const _errs24 = errors;if(typeof data.url !== "string"){validate11.errors = [{instancePath:instancePath+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs24 === errors;}else {var valid2 = true;}if(valid2){if(data.description !== undefined){const _errs26 = errors;if(typeof data.description !== "string"){validate11.errors = [{instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs26 === errors;}else {var valid2 = true;}if(valid2){if(data.attribution !== undefined){const _errs28 = errors;if(typeof data.attribution !== "string"){validate11.errors = [{instancePath:instancePath+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs28 === errors;}else {var valid2 = true;}if(valid2){if(data.sourceLanguage !== undefined){let data13 = data.sourceLanguage;const _errs30 = errors;const _errs31 = errors;if(errors === _errs31){if(typeof data13 === "string"){if(!pattern0.test(data13)){validate11.errors = [{instancePath:instancePath+"/sourceLanguage",schemaPath:"#/definitions/isoLanguageCode/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}$"},message:"must match pattern \""+"^[a-z]{2,3}$"+"\""}];return false;}}else {validate11.errors = [{instancePath:instancePath+"/sourceLanguage",schemaPath:"#/definitions/isoLanguageCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs30 === errors;}else {var valid2 = true;}if(valid2){if(data.targetLanguage !== undefined){let data14 = data.targetLanguage;const _errs33 = errors;const _errs34 = errors;if(errors === _errs34){if(typeof data14 === "string"){if(!pattern0.test(data14)){validate11.errors = [{instancePath:instancePath+"/targetLanguage",schemaPath:"#/definitions/isoLanguageCode/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}$"},message:"must match pattern \""+"^[a-z]{2,3}$"+"\""}];return false;}}else {validate11.errors = [{instancePath:instancePath+"/targetLanguage",schemaPath:"#/definitions/isoLanguageCode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs33 === errors;}else {var valid2 = true;}if(valid2){if(data.frequencyMode !== undefined){let data15 = data.frequencyMode;const _errs36 = errors;if(typeof data15 !== "string"){validate11.errors = [{instancePath:instancePath+"/frequencyMode",schemaPath:"#/properties/frequencyMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data15 === "occurrence-based") || (data15 === "rank-based"))){validate11.errors = [{instancePath:instancePath+"/frequencyMode",schemaPath:"#/properties/frequencyMode/enum",keyword:"enum",params:{allowedValues: schema12.properties.frequencyMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs36 === errors;}else {var valid2 = true;}if(valid2){if(data.tagMeta !== undefined){let data16 = data.tagMeta;const _errs38 = errors;if(errors === _errs38){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){for(const key0 in data16){let data17 = data16[key0];const _errs41 = errors;if(errors === _errs41){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){const _errs43 = errors;for(const key1 in data17){if(!((((key1 === "category") || (key1 === "order")) || (key1 === "notes")) || (key1 === "score"))){validate11.errors = [{instancePath:instancePath+"/tagMeta/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/tagMeta/additionalProperties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs43 === errors){if(data17.category !== undefined){const _errs44 = errors;if(typeof data17.category !== "string"){validate11.errors = [{instancePath:instancePath+"/tagMeta/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/category",schemaPath:"#/properties/tagMeta/additionalProperties/properties/category/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs44 === errors;}else {var valid6 = true;}if(valid6){if(data17.order !== undefined){let data19 = data17.order;const _errs46 = errors;if(!((typeof data19 == "number") && (isFinite(data19)))){validate11.errors = [{instancePath:instancePath+"/tagMeta/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/order",schemaPath:"#/properties/tagMeta/additionalProperties/properties/order/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid6 = _errs46 === errors;}else {var valid6 = true;}if(valid6){if(data17.notes !== undefined){const _errs48 = errors;if(typeof data17.notes !== "string"){validate11.errors = [{instancePath:instancePath+"/tagMeta/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/notes",schemaPath:"#/properties/tagMeta/additionalProperties/properties/notes/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs48 === errors;}else {var valid6 = true;}if(valid6){if(data17.score !== undefined){let data21 = data17.score;const _errs50 = errors;if(!((typeof data21 == "number") && (isFinite(data21)))){validate11.errors = [{instancePath:instancePath+"/tagMeta/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/score",schemaPath:"#/properties/tagMeta/additionalProperties/properties/score/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid6 = _errs50 === errors;}else {var valid6 = true;}}}}}}else {validate11.errors = [{instancePath:instancePath+"/tagMeta/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/tagMeta/additionalProperties/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs41 === errors;if(!valid5){break;}}}else {validate11.errors = [{instancePath:instancePath+"/tagMeta",schemaPath:"#/properties/tagMeta/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs38 === errors;}else {var valid2 = true;}}}}}}}}}}}}}}}}}}}}else {validate11.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate11.errors = vErrors;return errors === 0;}export const dictionaryKanjiBankV1 = validate12;const schema15 = {"$id":"dictionaryKanjiBankV1","$schema":"http://json-schema.org/draft-07/schema#","type":"array","description":"Data file containing kanji information.","items":{"type":"array","description":"Information about a single kanji character.","minItems":4,"maxItems":4,"items":[{"type":"string","description":"Kanji character.","minLength":1},{"type":"string","description":"String of space-separated onyomi readings for the kanji character. An empty string is treated as no readings."},{"type":"string","description":"String of space-separated kunyomi readings for the kanji character. An empty string is treated as no readings."},{"type":"string","description":"String of space-separated tags for the kanji character. An empty string is treated as no tags."}],"additionalItems":{"type":"string","description":"A meaning for the kanji character."}}};const func2 = ucs2length;function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryKanjiBankV1" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 4){validate12.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 4},message:"must NOT have more than 4 items"}];return false;}else {if(data0.length < 4){validate12.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 4},message:"must NOT have fewer than 4 items"}];return false;}else {const len1 = data0.length;var valid1 = len1 <= 4;if(!valid1){for(let i1=4; i1<len1; i1++){const _errs3 = errors;if(typeof data0[i1] !== "string"){validate12.errors = [{instancePath:instancePath+"/" + i0+"/" + i1,schemaPath:"#/items/additionalItems/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs3 === errors;if(!valid1){break;}}}if(valid1){const len2 = data0.length;if(len2 > 0){let data2 = data0[0];const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func2(data2) < 1){validate12.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate12.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs5 === errors;}if(valid2){if(len2 > 1){const _errs7 = errors;if(typeof data0[1] !== "string"){validate12.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs7 === errors;}if(valid2){if(len2 > 2){const _errs9 = errors;if(typeof data0[2] !== "string"){validate12.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;}if(valid2){if(len2 > 3){const _errs11 = errors;if(typeof data0[3] !== "string"){validate12.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;}}}}}}}}else {validate12.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate12.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate12.errors = vErrors;return errors === 0;}export const dictionaryKanjiBankV3 = validate13;const schema16 = {"$id":"dictionaryKanjiBankV3","$schema":"http://json-schema.org/draft-07/schema#","type":"array","description":"Data file containing kanji information.","items":{"type":"array","description":"Information about a single kanji character.","minItems":6,"maxItems":6,"additionalItems":false,"items":[{"type":"string","description":"Kanji character.","minLength":1},{"type":"string","description":"String of space-separated onyomi readings for the kanji character. An empty string is treated as no readings."},{"type":"string","description":"String of space-separated kunyomi readings for the kanji character. An empty string is treated as no readings."},{"type":"string","description":"String of space-separated tags for the kanji character. An empty string is treated as no tags."},{"type":"array","description":"Array of meanings for the kanji character.","items":{"type":"string","description":"A meaning for the kanji character."}},{"type":"object","description":"Various stats for the kanji character.","additionalProperties":{"type":"string"}}]}};function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryKanjiBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 6){validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 6},message:"must NOT have more than 6 items"}];return false;}else {if(data0.length < 6){validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 6},message:"must NOT have fewer than 6 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 6)){validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 6},message:"must NOT have more than 6 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){let data1 = data0[0];const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func2(data1) < 1){validate13.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate13.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){const _errs5 = errors;if(typeof data0[1] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){const _errs7 = errors;if(typeof data0[2] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs7 === errors;}if(valid1){if(len2 > 3){const _errs9 = errors;if(typeof data0[3] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}if(valid1){if(len2 > 4){let data5 = data0[4];const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data5)){var valid2 = true;const len3 = data5.length;for(let i1=0; i1<len3; i1++){const _errs13 = errors;if(typeof data5[i1] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/4/" + i1,schemaPath:"#/items/items/4/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs13 === errors;if(!valid2){break;}}}else {validate13.errors = [{instancePath:instancePath+"/" + i0+"/4",schemaPath:"#/items/items/4/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs11 === errors;}if(valid1){if(len2 > 5){let data7 = data0[5];const _errs15 = errors;if(errors === _errs15){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key0 in data7){const _errs18 = errors;if(typeof data7[key0] !== "string"){validate13.errors = [{instancePath:instancePath+"/" + i0+"/5/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/items/items/5/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs18 === errors;if(!valid3){break;}}}else {validate13.errors = [{instancePath:instancePath+"/" + i0+"/5",schemaPath:"#/items/items/5/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs15 === errors;}}}}}}}}}}else {validate13.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate13.errors = vErrors;return errors === 0;}export const dictionaryKanjiMetaBankV3 = validate14;const schema17 = {"$id":"dictionaryKanjiMetaBankV3","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"frequency":{"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]}},"type":"array","description":"Custom metadata for kanji characters.","items":{"type":"array","description":"Metadata about a single kanji character.","minItems":3,"maxItems":3,"additionalItems":false,"items":[{"type":"string","minLength":1},{"type":"string","const":"freq","description":"Type of data. \"freq\" corresponds to frequency information."},{"$ref":"#/definitions/frequency","description":"Data for the character."}]}};const schema18 = {"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]};function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryKanjiMetaBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 3){validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {if(data0.length < 3){validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 3)){validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){let data1 = data0[0];const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func2(data1) < 1){validate14.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate14.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){let data2 = data0[1];const _errs5 = errors;if(typeof data2 !== "string"){validate14.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("freq" !== data2){validate14.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/const",keyword:"const",params:{allowedValue: "freq"},message:"must be equal to constant"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){let data3 = data0[2];const _errs7 = errors;const _errs9 = errors;let valid3 = false;let passing0 = null;const _errs10 = errors;if((typeof data3 !== "string") && (!((typeof data3 == "number") && (isFinite(data3))))){const err0 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/0/type",keyword:"type",params:{type: schema18.oneOf[0].type},message:"must be string,number"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;if(_valid0){valid3 = true;passing0 = 0;}const _errs12 = errors;if(errors === _errs12){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing0;if((data3.value === undefined) && (missing0 = "value")){const err1 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const _errs14 = errors;for(const key0 in data3){if(!((key0 === "value") || (key0 === "displayValue"))){const err2 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;break;}}if(_errs14 === errors){if(data3.value !== undefined){let data4 = data3.value;const _errs15 = errors;if(!((typeof data4 == "number") && (isFinite(data4)))){const err3 = {instancePath:instancePath+"/" + i0+"/2/value",schemaPath:"#/definitions/frequency/oneOf/1/properties/value/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs15 === errors;}else {var valid4 = true;}if(valid4){if(data3.displayValue !== undefined){const _errs17 = errors;if(typeof data3.displayValue !== "string"){const err4 = {instancePath:instancePath+"/" + i0+"/2/displayValue",schemaPath:"#/definitions/frequency/oneOf/1/properties/displayValue/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid4 = _errs17 === errors;}else {var valid4 = true;}}}}}else {const err5 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs12 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 1];}else {if(_valid0){valid3 = true;passing0 = 1;}}if(!valid3){const err6 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate14.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid1 = _errs7 === errors;}}}}}}}else {validate14.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate14.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate14.errors = vErrors;return errors === 0;}export const dictionaryTagBankV3 = validate15;const schema19 = {"$id":"dictionaryTagBankV3","$schema":"http://json-schema.org/draft-07/schema#","type":"array","description":"Data file containing tag information for terms and kanji.","items":{"type":"array","description":"Information about a single tag.","minItems":5,"maxItems":5,"additionalItems":false,"items":[{"type":"string","description":"Tag name."},{"type":"string","description":"Category for the tag."},{"type":"number","description":"Sorting order for the tag."},{"type":"string","description":"Notes for the tag."},{"type":"number","description":"Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."}]}};function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTagBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 5){validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"}];return false;}else {if(data0.length < 5){validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 5},message:"must NOT have fewer than 5 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 5)){validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 5},message:"must NOT have more than 5 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){const _errs3 = errors;if(typeof data0[0] !== "string"){validate15.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){const _errs5 = errors;if(typeof data0[1] !== "string"){validate15.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){let data3 = data0[2];const _errs7 = errors;if(!((typeof data3 == "number") && (isFinite(data3)))){validate15.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs7 === errors;}if(valid1){if(len2 > 3){const _errs9 = errors;if(typeof data0[3] !== "string"){validate15.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}if(valid1){if(len2 > 4){let data5 = data0[4];const _errs11 = errors;if(!((typeof data5 == "number") && (isFinite(data5)))){validate15.errors = [{instancePath:instancePath+"/" + i0+"/4",schemaPath:"#/items/items/4/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs11 === errors;}}}}}}}}}else {validate15.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate15.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate15.errors = vErrors;return errors === 0;}export const dictionaryTermBankV1 = validate16;const schema20 = {"$id":"dictionaryTermBankV1","$schema":"http://json-schema.org/draft-07/schema#","type":"array","description":"Data file containing term information.","items":{"type":"array","description":"Information about a single term.","minItems":5,"maxItems":5,"items":[{"type":"string","description":"The text for the term."},{"type":"string","description":"Reading of the term, or an empty string if the reading is the same as the term."},{"type":["string","null"],"description":"String of space-separated tags for the definition. An empty string is treated as no tags."},{"type":"string","description":"String of space-separated rule identifiers for the definition which is used to validate delinflection. Valid rule identifiers are: v1: ichidan verb; v5: godan verb; vs: suru verb; vz: zuru verb; vk: kuru verb; adj-i: i-adjective. An empty string corresponds to words which aren't inflected, such as nouns."},{"type":"number","description":"Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."}],"additionalItems":{"type":"string","description":"Single definition for the term."}}};function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTermBankV1" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 5){validate16.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"}];return false;}else {if(data0.length < 5){validate16.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 5},message:"must NOT have fewer than 5 items"}];return false;}else {const len1 = data0.length;var valid1 = len1 <= 5;if(!valid1){for(let i1=5; i1<len1; i1++){const _errs3 = errors;if(typeof data0[i1] !== "string"){validate16.errors = [{instancePath:instancePath+"/" + i0+"/" + i1,schemaPath:"#/items/additionalItems/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs3 === errors;if(!valid1){break;}}}if(valid1){const len2 = data0.length;if(len2 > 0){const _errs5 = errors;if(typeof data0[0] !== "string"){validate16.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs5 === errors;}if(valid2){if(len2 > 1){const _errs7 = errors;if(typeof data0[1] !== "string"){validate16.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs7 === errors;}if(valid2){if(len2 > 2){let data4 = data0[2];const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate16.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: schema20.items.items[2].type},message:"must be string,null"}];return false;}var valid2 = _errs9 === errors;}if(valid2){if(len2 > 3){const _errs11 = errors;if(typeof data0[3] !== "string"){validate16.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs11 === errors;}if(valid2){if(len2 > 4){let data6 = data0[4];const _errs13 = errors;if(!((typeof data6 == "number") && (isFinite(data6)))){validate16.errors = [{instancePath:instancePath+"/" + i0+"/4",schemaPath:"#/items/items/4/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid2 = _errs13 === errors;}}}}}}}}}else {validate16.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate16.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate16.errors = vErrors;return errors === 0;}export const dictionaryTermBankV3 = validate17;const schema21 = {"$id":"dictionaryTermBankV3","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"structuredContent":{"oneOf":[{"type":"string","description":"Represents a text node."},{"type":"array","items":{"$ref":"#/definitions/structuredContent","description":"An array of child content."}},{"type":"object","oneOf":[{"type":"object","description":"Empty tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"br"},"data":{"$ref":"#/definitions/structuredContentData"}}},{"type":"object","description":"Generic container tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["ruby","rt","rp","table","thead","tbody","tfoot","tr"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Table tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["td","th"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"colSpan":{"type":"integer","minimum":1},"rowSpan":{"type":"integer","minimum":1},"style":{"$ref":"#/definitions/structuredContentStyle"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Container tags supporting configurable styles.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["span","div","ol","ul","li","details","summary"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"style":{"$ref":"#/definitions/structuredContentStyle"},"title":{"type":"string","description":"Hover text for the element."},"open":{"type":"boolean","description":"Whether or not the details element is open by default."},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Image tag.","required":["tag","path"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"img"},"data":{"$ref":"#/definitions/structuredContentData"},"path":{"type":"string","description":"Path to the image file in the archive."},"width":{"type":"number","description":"Preferred width of the image.","minimum":0},"height":{"type":"number","description":"Preferred height of the image.","minimum":0},"title":{"type":"string","description":"Hover text for the image."},"alt":{"type":"string","description":"Alt text for the image."},"description":{"type":"string","description":"Description of the image."},"pixelated":{"type":"boolean","description":"Whether or not the image should appear pixelated at sizes larger than the image's native resolution.","default":false},"imageRendering":{"type":"string","description":"Controls how the image is rendered. The value of this field supersedes the pixelated field.","enum":["auto","pixelated","crisp-edges"],"default":"auto"},"appearance":{"type":"string","description":"Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.","enum":["auto","monochrome"],"default":"auto"},"background":{"type":"boolean","description":"Whether or not a background color is displayed behind the image.","default":true},"collapsed":{"type":"boolean","description":"Whether or not the image is collapsed by default.","default":false},"collapsible":{"type":"boolean","description":"Whether or not the image can be collapsed.","default":false},"verticalAlign":{"type":"string","description":"The vertical alignment of the image.","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"]},"border":{"type":"string","description":"Shorthand for border width, style, and color."},"borderRadius":{"type":"string","description":"Roundness of the corners of the image's outer border edge."},"sizeUnits":{"type":"string","description":"The units for the width and height.","enum":["px","em"]}}},{"type":"object","description":"Link tag.","required":["tag","href"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"a"},"content":{"$ref":"#/definitions/structuredContent"},"href":{"type":"string","description":"The URL for the link. URLs starting with a ? are treated as internal links to other dictionary content.","pattern":"^(?:https?:|\\?)[\\w\\W]*"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}}]}]},"structuredContentData":{"type":"object","description":"Generic data attributes that should be added to the element.","additionalProperties":{"type":"string"}},"structuredContentStyle":{"type":"object","additionalProperties":false,"properties":{"fontStyle":{"type":"string","enum":["normal","italic"],"default":"normal"},"fontWeight":{"type":"string","enum":["normal","bold"],"default":"normal"},"fontSize":{"type":"string","default":"medium"},"color":{"type":"string"},"background":{"type":"string"},"backgroundColor":{"type":"string"},"textDecorationLine":{"oneOf":[{"type":"string","enum":["none","underline","overline","line-through"],"default":"none"},{"type":"array","items":{"type":"string","enum":["underline","overline","line-through"],"default":"none"}}]},"textDecorationStyle":{"type":"string","enum":["solid","double","dotted","dashed","wavy"],"default":"solid"},"textDecorationColor":{"type":"string"},"borderColor":{"type":"string"},"borderStyle":{"type":"string"},"borderRadius":{"type":"string"},"borderWidth":{"type":"string"},"clipPath":{"type":"string"},"verticalAlign":{"type":"string","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"],"default":"baseline"},"textAlign":{"type":"string","enum":["start","end","left","right","center","justify","justify-all","match-parent"],"default":"start"},"textEmphasis":{"type":"string"},"textShadow":{"type":"string"},"margin":{"type":"string"},"marginTop":{"type":["number","string"],"default":0},"marginLeft":{"type":["number","string"],"default":0},"marginRight":{"type":["number","string"],"default":0},"marginBottom":{"type":["number","string"],"default":0},"padding":{"type":"string"},"paddingTop":{"type":"string"},"paddingLeft":{"type":"string"},"paddingRight":{"type":"string"},"paddingBottom":{"type":"string"},"wordBreak":{"type":"string","enum":["normal","break-all","keep-all"],"default":"normal"},"whiteSpace":{"type":"string","default":"normal"},"cursor":{"type":"string","default":"auto"},"listStyleType":{"type":"string","default":"disc"}}}},"type":"array","description":"Data file containing term information.","items":{"type":"array","description":"Information about a single term.","minItems":8,"maxItems":8,"additionalItems":false,"items":[{"type":"string","description":"The text for the term."},{"type":"string","description":"Reading of the term, or an empty string if the reading is the same as the term."},{"type":["string","null"],"description":"String of space-separated tags for the definition. An empty string is treated as no tags."},{"type":"string","description":"String of space-separated rule identifiers for the definition which is used to validate deinflection. An empty string should be used for words which aren't inflected."},{"type":"number","description":"Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."},{"type":"array","description":"Array of definitions for the term.","items":{"oneOf":[{"type":"string","description":"Single definition for the term."},{"type":"object","description":"Single detailed definition for the term.","required":["type"],"properties":{"type":{"type":"string","description":"The type of the data for this definition.","enum":["text","image","structured-content"]}},"oneOf":[{"required":["type","text"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","description":"Single definition for the term."}}},{"required":["type","content"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"structured-content"},"content":{"$ref":"#/definitions/structuredContent","description":"Single definition for the term using a structured content object."}}},{"required":["type","path"],"additionalProperties":false,"properties":{"type":{"type":"string","const":"image"},"path":{"type":"string","description":"Path to the image file in the archive."},"width":{"type":"integer","description":"Preferred width of the image.","minimum":1},"height":{"type":"integer","description":"Preferred height of the image.","minimum":1},"title":{"type":"string","description":"Hover text for the image."},"alt":{"type":"string","description":"Alt text for the image."},"description":{"type":"string","description":"Description of the image."},"pixelated":{"type":"boolean","description":"Whether or not the image should appear pixelated at sizes larger than the image's native resolution.","default":false},"imageRendering":{"type":"string","description":"Controls how the image is rendered. The value of this field supersedes the pixelated field.","enum":["auto","pixelated","crisp-edges"],"default":"auto"},"appearance":{"type":"string","description":"Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.","enum":["auto","monochrome"],"default":"auto"},"background":{"type":"boolean","description":"Whether or not a background color is displayed behind the image.","default":true},"collapsed":{"type":"boolean","description":"Whether or not the image is collapsed by default.","default":false},"collapsible":{"type":"boolean","description":"Whether or not the image can be collapsed.","default":true}}}]},{"type":"array","description":"Deinflection of the term to an uninflected term.","minItems":2,"maxItems":2,"items":[{"type":"string","description":"The uninflected term."},{"type":"array","description":"A chain of inflection rules that produced the inflected term","items":{"type":"string","description":"A single inflection rule."}}]}]}},{"type":"integer","description":"Sequence number for the term. Terms with the same sequence number can be shown together when the \"resultOutputMode\" option is set to \"merge\"."},{"type":"string","description":"String of space-separated tags for the term. An empty string is treated as no tags."}]}};const schema22 = {"oneOf":[{"type":"string","description":"Represents a text node."},{"type":"array","items":{"$ref":"#/definitions/structuredContent","description":"An array of child content."}},{"type":"object","oneOf":[{"type":"object","description":"Empty tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"br"},"data":{"$ref":"#/definitions/structuredContentData"}}},{"type":"object","description":"Generic container tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["ruby","rt","rp","table","thead","tbody","tfoot","tr"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Table tags.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["td","th"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"colSpan":{"type":"integer","minimum":1},"rowSpan":{"type":"integer","minimum":1},"style":{"$ref":"#/definitions/structuredContentStyle"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Container tags supporting configurable styles.","required":["tag"],"additionalProperties":false,"properties":{"tag":{"type":"string","enum":["span","div","ol","ul","li","details","summary"]},"content":{"$ref":"#/definitions/structuredContent"},"data":{"$ref":"#/definitions/structuredContentData"},"style":{"$ref":"#/definitions/structuredContentStyle"},"title":{"type":"string","description":"Hover text for the element."},"open":{"type":"boolean","description":"Whether or not the details element is open by default."},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}},{"type":"object","description":"Image tag.","required":["tag","path"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"img"},"data":{"$ref":"#/definitions/structuredContentData"},"path":{"type":"string","description":"Path to the image file in the archive."},"width":{"type":"number","description":"Preferred width of the image.","minimum":0},"height":{"type":"number","description":"Preferred height of the image.","minimum":0},"title":{"type":"string","description":"Hover text for the image."},"alt":{"type":"string","description":"Alt text for the image."},"description":{"type":"string","description":"Description of the image."},"pixelated":{"type":"boolean","description":"Whether or not the image should appear pixelated at sizes larger than the image's native resolution.","default":false},"imageRendering":{"type":"string","description":"Controls how the image is rendered. The value of this field supersedes the pixelated field.","enum":["auto","pixelated","crisp-edges"],"default":"auto"},"appearance":{"type":"string","description":"Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.","enum":["auto","monochrome"],"default":"auto"},"background":{"type":"boolean","description":"Whether or not a background color is displayed behind the image.","default":true},"collapsed":{"type":"boolean","description":"Whether or not the image is collapsed by default.","default":false},"collapsible":{"type":"boolean","description":"Whether or not the image can be collapsed.","default":false},"verticalAlign":{"type":"string","description":"The vertical alignment of the image.","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"]},"border":{"type":"string","description":"Shorthand for border width, style, and color."},"borderRadius":{"type":"string","description":"Roundness of the corners of the image's outer border edge."},"sizeUnits":{"type":"string","description":"The units for the width and height.","enum":["px","em"]}}},{"type":"object","description":"Link tag.","required":["tag","href"],"additionalProperties":false,"properties":{"tag":{"type":"string","const":"a"},"content":{"$ref":"#/definitions/structuredContent"},"href":{"type":"string","description":"The URL for the link. URLs starting with a ? are treated as internal links to other dictionary content.","pattern":"^(?:https?:|\\?)[\\w\\W]*"},"lang":{"type":"string","description":"Defines the language of an element in the format defined by RFC 5646."}}}]}]};const schema23 = {"type":"object","description":"Generic data attributes that should be added to the element.","additionalProperties":{"type":"string"}};const schema26 = {"type":"object","additionalProperties":false,"properties":{"fontStyle":{"type":"string","enum":["normal","italic"],"default":"normal"},"fontWeight":{"type":"string","enum":["normal","bold"],"default":"normal"},"fontSize":{"type":"string","default":"medium"},"color":{"type":"string"},"background":{"type":"string"},"backgroundColor":{"type":"string"},"textDecorationLine":{"oneOf":[{"type":"string","enum":["none","underline","overline","line-through"],"default":"none"},{"type":"array","items":{"type":"string","enum":["underline","overline","line-through"],"default":"none"}}]},"textDecorationStyle":{"type":"string","enum":["solid","double","dotted","dashed","wavy"],"default":"solid"},"textDecorationColor":{"type":"string"},"borderColor":{"type":"string"},"borderStyle":{"type":"string"},"borderRadius":{"type":"string"},"borderWidth":{"type":"string"},"clipPath":{"type":"string"},"verticalAlign":{"type":"string","enum":["baseline","sub","super","text-top","text-bottom","middle","top","bottom"],"default":"baseline"},"textAlign":{"type":"string","enum":["start","end","left","right","center","justify","justify-all","match-parent"],"default":"start"},"textEmphasis":{"type":"string"},"textShadow":{"type":"string"},"margin":{"type":"string"},"marginTop":{"type":["number","string"],"default":0},"marginLeft":{"type":["number","string"],"default":0},"marginRight":{"type":["number","string"],"default":0},"marginBottom":{"type":["number","string"],"default":0},"padding":{"type":"string"},"paddingTop":{"type":"string"},"paddingLeft":{"type":"string"},"paddingRight":{"type":"string"},"paddingBottom":{"type":"string"},"wordBreak":{"type":"string","enum":["normal","break-all","keep-all"],"default":"normal"},"whiteSpace":{"type":"string","default":"normal"},"cursor":{"type":"string","default":"auto"},"listStyleType":{"type":"string","default":"disc"}}};const wrapper0 = {validate: validate18};const func5 = Object.prototype.hasOwnProperty;const pattern2 = new RegExp("^(?:https?:|\\?)[\\w\\W]*", "u");function validate18(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data)){var valid1 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){const _errs5 = errors;if(!(wrapper0.validate(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;if(!valid1){break;}}}else {const err1 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};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;}const _errs6 = errors;if(!(data && typeof data == "object" && !Array.isArray(data))){const err2 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}const _errs8 = errors;let valid2 = false;let passing1 = null;const _errs9 = errors;if(errors === _errs9){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.tag === undefined) && (missing0 = "tag")){const err3 = {instancePath,schemaPath:"#/oneOf/2/oneOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const _errs11 = errors;for(const key0 in data){if(!((key0 === "tag") || (key0 === "data"))){const err4 = {instancePath,schemaPath:"#/oneOf/2/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;break;}}if(_errs11 === errors){if(data.tag !== undefined){let data1 = data.tag;const _errs12 = errors;if(typeof data1 !== "string"){const err5 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/0/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if("br" !== data1){const err6 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/0/properties/tag/const",keyword:"const",params:{allowedValue: "br"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid3 = _errs12 === errors;}else {var valid3 = true;}if(valid3){if(data.data !== undefined){let data2 = data.data;const _errs14 = errors;const _errs15 = errors;if(errors === _errs15){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){for(const key1 in data2){const _errs18 = errors;if(typeof data2[key1] !== "string"){const err7 = {instancePath:instancePath+"/data/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/structuredContentData/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid5 = _errs18 === errors;if(!valid5){break;}}}else {const err8 = {instancePath:instancePath+"/data",schemaPath:"#/definitions/structuredContentData/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid3 = _errs14 === errors;}else {var valid3 = true;}}}}}else {const err9 = {instancePath,schemaPath:"#/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid1 = _errs9 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs20 = errors;if(errors === _errs20){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.tag === undefined) && (missing1 = "tag")){const err10 = {instancePath,schemaPath:"#/oneOf/2/oneOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {const _errs22 = errors;for(const key2 in data){if(!((((key2 === "tag") || (key2 === "content")) || (key2 === "data")) || (key2 === "lang"))){const err11 = {instancePath,schemaPath:"#/oneOf/2/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;break;}}if(_errs22 === errors){if(data.tag !== undefined){let data4 = data.tag;const _errs23 = errors;if(typeof data4 !== "string"){const err12 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/1/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!((((((((data4 === "ruby") || (data4 === "rt")) || (data4 === "rp")) || (data4 === "table")) || (data4 === "thead")) || (data4 === "tbody")) || (data4 === "tfoot")) || (data4 === "tr"))){const err13 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/1/properties/tag/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[1].properties.tag.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid6 = _errs23 === errors;}else {var valid6 = true;}if(valid6){if(data.content !== undefined){const _errs25 = errors;if(!(wrapper0.validate(data.content, {instancePath:instancePath+"/content",parentData:data,parentDataProperty:"content",rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid6 = _errs25 === errors;}else {var valid6 = true;}if(valid6){if(data.data !== undefined){let data6 = data.data;const _errs26 = errors;const _errs27 = errors;if(errors === _errs27){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){for(const key3 in data6){const _errs30 = errors;if(typeof data6[key3] !== "string"){const err14 = {instancePath:instancePath+"/data/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/structuredContentData/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid8 = _errs30 === errors;if(!valid8){break;}}}else {const err15 = {instancePath:instancePath+"/data",schemaPath:"#/definitions/structuredContentData/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var valid6 = _errs26 === errors;}else {var valid6 = true;}if(valid6){if(data.lang !== undefined){const _errs32 = errors;if(typeof data.lang !== "string"){const err16 = {instancePath:instancePath+"/lang",schemaPath:"#/oneOf/2/oneOf/1/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid6 = _errs32 === errors;}else {var valid6 = true;}}}}}}}else {const err17 = {instancePath,schemaPath:"#/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var _valid1 = _errs20 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs34 = errors;if(errors === _errs34){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.tag === undefined) && (missing2 = "tag")){const err18 = {instancePath,schemaPath:"#/oneOf/2/oneOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {const _errs36 = errors;for(const key4 in data){if(!(((((((key4 === "tag") || (key4 === "content")) || (key4 === "data")) || (key4 === "colSpan")) || (key4 === "rowSpan")) || (key4 === "style")) || (key4 === "lang"))){const err19 = {instancePath,schemaPath:"#/oneOf/2/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;break;}}if(_errs36 === errors){if(data.tag !== undefined){let data9 = data.tag;const _errs37 = errors;if(typeof data9 !== "string"){const err20 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/2/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(!((data9 === "td") || (data9 === "th"))){const err21 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/2/properties/tag/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[2].properties.tag.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid9 = _errs37 === errors;}else {var valid9 = true;}if(valid9){if(data.content !== undefined){const _errs39 = errors;if(!(wrapper0.validate(data.content, {instancePath:instancePath+"/content",parentData:data,parentDataProperty:"content",rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid9 = _errs39 === errors;}else {var valid9 = true;}if(valid9){if(data.data !== undefined){let data11 = data.data;const _errs40 = errors;const _errs41 = errors;if(errors === _errs41){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){for(const key5 in data11){const _errs44 = errors;if(typeof data11[key5] !== "string"){const err22 = {instancePath:instancePath+"/data/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/structuredContentData/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid11 = _errs44 === errors;if(!valid11){break;}}}else {const err23 = {instancePath:instancePath+"/data",schemaPath:"#/definitions/structuredContentData/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var valid9 = _errs40 === errors;}else {var valid9 = true;}if(valid9){if(data.colSpan !== undefined){let data13 = data.colSpan;const _errs46 = errors;if(!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))){const err24 = {instancePath:instancePath+"/colSpan",schemaPath:"#/oneOf/2/oneOf/2/properties/colSpan/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(errors === _errs46){if((typeof data13 == "number") && (isFinite(data13))){if(data13 < 1 || isNaN(data13)){const err25 = {instancePath:instancePath+"/colSpan",schemaPath:"#/oneOf/2/oneOf/2/properties/colSpan/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}var valid9 = _errs46 === errors;}else {var valid9 = true;}if(valid9){if(data.rowSpan !== undefined){let data14 = data.rowSpan;const _errs48 = errors;if(!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))){const err26 = {instancePath:instancePath+"/rowSpan",schemaPath:"#/oneOf/2/oneOf/2/properties/rowSpan/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors === _errs48){if((typeof data14 == "number") && (isFinite(data14))){if(data14 < 1 || isNaN(data14)){const err27 = {instancePath:instancePath+"/rowSpan",schemaPath:"#/oneOf/2/oneOf/2/properties/rowSpan/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}var valid9 = _errs48 === errors;}else {var valid9 = true;}if(valid9){if(data.style !== undefined){let data15 = data.style;const _errs50 = errors;const _errs51 = errors;if(errors === _errs51){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){const _errs53 = errors;for(const key6 in data15){if(!(func5.call(schema26.properties, key6))){const err28 = {instancePath:instancePath+"/style",schemaPath:"#/definitions/structuredContentStyle/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;break;}}if(_errs53 === errors){if(data15.fontStyle !== undefined){let data16 = data15.fontStyle;const _errs54 = errors;if(typeof data16 !== "string"){const err29 = {instancePath:instancePath+"/style/fontStyle",schemaPath:"#/definitions/structuredContentStyle/properties/fontStyle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(!((data16 === "normal") || (data16 === "italic"))){const err30 = {instancePath:instancePath+"/style/fontStyle",schemaPath:"#/definitions/structuredContentStyle/properties/fontStyle/enum",keyword:"enum",params:{allowedValues: schema26.properties.fontStyle.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var valid13 = _errs54 === errors;}else {var valid13 = true;}if(valid13){if(data15.fontWeight !== undefined){let data17 = data15.fontWeight;const _errs56 = errors;if(typeof data17 !== "string"){const err31 = {instancePath:instancePath+"/style/fontWeight",schemaPath:"#/definitions/structuredContentStyle/properties/fontWeight/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(!((data17 === "normal") || (data17 === "bold"))){const err32 = {instancePath:instancePath+"/style/fontWeight",schemaPath:"#/definitions/structuredContentStyle/properties/fontWeight/enum",keyword:"enum",params:{allowedValues: schema26.properties.fontWeight.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var valid13 = _errs56 === errors;}else {var valid13 = true;}if(valid13){if(data15.fontSize !== undefined){const _errs58 = errors;if(typeof data15.fontSize !== "string"){const err33 = {instancePath:instancePath+"/style/fontSize",schemaPath:"#/definitions/structuredContentStyle/properties/fontSize/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid13 = _errs58 === errors;}else {var valid13 = true;}if(valid13){if(data15.color !== undefined){const _errs60 = errors;if(typeof data15.color !== "string"){const err34 = {instancePath:instancePath+"/style/color",schemaPath:"#/definitions/structuredContentStyle/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var valid13 = _errs60 === errors;}else {var valid13 = true;}if(valid13){if(data15.background !== undefined){const _errs62 = errors;if(typeof data15.background !== "string"){const err35 = {instancePath:instancePath+"/style/background",schemaPath:"#/definitions/structuredContentStyle/properties/background/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid13 = _errs62 === errors;}else {var valid13 = true;}if(valid13){if(data15.backgroundColor !== undefined){const _errs64 = errors;if(typeof data15.backgroundColor !== "string"){const err36 = {instancePath:instancePath+"/style/backgroundColor",schemaPath:"#/definitions/structuredContentStyle/properties/backgroundColor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid13 = _errs64 === errors;}else {var valid13 = true;}if(valid13){if(data15.textDecorationLine !== undefined){let data22 = data15.textDecorationLine;const _errs66 = errors;const _errs67 = errors;let valid14 = false;let passing2 = null;const _errs68 = errors;if(typeof data22 !== "string"){const err37 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(!((((data22 === "none") || (data22 === "underline")) || (data22 === "overline")) || (data22 === "line-through"))){const err38 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema26.properties.textDecorationLine.oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid2 = _errs68 === errors;if(_valid2){valid14 = true;passing2 = 0;}const _errs70 = errors;if(errors === _errs70){if(Array.isArray(data22)){var valid15 = true;const len1 = data22.length;for(let i1=0; i1<len1; i1++){let data23 = data22[i1];const _errs72 = errors;if(typeof data23 !== "string"){const err39 = {instancePath:instancePath+"/style/textDecorationLine/" + i1,schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(!(((data23 === "underline") || (data23 === "overline")) || (data23 === "line-through"))){const err40 = {instancePath:instancePath+"/style/textDecorationLine/" + i1,schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/1/items/enum",keyword:"enum",params:{allowedValues: schema26.properties.textDecorationLine.oneOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid15 = _errs72 === errors;if(!valid15){break;}}}else {const err41 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid2 = _errs70 === errors;if(_valid2 && valid14){valid14 = false;passing2 = [passing2, 1];}else {if(_valid2){valid14 = true;passing2 = 1;}}if(!valid14){const err42 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}}var valid13 = _errs66 === errors;}else {var valid13 = true;}if(valid13){if(data15.textDecorationStyle !== undefined){let data24 = data15.textDecorationStyle;const _errs74 = errors;if(typeof data24 !== "string"){const err43 = {instancePath:instancePath+"/style/textDecorationStyle",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationStyle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(!(((((data24 === "solid") || (data24 === "double")) || (data24 === "dotted")) || (data24 === "dashed")) || (data24 === "wavy"))){const err44 = {instancePath:instancePath+"/style/textDecorationStyle",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationStyle/enum",keyword:"enum",params:{allowedValues: schema26.properties.textDecorationStyle.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid13 = _errs74 === errors;}else {var valid13 = true;}if(valid13){if(data15.textDecorationColor !== undefined){const _errs76 = errors;if(typeof data15.textDecorationColor !== "string"){const err45 = {instancePath:instancePath+"/style/textDecorationColor",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationColor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid13 = _errs76 === errors;}else {var valid13 = true;}if(valid13){if(data15.borderColor !== undefined){const _errs78 = errors;if(typeof data15.borderColor !== "string"){const err46 = {instancePath:instancePath+"/style/borderColor",schemaPath:"#/definitions/structuredContentStyle/properties/borderColor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid13 = _errs78 === errors;}else {var valid13 = true;}if(valid13){if(data15.borderStyle !== undefined){const _errs80 = errors;if(typeof data15.borderStyle !== "string"){const err47 = {instancePath:instancePath+"/style/borderStyle",schemaPath:"#/definitions/structuredContentStyle/properties/borderStyle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid13 = _errs80 === errors;}else {var valid13 = true;}if(valid13){if(data15.borderRadius !== undefined){const _errs82 = errors;if(typeof data15.borderRadius !== "string"){const err48 = {instancePath:instancePath+"/style/borderRadius",schemaPath:"#/definitions/structuredContentStyle/properties/borderRadius/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var valid13 = _errs82 === errors;}else {var valid13 = true;}if(valid13){if(data15.borderWidth !== undefined){const _errs84 = errors;if(typeof data15.borderWidth !== "string"){const err49 = {instancePath:instancePath+"/style/borderWidth",schemaPath:"#/definitions/structuredContentStyle/properties/borderWidth/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid13 = _errs84 === errors;}else {var valid13 = true;}if(valid13){if(data15.clipPath !== undefined){const _errs86 = errors;if(typeof data15.clipPath !== "string"){const err50 = {instancePath:instancePath+"/style/clipPath",schemaPath:"#/definitions/structuredContentStyle/properties/clipPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var valid13 = _errs86 === errors;}else {var valid13 = true;}if(valid13){if(data15.verticalAlign !== undefined){let data31 = data15.verticalAlign;const _errs88 = errors;if(typeof data31 !== "string"){const err51 = {instancePath:instancePath+"/style/verticalAlign",schemaPath:"#/definitions/structuredContentStyle/properties/verticalAlign/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(!((((((((data31 === "baseline") || (data31 === "sub")) || (data31 === "super")) || (data31 === "text-top")) || (data31 === "text-bottom")) || (data31 === "middle")) || (data31 === "top")) || (data31 === "bottom"))){const err52 = {instancePath:instancePath+"/style/verticalAlign",schemaPath:"#/definitions/structuredContentStyle/properties/verticalAlign/enum",keyword:"enum",params:{allowedValues: schema26.properties.verticalAlign.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var valid13 = _errs88 === errors;}else {var valid13 = true;}if(valid13){if(data15.textAlign !== undefined){let data32 = data15.textAlign;const _errs90 = errors;if(typeof data32 !== "string"){const err53 = {instancePath:instancePath+"/style/textAlign",schemaPath:"#/definitions/structuredContentStyle/properties/textAlign/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(!((((((((data32 === "start") || (data32 === "end")) || (data32 === "left")) || (data32 === "right")) || (data32 === "center")) || (data32 === "justify")) || (data32 === "justify-all")) || (data32 === "match-parent"))){const err54 = {instancePath:instancePath+"/style/textAlign",schemaPath:"#/definitions/structuredContentStyle/properties/textAlign/enum",keyword:"enum",params:{allowedValues: schema26.properties.textAlign.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid13 = _errs90 === errors;}else {var valid13 = true;}if(valid13){if(data15.textEmphasis !== undefined){const _errs92 = errors;if(typeof data15.textEmphasis !== "string"){const err55 = {instancePath:instancePath+"/style/textEmphasis",schemaPath:"#/definitions/structuredContentStyle/properties/textEmphasis/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid13 = _errs92 === errors;}else {var valid13 = true;}if(valid13){if(data15.textShadow !== undefined){const _errs94 = errors;if(typeof data15.textShadow !== "string"){const err56 = {instancePath:instancePath+"/style/textShadow",schemaPath:"#/definitions/structuredContentStyle/properties/textShadow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}var valid13 = _errs94 === errors;}else {var valid13 = true;}if(valid13){if(data15.margin !== undefined){const _errs96 = errors;if(typeof data15.margin !== "string"){const err57 = {instancePath:instancePath+"/style/margin",schemaPath:"#/definitions/structuredContentStyle/properties/margin/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid13 = _errs96 === errors;}else {var valid13 = true;}if(valid13){if(data15.marginTop !== undefined){let data36 = data15.marginTop;const _errs98 = errors;if((!((typeof data36 == "number") && (isFinite(data36)))) && (typeof data36 !== "string")){const err58 = {instancePath:instancePath+"/style/marginTop",schemaPath:"#/definitions/structuredContentStyle/properties/marginTop/type",keyword:"type",params:{type: schema26.properties.marginTop.type},message:"must be number,string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var valid13 = _errs98 === errors;}else {var valid13 = true;}if(valid13){if(data15.marginLeft !== undefined){let data37 = data15.marginLeft;const _errs100 = errors;if((!((typeof data37 == "number") && (isFinite(data37)))) && (typeof data37 !== "string")){const err59 = {instancePath:instancePath+"/style/marginLeft",schemaPath:"#/definitions/structuredContentStyle/properties/marginLeft/type",keyword:"type",params:{type: schema26.properties.marginLeft.type},message:"must be number,string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid13 = _errs100 === errors;}else {var valid13 = true;}if(valid13){if(data15.marginRight !== undefined){let data38 = data15.marginRight;const _errs102 = errors;if((!((typeof data38 == "number") && (isFinite(data38)))) && (typeof data38 !== "string")){const err60 = {instancePath:instancePath+"/style/marginRight",schemaPath:"#/definitions/structuredContentStyle/properties/marginRight/type",keyword:"type",params:{type: schema26.properties.marginRight.type},message:"must be number,string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid13 = _errs102 === errors;}else {var valid13 = true;}if(valid13){if(data15.marginBottom !== undefined){let data39 = data15.marginBottom;const _errs104 = errors;if((!((typeof data39 == "number") && (isFinite(data39)))) && (typeof data39 !== "string")){const err61 = {instancePath:instancePath+"/style/marginBottom",schemaPath:"#/definitions/structuredContentStyle/properties/marginBottom/type",keyword:"type",params:{type: schema26.properties.marginBottom.type},message:"must be number,string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}var valid13 = _errs104 === errors;}else {var valid13 = true;}if(valid13){if(data15.padding !== undefined){const _errs106 = errors;if(typeof data15.padding !== "string"){const err62 = {instancePath:instancePath+"/style/padding",schemaPath:"#/definitions/structuredContentStyle/properties/padding/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var valid13 = _errs106 === errors;}else {var valid13 = true;}if(valid13){if(data15.paddingTop !== undefined){const _errs108 = errors;if(typeof data15.paddingTop !== "string"){const err63 = {instancePath:instancePath+"/style/paddingTop",schemaPath:"#/definitions/structuredContentStyle/properties/paddingTop/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid13 = _errs108 === errors;}else {var valid13 = true;}if(valid13){if(data15.paddingLeft !== undefined){const _errs110 = errors;if(typeof data15.paddingLeft !== "string"){const err64 = {instancePath:instancePath+"/style/paddingLeft",schemaPath:"#/definitions/structuredContentStyle/properties/paddingLeft/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid13 = _errs110 === errors;}else {var valid13 = true;}if(valid13){if(data15.paddingRight !== undefined){const _errs112 = errors;if(typeof data15.paddingRight !== "string"){const err65 = {instancePath:instancePath+"/style/paddingRight",schemaPath:"#/definitions/structuredContentStyle/properties/paddingRight/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid13 = _errs112 === errors;}else {var valid13 = true;}if(valid13){if(data15.paddingBottom !== undefined){const _errs114 = errors;if(typeof data15.paddingBottom !== "string"){const err66 = {instancePath:instancePath+"/style/paddingBottom",schemaPath:"#/definitions/structuredContentStyle/properties/paddingBottom/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid13 = _errs114 === errors;}else {var valid13 = true;}if(valid13){if(data15.wordBreak !== undefined){let data45 = data15.wordBreak;const _errs116 = errors;if(typeof data45 !== "string"){const err67 = {instancePath:instancePath+"/style/wordBreak",schemaPath:"#/definitions/structuredContentStyle/properties/wordBreak/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(!(((data45 === "normal") || (data45 === "break-all")) || (data45 === "keep-all"))){const err68 = {instancePath:instancePath+"/style/wordBreak",schemaPath:"#/definitions/structuredContentStyle/properties/wordBreak/enum",keyword:"enum",params:{allowedValues: schema26.properties.wordBreak.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var valid13 = _errs116 === errors;}else {var valid13 = true;}if(valid13){if(data15.whiteSpace !== undefined){const _errs118 = errors;if(typeof data15.whiteSpace !== "string"){const err69 = {instancePath:instancePath+"/style/whiteSpace",schemaPath:"#/definitions/structuredContentStyle/properties/whiteSpace/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid13 = _errs118 === errors;}else {var valid13 = true;}if(valid13){if(data15.cursor !== undefined){const _errs120 = errors;if(typeof data15.cursor !== "string"){const err70 = {instancePath:instancePath+"/style/cursor",schemaPath:"#/definitions/structuredContentStyle/properties/cursor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid13 = _errs120 === errors;}else {var valid13 = true;}if(valid13){if(data15.listStyleType !== undefined){const _errs122 = errors;if(typeof data15.listStyleType !== "string"){const err71 = {instancePath:instancePath+"/style/listStyleType",schemaPath:"#/definitions/structuredContentStyle/properties/listStyleType/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}var valid13 = _errs122 === errors;}else {var valid13 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {const err72 = {instancePath:instancePath+"/style",schemaPath:"#/definitions/structuredContentStyle/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid9 = _errs50 === errors;}else {var valid9 = true;}if(valid9){if(data.lang !== undefined){const _errs124 = errors;if(typeof data.lang !== "string"){const err73 = {instancePath:instancePath+"/lang",schemaPath:"#/oneOf/2/oneOf/2/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var valid9 = _errs124 === errors;}else {var valid9 = true;}}}}}}}}}}else {const err74 = {instancePath,schemaPath:"#/oneOf/2/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid1 = _errs34 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}const _errs126 = errors;if(errors === _errs126){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.tag === undefined) && (missing3 = "tag")){const err75 = {instancePath,schemaPath:"#/oneOf/2/oneOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {const _errs128 = errors;for(const key7 in data){if(!(((((((key7 === "tag") || (key7 === "content")) || (key7 === "data")) || (key7 === "style")) || (key7 === "title")) || (key7 === "open")) || (key7 === "lang"))){const err76 = {instancePath,schemaPath:"#/oneOf/2/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;break;}}if(_errs128 === errors){if(data.tag !== undefined){let data50 = data.tag;const _errs129 = errors;if(typeof data50 !== "string"){const err77 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/3/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(!(((((((data50 === "span") || (data50 === "div")) || (data50 === "ol")) || (data50 === "ul")) || (data50 === "li")) || (data50 === "details")) || (data50 === "summary"))){const err78 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/3/properties/tag/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[3].properties.tag.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}var valid16 = _errs129 === errors;}else {var valid16 = true;}if(valid16){if(data.content !== undefined){const _errs131 = errors;if(!(wrapper0.validate(data.content, {instancePath:instancePath+"/content",parentData:data,parentDataProperty:"content",rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid16 = _errs131 === errors;}else {var valid16 = true;}if(valid16){if(data.data !== undefined){let data52 = data.data;const _errs132 = errors;const _errs133 = errors;if(errors === _errs133){if(data52 && typeof data52 == "object" && !Array.isArray(data52)){for(const key8 in data52){const _errs136 = errors;if(typeof data52[key8] !== "string"){const err79 = {instancePath:instancePath+"/data/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/structuredContentData/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var valid18 = _errs136 === errors;if(!valid18){break;}}}else {const err80 = {instancePath:instancePath+"/data",schemaPath:"#/definitions/structuredContentData/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var valid16 = _errs132 === errors;}else {var valid16 = true;}if(valid16){if(data.style !== undefined){let data54 = data.style;const _errs138 = errors;const _errs139 = errors;if(errors === _errs139){if(data54 && typeof data54 == "object" && !Array.isArray(data54)){const _errs141 = errors;for(const key9 in data54){if(!(func5.call(schema26.properties, key9))){const err81 = {instancePath:instancePath+"/style",schemaPath:"#/definitions/structuredContentStyle/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;break;}}if(_errs141 === errors){if(data54.fontStyle !== undefined){let data55 = data54.fontStyle;const _errs142 = errors;if(typeof data55 !== "string"){const err82 = {instancePath:instancePath+"/style/fontStyle",schemaPath:"#/definitions/structuredContentStyle/properties/fontStyle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(!((data55 === "normal") || (data55 === "italic"))){const err83 = {instancePath:instancePath+"/style/fontStyle",schemaPath:"#/definitions/structuredContentStyle/properties/fontStyle/enum",keyword:"enum",params:{allowedValues: schema26.properties.fontStyle.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var valid20 = _errs142 === errors;}else {var valid20 = true;}if(valid20){if(data54.fontWeight !== undefined){let data56 = data54.fontWeight;const _errs144 = errors;if(typeof data56 !== "string"){const err84 = {instancePath:instancePath+"/style/fontWeight",schemaPath:"#/definitions/structuredContentStyle/properties/fontWeight/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(!((data56 === "normal") || (data56 === "bold"))){const err85 = {instancePath:instancePath+"/style/fontWeight",schemaPath:"#/definitions/structuredContentStyle/properties/fontWeight/enum",keyword:"enum",params:{allowedValues: schema26.properties.fontWeight.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var valid20 = _errs144 === errors;}else {var valid20 = true;}if(valid20){if(data54.fontSize !== undefined){const _errs146 = errors;if(typeof data54.fontSize !== "string"){const err86 = {instancePath:instancePath+"/style/fontSize",schemaPath:"#/definitions/structuredContentStyle/properties/fontSize/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var valid20 = _errs146 === errors;}else {var valid20 = true;}if(valid20){if(data54.color !== undefined){const _errs148 = errors;if(typeof data54.color !== "string"){const err87 = {instancePath:instancePath+"/style/color",schemaPath:"#/definitions/structuredContentStyle/properties/color/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}var valid20 = _errs148 === errors;}else {var valid20 = true;}if(valid20){if(data54.background !== undefined){const _errs150 = errors;if(typeof data54.background !== "string"){const err88 = {instancePath:instancePath+"/style/background",schemaPath:"#/definitions/structuredContentStyle/properties/background/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var valid20 = _errs150 === errors;}else {var valid20 = true;}if(valid20){if(data54.backgroundColor !== undefined){const _errs152 = errors;if(typeof data54.backgroundColor !== "string"){const err89 = {instancePath:instancePath+"/style/backgroundColor",schemaPath:"#/definitions/structuredContentStyle/properties/backgroundColor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var valid20 = _errs152 === errors;}else {var valid20 = true;}if(valid20){if(data54.textDecorationLine !== undefined){let data61 = data54.textDecorationLine;const _errs154 = errors;const _errs155 = errors;let valid21 = false;let passing3 = null;const _errs156 = errors;if(typeof data61 !== "string"){const err90 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(!((((data61 === "none") || (data61 === "underline")) || (data61 === "overline")) || (data61 === "line-through"))){const err91 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/0/enum",keyword:"enum",params:{allowedValues: schema26.properties.textDecorationLine.oneOf[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var _valid3 = _errs156 === errors;if(_valid3){valid21 = true;passing3 = 0;}const _errs158 = errors;if(errors === _errs158){if(Array.isArray(data61)){var valid22 = true;const len2 = data61.length;for(let i2=0; i2<len2; i2++){let data62 = data61[i2];const _errs160 = errors;if(typeof data62 !== "string"){const err92 = {instancePath:instancePath+"/style/textDecorationLine/" + i2,schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(!(((data62 === "underline") || (data62 === "overline")) || (data62 === "line-through"))){const err93 = {instancePath:instancePath+"/style/textDecorationLine/" + i2,schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/1/items/enum",keyword:"enum",params:{allowedValues: schema26.properties.textDecorationLine.oneOf[1].items.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid22 = _errs160 === errors;if(!valid22){break;}}}else {const err94 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}var _valid3 = _errs158 === errors;if(_valid3 && valid21){valid21 = false;passing3 = [passing3, 1];}else {if(_valid3){valid21 = true;passing3 = 1;}}if(!valid21){const err95 = {instancePath:instancePath+"/style/textDecorationLine",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationLine/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}}var valid20 = _errs154 === errors;}else {var valid20 = true;}if(valid20){if(data54.textDecorationStyle !== undefined){let data63 = data54.textDecorationStyle;const _errs162 = errors;if(typeof data63 !== "string"){const err96 = {instancePath:instancePath+"/style/textDecorationStyle",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationStyle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(!(((((data63 === "solid") || (data63 === "double")) || (data63 === "dotted")) || (data63 === "dashed")) || (data63 === "wavy"))){const err97 = {instancePath:instancePath+"/style/textDecorationStyle",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationStyle/enum",keyword:"enum",params:{allowedValues: schema26.properties.textDecorationStyle.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}var valid20 = _errs162 === errors;}else {var valid20 = true;}if(valid20){if(data54.textDecorationColor !== undefined){const _errs164 = errors;if(typeof data54.textDecorationColor !== "string"){const err98 = {instancePath:instancePath+"/style/textDecorationColor",schemaPath:"#/definitions/structuredContentStyle/properties/textDecorationColor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var valid20 = _errs164 === errors;}else {var valid20 = true;}if(valid20){if(data54.borderColor !== undefined){const _errs166 = errors;if(typeof data54.borderColor !== "string"){const err99 = {instancePath:instancePath+"/style/borderColor",schemaPath:"#/definitions/structuredContentStyle/properties/borderColor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var valid20 = _errs166 === errors;}else {var valid20 = true;}if(valid20){if(data54.borderStyle !== undefined){const _errs168 = errors;if(typeof data54.borderStyle !== "string"){const err100 = {instancePath:instancePath+"/style/borderStyle",schemaPath:"#/definitions/structuredContentStyle/properties/borderStyle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var valid20 = _errs168 === errors;}else {var valid20 = true;}if(valid20){if(data54.borderRadius !== undefined){const _errs170 = errors;if(typeof data54.borderRadius !== "string"){const err101 = {instancePath:instancePath+"/style/borderRadius",schemaPath:"#/definitions/structuredContentStyle/properties/borderRadius/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var valid20 = _errs170 === errors;}else {var valid20 = true;}if(valid20){if(data54.borderWidth !== undefined){const _errs172 = errors;if(typeof data54.borderWidth !== "string"){const err102 = {instancePath:instancePath+"/style/borderWidth",schemaPath:"#/definitions/structuredContentStyle/properties/borderWidth/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid20 = _errs172 === errors;}else {var valid20 = true;}if(valid20){if(data54.clipPath !== undefined){const _errs174 = errors;if(typeof data54.clipPath !== "string"){const err103 = {instancePath:instancePath+"/style/clipPath",schemaPath:"#/definitions/structuredContentStyle/properties/clipPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}var valid20 = _errs174 === errors;}else {var valid20 = true;}if(valid20){if(data54.verticalAlign !== undefined){let data70 = data54.verticalAlign;const _errs176 = errors;if(typeof data70 !== "string"){const err104 = {instancePath:instancePath+"/style/verticalAlign",schemaPath:"#/definitions/structuredContentStyle/properties/verticalAlign/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(!((((((((data70 === "baseline") || (data70 === "sub")) || (data70 === "super")) || (data70 === "text-top")) || (data70 === "text-bottom")) || (data70 === "middle")) || (data70 === "top")) || (data70 === "bottom"))){const err105 = {instancePath:instancePath+"/style/verticalAlign",schemaPath:"#/definitions/structuredContentStyle/properties/verticalAlign/enum",keyword:"enum",params:{allowedValues: schema26.properties.verticalAlign.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid20 = _errs176 === errors;}else {var valid20 = true;}if(valid20){if(data54.textAlign !== undefined){let data71 = data54.textAlign;const _errs178 = errors;if(typeof data71 !== "string"){const err106 = {instancePath:instancePath+"/style/textAlign",schemaPath:"#/definitions/structuredContentStyle/properties/textAlign/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(!((((((((data71 === "start") || (data71 === "end")) || (data71 === "left")) || (data71 === "right")) || (data71 === "center")) || (data71 === "justify")) || (data71 === "justify-all")) || (data71 === "match-parent"))){const err107 = {instancePath:instancePath+"/style/textAlign",schemaPath:"#/definitions/structuredContentStyle/properties/textAlign/enum",keyword:"enum",params:{allowedValues: schema26.properties.textAlign.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid20 = _errs178 === errors;}else {var valid20 = true;}if(valid20){if(data54.textEmphasis !== undefined){const _errs180 = errors;if(typeof data54.textEmphasis !== "string"){const err108 = {instancePath:instancePath+"/style/textEmphasis",schemaPath:"#/definitions/structuredContentStyle/properties/textEmphasis/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}var valid20 = _errs180 === errors;}else {var valid20 = true;}if(valid20){if(data54.textShadow !== undefined){const _errs182 = errors;if(typeof data54.textShadow !== "string"){const err109 = {instancePath:instancePath+"/style/textShadow",schemaPath:"#/definitions/structuredContentStyle/properties/textShadow/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var valid20 = _errs182 === errors;}else {var valid20 = true;}if(valid20){if(data54.margin !== undefined){const _errs184 = errors;if(typeof data54.margin !== "string"){const err110 = {instancePath:instancePath+"/style/margin",schemaPath:"#/definitions/structuredContentStyle/properties/margin/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var valid20 = _errs184 === errors;}else {var valid20 = true;}if(valid20){if(data54.marginTop !== undefined){let data75 = data54.marginTop;const _errs186 = errors;if((!((typeof data75 == "number") && (isFinite(data75)))) && (typeof data75 !== "string")){const err111 = {instancePath:instancePath+"/style/marginTop",schemaPath:"#/definitions/structuredContentStyle/properties/marginTop/type",keyword:"type",params:{type: schema26.properties.marginTop.type},message:"must be number,string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid20 = _errs186 === errors;}else {var valid20 = true;}if(valid20){if(data54.marginLeft !== undefined){let data76 = data54.marginLeft;const _errs188 = errors;if((!((typeof data76 == "number") && (isFinite(data76)))) && (typeof data76 !== "string")){const err112 = {instancePath:instancePath+"/style/marginLeft",schemaPath:"#/definitions/structuredContentStyle/properties/marginLeft/type",keyword:"type",params:{type: schema26.properties.marginLeft.type},message:"must be number,string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}var valid20 = _errs188 === errors;}else {var valid20 = true;}if(valid20){if(data54.marginRight !== undefined){let data77 = data54.marginRight;const _errs190 = errors;if((!((typeof data77 == "number") && (isFinite(data77)))) && (typeof data77 !== "string")){const err113 = {instancePath:instancePath+"/style/marginRight",schemaPath:"#/definitions/structuredContentStyle/properties/marginRight/type",keyword:"type",params:{type: schema26.properties.marginRight.type},message:"must be number,string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var valid20 = _errs190 === errors;}else {var valid20 = true;}if(valid20){if(data54.marginBottom !== undefined){let data78 = data54.marginBottom;const _errs192 = errors;if((!((typeof data78 == "number") && (isFinite(data78)))) && (typeof data78 !== "string")){const err114 = {instancePath:instancePath+"/style/marginBottom",schemaPath:"#/definitions/structuredContentStyle/properties/marginBottom/type",keyword:"type",params:{type: schema26.properties.marginBottom.type},message:"must be number,string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}var valid20 = _errs192 === errors;}else {var valid20 = true;}if(valid20){if(data54.padding !== undefined){const _errs194 = errors;if(typeof data54.padding !== "string"){const err115 = {instancePath:instancePath+"/style/padding",schemaPath:"#/definitions/structuredContentStyle/properties/padding/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var valid20 = _errs194 === errors;}else {var valid20 = true;}if(valid20){if(data54.paddingTop !== undefined){const _errs196 = errors;if(typeof data54.paddingTop !== "string"){const err116 = {instancePath:instancePath+"/style/paddingTop",schemaPath:"#/definitions/structuredContentStyle/properties/paddingTop/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var valid20 = _errs196 === errors;}else {var valid20 = true;}if(valid20){if(data54.paddingLeft !== undefined){const _errs198 = errors;if(typeof data54.paddingLeft !== "string"){const err117 = {instancePath:instancePath+"/style/paddingLeft",schemaPath:"#/definitions/structuredContentStyle/properties/paddingLeft/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var valid20 = _errs198 === errors;}else {var valid20 = true;}if(valid20){if(data54.paddingRight !== undefined){const _errs200 = errors;if(typeof data54.paddingRight !== "string"){const err118 = {instancePath:instancePath+"/style/paddingRight",schemaPath:"#/definitions/structuredContentStyle/properties/paddingRight/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}var valid20 = _errs200 === errors;}else {var valid20 = true;}if(valid20){if(data54.paddingBottom !== undefined){const _errs202 = errors;if(typeof data54.paddingBottom !== "string"){const err119 = {instancePath:instancePath+"/style/paddingBottom",schemaPath:"#/definitions/structuredContentStyle/properties/paddingBottom/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var valid20 = _errs202 === errors;}else {var valid20 = true;}if(valid20){if(data54.wordBreak !== undefined){let data84 = data54.wordBreak;const _errs204 = errors;if(typeof data84 !== "string"){const err120 = {instancePath:instancePath+"/style/wordBreak",schemaPath:"#/definitions/structuredContentStyle/properties/wordBreak/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(!(((data84 === "normal") || (data84 === "break-all")) || (data84 === "keep-all"))){const err121 = {instancePath:instancePath+"/style/wordBreak",schemaPath:"#/definitions/structuredContentStyle/properties/wordBreak/enum",keyword:"enum",params:{allowedValues: schema26.properties.wordBreak.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var valid20 = _errs204 === errors;}else {var valid20 = true;}if(valid20){if(data54.whiteSpace !== undefined){const _errs206 = errors;if(typeof data54.whiteSpace !== "string"){const err122 = {instancePath:instancePath+"/style/whiteSpace",schemaPath:"#/definitions/structuredContentStyle/properties/whiteSpace/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var valid20 = _errs206 === errors;}else {var valid20 = true;}if(valid20){if(data54.cursor !== undefined){const _errs208 = errors;if(typeof data54.cursor !== "string"){const err123 = {instancePath:instancePath+"/style/cursor",schemaPath:"#/definitions/structuredContentStyle/properties/cursor/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var valid20 = _errs208 === errors;}else {var valid20 = true;}if(valid20){if(data54.listStyleType !== undefined){const _errs210 = errors;if(typeof data54.listStyleType !== "string"){const err124 = {instancePath:instancePath+"/style/listStyleType",schemaPath:"#/definitions/structuredContentStyle/properties/listStyleType/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid20 = _errs210 === errors;}else {var valid20 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {const err125 = {instancePath:instancePath+"/style",schemaPath:"#/definitions/structuredContentStyle/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}var valid16 = _errs138 === errors;}else {var valid16 = true;}if(valid16){if(data.title !== undefined){const _errs212 = errors;if(typeof data.title !== "string"){const err126 = {instancePath:instancePath+"/title",schemaPath:"#/oneOf/2/oneOf/3/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var valid16 = _errs212 === errors;}else {var valid16 = true;}if(valid16){if(data.open !== undefined){const _errs214 = errors;if(typeof data.open !== "boolean"){const err127 = {instancePath:instancePath+"/open",schemaPath:"#/oneOf/2/oneOf/3/properties/open/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}var valid16 = _errs214 === errors;}else {var valid16 = true;}if(valid16){if(data.lang !== undefined){const _errs216 = errors;if(typeof data.lang !== "string"){const err128 = {instancePath:instancePath+"/lang",schemaPath:"#/oneOf/2/oneOf/3/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}var valid16 = _errs216 === errors;}else {var valid16 = true;}}}}}}}}}}else {const err129 = {instancePath,schemaPath:"#/oneOf/2/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid1 = _errs126 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 3];}else {if(_valid1){valid2 = true;passing1 = 3;}const _errs218 = errors;if(errors === _errs218){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((data.tag === undefined) && (missing4 = "tag")) || ((data.path === undefined) && (missing4 = "path"))){const err130 = {instancePath,schemaPath:"#/oneOf/2/oneOf/4/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {const _errs220 = errors;for(const key10 in data){if(!(func5.call(schema22.oneOf[2].oneOf[4].properties, key10))){const err131 = {instancePath,schemaPath:"#/oneOf/2/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;break;}}if(_errs220 === errors){if(data.tag !== undefined){let data91 = data.tag;const _errs221 = errors;if(typeof data91 !== "string"){const err132 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/4/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if("img" !== data91){const err133 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/4/properties/tag/const",keyword:"const",params:{allowedValue: "img"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var valid23 = _errs221 === errors;}else {var valid23 = true;}if(valid23){if(data.data !== undefined){let data92 = data.data;const _errs223 = errors;const _errs224 = errors;if(errors === _errs224){if(data92 && typeof data92 == "object" && !Array.isArray(data92)){for(const key11 in data92){const _errs227 = errors;if(typeof data92[key11] !== "string"){const err134 = {instancePath:instancePath+"/data/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/structuredContentData/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid25 = _errs227 === errors;if(!valid25){break;}}}else {const err135 = {instancePath:instancePath+"/data",schemaPath:"#/definitions/structuredContentData/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var valid23 = _errs223 === errors;}else {var valid23 = true;}if(valid23){if(data.path !== undefined){const _errs229 = errors;if(typeof data.path !== "string"){const err136 = {instancePath:instancePath+"/path",schemaPath:"#/oneOf/2/oneOf/4/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var valid23 = _errs229 === errors;}else {var valid23 = true;}if(valid23){if(data.width !== undefined){let data95 = data.width;const _errs231 = errors;if(errors === _errs231){if((typeof data95 == "number") && (isFinite(data95))){if(data95 < 0 || isNaN(data95)){const err137 = {instancePath:instancePath+"/width",schemaPath:"#/oneOf/2/oneOf/4/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/width",schemaPath:"#/oneOf/2/oneOf/4/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var valid23 = _errs231 === errors;}else {var valid23 = true;}if(valid23){if(data.height !== undefined){let data96 = data.height;const _errs233 = errors;if(errors === _errs233){if((typeof data96 == "number") && (isFinite(data96))){if(data96 < 0 || isNaN(data96)){const err139 = {instancePath:instancePath+"/height",schemaPath:"#/oneOf/2/oneOf/4/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}else {const err140 = {instancePath:instancePath+"/height",schemaPath:"#/oneOf/2/oneOf/4/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var valid23 = _errs233 === errors;}else {var valid23 = true;}if(valid23){if(data.title !== undefined){const _errs235 = errors;if(typeof data.title !== "string"){const err141 = {instancePath:instancePath+"/title",schemaPath:"#/oneOf/2/oneOf/4/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var valid23 = _errs235 === errors;}else {var valid23 = true;}if(valid23){if(data.alt !== undefined){const _errs237 = errors;if(typeof data.alt !== "string"){const err142 = {instancePath:instancePath+"/alt",schemaPath:"#/oneOf/2/oneOf/4/properties/alt/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid23 = _errs237 === errors;}else {var valid23 = true;}if(valid23){if(data.description !== undefined){const _errs239 = errors;if(typeof data.description !== "string"){const err143 = {instancePath:instancePath+"/description",schemaPath:"#/oneOf/2/oneOf/4/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}var valid23 = _errs239 === errors;}else {var valid23 = true;}if(valid23){if(data.pixelated !== undefined){const _errs241 = errors;if(typeof data.pixelated !== "boolean"){const err144 = {instancePath:instancePath+"/pixelated",schemaPath:"#/oneOf/2/oneOf/4/properties/pixelated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid23 = _errs241 === errors;}else {var valid23 = true;}if(valid23){if(data.imageRendering !== undefined){let data101 = data.imageRendering;const _errs243 = errors;if(typeof data101 !== "string"){const err145 = {instancePath:instancePath+"/imageRendering",schemaPath:"#/oneOf/2/oneOf/4/properties/imageRendering/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(!(((data101 === "auto") || (data101 === "pixelated")) || (data101 === "crisp-edges"))){const err146 = {instancePath:instancePath+"/imageRendering",schemaPath:"#/oneOf/2/oneOf/4/properties/imageRendering/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.imageRendering.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var valid23 = _errs243 === errors;}else {var valid23 = true;}if(valid23){if(data.appearance !== undefined){let data102 = data.appearance;const _errs245 = errors;if(typeof data102 !== "string"){const err147 = {instancePath:instancePath+"/appearance",schemaPath:"#/oneOf/2/oneOf/4/properties/appearance/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(!((data102 === "auto") || (data102 === "monochrome"))){const err148 = {instancePath:instancePath+"/appearance",schemaPath:"#/oneOf/2/oneOf/4/properties/appearance/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.appearance.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var valid23 = _errs245 === errors;}else {var valid23 = true;}if(valid23){if(data.background !== undefined){const _errs247 = errors;if(typeof data.background !== "boolean"){const err149 = {instancePath:instancePath+"/background",schemaPath:"#/oneOf/2/oneOf/4/properties/background/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var valid23 = _errs247 === errors;}else {var valid23 = true;}if(valid23){if(data.collapsed !== undefined){const _errs249 = errors;if(typeof data.collapsed !== "boolean"){const err150 = {instancePath:instancePath+"/collapsed",schemaPath:"#/oneOf/2/oneOf/4/properties/collapsed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var valid23 = _errs249 === errors;}else {var valid23 = true;}if(valid23){if(data.collapsible !== undefined){const _errs251 = errors;if(typeof data.collapsible !== "boolean"){const err151 = {instancePath:instancePath+"/collapsible",schemaPath:"#/oneOf/2/oneOf/4/properties/collapsible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}var valid23 = _errs251 === errors;}else {var valid23 = true;}if(valid23){if(data.verticalAlign !== undefined){let data106 = data.verticalAlign;const _errs253 = errors;if(typeof data106 !== "string"){const err152 = {instancePath:instancePath+"/verticalAlign",schemaPath:"#/oneOf/2/oneOf/4/properties/verticalAlign/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(!((((((((data106 === "baseline") || (data106 === "sub")) || (data106 === "super")) || (data106 === "text-top")) || (data106 === "text-bottom")) || (data106 === "middle")) || (data106 === "top")) || (data106 === "bottom"))){const err153 = {instancePath:instancePath+"/verticalAlign",schemaPath:"#/oneOf/2/oneOf/4/properties/verticalAlign/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.verticalAlign.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}var valid23 = _errs253 === errors;}else {var valid23 = true;}if(valid23){if(data.border !== undefined){const _errs255 = errors;if(typeof data.border !== "string"){const err154 = {instancePath:instancePath+"/border",schemaPath:"#/oneOf/2/oneOf/4/properties/border/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}var valid23 = _errs255 === errors;}else {var valid23 = true;}if(valid23){if(data.borderRadius !== undefined){const _errs257 = errors;if(typeof data.borderRadius !== "string"){const err155 = {instancePath:instancePath+"/borderRadius",schemaPath:"#/oneOf/2/oneOf/4/properties/borderRadius/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var valid23 = _errs257 === errors;}else {var valid23 = true;}if(valid23){if(data.sizeUnits !== undefined){let data109 = data.sizeUnits;const _errs259 = errors;if(typeof data109 !== "string"){const err156 = {instancePath:instancePath+"/sizeUnits",schemaPath:"#/oneOf/2/oneOf/4/properties/sizeUnits/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(!((data109 === "px") || (data109 === "em"))){const err157 = {instancePath:instancePath+"/sizeUnits",schemaPath:"#/oneOf/2/oneOf/4/properties/sizeUnits/enum",keyword:"enum",params:{allowedValues: schema22.oneOf[2].oneOf[4].properties.sizeUnits.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var valid23 = _errs259 === errors;}else {var valid23 = true;}}}}}}}}}}}}}}}}}}}}}else {const err158 = {instancePath,schemaPath:"#/oneOf/2/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}var _valid1 = _errs218 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 4];}else {if(_valid1){valid2 = true;passing1 = 4;}const _errs261 = errors;if(errors === _errs261){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((data.tag === undefined) && (missing5 = "tag")) || ((data.href === undefined) && (missing5 = "href"))){const err159 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {const _errs263 = errors;for(const key12 in data){if(!((((key12 === "tag") || (key12 === "content")) || (key12 === "href")) || (key12 === "lang"))){const err160 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;break;}}if(_errs263 === errors){if(data.tag !== undefined){let data110 = data.tag;const _errs264 = errors;if(typeof data110 !== "string"){const err161 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/5/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if("a" !== data110){const err162 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/5/properties/tag/const",keyword:"const",params:{allowedValue: "a"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var valid26 = _errs264 === errors;}else {var valid26 = true;}if(valid26){if(data.content !== undefined){const _errs266 = errors;if(!(wrapper0.validate(data.content, {instancePath:instancePath+"/content",parentData:data,parentDataProperty:"content",rootData}))){vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);errors = vErrors.length;}var valid26 = _errs266 === errors;}else {var valid26 = true;}if(valid26){if(data.href !== undefined){let data112 = data.href;const _errs267 = errors;if(errors === _errs267){if(typeof data112 === "string"){if(!pattern2.test(data112)){const err163 = {instancePath:instancePath+"/href",schemaPath:"#/oneOf/2/oneOf/5/properties/href/pattern",keyword:"pattern",params:{pattern: "^(?:https?:|\\?)[\\w\\W]*"},message:"must match pattern \""+"^(?:https?:|\\?)[\\w\\W]*"+"\""};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}else {const err164 = {instancePath:instancePath+"/href",schemaPath:"#/oneOf/2/oneOf/5/properties/href/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}var valid26 = _errs267 === errors;}else {var valid26 = true;}if(valid26){if(data.lang !== undefined){const _errs269 = errors;if(typeof data.lang !== "string"){const err165 = {instancePath:instancePath+"/lang",schemaPath:"#/oneOf/2/oneOf/5/properties/lang/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}var valid26 = _errs269 === errors;}else {var valid26 = true;}}}}}}}else {const err166 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}var _valid1 = _errs261 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 5];}else {if(_valid1){valid2 = true;passing1 = 5;}}}}}}if(!valid2){const err167 = {instancePath,schemaPath:"#/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var _valid0 = _errs6 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;}}}if(!valid0){const err168 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;validate18.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate18.errors = vErrors;return errors === 0;}function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTermBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 8){validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 8},message:"must NOT have more than 8 items"}];return false;}else {if(data0.length < 8){validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 8},message:"must NOT have fewer than 8 items"}];return false;}else {const len1 = data0.length;if(!(len1 <= 8)){validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 8},message:"must NOT have more than 8 items"}];return false;}else {const len2 = data0.length;if(len2 > 0){const _errs3 = errors;if(typeof data0[0] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs3 === errors;}if(valid1){if(len2 > 1){const _errs5 = errors;if(typeof data0[1] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs5 === errors;}if(valid1){if(len2 > 2){let data3 = data0[2];const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate17.errors = [{instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/items/2/type",keyword:"type",params:{type: schema21.items.items[2].type},message:"must be string,null"}];return false;}var valid1 = _errs7 === errors;}if(valid1){if(len2 > 3){const _errs9 = errors;if(typeof data0[3] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/3",schemaPath:"#/items/items/3/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}if(valid1){if(len2 > 4){let data5 = data0[4];const _errs11 = errors;if(!((typeof data5 == "number") && (isFinite(data5)))){validate17.errors = [{instancePath:instancePath+"/" + i0+"/4",schemaPath:"#/items/items/4/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs11 === errors;}if(valid1){if(len2 > 5){let data6 = data0[5];const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data6)){var valid2 = true;const len3 = data6.length;for(let i1=0; i1<len3; i1++){let data7 = data6[i1];const _errs15 = errors;const _errs16 = errors;let valid3 = false;let passing0 = null;const _errs17 = errors;if(typeof data7 !== "string"){const err0 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs17 === errors;if(_valid0){valid3 = true;passing0 = 0;}const _errs19 = errors;const _errs21 = errors;let valid4 = false;let passing1 = null;const _errs22 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing0;if(((data7.type === undefined) && (missing0 = "type")) || ((data7.text === undefined) && (missing0 = "text"))){const err1 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const _errs23 = errors;for(const key0 in data7){if(!((key0 === "type") || (key0 === "text"))){const err2 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;break;}}if(_errs23 === errors){if(data7.type !== undefined){let data8 = data7.type;const _errs24 = errors;if(typeof data8 !== "string"){const err3 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/0/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("text" !== data8){const err4 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/0/properties/type/const",keyword:"const",params:{allowedValue: "text"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid5 = _errs24 === errors;}else {var valid5 = true;}if(valid5){if(data7.text !== undefined){const _errs26 = errors;if(typeof data7.text !== "string"){const err5 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/text",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/0/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid5 = _errs26 === errors;}else {var valid5 = true;}}}}}var _valid1 = _errs22 === errors;if(_valid1){valid4 = true;passing1 = 0;}const _errs28 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing1;if(((data7.type === undefined) && (missing1 = "type")) || ((data7.content === undefined) && (missing1 = "content"))){const err6 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {const _errs29 = errors;for(const key1 in data7){if(!((key1 === "type") || (key1 === "content"))){const err7 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;break;}}if(_errs29 === errors){if(data7.type !== undefined){let data10 = data7.type;const _errs30 = errors;if(typeof data10 !== "string"){const err8 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if("structured-content" !== data10){const err9 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/1/properties/type/const",keyword:"const",params:{allowedValue: "structured-content"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid6 = _errs30 === errors;}else {var valid6 = true;}if(valid6){if(data7.content !== undefined){const _errs32 = errors;if(!(validate18(data7.content, {instancePath:instancePath+"/" + i0+"/5/" + i1+"/content",parentData:data7,parentDataProperty:"content",rootData}))){vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);errors = vErrors.length;}var valid6 = _errs32 === errors;}else {var valid6 = true;}}}}}var _valid1 = _errs28 === errors;if(_valid1 && valid4){valid4 = false;passing1 = [passing1, 1];}else {if(_valid1){valid4 = true;passing1 = 1;}const _errs33 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing2;if(((data7.type === undefined) && (missing2 = "type")) || ((data7.path === undefined) && (missing2 = "path"))){const err10 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {const _errs34 = errors;for(const key2 in data7){if(!(func5.call(schema21.items.items[5].items.oneOf[1].oneOf[2].properties, key2))){const err11 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;break;}}if(_errs34 === errors){if(data7.type !== undefined){let data12 = data7.type;const _errs35 = errors;if(typeof data12 !== "string"){const err12 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("image" !== data12){const err13 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/type/const",keyword:"const",params:{allowedValue: "image"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid7 = _errs35 === errors;}else {var valid7 = true;}if(valid7){if(data7.path !== undefined){const _errs37 = errors;if(typeof data7.path !== "string"){const err14 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/path",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var valid7 = _errs37 === errors;}else {var valid7 = true;}if(valid7){if(data7.width !== undefined){let data14 = data7.width;const _errs39 = errors;if(!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))){const err15 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/width",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/width/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(errors === _errs39){if((typeof data14 == "number") && (isFinite(data14))){if(data14 < 1 || isNaN(data14)){const err16 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/width",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}var valid7 = _errs39 === errors;}else {var valid7 = true;}if(valid7){if(data7.height !== undefined){let data15 = data7.height;const _errs41 = errors;if(!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))){const err17 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/height",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/height/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors === _errs41){if((typeof data15 == "number") && (isFinite(data15))){if(data15 < 1 || isNaN(data15)){const err18 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/height",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}var valid7 = _errs41 === errors;}else {var valid7 = true;}if(valid7){if(data7.title !== undefined){const _errs43 = errors;if(typeof data7.title !== "string"){const err19 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/title",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var valid7 = _errs43 === errors;}else {var valid7 = true;}if(valid7){if(data7.alt !== undefined){const _errs45 = errors;if(typeof data7.alt !== "string"){const err20 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/alt",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/alt/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid7 = _errs45 === errors;}else {var valid7 = true;}if(valid7){if(data7.description !== undefined){const _errs47 = errors;if(typeof data7.description !== "string"){const err21 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/description",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid7 = _errs47 === errors;}else {var valid7 = true;}if(valid7){if(data7.pixelated !== undefined){const _errs49 = errors;if(typeof data7.pixelated !== "boolean"){const err22 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/pixelated",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/pixelated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid7 = _errs49 === errors;}else {var valid7 = true;}if(valid7){if(data7.imageRendering !== undefined){let data20 = data7.imageRendering;const _errs51 = errors;if(typeof data20 !== "string"){const err23 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/imageRendering",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/imageRendering/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!(((data20 === "auto") || (data20 === "pixelated")) || (data20 === "crisp-edges"))){const err24 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/imageRendering",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/imageRendering/enum",keyword:"enum",params:{allowedValues: schema21.items.items[5].items.oneOf[1].oneOf[2].properties.imageRendering.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid7 = _errs51 === errors;}else {var valid7 = true;}if(valid7){if(data7.appearance !== undefined){let data21 = data7.appearance;const _errs53 = errors;if(typeof data21 !== "string"){const err25 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/appearance",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/appearance/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(!((data21 === "auto") || (data21 === "monochrome"))){const err26 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/appearance",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/appearance/enum",keyword:"enum",params:{allowedValues: schema21.items.items[5].items.oneOf[1].oneOf[2].properties.appearance.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid7 = _errs53 === errors;}else {var valid7 = true;}if(valid7){if(data7.background !== undefined){const _errs55 = errors;if(typeof data7.background !== "boolean"){const err27 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/background",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/background/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid7 = _errs55 === errors;}else {var valid7 = true;}if(valid7){if(data7.collapsed !== undefined){const _errs57 = errors;if(typeof data7.collapsed !== "boolean"){const err28 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/collapsed",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/collapsed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid7 = _errs57 === errors;}else {var valid7 = true;}if(valid7){if(data7.collapsible !== undefined){const _errs59 = errors;if(typeof data7.collapsible !== "boolean"){const err29 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/collapsible",schemaPath:"#/items/items/5/items/oneOf/1/oneOf/2/properties/collapsible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid7 = _errs59 === errors;}else {var valid7 = true;}}}}}}}}}}}}}}}}var _valid1 = _errs33 === errors;if(_valid1 && valid4){valid4 = false;passing1 = [passing1, 2];}else {if(_valid1){valid4 = true;passing1 = 2;}}}if(!valid4){const err30 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}if(errors === _errs19){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing3;if((data7.type === undefined) && (missing3 = "type")){const err31 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {if(data7.type !== undefined){let data25 = data7.type;if(typeof data25 !== "string"){const err32 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(!(((data25 === "text") || (data25 === "image")) || (data25 === "structured-content"))){const err33 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/type",schemaPath:"#/items/items/5/items/oneOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema21.items.items[5].items.oneOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}}else {const err34 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var _valid0 = _errs19 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 1];}else {if(_valid0){valid3 = true;passing0 = 1;}const _errs63 = errors;if(errors === _errs63){if(Array.isArray(data7)){if(data7.length > 2){const err35 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {if(data7.length < 2){const err36 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {const len4 = data7.length;if(len4 > 0){const _errs65 = errors;if(typeof data7[0] !== "string"){const err37 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/0",schemaPath:"#/items/items/5/items/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid9 = _errs65 === errors;}if(valid9){if(len4 > 1){let data27 = data7[1];const _errs67 = errors;if(errors === _errs67){if(Array.isArray(data27)){var valid10 = true;const len5 = data27.length;for(let i2=0; i2<len5; i2++){const _errs69 = errors;if(typeof data27[i2] !== "string"){const err38 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/1/" + i2,schemaPath:"#/items/items/5/items/oneOf/2/items/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid10 = _errs69 === errors;if(!valid10){break;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/5/" + i1+"/1",schemaPath:"#/items/items/5/items/oneOf/2/items/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var valid9 = _errs67 === errors;}}}}}else {const err40 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid0 = _errs63 === errors;if(_valid0 && valid3){valid3 = false;passing0 = [passing0, 2];}else {if(_valid0){valid3 = true;passing0 = 2;}}}if(!valid3){const err41 = {instancePath:instancePath+"/" + i0+"/5/" + i1,schemaPath:"#/items/items/5/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;validate17.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid2 = _errs15 === errors;if(!valid2){break;}}}else {validate17.errors = [{instancePath:instancePath+"/" + i0+"/5",schemaPath:"#/items/items/5/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs13 === errors;}if(valid1){if(len2 > 6){let data29 = data0[6];const _errs71 = errors;if(!(((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29))) && (isFinite(data29)))){validate17.errors = [{instancePath:instancePath+"/" + i0+"/6",schemaPath:"#/items/items/6/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid1 = _errs71 === errors;}if(valid1){if(len2 > 7){const _errs73 = errors;if(typeof data0[7] !== "string"){validate17.errors = [{instancePath:instancePath+"/" + i0+"/7",schemaPath:"#/items/items/7/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs73 === errors;}}}}}}}}}}}}else {validate17.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate17.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate17.errors = vErrors;return errors === 0;}export const dictionaryTermMetaBankV3 = validate20;const schema30 = {"$id":"dictionaryTermMetaBankV3","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"frequency":{"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]}},"type":"array","description":"Custom metadata for terms.","items":{"type":"array","description":"Metadata about a single term.","minItems":3,"maxItems":3,"additionalItems":false,"items":[{"type":"string","description":"The text for the term."},{"type":"string","enum":["freq","pitch","ipa"],"description":"Type of data. \"freq\" corresponds to frequency information; \"pitch\" corresponds to pitch information. \"ipa\" corresponds to IPA transcription."},{"description":"Data for the term."}],"oneOf":[{"minItems":3,"maxItems":3,"items":[{},{"const":"freq"},{"oneOf":[{"$ref":"#/definitions/frequency","description":"Frequency information for the term."},{"type":"object","required":["reading","frequency"],"additionalProperties":false,"properties":{"reading":{"type":"string","description":"Reading for the term."},"frequency":{"$ref":"#/definitions/frequency","description":"Frequency information for the term."}}}]}]},{"minItems":3,"maxItems":3,"items":[{},{"const":"pitch"},{"type":"object","description":"Pitch accent information for the term.","required":["reading","pitches"],"additionalProperties":false,"properties":{"reading":{"type":"string","description":"Reading for the term."},"pitches":{"type":"array","description":"List of different pitch accent information for the term and reading combination.","items":{"type":"object","required":["position"],"additionalProperties":false,"properties":{"position":{"oneOf":[{"type":"integer","description":"Mora position of the pitch accent downstep. A value of 0 indicates that the word does not have a downstep (heiban).","minimum":0},{"type":"string","description":"Pitch level of each mora with H representing high and L representing low. For example: HHLL for a 4 mora word.","pattern":"^[HL]+$"}]},"nasal":{"oneOf":[{"type":"integer","description":"Position of a mora with nasal sound.","minimum":0},{"type":"array","description":"Positions of morae with nasal sound.","items":{"type":"integer","minimum":0}}]},"devoice":{"oneOf":[{"type":"integer","description":"Position of a mora with devoiced sound.","minimum":0},{"type":"array","description":"Positions of morae with devoiced sound.","items":{"type":"integer","minimum":0}}]},"tags":{"type":"array","description":"List of tags for this pitch accent.","items":{"type":"string","description":"Tag for this pitch accent. This typically corresponds to a certain type of part of speech."}}}}}}}]},{"minItems":3,"maxItems":3,"items":[{},{"const":"ipa"},{"type":["object"],"description":"IPA transcription information for the term.","required":["reading","transcriptions"],"additionalProperties":false,"properties":{"reading":{"type":"string","description":"Reading for the term."},"transcriptions":{"type":"array","description":"List of different IPA transcription information for the term and reading combination.","items":{"type":"object","required":["ipa"],"additionalProperties":false,"properties":{"ipa":{"type":"string","description":"IPA transcription for the term."},"tags":{"type":"array","description":"List of tags for this IPA transcription.","items":{"type":"string","description":"Tag for this IPA transcription."}}}}}}}]}]}};const schema31 = {"oneOf":[{"type":["string","number"]},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"number"},"displayValue":{"type":"string"}}}]};const pattern3 = new RegExp("^[HL]+$", "u");function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="dictionaryTermMetaBankV3" */;let vErrors = null;let errors = 0;if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;const _errs3 = errors;let valid1 = false;let passing0 = null;const _errs4 = errors;if(Array.isArray(data0)){if(data0.length > 3){const err0 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.length < 3){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/0/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len1 = data0.length;if(len1 > 1){const _errs5 = errors;if("freq" !== data0[1]){const err2 = {instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/oneOf/0/items/1/const",keyword:"const",params:{allowedValue: "freq"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid2 = _errs5 === errors;}if(valid2){if(len1 > 2){let data2 = data0[2];const _errs6 = errors;const _errs7 = errors;let valid3 = false;let passing1 = null;const _errs8 = errors;const _errs10 = errors;let valid5 = false;let passing2 = null;const _errs11 = errors;if((typeof data2 !== "string") && (!((typeof data2 == "number") && (isFinite(data2))))){const err3 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/0/type",keyword:"type",params:{type: schema31.oneOf[0].type},message:"must be string,number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing2 = 0;}const _errs13 = errors;if(errors === _errs13){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing0;if((data2.value === undefined) && (missing0 = "value")){const err4 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {const _errs15 = errors;for(const key0 in data2){if(!((key0 === "value") || (key0 === "displayValue"))){const err5 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;break;}}if(_errs15 === errors){if(data2.value !== undefined){let data3 = data2.value;const _errs16 = errors;if(!((typeof data3 == "number") && (isFinite(data3)))){const err6 = {instancePath:instancePath+"/" + i0+"/2/value",schemaPath:"#/definitions/frequency/oneOf/1/properties/value/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid6 = _errs16 === errors;}else {var valid6 = true;}if(valid6){if(data2.displayValue !== undefined){const _errs18 = errors;if(typeof data2.displayValue !== "string"){const err7 = {instancePath:instancePath+"/" + i0+"/2/displayValue",schemaPath:"#/definitions/frequency/oneOf/1/properties/displayValue/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs18 === errors;}else {var valid6 = true;}}}}}else {const err8 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing2 = [passing2, 1];}else {if(_valid2){valid5 = true;passing2 = 1;}}if(!valid5){const err9 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/definitions/frequency/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var _valid1 = _errs8 === errors;if(_valid1){valid3 = true;passing1 = 0;}const _errs20 = errors;if(errors === _errs20){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if(((data2.reading === undefined) && (missing1 = "reading")) || ((data2.frequency === undefined) && (missing1 = "frequency"))){const err10 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {const _errs22 = errors;for(const key1 in data2){if(!((key1 === "reading") || (key1 === "frequency"))){const err11 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;break;}}if(_errs22 === errors){if(data2.reading !== undefined){const _errs23 = errors;if(typeof data2.reading !== "string"){const err12 = {instancePath:instancePath+"/" + i0+"/2/reading",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/properties/reading/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var valid7 = _errs23 === errors;}else {var valid7 = true;}if(valid7){if(data2.frequency !== undefined){let data6 = data2.frequency;const _errs25 = errors;const _errs27 = errors;let valid9 = false;let passing3 = null;const _errs28 = errors;if((typeof data6 !== "string") && (!((typeof data6 == "number") && (isFinite(data6))))){const err13 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/0/type",keyword:"type",params:{type: schema31.oneOf[0].type},message:"must be string,number"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid3 = _errs28 === errors;if(_valid3){valid9 = true;passing3 = 0;}const _errs30 = errors;if(errors === _errs30){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if((data6.value === undefined) && (missing2 = "value")){const err14 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {const _errs32 = errors;for(const key2 in data6){if(!((key2 === "value") || (key2 === "displayValue"))){const err15 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;break;}}if(_errs32 === errors){if(data6.value !== undefined){let data7 = data6.value;const _errs33 = errors;if(!((typeof data7 == "number") && (isFinite(data7)))){const err16 = {instancePath:instancePath+"/" + i0+"/2/frequency/value",schemaPath:"#/definitions/frequency/oneOf/1/properties/value/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid10 = _errs33 === errors;}else {var valid10 = true;}if(valid10){if(data6.displayValue !== undefined){const _errs35 = errors;if(typeof data6.displayValue !== "string"){const err17 = {instancePath:instancePath+"/" + i0+"/2/frequency/displayValue",schemaPath:"#/definitions/frequency/oneOf/1/properties/displayValue/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid10 = _errs35 === errors;}else {var valid10 = true;}}}}}else {const err18 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs30 === errors;if(_valid3 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid3){valid9 = true;passing3 = 1;}}if(!valid9){const err19 = {instancePath:instancePath+"/" + i0+"/2/frequency",schemaPath:"#/definitions/frequency/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid7 = _errs25 === errors;}else {var valid7 = true;}}}}}else {const err20 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var _valid1 = _errs20 === errors;if(_valid1 && valid3){valid3 = false;passing1 = [passing1, 1];}else {if(_valid1){valid3 = true;passing1 = 1;}}if(!valid3){const err21 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/0/items/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid2 = _errs6 === errors;}}}}}var _valid0 = _errs4 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs37 = errors;if(Array.isArray(data0)){if(data0.length > 3){const err22 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data0.length < 3){const err23 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/1/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data0.length;if(len2 > 1){const _errs38 = errors;if("pitch" !== data0[1]){const err24 = {instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "pitch"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid11 = _errs38 === errors;}if(valid11){if(len2 > 2){let data10 = data0[2];const _errs39 = errors;if(errors === _errs39){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){let missing3;if(((data10.reading === undefined) && (missing3 = "reading")) || ((data10.pitches === undefined) && (missing3 = "pitches"))){const err25 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/1/items/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {const _errs41 = errors;for(const key3 in data10){if(!((key3 === "reading") || (key3 === "pitches"))){const err26 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/1/items/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;break;}}if(_errs41 === errors){if(data10.reading !== undefined){const _errs42 = errors;if(typeof data10.reading !== "string"){const err27 = {instancePath:instancePath+"/" + i0+"/2/reading",schemaPath:"#/items/oneOf/1/items/2/properties/reading/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid12 = _errs42 === errors;}else {var valid12 = true;}if(valid12){if(data10.pitches !== undefined){let data12 = data10.pitches;const _errs44 = errors;if(errors === _errs44){if(Array.isArray(data12)){var valid13 = true;const len3 = data12.length;for(let i1=0; i1<len3; i1++){let data13 = data12[i1];const _errs46 = errors;if(errors === _errs46){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing4;if((data13.position === undefined) && (missing4 = "position")){const err28 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {const _errs48 = errors;for(const key4 in data13){if(!((((key4 === "position") || (key4 === "nasal")) || (key4 === "devoice")) || (key4 === "tags"))){const err29 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;break;}}if(_errs48 === errors){if(data13.position !== undefined){let data14 = data13.position;const _errs49 = errors;const _errs50 = errors;let valid15 = false;let passing4 = null;const _errs51 = errors;if(!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))){const err30 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(errors === _errs51){if((typeof data14 == "number") && (isFinite(data14))){if(data14 < 0 || isNaN(data14)){const err31 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid15 = true;passing4 = 0;}const _errs53 = errors;if(errors === _errs53){if(typeof data14 === "string"){if(!pattern3.test(data14)){const err32 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf/1/pattern",keyword:"pattern",params:{pattern: "^[HL]+$"},message:"must match pattern \""+"^[HL]+$"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var _valid4 = _errs53 === errors;if(_valid4 && valid15){valid15 = false;passing4 = [passing4, 1];}else {if(_valid4){valid15 = true;passing4 = 1;}}if(!valid15){const err34 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/position",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/position/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var valid14 = _errs49 === errors;}else {var valid14 = true;}if(valid14){if(data13.nasal !== undefined){let data15 = data13.nasal;const _errs55 = errors;const _errs56 = errors;let valid16 = false;let passing5 = null;const _errs57 = errors;if(!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))){const err35 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors === _errs57){if((typeof data15 == "number") && (isFinite(data15))){if(data15 < 0 || isNaN(data15)){const err36 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid5 = _errs57 === errors;if(_valid5){valid16 = true;passing5 = 0;}const _errs59 = errors;if(errors === _errs59){if(Array.isArray(data15)){var valid17 = true;const len4 = data15.length;for(let i2=0; i2<len4; i2++){let data16 = data15[i2];const _errs61 = errors;if(!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))){const err37 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal/" + i2,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/1/items/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors === _errs61){if((typeof data16 == "number") && (isFinite(data16))){if(data16 < 0 || isNaN(data16)){const err38 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal/" + i2,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/1/items/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}var valid17 = _errs61 === errors;if(!valid17){break;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var _valid5 = _errs59 === errors;if(_valid5 && valid16){valid16 = false;passing5 = [passing5, 1];}else {if(_valid5){valid16 = true;passing5 = 1;}}if(!valid16){const err40 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}var valid14 = _errs55 === errors;}else {var valid14 = true;}if(valid14){if(data13.devoice !== undefined){let data17 = data13.devoice;const _errs63 = errors;const _errs64 = errors;let valid18 = false;let passing6 = null;const _errs65 = errors;if(!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))){const err41 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors === _errs65){if((typeof data17 == "number") && (isFinite(data17))){if(data17 < 0 || isNaN(data17)){const err42 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}var _valid6 = _errs65 === errors;if(_valid6){valid18 = true;passing6 = 0;}const _errs67 = errors;if(errors === _errs67){if(Array.isArray(data17)){var valid19 = true;const len5 = data17.length;for(let i3=0; i3<len5; i3++){let data18 = data17[i3];const _errs69 = errors;if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){const err43 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice/" + i3,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/1/items/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(errors === _errs69){if((typeof data18 == "number") && (isFinite(data18))){if(data18 < 0 || isNaN(data18)){const err44 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice/" + i3,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/1/items/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}var valid19 = _errs69 === errors;if(!valid19){break;}}}else {const err45 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}var _valid6 = _errs67 === errors;if(_valid6 && valid18){valid18 = false;passing6 = [passing6, 1];}else {if(_valid6){valid18 = true;passing6 = 1;}}if(!valid18){const err46 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {errors = _errs64;if(vErrors !== null){if(_errs64){vErrors.length = _errs64;}else {vErrors = null;}}}var valid14 = _errs63 === errors;}else {var valid14 = true;}if(valid14){if(data13.tags !== undefined){let data19 = data13.tags;const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data19)){var valid20 = true;const len6 = data19.length;for(let i4=0; i4<len6; i4++){const _errs73 = errors;if(typeof data19[i4] !== "string"){const err47 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/tags/" + i4,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/tags/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid20 = _errs73 === errors;if(!valid20){break;}}}else {const err48 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/tags",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/tags/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var valid14 = _errs71 === errors;}else {var valid14 = true;}}}}}}}else {const err49 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1,schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}var valid13 = _errs46 === errors;if(!valid13){break;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/2/pitches",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}var valid12 = _errs44 === errors;}else {var valid12 = true;}}}}}else {const err51 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/1/items/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}var valid11 = _errs39 === errors;}}}}}var _valid0 = _errs37 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}const _errs75 = errors;if(Array.isArray(data0)){if(data0.length > 3){const err52 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.length < 3){const err53 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf/2/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {const len7 = data0.length;if(len7 > 1){const _errs76 = errors;if("ipa" !== data0[1]){const err54 = {instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/oneOf/2/items/1/const",keyword:"const",params:{allowedValue: "ipa"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}var valid21 = _errs76 === errors;}if(valid21){if(len7 > 2){let data22 = data0[2];const _errs77 = errors;if(errors === _errs77){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){let missing5;if(((data22.reading === undefined) && (missing5 = "reading")) || ((data22.transcriptions === undefined) && (missing5 = "transcriptions"))){const err55 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/2/items/2/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {const _errs79 = errors;for(const key5 in data22){if(!((key5 === "reading") || (key5 === "transcriptions"))){const err56 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/2/items/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;break;}}if(_errs79 === errors){if(data22.reading !== undefined){const _errs80 = errors;if(typeof data22.reading !== "string"){const err57 = {instancePath:instancePath+"/" + i0+"/2/reading",schemaPath:"#/items/oneOf/2/items/2/properties/reading/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid22 = _errs80 === errors;}else {var valid22 = true;}if(valid22){if(data22.transcriptions !== undefined){let data24 = data22.transcriptions;const _errs82 = errors;if(errors === _errs82){if(Array.isArray(data24)){var valid23 = true;const len8 = data24.length;for(let i5=0; i5<len8; i5++){let data25 = data24[i5];const _errs84 = errors;if(errors === _errs84){if(data25 && typeof data25 == "object" && !Array.isArray(data25)){let missing6;if((data25.ipa === undefined) && (missing6 = "ipa")){const err58 = {instancePath:instancePath+"/" + i0+"/2/transcriptions/" + i5,schemaPath:"#/items/oneOf/2/items/2/properties/transcriptions/items/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}else {const _errs86 = errors;for(const key6 in data25){if(!((key6 === "ipa") || (key6 === "tags"))){const err59 = {instancePath:instancePath+"/" + i0+"/2/transcriptions/" + i5,schemaPath:"#/items/oneOf/2/items/2/properties/transcriptions/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;break;}}if(_errs86 === errors){if(data25.ipa !== undefined){const _errs87 = errors;if(typeof data25.ipa !== "string"){const err60 = {instancePath:instancePath+"/" + i0+"/2/transcriptions/" + i5+"/ipa",schemaPath:"#/items/oneOf/2/items/2/properties/transcriptions/items/properties/ipa/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var valid24 = _errs87 === errors;}else {var valid24 = true;}if(valid24){if(data25.tags !== undefined){let data27 = data25.tags;const _errs89 = errors;if(errors === _errs89){if(Array.isArray(data27)){var valid25 = true;const len9 = data27.length;for(let i6=0; i6<len9; i6++){const _errs91 = errors;if(typeof data27[i6] !== "string"){const err61 = {instancePath:instancePath+"/" + i0+"/2/transcriptions/" + i5+"/tags/" + i6,schemaPath:"#/items/oneOf/2/items/2/properties/transcriptions/items/properties/tags/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}var valid25 = _errs91 === errors;if(!valid25){break;}}}else {const err62 = {instancePath:instancePath+"/" + i0+"/2/transcriptions/" + i5+"/tags",schemaPath:"#/items/oneOf/2/items/2/properties/transcriptions/items/properties/tags/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}var valid24 = _errs89 === errors;}else {var valid24 = true;}}}}}else {const err63 = {instancePath:instancePath+"/" + i0+"/2/transcriptions/" + i5,schemaPath:"#/items/oneOf/2/items/2/properties/transcriptions/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid23 = _errs84 === errors;if(!valid23){break;}}}else {const err64 = {instancePath:instancePath+"/" + i0+"/2/transcriptions",schemaPath:"#/items/oneOf/2/items/2/properties/transcriptions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}var valid22 = _errs82 === errors;}else {var valid22 = true;}}}}}else {const err65 = {instancePath:instancePath+"/" + i0+"/2",schemaPath:"#/items/oneOf/2/items/2/type",keyword:"type",params:{type: schema30.items.oneOf[2].items[2].type},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid21 = _errs77 === errors;}}}}}var _valid0 = _errs75 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 2];}else {if(_valid0){valid1 = true;passing0 = 2;}}}if(!valid1){const err66 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;validate20.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 3){validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {if(data0.length < 3){validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"}];return false;}else {const len10 = data0.length;if(!(len10 <= 3)){validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalItems",keyword:"additionalItems",params:{limit: 3},message:"must NOT have more than 3 items"}];return false;}else {const len11 = data0.length;if(len11 > 0){const _errs93 = errors;if(typeof data0[0] !== "string"){validate20.errors = [{instancePath:instancePath+"/" + i0+"/0",schemaPath:"#/items/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs93 === errors;}if(valid26){if(len11 > 1){let data30 = data0[1];const _errs95 = errors;if(typeof data30 !== "string"){validate20.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data30 === "freq") || (data30 === "pitch")) || (data30 === "ipa"))){validate20.errors = [{instancePath:instancePath+"/" + i0+"/1",schemaPath:"#/items/items/1/enum",keyword:"enum",params:{allowedValues: schema30.items.items[1].enum},message:"must be equal to one of the allowed values"}];return false;}var valid26 = _errs95 === errors;}}}}}}else {validate20.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate20.errors = vErrors;return errors === 0;}export const options = validate21;const schema33 = {"$id":"options","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["version","profiles","profileCurrent","global"],"properties":{"version":{"type":"integer","minimum":0,"default":0},"profiles":{"type":"array","minItems":1,"items":{"type":"object","required":["name","conditionGroups","options"],"properties":{"name":{"type":"string","default":"Default"},"conditionGroups":{"type":"array","items":{"type":"object","required":["conditions"],"properties":{"conditions":{"type":"array","items":{"type":"object","required":["type","operator","value"],"properties":{"type":{"type":"string"},"operator":{"type":"string"},"value":{}}}}}}},"options":{"type":"object","required":["general","popupWindow","audio","scanning","translation","dictionaries","parsing","anki","sentenceParsing","inputs","clipboard","accessibility"],"properties":{"general":{"type":"object","required":["enable","language","resultOutputMode","debugInfo","maxResults","showAdvanced","showDebug","popupDisplayMode","popupWidth","popupHeight","popupHorizontalOffset","popupVerticalOffset","popupHorizontalOffset2","popupVerticalOffset2","popupHorizontalTextPosition","popupVerticalTextPosition","popupScalingFactor","popupScaleRelativeToPageZoom","popupScaleRelativeToVisualViewport","showGuide","enableContextMenuScanSelected","compactTags","averageFrequency","glossaryLayoutMode","mainDictionary","popupTheme","popupOuterTheme","customPopupCss","customPopupOuterCss","enableWanakana","showPitchAccentDownstepNotation","showPitchAccentPositionNotation","showPitchAccentGraph","showIframePopupsInRootFrame","useSecurePopupFrameUrl","usePopupShadowDom","usePopupWindow","popupCurrentIndicatorMode","popupActionBarVisibility","popupActionBarLocation","frequencyDisplayMode","termDisplayMode","sortFrequencyDictionary","sortFrequencyDictionaryOrder","stickySearchHeader","fontFamily","fontSize","lineHeight","enableYomitanApi","yomitanApiServer","yomitanApiAllowCssSanitizationBypass"],"properties":{"enable":{"type":"boolean","default":true},"language":{"type":"string","default":"ja"},"resultOutputMode":{"type":"string","enum":["group","merge","split","term"],"default":"group"},"fontFamily":{"type":"string","default":""},"fontSize":{"type":"number","default":14},"lineHeight":{"type":"string","default":"1.5"},"debugInfo":{"type":"boolean","default":false},"maxResults":{"type":"integer","minimum":1,"default":32},"showAdvanced":{"type":"boolean","default":false},"showDebug":{"type":"boolean","default":false},"popupDisplayMode":{"type":"string","enum":["default","full-width"],"default":"default"},"popupWidth":{"type":"number","minimum":0,"default":400},"popupHeight":{"type":"number","minimum":0,"default":250},"popupHorizontalOffset":{"type":"number","default":0},"popupVerticalOffset":{"type":"number","default":10},"popupHorizontalOffset2":{"type":"number","default":10},"popupVerticalOffset2":{"type":"number","default":0},"popupHorizontalTextPosition":{"type":"string","enum":["below","above"],"default":"below"},"popupVerticalTextPosition":{"type":"string","enum":["default","before","after","left","right"],"default":"before"},"popupScalingFactor":{"type":"number","default":1},"popupScaleRelativeToPageZoom":{"type":"boolean","default":false},"popupScaleRelativeToVisualViewport":{"type":"boolean","default":true},"showGuide":{"type":"boolean","default":true},"enableContextMenuScanSelected":{"type":"boolean","default":true},"compactTags":{"type":"boolean","default":false},"averageFrequency":{"type":"boolean","default":false},"glossaryLayoutMode":{"type":"string","enum":["default","compact","compact-popup-anki"],"default":"default"},"mainDictionary":{"type":"string"},"popupTheme":{"type":"string","enum":["light","dark","browser","site"],"default":"site"},"popupOuterTheme":{"type":"string","enum":["light","dark","browser","site","none"],"default":"site"},"customPopupCss":{"type":"string","default":""},"customPopupOuterCss":{"type":"string","default":""},"enableWanakana":{"type":"boolean","default":true},"showPitchAccentDownstepNotation":{"type":"boolean","default":true},"showPitchAccentPositionNotation":{"type":"boolean","default":true},"showPitchAccentGraph":{"type":"boolean","default":false},"showIframePopupsInRootFrame":{"type":"boolean","default":true},"useSecurePopupFrameUrl":{"type":"boolean","default":true},"usePopupShadowDom":{"type":"boolean","default":true},"usePopupWindow":{"type":"boolean","default":false},"popupCurrentIndicatorMode":{"type":"string","enum":["none","asterisk","triangle","bar-left","bar-right","dot-left","dot-right"],"default":"triangle"},"popupActionBarVisibility":{"type":"string","enum":["auto","always"],"default":"auto"},"popupActionBarLocation":{"type":"string","enum":["left","right","top","bottom"],"default":"top"},"frequencyDisplayMode":{"type":"string","enum":["tags","tags-grouped","split-tags","split-tags-grouped","inline-list","list"],"default":"split-tags-grouped"},"termDisplayMode":{"type":"string","enum":["ruby","ruby-and-reading","term-and-reading","term-only"],"default":"ruby"},"sortFrequencyDictionary":{"type":["string","null"],"default":null},"sortFrequencyDictionaryOrder":{"type":"string","enum":["ascending","descending"],"default":"descending"},"stickySearchHeader":{"type":"boolean","default":false},"enableYomitanApi":{"type":"boolean","default":false},"yomitanApiServer":{"type":"string","default":"http://127.0.0.1:19633"},"yomitanApiAllowCssSanitizationBypass":{"type":"boolean","default":false}}},"popupWindow":{"type":"object","required":["width","height","left","top","useLeft","useTop","windowType","windowState"],"properties":{"width":{"type":"integer","minimum":0,"default":400},"height":{"type":"integer","minimum":0,"default":250},"left":{"type":"integer","default":0},"top":{"type":"integer","default":0},"useLeft":{"type":"boolean","default":false},"useTop":{"type":"boolean","default":false},"windowType":{"type":"string","enum":["normal","popup"],"default":"popup"},"windowState":{"type":"string","enum":["normal","maximized","fullscreen"],"default":"normal"}}},"audio":{"type":"object","required":["enabled","volume","autoPlay","fallbackSoundType","sources","enableDefaultAudioSources"],"properties":{"enabled":{"type":"boolean","default":true},"volume":{"type":"number","minimum":0,"maximum":100,"default":100},"autoPlay":{"type":"boolean","default":false},"fallbackSoundType":{"type":"string","enum":["none","click","bloop"],"default":"click"},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["type","url","voice"],"properties":{"type":{"type":"string","enum":["jpod101","language-pod-101","jisho","lingua-libre","wiktionary","text-to-speech","text-to-speech-reading","custom","custom-json"],"default":"jpod101"},"url":{"type":"string","default":""},"voice":{"type":"string","default":""}}},"default":[]},"enableDefaultAudioSources":{"type":"boolean","default":true}}},"scanning":{"type":"object","required":["inputs","preventMiddleMouse","preventBackForward","selectText","alphanumeric","autoHideResults","delay","hideDelay","length","deepDomScan","popupNestingMaxDepth","enablePopupSearch","enableOnPopupExpressions","enableOnSearchPage","enableSearchTags","layoutAwareScan","matchTypePrefix","hidePopupOnCursorExit","hidePopupOnCursorExitDelay","reducedMotionScrolling","reducedMotionScrollingScale","reducedMotionScrollingSwipeThreshold","normalizeCssZoom","scanWithoutMousemove","scanResolution"],"properties":{"inputs":{"type":"array","default":[{"include":"shift","exclude":"mouse0","types":{"mouse":true,"touch":false,"pen":false},"options":{"showAdvanced":false,"searchTerms":true,"searchKanji":true,"scanOnTouchTap":true,"scanOnTouchMove":false,"scanOnTouchPress":false,"scanOnTouchRelease":false,"scanOnPenMove":true,"scanOnPenHover":false,"scanOnPenReleaseHover":false,"scanOnPenPress":true,"scanOnPenRelease":false,"preventTouchScrolling":false,"preventPenScrolling":false,"minimumTouchTime":0}},{"include":"","exclude":"","types":{"mouse":false,"touch":true,"pen":true},"options":{"showAdvanced":false,"searchTerms":true,"searchKanji":true,"scanOnTouchTap":true,"scanOnTouchMove":false,"scanOnTouchPress":false,"scanOnTouchRelease":false,"scanOnPenMove":true,"scanOnPenHover":false,"scanOnPenReleaseHover":false,"scanOnPenPress":true,"scanOnPenRelease":false,"preventTouchScrolling":true,"preventPenScrolling":true,"minimumTouchTime":0}}],"items":{"type":"object","required":["include","exclude","types","options"],"properties":{"include":{"type":"string","default":"shift"},"exclude":{"type":"string","default":""},"types":{"type":"object","required":["mouse","touch","pen"],"properties":{"mouse":{"type":"boolean","default":true},"touch":{"type":"boolean","default":true},"pen":{"type":"boolean","default":true}}},"options":{"type":"object","required":["showAdvanced","searchTerms","searchKanji","scanOnTouchTap","scanOnTouchMove","scanOnTouchPress","scanOnTouchRelease","scanOnPenMove","scanOnPenHover","scanOnPenReleaseHover","scanOnPenPress","scanOnPenRelease","preventTouchScrolling","preventPenScrolling","minimumTouchTime"],"properties":{"showAdvanced":{"type":"boolean","default":false},"searchTerms":{"type":"boolean","default":true},"searchKanji":{"type":"boolean","default":true},"scanOnTouchTap":{"type":"boolean","default":true},"scanOnTouchMove":{"type":"boolean","default":false},"scanOnTouchPress":{"type":"boolean","default":false},"scanOnTouchRelease":{"type":"boolean","default":false},"scanOnPenMove":{"type":"boolean","default":true},"scanOnPenHover":{"type":"boolean","default":false},"scanOnPenReleaseHover":{"type":"boolean","default":false},"scanOnPenPress":{"type":"boolean","default":true},"scanOnPenRelease":{"type":"boolean","default":false},"preventTouchScrolling":{"type":"boolean","default":true},"preventPenScrolling":{"type":"boolean","default":true},"minimumTouchTime":{"type":"number","default":0}}}}}},"preventMiddleMouse":{"type":"object","required":["onTextHover","onWebPages","onPopupPages","onSearchPages","onSearchQuery"],"properties":{"onWebPages":{"type":"boolean","default":false},"onPopupPages":{"type":"boolean","default":false},"onSearchPages":{"type":"boolean","default":false},"onSearchQuery":{"type":"boolean","default":false}}},"preventBackForward":{"type":"object","required":["onTextHover","onWebPages","onPopupPages","onSearchPages","onSearchQuery"],"properties":{"onWebPages":{"type":"boolean","default":false},"onPopupPages":{"type":"boolean","default":false},"onSearchPages":{"type":"boolean","default":false},"onSearchQuery":{"type":"boolean","default":false}}},"selectText":{"type":"boolean","default":true},"alphanumeric":{"type":"boolean","default":true},"autoHideResults":{"type":"boolean","default":false},"delay":{"type":"number","minimum":0,"default":20},"hideDelay":{"type":"number","minimum":0,"default":0},"length":{"type":"integer","minimum":1,"default":16},"deepDomScan":{"type":"boolean","default":false},"popupNestingMaxDepth":{"type":"integer","minimum":0,"default":10},"enablePopupSearch":{"type":"boolean","default":false},"enableOnPopupExpressions":{"type":"boolean","default":false},"enableOnSearchPage":{"type":"boolean","default":true},"enableSearchTags":{"type":"boolean","default":false},"layoutAwareScan":{"type":"boolean","default":true},"matchTypePrefix":{"type":"boolean","default":false},"hidePopupOnCursorExit":{"type":"boolean","default":false},"hidePopupOnCursorExitDelay":{"type":"number","minimum":0,"default":0},"reducedMotionScrolling":{"type":"boolean","default":false},"reducedMotionScrollingScale":{"type":"number","default":1},"reducedMotionScrollingSwipeThreshold":{"type":"number","minimum":0,"default":40},"normalizeCssZoom":{"type":"boolean","default":true},"scanWithoutMousemove":{"type":"boolean","default":true},"scanResolution":{"type":"string","enum":["character","word"],"default":"character"}}},"translation":{"type":"object","required":["textReplacements","searchResolution"],"properties":{"searchResolution":{"type":"string","enum":["letter","word"],"default":"letter"},"textReplacements":{"type":"object","required":["searchOriginal","groups"],"properties":{"searchOriginal":{"type":"boolean","default":true},"groups":{"type":"array","items":{"type":"array","items":{"type":"object","required":["pattern","ignoreCase","replacement"],"properties":{"pattern":{"type":"string","default":""},"ignoreCase":{"type":"boolean","default":false},"replacement":{"type":"string","default":""}}}}}}}}},"dictionaries":{"type":"array","items":{"type":"object","required":["name","alias","enabled","allowSecondarySearches","definitionsCollapsible","partsOfSpeechFilter","useDeinflections"],"properties":{"name":{"type":"string","default":""},"alias":{"type":"string","default":""},"enabled":{"type":"boolean","default":true},"allowSecondarySearches":{"type":"boolean","default":false},"definitionsCollapsible":{"type":"string","enum":["not-collapsible","expanded","collapsed","force-collapsed","force-expanded"],"default":"not-collapsible"},"partsOfSpeechFilter":{"type":"boolean","default":true},"useDeinflections":{"type":"boolean","default":true}}}},"parsing":{"type":"object","required":["enableScanningParser","enableMecabParser","selectedParser","termSpacing","readingMode"],"properties":{"enableScanningParser":{"type":"boolean","default":true},"enableMecabParser":{"type":"boolean","default":false},"selectedParser":{"type":["string","null"],"default":null},"termSpacing":{"type":"boolean","default":true},"readingMode":{"type":"string","enum":["hiragana","katakana","romaji","dictionary-reading","none"],"default":"hiragana"}}},"anki":{"type":"object","required":["enable","server","tags","screenshot","cardFormats","duplicateScope","duplicateScopeCheckAllModels","checkForDuplicates","duplicateBehavior","fieldTemplates","suspendNewCards","displayTagsAndFlags","targetTags","noteGuiMode","apiKey","downloadTimeout","forceSync"],"properties":{"enable":{"type":"boolean","default":false},"server":{"type":"string","default":"http://127.0.0.1:8765"},"tags":{"type":"array","items":{"type":"string"},"default":["yomitan"]},"screenshot":{"type":"object","required":["format","quality"],"properties":{"format":{"type":"string","enum":["png","jpeg"],"default":"png"},"quality":{"type":"integer","minimum":0,"maximum":100,"default":92}}},"cardFormats":{"type":"array","items":{"type":"object","required":["name","icon","deck","model","fields","type"],"properties":{"name":{"type":"string","default":""},"icon":{"type":"string","enum":["big-circle","small-circle","big-square","big-diamond"],"default":"big-circle"},"deck":{"type":"string","default":""},"model":{"type":"string","default":""},"type":{"type":"string","enum":["term","kanji"],"default":"term"},"fields":{"type":"object","additionalProperties":{"type":"object","properties":{"value":{"type":"string","default":""},"overwriteMode":{"type":"string","enum":["coalesce","coalesce-new","skip","append","prepend","overwrite"],"default":"coalesce"}}}}}},"default":[{"name":"Expression","icon":"big-circle","deck":"","model":"","fields":{},"type":"term"},{"name":"Reading","icon":"small-circle","deck":"","model":"","fields":{},"type":"term"},{"name":"Kanji","icon":"big-circle","deck":"","model":"","fields":{},"type":"kanji"}]},"duplicateScope":{"type":"string","default":"collection","enum":["collection","deck","deck-root"]},"duplicateScopeCheckAllModels":{"type":"boolean","default":false},"checkForDuplicates":{"type":"boolean","default":true},"duplicateBehavior":{"type":"string","enum":["prevent","overwrite","new"],"default":"new"},"fieldTemplates":{"type":["string","null"],"default":null},"suspendNewCards":{"type":"boolean","default":false},"displayTagsAndFlags":{"type":"string","enum":["never","always","non-standard","custom"],"default":"never"},"targetTags":{"type":"array","items":{"type":"string"},"default":[]},"noteGuiMode":{"type":"string","enum":["browse","edit"],"default":"browse"},"apiKey":{"type":"string","default":""},"downloadTimeout":{"type":"number","default":0,"minimum":0},"forceSync":{"type":"boolean","default":false}}},"sentenceParsing":{"type":"object","required":["scanExtent","terminationCharacterMode","terminationCharacters"],"properties":{"scanExtent":{"type":"integer","minimum":0,"default":200},"terminationCharacterMode":{"type":"string","enum":["custom","custom-no-newlines","newlines","none"],"default":"custom"},"terminationCharacters":{"type":"array","items":{"type":"object","required":["enabled","character1","character2","includeCharacterAtStart","includeCharacterAtEnd"],"properties":{"enabled":{"type":"boolean","default":true},"character1":{"type":"string","default":"\"","minLength":1,"maxLength":1},"character2":{"type":["string","null"],"default":"\"","minLength":1,"maxLength":1},"includeCharacterAtStart":{"type":"boolean","default":false},"includeCharacterAtEnd":{"type":"boolean","default":false}}},"default":[{"enabled":true,"character1":"「","character2":"」","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":"『","character2":"』","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":"\"","character2":"\"","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":"'","character2":"'","includeCharacterAtStart":false,"includeCharacterAtEnd":false},{"enabled":true,"character1":".","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"!","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"?","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"。","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"…","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︒","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︕","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︖","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true},{"enabled":true,"character1":"︙","character2":null,"includeCharacterAtStart":false,"includeCharacterAtEnd":true}]}}},"inputs":{"type":"object","required":["hotkeys"],"properties":{"hotkeys":{"type":"array","items":{"type":"object","required":["action","argument","key","modifiers","scopes","enabled"],"properties":{"action":{"type":"string","default":""},"argument":{"type":"string","default":""},"key":{"type":["string","null"],"default":null},"modifiers":{"type":"array","items":{"type":"string","enum":["alt","ctrl","shift","meta"],"default":"alt"}},"scopes":{"type":"array","items":{"type":"string","enum":["popup","search","web"],"default":"popup"},"default":["popup","search"]},"enabled":{"type":"boolean","default":true}}},"default":[{"action":"close","argument":"","key":"Escape","modifiers":[],"scopes":["popup"],"enabled":true},{"action":"focusSearchBox","argument":"","key":"Escape","modifiers":[],"scopes":["search"],"enabled":true},{"action":"previousEntry","argument":"3","key":"PageUp","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"nextEntry","argument":"3","key":"PageDown","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"lastEntry","argument":"","key":"End","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"firstEntry","argument":"","key":"Home","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"previousEntry","argument":"1","key":"ArrowUp","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"nextEntry","argument":"1","key":"ArrowDown","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"historyBackward","argument":"","key":"KeyB","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"historyForward","argument":"","key":"KeyF","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"profilePrevious","argument":"","key":"Minus","modifiers":["alt"],"scopes":["popup","search","web"],"enabled":true},{"action":"profileNext","argument":"","key":"Equal","modifiers":["alt"],"scopes":["popup","search","web"],"enabled":true},{"action":"addNote","argument":"0","key":"KeyE","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"addNote","argument":"1","key":"KeyR","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"addNote","argument":"2","key":"KeyK","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"playAudio","argument":"","key":"KeyP","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"viewNotes","argument":"0","key":"KeyV","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"copyHostSelection","argument":"","key":"KeyC","modifiers":["ctrl"],"scopes":["popup"],"enabled":true}]}}},"clipboard":{"type":"object","required":["enableBackgroundMonitor","enableSearchPageMonitor","autoSearchContent","maximumSearchLength"],"properties":{"enableBackgroundMonitor":{"type":"boolean","default":false},"enableSearchPageMonitor":{"type":"boolean","default":false},"autoSearchContent":{"type":"boolean","default":true},"maximumSearchLength":{"type":"integer","default":1000,"minimum":0}}},"accessibility":{"type":"object","required":["forceGoogleDocsHtmlRendering"],"properties":{"forceGoogleDocsHtmlRendering":{"type":"boolean","default":false}}}}}}}},"profileCurrent":{"type":"integer","minimum":0,"default":0},"global":{"type":"object","required":["database","dataTransmissionConsentShown"],"properties":{"database":{"type":"object","required":["prefixWildcardsSupported"],"properties":{"prefixWildcardsSupported":{"type":"boolean","default":false}}},"dataTransmissionConsentShown":{"type":"boolean","default":false}}}}};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="options" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((data.version === undefined) && (missing0 = "version")) || ((data.profiles === undefined) && (missing0 = "profiles"))) || ((data.profileCurrent === undefined) && (missing0 = "profileCurrent"))) || ((data.global === undefined) && (missing0 = "global"))){validate21.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.version !== undefined){let data0 = data.version;const _errs1 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){validate21.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate21.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.profiles !== undefined){let data1 = data.profiles;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length < 1){validate21.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((((data2.name === undefined) && (missing1 = "name")) || ((data2.conditionGroups === undefined) && (missing1 = "conditionGroups"))) || ((data2.options === undefined) && (missing1 = "options"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0,schemaPath:"#/properties/profiles/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.name !== undefined){const _errs7 = errors;if(typeof data2.name !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/name",schemaPath:"#/properties/profiles/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs7 === errors;}else {var valid2 = true;}if(valid2){if(data2.conditionGroups !== undefined){let data4 = data2.conditionGroups;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid3 = true;const len1 = data4.length;for(let i1=0; i1<len1; i1++){let data5 = data4[i1];const _errs11 = errors;if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing2;if((data5.conditions === undefined) && (missing2 = "conditions")){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups/" + i1,schemaPath:"#/properties/profiles/items/properties/conditionGroups/items/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data5.conditions !== undefined){let data6 = data5.conditions;const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data6)){var valid5 = true;const len2 = data6.length;for(let i2=0; i2<len2; i2++){let data7 = data6[i2];const _errs15 = errors;if(errors === _errs15){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing3;if((((data7.type === undefined) && (missing3 = "type")) || ((data7.operator === undefined) && (missing3 = "operator"))) || ((data7.value === undefined) && (missing3 = "value"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups/" + i1+"/conditions/" + i2,schemaPath:"#/properties/profiles/items/properties/conditionGroups/items/properties/conditions/items/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data7.type !== undefined){const _errs17 = errors;if(typeof data7.type !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups/" + i1+"/conditions/" + i2+"/type",schemaPath:"#/properties/profiles/items/properties/conditionGroups/items/properties/conditions/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs17 === errors;}else {var valid6 = true;}if(valid6){if(data7.operator !== undefined){const _errs19 = errors;if(typeof data7.operator !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups/" + i1+"/conditions/" + i2+"/operator",schemaPath:"#/properties/profiles/items/properties/conditionGroups/items/properties/conditions/items/properties/operator/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs19 === errors;}else {var valid6 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups/" + i1+"/conditions/" + i2,schemaPath:"#/properties/profiles/items/properties/conditionGroups/items/properties/conditions/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs15 === errors;if(!valid5){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups/" + i1+"/conditions",schemaPath:"#/properties/profiles/items/properties/conditionGroups/items/properties/conditions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups/" + i1,schemaPath:"#/properties/profiles/items/properties/conditionGroups/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid3 = _errs11 === errors;if(!valid3){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/conditionGroups",schemaPath:"#/properties/profiles/items/properties/conditionGroups/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid2 = _errs9 === errors;}else {var valid2 = true;}if(valid2){if(data2.options !== undefined){let data10 = data2.options;const _errs21 = errors;if(errors === _errs21){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){let missing4;if(((((((((((((data10.general === undefined) && (missing4 = "general")) || ((data10.popupWindow === undefined) && (missing4 = "popupWindow"))) || ((data10.audio === undefined) && (missing4 = "audio"))) || ((data10.scanning === undefined) && (missing4 = "scanning"))) || ((data10.translation === undefined) && (missing4 = "translation"))) || ((data10.dictionaries === undefined) && (missing4 = "dictionaries"))) || ((data10.parsing === undefined) && (missing4 = "parsing"))) || ((data10.anki === undefined) && (missing4 = "anki"))) || ((data10.sentenceParsing === undefined) && (missing4 = "sentenceParsing"))) || ((data10.inputs === undefined) && (missing4 = "inputs"))) || ((data10.clipboard === undefined) && (missing4 = "clipboard"))) || ((data10.accessibility === undefined) && (missing4 = "accessibility"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options",schemaPath:"#/properties/profiles/items/properties/options/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data10.general !== undefined){let data11 = data10.general;const _errs23 = errors;if(errors === _errs23){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing5;if((((((((((((((((((((((((((((((((((((((((((((((((((((data11.enable === undefined) && (missing5 = "enable")) || ((data11.language === undefined) && (missing5 = "language"))) || ((data11.resultOutputMode === undefined) && (missing5 = "resultOutputMode"))) || ((data11.debugInfo === undefined) && (missing5 = "debugInfo"))) || ((data11.maxResults === undefined) && (missing5 = "maxResults"))) || ((data11.showAdvanced === undefined) && (missing5 = "showAdvanced"))) || ((data11.showDebug === undefined) && (missing5 = "showDebug"))) || ((data11.popupDisplayMode === undefined) && (missing5 = "popupDisplayMode"))) || ((data11.popupWidth === undefined) && (missing5 = "popupWidth"))) || ((data11.popupHeight === undefined) && (missing5 = "popupHeight"))) || ((data11.popupHorizontalOffset === undefined) && (missing5 = "popupHorizontalOffset"))) || ((data11.popupVerticalOffset === undefined) && (missing5 = "popupVerticalOffset"))) || ((data11.popupHorizontalOffset2 === undefined) && (missing5 = "popupHorizontalOffset2"))) || ((data11.popupVerticalOffset2 === undefined) && (missing5 = "popupVerticalOffset2"))) || ((data11.popupHorizontalTextPosition === undefined) && (missing5 = "popupHorizontalTextPosition"))) || ((data11.popupVerticalTextPosition === undefined) && (missing5 = "popupVerticalTextPosition"))) || ((data11.popupScalingFactor === undefined) && (missing5 = "popupScalingFactor"))) || ((data11.popupScaleRelativeToPageZoom === undefined) && (missing5 = "popupScaleRelativeToPageZoom"))) || ((data11.popupScaleRelativeToVisualViewport === undefined) && (missing5 = "popupScaleRelativeToVisualViewport"))) || ((data11.showGuide === undefined) && (missing5 = "showGuide"))) || ((data11.enableContextMenuScanSelected === undefined) && (missing5 = "enableContextMenuScanSelected"))) || ((data11.compactTags === undefined) && (missing5 = "compactTags"))) || ((data11.averageFrequency === undefined) && (missing5 = "averageFrequency"))) || ((data11.glossaryLayoutMode === undefined) && (missing5 = "glossaryLayoutMode"))) || ((data11.mainDictionary === undefined) && (missing5 = "mainDictionary"))) || ((data11.popupTheme === undefined) && (missing5 = "popupTheme"))) || ((data11.popupOuterTheme === undefined) && (missing5 = "popupOuterTheme"))) || ((data11.customPopupCss === undefined) && (missing5 = "customPopupCss"))) || ((data11.customPopupOuterCss === undefined) && (missing5 = "customPopupOuterCss"))) || ((data11.enableWanakana === undefined) && (missing5 = "enableWanakana"))) || ((data11.showPitchAccentDownstepNotation === undefined) && (missing5 = "showPitchAccentDownstepNotation"))) || ((data11.showPitchAccentPositionNotation === undefined) && (missing5 = "showPitchAccentPositionNotation"))) || ((data11.showPitchAccentGraph === undefined) && (missing5 = "showPitchAccentGraph"))) || ((data11.showIframePopupsInRootFrame === undefined) && (missing5 = "showIframePopupsInRootFrame"))) || ((data11.useSecurePopupFrameUrl === undefined) && (missing5 = "useSecurePopupFrameUrl"))) || ((data11.usePopupShadowDom === undefined) && (missing5 = "usePopupShadowDom"))) || ((data11.usePopupWindow === undefined) && (missing5 = "usePopupWindow"))) || ((data11.popupCurrentIndicatorMode === undefined) && (missing5 = "popupCurrentIndicatorMode"))) || ((data11.popupActionBarVisibility === undefined) && (missing5 = "popupActionBarVisibility"))) || ((data11.popupActionBarLocation === undefined) && (missing5 = "popupActionBarLocation"))) || ((data11.frequencyDisplayMode === undefined) && (missing5 = "frequencyDisplayMode"))) || ((data11.termDisplayMode === undefined) && (missing5 = "termDisplayMode"))) || ((data11.sortFrequencyDictionary === undefined) && (missing5 = "sortFrequencyDictionary"))) || ((data11.sortFrequencyDictionaryOrder === undefined) && (missing5 = "sortFrequencyDictionaryOrder"))) || ((data11.stickySearchHeader === undefined) && (missing5 = "stickySearchHeader"))) || ((data11.fontFamily === undefined) && (missing5 = "fontFamily"))) || ((data11.fontSize === undefined) && (missing5 = "fontSize"))) || ((data11.lineHeight === undefined) && (missing5 = "lineHeight"))) || ((data11.enableYomitanApi === undefined) && (missing5 = "enableYomitanApi"))) || ((data11.yomitanApiServer === undefined) && (missing5 = "yomitanApiServer"))) || ((data11.yomitanApiAllowCssSanitizationBypass === undefined) && (missing5 = "yomitanApiAllowCssSanitizationBypass"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general",schemaPath:"#/properties/profiles/items/properties/options/properties/general/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"}];return false;}else {if(data11.enable !== undefined){const _errs25 = errors;if(typeof data11.enable !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/enable",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/enable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs25 === errors;}else {var valid8 = true;}if(valid8){if(data11.language !== undefined){const _errs27 = errors;if(typeof data11.language !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/language",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs27 === errors;}else {var valid8 = true;}if(valid8){if(data11.resultOutputMode !== undefined){let data14 = data11.resultOutputMode;const _errs29 = errors;if(typeof data14 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/resultOutputMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/resultOutputMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data14 === "group") || (data14 === "merge")) || (data14 === "split")) || (data14 === "term"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/resultOutputMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/resultOutputMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.resultOutputMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs29 === errors;}else {var valid8 = true;}if(valid8){if(data11.fontFamily !== undefined){const _errs31 = errors;if(typeof data11.fontFamily !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/fontFamily",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/fontFamily/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs31 === errors;}else {var valid8 = true;}if(valid8){if(data11.fontSize !== undefined){let data16 = data11.fontSize;const _errs33 = errors;if(!((typeof data16 == "number") && (isFinite(data16)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/fontSize",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/fontSize/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs33 === errors;}else {var valid8 = true;}if(valid8){if(data11.lineHeight !== undefined){const _errs35 = errors;if(typeof data11.lineHeight !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/lineHeight",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/lineHeight/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs35 === errors;}else {var valid8 = true;}if(valid8){if(data11.debugInfo !== undefined){const _errs37 = errors;if(typeof data11.debugInfo !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/debugInfo",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/debugInfo/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs37 === errors;}else {var valid8 = true;}if(valid8){if(data11.maxResults !== undefined){let data19 = data11.maxResults;const _errs39 = errors;if(!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/maxResults",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/maxResults/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs39){if((typeof data19 == "number") && (isFinite(data19))){if(data19 < 1 || isNaN(data19)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/maxResults",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/maxResults/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid8 = _errs39 === errors;}else {var valid8 = true;}if(valid8){if(data11.showAdvanced !== undefined){const _errs41 = errors;if(typeof data11.showAdvanced !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showAdvanced",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showAdvanced/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs41 === errors;}else {var valid8 = true;}if(valid8){if(data11.showDebug !== undefined){const _errs43 = errors;if(typeof data11.showDebug !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showDebug",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showDebug/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs43 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupDisplayMode !== undefined){let data22 = data11.popupDisplayMode;const _errs45 = errors;if(typeof data22 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupDisplayMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data22 === "default") || (data22 === "full-width"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupDisplayMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupDisplayMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs45 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupWidth !== undefined){let data23 = data11.popupWidth;const _errs47 = errors;if(errors === _errs47){if((typeof data23 == "number") && (isFinite(data23))){if(data23 < 0 || isNaN(data23)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupWidth",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupWidth",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupWidth/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid8 = _errs47 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHeight !== undefined){let data24 = data11.popupHeight;const _errs49 = errors;if(errors === _errs49){if((typeof data24 == "number") && (isFinite(data24))){if(data24 < 0 || isNaN(data24)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHeight",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHeight/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHeight",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHeight/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid8 = _errs49 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHorizontalOffset !== undefined){let data25 = data11.popupHorizontalOffset;const _errs51 = errors;if(!((typeof data25 == "number") && (isFinite(data25)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalOffset",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalOffset/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs51 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupVerticalOffset !== undefined){let data26 = data11.popupVerticalOffset;const _errs53 = errors;if(!((typeof data26 == "number") && (isFinite(data26)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalOffset",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalOffset/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs53 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHorizontalOffset2 !== undefined){let data27 = data11.popupHorizontalOffset2;const _errs55 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalOffset2",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalOffset2/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs55 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupVerticalOffset2 !== undefined){let data28 = data11.popupVerticalOffset2;const _errs57 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalOffset2",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalOffset2/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs57 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupHorizontalTextPosition !== undefined){let data29 = data11.popupHorizontalTextPosition;const _errs59 = errors;if(typeof data29 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalTextPosition/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data29 === "below") || (data29 === "above"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupHorizontalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupHorizontalTextPosition/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupHorizontalTextPosition.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs59 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupVerticalTextPosition !== undefined){let data30 = data11.popupVerticalTextPosition;const _errs61 = errors;if(typeof data30 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalTextPosition/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data30 === "default") || (data30 === "before")) || (data30 === "after")) || (data30 === "left")) || (data30 === "right"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupVerticalTextPosition",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupVerticalTextPosition/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupVerticalTextPosition.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs61 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupScalingFactor !== undefined){let data31 = data11.popupScalingFactor;const _errs63 = errors;if(!((typeof data31 == "number") && (isFinite(data31)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupScalingFactor",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupScalingFactor/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid8 = _errs63 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupScaleRelativeToPageZoom !== undefined){const _errs65 = errors;if(typeof data11.popupScaleRelativeToPageZoom !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupScaleRelativeToPageZoom",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupScaleRelativeToPageZoom/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs65 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupScaleRelativeToVisualViewport !== undefined){const _errs67 = errors;if(typeof data11.popupScaleRelativeToVisualViewport !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupScaleRelativeToVisualViewport",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupScaleRelativeToVisualViewport/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs67 === errors;}else {var valid8 = true;}if(valid8){if(data11.showGuide !== undefined){const _errs69 = errors;if(typeof data11.showGuide !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showGuide",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showGuide/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs69 === errors;}else {var valid8 = true;}if(valid8){if(data11.enableContextMenuScanSelected !== undefined){const _errs71 = errors;if(typeof data11.enableContextMenuScanSelected !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/enableContextMenuScanSelected",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/enableContextMenuScanSelected/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs71 === errors;}else {var valid8 = true;}if(valid8){if(data11.compactTags !== undefined){const _errs73 = errors;if(typeof data11.compactTags !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/compactTags",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/compactTags/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs73 === errors;}else {var valid8 = true;}if(valid8){if(data11.averageFrequency !== undefined){const _errs75 = errors;if(typeof data11.averageFrequency !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/averageFrequency",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/averageFrequency/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs75 === errors;}else {var valid8 = true;}if(valid8){if(data11.glossaryLayoutMode !== undefined){let data38 = data11.glossaryLayoutMode;const _errs77 = errors;if(typeof data38 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/glossaryLayoutMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/glossaryLayoutMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data38 === "default") || (data38 === "compact")) || (data38 === "compact-popup-anki"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/glossaryLayoutMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/glossaryLayoutMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.glossaryLayoutMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs77 === errors;}else {var valid8 = true;}if(valid8){if(data11.mainDictionary !== undefined){const _errs79 = errors;if(typeof data11.mainDictionary !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/mainDictionary",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/mainDictionary/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs79 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupTheme !== undefined){let data40 = data11.popupTheme;const _errs81 = errors;if(typeof data40 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupTheme/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data40 === "light") || (data40 === "dark")) || (data40 === "browser")) || (data40 === "site"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupTheme/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupTheme.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs81 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupOuterTheme !== undefined){let data41 = data11.popupOuterTheme;const _errs83 = errors;if(typeof data41 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupOuterTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupOuterTheme/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data41 === "light") || (data41 === "dark")) || (data41 === "browser")) || (data41 === "site")) || (data41 === "none"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupOuterTheme",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupOuterTheme/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupOuterTheme.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs83 === errors;}else {var valid8 = true;}if(valid8){if(data11.customPopupCss !== undefined){const _errs85 = errors;if(typeof data11.customPopupCss !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/customPopupCss",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/customPopupCss/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs85 === errors;}else {var valid8 = true;}if(valid8){if(data11.customPopupOuterCss !== undefined){const _errs87 = errors;if(typeof data11.customPopupOuterCss !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/customPopupOuterCss",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/customPopupOuterCss/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs87 === errors;}else {var valid8 = true;}if(valid8){if(data11.enableWanakana !== undefined){const _errs89 = errors;if(typeof data11.enableWanakana !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/enableWanakana",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/enableWanakana/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs89 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentDownstepNotation !== undefined){const _errs91 = errors;if(typeof data11.showPitchAccentDownstepNotation !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showPitchAccentDownstepNotation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showPitchAccentDownstepNotation/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs91 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentPositionNotation !== undefined){const _errs93 = errors;if(typeof data11.showPitchAccentPositionNotation !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showPitchAccentPositionNotation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showPitchAccentPositionNotation/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs93 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentGraph !== undefined){const _errs95 = errors;if(typeof data11.showPitchAccentGraph !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showPitchAccentGraph",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showPitchAccentGraph/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs95 === errors;}else {var valid8 = true;}if(valid8){if(data11.showIframePopupsInRootFrame !== undefined){const _errs97 = errors;if(typeof data11.showIframePopupsInRootFrame !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/showIframePopupsInRootFrame",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/showIframePopupsInRootFrame/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs97 === errors;}else {var valid8 = true;}if(valid8){if(data11.useSecurePopupFrameUrl !== undefined){const _errs99 = errors;if(typeof data11.useSecurePopupFrameUrl !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/useSecurePopupFrameUrl",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/useSecurePopupFrameUrl/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs99 === errors;}else {var valid8 = true;}if(valid8){if(data11.usePopupShadowDom !== undefined){const _errs101 = errors;if(typeof data11.usePopupShadowDom !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/usePopupShadowDom",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/usePopupShadowDom/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs101 === errors;}else {var valid8 = true;}if(valid8){if(data11.usePopupWindow !== undefined){const _errs103 = errors;if(typeof data11.usePopupWindow !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/usePopupWindow",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/usePopupWindow/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs103 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupCurrentIndicatorMode !== undefined){let data52 = data11.popupCurrentIndicatorMode;const _errs105 = errors;if(typeof data52 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupCurrentIndicatorMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupCurrentIndicatorMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data52 === "none") || (data52 === "asterisk")) || (data52 === "triangle")) || (data52 === "bar-left")) || (data52 === "bar-right")) || (data52 === "dot-left")) || (data52 === "dot-right"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupCurrentIndicatorMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupCurrentIndicatorMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupCurrentIndicatorMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs105 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupActionBarVisibility !== undefined){let data53 = data11.popupActionBarVisibility;const _errs107 = errors;if(typeof data53 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarVisibility",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarVisibility/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data53 === "auto") || (data53 === "always"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarVisibility",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarVisibility/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupActionBarVisibility.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs107 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupActionBarLocation !== undefined){let data54 = data11.popupActionBarLocation;const _errs109 = errors;if(typeof data54 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarLocation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarLocation/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data54 === "left") || (data54 === "right")) || (data54 === "top")) || (data54 === "bottom"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/popupActionBarLocation",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/popupActionBarLocation/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.popupActionBarLocation.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs109 === errors;}else {var valid8 = true;}if(valid8){if(data11.frequencyDisplayMode !== undefined){let data55 = data11.frequencyDisplayMode;const _errs111 = errors;if(typeof data55 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/frequencyDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/frequencyDisplayMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data55 === "tags") || (data55 === "tags-grouped")) || (data55 === "split-tags")) || (data55 === "split-tags-grouped")) || (data55 === "inline-list")) || (data55 === "list"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/frequencyDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/frequencyDisplayMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.frequencyDisplayMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs111 === errors;}else {var valid8 = true;}if(valid8){if(data11.termDisplayMode !== undefined){let data56 = data11.termDisplayMode;const _errs113 = errors;if(typeof data56 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/termDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/termDisplayMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data56 === "ruby") || (data56 === "ruby-and-reading")) || (data56 === "term-and-reading")) || (data56 === "term-only"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/termDisplayMode",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/termDisplayMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.termDisplayMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs113 === errors;}else {var valid8 = true;}if(valid8){if(data11.sortFrequencyDictionary !== undefined){let data57 = data11.sortFrequencyDictionary;const _errs115 = errors;if((typeof data57 !== "string") && (data57 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/sortFrequencyDictionary",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/sortFrequencyDictionary/type",keyword:"type",params:{type: schema33.properties.profiles.items.properties.options.properties.general.properties.sortFrequencyDictionary.type},message:"must be string,null"}];return false;}var valid8 = _errs115 === errors;}else {var valid8 = true;}if(valid8){if(data11.sortFrequencyDictionaryOrder !== undefined){let data58 = data11.sortFrequencyDictionaryOrder;const _errs117 = errors;if(typeof data58 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/sortFrequencyDictionaryOrder",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/sortFrequencyDictionaryOrder/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data58 === "ascending") || (data58 === "descending"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/sortFrequencyDictionaryOrder",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/sortFrequencyDictionaryOrder/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.general.properties.sortFrequencyDictionaryOrder.enum},message:"must be equal to one of the allowed values"}];return false;}var valid8 = _errs117 === errors;}else {var valid8 = true;}if(valid8){if(data11.stickySearchHeader !== undefined){const _errs119 = errors;if(typeof data11.stickySearchHeader !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/stickySearchHeader",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/stickySearchHeader/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs119 === errors;}else {var valid8 = true;}if(valid8){if(data11.enableYomitanApi !== undefined){const _errs121 = errors;if(typeof data11.enableYomitanApi !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/enableYomitanApi",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/enableYomitanApi/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs121 === errors;}else {var valid8 = true;}if(valid8){if(data11.yomitanApiServer !== undefined){const _errs123 = errors;if(typeof data11.yomitanApiServer !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/yomitanApiServer",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/yomitanApiServer/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid8 = _errs123 === errors;}else {var valid8 = true;}if(valid8){if(data11.yomitanApiAllowCssSanitizationBypass !== undefined){const _errs125 = errors;if(typeof data11.yomitanApiAllowCssSanitizationBypass !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general/yomitanApiAllowCssSanitizationBypass",schemaPath:"#/properties/profiles/items/properties/options/properties/general/properties/yomitanApiAllowCssSanitizationBypass/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid8 = _errs125 === errors;}else {var valid8 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/general",schemaPath:"#/properties/profiles/items/properties/options/properties/general/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs23 === errors;}else {var valid7 = true;}if(valid7){if(data10.popupWindow !== undefined){let data63 = data10.popupWindow;const _errs127 = errors;if(errors === _errs127){if(data63 && typeof data63 == "object" && !Array.isArray(data63)){let missing6;if(((((((((data63.width === undefined) && (missing6 = "width")) || ((data63.height === undefined) && (missing6 = "height"))) || ((data63.left === undefined) && (missing6 = "left"))) || ((data63.top === undefined) && (missing6 = "top"))) || ((data63.useLeft === undefined) && (missing6 = "useLeft"))) || ((data63.useTop === undefined) && (missing6 = "useTop"))) || ((data63.windowType === undefined) && (missing6 = "windowType"))) || ((data63.windowState === undefined) && (missing6 = "windowState"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"}];return false;}else {if(data63.width !== undefined){let data64 = data63.width;const _errs129 = errors;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/width",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/width/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs129){if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 0 || isNaN(data64)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/width",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid9 = _errs129 === errors;}else {var valid9 = true;}if(valid9){if(data63.height !== undefined){let data65 = data63.height;const _errs131 = errors;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/height",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/height/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs131){if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 0 || isNaN(data65)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/height",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid9 = _errs131 === errors;}else {var valid9 = true;}if(valid9){if(data63.left !== undefined){let data66 = data63.left;const _errs133 = errors;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/left",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/left/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid9 = _errs133 === errors;}else {var valid9 = true;}if(valid9){if(data63.top !== undefined){let data67 = data63.top;const _errs135 = errors;if(!(((typeof data67 == "number") && (!(data67 % 1) && !isNaN(data67))) && (isFinite(data67)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/top",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/top/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}var valid9 = _errs135 === errors;}else {var valid9 = true;}if(valid9){if(data63.useLeft !== undefined){const _errs137 = errors;if(typeof data63.useLeft !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/useLeft",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/useLeft/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid9 = _errs137 === errors;}else {var valid9 = true;}if(valid9){if(data63.useTop !== undefined){const _errs139 = errors;if(typeof data63.useTop !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/useTop",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/useTop/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid9 = _errs139 === errors;}else {var valid9 = true;}if(valid9){if(data63.windowType !== undefined){let data70 = data63.windowType;const _errs141 = errors;if(typeof data70 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowType",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowType/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data70 === "normal") || (data70 === "popup"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowType",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowType/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.popupWindow.properties.windowType.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs141 === errors;}else {var valid9 = true;}if(valid9){if(data63.windowState !== undefined){let data71 = data63.windowState;const _errs143 = errors;if(typeof data71 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowState",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data71 === "normal") || (data71 === "maximized")) || (data71 === "fullscreen"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow/windowState",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/properties/windowState/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.popupWindow.properties.windowState.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs143 === errors;}else {var valid9 = true;}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/popupWindow",schemaPath:"#/properties/profiles/items/properties/options/properties/popupWindow/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs127 === errors;}else {var valid7 = true;}if(valid7){if(data10.audio !== undefined){let data72 = data10.audio;const _errs145 = errors;if(errors === _errs145){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){let missing7;if(((((((data72.enabled === undefined) && (missing7 = "enabled")) || ((data72.volume === undefined) && (missing7 = "volume"))) || ((data72.autoPlay === undefined) && (missing7 = "autoPlay"))) || ((data72.fallbackSoundType === undefined) && (missing7 = "fallbackSoundType"))) || ((data72.sources === undefined) && (missing7 = "sources"))) || ((data72.enableDefaultAudioSources === undefined) && (missing7 = "enableDefaultAudioSources"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"}];return false;}else {if(data72.enabled !== undefined){const _errs147 = errors;if(typeof data72.enabled !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/enabled",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid10 = _errs147 === errors;}else {var valid10 = true;}if(valid10){if(data72.volume !== undefined){let data74 = data72.volume;const _errs149 = errors;if(errors === _errs149){if((typeof data74 == "number") && (isFinite(data74))){if(data74 > 100 || isNaN(data74)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/volume",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/volume/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"}];return false;}else {if(data74 < 0 || isNaN(data74)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/volume",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/volume/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/volume",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/volume/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid10 = _errs149 === errors;}else {var valid10 = true;}if(valid10){if(data72.autoPlay !== undefined){const _errs151 = errors;if(typeof data72.autoPlay !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/autoPlay",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/autoPlay/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid10 = _errs151 === errors;}else {var valid10 = true;}if(valid10){if(data72.fallbackSoundType !== undefined){let data76 = data72.fallbackSoundType;const _errs153 = errors;if(typeof data76 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/fallbackSoundType",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/fallbackSoundType/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data76 === "none") || (data76 === "click")) || (data76 === "bloop"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/fallbackSoundType",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/fallbackSoundType/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.audio.properties.fallbackSoundType.enum},message:"must be equal to one of the allowed values"}];return false;}var valid10 = _errs153 === errors;}else {var valid10 = true;}if(valid10){if(data72.sources !== undefined){let data77 = data72.sources;const _errs155 = errors;if(errors === _errs155){if(Array.isArray(data77)){var valid11 = true;const len3 = data77.length;for(let i3=0; i3<len3; i3++){let data78 = data77[i3];const _errs157 = errors;if(errors === _errs157){if(data78 && typeof data78 == "object" && !Array.isArray(data78)){let missing8;if((((data78.type === undefined) && (missing8 = "type")) || ((data78.url === undefined) && (missing8 = "url"))) || ((data78.voice === undefined) && (missing8 = "voice"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources/" + i3,schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/items/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"}];return false;}else {const _errs159 = errors;for(const key0 in data78){if(!(((key0 === "type") || (key0 === "url")) || (key0 === "voice"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources/" + i3,schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs159 === errors){if(data78.type !== undefined){let data79 = data78.type;const _errs160 = errors;if(typeof data79 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources/" + i3+"/type",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((((data79 === "jpod101") || (data79 === "language-pod-101")) || (data79 === "jisho")) || (data79 === "lingua-libre")) || (data79 === "wiktionary")) || (data79 === "text-to-speech")) || (data79 === "text-to-speech-reading")) || (data79 === "custom")) || (data79 === "custom-json"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources/" + i3+"/type",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.audio.properties.sources.items.properties.type.enum},message:"must be equal to one of the allowed values"}];return false;}var valid12 = _errs160 === errors;}else {var valid12 = true;}if(valid12){if(data78.url !== undefined){const _errs162 = errors;if(typeof data78.url !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources/" + i3+"/url",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/items/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid12 = _errs162 === errors;}else {var valid12 = true;}if(valid12){if(data78.voice !== undefined){const _errs164 = errors;if(typeof data78.voice !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources/" + i3+"/voice",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/items/properties/voice/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid12 = _errs164 === errors;}else {var valid12 = true;}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources/" + i3,schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid11 = _errs157 === errors;if(!valid11){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/sources",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/sources/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid10 = _errs155 === errors;}else {var valid10 = true;}if(valid10){if(data72.enableDefaultAudioSources !== undefined){const _errs166 = errors;if(typeof data72.enableDefaultAudioSources !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio/enableDefaultAudioSources",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/properties/enableDefaultAudioSources/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid10 = _errs166 === errors;}else {var valid10 = true;}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/audio",schemaPath:"#/properties/profiles/items/properties/options/properties/audio/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs145 === errors;}else {var valid7 = true;}if(valid7){if(data10.scanning !== undefined){let data83 = data10.scanning;const _errs168 = errors;if(errors === _errs168){if(data83 && typeof data83 == "object" && !Array.isArray(data83)){let missing9;if((((((((((((((((((((((((((data83.inputs === undefined) && (missing9 = "inputs")) || ((data83.preventMiddleMouse === undefined) && (missing9 = "preventMiddleMouse"))) || ((data83.preventBackForward === undefined) && (missing9 = "preventBackForward"))) || ((data83.selectText === undefined) && (missing9 = "selectText"))) || ((data83.alphanumeric === undefined) && (missing9 = "alphanumeric"))) || ((data83.autoHideResults === undefined) && (missing9 = "autoHideResults"))) || ((data83.delay === undefined) && (missing9 = "delay"))) || ((data83.hideDelay === undefined) && (missing9 = "hideDelay"))) || ((data83.length === undefined) && (missing9 = "length"))) || ((data83.deepDomScan === undefined) && (missing9 = "deepDomScan"))) || ((data83.popupNestingMaxDepth === undefined) && (missing9 = "popupNestingMaxDepth"))) || ((data83.enablePopupSearch === undefined) && (missing9 = "enablePopupSearch"))) || ((data83.enableOnPopupExpressions === undefined) && (missing9 = "enableOnPopupExpressions"))) || ((data83.enableOnSearchPage === undefined) && (missing9 = "enableOnSearchPage"))) || ((data83.enableSearchTags === undefined) && (missing9 = "enableSearchTags"))) || ((data83.layoutAwareScan === undefined) && (missing9 = "layoutAwareScan"))) || ((data83.matchTypePrefix === undefined) && (missing9 = "matchTypePrefix"))) || ((data83.hidePopupOnCursorExit === undefined) && (missing9 = "hidePopupOnCursorExit"))) || ((data83.hidePopupOnCursorExitDelay === undefined) && (missing9 = "hidePopupOnCursorExitDelay"))) || ((data83.reducedMotionScrolling === undefined) && (missing9 = "reducedMotionScrolling"))) || ((data83.reducedMotionScrollingScale === undefined) && (missing9 = "reducedMotionScrollingScale"))) || ((data83.reducedMotionScrollingSwipeThreshold === undefined) && (missing9 = "reducedMotionScrollingSwipeThreshold"))) || ((data83.normalizeCssZoom === undefined) && (missing9 = "normalizeCssZoom"))) || ((data83.scanWithoutMousemove === undefined) && (missing9 = "scanWithoutMousemove"))) || ((data83.scanResolution === undefined) && (missing9 = "scanResolution"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"}];return false;}else {if(data83.inputs !== undefined){let data84 = data83.inputs;const _errs170 = errors;if(errors === _errs170){if(Array.isArray(data84)){var valid14 = true;const len4 = data84.length;for(let i4=0; i4<len4; i4++){let data85 = data84[i4];const _errs172 = errors;if(errors === _errs172){if(data85 && typeof data85 == "object" && !Array.isArray(data85)){let missing10;if(((((data85.include === undefined) && (missing10 = "include")) || ((data85.exclude === undefined) && (missing10 = "exclude"))) || ((data85.types === undefined) && (missing10 = "types"))) || ((data85.options === undefined) && (missing10 = "options"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4,schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"}];return false;}else {if(data85.include !== undefined){const _errs174 = errors;if(typeof data85.include !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/include",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/include/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid15 = _errs174 === errors;}else {var valid15 = true;}if(valid15){if(data85.exclude !== undefined){const _errs176 = errors;if(typeof data85.exclude !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/exclude",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/exclude/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid15 = _errs176 === errors;}else {var valid15 = true;}if(valid15){if(data85.types !== undefined){let data88 = data85.types;const _errs178 = errors;if(errors === _errs178){if(data88 && typeof data88 == "object" && !Array.isArray(data88)){let missing11;if((((data88.mouse === undefined) && (missing11 = "mouse")) || ((data88.touch === undefined) && (missing11 = "touch"))) || ((data88.pen === undefined) && (missing11 = "pen"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/types",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/types/required",keyword:"required",params:{missingProperty: missing11},message:"must have required property '"+missing11+"'"}];return false;}else {if(data88.mouse !== undefined){const _errs180 = errors;if(typeof data88.mouse !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/types/mouse",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/types/properties/mouse/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid16 = _errs180 === errors;}else {var valid16 = true;}if(valid16){if(data88.touch !== undefined){const _errs182 = errors;if(typeof data88.touch !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/types/touch",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/types/properties/touch/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid16 = _errs182 === errors;}else {var valid16 = true;}if(valid16){if(data88.pen !== undefined){const _errs184 = errors;if(typeof data88.pen !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/types/pen",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/types/properties/pen/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid16 = _errs184 === errors;}else {var valid16 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/types",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/types/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs178 === errors;}else {var valid15 = true;}if(valid15){if(data85.options !== undefined){let data92 = data85.options;const _errs186 = errors;if(errors === _errs186){if(data92 && typeof data92 == "object" && !Array.isArray(data92)){let missing12;if((((((((((((((((data92.showAdvanced === undefined) && (missing12 = "showAdvanced")) || ((data92.searchTerms === undefined) && (missing12 = "searchTerms"))) || ((data92.searchKanji === undefined) && (missing12 = "searchKanji"))) || ((data92.scanOnTouchTap === undefined) && (missing12 = "scanOnTouchTap"))) || ((data92.scanOnTouchMove === undefined) && (missing12 = "scanOnTouchMove"))) || ((data92.scanOnTouchPress === undefined) && (missing12 = "scanOnTouchPress"))) || ((data92.scanOnTouchRelease === undefined) && (missing12 = "scanOnTouchRelease"))) || ((data92.scanOnPenMove === undefined) && (missing12 = "scanOnPenMove"))) || ((data92.scanOnPenHover === undefined) && (missing12 = "scanOnPenHover"))) || ((data92.scanOnPenReleaseHover === undefined) && (missing12 = "scanOnPenReleaseHover"))) || ((data92.scanOnPenPress === undefined) && (missing12 = "scanOnPenPress"))) || ((data92.scanOnPenRelease === undefined) && (missing12 = "scanOnPenRelease"))) || ((data92.preventTouchScrolling === undefined) && (missing12 = "preventTouchScrolling"))) || ((data92.preventPenScrolling === undefined) && (missing12 = "preventPenScrolling"))) || ((data92.minimumTouchTime === undefined) && (missing12 = "minimumTouchTime"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/required",keyword:"required",params:{missingProperty: missing12},message:"must have required property '"+missing12+"'"}];return false;}else {if(data92.showAdvanced !== undefined){const _errs188 = errors;if(typeof data92.showAdvanced !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/showAdvanced",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/showAdvanced/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs188 === errors;}else {var valid17 = true;}if(valid17){if(data92.searchTerms !== undefined){const _errs190 = errors;if(typeof data92.searchTerms !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/searchTerms",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/searchTerms/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs190 === errors;}else {var valid17 = true;}if(valid17){if(data92.searchKanji !== undefined){const _errs192 = errors;if(typeof data92.searchKanji !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/searchKanji",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/searchKanji/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs192 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnTouchTap !== undefined){const _errs194 = errors;if(typeof data92.scanOnTouchTap !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnTouchTap",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnTouchTap/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs194 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnTouchMove !== undefined){const _errs196 = errors;if(typeof data92.scanOnTouchMove !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnTouchMove",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnTouchMove/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs196 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnTouchPress !== undefined){const _errs198 = errors;if(typeof data92.scanOnTouchPress !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnTouchPress",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnTouchPress/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs198 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnTouchRelease !== undefined){const _errs200 = errors;if(typeof data92.scanOnTouchRelease !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnTouchRelease",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnTouchRelease/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs200 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnPenMove !== undefined){const _errs202 = errors;if(typeof data92.scanOnPenMove !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnPenMove",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnPenMove/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs202 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnPenHover !== undefined){const _errs204 = errors;if(typeof data92.scanOnPenHover !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnPenHover",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnPenHover/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs204 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnPenReleaseHover !== undefined){const _errs206 = errors;if(typeof data92.scanOnPenReleaseHover !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnPenReleaseHover",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnPenReleaseHover/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs206 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnPenPress !== undefined){const _errs208 = errors;if(typeof data92.scanOnPenPress !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnPenPress",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnPenPress/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs208 === errors;}else {var valid17 = true;}if(valid17){if(data92.scanOnPenRelease !== undefined){const _errs210 = errors;if(typeof data92.scanOnPenRelease !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/scanOnPenRelease",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/scanOnPenRelease/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs210 === errors;}else {var valid17 = true;}if(valid17){if(data92.preventTouchScrolling !== undefined){const _errs212 = errors;if(typeof data92.preventTouchScrolling !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/preventTouchScrolling",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/preventTouchScrolling/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs212 === errors;}else {var valid17 = true;}if(valid17){if(data92.preventPenScrolling !== undefined){const _errs214 = errors;if(typeof data92.preventPenScrolling !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/preventPenScrolling",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/preventPenScrolling/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid17 = _errs214 === errors;}else {var valid17 = true;}if(valid17){if(data92.minimumTouchTime !== undefined){let data107 = data92.minimumTouchTime;const _errs216 = errors;if(!((typeof data107 == "number") && (isFinite(data107)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options/minimumTouchTime",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/properties/minimumTouchTime/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid17 = _errs216 === errors;}else {var valid17 = true;}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4+"/options",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/properties/options/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid15 = _errs186 === errors;}else {var valid15 = true;}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs/" + i4,schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid14 = _errs172 === errors;if(!valid14){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/inputs",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/inputs/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid13 = _errs170 === errors;}else {var valid13 = true;}if(valid13){if(data83.preventMiddleMouse !== undefined){let data108 = data83.preventMiddleMouse;const _errs218 = errors;if(errors === _errs218){if(data108 && typeof data108 == "object" && !Array.isArray(data108)){let missing13;if((((((data108.onTextHover === undefined) && (missing13 = "onTextHover")) || ((data108.onWebPages === undefined) && (missing13 = "onWebPages"))) || ((data108.onPopupPages === undefined) && (missing13 = "onPopupPages"))) || ((data108.onSearchPages === undefined) && (missing13 = "onSearchPages"))) || ((data108.onSearchQuery === undefined) && (missing13 = "onSearchQuery"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventMiddleMouse",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventMiddleMouse/required",keyword:"required",params:{missingProperty: missing13},message:"must have required property '"+missing13+"'"}];return false;}else {if(data108.onWebPages !== undefined){const _errs220 = errors;if(typeof data108.onWebPages !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventMiddleMouse/onWebPages",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventMiddleMouse/properties/onWebPages/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid18 = _errs220 === errors;}else {var valid18 = true;}if(valid18){if(data108.onPopupPages !== undefined){const _errs222 = errors;if(typeof data108.onPopupPages !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventMiddleMouse/onPopupPages",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventMiddleMouse/properties/onPopupPages/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid18 = _errs222 === errors;}else {var valid18 = true;}if(valid18){if(data108.onSearchPages !== undefined){const _errs224 = errors;if(typeof data108.onSearchPages !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventMiddleMouse/onSearchPages",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventMiddleMouse/properties/onSearchPages/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid18 = _errs224 === errors;}else {var valid18 = true;}if(valid18){if(data108.onSearchQuery !== undefined){const _errs226 = errors;if(typeof data108.onSearchQuery !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventMiddleMouse/onSearchQuery",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventMiddleMouse/properties/onSearchQuery/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid18 = _errs226 === errors;}else {var valid18 = true;}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventMiddleMouse",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventMiddleMouse/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid13 = _errs218 === errors;}else {var valid13 = true;}if(valid13){if(data83.preventBackForward !== undefined){let data113 = data83.preventBackForward;const _errs228 = errors;if(errors === _errs228){if(data113 && typeof data113 == "object" && !Array.isArray(data113)){let missing14;if((((((data113.onTextHover === undefined) && (missing14 = "onTextHover")) || ((data113.onWebPages === undefined) && (missing14 = "onWebPages"))) || ((data113.onPopupPages === undefined) && (missing14 = "onPopupPages"))) || ((data113.onSearchPages === undefined) && (missing14 = "onSearchPages"))) || ((data113.onSearchQuery === undefined) && (missing14 = "onSearchQuery"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventBackForward",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventBackForward/required",keyword:"required",params:{missingProperty: missing14},message:"must have required property '"+missing14+"'"}];return false;}else {if(data113.onWebPages !== undefined){const _errs230 = errors;if(typeof data113.onWebPages !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventBackForward/onWebPages",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventBackForward/properties/onWebPages/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid19 = _errs230 === errors;}else {var valid19 = true;}if(valid19){if(data113.onPopupPages !== undefined){const _errs232 = errors;if(typeof data113.onPopupPages !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventBackForward/onPopupPages",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventBackForward/properties/onPopupPages/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid19 = _errs232 === errors;}else {var valid19 = true;}if(valid19){if(data113.onSearchPages !== undefined){const _errs234 = errors;if(typeof data113.onSearchPages !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventBackForward/onSearchPages",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventBackForward/properties/onSearchPages/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid19 = _errs234 === errors;}else {var valid19 = true;}if(valid19){if(data113.onSearchQuery !== undefined){const _errs236 = errors;if(typeof data113.onSearchQuery !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventBackForward/onSearchQuery",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventBackForward/properties/onSearchQuery/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid19 = _errs236 === errors;}else {var valid19 = true;}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/preventBackForward",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/preventBackForward/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid13 = _errs228 === errors;}else {var valid13 = true;}if(valid13){if(data83.selectText !== undefined){const _errs238 = errors;if(typeof data83.selectText !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/selectText",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/selectText/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs238 === errors;}else {var valid13 = true;}if(valid13){if(data83.alphanumeric !== undefined){const _errs240 = errors;if(typeof data83.alphanumeric !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/alphanumeric",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/alphanumeric/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs240 === errors;}else {var valid13 = true;}if(valid13){if(data83.autoHideResults !== undefined){const _errs242 = errors;if(typeof data83.autoHideResults !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/autoHideResults",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/autoHideResults/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs242 === errors;}else {var valid13 = true;}if(valid13){if(data83.delay !== undefined){let data121 = data83.delay;const _errs244 = errors;if(errors === _errs244){if((typeof data121 == "number") && (isFinite(data121))){if(data121 < 0 || isNaN(data121)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/delay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/delay/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/delay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/delay/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs244 === errors;}else {var valid13 = true;}if(valid13){if(data83.hideDelay !== undefined){let data122 = data83.hideDelay;const _errs246 = errors;if(errors === _errs246){if((typeof data122 == "number") && (isFinite(data122))){if(data122 < 0 || isNaN(data122)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hideDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hideDelay/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hideDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hideDelay/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs246 === errors;}else {var valid13 = true;}if(valid13){if(data83.length !== undefined){let data123 = data83.length;const _errs248 = errors;if(!(((typeof data123 == "number") && (!(data123 % 1) && !isNaN(data123))) && (isFinite(data123)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/length",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/length/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs248){if((typeof data123 == "number") && (isFinite(data123))){if(data123 < 1 || isNaN(data123)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/length",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/length/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid13 = _errs248 === errors;}else {var valid13 = true;}if(valid13){if(data83.deepDomScan !== undefined){const _errs250 = errors;if(typeof data83.deepDomScan !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/deepDomScan",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/deepDomScan/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs250 === errors;}else {var valid13 = true;}if(valid13){if(data83.popupNestingMaxDepth !== undefined){let data125 = data83.popupNestingMaxDepth;const _errs252 = errors;if(!(((typeof data125 == "number") && (!(data125 % 1) && !isNaN(data125))) && (isFinite(data125)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/popupNestingMaxDepth",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/popupNestingMaxDepth/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs252){if((typeof data125 == "number") && (isFinite(data125))){if(data125 < 0 || isNaN(data125)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/popupNestingMaxDepth",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/popupNestingMaxDepth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid13 = _errs252 === errors;}else {var valid13 = true;}if(valid13){if(data83.enablePopupSearch !== undefined){const _errs254 = errors;if(typeof data83.enablePopupSearch !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enablePopupSearch",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enablePopupSearch/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs254 === errors;}else {var valid13 = true;}if(valid13){if(data83.enableOnPopupExpressions !== undefined){const _errs256 = errors;if(typeof data83.enableOnPopupExpressions !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enableOnPopupExpressions",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enableOnPopupExpressions/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs256 === errors;}else {var valid13 = true;}if(valid13){if(data83.enableOnSearchPage !== undefined){const _errs258 = errors;if(typeof data83.enableOnSearchPage !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enableOnSearchPage",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enableOnSearchPage/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs258 === errors;}else {var valid13 = true;}if(valid13){if(data83.enableSearchTags !== undefined){const _errs260 = errors;if(typeof data83.enableSearchTags !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/enableSearchTags",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/enableSearchTags/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs260 === errors;}else {var valid13 = true;}if(valid13){if(data83.layoutAwareScan !== undefined){const _errs262 = errors;if(typeof data83.layoutAwareScan !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/layoutAwareScan",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/layoutAwareScan/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs262 === errors;}else {var valid13 = true;}if(valid13){if(data83.matchTypePrefix !== undefined){const _errs264 = errors;if(typeof data83.matchTypePrefix !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/matchTypePrefix",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/matchTypePrefix/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs264 === errors;}else {var valid13 = true;}if(valid13){if(data83.hidePopupOnCursorExit !== undefined){const _errs266 = errors;if(typeof data83.hidePopupOnCursorExit !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hidePopupOnCursorExit",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hidePopupOnCursorExit/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs266 === errors;}else {var valid13 = true;}if(valid13){if(data83.hidePopupOnCursorExitDelay !== undefined){let data133 = data83.hidePopupOnCursorExitDelay;const _errs268 = errors;if(errors === _errs268){if((typeof data133 == "number") && (isFinite(data133))){if(data133 < 0 || isNaN(data133)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hidePopupOnCursorExitDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hidePopupOnCursorExitDelay/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/hidePopupOnCursorExitDelay",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/hidePopupOnCursorExitDelay/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs268 === errors;}else {var valid13 = true;}if(valid13){if(data83.reducedMotionScrolling !== undefined){const _errs270 = errors;if(typeof data83.reducedMotionScrolling !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrolling",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrolling/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs270 === errors;}else {var valid13 = true;}if(valid13){if(data83.reducedMotionScrollingScale !== undefined){let data135 = data83.reducedMotionScrollingScale;const _errs272 = errors;if(!((typeof data135 == "number") && (isFinite(data135)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrollingScale",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrollingScale/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid13 = _errs272 === errors;}else {var valid13 = true;}if(valid13){if(data83.reducedMotionScrollingSwipeThreshold !== undefined){let data136 = data83.reducedMotionScrollingSwipeThreshold;const _errs274 = errors;if(errors === _errs274){if((typeof data136 == "number") && (isFinite(data136))){if(data136 < 0 || isNaN(data136)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrollingSwipeThreshold",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrollingSwipeThreshold/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/reducedMotionScrollingSwipeThreshold",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/reducedMotionScrollingSwipeThreshold/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid13 = _errs274 === errors;}else {var valid13 = true;}if(valid13){if(data83.normalizeCssZoom !== undefined){const _errs276 = errors;if(typeof data83.normalizeCssZoom !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/normalizeCssZoom",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/normalizeCssZoom/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs276 === errors;}else {var valid13 = true;}if(valid13){if(data83.scanWithoutMousemove !== undefined){const _errs278 = errors;if(typeof data83.scanWithoutMousemove !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/scanWithoutMousemove",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/scanWithoutMousemove/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs278 === errors;}else {var valid13 = true;}if(valid13){if(data83.scanResolution !== undefined){let data139 = data83.scanResolution;const _errs280 = errors;if(typeof data139 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/scanResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/scanResolution/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data139 === "character") || (data139 === "word"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/scanResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/scanResolution/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.scanning.properties.scanResolution.enum},message:"must be equal to one of the allowed values"}];return false;}var valid13 = _errs280 === errors;}else {var valid13 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs168 === errors;}else {var valid7 = true;}if(valid7){if(data10.translation !== undefined){let data140 = data10.translation;const _errs282 = errors;if(errors === _errs282){if(data140 && typeof data140 == "object" && !Array.isArray(data140)){let missing15;if(((data140.textReplacements === undefined) && (missing15 = "textReplacements")) || ((data140.searchResolution === undefined) && (missing15 = "searchResolution"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/required",keyword:"required",params:{missingProperty: missing15},message:"must have required property '"+missing15+"'"}];return false;}else {if(data140.searchResolution !== undefined){let data141 = data140.searchResolution;const _errs284 = errors;if(typeof data141 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/searchResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/searchResolution/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data141 === "letter") || (data141 === "word"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/searchResolution",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/searchResolution/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.translation.properties.searchResolution.enum},message:"must be equal to one of the allowed values"}];return false;}var valid20 = _errs284 === errors;}else {var valid20 = true;}if(valid20){if(data140.textReplacements !== undefined){let data142 = data140.textReplacements;const _errs286 = errors;if(errors === _errs286){if(data142 && typeof data142 == "object" && !Array.isArray(data142)){let missing16;if(((data142.searchOriginal === undefined) && (missing16 = "searchOriginal")) || ((data142.groups === undefined) && (missing16 = "groups"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/required",keyword:"required",params:{missingProperty: missing16},message:"must have required property '"+missing16+"'"}];return false;}else {if(data142.searchOriginal !== undefined){const _errs288 = errors;if(typeof data142.searchOriginal !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/searchOriginal",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/searchOriginal/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid21 = _errs288 === errors;}else {var valid21 = true;}if(valid21){if(data142.groups !== undefined){let data144 = data142.groups;const _errs290 = errors;if(errors === _errs290){if(Array.isArray(data144)){var valid22 = true;const len5 = data144.length;for(let i5=0; i5<len5; i5++){let data145 = data144[i5];const _errs292 = errors;if(errors === _errs292){if(Array.isArray(data145)){var valid23 = true;const len6 = data145.length;for(let i6=0; i6<len6; i6++){let data146 = data145[i6];const _errs294 = errors;if(errors === _errs294){if(data146 && typeof data146 == "object" && !Array.isArray(data146)){let missing17;if((((data146.pattern === undefined) && (missing17 = "pattern")) || ((data146.ignoreCase === undefined) && (missing17 = "ignoreCase"))) || ((data146.replacement === undefined) && (missing17 = "replacement"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/groups/" + i5+"/" + i6,schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/groups/items/items/required",keyword:"required",params:{missingProperty: missing17},message:"must have required property '"+missing17+"'"}];return false;}else {if(data146.pattern !== undefined){const _errs296 = errors;if(typeof data146.pattern !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/groups/" + i5+"/" + i6+"/pattern",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/groups/items/items/properties/pattern/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid24 = _errs296 === errors;}else {var valid24 = true;}if(valid24){if(data146.ignoreCase !== undefined){const _errs298 = errors;if(typeof data146.ignoreCase !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/groups/" + i5+"/" + i6+"/ignoreCase",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/groups/items/items/properties/ignoreCase/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid24 = _errs298 === errors;}else {var valid24 = true;}if(valid24){if(data146.replacement !== undefined){const _errs300 = errors;if(typeof data146.replacement !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/groups/" + i5+"/" + i6+"/replacement",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/groups/items/items/properties/replacement/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid24 = _errs300 === errors;}else {var valid24 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/groups/" + i5+"/" + i6,schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/groups/items/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid23 = _errs294 === errors;if(!valid23){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/groups/" + i5,schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/groups/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid22 = _errs292 === errors;if(!valid22){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements/groups",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid21 = _errs290 === errors;}else {var valid21 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation/textReplacements",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/properties/textReplacements/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid20 = _errs286 === errors;}else {var valid20 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs282 === errors;}else {var valid7 = true;}if(valid7){if(data10.dictionaries !== undefined){let data150 = data10.dictionaries;const _errs302 = errors;if(errors === _errs302){if(Array.isArray(data150)){var valid25 = true;const len7 = data150.length;for(let i7=0; i7<len7; i7++){let data151 = data150[i7];const _errs304 = errors;if(errors === _errs304){if(data151 && typeof data151 == "object" && !Array.isArray(data151)){let missing18;if((((((((data151.name === undefined) && (missing18 = "name")) || ((data151.alias === undefined) && (missing18 = "alias"))) || ((data151.enabled === undefined) && (missing18 = "enabled"))) || ((data151.allowSecondarySearches === undefined) && (missing18 = "allowSecondarySearches"))) || ((data151.definitionsCollapsible === undefined) && (missing18 = "definitionsCollapsible"))) || ((data151.partsOfSpeechFilter === undefined) && (missing18 = "partsOfSpeechFilter"))) || ((data151.useDeinflections === undefined) && (missing18 = "useDeinflections"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7,schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/required",keyword:"required",params:{missingProperty: missing18},message:"must have required property '"+missing18+"'"}];return false;}else {if(data151.name !== undefined){const _errs306 = errors;if(typeof data151.name !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/name",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs306 === errors;}else {var valid26 = true;}if(valid26){if(data151.alias !== undefined){const _errs308 = errors;if(typeof data151.alias !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/alias",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/alias/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid26 = _errs308 === errors;}else {var valid26 = true;}if(valid26){if(data151.enabled !== undefined){const _errs310 = errors;if(typeof data151.enabled !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/enabled",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid26 = _errs310 === errors;}else {var valid26 = true;}if(valid26){if(data151.allowSecondarySearches !== undefined){const _errs312 = errors;if(typeof data151.allowSecondarySearches !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/allowSecondarySearches",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/allowSecondarySearches/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid26 = _errs312 === errors;}else {var valid26 = true;}if(valid26){if(data151.definitionsCollapsible !== undefined){let data156 = data151.definitionsCollapsible;const _errs314 = errors;if(typeof data156 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/definitionsCollapsible",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/definitionsCollapsible/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data156 === "not-collapsible") || (data156 === "expanded")) || (data156 === "collapsed")) || (data156 === "force-collapsed")) || (data156 === "force-expanded"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/definitionsCollapsible",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/definitionsCollapsible/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.dictionaries.items.properties.definitionsCollapsible.enum},message:"must be equal to one of the allowed values"}];return false;}var valid26 = _errs314 === errors;}else {var valid26 = true;}if(valid26){if(data151.partsOfSpeechFilter !== undefined){const _errs316 = errors;if(typeof data151.partsOfSpeechFilter !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/partsOfSpeechFilter",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/partsOfSpeechFilter/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid26 = _errs316 === errors;}else {var valid26 = true;}if(valid26){if(data151.useDeinflections !== undefined){const _errs318 = errors;if(typeof data151.useDeinflections !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7+"/useDeinflections",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/properties/useDeinflections/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid26 = _errs318 === errors;}else {var valid26 = true;}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries/" + i7,schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid25 = _errs304 === errors;if(!valid25){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/dictionaries",schemaPath:"#/properties/profiles/items/properties/options/properties/dictionaries/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid7 = _errs302 === errors;}else {var valid7 = true;}if(valid7){if(data10.parsing !== undefined){let data159 = data10.parsing;const _errs320 = errors;if(errors === _errs320){if(data159 && typeof data159 == "object" && !Array.isArray(data159)){let missing19;if((((((data159.enableScanningParser === undefined) && (missing19 = "enableScanningParser")) || ((data159.enableMecabParser === undefined) && (missing19 = "enableMecabParser"))) || ((data159.selectedParser === undefined) && (missing19 = "selectedParser"))) || ((data159.termSpacing === undefined) && (missing19 = "termSpacing"))) || ((data159.readingMode === undefined) && (missing19 = "readingMode"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/required",keyword:"required",params:{missingProperty: missing19},message:"must have required property '"+missing19+"'"}];return false;}else {if(data159.enableScanningParser !== undefined){const _errs322 = errors;if(typeof data159.enableScanningParser !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing/enableScanningParser",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/properties/enableScanningParser/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid27 = _errs322 === errors;}else {var valid27 = true;}if(valid27){if(data159.enableMecabParser !== undefined){const _errs324 = errors;if(typeof data159.enableMecabParser !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing/enableMecabParser",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/properties/enableMecabParser/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid27 = _errs324 === errors;}else {var valid27 = true;}if(valid27){if(data159.selectedParser !== undefined){let data162 = data159.selectedParser;const _errs326 = errors;if((typeof data162 !== "string") && (data162 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing/selectedParser",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/properties/selectedParser/type",keyword:"type",params:{type: schema33.properties.profiles.items.properties.options.properties.parsing.properties.selectedParser.type},message:"must be string,null"}];return false;}var valid27 = _errs326 === errors;}else {var valid27 = true;}if(valid27){if(data159.termSpacing !== undefined){const _errs328 = errors;if(typeof data159.termSpacing !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing/termSpacing",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/properties/termSpacing/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid27 = _errs328 === errors;}else {var valid27 = true;}if(valid27){if(data159.readingMode !== undefined){let data164 = data159.readingMode;const _errs330 = errors;if(typeof data164 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing/readingMode",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/properties/readingMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data164 === "hiragana") || (data164 === "katakana")) || (data164 === "romaji")) || (data164 === "dictionary-reading")) || (data164 === "none"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing/readingMode",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/properties/readingMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.parsing.properties.readingMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid27 = _errs330 === errors;}else {var valid27 = true;}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/parsing",schemaPath:"#/properties/profiles/items/properties/options/properties/parsing/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs320 === errors;}else {var valid7 = true;}if(valid7){if(data10.anki !== undefined){let data165 = data10.anki;const _errs332 = errors;if(errors === _errs332){if(data165 && typeof data165 == "object" && !Array.isArray(data165)){let missing20;if((((((((((((((((((data165.enable === undefined) && (missing20 = "enable")) || ((data165.server === undefined) && (missing20 = "server"))) || ((data165.tags === undefined) && (missing20 = "tags"))) || ((data165.screenshot === undefined) && (missing20 = "screenshot"))) || ((data165.cardFormats === undefined) && (missing20 = "cardFormats"))) || ((data165.duplicateScope === undefined) && (missing20 = "duplicateScope"))) || ((data165.duplicateScopeCheckAllModels === undefined) && (missing20 = "duplicateScopeCheckAllModels"))) || ((data165.checkForDuplicates === undefined) && (missing20 = "checkForDuplicates"))) || ((data165.duplicateBehavior === undefined) && (missing20 = "duplicateBehavior"))) || ((data165.fieldTemplates === undefined) && (missing20 = "fieldTemplates"))) || ((data165.suspendNewCards === undefined) && (missing20 = "suspendNewCards"))) || ((data165.displayTagsAndFlags === undefined) && (missing20 = "displayTagsAndFlags"))) || ((data165.targetTags === undefined) && (missing20 = "targetTags"))) || ((data165.noteGuiMode === undefined) && (missing20 = "noteGuiMode"))) || ((data165.apiKey === undefined) && (missing20 = "apiKey"))) || ((data165.downloadTimeout === undefined) && (missing20 = "downloadTimeout"))) || ((data165.forceSync === undefined) && (missing20 = "forceSync"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/required",keyword:"required",params:{missingProperty: missing20},message:"must have required property '"+missing20+"'"}];return false;}else {if(data165.enable !== undefined){const _errs334 = errors;if(typeof data165.enable !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/enable",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/enable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid28 = _errs334 === errors;}else {var valid28 = true;}if(valid28){if(data165.server !== undefined){const _errs336 = errors;if(typeof data165.server !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/server",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/server/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid28 = _errs336 === errors;}else {var valid28 = true;}if(valid28){if(data165.tags !== undefined){let data168 = data165.tags;const _errs338 = errors;if(errors === _errs338){if(Array.isArray(data168)){var valid29 = true;const len8 = data168.length;for(let i8=0; i8<len8; i8++){const _errs340 = errors;if(typeof data168[i8] !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/tags/" + i8,schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/tags/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid29 = _errs340 === errors;if(!valid29){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/tags",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/tags/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid28 = _errs338 === errors;}else {var valid28 = true;}if(valid28){if(data165.screenshot !== undefined){let data170 = data165.screenshot;const _errs342 = errors;if(errors === _errs342){if(data170 && typeof data170 == "object" && !Array.isArray(data170)){let missing21;if(((data170.format === undefined) && (missing21 = "format")) || ((data170.quality === undefined) && (missing21 = "quality"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/required",keyword:"required",params:{missingProperty: missing21},message:"must have required property '"+missing21+"'"}];return false;}else {if(data170.format !== undefined){let data171 = data170.format;const _errs344 = errors;if(typeof data171 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot/format",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data171 === "png") || (data171 === "jpeg"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot/format",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/properties/format/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.screenshot.properties.format.enum},message:"must be equal to one of the allowed values"}];return false;}var valid30 = _errs344 === errors;}else {var valid30 = true;}if(valid30){if(data170.quality !== undefined){let data172 = data170.quality;const _errs346 = errors;if(!(((typeof data172 == "number") && (!(data172 % 1) && !isNaN(data172))) && (isFinite(data172)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot/quality",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/properties/quality/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs346){if((typeof data172 == "number") && (isFinite(data172))){if(data172 > 100 || isNaN(data172)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot/quality",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/properties/quality/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"}];return false;}else {if(data172 < 0 || isNaN(data172)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot/quality",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/properties/quality/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid30 = _errs346 === errors;}else {var valid30 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/screenshot",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/screenshot/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid28 = _errs342 === errors;}else {var valid28 = true;}if(valid28){if(data165.cardFormats !== undefined){let data173 = data165.cardFormats;const _errs348 = errors;if(errors === _errs348){if(Array.isArray(data173)){var valid31 = true;const len9 = data173.length;for(let i9=0; i9<len9; i9++){let data174 = data173[i9];const _errs350 = errors;if(errors === _errs350){if(data174 && typeof data174 == "object" && !Array.isArray(data174)){let missing22;if(((((((data174.name === undefined) && (missing22 = "name")) || ((data174.icon === undefined) && (missing22 = "icon"))) || ((data174.deck === undefined) && (missing22 = "deck"))) || ((data174.model === undefined) && (missing22 = "model"))) || ((data174.fields === undefined) && (missing22 = "fields"))) || ((data174.type === undefined) && (missing22 = "type"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9,schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/required",keyword:"required",params:{missingProperty: missing22},message:"must have required property '"+missing22+"'"}];return false;}else {if(data174.name !== undefined){const _errs352 = errors;if(typeof data174.name !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/name",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid32 = _errs352 === errors;}else {var valid32 = true;}if(valid32){if(data174.icon !== undefined){let data176 = data174.icon;const _errs354 = errors;if(typeof data176 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/icon",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/icon/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data176 === "big-circle") || (data176 === "small-circle")) || (data176 === "big-square")) || (data176 === "big-diamond"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/icon",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/icon/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.cardFormats.items.properties.icon.enum},message:"must be equal to one of the allowed values"}];return false;}var valid32 = _errs354 === errors;}else {var valid32 = true;}if(valid32){if(data174.deck !== undefined){const _errs356 = errors;if(typeof data174.deck !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/deck",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/deck/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid32 = _errs356 === errors;}else {var valid32 = true;}if(valid32){if(data174.model !== undefined){const _errs358 = errors;if(typeof data174.model !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/model",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/model/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid32 = _errs358 === errors;}else {var valid32 = true;}if(valid32){if(data174.type !== undefined){let data179 = data174.type;const _errs360 = errors;if(typeof data179 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/type",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data179 === "term") || (data179 === "kanji"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/type",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.cardFormats.items.properties.type.enum},message:"must be equal to one of the allowed values"}];return false;}var valid32 = _errs360 === errors;}else {var valid32 = true;}if(valid32){if(data174.fields !== undefined){let data180 = data174.fields;const _errs362 = errors;if(errors === _errs362){if(data180 && typeof data180 == "object" && !Array.isArray(data180)){for(const key1 in data180){let data181 = data180[key1];const _errs365 = errors;if(errors === _errs365){if(data181 && typeof data181 == "object" && !Array.isArray(data181)){if(data181.value !== undefined){const _errs367 = errors;if(typeof data181.value !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/value",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/fields/additionalProperties/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid34 = _errs367 === errors;}else {var valid34 = true;}if(valid34){if(data181.overwriteMode !== undefined){let data183 = data181.overwriteMode;const _errs369 = errors;if(typeof data183 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/overwriteMode",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/fields/additionalProperties/properties/overwriteMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data183 === "coalesce") || (data183 === "coalesce-new")) || (data183 === "skip")) || (data183 === "append")) || (data183 === "prepend")) || (data183 === "overwrite"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/overwriteMode",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/fields/additionalProperties/properties/overwriteMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.cardFormats.items.properties.fields.additionalProperties.properties.overwriteMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid34 = _errs369 === errors;}else {var valid34 = true;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/fields/additionalProperties/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid33 = _errs365 === errors;if(!valid33){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9+"/fields",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/properties/fields/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid32 = _errs362 === errors;}else {var valid32 = true;}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats/" + i9,schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid31 = _errs350 === errors;if(!valid31){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/cardFormats",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/cardFormats/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid28 = _errs348 === errors;}else {var valid28 = true;}if(valid28){if(data165.duplicateScope !== undefined){let data184 = data165.duplicateScope;const _errs371 = errors;if(typeof data184 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/duplicateScope",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/duplicateScope/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data184 === "collection") || (data184 === "deck")) || (data184 === "deck-root"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/duplicateScope",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/duplicateScope/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.duplicateScope.enum},message:"must be equal to one of the allowed values"}];return false;}var valid28 = _errs371 === errors;}else {var valid28 = true;}if(valid28){if(data165.duplicateScopeCheckAllModels !== undefined){const _errs373 = errors;if(typeof data165.duplicateScopeCheckAllModels !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/duplicateScopeCheckAllModels",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/duplicateScopeCheckAllModels/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid28 = _errs373 === errors;}else {var valid28 = true;}if(valid28){if(data165.checkForDuplicates !== undefined){const _errs375 = errors;if(typeof data165.checkForDuplicates !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/checkForDuplicates",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/checkForDuplicates/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid28 = _errs375 === errors;}else {var valid28 = true;}if(valid28){if(data165.duplicateBehavior !== undefined){let data187 = data165.duplicateBehavior;const _errs377 = errors;if(typeof data187 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/duplicateBehavior",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/duplicateBehavior/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data187 === "prevent") || (data187 === "overwrite")) || (data187 === "new"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/duplicateBehavior",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/duplicateBehavior/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.duplicateBehavior.enum},message:"must be equal to one of the allowed values"}];return false;}var valid28 = _errs377 === errors;}else {var valid28 = true;}if(valid28){if(data165.fieldTemplates !== undefined){let data188 = data165.fieldTemplates;const _errs379 = errors;if((typeof data188 !== "string") && (data188 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/fieldTemplates",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/fieldTemplates/type",keyword:"type",params:{type: schema33.properties.profiles.items.properties.options.properties.anki.properties.fieldTemplates.type},message:"must be string,null"}];return false;}var valid28 = _errs379 === errors;}else {var valid28 = true;}if(valid28){if(data165.suspendNewCards !== undefined){const _errs381 = errors;if(typeof data165.suspendNewCards !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/suspendNewCards",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/suspendNewCards/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid28 = _errs381 === errors;}else {var valid28 = true;}if(valid28){if(data165.displayTagsAndFlags !== undefined){let data190 = data165.displayTagsAndFlags;const _errs383 = errors;if(typeof data190 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/displayTagsAndFlags",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/displayTagsAndFlags/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data190 === "never") || (data190 === "always")) || (data190 === "non-standard")) || (data190 === "custom"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/displayTagsAndFlags",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/displayTagsAndFlags/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.displayTagsAndFlags.enum},message:"must be equal to one of the allowed values"}];return false;}var valid28 = _errs383 === errors;}else {var valid28 = true;}if(valid28){if(data165.targetTags !== undefined){let data191 = data165.targetTags;const _errs385 = errors;if(errors === _errs385){if(Array.isArray(data191)){var valid35 = true;const len10 = data191.length;for(let i10=0; i10<len10; i10++){const _errs387 = errors;if(typeof data191[i10] !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/targetTags/" + i10,schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/targetTags/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid35 = _errs387 === errors;if(!valid35){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/targetTags",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/targetTags/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid28 = _errs385 === errors;}else {var valid28 = true;}if(valid28){if(data165.noteGuiMode !== undefined){let data193 = data165.noteGuiMode;const _errs389 = errors;if(typeof data193 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/noteGuiMode",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/noteGuiMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data193 === "browse") || (data193 === "edit"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/noteGuiMode",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/noteGuiMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.noteGuiMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid28 = _errs389 === errors;}else {var valid28 = true;}if(valid28){if(data165.apiKey !== undefined){const _errs391 = errors;if(typeof data165.apiKey !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/apiKey",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/apiKey/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid28 = _errs391 === errors;}else {var valid28 = true;}if(valid28){if(data165.downloadTimeout !== undefined){let data195 = data165.downloadTimeout;const _errs393 = errors;if(errors === _errs393){if((typeof data195 == "number") && (isFinite(data195))){if(data195 < 0 || isNaN(data195)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/downloadTimeout",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/downloadTimeout/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/downloadTimeout",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/downloadTimeout/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}}var valid28 = _errs393 === errors;}else {var valid28 = true;}if(valid28){if(data165.forceSync !== undefined){const _errs395 = errors;if(typeof data165.forceSync !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/forceSync",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/forceSync/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid28 = _errs395 === errors;}else {var valid28 = true;}}}}}}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs332 === errors;}else {var valid7 = true;}if(valid7){if(data10.sentenceParsing !== undefined){let data197 = data10.sentenceParsing;const _errs397 = errors;if(errors === _errs397){if(data197 && typeof data197 == "object" && !Array.isArray(data197)){let missing23;if((((data197.scanExtent === undefined) && (missing23 = "scanExtent")) || ((data197.terminationCharacterMode === undefined) && (missing23 = "terminationCharacterMode"))) || ((data197.terminationCharacters === undefined) && (missing23 = "terminationCharacters"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/required",keyword:"required",params:{missingProperty: missing23},message:"must have required property '"+missing23+"'"}];return false;}else {if(data197.scanExtent !== undefined){let data198 = data197.scanExtent;const _errs399 = errors;if(!(((typeof data198 == "number") && (!(data198 % 1) && !isNaN(data198))) && (isFinite(data198)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/scanExtent",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/scanExtent/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs399){if((typeof data198 == "number") && (isFinite(data198))){if(data198 < 0 || isNaN(data198)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/scanExtent",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/scanExtent/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid36 = _errs399 === errors;}else {var valid36 = true;}if(valid36){if(data197.terminationCharacterMode !== undefined){let data199 = data197.terminationCharacterMode;const _errs401 = errors;if(typeof data199 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacterMode",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacterMode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data199 === "custom") || (data199 === "custom-no-newlines")) || (data199 === "newlines")) || (data199 === "none"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacterMode",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacterMode/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.sentenceParsing.properties.terminationCharacterMode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid36 = _errs401 === errors;}else {var valid36 = true;}if(valid36){if(data197.terminationCharacters !== undefined){let data200 = data197.terminationCharacters;const _errs403 = errors;if(errors === _errs403){if(Array.isArray(data200)){var valid37 = true;const len11 = data200.length;for(let i11=0; i11<len11; i11++){let data201 = data200[i11];const _errs405 = errors;if(errors === _errs405){if(data201 && typeof data201 == "object" && !Array.isArray(data201)){let missing24;if((((((data201.enabled === undefined) && (missing24 = "enabled")) || ((data201.character1 === undefined) && (missing24 = "character1"))) || ((data201.character2 === undefined) && (missing24 = "character2"))) || ((data201.includeCharacterAtStart === undefined) && (missing24 = "includeCharacterAtStart"))) || ((data201.includeCharacterAtEnd === undefined) && (missing24 = "includeCharacterAtEnd"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11,schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/required",keyword:"required",params:{missingProperty: missing24},message:"must have required property '"+missing24+"'"}];return false;}else {if(data201.enabled !== undefined){const _errs407 = errors;if(typeof data201.enabled !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/enabled",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid38 = _errs407 === errors;}else {var valid38 = true;}if(valid38){if(data201.character1 !== undefined){let data203 = data201.character1;const _errs409 = errors;if(errors === _errs409){if(typeof data203 === "string"){if(func2(data203) > 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character1",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character1/maxLength",keyword:"maxLength",params:{limit: 1},message:"must NOT have more than 1 characters"}];return false;}else {if(func2(data203) < 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character1",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character1/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character1",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character1/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid38 = _errs409 === errors;}else {var valid38 = true;}if(valid38){if(data201.character2 !== undefined){let data204 = data201.character2;const _errs411 = errors;if((typeof data204 !== "string") && (data204 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character2",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character2/type",keyword:"type",params:{type: schema33.properties.profiles.items.properties.options.properties.sentenceParsing.properties.terminationCharacters.items.properties.character2.type},message:"must be string,null"}];return false;}if(errors === _errs411){if(typeof data204 === "string"){if(func2(data204) > 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character2",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character2/maxLength",keyword:"maxLength",params:{limit: 1},message:"must NOT have more than 1 characters"}];return false;}else {if(func2(data204) < 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/character2",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/character2/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid38 = _errs411 === errors;}else {var valid38 = true;}if(valid38){if(data201.includeCharacterAtStart !== undefined){const _errs413 = errors;if(typeof data201.includeCharacterAtStart !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/includeCharacterAtStart",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/includeCharacterAtStart/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid38 = _errs413 === errors;}else {var valid38 = true;}if(valid38){if(data201.includeCharacterAtEnd !== undefined){const _errs415 = errors;if(typeof data201.includeCharacterAtEnd !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11+"/includeCharacterAtEnd",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/properties/includeCharacterAtEnd/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid38 = _errs415 === errors;}else {var valid38 = true;}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i11,schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid37 = _errs405 === errors;if(!valid37){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid36 = _errs403 === errors;}else {var valid36 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing",schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs397 === errors;}else {var valid7 = true;}if(valid7){if(data10.inputs !== undefined){let data207 = data10.inputs;const _errs417 = errors;if(errors === _errs417){if(data207 && typeof data207 == "object" && !Array.isArray(data207)){let missing25;if((data207.hotkeys === undefined) && (missing25 = "hotkeys")){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/required",keyword:"required",params:{missingProperty: missing25},message:"must have required property '"+missing25+"'"}];return false;}else {if(data207.hotkeys !== undefined){let data208 = data207.hotkeys;const _errs419 = errors;if(errors === _errs419){if(Array.isArray(data208)){var valid40 = true;const len12 = data208.length;for(let i12=0; i12<len12; i12++){let data209 = data208[i12];const _errs421 = errors;if(errors === _errs421){if(data209 && typeof data209 == "object" && !Array.isArray(data209)){let missing26;if(((((((data209.action === undefined) && (missing26 = "action")) || ((data209.argument === undefined) && (missing26 = "argument"))) || ((data209.key === undefined) && (missing26 = "key"))) || ((data209.modifiers === undefined) && (missing26 = "modifiers"))) || ((data209.scopes === undefined) && (missing26 = "scopes"))) || ((data209.enabled === undefined) && (missing26 = "enabled"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12,schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/required",keyword:"required",params:{missingProperty: missing26},message:"must have required property '"+missing26+"'"}];return false;}else {if(data209.action !== undefined){const _errs423 = errors;if(typeof data209.action !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/action",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid41 = _errs423 === errors;}else {var valid41 = true;}if(valid41){if(data209.argument !== undefined){const _errs425 = errors;if(typeof data209.argument !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/argument",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/argument/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid41 = _errs425 === errors;}else {var valid41 = true;}if(valid41){if(data209.key !== undefined){let data212 = data209.key;const _errs427 = errors;if((typeof data212 !== "string") && (data212 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/key",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/key/type",keyword:"type",params:{type: schema33.properties.profiles.items.properties.options.properties.inputs.properties.hotkeys.items.properties.key.type},message:"must be string,null"}];return false;}var valid41 = _errs427 === errors;}else {var valid41 = true;}if(valid41){if(data209.modifiers !== undefined){let data213 = data209.modifiers;const _errs429 = errors;if(errors === _errs429){if(Array.isArray(data213)){var valid42 = true;const len13 = data213.length;for(let i13=0; i13<len13; i13++){let data214 = data213[i13];const _errs431 = errors;if(typeof data214 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/modifiers/" + i13,schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/modifiers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data214 === "alt") || (data214 === "ctrl")) || (data214 === "shift")) || (data214 === "meta"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/modifiers/" + i13,schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/modifiers/items/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.inputs.properties.hotkeys.items.properties.modifiers.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid42 = _errs431 === errors;if(!valid42){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/modifiers",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/modifiers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid41 = _errs429 === errors;}else {var valid41 = true;}if(valid41){if(data209.scopes !== undefined){let data215 = data209.scopes;const _errs433 = errors;if(errors === _errs433){if(Array.isArray(data215)){var valid43 = true;const len14 = data215.length;for(let i14=0; i14<len14; i14++){let data216 = data215[i14];const _errs435 = errors;if(typeof data216 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/scopes/" + i14,schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/scopes/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data216 === "popup") || (data216 === "search")) || (data216 === "web"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/scopes/" + i14,schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/scopes/items/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.inputs.properties.hotkeys.items.properties.scopes.items.enum},message:"must be equal to one of the allowed values"}];return false;}var valid43 = _errs435 === errors;if(!valid43){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/scopes",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid41 = _errs433 === errors;}else {var valid41 = true;}if(valid41){if(data209.enabled !== undefined){const _errs437 = errors;if(typeof data209.enabled !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12+"/enabled",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid41 = _errs437 === errors;}else {var valid41 = true;}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys/" + i12,schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid40 = _errs421 === errors;if(!valid40){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs/hotkeys",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/properties/hotkeys/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/inputs",schemaPath:"#/properties/profiles/items/properties/options/properties/inputs/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs417 === errors;}else {var valid7 = true;}if(valid7){if(data10.clipboard !== undefined){let data218 = data10.clipboard;const _errs439 = errors;if(errors === _errs439){if(data218 && typeof data218 == "object" && !Array.isArray(data218)){let missing27;if(((((data218.enableBackgroundMonitor === undefined) && (missing27 = "enableBackgroundMonitor")) || ((data218.enableSearchPageMonitor === undefined) && (missing27 = "enableSearchPageMonitor"))) || ((data218.autoSearchContent === undefined) && (missing27 = "autoSearchContent"))) || ((data218.maximumSearchLength === undefined) && (missing27 = "maximumSearchLength"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/required",keyword:"required",params:{missingProperty: missing27},message:"must have required property '"+missing27+"'"}];return false;}else {if(data218.enableBackgroundMonitor !== undefined){const _errs441 = errors;if(typeof data218.enableBackgroundMonitor !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard/enableBackgroundMonitor",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/properties/enableBackgroundMonitor/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid44 = _errs441 === errors;}else {var valid44 = true;}if(valid44){if(data218.enableSearchPageMonitor !== undefined){const _errs443 = errors;if(typeof data218.enableSearchPageMonitor !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard/enableSearchPageMonitor",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/properties/enableSearchPageMonitor/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid44 = _errs443 === errors;}else {var valid44 = true;}if(valid44){if(data218.autoSearchContent !== undefined){const _errs445 = errors;if(typeof data218.autoSearchContent !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard/autoSearchContent",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/properties/autoSearchContent/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid44 = _errs445 === errors;}else {var valid44 = true;}if(valid44){if(data218.maximumSearchLength !== undefined){let data222 = data218.maximumSearchLength;const _errs447 = errors;if(!(((typeof data222 == "number") && (!(data222 % 1) && !isNaN(data222))) && (isFinite(data222)))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard/maximumSearchLength",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/properties/maximumSearchLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs447){if((typeof data222 == "number") && (isFinite(data222))){if(data222 < 0 || isNaN(data222)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard/maximumSearchLength",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/properties/maximumSearchLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid44 = _errs447 === errors;}else {var valid44 = true;}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/clipboard",schemaPath:"#/properties/profiles/items/properties/options/properties/clipboard/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs439 === errors;}else {var valid7 = true;}if(valid7){if(data10.accessibility !== undefined){let data223 = data10.accessibility;const _errs449 = errors;if(errors === _errs449){if(data223 && typeof data223 == "object" && !Array.isArray(data223)){let missing28;if((data223.forceGoogleDocsHtmlRendering === undefined) && (missing28 = "forceGoogleDocsHtmlRendering")){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/accessibility",schemaPath:"#/properties/profiles/items/properties/options/properties/accessibility/required",keyword:"required",params:{missingProperty: missing28},message:"must have required property '"+missing28+"'"}];return false;}else {if(data223.forceGoogleDocsHtmlRendering !== undefined){if(typeof data223.forceGoogleDocsHtmlRendering !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/accessibility/forceGoogleDocsHtmlRendering",schemaPath:"#/properties/profiles/items/properties/options/properties/accessibility/properties/forceGoogleDocsHtmlRendering/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/accessibility",schemaPath:"#/properties/profiles/items/properties/options/properties/accessibility/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs449 === errors;}else {var valid7 = true;}}}}}}}}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options",schemaPath:"#/properties/profiles/items/properties/options/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs21 === errors;}else {var valid2 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0,schemaPath:"#/properties/profiles/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs5 === errors;if(!valid1){break;}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.profileCurrent !== undefined){let data225 = data.profileCurrent;const _errs453 = errors;if(!(((typeof data225 == "number") && (!(data225 % 1) && !isNaN(data225))) && (isFinite(data225)))){validate21.errors = [{instancePath:instancePath+"/profileCurrent",schemaPath:"#/properties/profileCurrent/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs453){if((typeof data225 == "number") && (isFinite(data225))){if(data225 < 0 || isNaN(data225)){validate21.errors = [{instancePath:instancePath+"/profileCurrent",schemaPath:"#/properties/profileCurrent/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs453 === errors;}else {var valid0 = true;}if(valid0){if(data.global !== undefined){let data226 = data.global;const _errs455 = errors;if(errors === _errs455){if(data226 && typeof data226 == "object" && !Array.isArray(data226)){let missing29;if(((data226.database === undefined) && (missing29 = "database")) || ((data226.dataTransmissionConsentShown === undefined) && (missing29 = "dataTransmissionConsentShown"))){validate21.errors = [{instancePath:instancePath+"/global",schemaPath:"#/properties/global/required",keyword:"required",params:{missingProperty: missing29},message:"must have required property '"+missing29+"'"}];return false;}else {if(data226.database !== undefined){let data227 = data226.database;const _errs457 = errors;if(errors === _errs457){if(data227 && typeof data227 == "object" && !Array.isArray(data227)){let missing30;if((data227.prefixWildcardsSupported === undefined) && (missing30 = "prefixWildcardsSupported")){validate21.errors = [{instancePath:instancePath+"/global/database",schemaPath:"#/properties/global/properties/database/required",keyword:"required",params:{missingProperty: missing30},message:"must have required property '"+missing30+"'"}];return false;}else {if(data227.prefixWildcardsSupported !== undefined){if(typeof data227.prefixWildcardsSupported !== "boolean"){validate21.errors = [{instancePath:instancePath+"/global/database/prefixWildcardsSupported",schemaPath:"#/properties/global/properties/database/properties/prefixWildcardsSupported/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}}}}else {validate21.errors = [{instancePath:instancePath+"/global/database",schemaPath:"#/properties/global/properties/database/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid46 = _errs457 === errors;}else {var valid46 = true;}if(valid46){if(data226.dataTransmissionConsentShown !== undefined){const _errs461 = errors;if(typeof data226.dataTransmissionConsentShown !== "boolean"){validate21.errors = [{instancePath:instancePath+"/global/dataTransmissionConsentShown",schemaPath:"#/properties/global/properties/dataTransmissionConsentShown/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid46 = _errs461 === errors;}else {var valid46 = true;}}}}else {validate21.errors = [{instancePath:instancePath+"/global",schemaPath:"#/properties/global/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs455 === errors;}else {var valid0 = true;}}}}}}else {validate21.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate21.errors = vErrors;return errors === 0;}export const recommendedDictionaries = validate22;const schema34 = {"$id":"recommendedDictionaries","$schema":"http://json-schema.org/draft-07/schema#","description":"Contains data for recommended dictionaries on welcome page.","type":"object","patternProperties":{"^.{2,}$":{"type":"object","properties":{"terms":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"kanji":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"frequency":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"grammar":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}},"pronunciation":{"type":"array","items":{"$ref":"#/definitions/Dictionary"}}},"required":["terms","kanji","frequency","grammar"],"additionalProperties":false}},"definitions":{"Dictionary":{"type":"object","required":["name","downloadUrl","description"],"properties":{"name":{"type":"string","minLength":2},"downloadUrl":{"type":"string","minLength":2},"description":{"type":"string","minLength":2},"homepage":{"type":"string","minLength":2}}}}};const schema35 = {"type":"object","required":["name","downloadUrl","description"],"properties":{"name":{"type":"string","minLength":2},"downloadUrl":{"type":"string","minLength":2},"description":{"type":"string","minLength":2},"homepage":{"type":"string","minLength":2}}};const pattern4 = new RegExp("^.{2,}$", "u");function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="recommendedDictionaries" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){var valid0 = true;for(const key0 in data){if(pattern4.test(key0)){let data0 = data[key0];const _errs1 = errors;if(errors === _errs1){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing0;if(((((data0.terms === undefined) && (missing0 = "terms")) || ((data0.kanji === undefined) && (missing0 = "kanji"))) || ((data0.frequency === undefined) && (missing0 = "frequency"))) || ((data0.grammar === undefined) && (missing0 = "grammar"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs3 = errors;for(const key1 in data0){if(!(((((key1 === "terms") || (key1 === "kanji")) || (key1 === "frequency")) || (key1 === "grammar")) || (key1 === "pronunciation"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs3 === errors){if(data0.terms !== undefined){let data1 = data0.terms;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data1)){var valid2 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs6 = errors;const _errs7 = errors;if(errors === _errs7){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if((((data2.name === undefined) && (missing1 = "name")) || ((data2.downloadUrl === undefined) && (missing1 = "downloadUrl"))) || ((data2.description === undefined) && (missing1 = "description"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0,schemaPath:"#/definitions/Dictionary/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.name !== undefined){let data3 = data2.name;const _errs9 = errors;if(errors === _errs9){if(typeof data3 === "string"){if(func2(data3) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/name",schemaPath:"#/definitions/Dictionary/properties/name/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/name",schemaPath:"#/definitions/Dictionary/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs9 === errors;}else {var valid4 = true;}if(valid4){if(data2.downloadUrl !== undefined){let data4 = data2.downloadUrl;const _errs11 = errors;if(errors === _errs11){if(typeof data4 === "string"){if(func2(data4) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs11 === errors;}else {var valid4 = true;}if(valid4){if(data2.description !== undefined){let data5 = data2.description;const _errs13 = errors;if(errors === _errs13){if(typeof data5 === "string"){if(func2(data5) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/description",schemaPath:"#/definitions/Dictionary/properties/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/description",schemaPath:"#/definitions/Dictionary/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs13 === errors;}else {var valid4 = true;}if(valid4){if(data2.homepage !== undefined){let data6 = data2.homepage;const _errs15 = errors;if(errors === _errs15){if(typeof data6 === "string"){if(func2(data6) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs15 === errors;}else {var valid4 = true;}}}}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms/" + i0,schemaPath:"#/definitions/Dictionary/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs6 === errors;if(!valid2){break;}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/terms",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/properties/terms/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data0.kanji !== undefined){let data7 = data0.kanji;const _errs17 = errors;if(errors === _errs17){if(Array.isArray(data7)){var valid5 = true;const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs19 = errors;const _errs20 = errors;if(errors === _errs20){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing2;if((((data8.name === undefined) && (missing2 = "name")) || ((data8.downloadUrl === undefined) && (missing2 = "downloadUrl"))) || ((data8.description === undefined) && (missing2 = "description"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1,schemaPath:"#/definitions/Dictionary/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data8.name !== undefined){let data9 = data8.name;const _errs22 = errors;if(errors === _errs22){if(typeof data9 === "string"){if(func2(data9) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/name",schemaPath:"#/definitions/Dictionary/properties/name/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/name",schemaPath:"#/definitions/Dictionary/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs22 === errors;}else {var valid7 = true;}if(valid7){if(data8.downloadUrl !== undefined){let data10 = data8.downloadUrl;const _errs24 = errors;if(errors === _errs24){if(typeof data10 === "string"){if(func2(data10) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs24 === errors;}else {var valid7 = true;}if(valid7){if(data8.description !== undefined){let data11 = data8.description;const _errs26 = errors;if(errors === _errs26){if(typeof data11 === "string"){if(func2(data11) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/description",schemaPath:"#/definitions/Dictionary/properties/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/description",schemaPath:"#/definitions/Dictionary/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs26 === errors;}else {var valid7 = true;}if(valid7){if(data8.homepage !== undefined){let data12 = data8.homepage;const _errs28 = errors;if(errors === _errs28){if(typeof data12 === "string"){if(func2(data12) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs28 === errors;}else {var valid7 = true;}}}}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji/" + i1,schemaPath:"#/definitions/Dictionary/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs19 === errors;if(!valid5){break;}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/kanji",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/properties/kanji/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data0.frequency !== undefined){let data13 = data0.frequency;const _errs30 = errors;if(errors === _errs30){if(Array.isArray(data13)){var valid8 = true;const len2 = data13.length;for(let i2=0; i2<len2; i2++){let data14 = data13[i2];const _errs32 = errors;const _errs33 = errors;if(errors === _errs33){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing3;if((((data14.name === undefined) && (missing3 = "name")) || ((data14.downloadUrl === undefined) && (missing3 = "downloadUrl"))) || ((data14.description === undefined) && (missing3 = "description"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2,schemaPath:"#/definitions/Dictionary/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data14.name !== undefined){let data15 = data14.name;const _errs35 = errors;if(errors === _errs35){if(typeof data15 === "string"){if(func2(data15) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/name",schemaPath:"#/definitions/Dictionary/properties/name/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/name",schemaPath:"#/definitions/Dictionary/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid10 = _errs35 === errors;}else {var valid10 = true;}if(valid10){if(data14.downloadUrl !== undefined){let data16 = data14.downloadUrl;const _errs37 = errors;if(errors === _errs37){if(typeof data16 === "string"){if(func2(data16) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid10 = _errs37 === errors;}else {var valid10 = true;}if(valid10){if(data14.description !== undefined){let data17 = data14.description;const _errs39 = errors;if(errors === _errs39){if(typeof data17 === "string"){if(func2(data17) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/description",schemaPath:"#/definitions/Dictionary/properties/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/description",schemaPath:"#/definitions/Dictionary/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid10 = _errs39 === errors;}else {var valid10 = true;}if(valid10){if(data14.homepage !== undefined){let data18 = data14.homepage;const _errs41 = errors;if(errors === _errs41){if(typeof data18 === "string"){if(func2(data18) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid10 = _errs41 === errors;}else {var valid10 = true;}}}}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency/" + i2,schemaPath:"#/definitions/Dictionary/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid8 = _errs32 === errors;if(!valid8){break;}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/frequency",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/properties/frequency/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs30 === errors;}else {var valid1 = true;}if(valid1){if(data0.grammar !== undefined){let data19 = data0.grammar;const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data19)){var valid11 = true;const len3 = data19.length;for(let i3=0; i3<len3; i3++){let data20 = data19[i3];const _errs45 = errors;const _errs46 = errors;if(errors === _errs46){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){let missing4;if((((data20.name === undefined) && (missing4 = "name")) || ((data20.downloadUrl === undefined) && (missing4 = "downloadUrl"))) || ((data20.description === undefined) && (missing4 = "description"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3,schemaPath:"#/definitions/Dictionary/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data20.name !== undefined){let data21 = data20.name;const _errs48 = errors;if(errors === _errs48){if(typeof data21 === "string"){if(func2(data21) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/name",schemaPath:"#/definitions/Dictionary/properties/name/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/name",schemaPath:"#/definitions/Dictionary/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid13 = _errs48 === errors;}else {var valid13 = true;}if(valid13){if(data20.downloadUrl !== undefined){let data22 = data20.downloadUrl;const _errs50 = errors;if(errors === _errs50){if(typeof data22 === "string"){if(func2(data22) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid13 = _errs50 === errors;}else {var valid13 = true;}if(valid13){if(data20.description !== undefined){let data23 = data20.description;const _errs52 = errors;if(errors === _errs52){if(typeof data23 === "string"){if(func2(data23) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/description",schemaPath:"#/definitions/Dictionary/properties/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/description",schemaPath:"#/definitions/Dictionary/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid13 = _errs52 === errors;}else {var valid13 = true;}if(valid13){if(data20.homepage !== undefined){let data24 = data20.homepage;const _errs54 = errors;if(errors === _errs54){if(typeof data24 === "string"){if(func2(data24) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid13 = _errs54 === errors;}else {var valid13 = true;}}}}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar/" + i3,schemaPath:"#/definitions/Dictionary/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid11 = _errs45 === errors;if(!valid11){break;}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/grammar",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/properties/grammar/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs43 === errors;}else {var valid1 = true;}if(valid1){if(data0.pronunciation !== undefined){let data25 = data0.pronunciation;const _errs56 = errors;if(errors === _errs56){if(Array.isArray(data25)){var valid14 = true;const len4 = data25.length;for(let i4=0; i4<len4; i4++){let data26 = data25[i4];const _errs58 = errors;const _errs59 = errors;if(errors === _errs59){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){let missing5;if((((data26.name === undefined) && (missing5 = "name")) || ((data26.downloadUrl === undefined) && (missing5 = "downloadUrl"))) || ((data26.description === undefined) && (missing5 = "description"))){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4,schemaPath:"#/definitions/Dictionary/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"}];return false;}else {if(data26.name !== undefined){let data27 = data26.name;const _errs61 = errors;if(errors === _errs61){if(typeof data27 === "string"){if(func2(data27) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/name",schemaPath:"#/definitions/Dictionary/properties/name/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/name",schemaPath:"#/definitions/Dictionary/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid16 = _errs61 === errors;}else {var valid16 = true;}if(valid16){if(data26.downloadUrl !== undefined){let data28 = data26.downloadUrl;const _errs63 = errors;if(errors === _errs63){if(typeof data28 === "string"){if(func2(data28) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/downloadUrl",schemaPath:"#/definitions/Dictionary/properties/downloadUrl/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid16 = _errs63 === errors;}else {var valid16 = true;}if(valid16){if(data26.description !== undefined){let data29 = data26.description;const _errs65 = errors;if(errors === _errs65){if(typeof data29 === "string"){if(func2(data29) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/description",schemaPath:"#/definitions/Dictionary/properties/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/description",schemaPath:"#/definitions/Dictionary/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid16 = _errs65 === errors;}else {var valid16 = true;}if(valid16){if(data26.homepage !== undefined){let data30 = data26.homepage;const _errs67 = errors;if(errors === _errs67){if(typeof data30 === "string"){if(func2(data30) < 2){validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"}];return false;}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4+"/homepage",schemaPath:"#/definitions/Dictionary/properties/homepage/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid16 = _errs67 === errors;}else {var valid16 = true;}}}}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation/" + i4,schemaPath:"#/definitions/Dictionary/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid14 = _errs58 === errors;if(!valid14){break;}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/pronunciation",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/properties/pronunciation/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs56 === errors;}else {var valid1 = true;}}}}}}}}else {validate22.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}}else {validate22.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate22.errors = vErrors;return errors === 0;}export const recommendedSettings = validate23;const schema40 = {"$id":"recommendedSettings","$schema":"http://json-schema.org/draft-07/schema#","description":"Contains data for recommended default options overrides by language.","type":"object","$defs":{"path":{"type":"string","minLength":2},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"number"},{"type":"boolean"},{"type":"array"},{"type":"object"}]},"description":{"type":"string","minLength":2}},"patternProperties":{"^.{2,}$":{"title":"Language","type":"array","items":{"title":"Modification","type":"object","oneOf":[{"type":"object","title":"ModificationSet","properties":{"modification":{"type":"object","properties":{"action":{"type":"string","const":"set"},"path":{"$ref":"#/$defs/path"},"value":{"$ref":"#/$defs/value"}}},"description":{"$ref":"#/$defs/description"}}},{"type":"object","title":"ModificationDelete","properties":{"modification":{"type":"object","properties":{"action":{"type":"string","const":"delete"},"path":{"$ref":"#/$defs/path"},"value":{"$ref":"#/$defs/value"}}},"description":{"$ref":"#/$defs/description"}}},{"type":"object","title":"ModificationSwap","properties":{"modification":{"type":"object","properties":{"action":{"type":"string","const":"swap"},"path1":{"$ref":"#/$defs/path"},"path2":{"$ref":"#/$defs/path"}}},"description":{"$ref":"#/$defs/description"}}},{"type":"object","title":"ModificationSplice","properties":{"modification":{"type":"object","properties":{"action":{"type":"string","const":"splice"},"path":{"$ref":"#/$defs/path"},"start":{"type":"number"},"deleteCount":{"type":"number"},"items":{"type":"array","items":{"$ref":"#/$defs/value"}}}},"description":{"$ref":"#/$defs/description"}}},{"type":"object","title":"ModificationPush","properties":{"modification":{"type":"object","properties":{"action":{"type":"string","const":"push"},"path":{"$ref":"#/$defs/path"},"items":{"type":"array","items":{"$ref":"#/$defs/value"}}}},"description":{"$ref":"#/$defs/description"}}}]}}}};const schema41 = {"type":"string","minLength":2};const schema42 = {"anyOf":[{"type":"string","minLength":1},{"type":"number"},{"type":"boolean"},{"type":"array"},{"type":"object"}]};const schema43 = {"type":"string","minLength":2};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="recommendedSettings" */;let vErrors = null;let errors = 0;if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){var valid0 = true;for(const key0 in data){if(pattern4.test(key0)){let data0 = data[key0];const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs3 = errors;if(!(data1 && typeof data1 == "object" && !Array.isArray(data1))){validate23.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}const _errs5 = errors;let valid2 = false;let passing0 = null;const _errs6 = errors;if(errors === _errs6){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.modification !== undefined){let data2 = data1.modification;const _errs8 = errors;if(errors === _errs8){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.action !== undefined){let data3 = data2.action;const _errs10 = errors;if(typeof data3 !== "string"){const err0 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/0/properties/modification/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("set" !== data3){const err1 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/0/properties/modification/properties/action/const",keyword:"const",params:{allowedValue: "set"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid4 = _errs10 === errors;}else {var valid4 = true;}if(valid4){if(data2.path !== undefined){let data4 = data2.path;const _errs12 = errors;const _errs13 = errors;if(errors === _errs13){if(typeof data4 === "string"){if(func2(data4) < 2){const err2 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid4 = _errs12 === errors;}else {var valid4 = true;}if(valid4){if(data2.value !== undefined){let data5 = data2.value;const _errs15 = errors;const _errs17 = errors;let valid7 = false;const _errs18 = errors;if(errors === _errs18){if(typeof data5 === "string"){if(func2(data5) < 1){const err4 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid1 = _errs18 === errors;valid7 = valid7 || _valid1;if(!valid7){const _errs20 = errors;if(!((typeof data5 == "number") && (isFinite(data5)))){const err6 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid1 = _errs20 === errors;valid7 = valid7 || _valid1;if(!valid7){const _errs22 = errors;if(typeof data5 !== "boolean"){const err7 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/2/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid1 = _errs22 === errors;valid7 = valid7 || _valid1;if(!valid7){const _errs24 = errors;if(!(Array.isArray(data5))){const err8 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid1 = _errs24 === errors;valid7 = valid7 || _valid1;if(!valid7){const _errs26 = errors;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err9 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid1 = _errs26 === errors;valid7 = valid7 || _valid1;}}}}if(!valid7){const err10 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}var valid4 = _errs15 === errors;}else {var valid4 = true;}}}}else {const err11 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/0/properties/modification/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid3 = _errs8 === errors;}else {var valid3 = true;}if(valid3){if(data1.description !== undefined){let data6 = data1.description;const _errs28 = errors;const _errs29 = errors;if(errors === _errs29){if(typeof data6 === "string"){if(func2(data6) < 2){const err12 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var valid3 = _errs28 === errors;}else {var valid3 = true;}}}else {const err14 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var _valid0 = _errs6 === errors;if(_valid0){valid2 = true;passing0 = 0;}const _errs31 = errors;if(errors === _errs31){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.modification !== undefined){let data7 = data1.modification;const _errs33 = errors;if(errors === _errs33){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.action !== undefined){let data8 = data7.action;const _errs35 = errors;if(typeof data8 !== "string"){const err15 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/1/properties/modification/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("delete" !== data8){const err16 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/1/properties/modification/properties/action/const",keyword:"const",params:{allowedValue: "delete"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var valid10 = _errs35 === errors;}else {var valid10 = true;}if(valid10){if(data7.path !== undefined){let data9 = data7.path;const _errs37 = errors;const _errs38 = errors;if(errors === _errs38){if(typeof data9 === "string"){if(func2(data9) < 2){const err17 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid10 = _errs37 === errors;}else {var valid10 = true;}if(valid10){if(data7.value !== undefined){let data10 = data7.value;const _errs40 = errors;const _errs42 = errors;let valid13 = false;const _errs43 = errors;if(errors === _errs43){if(typeof data10 === "string"){if(func2(data10) < 1){const err19 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}else {const err20 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var _valid2 = _errs43 === errors;valid13 = valid13 || _valid2;if(!valid13){const _errs45 = errors;if(!((typeof data10 == "number") && (isFinite(data10)))){const err21 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid2 = _errs45 === errors;valid13 = valid13 || _valid2;if(!valid13){const _errs47 = errors;if(typeof data10 !== "boolean"){const err22 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/2/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid2 = _errs47 === errors;valid13 = valid13 || _valid2;if(!valid13){const _errs49 = errors;if(!(Array.isArray(data10))){const err23 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var _valid2 = _errs49 === errors;valid13 = valid13 || _valid2;if(!valid13){const _errs51 = errors;if(!(data10 && typeof data10 == "object" && !Array.isArray(data10))){const err24 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid2 = _errs51 === errors;valid13 = valid13 || _valid2;}}}}if(!valid13){const err25 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/value",schemaPath:"#/$defs/value/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}var valid10 = _errs40 === errors;}else {var valid10 = true;}}}}else {const err26 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/1/properties/modification/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid9 = _errs33 === errors;}else {var valid9 = true;}if(valid9){if(data1.description !== undefined){let data11 = data1.description;const _errs53 = errors;const _errs54 = errors;if(errors === _errs54){if(typeof data11 === "string"){if(func2(data11) < 2){const err27 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}else {const err28 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid9 = _errs53 === errors;}else {var valid9 = true;}}}else {const err29 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid0 = _errs31 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 1];}else {if(_valid0){valid2 = true;passing0 = 1;}const _errs56 = errors;if(errors === _errs56){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.modification !== undefined){let data12 = data1.modification;const _errs58 = errors;if(errors === _errs58){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.action !== undefined){let data13 = data12.action;const _errs60 = errors;if(typeof data13 !== "string"){const err30 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/2/properties/modification/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("swap" !== data13){const err31 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/2/properties/modification/properties/action/const",keyword:"const",params:{allowedValue: "swap"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid16 = _errs60 === errors;}else {var valid16 = true;}if(valid16){if(data12.path1 !== undefined){let data14 = data12.path1;const _errs62 = errors;const _errs63 = errors;if(errors === _errs63){if(typeof data14 === "string"){if(func2(data14) < 2){const err32 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path1",schemaPath:"#/$defs/path/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path1",schemaPath:"#/$defs/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var valid16 = _errs62 === errors;}else {var valid16 = true;}if(valid16){if(data12.path2 !== undefined){let data15 = data12.path2;const _errs65 = errors;const _errs66 = errors;if(errors === _errs66){if(typeof data15 === "string"){if(func2(data15) < 2){const err34 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path2",schemaPath:"#/$defs/path/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}else {const err35 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path2",schemaPath:"#/$defs/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}var valid16 = _errs65 === errors;}else {var valid16 = true;}}}}else {const err36 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/2/properties/modification/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid15 = _errs58 === errors;}else {var valid15 = true;}if(valid15){if(data1.description !== undefined){let data16 = data1.description;const _errs68 = errors;const _errs69 = errors;if(errors === _errs69){if(typeof data16 === "string"){if(func2(data16) < 2){const err37 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}else {const err38 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid15 = _errs68 === errors;}else {var valid15 = true;}}}else {const err39 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var _valid0 = _errs56 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 2];}else {if(_valid0){valid2 = true;passing0 = 2;}const _errs71 = errors;if(errors === _errs71){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.modification !== undefined){let data17 = data1.modification;const _errs73 = errors;if(errors === _errs73){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.action !== undefined){let data18 = data17.action;const _errs75 = errors;if(typeof data18 !== "string"){const err40 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/3/properties/modification/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("splice" !== data18){const err41 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/3/properties/modification/properties/action/const",keyword:"const",params:{allowedValue: "splice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid21 = _errs75 === errors;}else {var valid21 = true;}if(valid21){if(data17.path !== undefined){let data19 = data17.path;const _errs77 = errors;const _errs78 = errors;if(errors === _errs78){if(typeof data19 === "string"){if(func2(data19) < 2){const err42 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}var valid21 = _errs77 === errors;}else {var valid21 = true;}if(valid21){if(data17.start !== undefined){let data20 = data17.start;const _errs80 = errors;if(!((typeof data20 == "number") && (isFinite(data20)))){const err44 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/start",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/3/properties/modification/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid21 = _errs80 === errors;}else {var valid21 = true;}if(valid21){if(data17.deleteCount !== undefined){let data21 = data17.deleteCount;const _errs82 = errors;if(!((typeof data21 == "number") && (isFinite(data21)))){const err45 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/deleteCount",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/3/properties/modification/properties/deleteCount/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid21 = _errs82 === errors;}else {var valid21 = true;}if(valid21){if(data17.items !== undefined){let data22 = data17.items;const _errs84 = errors;if(errors === _errs84){if(Array.isArray(data22)){var valid23 = true;const len1 = data22.length;for(let i1=0; i1<len1; i1++){let data23 = data22[i1];const _errs86 = errors;const _errs88 = errors;let valid25 = false;const _errs89 = errors;if(errors === _errs89){if(typeof data23 === "string"){if(func2(data23) < 1){const err46 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i1,schemaPath:"#/$defs/value/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i1,schemaPath:"#/$defs/value/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}var _valid3 = _errs89 === errors;valid25 = valid25 || _valid3;if(!valid25){const _errs91 = errors;if(!((typeof data23 == "number") && (isFinite(data23)))){const err48 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i1,schemaPath:"#/$defs/value/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var _valid3 = _errs91 === errors;valid25 = valid25 || _valid3;if(!valid25){const _errs93 = errors;if(typeof data23 !== "boolean"){const err49 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i1,schemaPath:"#/$defs/value/anyOf/2/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var _valid3 = _errs93 === errors;valid25 = valid25 || _valid3;if(!valid25){const _errs95 = errors;if(!(Array.isArray(data23))){const err50 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i1,schemaPath:"#/$defs/value/anyOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid3 = _errs95 === errors;valid25 = valid25 || _valid3;if(!valid25){const _errs97 = errors;if(!(data23 && typeof data23 == "object" && !Array.isArray(data23))){const err51 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i1,schemaPath:"#/$defs/value/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var _valid3 = _errs97 === errors;valid25 = valid25 || _valid3;}}}}if(!valid25){const err52 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i1,schemaPath:"#/$defs/value/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}var valid23 = _errs86 === errors;if(!valid23){break;}}}else {const err53 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/3/properties/modification/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}var valid21 = _errs84 === errors;}else {var valid21 = true;}}}}}}else {const err54 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/3/properties/modification/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var valid20 = _errs73 === errors;}else {var valid20 = true;}if(valid20){if(data1.description !== undefined){let data24 = data1.description;const _errs99 = errors;const _errs100 = errors;if(errors === _errs100){if(typeof data24 === "string"){if(func2(data24) < 2){const err55 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}else {const err56 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}var valid20 = _errs99 === errors;}else {var valid20 = true;}}}else {const err57 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}var _valid0 = _errs71 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 3];}else {if(_valid0){valid2 = true;passing0 = 3;}const _errs102 = errors;if(errors === _errs102){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.modification !== undefined){let data25 = data1.modification;const _errs104 = errors;if(errors === _errs104){if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.action !== undefined){let data26 = data25.action;const _errs106 = errors;if(typeof data26 !== "string"){const err58 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/4/properties/modification/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if("push" !== data26){const err59 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/action",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/4/properties/modification/properties/action/const",keyword:"const",params:{allowedValue: "push"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid28 = _errs106 === errors;}else {var valid28 = true;}if(valid28){if(data25.path !== undefined){let data27 = data25.path;const _errs108 = errors;const _errs109 = errors;if(errors === _errs109){if(typeof data27 === "string"){if(func2(data27) < 2){const err60 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/path",schemaPath:"#/$defs/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}var valid28 = _errs108 === errors;}else {var valid28 = true;}if(valid28){if(data25.items !== undefined){let data28 = data25.items;const _errs111 = errors;if(errors === _errs111){if(Array.isArray(data28)){var valid30 = true;const len2 = data28.length;for(let i2=0; i2<len2; i2++){let data29 = data28[i2];const _errs113 = errors;const _errs115 = errors;let valid32 = false;const _errs116 = errors;if(errors === _errs116){if(typeof data29 === "string"){if(func2(data29) < 1){const err62 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i2,schemaPath:"#/$defs/value/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i2,schemaPath:"#/$defs/value/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var _valid4 = _errs116 === errors;valid32 = valid32 || _valid4;if(!valid32){const _errs118 = errors;if(!((typeof data29 == "number") && (isFinite(data29)))){const err64 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i2,schemaPath:"#/$defs/value/anyOf/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var _valid4 = _errs118 === errors;valid32 = valid32 || _valid4;if(!valid32){const _errs120 = errors;if(typeof data29 !== "boolean"){const err65 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i2,schemaPath:"#/$defs/value/anyOf/2/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var _valid4 = _errs120 === errors;valid32 = valid32 || _valid4;if(!valid32){const _errs122 = errors;if(!(Array.isArray(data29))){const err66 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i2,schemaPath:"#/$defs/value/anyOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid4 = _errs122 === errors;valid32 = valid32 || _valid4;if(!valid32){const _errs124 = errors;if(!(data29 && typeof data29 == "object" && !Array.isArray(data29))){const err67 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i2,schemaPath:"#/$defs/value/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid4 = _errs124 === errors;valid32 = valid32 || _valid4;}}}}if(!valid32){const err68 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items/" + i2,schemaPath:"#/$defs/value/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}}var valid30 = _errs113 === errors;if(!valid30){break;}}}else {const err69 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification/items",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/4/properties/modification/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var valid28 = _errs111 === errors;}else {var valid28 = true;}}}}else {const err70 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/modification",schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/4/properties/modification/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}var valid27 = _errs104 === errors;}else {var valid27 = true;}if(valid27){if(data1.description !== undefined){let data30 = data1.description;const _errs126 = errors;const _errs127 = errors;if(errors === _errs127){if(typeof data30 === "string"){if(func2(data30) < 2){const err71 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}else {const err72 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0+"/description",schemaPath:"#/$defs/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}var valid27 = _errs126 === errors;}else {var valid27 = true;}}}else {const err73 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var _valid0 = _errs102 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 4];}else {if(_valid0){valid2 = true;passing0 = 4;}}}}}if(!valid2){const err74 = {instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;validate23.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate23.errors = [{instancePath:instancePath+"/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/patternProperties/%5E.%7B2%2C%7D%24/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}}else {validate23.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate23.errors = vErrors;return errors === 0;}