1function e(e,t){var n;let r=!1,i={};for(let a in e){if(!(a in t)||!((n=e[a])!=null&&n.validate)||typeof e[a]?.validate!=`object`)continue;let o=t[a],s=[],c=e[a].validate;if(c.required){let n=!1;if(n=typeof c.required==`function`?c.required(e,t):c.required,n){let e;e=typeof o==`boolean`?!o:typeof o==`string`?o.length===0:typeof o==`number`?o===0:Array.isArray(o)?o.length===0:o===null,e&&s.push(`errors.field_required`)}}if(Array.isArray(c.custom)){for(let t of c.custom)if(!t.rule(o,e)){s.push(t.text);break}}i[a]=s.length?s[0]:``,r||=s.length>0}return{errors:i,status:!r}}export{e as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.