forked from projectmoon/tenebrous-dicebot
6 lines
11 KiB
JavaScript
6 lines
11 KiB
JavaScript
|
/*
|
||
|
* This file was automatically generated.
|
||
|
* DO NOT MODIFY BY HAND.
|
||
|
* Run `yarn special-lint-fix` to update
|
||
|
*/
|
||
|
const s=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function t(s,{instancePath:e="",parentData:n,parentDataProperty:l,rootData:o=s}={}){let i=null,r=0;if(0===r){if(!s||"object"!=typeof s||Array.isArray(s))return t.errors=[{params:{type:"object"}}],!1;{let e;if(void 0===s.content&&(e="content"))return t.errors=[{params:{missingProperty:e}}],!1;{const e=r;for(const e in s)if("content"!==e&&"name"!==e&&"type"!==e)return t.errors=[{params:{additionalProperty:e}}],!1;if(e===r){if(void 0!==s.content){let e=s.content;const n=r,l=r;let o=!1,f=null;const m=r;if(r==r)if(e&&"object"==typeof e&&!Array.isArray(e))if(Object.keys(e).length<1){const s={params:{limit:1}};null===i?i=[s]:i.push(s),r++}else for(const s in e){let t=e[s];const n=r;if(r===n)if(t&&"object"==typeof t&&!Array.isArray(t)){let s;if(void 0===t.id&&(s="id")){const t={params:{missingProperty:s}};null===i?i=[t]:i.push(t),r++}else{const s=r;for(const s in t)if("buildMeta"!==s&&"exports"!==s&&"id"!==s){const t={params:{additionalProperty:s}};null===i?i=[t]:i.push(t),r++;break}if(s===r){if(void 0!==t.buildMeta){let s=t.buildMeta;const e=r;if(!s||"object"!=typeof s||Array.isArray(s)){const s={params:{type:"object"}};null===i?i=[s]:i.push(s),r++}var a=e===r}else a=!0;if(a){if(void 0!==t.exports){let s=t.exports;const e=r,n=r;let l=!1;const o=r;if(r===o)if(Array.isArray(s)){const t=s.length;for(let e=0;e<t;e++){let t=s[e];const n=r;if(r===n)if("string"==typeof t){if(t.length<1){const s={params:{}};null===i?i=[s]:i.push(s),r++}}else{const s={params:{type:"string"}};null===i?i=[s]:i.push(s),r++}if(n!==r)break}}else{const s={params:{type:"array"}};null===i?i=[s]:i.push(s),r++}var p=o===r;if(l=l||p,!l){const t=r;if(!0!==s){const s={params:{}};null===i?i=[s]:i.push(s),r++}p=t===r,l=l||p}if(l)r=n,null!==i&&(n?i.length=n:i=null);else{const s={params:{}};null===i?i=[s]:i.push(s),r++}a=e===r}else a=!0;if(a)if(void 0!==t.id){let s=t.id;const e=r,n=r;let l=!1;const o=r;if("number"!=typeof s||!isFinite(s)){const s={params:{type:"number"}};null===i?i=[s]:i.push(s),r++}var u=o===r;if(l=l||u,!l){const t=r;if(r===t)if("string"==typeof s){if(s.length<1){const s={params:{}};null===i?i=[s]:i.push(s),r++}}else{const s={params:{type:"string"}};null===i?i=[s]:i.push(s),r++}u=t===r,l=l||u}if(l)r=n,null!==i&&(n?i.length=n:i=null);else{const s={params:{}};null===i?i=[s]:i.push(s),r++}a=e===r}else a=!0}}}}else{const s={params:{type:"object"}};null===i?i=[s]:i.push(s),r++}if(n!==r)break}else{const s={params:{type:"object"}};null===i?i=[s]:i.push(s),r++}if(m===r&&(o=!0,f=0),!o){const s={params:{passingSchemas:f}};return null===i?i=[s]:i.push(s),r++,t.errors=i,!1}r=l,null!==i&&(l?i.length=l:i=null);var c=n===r}else c=!0;if(c){if(void 0!==s.name){let e=s.name;const n=r;if(r===n){if("string"!=typeof e)return t.errors=[{params:{type:"string"}}],!1;if(e.length<1)return t.errors=[{params:{}}],!1}c=n===r}else c=!0;if(c)if(void 0!==s.type){let e=s.type;const n=r,l=r;let o=!1,a=null;const p=r;if("var"!==e&&"assign"!==e&&"this"!==e&&"window"!==e&&"global"!==e&&"commonjs"!==e&&"commonjs2"!==e&&"commonjs-module"!==e&&"amd"!==e&&"amd-require"!==e&&"umd"!==e&&"umd2"!==e&&"jsonp"!==e&&"system"!==e){const s={params:{}};null===i?i=[s]:i.push(s),r++}if(p===r&&(o=!0,a=0),!o){const s={params:{passingSchemas:a}};return null===i?i=[s]:i.push(s),r++,t.errors=i,!1}r=l,null!==i&&(l?i.length=l:i=null),c=n===r}else c=!0}}}}}return t.errors=i,0===r}function e(n,{instancePath:l="",parentData:o,parentDataProperty:i,rootData:r=n}={}){let a=null,p=0;const u=p;let c=!1;const f=p;if(p===f)if(n&&"object"==typeof n&&!Array.isArray(n)){let e;if(void 0===n.manifest&&(e="manifest")){const s={params:{missingProperty:e}};null===a?a=[s]:a.push(s),p++}else{const e=p;for(const s in n)if("context"!==s&&"extensions"!==s&&"manifest"!==s&&"name"!==s&&"scope"!==s&&"sourceType"!==s&&"type"!==s){const t={params:{additionalProperty:s}};null===a?a=[t]:a.push(t),p++;break}if(e===p){if(void 0!==n.context){let t=n.context;const e=p;if(p===e)if("string"==typeof t){if(t.includes("!")||!0!==s.test(t)){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{
|