function anonymous(self,scope ) { const schema1 = scope.schema[1];const schema2 = scope.schema[2];const schema3 = scope.schema[3];const schema5 = scope.schema[4];const pattern0 = scope.pattern[0];const pattern1 = scope.pattern[1];return function validate1(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate1.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")){validate1.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: schema1.type},message:"must be object,boolean"}];return false;}if(!dynamicAnchors.meta){dynamicAnchors.meta = validate1;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.$id !== undefined){let data0 = data.$id;const _errs1 = errors;const _errs3 = errors;if(errors === _errs3){if(errors === _errs3){if(!(typeof data0 === "string")){validate1.errors = [{instancePath:instancePath+"/$id",schemaPath:"#/$defs/uriReferenceString/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}if(errors === _errs1){if(typeof data0 === "string"){if(!pattern0.test(data0)){validate1.errors = [{instancePath:instancePath+"/$id",schemaPath:"#/properties/%24id/pattern",keyword:"pattern",params:{pattern: "^[^#]*#?$"},message:"must match pattern \""+"^[^#]*#?$"+"\""}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.$schema !== undefined){const _errs5 = errors;const _errs6 = errors;if(errors === _errs6){if(errors === _errs6){if(!(typeof data.$schema === "string")){validate1.errors = [{instancePath:instancePath+"/$schema",schemaPath:"#/$defs/uriString/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.$ref !== undefined){const _errs8 = errors;const _errs9 = errors;if(errors === _errs9){if(errors === _errs9){if(!(typeof data.$ref === "string")){validate1.errors = [{instancePath:instancePath+"/$ref",schemaPath:"#/$defs/uriReferenceString/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.$anchor !== undefined){let data3 = data.$anchor;const _errs11 = errors;const _errs12 = errors;if(errors === _errs12){if(typeof data3 === "string"){if(!pattern1.test(data3)){validate1.errors = [{instancePath:instancePath+"/$anchor",schemaPath:"#/$defs/anchorString/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][-A-Za-z0-9._]*$"},message:"must match pattern \""+"^[A-Za-z_][-A-Za-z0-9._]*$"+"\""}];return false;}}else {validate1.errors = [{instancePath:instancePath+"/$anchor",schemaPath:"#/$defs/anchorString/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.$dynamicRef !== undefined){const _errs14 = errors;const _errs15 = errors;if(errors === _errs15){if(errors === _errs15){if(!(typeof data.$dynamicRef === "string")){validate1.errors = [{instancePath:instancePath+"/$dynamicRef",schemaPath:"#/$defs/uriReferenceString/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.$dynamicAnchor !== undefined){let data5 = data.$dynamicAnchor;const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(typeof data5 === "string"){if(!pattern1.test(data5)){validate1.errors = [{instancePath:instancePath+"/$dynamicAnchor",schemaPath:"#/$defs/anchorString/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][-A-Za-z0-9._]*$"},message:"must match pattern \""+"^[A-Za-z_][-A-Za-z0-9._]*$"+"\""}];return false;}}else {validate1.errors = [{instancePath:instancePath+"/$dynamicAnchor",schemaPath:"#/$defs/anchorString/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.$vocabulary !== undefined){let data6 = data.$vocabulary;const _errs20 = errors;if(errors === _errs20){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){for(const key0 in data6){const _errs22 = errors;const _errs23 = errors;if(errors === _errs23){if(errors === _errs23){if(!(typeof key0 === "string")){const err0 = {instancePath:instancePath+"/$vocabulary",schemaPath:"#/$defs/uriString/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key0};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var valid7 = _errs22 === errors;if(!valid7){const err1 = {instancePath:instancePath+"/$vocabulary",schemaPath:"#/properties/%24vocabulary/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate1.errors = vErrors;return false;break;}}if(valid7){for(const key1 in data6){const _errs26 = errors;if(typeof data6[key1] !== "boolean"){validate1.errors = [{instancePath:instancePath+"/$vocabulary/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/%24vocabulary/additionalProperties/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid9 = _errs26 === errors;if(!valid9){break;}}}}else {validate1.errors = [{instancePath:instancePath+"/$vocabulary",schemaPath:"#/properties/%24vocabulary/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.$comment !== undefined){const _errs28 = errors;if(typeof data.$comment !== "string"){validate1.errors = [{instancePath:instancePath+"/$comment",schemaPath:"#/properties/%24comment/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs28 === errors;}else {var valid0 = true;}if(valid0){if(data.$defs !== undefined){let data9 = data.$defs;const _errs30 = errors;if(errors === _errs30){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){let data10 = data9[key2];const _errs33 = errors;let _v0 = dynamicAnchors.meta;if(_v0){if(!(_v0(data10, {instancePath:instancePath+"/$defs/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data9,parentDataProperty:key2,rootData,dynamicAnchors}))){vErrors = vErrors === null ? _v0.errors : vErrors.concat(_v0.errors);errors = vErrors.length;}else {var props0 = _v0.evaluated.props;var items0 = _v0.evaluated.items;}}else {if(!(validate1(data10, {instancePath:instancePath+"/$defs/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data9,parentDataProperty:key2,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate1.errors : vErrors.concat(validate1.errors);errors = vErrors.length;}else {var props1 = validate1.evaluated.props;if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}var items1 = validate1.evaluated.items;if(items0 !== true && items1 !== undefined){items0 = items1 === true ? true : items0 > items1 ? items0 : items1;}}}var valid10 = _errs33 === errors;if(!valid10){break;}}}else {validate1.errors = [{instancePath:instancePath+"/$defs",schemaPath:"#/properties/%24defs/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs30 === errors;}else {var valid0 = true;}}}}}}}}}}}validate1.errors = vErrors;return errors === 0;} }