webpack
Version:
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
7 lines • 10.3 kB
JavaScript
/* eslint-disable */
// @ts-nocheck
/*
* This file was automatically generated by "schema-utils".
* DO NOT MODIFY BY HAND.
*/
"use strict";module.exports=y,module.exports.default=y;let r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},e={enum:["stylesheet","block-contents"]},t={enum:["link","text","css-style-sheet","style"]},a=Object.prototype.hasOwnProperty,o={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},n={validate:f};function s(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return s.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let i=0;i<o;i++){let o=a,l=a,p=!1,f=null,u=a;if(n.validate(r[i],{instancePath:e+"/"+i,parentData:r,parentDataProperty:i,rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(p=!0,f=0),!p){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,s.errors=t,!1}if(a=l,t!==null&&(l?t.length=l:t=null),o!==a)break}}}return s.errors=t,a===0}let i=function(r){let e=r.length,t,a=0,o=0;for(;o<e;)a++,(t=r.charCodeAt(o++))>=55296&&t<=56319&&o<e&&(64512&(t=r.charCodeAt(o)))==56320&&o++;return a};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{let e=r.length;for(let t=0;t<e;t++){let e=r[t];if("string"!=typeof e)return l.errors=[{params:{type:"string"}}],!1;if(i(e)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function p(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let u=a;for(let e in r)if("and"!==e&&"glob"!==e&&"not"!==e&&"or"!==e)return p.errors=[{params:{additionalProperty:e}}],!1;if(u===a){if(r.and!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.and,{instancePath:e+"/and",parentData:r,parentDataProperty:"and",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null);var o=n===a}else o=!0;if(o){if(r.glob!==void 0){let n=r.glob,s=a,u=a,c=!1,d=a;if(a==a)if("string"==typeof n){if(i(n)<1){let r={params:{limit:1}};t===null?t=[r]:t.push(r),a++}}else{let r={params:{type:"string"}};t===null?t=[r]:t.push(r),a++}var f=d===a;if(!(c=c||f)){let o=a;l(n,{instancePath:e+"/glob",parentData:r,parentDataProperty:"glob",rootData})||(a=(t=t===null?l.errors:t.concat(l.errors)).length),f=o===a,c=c||f}if(!c){let r={params:{}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=u,t!==null&&(u?t.length=u:t=null),o=s===a}else o=!0;if(o){if(r.not!==void 0){let s=a,i=a,l=!1,f=null,u=a;if(n.validate(r.not,{instancePath:e+"/not",parentData:r,parentDataProperty:"not",rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=s===a}else o=!0;if(o)if(r.or!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.or,{instancePath:e+"/or",parentData:r,parentDataProperty:"or",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=n===a}else o=!0}}}}}return p.errors=t,a===0}function f(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0,a=t,o=!1,n=t;if(!(r instanceof RegExp)){let r={params:{}};e===null?e=[r]:e.push(r),t++}var i=n===t;if(!(o=o||i)){let a=t;if("string"!=typeof r){let r={params:{type:"string"}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(!(r instanceof Function)){let r={params:{}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(p(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?p.errors:e.concat(p.errors)).length),i=a===t,!(o=o||i)){let a=t;s(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?s.errors:e.concat(s.errors)).length),i=a===t,o=o||i}}}}if(!o){let r={params:{}};return e===null?e=[r]:e.push(r),t++,f.errors=e,!1}return t=a,e!==null&&(a?e.length=a:e=null),f.errors=e,t===0}function u(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,n=0;if(n===0){if(!r||"object"!=typeof r||Array.isArray(r))return u.errors=[{params:{type:"object"}}],!1;{let i=n;for(let e in r)if(!a.call(o.properties,e))return u.errors=[{params:{additionalProperty:e}}],!1;if(i===n){if(r.as!==void 0){if("string"!=typeof r.as)return u.errors=[{params:{type:"string"}}],!1;var s=n===n}else s=!0;if(s){if(r.exclude!==void 0){let a=n;f(r.exclude,{instancePath:e+"/exclude",parentData:r,parentDataProperty:"exclude",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.fetchPriority!==void 0){let e=r.fetchPriority;if("low"!==e&&"high"!==e&&"auto"!==e&&!1!==e)return u.errors=[{params:{allowedValues:o.properties.fetchPriority.enum}}],!1;s=n===n}else s=!0;if(s){if(r.include!==void 0){let a=n;f(r.include,{instancePath:e+"/include",parentData:r,parentDataProperty:"include",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.media!==void 0){if("string"!=typeof r.media)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0;if(s){if(r.prefetch!==void 0){if("boolean"!=typeof r.prefetch)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.preload!==void 0){if("boolean"!=typeof r.preload)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.test!==void 0){let a=n;f(r.test,{instancePath:e+"/test",parentData:r,parentDataProperty:"test",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s)if(r.type!==void 0){if("string"!=typeof r.type)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0}}}}}}}}}}return u.errors=t,n===0}function c(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return c.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let n=0;n<o;n++){let o=a;if(u(r[n],{instancePath:e+"/"+n,parentData:r,parentDataProperty:n,rootData})||(a=(t=t===null?u.errors:t.concat(u.errors)).length),o!==a)break}}}return c.errors=t,a===0}function d(o,{instancePath:n="",parentData,parentDataProperty,rootData=o}={}){let s=null,i=0;if(i===0){if(!o||"object"!=typeof o||Array.isArray(o))return d.errors=[{params:{type:"object"}}],!1;{let p=i;for(let e in o)if(!a.call(r.properties,e))return d.errors=[{params:{additionalProperty:e}}],!1;if(p===i){if(o.animation!==void 0){if("boolean"!=typeof o.animation)return d.errors=[{params:{type:"boolean"}}],!1;var l=i===i}else l=!0;if(l){if(o.as!==void 0){let r=o.as;if("stylesheet"!==r&&"block-contents"!==r)return d.errors=[{params:{allowedValues:e.enum}}],!1;l=i===i}else l=!0;if(l){if(o.container!==void 0){if("boolean"!=typeof o.container)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customIdents!==void 0){if("boolean"!=typeof o.customIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customMedia!==void 0){if("boolean"!=typeof o.customMedia)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customSelectors!==void 0){if("boolean"!=typeof o.customSelectors)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.dashedIdents!==void 0){if("boolean"!=typeof o.dashedIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.exportType!==void 0){let r=o.exportType;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return d.errors=[{params:{allowedValues:t.enum}}],!1;l=i===i}else l=!0;if(l){if(o.fontPreload!==void 0){if("boolean"!=typeof o.fontPreload)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.function!==void 0){if("boolean"!=typeof o.function)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.grid!==void 0){if("boolean"!=typeof o.grid)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.import!==void 0){if("boolean"!=typeof o.import)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.namedExports!==void 0){if("boolean"!=typeof o.namedExports)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.pure!==void 0){if("boolean"!=typeof o.pure)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.url!==void 0){if("boolean"!=typeof o.url)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l)if(o.urlHints!==void 0){let r=i;c(o.urlHints,{instancePath:n+"/urlHints",parentData:o,parentDataProperty:"urlHints",rootData})||(i=(s=s===null?c.errors:s.concat(c.errors)).length),l=r===i}else l=!0}}}}}}}}}}}}}}}}}return d.errors=s,i===0}function y(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0;return d(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?d.errors:e.concat(d.errors)).length),y.errors=e,t===0}