// @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 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 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 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 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 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 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 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 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."},"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."},"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=", 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=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}else {const err137 = {instancePath:instancePath+"/width",schemaPath:"#/oneOf/2/oneOf/4/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}var valid23 = _errs229 === errors;}else {var valid23 = true;}if(valid23){if(data.height !== undefined){let data95 = data.height;const _errs231 = errors;if(errors === _errs231){if((typeof data95 == "number") && (isFinite(data95))){if(data95 < 0 || isNaN(data95)){const err138 = {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 = [err138];}else {vErrors.push(err138);}errors++;}}else {const err139 = {instancePath:instancePath+"/height",schemaPath:"#/oneOf/2/oneOf/4/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}var valid23 = _errs231 === errors;}else {var valid23 = true;}if(valid23){if(data.title !== undefined){const _errs233 = errors;if(typeof data.title !== "string"){const err140 = {instancePath:instancePath+"/title",schemaPath:"#/oneOf/2/oneOf/4/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}var valid23 = _errs233 === errors;}else {var valid23 = true;}if(valid23){if(data.alt !== undefined){const _errs235 = errors;if(typeof data.alt !== "string"){const err141 = {instancePath:instancePath+"/alt",schemaPath:"#/oneOf/2/oneOf/4/properties/alt/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.description !== undefined){const _errs237 = errors;if(typeof data.description !== "string"){const err142 = {instancePath:instancePath+"/description",schemaPath:"#/oneOf/2/oneOf/4/properties/description/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.pixelated !== undefined){const _errs239 = errors;if(typeof data.pixelated !== "boolean"){const err143 = {instancePath:instancePath+"/pixelated",schemaPath:"#/oneOf/2/oneOf/4/properties/pixelated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}var valid23 = _errs239 === errors;}else {var valid23 = true;}if(valid23){if(data.imageRendering !== undefined){let data100 = data.imageRendering;const _errs241 = errors;if(typeof data100 !== "string"){const err144 = {instancePath:instancePath+"/imageRendering",schemaPath:"#/oneOf/2/oneOf/4/properties/imageRendering/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(!(((data100 === "auto") || (data100 === "pixelated")) || (data100 === "crisp-edges"))){const err145 = {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 = [err145];}else {vErrors.push(err145);}errors++;}var valid23 = _errs241 === errors;}else {var valid23 = true;}if(valid23){if(data.appearance !== undefined){let data101 = data.appearance;const _errs243 = errors;if(typeof data101 !== "string"){const err146 = {instancePath:instancePath+"/appearance",schemaPath:"#/oneOf/2/oneOf/4/properties/appearance/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(!((data101 === "auto") || (data101 === "monochrome"))){const err147 = {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 = [err147];}else {vErrors.push(err147);}errors++;}var valid23 = _errs243 === errors;}else {var valid23 = true;}if(valid23){if(data.background !== undefined){const _errs245 = errors;if(typeof data.background !== "boolean"){const err148 = {instancePath:instancePath+"/background",schemaPath:"#/oneOf/2/oneOf/4/properties/background/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var valid23 = _errs245 === errors;}else {var valid23 = true;}if(valid23){if(data.collapsed !== undefined){const _errs247 = errors;if(typeof data.collapsed !== "boolean"){const err149 = {instancePath:instancePath+"/collapsed",schemaPath:"#/oneOf/2/oneOf/4/properties/collapsed/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.collapsible !== undefined){const _errs249 = errors;if(typeof data.collapsible !== "boolean"){const err150 = {instancePath:instancePath+"/collapsible",schemaPath:"#/oneOf/2/oneOf/4/properties/collapsible/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.verticalAlign !== undefined){let data105 = data.verticalAlign;const _errs251 = errors;if(typeof data105 !== "string"){const err151 = {instancePath:instancePath+"/verticalAlign",schemaPath:"#/oneOf/2/oneOf/4/properties/verticalAlign/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(!((((((((data105 === "baseline") || (data105 === "sub")) || (data105 === "super")) || (data105 === "text-top")) || (data105 === "text-bottom")) || (data105 === "middle")) || (data105 === "top")) || (data105 === "bottom"))){const err152 = {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 = [err152];}else {vErrors.push(err152);}errors++;}var valid23 = _errs251 === errors;}else {var valid23 = true;}if(valid23){if(data.border !== undefined){const _errs253 = errors;if(typeof data.border !== "string"){const err153 = {instancePath:instancePath+"/border",schemaPath:"#/oneOf/2/oneOf/4/properties/border/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}var valid23 = _errs253 === errors;}else {var valid23 = true;}if(valid23){if(data.borderRadius !== undefined){const _errs255 = errors;if(typeof data.borderRadius !== "string"){const err154 = {instancePath:instancePath+"/borderRadius",schemaPath:"#/oneOf/2/oneOf/4/properties/borderRadius/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.sizeUnits !== undefined){let data108 = data.sizeUnits;const _errs257 = errors;if(typeof data108 !== "string"){const err155 = {instancePath:instancePath+"/sizeUnits",schemaPath:"#/oneOf/2/oneOf/4/properties/sizeUnits/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(!((data108 === "px") || (data108 === "em"))){const err156 = {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 = [err156];}else {vErrors.push(err156);}errors++;}var valid23 = _errs257 === errors;}else {var valid23 = true;}}}}}}}}}}}}}}}}}}}}}else {const err157 = {instancePath,schemaPath:"#/oneOf/2/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}var _valid1 = _errs216 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 4];}else {if(_valid1){valid2 = true;passing1 = 4;}const _errs259 = errors;if(errors === _errs259){if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((data.tag === undefined) && (missing5 = "tag")) || ((data.href === undefined) && (missing5 = "href"))){const err158 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {const _errs261 = errors;for(const key12 in data){if(!((((key12 === "tag") || (key12 === "content")) || (key12 === "href")) || (key12 === "lang"))){const err159 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;break;}}if(_errs261 === errors){if(data.tag !== undefined){let data109 = data.tag;const _errs262 = errors;if(typeof data109 !== "string"){const err160 = {instancePath:instancePath+"/tag",schemaPath:"#/oneOf/2/oneOf/5/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if("a" !== data109){const err161 = {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 = [err161];}else {vErrors.push(err161);}errors++;}var valid26 = _errs262 === errors;}else {var valid26 = true;}if(valid26){if(data.content !== undefined){const _errs264 = 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 = _errs264 === errors;}else {var valid26 = true;}if(valid26){if(data.href !== undefined){let data111 = data.href;const _errs265 = errors;if(errors === _errs265){if(typeof data111 === "string"){if(!pattern2.test(data111)){const err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}}else {const err163 = {instancePath:instancePath+"/href",schemaPath:"#/oneOf/2/oneOf/5/properties/href/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}var valid26 = _errs265 === errors;}else {var valid26 = true;}if(valid26){if(data.lang !== undefined){const _errs267 = errors;if(typeof data.lang !== "string"){const err164 = {instancePath:instancePath+"/lang",schemaPath:"#/oneOf/2/oneOf/5/properties/lang/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;}}}}}}}else {const err165 = {instancePath,schemaPath:"#/oneOf/2/oneOf/5/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}var _valid1 = _errs259 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 5];}else {if(_valid1){valid2 = true;passing1 = 5;}}}}}}if(!valid2){const err166 = {instancePath,schemaPath:"#/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}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 err167 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}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 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=", 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 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":{"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},"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"}}}]};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 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=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}var valid14 = _errs49 === errors;}else {var valid14 = true;}if(valid14){if(data13.nasal !== undefined){let data15 = data13.nasal;const _errs51 = errors;const _errs52 = errors;let valid15 = false;let passing4 = null;const _errs53 = errors;if(!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))){const err32 = {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 = [err32];}else {vErrors.push(err32);}errors++;}if(errors === _errs53){if((typeof data15 == "number") && (isFinite(data15))){if(data15 < 0 || isNaN(data15)){const err33 = {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 = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid4 = _errs53 === errors;if(_valid4){valid15 = true;passing4 = 0;}const _errs55 = errors;if(errors === _errs55){if(Array.isArray(data15)){var valid16 = true;const len4 = data15.length;for(let i2=0; i2=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}var valid16 = _errs57 === errors;if(!valid16){break;}}}else {const err36 = {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 = [err36];}else {vErrors.push(err36);}errors++;}}var _valid4 = _errs55 === errors;if(_valid4 && valid15){valid15 = false;passing4 = [passing4, 1];}else {if(_valid4){valid15 = true;passing4 = 1;}}if(!valid15){const err37 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/nasal",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/nasal/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid14 = _errs51 === errors;}else {var valid14 = true;}if(valid14){if(data13.devoice !== undefined){let data17 = data13.devoice;const _errs59 = errors;const _errs60 = errors;let valid17 = false;let passing5 = null;const _errs61 = errors;if(!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))){const err38 = {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 = [err38];}else {vErrors.push(err38);}errors++;}if(errors === _errs61){if((typeof data17 == "number") && (isFinite(data17))){if(data17 < 0 || isNaN(data17)){const err39 = {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 = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid5 = _errs61 === errors;if(_valid5){valid17 = true;passing5 = 0;}const _errs63 = errors;if(errors === _errs63){if(Array.isArray(data17)){var valid18 = true;const len5 = data17.length;for(let i3=0; i3=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var valid18 = _errs65 === errors;if(!valid18){break;}}}else {const err42 = {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 = [err42];}else {vErrors.push(err42);}errors++;}}var _valid5 = _errs63 === errors;if(_valid5 && valid17){valid17 = false;passing5 = [passing5, 1];}else {if(_valid5){valid17 = true;passing5 = 1;}}if(!valid17){const err43 = {instancePath:instancePath+"/" + i0+"/2/pitches/" + i1+"/devoice",schemaPath:"#/items/oneOf/1/items/2/properties/pitches/items/properties/devoice/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var valid14 = _errs59 === errors;}else {var valid14 = true;}if(valid14){if(data13.tags !== undefined){let data19 = data13.tags;const _errs67 = errors;if(errors === _errs67){if(Array.isArray(data19)){var valid19 = true;const len6 = data19.length;for(let i4=0; i4 3){const err49 = {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 = [err49];}else {vErrors.push(err49);}errors++;}else {if(data0.length < 3){const err50 = {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 = [err50];}else {vErrors.push(err50);}errors++;}else {const len7 = data0.length;if(len7 > 1){const _errs72 = errors;if("ipa" !== data0[1]){const err51 = {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 = [err51];}else {vErrors.push(err51);}errors++;}var valid20 = _errs72 === errors;}if(valid20){if(len7 > 2){let data22 = data0[2];const _errs73 = errors;if(errors === _errs73){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){let missing5;if(((data22.reading === undefined) && (missing5 = "reading")) || ((data22.transcriptions === undefined) && (missing5 = "transcriptions"))){const err52 = {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 = [err52];}else {vErrors.push(err52);}errors++;}else {const _errs75 = errors;for(const key5 in data22){if(!((key5 === "reading") || (key5 === "transcriptions"))){const err53 = {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 = [err53];}else {vErrors.push(err53);}errors++;break;}}if(_errs75 === errors){if(data22.reading !== undefined){const _errs76 = errors;if(typeof data22.reading !== "string"){const err54 = {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 = [err54];}else {vErrors.push(err54);}errors++;}var valid21 = _errs76 === errors;}else {var valid21 = true;}if(valid21){if(data22.transcriptions !== undefined){let data24 = data22.transcriptions;const _errs78 = errors;if(errors === _errs78){if(Array.isArray(data24)){var valid22 = true;const len8 = data24.length;for(let i5=0; i5 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 _errs89 = 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 valid25 = _errs89 === errors;}if(valid25){if(len11 > 1){let data30 = data0[1];const _errs91 = 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 valid25 = _errs91 === 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","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"],"properties":{"enable":{"type":"boolean","default":true},"language":{"type":"string","default":"ja"},"resultOutputMode":{"type":"string","enum":["group","merge","split"],"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},"glossaryLayoutMode":{"type":"string","enum":["default","compact"],"default":"default"},"mainDictionary":{"type":"string"},"popupTheme":{"type":"string","enum":["light","dark","browser","site"],"default":"site"},"popupOuterTheme":{"type":"string","enum":["light","dark","browser","site"],"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}}},"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","sources"],"properties":{"enabled":{"type":"boolean","default":true},"volume":{"type":"number","minimum":0,"maximum":100,"default":100},"autoPlay":{"type":"boolean","default":false},"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":[]}}},"scanning":{"type":"object","required":["inputs","preventMiddleMouse","touchInputEnabled","pointerEventsEnabled","selectText","alphanumeric","autoHideResults","delay","hideDelay","length","deepDomScan","scanAltText","popupNestingMaxDepth","enablePopupSearch","enableOnPopupExpressions","enableOnSearchPage","enableSearchTags","layoutAwareScan","matchTypePrefix","hidePopupOnCursorExit","hidePopupOnCursorExitDelay","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":true,"scanOnPenReleaseHover":false,"scanOnPenPress":true,"scanOnPenRelease":false,"preventTouchScrolling":false,"preventPenScrolling":false}},{"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":true,"scanOnPenReleaseHover":false,"scanOnPenPress":true,"scanOnPenRelease":false,"preventTouchScrolling":true,"preventPenScrolling":true}}],"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"],"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":true},"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}}}}}},"preventMiddleMouse":{"type":"object","required":["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}}},"touchInputEnabled":{"type":"boolean","default":true},"pointerEventsEnabled":{"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},"scanAltText":{"type":"boolean","default":true},"popupNestingMaxDepth":{"type":"integer","minimum":0,"default":0},"enablePopupSearch":{"type":"boolean","default":false},"enableOnPopupExpressions":{"type":"boolean","default":false},"enableOnSearchPage":{"type":"boolean","default":true},"enableSearchTags":{"type":"boolean","default":false},"layoutAwareScan":{"type":"boolean","default":false},"matchTypePrefix":{"type":"boolean","default":false},"hidePopupOnCursorExit":{"type":"boolean","default":false},"hidePopupOnCursorExitDelay":{"type":"number","minimum":0,"default":0},"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","priority","enabled","allowSecondarySearches","definitionsCollapsible","partsOfSpeechFilter","useDeinflections"],"properties":{"name":{"type":"string","default":""},"alias":{"type":"string","default":""},"priority":{"type":"number","default":0},"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","terms","kanji","duplicateScope","duplicateScopeCheckAllModels","checkForDuplicates","fieldTemplates","suspendNewCards","displayTags","noteGuiMode","apiKey","downloadTimeout"],"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}}},"terms":{"type":"object","required":["deck","model","fields"],"properties":{"deck":{"type":"string","default":""},"model":{"type":"string","default":""},"fields":{"type":"object","additionalProperties":{"type":"string","default":""}}}},"kanji":{"type":"object","required":["deck","model","fields"],"properties":{"deck":{"type":"string","default":""},"model":{"type":"string","default":""},"fields":{"type":"object","additionalProperties":{"type":"string","default":""}}}},"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":"prevent"},"fieldTemplates":{"type":["string","null"],"default":null},"suspendNewCards":{"type":"boolean","default":false},"displayTags":{"type":"string","enum":["never","always","non-standard"],"default":"never"},"noteGuiMode":{"type":"string","enum":["browse","edit"],"default":"browse"},"apiKey":{"type":"string","default":""},"downloadTimeout":{"type":"number","default":0,"minimum":0}}},"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":"addNoteKanji","argument":"","key":"KeyK","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"addNoteTermKanji","argument":"","key":"KeyE","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"addNoteTermKana","argument":"","key":"KeyR","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"playAudio","argument":"","key":"KeyP","modifiers":["alt"],"scopes":["popup","search"],"enabled":true},{"action":"viewNotes","argument":"","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"],"properties":{"database":{"type":"object","required":["prefixWildcardsSupported"],"properties":{"prefixWildcardsSupported":{"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=", 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.glossaryLayoutMode !== undefined){let data37 = data11.glossaryLayoutMode;const _errs75 = errors;if(typeof data37 !== "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(!((data37 === "default") || (data37 === "compact"))){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 = _errs75 === errors;}else {var valid8 = true;}if(valid8){if(data11.mainDictionary !== undefined){const _errs77 = 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 = _errs77 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupTheme !== undefined){let data39 = data11.popupTheme;const _errs79 = errors;if(typeof data39 !== "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(!((((data39 === "light") || (data39 === "dark")) || (data39 === "browser")) || (data39 === "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 = _errs79 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupOuterTheme !== undefined){let data40 = data11.popupOuterTheme;const _errs81 = errors;if(typeof data40 !== "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(!((((data40 === "light") || (data40 === "dark")) || (data40 === "browser")) || (data40 === "site"))){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 = _errs81 === errors;}else {var valid8 = true;}if(valid8){if(data11.customPopupCss !== undefined){const _errs83 = 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 = _errs83 === errors;}else {var valid8 = true;}if(valid8){if(data11.customPopupOuterCss !== undefined){const _errs85 = 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 = _errs85 === errors;}else {var valid8 = true;}if(valid8){if(data11.enableWanakana !== undefined){const _errs87 = 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 = _errs87 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentDownstepNotation !== undefined){const _errs89 = 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 = _errs89 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentPositionNotation !== undefined){const _errs91 = 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 = _errs91 === errors;}else {var valid8 = true;}if(valid8){if(data11.showPitchAccentGraph !== undefined){const _errs93 = 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 = _errs93 === errors;}else {var valid8 = true;}if(valid8){if(data11.showIframePopupsInRootFrame !== undefined){const _errs95 = 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 = _errs95 === errors;}else {var valid8 = true;}if(valid8){if(data11.useSecurePopupFrameUrl !== undefined){const _errs97 = 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 = _errs97 === errors;}else {var valid8 = true;}if(valid8){if(data11.usePopupShadowDom !== undefined){const _errs99 = 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 = _errs99 === errors;}else {var valid8 = true;}if(valid8){if(data11.usePopupWindow !== undefined){const _errs101 = 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 = _errs101 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupCurrentIndicatorMode !== undefined){let data51 = data11.popupCurrentIndicatorMode;const _errs103 = errors;if(typeof data51 !== "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(!(((((((data51 === "none") || (data51 === "asterisk")) || (data51 === "triangle")) || (data51 === "bar-left")) || (data51 === "bar-right")) || (data51 === "dot-left")) || (data51 === "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 = _errs103 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupActionBarVisibility !== undefined){let data52 = data11.popupActionBarVisibility;const _errs105 = errors;if(typeof data52 !== "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(!((data52 === "auto") || (data52 === "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 = _errs105 === errors;}else {var valid8 = true;}if(valid8){if(data11.popupActionBarLocation !== undefined){let data53 = data11.popupActionBarLocation;const _errs107 = errors;if(typeof data53 !== "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(!((((data53 === "left") || (data53 === "right")) || (data53 === "top")) || (data53 === "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 = _errs107 === errors;}else {var valid8 = true;}if(valid8){if(data11.frequencyDisplayMode !== undefined){let data54 = data11.frequencyDisplayMode;const _errs109 = errors;if(typeof data54 !== "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(!((((((data54 === "tags") || (data54 === "tags-grouped")) || (data54 === "split-tags")) || (data54 === "split-tags-grouped")) || (data54 === "inline-list")) || (data54 === "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 = _errs109 === errors;}else {var valid8 = true;}if(valid8){if(data11.termDisplayMode !== undefined){let data55 = data11.termDisplayMode;const _errs111 = errors;if(typeof data55 !== "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(!((((data55 === "ruby") || (data55 === "ruby-and-reading")) || (data55 === "term-and-reading")) || (data55 === "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 = _errs111 === errors;}else {var valid8 = true;}if(valid8){if(data11.sortFrequencyDictionary !== undefined){let data56 = data11.sortFrequencyDictionary;const _errs113 = errors;if((typeof data56 !== "string") && (data56 !== 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 = _errs113 === errors;}else {var valid8 = true;}if(valid8){if(data11.sortFrequencyDictionaryOrder !== undefined){let data57 = data11.sortFrequencyDictionaryOrder;const _errs115 = errors;if(typeof data57 !== "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(!((data57 === "ascending") || (data57 === "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 = _errs115 === errors;}else {var valid8 = true;}if(valid8){if(data11.stickySearchHeader !== undefined){const _errs117 = 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 = _errs117 === 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 data59 = data10.popupWindow;const _errs119 = errors;if(errors === _errs119){if(data59 && typeof data59 == "object" && !Array.isArray(data59)){let missing6;if(((((((((data59.width === undefined) && (missing6 = "width")) || ((data59.height === undefined) && (missing6 = "height"))) || ((data59.left === undefined) && (missing6 = "left"))) || ((data59.top === undefined) && (missing6 = "top"))) || ((data59.useLeft === undefined) && (missing6 = "useLeft"))) || ((data59.useTop === undefined) && (missing6 = "useTop"))) || ((data59.windowType === undefined) && (missing6 = "windowType"))) || ((data59.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(data59.width !== undefined){let data60 = data59.width;const _errs121 = errors;if(!(((typeof data60 == "number") && (!(data60 % 1) && !isNaN(data60))) && (isFinite(data60)))){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 === _errs121){if((typeof data60 == "number") && (isFinite(data60))){if(data60 < 0 || isNaN(data60)){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 = _errs121 === errors;}else {var valid9 = true;}if(valid9){if(data59.height !== undefined){let data61 = data59.height;const _errs123 = errors;if(!(((typeof data61 == "number") && (!(data61 % 1) && !isNaN(data61))) && (isFinite(data61)))){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 === _errs123){if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 0 || isNaN(data61)){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 = _errs123 === errors;}else {var valid9 = true;}if(valid9){if(data59.left !== undefined){let data62 = data59.left;const _errs125 = errors;if(!(((typeof data62 == "number") && (!(data62 % 1) && !isNaN(data62))) && (isFinite(data62)))){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 = _errs125 === errors;}else {var valid9 = true;}if(valid9){if(data59.top !== undefined){let data63 = data59.top;const _errs127 = errors;if(!(((typeof data63 == "number") && (!(data63 % 1) && !isNaN(data63))) && (isFinite(data63)))){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 = _errs127 === errors;}else {var valid9 = true;}if(valid9){if(data59.useLeft !== undefined){const _errs129 = errors;if(typeof data59.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 = _errs129 === errors;}else {var valid9 = true;}if(valid9){if(data59.useTop !== undefined){const _errs131 = errors;if(typeof data59.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 = _errs131 === errors;}else {var valid9 = true;}if(valid9){if(data59.windowType !== undefined){let data66 = data59.windowType;const _errs133 = errors;if(typeof data66 !== "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(!((data66 === "normal") || (data66 === "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 = _errs133 === errors;}else {var valid9 = true;}if(valid9){if(data59.windowState !== undefined){let data67 = data59.windowState;const _errs135 = errors;if(typeof data67 !== "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(!(((data67 === "normal") || (data67 === "maximized")) || (data67 === "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 = _errs135 === 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 = _errs119 === errors;}else {var valid7 = true;}if(valid7){if(data10.audio !== undefined){let data68 = data10.audio;const _errs137 = errors;if(errors === _errs137){if(data68 && typeof data68 == "object" && !Array.isArray(data68)){let missing7;if(((((data68.enabled === undefined) && (missing7 = "enabled")) || ((data68.volume === undefined) && (missing7 = "volume"))) || ((data68.autoPlay === undefined) && (missing7 = "autoPlay"))) || ((data68.sources === undefined) && (missing7 = "sources"))){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(data68.enabled !== undefined){const _errs139 = errors;if(typeof data68.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 = _errs139 === errors;}else {var valid10 = true;}if(valid10){if(data68.volume !== undefined){let data70 = data68.volume;const _errs141 = errors;if(errors === _errs141){if((typeof data70 == "number") && (isFinite(data70))){if(data70 > 100 || isNaN(data70)){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(data70 < 0 || isNaN(data70)){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 = _errs141 === errors;}else {var valid10 = true;}if(valid10){if(data68.autoPlay !== undefined){const _errs143 = errors;if(typeof data68.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 = _errs143 === errors;}else {var valid10 = true;}if(valid10){if(data68.sources !== undefined){let data72 = data68.sources;const _errs145 = errors;if(errors === _errs145){if(Array.isArray(data72)){var valid11 = true;const len3 = data72.length;for(let i3=0; i3=", 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 = _errs224 === errors;}else {var valid13 = true;}if(valid13){if(data77.hideDelay !== undefined){let data112 = data77.hideDelay;const _errs226 = errors;if(errors === _errs226){if((typeof data112 == "number") && (isFinite(data112))){if(data112 < 0 || isNaN(data112)){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 = _errs226 === errors;}else {var valid13 = true;}if(valid13){if(data77.length !== undefined){let data113 = data77.length;const _errs228 = errors;if(!(((typeof data113 == "number") && (!(data113 % 1) && !isNaN(data113))) && (isFinite(data113)))){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 === _errs228){if((typeof data113 == "number") && (isFinite(data113))){if(data113 < 1 || isNaN(data113)){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 = _errs228 === errors;}else {var valid13 = true;}if(valid13){if(data77.deepDomScan !== undefined){const _errs230 = errors;if(typeof data77.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 = _errs230 === errors;}else {var valid13 = true;}if(valid13){if(data77.scanAltText !== undefined){const _errs232 = errors;if(typeof data77.scanAltText !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/scanning/scanAltText",schemaPath:"#/properties/profiles/items/properties/options/properties/scanning/properties/scanAltText/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid13 = _errs232 === errors;}else {var valid13 = true;}if(valid13){if(data77.popupNestingMaxDepth !== undefined){let data116 = data77.popupNestingMaxDepth;const _errs234 = errors;if(!(((typeof data116 == "number") && (!(data116 % 1) && !isNaN(data116))) && (isFinite(data116)))){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 === _errs234){if((typeof data116 == "number") && (isFinite(data116))){if(data116 < 0 || isNaN(data116)){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 = _errs234 === errors;}else {var valid13 = true;}if(valid13){if(data77.enablePopupSearch !== undefined){const _errs236 = errors;if(typeof data77.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 = _errs236 === errors;}else {var valid13 = true;}if(valid13){if(data77.enableOnPopupExpressions !== undefined){const _errs238 = errors;if(typeof data77.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 = _errs238 === errors;}else {var valid13 = true;}if(valid13){if(data77.enableOnSearchPage !== undefined){const _errs240 = errors;if(typeof data77.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 = _errs240 === errors;}else {var valid13 = true;}if(valid13){if(data77.enableSearchTags !== undefined){const _errs242 = errors;if(typeof data77.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 = _errs242 === errors;}else {var valid13 = true;}if(valid13){if(data77.layoutAwareScan !== undefined){const _errs244 = errors;if(typeof data77.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 = _errs244 === errors;}else {var valid13 = true;}if(valid13){if(data77.matchTypePrefix !== undefined){const _errs246 = errors;if(typeof data77.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 = _errs246 === errors;}else {var valid13 = true;}if(valid13){if(data77.hidePopupOnCursorExit !== undefined){const _errs248 = errors;if(typeof data77.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 = _errs248 === errors;}else {var valid13 = true;}if(valid13){if(data77.hidePopupOnCursorExitDelay !== undefined){let data124 = data77.hidePopupOnCursorExitDelay;const _errs250 = errors;if(errors === _errs250){if((typeof data124 == "number") && (isFinite(data124))){if(data124 < 0 || isNaN(data124)){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 = _errs250 === errors;}else {var valid13 = true;}if(valid13){if(data77.normalizeCssZoom !== undefined){const _errs252 = errors;if(typeof data77.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 = _errs252 === errors;}else {var valid13 = true;}if(valid13){if(data77.scanWithoutMousemove !== undefined){const _errs254 = errors;if(typeof data77.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 = _errs254 === errors;}else {var valid13 = true;}if(valid13){if(data77.scanResolution !== undefined){let data127 = data77.scanResolution;const _errs256 = errors;if(typeof data127 !== "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(!((data127 === "character") || (data127 === "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 = _errs256 === 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 = _errs156 === errors;}else {var valid7 = true;}if(valid7){if(data10.translation !== undefined){let data128 = data10.translation;const _errs258 = errors;if(errors === _errs258){if(data128 && typeof data128 == "object" && !Array.isArray(data128)){let missing14;if(((data128.textReplacements === undefined) && (missing14 = "textReplacements")) || ((data128.searchResolution === undefined) && (missing14 = "searchResolution"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/translation",schemaPath:"#/properties/profiles/items/properties/options/properties/translation/required",keyword:"required",params:{missingProperty: missing14},message:"must have required property '"+missing14+"'"}];return false;}else {if(data128.searchResolution !== undefined){let data129 = data128.searchResolution;const _errs260 = errors;if(typeof data129 !== "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(!((data129 === "letter") || (data129 === "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 valid19 = _errs260 === errors;}else {var valid19 = true;}if(valid19){if(data128.textReplacements !== undefined){let data130 = data128.textReplacements;const _errs262 = errors;if(errors === _errs262){if(data130 && typeof data130 == "object" && !Array.isArray(data130)){let missing15;if(((data130.searchOriginal === undefined) && (missing15 = "searchOriginal")) || ((data130.groups === undefined) && (missing15 = "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: missing15},message:"must have required property '"+missing15+"'"}];return false;}else {if(data130.searchOriginal !== undefined){const _errs264 = errors;if(typeof data130.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 valid20 = _errs264 === errors;}else {var valid20 = true;}if(valid20){if(data130.groups !== undefined){let data132 = data130.groups;const _errs266 = errors;if(errors === _errs266){if(Array.isArray(data132)){var valid21 = true;const len5 = data132.length;for(let i5=0; i5 100 || isNaN(data161)){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(data161 < 0 || isNaN(data161)){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 valid29 = _errs324 === errors;}else {var valid29 = 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 valid27 = _errs320 === errors;}else {var valid27 = true;}if(valid27){if(data154.terms !== undefined){let data162 = data154.terms;const _errs326 = errors;if(errors === _errs326){if(data162 && typeof data162 == "object" && !Array.isArray(data162)){let missing21;if((((data162.deck === undefined) && (missing21 = "deck")) || ((data162.model === undefined) && (missing21 = "model"))) || ((data162.fields === undefined) && (missing21 = "fields"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/terms",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/terms/required",keyword:"required",params:{missingProperty: missing21},message:"must have required property '"+missing21+"'"}];return false;}else {if(data162.deck !== undefined){const _errs328 = errors;if(typeof data162.deck !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/terms/deck",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/terms/properties/deck/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid30 = _errs328 === errors;}else {var valid30 = true;}if(valid30){if(data162.model !== undefined){const _errs330 = errors;if(typeof data162.model !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/terms/model",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/terms/properties/model/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid30 = _errs330 === errors;}else {var valid30 = true;}if(valid30){if(data162.fields !== undefined){let data165 = data162.fields;const _errs332 = errors;if(errors === _errs332){if(data165 && typeof data165 == "object" && !Array.isArray(data165)){for(const key1 in data165){const _errs335 = errors;if(typeof data165[key1] !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/terms/fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/terms/properties/fields/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid31 = _errs335 === errors;if(!valid31){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/terms/fields",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/terms/properties/fields/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid30 = _errs332 === errors;}else {var valid30 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/terms",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/terms/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid27 = _errs326 === errors;}else {var valid27 = true;}if(valid27){if(data154.kanji !== undefined){let data167 = data154.kanji;const _errs337 = errors;if(errors === _errs337){if(data167 && typeof data167 == "object" && !Array.isArray(data167)){let missing22;if((((data167.deck === undefined) && (missing22 = "deck")) || ((data167.model === undefined) && (missing22 = "model"))) || ((data167.fields === undefined) && (missing22 = "fields"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/kanji",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/kanji/required",keyword:"required",params:{missingProperty: missing22},message:"must have required property '"+missing22+"'"}];return false;}else {if(data167.deck !== undefined){const _errs339 = errors;if(typeof data167.deck !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/kanji/deck",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/kanji/properties/deck/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid32 = _errs339 === errors;}else {var valid32 = true;}if(valid32){if(data167.model !== undefined){const _errs341 = errors;if(typeof data167.model !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/kanji/model",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/kanji/properties/model/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid32 = _errs341 === errors;}else {var valid32 = true;}if(valid32){if(data167.fields !== undefined){let data170 = data167.fields;const _errs343 = errors;if(errors === _errs343){if(data170 && typeof data170 == "object" && !Array.isArray(data170)){for(const key2 in data170){const _errs346 = errors;if(typeof data170[key2] !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/kanji/fields/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/kanji/properties/fields/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid33 = _errs346 === errors;if(!valid33){break;}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/kanji/fields",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/kanji/properties/fields/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid32 = _errs343 === errors;}else {var valid32 = true;}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/kanji",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/kanji/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid27 = _errs337 === errors;}else {var valid27 = true;}if(valid27){if(data154.duplicateScope !== undefined){let data172 = data154.duplicateScope;const _errs348 = errors;if(typeof data172 !== "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(!(((data172 === "collection") || (data172 === "deck")) || (data172 === "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 valid27 = _errs348 === errors;}else {var valid27 = true;}if(valid27){if(data154.duplicateScopeCheckAllModels !== undefined){const _errs350 = errors;if(typeof data154.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 valid27 = _errs350 === errors;}else {var valid27 = true;}if(valid27){if(data154.checkForDuplicates !== undefined){const _errs352 = errors;if(typeof data154.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 valid27 = _errs352 === errors;}else {var valid27 = true;}if(valid27){if(data154.duplicateBehavior !== undefined){let data175 = data154.duplicateBehavior;const _errs354 = errors;if(typeof data175 !== "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(!(((data175 === "prevent") || (data175 === "overwrite")) || (data175 === "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 valid27 = _errs354 === errors;}else {var valid27 = true;}if(valid27){if(data154.fieldTemplates !== undefined){let data176 = data154.fieldTemplates;const _errs356 = errors;if((typeof data176 !== "string") && (data176 !== 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 valid27 = _errs356 === errors;}else {var valid27 = true;}if(valid27){if(data154.suspendNewCards !== undefined){const _errs358 = errors;if(typeof data154.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 valid27 = _errs358 === errors;}else {var valid27 = true;}if(valid27){if(data154.displayTags !== undefined){let data178 = data154.displayTags;const _errs360 = errors;if(typeof data178 !== "string"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/displayTags",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/displayTags/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data178 === "never") || (data178 === "always")) || (data178 === "non-standard"))){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/anki/displayTags",schemaPath:"#/properties/profiles/items/properties/options/properties/anki/properties/displayTags/enum",keyword:"enum",params:{allowedValues: schema33.properties.profiles.items.properties.options.properties.anki.properties.displayTags.enum},message:"must be equal to one of the allowed values"}];return false;}var valid27 = _errs360 === errors;}else {var valid27 = true;}if(valid27){if(data154.noteGuiMode !== undefined){let data179 = data154.noteGuiMode;const _errs362 = errors;if(typeof data179 !== "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(!((data179 === "browse") || (data179 === "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 valid27 = _errs362 === errors;}else {var valid27 = true;}if(valid27){if(data154.apiKey !== undefined){const _errs364 = errors;if(typeof data154.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 valid27 = _errs364 === errors;}else {var valid27 = true;}if(valid27){if(data154.downloadTimeout !== undefined){let data181 = data154.downloadTimeout;const _errs366 = errors;if(errors === _errs366){if((typeof data181 == "number") && (isFinite(data181))){if(data181 < 0 || isNaN(data181)){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 valid27 = _errs366 === errors;}else {var valid27 = 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 = _errs310 === errors;}else {var valid7 = true;}if(valid7){if(data10.sentenceParsing !== undefined){let data182 = data10.sentenceParsing;const _errs368 = errors;if(errors === _errs368){if(data182 && typeof data182 == "object" && !Array.isArray(data182)){let missing23;if((((data182.scanExtent === undefined) && (missing23 = "scanExtent")) || ((data182.terminationCharacterMode === undefined) && (missing23 = "terminationCharacterMode"))) || ((data182.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(data182.scanExtent !== undefined){let data183 = data182.scanExtent;const _errs370 = errors;if(!(((typeof data183 == "number") && (!(data183 % 1) && !isNaN(data183))) && (isFinite(data183)))){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 === _errs370){if((typeof data183 == "number") && (isFinite(data183))){if(data183 < 0 || isNaN(data183)){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 valid34 = _errs370 === errors;}else {var valid34 = true;}if(valid34){if(data182.terminationCharacterMode !== undefined){let data184 = data182.terminationCharacterMode;const _errs372 = errors;if(typeof data184 !== "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(!((((data184 === "custom") || (data184 === "custom-no-newlines")) || (data184 === "newlines")) || (data184 === "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 valid34 = _errs372 === errors;}else {var valid34 = true;}if(valid34){if(data182.terminationCharacters !== undefined){let data185 = data182.terminationCharacters;const _errs374 = errors;if(errors === _errs374){if(Array.isArray(data185)){var valid35 = true;const len9 = data185.length;for(let i9=0; i9 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9+"/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(data188) < 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9+"/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/" + i9+"/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 valid36 = _errs380 === errors;}else {var valid36 = true;}if(valid36){if(data186.character2 !== undefined){let data189 = data186.character2;const _errs382 = errors;if((typeof data189 !== "string") && (data189 !== null)){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9+"/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 === _errs382){if(typeof data189 === "string"){if(func2(data189) > 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9+"/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(data189) < 1){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9+"/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 valid36 = _errs382 === errors;}else {var valid36 = true;}if(valid36){if(data186.includeCharacterAtStart !== undefined){const _errs384 = errors;if(typeof data186.includeCharacterAtStart !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9+"/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 valid36 = _errs384 === errors;}else {var valid36 = true;}if(valid36){if(data186.includeCharacterAtEnd !== undefined){const _errs386 = errors;if(typeof data186.includeCharacterAtEnd !== "boolean"){validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9+"/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 valid36 = _errs386 === errors;}else {var valid36 = true;}}}}}}}else {validate21.errors = [{instancePath:instancePath+"/profiles/" + i0+"/options/sentenceParsing/terminationCharacters/" + i9,schemaPath:"#/properties/profiles/items/properties/options/properties/sentenceParsing/properties/terminationCharacters/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid35 = _errs376 === errors;if(!valid35){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 valid34 = _errs374 === errors;}else {var valid34 = 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 = _errs368 === errors;}else {var valid7 = true;}if(valid7){if(data10.inputs !== undefined){let data192 = data10.inputs;const _errs388 = errors;if(errors === _errs388){if(data192 && typeof data192 == "object" && !Array.isArray(data192)){let missing25;if((data192.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(data192.hotkeys !== undefined){let data193 = data192.hotkeys;const _errs390 = errors;if(errors === _errs390){if(Array.isArray(data193)){var valid38 = true;const len10 = data193.length;for(let i10=0; i10=", limit: 0},message:"must be >= 0"}];return false;}}}var valid42 = _errs418 === errors;}else {var valid42 = 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 = _errs410 === errors;}else {var valid7 = true;}if(valid7){if(data10.accessibility !== undefined){let data208 = data10.accessibility;const _errs420 = errors;if(errors === _errs420){if(data208 && typeof data208 == "object" && !Array.isArray(data208)){let missing28;if((data208.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(data208.forceGoogleDocsHtmlRendering !== undefined){if(typeof data208.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 = _errs420 === 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 data210 = data.profileCurrent;const _errs424 = errors;if(!(((typeof data210 == "number") && (!(data210 % 1) && !isNaN(data210))) && (isFinite(data210)))){validate21.errors = [{instancePath:instancePath+"/profileCurrent",schemaPath:"#/properties/profileCurrent/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];return false;}if(errors === _errs424){if((typeof data210 == "number") && (isFinite(data210))){if(data210 < 0 || isNaN(data210)){validate21.errors = [{instancePath:instancePath+"/profileCurrent",schemaPath:"#/properties/profileCurrent/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs424 === errors;}else {var valid0 = true;}if(valid0){if(data.global !== undefined){let data211 = data.global;const _errs426 = errors;if(errors === _errs426){if(data211 && typeof data211 == "object" && !Array.isArray(data211)){let missing29;if((data211.database === undefined) && (missing29 = "database")){validate21.errors = [{instancePath:instancePath+"/global",schemaPath:"#/properties/global/required",keyword:"required",params:{missingProperty: missing29},message:"must have required property '"+missing29+"'"}];return false;}else {if(data211.database !== undefined){let data212 = data211.database;const _errs428 = errors;if(errors === _errs428){if(data212 && typeof data212 == "object" && !Array.isArray(data212)){let missing30;if((data212.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(data212.prefixWildcardsSupported !== undefined){if(typeof data212.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;}}}}}else {validate21.errors = [{instancePath:instancePath+"/global",schemaPath:"#/properties/global/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs426 === 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":{"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}}}},"kanji":{"type":"array","items":{"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}}}},"frequency":{"type":"array","items":{"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}}}},"grammar":{"type":"array","items":{"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}}}},"pronunciation":{"type":"array","items":{"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}}}}},"required":["terms","kanji","frequency","grammar"],"additionalProperties":false}}};const pattern3 = 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(pattern3.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