27 lines
147 KiB
JavaScript
27 lines
147 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6201],{6201:function(G,q,H){var j=H(48764).Buffer;(function(L){if(typeof L.window!="undefined"&&L.document||L.require&&L.define)return;L.console||(L.console=function(){var P=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:P})},L.console.error=L.console.warn=L.console.log=L.console.trace=L.console),L.window=L,L.ace=L,L.onerror=function(P,v,m,b,y){postMessage({type:"error",data:{message:P,data:y&&y.data,file:v,line:m,col:b,stack:y&&y.stack}})},L.normalizeModule=function(P,v){if(v.indexOf("!")!==-1){var m=v.split("!");return L.normalizeModule(P,m[0])+"!"+L.normalizeModule(P,m[1])}if(v.charAt(0)=="."){var b=P.split("/").slice(0,-1).join("/");for(v=(b?b+"/":"")+v;v.indexOf(".")!==-1&&y!=v;){var y=v;v=v.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return v},L.require=function(v,m){if(m||(m=v,v=null),!m.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");m=L.normalizeModule(v,m);var b=L.require.modules[m];if(b)return b.initialized||(b.initialized=!0,b.exports=b.factory().exports),b.exports;if(!L.require.tlns)return console.log("unable to load "+m);var y=D(m,L.require.tlns);return y.slice(-3)!=".js"&&(y+=".js"),L.require.id=m,L.require.modules[m]={},importScripts(y),L.require(v,m)};function D(P,v){for(var m=P,b="";m;){var y=v[m];if(typeof y=="string")return y+b;if(y)return y.location.replace(/\/*$/,"/")+(b||y.main||y.name);if(y===!1)return"";var k=m.lastIndexOf("/");if(k===-1)break;b=m.substr(k)+b,m=m.slice(0,k)}return P}L.require.modules={},L.require.tlns={},L.define=function(P,v,m){if(arguments.length==2?(m=v,typeof P!="string"&&(v=P,P=L.require.id)):arguments.length==1&&(m=P,v=[],P=L.require.id),typeof m!="function"){L.require.modules[P]={exports:m,initialized:!0};return}v.length||(v=["require","exports","module"]);var b=function(y){return L.require(P,y)};L.require.modules[P]={exports:{},factory:function(){var y=this,k=m.apply(this,v.slice(0,m.length).map(function(e){switch(e){case"require":return b;case"exports":return y.exports;case"module":return y;default:return b(e)}}));return k&&(y.exports=k),y}}},L.define.amd={},L.require.tlns={},L.initBaseUrls=function(v){for(var m in v)this.require.tlns[m]=v[m]},L.initSender=function(){var v=L.require("ace/lib/event_emitter").EventEmitter,m=L.require("ace/lib/oop"),b=function(){};return function(){m.implement(this,v),this.callback=function(y,k){postMessage({type:"call",id:k,data:y})},this.emit=function(y,k){postMessage({type:"event",name:y,data:k})}}.call(b.prototype),new b};var Y=L.main=null,N=L.sender=null;L.onmessage=function(P){var v=P.data;if(v.event&&N)N._signal(v.event,v.data);else if(v.command)if(Y[v.command])Y[v.command].apply(Y,v.args);else if(L[v.command])L[v.command].apply(L,v.args);else throw new Error("Unknown command:"+v.command);else if(v.init){L.initBaseUrls(v.tlns),N=L.sender=L.initSender();var m=this.require(v.module)[v.classname];Y=L.main=new m(N)}}})(this),ace.define("ace/lib/oop",[],function(L,D,Y){"use strict";D.inherits=function(N,P){N.super_=P,N.prototype=Object.create(P.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}})},D.mixin=function(N,P){for(var v in P)N[v]=P[v];return N},D.implement=function(N,P){D.mixin(N,P)}}),ace.define("ace/lib/lang",[],function(L,D,Y){"use strict";D.last=function(v){return v[v.length-1]},D.stringReverse=function(v){return v.split("").reverse().join("")},D.stringRepeat=function(v,m){for(var b="";m>0;)m&1&&(b+=v),(m>>=1)&&(v+=v);return b};var N=/^\s\s*/,P=/\s\s*$/;D.stringTrimLeft=function(v){return v.replace(N,"")},D.stringTrimRight=function(v){return v.replace(P,"")},D.copyObject=function(v){var m={};for(var b in v)m[b]=v[b];return m},D.copyArray=function(v){for(var m=[],b=0,y=v.length;b<y;b++)v[b]&&typeof v[b]=="object"?m[b]=this.copyObject(v[b]):m[b]=v[b];return m},D.deepCopy=function v(m){if(typeof m!="object"||!m)return m;var b;if(Array.isArray(m)){b=[];for(var y=0;y<m.length;y++)b[y]=v(m[y]);return b}if(Object.prototype.toString.call(m)!=="[object Object]")return m;b={};for(var y in m)b[y]=v(m[y]);return b},D.arrayToMap=function(v){for(var m={},b=0;b<v.length;b++)m[v[b]]=1;return m},D.createMap=function(v){var m=Object.create(null);for(var b in v)m[b]=v[b];return m},D.arrayRemove=function(v,m){for(var b=0;b<=v.length;b++)m===v[b]&&v.splice(b,1)},D.escapeRegExp=function(v){return v.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},D.escapeHTML=function(v){return(""+v).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},D.getMatchOffsets=function(v,m){var b=[];return v.replace(m,function(y){b.push({offset:arguments[arguments.length-2],length:y.length})}),b},D.deferredCall=function(v){var m=null,b=function(){m=null,v()},y=function(k){return y.cancel(),m=setTimeout(b,k||0),y};return y.schedule=y,y.call=function(){return this.cancel(),v(),y},y.cancel=function(){return clearTimeout(m),m=null,y},y.isPending=function(){return m},y},D.delayedCall=function(v,m){var b=null,y=function(){b=null,v()},k=function(e){b==null&&(b=setTimeout(y,e||m))};return k.delay=function(e){b&&clearTimeout(b),b=setTimeout(y,e||m)},k.schedule=k,k.call=function(){this.cancel(),v()},k.cancel=function(){b&&clearTimeout(b),b=null},k.isPending=function(){return b},k}}),ace.define("ace/apply_delta",[],function(L,D,Y){"use strict";function N(m,b){throw console.log("Invalid Delta:",m),"Invalid Delta: "+b}function P(m,b){return b.row>=0&&b.row<m.length&&b.column>=0&&b.column<=m[b.row].length}function v(m,b){b.action!="insert"&&b.action!="remove"&&N(b,"delta.action must be 'insert' or 'remove'"),b.lines instanceof Array||N(b,"delta.lines must be an Array"),(!b.start||!b.end)&&N(b,"delta.start/end must be an present");var y=b.start;P(m,b.start)||N(b,"delta.start must be contained in document");var k=b.end;b.action=="remove"&&!P(m,k)&&N(b,"delta.end must contained in document for 'remove' actions");var e=k.row-y.row,n=k.column-(e==0?y.column:0);(e!=b.lines.length-1||b.lines[e].length!=n)&&N(b,"delta.range must match delta lines")}D.applyDelta=function(m,b,y){var k=b.start.row,e=b.start.column,n=m[k]||"";switch(b.action){case"insert":var f=b.lines;if(f.length===1)m[k]=n.substring(0,e)+b.lines[0]+n.substring(e);else{var h=[k,1].concat(b.lines);m.splice.apply(m,h),m[k]=n.substring(0,e)+m[k],m[k+b.lines.length-1]+=n.substring(e)}break;case"remove":var s=b.end.column,a=b.end.row;k===a?m[k]=n.substring(0,e)+n.substring(s):m.splice(k,a-k+1,n.substring(0,e)+m[a].substring(s));break}}}),ace.define("ace/lib/event_emitter",[],function(L,D,Y){"use strict";var N={},P=function(){this.propagationStopped=!0},v=function(){this.defaultPrevented=!0};N._emit=N._dispatchEvent=function(m,b){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var y=this._eventRegistry[m]||[],k=this._defaultHandlers[m];if(!(!y.length&&!k)){(typeof b!="object"||!b)&&(b={}),b.type||(b.type=m),b.stopPropagation||(b.stopPropagation=P),b.preventDefault||(b.preventDefault=v),y=y.slice();for(var e=0;e<y.length&&(y[e](b,this),!b.propagationStopped);e++);if(k&&!b.defaultPrevented)return k(b,this)}},N._signal=function(m,b){var y=(this._eventRegistry||{})[m];if(!!y){y=y.slice();for(var k=0;k<y.length;k++)y[k](b,this)}},N.once=function(m,b){var y=this;if(this.on(m,function k(){y.off(m,k),b.apply(null,arguments)}),!b)return new Promise(function(k){b=k})},N.setDefaultHandler=function(m,b){var y=this._defaultHandlers;if(y||(y=this._defaultHandlers={_disabled_:{}}),y[m]){var k=y[m],e=y._disabled_[m];e||(y._disabled_[m]=e=[]),e.push(k);var n=e.indexOf(b);n!=-1&&e.splice(n,1)}y[m]=b},N.removeDefaultHandler=function(m,b){var y=this._defaultHandlers;if(!!y){var k=y._disabled_[m];if(y[m]==b)k&&this.setDefaultHandler(m,k.pop());else if(k){var e=k.indexOf(b);e!=-1&&k.splice(e,1)}}},N.on=N.addEventListener=function(m,b,y){this._eventRegistry=this._eventRegistry||{};var k=this._eventRegistry[m];return k||(k=this._eventRegistry[m]=[]),k.indexOf(b)==-1&&k[y?"unshift":"push"](b),b},N.off=N.removeListener=N.removeEventListener=function(m,b){this._eventRegistry=this._eventRegistry||{};var y=this._eventRegistry[m];if(!!y){var k=y.indexOf(b);k!==-1&&y.splice(k,1)}},N.removeAllListeners=function(m){m||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[m]=void 0),this._defaultHandlers&&(this._defaultHandlers[m]=void 0)},D.EventEmitter=N}),ace.define("ace/range",[],function(L,D,Y){"use strict";var N=function(v,m){return v.row-m.row||v.column-m.column},P=function(){function v(m,b,y,k){this.start={row:m,column:b},this.end={row:y,column:k}}return v.prototype.isEqual=function(m){return this.start.row===m.start.row&&this.end.row===m.end.row&&this.start.column===m.start.column&&this.end.column===m.end.column},v.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},v.prototype.contains=function(m,b){return this.compare(m,b)==0},v.prototype.compareRange=function(m){var b,y=m.end,k=m.start;return b=this.compare(y.row,y.column),b==1?(b=this.compare(k.row,k.column),b==1?2:b==0?1:0):b==-1?-2:(b=this.compare(k.row,k.column),b==-1?-1:b==1?42:0)},v.prototype.comparePoint=function(m){return this.compare(m.row,m.column)},v.prototype.containsRange=function(m){return this.comparePoint(m.start)==0&&this.comparePoint(m.end)==0},v.prototype.intersects=function(m){var b=this.compareRange(m);return b==-1||b==0||b==1},v.prototype.isEnd=function(m,b){return this.end.row==m&&this.end.column==b},v.prototype.isStart=function(m,b){return this.start.row==m&&this.start.column==b},v.prototype.setStart=function(m,b){typeof m=="object"?(this.start.column=m.column,this.start.row=m.row):(this.start.row=m,this.start.column=b)},v.prototype.setEnd=function(m,b){typeof m=="object"?(this.end.column=m.column,this.end.row=m.row):(this.end.row=m,this.end.column=b)},v.prototype.inside=function(m,b){return this.compare(m,b)==0?!(this.isEnd(m,b)||this.isStart(m,b)):!1},v.prototype.insideStart=function(m,b){return this.compare(m,b)==0?!this.isEnd(m,b):!1},v.prototype.insideEnd=function(m,b){return this.compare(m,b)==0?!this.isStart(m,b):!1},v.prototype.compare=function(m,b){return!this.isMultiLine()&&m===this.start.row?b<this.start.column?-1:b>this.end.column?1:0:m<this.start.row?-1:m>this.end.row?1:this.start.row===m?b>=this.start.column?0:-1:this.end.row===m?b<=this.end.column?0:1:0},v.prototype.compareStart=function(m,b){return this.start.row==m&&this.start.column==b?-1:this.compare(m,b)},v.prototype.compareEnd=function(m,b){return this.end.row==m&&this.end.column==b?1:this.compare(m,b)},v.prototype.compareInside=function(m,b){return this.end.row==m&&this.end.column==b?1:this.start.row==m&&this.start.column==b?-1:this.compare(m,b)},v.prototype.clipRows=function(m,b){if(this.end.row>b)var y={row:b+1,column:0};else if(this.end.row<m)var y={row:m,column:0};if(this.start.row>b)var k={row:b+1,column:0};else if(this.start.row<m)var k={row:m,column:0};return v.fromPoints(k||this.start,y||this.end)},v.prototype.extend=function(m,b){var y=this.compare(m,b);if(y==0)return this;if(y==-1)var k={row:m,column:b};else var e={row:m,column:b};return v.fromPoints(k||this.start,e||this.end)},v.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},v.prototype.isMultiLine=function(){return this.start.row!==this.end.row},v.prototype.clone=function(){return v.fromPoints(this.start,this.end)},v.prototype.collapseRows=function(){return this.end.column==0?new v(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new v(this.start.row,0,this.end.row,0)},v.prototype.toScreenRange=function(m){var b=m.documentToScreenPosition(this.start),y=m.documentToScreenPosition(this.end);return new v(b.row,b.column,y.row,y.column)},v.prototype.moveBy=function(m,b){this.start.row+=m,this.start.column+=b,this.end.row+=m,this.end.column+=b},v}();P.fromPoints=function(v,m){return new P(v.row,v.column,m.row,m.column)},P.comparePoints=N,P.comparePoints=function(v,m){return v.row-m.row||v.column-m.column},D.Range=P}),ace.define("ace/anchor",[],function(L,D,Y){"use strict";var N=L("./lib/oop"),P=L("./lib/event_emitter").EventEmitter,v=function(){function y(k,e,n){this.$onChange=this.onChange.bind(this),this.attach(k),typeof n=="undefined"?this.setPosition(e.row,e.column):this.setPosition(e,n)}return y.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},y.prototype.getDocument=function(){return this.document},y.prototype.onChange=function(k){if(!(k.start.row==k.end.row&&k.start.row!=this.row)&&!(k.start.row>this.row)){var e=b(k,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}},y.prototype.setPosition=function(k,e,n){var f;if(n?f={row:k,column:e}:f=this.$clipPositionToDocument(k,e),!(this.row==f.row&&this.column==f.column)){var h={row:this.row,column:this.column};this.row=f.row,this.column=f.column,this._signal("change",{old:h,value:f})}},y.prototype.detach=function(){this.document.off("change",this.$onChange)},y.prototype.attach=function(k){this.document=k||this.document,this.document.on("change",this.$onChange)},y.prototype.$clipPositionToDocument=function(k,e){var n={};return k>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):k<0?(n.row=0,n.column=0):(n.row=k,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,e))),e<0&&(n.column=0),n},y}();v.prototype.$insertRight=!1,N.implement(v.prototype,P);function m(y,k,e){var n=e?y.column<=k.column:y.column<k.column;return y.row<k.row||y.row==k.row&&n}function b(y,k,e){var n=y.action=="insert",f=(n?1:-1)*(y.end.row-y.start.row),h=(n?1:-1)*(y.end.column-y.start.column),s=y.start,a=n?s:y.end;return m(k,s,e)?{row:k.row,column:k.column}:m(a,k,!e)?{row:k.row+f,column:k.column+(k.row==a.row?h:0)}:{row:s.row,column:s.column}}D.Anchor=v}),ace.define("ace/document",[],function(L,D,Y){"use strict";var N=L("./lib/oop"),P=L("./apply_delta").applyDelta,v=L("./lib/event_emitter").EventEmitter,m=L("./range").Range,b=L("./anchor").Anchor,y=function(){function k(e){this.$lines=[""],e.length===0?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return k.prototype.setValue=function(e){var n=this.getLength()-1;this.remove(new m(0,0,n,this.getLine(n).length)),this.insert({row:0,column:0},e||"")},k.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},k.prototype.createAnchor=function(e,n){return new b(this,e,n)},k.prototype.$detectNewLine=function(e){var n=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=n?n[1]:`
|
|
`,this._signal("changeNewLineMode")},k.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
`;case"unix":return`
|
|
`;default:return this.$autoNewLine||`
|
|
`}},k.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},k.prototype.getNewLineMode=function(){return this.$newLineMode},k.prototype.isNewLine=function(e){return e==`\r
|
|
`||e=="\r"||e==`
|
|
`},k.prototype.getLine=function(e){return this.$lines[e]||""},k.prototype.getLines=function(e,n){return this.$lines.slice(e,n+1)},k.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},k.prototype.getLength=function(){return this.$lines.length},k.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},k.prototype.getLinesForRange=function(e){var n;if(e.start.row===e.end.row)n=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{n=this.getLines(e.start.row,e.end.row),n[0]=(n[0]||"").substring(e.start.column);var f=n.length-1;e.end.row-e.start.row==f&&(n[f]=n[f].substring(0,e.end.column))}return n},k.prototype.insertLines=function(e,n){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,n)},k.prototype.removeLines=function(e,n){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,n)},k.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},k.prototype.insert=function(e,n){return this.getLength()<=1&&this.$detectNewLine(n),this.insertMergedLines(e,this.$split(n))},k.prototype.insertInLine=function(e,n){var f=this.clippedPos(e.row,e.column),h=this.pos(e.row,e.column+n.length);return this.applyDelta({start:f,end:h,action:"insert",lines:[n]},!0),this.clonePos(h)},k.prototype.clippedPos=function(e,n){var f=this.getLength();e===void 0?e=f:e<0?e=0:e>=f&&(e=f-1,n=void 0);var h=this.getLine(e);return n==null&&(n=h.length),n=Math.min(Math.max(n,0),h.length),{row:e,column:n}},k.prototype.clonePos=function(e){return{row:e.row,column:e.column}},k.prototype.pos=function(e,n){return{row:e,column:n}},k.prototype.$clipPosition=function(e){var n=this.getLength();return e.row>=n?(e.row=Math.max(0,n-1),e.column=this.getLine(n-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},k.prototype.insertFullLines=function(e,n){e=Math.min(Math.max(e,0),this.getLength());var f=0;e<this.getLength()?(n=n.concat([""]),f=0):(n=[""].concat(n),e--,f=this.$lines[e].length),this.insertMergedLines({row:e,column:f},n)},k.prototype.insertMergedLines=function(e,n){var f=this.clippedPos(e.row,e.column),h={row:f.row+n.length-1,column:(n.length==1?f.column:0)+n[n.length-1].length};return this.applyDelta({start:f,end:h,action:"insert",lines:n}),this.clonePos(h)},k.prototype.remove=function(e){var n=this.clippedPos(e.start.row,e.start.column),f=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:n,end:f,action:"remove",lines:this.getLinesForRange({start:n,end:f})}),this.clonePos(n)},k.prototype.removeInLine=function(e,n,f){var h=this.clippedPos(e,n),s=this.clippedPos(e,f);return this.applyDelta({start:h,end:s,action:"remove",lines:this.getLinesForRange({start:h,end:s})},!0),this.clonePos(h)},k.prototype.removeFullLines=function(e,n){e=Math.min(Math.max(0,e),this.getLength()-1),n=Math.min(Math.max(0,n),this.getLength()-1);var f=n==this.getLength()-1&&e>0,h=n<this.getLength()-1,s=f?e-1:e,a=f?this.getLine(s).length:0,o=h?n+1:n,t=h?0:this.getLine(o).length,l=new m(s,a,o,t),d=this.$lines.slice(e,n+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),d},k.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},k.prototype.replace=function(e,n){if(e instanceof m||(e=m.fromPoints(e.start,e.end)),n.length===0&&e.isEmpty())return e.start;if(n==this.getTextRange(e))return e.end;this.remove(e);var f;return n?f=this.insert(e.start,n):f=e.start,f},k.prototype.applyDeltas=function(e){for(var n=0;n<e.length;n++)this.applyDelta(e[n])},k.prototype.revertDeltas=function(e){for(var n=e.length-1;n>=0;n--)this.revertDelta(e[n])},k.prototype.applyDelta=function(e,n){var f=e.action=="insert";(f?e.lines.length<=1&&!e.lines[0]:!m.comparePoints(e.start,e.end))||(f&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(P(this.$lines,e,n),this._signal("change",e)))},k.prototype.$safeApplyDelta=function(e){var n=this.$lines.length;(e.action=="remove"&&e.start.row<n&&e.end.row<n||e.action=="insert"&&e.start.row<=n)&&this.applyDelta(e)},k.prototype.$splitAndapplyLargeDelta=function(e,n){for(var f=e.lines,h=f.length-n+1,s=e.start.row,a=e.start.column,o=0,t=0;o<h;o=t){t+=n-1;var l=f.slice(o,t);l.push(""),this.applyDelta({start:this.pos(s+o,a),end:this.pos(s+t,a=0),action:e.action,lines:l},!0)}e.lines=f.slice(o),e.start.row=s+o,e.start.column=a,this.applyDelta(e,!0)},k.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action=="insert"?"remove":"insert",lines:e.lines.slice()})},k.prototype.indexToPosition=function(e,n){for(var f=this.$lines||this.getAllLines(),h=this.getNewLineCharacter().length,s=n||0,a=f.length;s<a;s++)if(e-=f[s].length+h,e<0)return{row:s,column:e+f[s].length+h};return{row:a-1,column:e+f[a-1].length+h}},k.prototype.positionToIndex=function(e,n){for(var f=this.$lines||this.getAllLines(),h=this.getNewLineCharacter().length,s=0,a=Math.min(e.row,f.length),o=n||0;o<a;++o)s+=f[o].length+h;return s+e.column},k}();y.prototype.$split="aaa".split(/a/).length===0?function(k){return k.replace(/\r\n|\r/g,`
|
|
`).split(`
|
|
`)}:function(k){return k.split(/\r\n|\r|\n/)},y.prototype.$autoNewLine="",y.prototype.$newLineMode="auto",N.implement(y.prototype,v),D.Document=y}),ace.define("ace/worker/mirror",[],function(L,D,Y){"use strict";var N=L("../document").Document,P=L("../lib/lang"),v=D.Mirror=function(m){this.sender=m;var b=this.doc=new N(""),y=this.deferredUpdate=P.delayedCall(this.onUpdate.bind(this)),k=this;m.on("change",function(e){var n=e.data;if(n[0].start)b.applyDeltas(n);else for(var f=0;f<n.length;f+=2){var h,s;if(Array.isArray(n[f+1])?h={action:"insert",start:n[f],lines:n[f+1]}:h={action:"remove",start:n[f],end:n[f+1]},(h.action=="insert"?h.start:h.end).row>=b.$lines.length)throw s=new Error("Invalid delta"),s.data={path:k.$path,linesLength:b.$lines.length,start:h.start,end:h.end},s;b.applyDelta(h,!0)}if(k.$timeout)return y.schedule(k.$timeout);k.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(m){this.$timeout=m},this.setValue=function(m){this.doc.setValue(m),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(m){this.sender.callback(this.doc.getValue(),m)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(v.prototype)}),ace.define("ace/mode/css/csslint",[],function(L,D,Y){var N=function(){var P=P||{},v=v||{},m=function(){var e;return e=function(){function n(f,h,s){function a(l,d){if(!h[l]){if(!f[l]){var g=typeof e=="function"&&e;if(!d&&g)return g(l,!0);if(o)return o(l,!0);var w=new Error("Cannot find module '"+l+"'");throw w.code="MODULE_NOT_FOUND",w}var S=h[l]={exports:{}};f[l][0].call(S.exports,function(E){var T=f[l][1][E];return a(T||E)},S,S.exports,n,f,h,s)}return h[l].exports}for(var o=typeof e=="function"&&e,t=0;t<s.length;t++)a(s[t]);return a}return n}()({1:[function(n,f,h){"use strict";var s=f.exports={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",currentColor:"The value of the 'color' property.",activeborder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."}},{}],2:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l,d){s.call(this,t,l,d,a.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(t)?this.type="descendant":t===">"?this.type="child":t==="+"?this.type="adjacent-sibling":t==="~"&&(this.type="sibling")}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],3:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/StringReader"),a=n("../util/SyntaxError");function o(t,l){this.match=function(d){var g;return d.mark(),g=t(d),g?d.drop():d.restore(),g},this.toString=typeof l=="function"?l:function(){return l}}o.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},o.parse=function(t){var l,d,g,w,S,E,T,A,O;if(l=new s(t),d=function(c){var z=l.readMatch(c);if(z===null)throw new a("Expected "+c,l.getLine(),l.getCol());return z},g=function(){for(var c=[w()];l.readMatch(" | ")!==null;)c.push(w());return c.length===1?c[0]:o.alt.apply(o,c)},w=function(){for(var c=[S()];l.readMatch(" || ")!==null;)c.push(S());return c.length===1?c[0]:o.oror.apply(o,c)},S=function(){for(var c=[E()];l.readMatch(" && ")!==null;)c.push(E());return c.length===1?c[0]:o.andand.apply(o,c)},E=function(){for(var c=[T()];l.readMatch(/^ (?![&|\]])/)!==null;)c.push(T());return c.length===1?c[0]:o.seq.apply(o,c)},T=function(){var c=A();if(l.readMatch("?")!==null)return c.question();if(l.readMatch("*")!==null)return c.star();if(l.readMatch("+")!==null)return c.plus();if(l.readMatch("#")!==null)return c.hash();if(l.readMatch(/^\{\s*/)!==null){var z=d(/^\d+/);d(/^\s*,\s*/);var C=d(/^\d+/);return d(/^\s*\}/),c.braces(Number(z),Number(C))}return c},A=function(){if(l.readMatch("[ ")!==null){var c=g();return d(" ]"),c}return o.fromType(d(/^[^ ?*+#{]+/))},O=g(),!l.eof())throw new a("Expected end of string",l.getLine(),l.getCol());return O},o.cast=function(t){return t instanceof o?t:o.parse(t)},o.fromType=function(t){var l=n("./ValidationTypes");return new o(function(d){return d.hasNext()&&l.isType(d,t)},t)},o.seq=function(){var t=Array.prototype.slice.call(arguments).map(o.cast);return t.length===1?t[0]:new o(function(l){var d,g=!0;for(d=0;g&&d<t.length;d++)g=t[d].match(l);return g},function(l){var d=o.prec.SEQ,g=t.map(function(w){return w.toString(d)}).join(" ");return l>d&&(g="[ "+g+" ]"),g})},o.alt=function(){var t=Array.prototype.slice.call(arguments).map(o.cast);return t.length===1?t[0]:new o(function(l){var d,g=!1;for(d=0;!g&&d<t.length;d++)g=t[d].match(l);return g},function(l){var d=o.prec.ALT,g=t.map(function(w){return w.toString(d)}).join(" | ");return l>d&&(g="[ "+g+" ]"),g})},o.many=function(t){var l=Array.prototype.slice.call(arguments,1).reduce(function(g,w){if(w.expand){var S=n("./ValidationTypes");g.push.apply(g,S.complex[w.expand].options)}else g.push(o.cast(w));return g},[]);t===!0&&(t=l.map(function(){return!0}));var d=new o(function(g){var w=[],S=0,E=0,T=function(c){return E===0?(S=Math.max(c,S),c===l.length):c===S},A=function(c){for(var z=0;z<l.length;z++)if(!w[z])if(g.mark(),l[z].match(g)){if(w[z]=!0,A(c+(t===!1||t[z]?1:0)))return g.drop(),!0;g.restore(),w[z]=!1}else g.drop();return T(c)};if(A(0)||(E++,A(0)),t===!1)return S>0;for(var O=0;O<l.length;O++)if(t[O]&&!w[O])return!1;return!0},function(g){var w=t===!1?o.prec.OROR:o.prec.ANDAND,S=l.map(function(E,T){return t!==!1&&!t[T]?E.toString(o.prec.MOD)+"?":E.toString(w)}).join(t===!1?" || ":" && ");return g>w&&(S="[ "+S+" ]"),S});return d.options=l,d},o.andand=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(!0),o.many.apply(o,t)},o.oror=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(!1),o.many.apply(o,t)},o.prototype={constructor:o,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(t){return o.seq(this,t)},or:function(t){return o.alt(this,t)},andand:function(t){return o.many(!0,this,t)},oror:function(t){return o.many(!1,this,t)},star:function(){return this.braces(0,Infinity,"*")},plus:function(){return this.braces(1,Infinity,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,Infinity,"#",o.cast(","))},braces:function(t,l,d,g){var w=this,S=g?g.then(this):this;return d||(d="{"+t+","+l+"}"),new o(function(E){var T=!0,A;for(A=0;A<l&&(A>0&&g?T=S.match(E):T=w.match(E),!!T);A++);return A>=t},function(){return w.toString(o.prec.MOD)+d})}}},{"../util/StringReader":24,"../util/SyntaxError":25,"./ValidationTypes":21}],4:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l){s.call(this,"("+t+(l!==null?":"+l:"")+")",t.startLine,t.startCol,a.MEDIA_FEATURE_TYPE),this.name=t,this.value=l}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],5:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l,d,g,w){s.call(this,(t?t+" ":"")+(l||"")+(l&&d.length>0?" and ":"")+d.join(" and "),g,w,a.MEDIA_QUERY_TYPE),this.modifier=t,this.mediaType=l,this.features=d}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],6:[function(n,f,h){"use strict";f.exports=C;var s=n("../util/EventTarget"),a=n("../util/SyntaxError"),o=n("../util/SyntaxUnit"),t=n("./Combinator"),l=n("./MediaFeature"),d=n("./MediaQuery"),g=n("./PropertyName"),w=n("./PropertyValue"),S=n("./PropertyValuePart"),E=n("./Selector"),T=n("./SelectorPart"),A=n("./SelectorSubPart"),O=n("./TokenStream"),c=n("./Tokens"),z=n("./Validation");function C(U){s.call(this),this.options=U||{},this._tokenStream=null}C.DEFAULT_TYPE=0,C.COMBINATOR_TYPE=1,C.MEDIA_FEATURE_TYPE=2,C.MEDIA_QUERY_TYPE=3,C.PROPERTY_NAME_TYPE=4,C.PROPERTY_VALUE_TYPE=5,C.PROPERTY_VALUE_PART_TYPE=6,C.SELECTOR_TYPE=7,C.SELECTOR_PART_TYPE=8,C.SELECTOR_SUB_PART_TYPE=9,C.prototype=function(){var U=new s,I,_={__proto__:null,constructor:C,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var r=this._tokenStream,i,u,p;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();r.peek()===c.IMPORT_SYM;)this._import(),this._skipCruft();for(;r.peek()===c.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(p=r.peek();p>c.EOF;){try{switch(p){case c.MEDIA_SYM:this._media(),this._skipCruft();break;case c.PAGE_SYM:this._page(),this._skipCruft();break;case c.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case c.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case c.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case c.DOCUMENT_SYM:this._document(),this._skipCruft();break;case c.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case c.UNKNOWN_SYM:if(r.get(),this.options.strict)throw new a("Unknown @ rule.",r.LT(0).startLine,r.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+r.LT(0).value+".",line:r.LT(0).startLine,col:r.LT(0).startCol}),i=0;r.advance([c.LBRACE,c.RBRACE])===c.LBRACE;)i++;for(;i;)r.advance([c.RBRACE]),i--;break;case c.S:this._readWhitespace();break;default:if(!this._ruleset())switch(p){case c.CHARSET_SYM:throw u=r.LT(1),this._charset(!1),new a("@charset not allowed here.",u.startLine,u.startCol);case c.IMPORT_SYM:throw u=r.LT(1),this._import(!1),new a("@import not allowed here.",u.startLine,u.startCol);case c.NAMESPACE_SYM:throw u=r.LT(1),this._namespace(!1),new a("@namespace not allowed here.",u.startLine,u.startCol);default:r.get(),this._unexpectedToken(r.token())}}}catch(x){if(x instanceof a&&!this.options.strict)this.fire({type:"error",error:x,message:x.message,line:x.line,col:x.col});else throw x}p=r.peek()}p!==c.EOF&&this._unexpectedToken(r.token()),this.fire("endstylesheet")},_charset:function(r){var i=this._tokenStream,u,p,x,R;i.match(c.CHARSET_SYM)&&(x=i.token().startLine,R=i.token().startCol,this._readWhitespace(),i.mustMatch(c.STRING),p=i.token(),u=p.value,this._readWhitespace(),i.mustMatch(c.SEMICOLON),r!==!1&&this.fire({type:"charset",charset:u,line:x,col:R}))},_import:function(r){var i=this._tokenStream,u,p,x=[];i.mustMatch(c.IMPORT_SYM),p=i.token(),this._readWhitespace(),i.mustMatch([c.STRING,c.URI]),u=i.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),x=this._media_query_list(),i.mustMatch(c.SEMICOLON),this._readWhitespace(),r!==!1&&this.fire({type:"import",uri:u,media:x,line:p.startLine,col:p.startCol})},_namespace:function(r){var i=this._tokenStream,u,p,x,R;i.mustMatch(c.NAMESPACE_SYM),u=i.token().startLine,p=i.token().startCol,this._readWhitespace(),i.match(c.IDENT)&&(x=i.token().value,this._readWhitespace()),i.mustMatch([c.STRING,c.URI]),R=i.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),i.mustMatch(c.SEMICOLON),this._readWhitespace(),r!==!1&&this.fire({type:"namespace",prefix:x,uri:R,line:u,col:p})},_supports:function(r){var i=this._tokenStream,u,p;if(i.match(c.SUPPORTS_SYM)){for(u=i.token().startLine,p=i.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),i.mustMatch(c.LBRACE),this._readWhitespace(),r!==!1&&this.fire({type:"startsupports",line:u,col:p});this._ruleset(););i.mustMatch(c.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:u,col:p})}},_supports_condition:function(){var r=this._tokenStream,i;if(r.match(c.IDENT))i=r.token().value.toLowerCase(),i==="not"?(r.mustMatch(c.S),this._supports_condition_in_parens()):r.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();r.peek()===c.IDENT;)i=r.LT(1).value.toLowerCase(),(i==="and"||i==="or")&&(r.mustMatch(c.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var r=this._tokenStream,i;r.match(c.LPAREN)?(this._readWhitespace(),r.match(c.IDENT)?(i=r.token().value.toLowerCase(),i==="not"?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),r.mustMatch(c.RPAREN)):(r.unget(),this._supports_declaration_condition(!1))):(this._supports_condition(),this._readWhitespace(),r.mustMatch(c.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(r){var i=this._tokenStream;r!==!1&&i.mustMatch(c.LPAREN),this._readWhitespace(),this._declaration(),i.mustMatch(c.RPAREN)},_media:function(){var r=this._tokenStream,i,u,p;for(r.mustMatch(c.MEDIA_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),p=this._media_query_list(),r.mustMatch(c.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:p,line:i,col:u});;)if(r.peek()===c.PAGE_SYM)this._page();else if(r.peek()===c.FONT_FACE_SYM)this._font_face();else if(r.peek()===c.VIEWPORT_SYM)this._viewport();else if(r.peek()===c.DOCUMENT_SYM)this._document();else if(r.peek()===c.SUPPORTS_SYM)this._supports();else if(r.peek()===c.MEDIA_SYM)this._media();else if(!this._ruleset())break;r.mustMatch(c.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:p,line:i,col:u})},_media_query_list:function(){var r=this._tokenStream,i=[];for(this._readWhitespace(),(r.peek()===c.IDENT||r.peek()===c.LPAREN)&&i.push(this._media_query());r.match(c.COMMA);)this._readWhitespace(),i.push(this._media_query());return i},_media_query:function(){var r=this._tokenStream,i=null,u=null,p=null,x=[];if(r.match(c.IDENT)&&(u=r.token().value.toLowerCase(),u!=="only"&&u!=="not"?(r.unget(),u=null):p=r.token()),this._readWhitespace(),r.peek()===c.IDENT?(i=this._media_type(),p===null&&(p=r.token())):r.peek()===c.LPAREN&&(p===null&&(p=r.LT(1)),x.push(this._media_expression())),i===null&&x.length===0)return null;for(this._readWhitespace();r.match(c.IDENT);)r.token().value.toLowerCase()!=="and"&&this._unexpectedToken(r.token()),this._readWhitespace(),x.push(this._media_expression());return new d(u,i,x,p.startLine,p.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var r=this._tokenStream,i=null,u,p=null;return r.mustMatch(c.LPAREN),this._readWhitespace(),i=this._media_feature(),this._readWhitespace(),r.match(c.COLON)&&(this._readWhitespace(),u=r.LT(1),p=this._expression()),r.mustMatch(c.RPAREN),this._readWhitespace(),new l(i,p?new o(p,u.startLine,u.startCol):null)},_media_feature:function(){var r=this._tokenStream;return this._readWhitespace(),r.mustMatch(c.IDENT),o.fromToken(r.token())},_page:function(){var r=this._tokenStream,i,u,p=null,x=null;r.mustMatch(c.PAGE_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),r.match(c.IDENT)&&(p=r.token().value,p.toLowerCase()==="auto"&&this._unexpectedToken(r.token())),r.peek()===c.COLON&&(x=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:p,pseudo:x,line:i,col:u}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:p,pseudo:x,line:i,col:u})},_margin:function(){var r=this._tokenStream,i,u,p=this._margin_sym();return p?(i=r.token().startLine,u=r.token().startCol,this.fire({type:"startpagemargin",margin:p,line:i,col:u}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:p,line:i,col:u}),!0):!1},_margin_sym:function(){var r=this._tokenStream;return r.match([c.TOPLEFTCORNER_SYM,c.TOPLEFT_SYM,c.TOPCENTER_SYM,c.TOPRIGHT_SYM,c.TOPRIGHTCORNER_SYM,c.BOTTOMLEFTCORNER_SYM,c.BOTTOMLEFT_SYM,c.BOTTOMCENTER_SYM,c.BOTTOMRIGHT_SYM,c.BOTTOMRIGHTCORNER_SYM,c.LEFTTOP_SYM,c.LEFTMIDDLE_SYM,c.LEFTBOTTOM_SYM,c.RIGHTTOP_SYM,c.RIGHTMIDDLE_SYM,c.RIGHTBOTTOM_SYM])?o.fromToken(r.token()):null},_pseudo_page:function(){var r=this._tokenStream;return r.mustMatch(c.COLON),r.mustMatch(c.IDENT),r.token().value},_font_face:function(){var r=this._tokenStream,i,u;r.mustMatch(c.FONT_FACE_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:i,col:u}),this._readDeclarations(!0),this.fire({type:"endfontface",line:i,col:u})},_viewport:function(){var r=this._tokenStream,i,u;r.mustMatch(c.VIEWPORT_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:i,col:u}),this._readDeclarations(!0),this.fire({type:"endviewport",line:i,col:u})},_document:function(){var r=this._tokenStream,i,u=[],p="";for(r.mustMatch(c.DOCUMENT_SYM),i=r.token(),/^@-([^-]+)-/.test(i.value)&&(p=RegExp.$1),this._readWhitespace(),u.push(this._document_function());r.match(c.COMMA);)this._readWhitespace(),u.push(this._document_function());r.mustMatch(c.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:u,prefix:p,line:i.startLine,col:i.startCol});for(var x=!0;x;)switch(r.peek()){case c.PAGE_SYM:this._page();break;case c.FONT_FACE_SYM:this._font_face();break;case c.VIEWPORT_SYM:this._viewport();break;case c.MEDIA_SYM:this._media();break;case c.KEYFRAMES_SYM:this._keyframes();break;case c.DOCUMENT_SYM:this._document();break;default:x=Boolean(this._ruleset())}r.mustMatch(c.RBRACE),i=r.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:u,prefix:p,line:i.startLine,col:i.startCol})},_document_function:function(){var r=this._tokenStream,i;return r.match(c.URI)?(i=r.token().value,this._readWhitespace()):i=this._function(),i},_operator:function(r){var i=this._tokenStream,u=null;return(i.match([c.SLASH,c.COMMA])||r&&i.match([c.PLUS,c.STAR,c.MINUS]))&&(u=i.token(),this._readWhitespace()),u?S.fromToken(u):null},_combinator:function(){var r=this._tokenStream,i=null,u;return r.match([c.PLUS,c.GREATER,c.TILDE])&&(u=r.token(),i=new t(u.value,u.startLine,u.startCol),this._readWhitespace()),i},_unary_operator:function(){var r=this._tokenStream;return r.match([c.MINUS,c.PLUS])?r.token().value:null},_property:function(){var r=this._tokenStream,i=null,u=null,p="",x,R,M;if(r.peek()===c.STAR&&this.options.starHack&&(r.get(),x=r.token(),u=x.value,R=x.startLine,M=x.startCol),r.peek()===c.MINUS&&(r.get(),x=r.token(),p=x.value,R=x.startLine,M=x.startCol),r.match(c.IDENT))x=r.token(),p+=x.value,p.charAt(0)==="_"&&this.options.underscoreHack&&(u="_",p=p.substring(1)),i=new g(p,u,R||x.startLine,M||x.startCol),this._readWhitespace();else{var F=r.peek();F!==c.EOF&&F!==c.RBRACE&&this._unexpectedToken(r.LT(1))}return i},_ruleset:function(){var r=this._tokenStream,i,u;try{u=this._selectors_group()}catch(p){if(p instanceof a&&!this.options.strict){if(this.fire({type:"error",error:p,message:p.message,line:p.line,col:p.col}),i=r.advance([c.RBRACE]),i!==c.RBRACE)throw p}else throw p;return!0}return u&&(this.fire({type:"startrule",selectors:u,line:u[0].line,col:u[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:u,line:u[0].line,col:u[0].col})),u},_selectors_group:function(){var r=this._tokenStream,i=[],u;if(u=this._selector(),u!==null)for(i.push(u);r.match(c.COMMA);)this._readWhitespace(),u=this._selector(),u!==null?i.push(u):this._unexpectedToken(r.LT(1));return i.length?i:null},_selector:function(){var r=this._tokenStream,i=[],u=null,p=null,x=null;if(u=this._simple_selector_sequence(),u===null)return null;i.push(u);do if(p=this._combinator(),p!==null)i.push(p),u=this._simple_selector_sequence(),u===null?this._unexpectedToken(r.LT(1)):i.push(u);else if(this._readWhitespace())x=new t(r.token().value,r.token().startLine,r.token().startCol),p=this._combinator(),u=this._simple_selector_sequence(),u===null?p!==null&&this._unexpectedToken(r.LT(1)):(p!==null?i.push(p):i.push(x),i.push(u));else break;while(!0);return new E(i,i[0].line,i[0].col)},_simple_selector_sequence:function(){var r=this._tokenStream,i=null,u=[],p="",x=[function(){return r.match(c.HASH)?new A(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],R=0,M=x.length,F=null,$,W;for($=r.LT(1).startLine,W=r.LT(1).startCol,i=this._type_selector(),i||(i=this._universal()),i!==null&&(p+=i);r.peek()!==c.S;){for(;R<M&&F===null;)F=x[R++].call(this);if(F===null){if(p==="")return null;break}else R=0,u.push(F),p+=F.toString(),F=null}return p!==""?new T(i,u,p,$,W):null},_type_selector:function(){var r=this._tokenStream,i=this._namespace_prefix(),u=this._element_name();return u?(i&&(u.text=i+u.text,u.col-=i.length),u):(i&&(r.unget(),i.length>1&&r.unget()),null)},_class:function(){var r=this._tokenStream,i;return r.match(c.DOT)?(r.mustMatch(c.IDENT),i=r.token(),new A("."+i.value,"class",i.startLine,i.startCol-1)):null},_element_name:function(){var r=this._tokenStream,i;return r.match(c.IDENT)?(i=r.token(),new A(i.value,"elementName",i.startLine,i.startCol)):null},_namespace_prefix:function(){var r=this._tokenStream,i="";return(r.LA(1)===c.PIPE||r.LA(2)===c.PIPE)&&(r.match([c.IDENT,c.STAR])&&(i+=r.token().value),r.mustMatch(c.PIPE),i+="|"),i.length?i:null},_universal:function(){var r=this._tokenStream,i="",u;return u=this._namespace_prefix(),u&&(i+=u),r.match(c.STAR)&&(i+="*"),i.length?i:null},_attrib:function(){var r=this._tokenStream,i=null,u,p;return r.match(c.LBRACKET)?(p=r.token(),i=p.value,i+=this._readWhitespace(),u=this._namespace_prefix(),u&&(i+=u),r.mustMatch(c.IDENT),i+=r.token().value,i+=this._readWhitespace(),r.match([c.PREFIXMATCH,c.SUFFIXMATCH,c.SUBSTRINGMATCH,c.EQUALS,c.INCLUDES,c.DASHMATCH])&&(i+=r.token().value,i+=this._readWhitespace(),r.mustMatch([c.IDENT,c.STRING]),i+=r.token().value,i+=this._readWhitespace()),r.mustMatch(c.RBRACKET),new A(i+"]","attribute",p.startLine,p.startCol)):null},_pseudo:function(){var r=this._tokenStream,i=null,u=":",p,x;if(r.match(c.COLON))if(r.match(c.COLON)&&(u+=":"),r.match(c.IDENT)?(i=r.token().value,p=r.token().startLine,x=r.token().startCol-u.length):r.peek()===c.FUNCTION&&(p=r.LT(1).startLine,x=r.LT(1).startCol-u.length,i=this._functional_pseudo()),i)i=new A(u+i,"pseudo",p,x);else{var R=r.LT(1).startLine,M=r.LT(0).startCol;throw new a("Expected a `FUNCTION` or `IDENT` after colon at line "+R+", col "+M+".",R,M)}return i},_functional_pseudo:function(){var r=this._tokenStream,i=null;return r.match(c.FUNCTION)&&(i=r.token().value,i+=this._readWhitespace(),i+=this._expression(),r.mustMatch(c.RPAREN),i+=")"),i},_expression:function(){for(var r=this._tokenStream,i="";r.match([c.PLUS,c.MINUS,c.DIMENSION,c.NUMBER,c.STRING,c.IDENT,c.LENGTH,c.FREQ,c.ANGLE,c.TIME,c.RESOLUTION,c.SLASH]);)i+=r.token().value,i+=this._readWhitespace();return i.length?i:null},_negation:function(){var r=this._tokenStream,i,u,p="",x,R=null;return r.match(c.NOT)&&(p=r.token().value,i=r.token().startLine,u=r.token().startCol,p+=this._readWhitespace(),x=this._negation_arg(),p+=x,p+=this._readWhitespace(),r.match(c.RPAREN),p+=r.token().value,R=new A(p,"not",i,u),R.args.push(x)),R},_negation_arg:function(){var r=this._tokenStream,i=[this._type_selector,this._universal,function(){return r.match(c.HASH)?new A(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo],u=null,p=0,x=i.length,R,M,F;for(R=r.LT(1).startLine,M=r.LT(1).startCol;p<x&&u===null;)u=i[p].call(this),p++;return u===null&&this._unexpectedToken(r.LT(1)),u.type==="elementName"?F=new T(u,[],u.toString(),R,M):F=new T(null,[u],u.toString(),R,M),F},_declaration:function(){var r=this._tokenStream,i=null,u=null,p=null,x=null,R="";if(i=this._property(),i!==null){r.mustMatch(c.COLON),this._readWhitespace(),u=this._expr(),(!u||u.length===0)&&this._unexpectedToken(r.LT(1)),p=this._prio(),R=i.toString(),(this.options.starHack&&i.hack==="*"||this.options.underscoreHack&&i.hack==="_")&&(R=i.text);try{this._validateProperty(R,u)}catch(M){x=M}return this.fire({type:"property",property:i,value:u,important:p,line:i.line,col:i.col,invalid:x}),!0}else return!1},_prio:function(){var r=this._tokenStream,i=r.match(c.IMPORTANT_SYM);return this._readWhitespace(),i},_expr:function(r){var i=[],u=null,p=null;if(u=this._term(r),u!==null){i.push(u);do{if(p=this._operator(r),p&&i.push(p),u=this._term(r),u===null)break;i.push(u)}while(!0)}return i.length>0?new w(i,i[0].line,i[0].col):null},_term:function(r){var i=this._tokenStream,u=null,p=null,x=null,R=null,M,F,$;return u=this._unary_operator(),u!==null&&(F=i.token().startLine,$=i.token().startCol),i.peek()===c.IE_FUNCTION&&this.options.ieFilters?(p=this._ie_function(),u===null&&(F=i.token().startLine,$=i.token().startCol)):r&&i.match([c.LPAREN,c.LBRACE,c.LBRACKET])?(M=i.token(),x=M.endChar,p=M.value+this._expr(r).text,u===null&&(F=i.token().startLine,$=i.token().startCol),i.mustMatch(c.type(x)),p+=x,this._readWhitespace()):i.match([c.NUMBER,c.PERCENTAGE,c.LENGTH,c.ANGLE,c.TIME,c.FREQ,c.STRING,c.IDENT,c.URI,c.UNICODE_RANGE])?(p=i.token().value,u===null&&(F=i.token().startLine,$=i.token().startCol,R=S.fromToken(i.token())),this._readWhitespace()):(M=this._hexcolor(),M===null?(u===null&&(F=i.LT(1).startLine,$=i.LT(1).startCol),p===null&&(i.LA(3)===c.EQUALS&&this.options.ieFilters?p=this._ie_function():p=this._function())):(p=M.value,u===null&&(F=M.startLine,$=M.startCol))),R!==null?R:p!==null?new S(u!==null?u+p:p,F,$):null},_function:function(){var r=this._tokenStream,i=null,u=null,p;if(r.match(c.FUNCTION)){if(i=r.token().value,this._readWhitespace(),u=this._expr(!0),i+=u,this.options.ieFilters&&r.peek()===c.EQUALS)do for(this._readWhitespace()&&(i+=r.token().value),r.LA(0)===c.COMMA&&(i+=r.token().value),r.match(c.IDENT),i+=r.token().value,r.match(c.EQUALS),i+=r.token().value,p=r.peek();p!==c.COMMA&&p!==c.S&&p!==c.RPAREN;)r.get(),i+=r.token().value,p=r.peek();while(r.match([c.COMMA,c.S]));r.match(c.RPAREN),i+=")",this._readWhitespace()}return i},_ie_function:function(){var r=this._tokenStream,i=null,u;if(r.match([c.IE_FUNCTION,c.FUNCTION])){i=r.token().value;do for(this._readWhitespace()&&(i+=r.token().value),r.LA(0)===c.COMMA&&(i+=r.token().value),r.match(c.IDENT),i+=r.token().value,r.match(c.EQUALS),i+=r.token().value,u=r.peek();u!==c.COMMA&&u!==c.S&&u!==c.RPAREN;)r.get(),i+=r.token().value,u=r.peek();while(r.match([c.COMMA,c.S]));r.match(c.RPAREN),i+=")",this._readWhitespace()}return i},_hexcolor:function(){var r=this._tokenStream,i=null,u;if(r.match(c.HASH)){if(i=r.token(),u=i.value,!/#[a-f0-9]{3,6}/i.test(u))throw new a("Expected a hex color but found '"+u+"' at line "+i.startLine+", col "+i.startCol+".",i.startLine,i.startCol);this._readWhitespace()}return i},_keyframes:function(){var r=this._tokenStream,i,u,p,x="";for(r.mustMatch(c.KEYFRAMES_SYM),i=r.token(),/^@-([^-]+)-/.test(i.value)&&(x=RegExp.$1),this._readWhitespace(),p=this._keyframe_name(),this._readWhitespace(),r.mustMatch(c.LBRACE),this.fire({type:"startkeyframes",name:p,prefix:x,line:i.startLine,col:i.startCol}),this._readWhitespace(),u=r.peek();u===c.IDENT||u===c.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),u=r.peek();this.fire({type:"endkeyframes",name:p,prefix:x,line:i.startLine,col:i.startCol}),this._readWhitespace(),r.mustMatch(c.RBRACE),this._readWhitespace()},_keyframe_name:function(){var r=this._tokenStream;return r.mustMatch([c.IDENT,c.STRING]),o.fromToken(r.token())},_keyframe_rule:function(){var r=this._key_list();this.fire({type:"startkeyframerule",keys:r,line:r[0].line,col:r[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:r,line:r[0].line,col:r[0].col})},_key_list:function(){var r=this._tokenStream,i=[];for(i.push(this._key()),this._readWhitespace();r.match(c.COMMA);)this._readWhitespace(),i.push(this._key()),this._readWhitespace();return i},_key:function(){var r=this._tokenStream,i;if(r.match(c.PERCENTAGE))return o.fromToken(r.token());if(r.match(c.IDENT)){if(i=r.token(),/from|to/i.test(i.value))return o.fromToken(i);r.unget()}this._unexpectedToken(r.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([c.S,c.CDO,c.CDC]););},_readDeclarations:function(r,i){var u=this._tokenStream,p;this._readWhitespace(),r&&u.mustMatch(c.LBRACE),this._readWhitespace();try{for(;;){if(!(u.match(c.SEMICOLON)||i&&this._margin()))if(this._declaration()){if(!u.match(c.SEMICOLON))break}else break;this._readWhitespace()}u.mustMatch(c.RBRACE),this._readWhitespace()}catch(x){if(x instanceof a&&!this.options.strict){if(this.fire({type:"error",error:x,message:x.message,line:x.line,col:x.col}),p=u.advance([c.SEMICOLON,c.RBRACE]),p===c.SEMICOLON)this._readDeclarations(!1,i);else if(p!==c.EOF&&p!==c.RBRACE)throw x}else throw x}},_readWhitespace:function(){for(var r=this._tokenStream,i="";r.match(c.S);)i+=r.token().value;return i},_unexpectedToken:function(r){throw new a("Unexpected token '"+r.value+"' at line "+r.startLine+", col "+r.startCol+".",r.startLine,r.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==c.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(r,i){z.validate(r,i)},parse:function(r){this._tokenStream=new O(r,c),this._stylesheet()},parseStyleSheet:function(r){return this.parse(r)},parseMediaQuery:function(r){this._tokenStream=new O(r,c);var i=this._media_query();return this._verifyEnd(),i},parsePropertyValue:function(r){this._tokenStream=new O(r,c),this._readWhitespace();var i=this._expr();return this._readWhitespace(),this._verifyEnd(),i},parseRule:function(r){this._tokenStream=new O(r,c),this._readWhitespace();var i=this._ruleset();return this._readWhitespace(),this._verifyEnd(),i},parseSelector:function(r){this._tokenStream=new O(r,c),this._readWhitespace();var i=this._selector();return this._readWhitespace(),this._verifyEnd(),i},parseStyleAttribute:function(r){r+="}",this._tokenStream=new O(r,c),this._readDeclarations()}};for(I in _)Object.prototype.hasOwnProperty.call(_,I)&&(U[I]=_[I]);return U}()},{"../util/EventTarget":23,"../util/SyntaxError":25,"../util/SyntaxUnit":26,"./Combinator":2,"./MediaFeature":4,"./MediaQuery":5,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./TokenStream":17,"./Tokens":18,"./Validation":19}],7:[function(n,f,h){"use strict";var s=f.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"[ none | forwards | backwards | both ]#","animation-iteration-count":"[ <number> | infinite ]#","animation-name":"[ none | <single-animation-name> ]#","animation-play-state":"[ running | paused ]#","animation-timing-function":1,"-moz-animation-delay":"<time>#","-moz-animation-direction":"[ normal | alternate ]#","-moz-animation-duration":"<time>#","-moz-animation-iteration-count":"[ <number> | infinite ]#","-moz-animation-name":"[ none | <single-animation-name> ]#","-moz-animation-play-state":"[ running | paused ]#","-ms-animation-delay":"<time>#","-ms-animation-direction":"[ normal | alternate ]#","-ms-animation-duration":"<time>#","-ms-animation-iteration-count":"[ <number> | infinite ]#","-ms-animation-name":"[ none | <single-animation-name> ]#","-ms-animation-play-state":"[ running | paused ]#","-webkit-animation-delay":"<time>#","-webkit-animation-direction":"[ normal | alternate ]#","-webkit-animation-duration":"<time>#","-webkit-animation-fill-mode":"[ none | forwards | backwards | both ]#","-webkit-animation-iteration-count":"[ <number> | infinite ]#","-webkit-animation-name":"[ none | <single-animation-name> ]#","-webkit-animation-play-state":"[ running | paused ]#","-o-animation-delay":"<time>#","-o-animation-direction":"[ normal | alternate ]#","-o-animation-duration":"<time>#","-o-animation-iteration-count":"[ <number> | infinite ]#","-o-animation-name":"[ none | <single-animation-name> ]#","-o-animation-play-state":"[ running | paused ]#",appearance:"none | auto","-moz-appearance":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","-ms-appearance":"none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal","-webkit-appearance":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical","-o-appearance":"none | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",azimuth:"<azimuth>","backface-visibility":"visible | hidden",background:1,"background-attachment":"<attachment>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline | sub | super | <percentage> | <length>",behavior:1,binding:1,bleed:"<length>","bookmark-label":"<content> | <attr> | <string>","bookmark-level":"none | <integer>","bookmark-state":"open | closed","bookmark-target":"none | <uri> | <attr>",border:"<border-width> || <border-style> || <color>","border-bottom":"<border-width> || <border-style> || <color>","border-bottom-color":"<color>","border-bottom-left-radius":"<x-one-radius>","border-bottom-right-radius":"<x-one-radius>","border-bottom-style":"<border-style>","border-bottom-width":"<border-width>","border-collapse":"collapse | separate","border-color":"<color>{1,4}","border-image":1,"border-image-outset":"[ <length> | <number> ]{1,4}","border-image-repeat":"[ stretch | repeat | round | space ]{1,2}","border-image-slice":"<border-image-slice>","border-image-source":"<image> | none","border-image-width":"[ <length> | <percentage> | <number> | auto ]{1,4}","border-left":"<border-width> || <border-style> || <color>","border-left-color":"<color>","border-left-style":"<border-style>","border-left-width":"<border-width>","border-radius":"<border-radius>","border-right":"<border-width> || <border-style> || <color>","border-right-color":"<color>","border-right-style":"<border-style>","border-right-width":"<border-width>","border-spacing":"<length>{1,2}","border-style":"<border-style>{1,4}","border-top":"<border-width> || <border-style> || <color>","border-top-color":"<color>","border-top-left-radius":"<x-one-radius>","border-top-right-radius":"<x-one-radius>","border-top-style":"<border-style>","border-top-width":"<border-width>","border-width":"<border-width>{1,4}",bottom:"<margin-width>","-moz-box-align":"start | end | center | baseline | stretch","-moz-box-decoration-break":"slice | clone","-moz-box-direction":"normal | reverse","-moz-box-flex":"<number>","-moz-box-flex-group":"<integer>","-moz-box-lines":"single | multiple","-moz-box-ordinal-group":"<integer>","-moz-box-orient":"horizontal | vertical | inline-axis | block-axis","-moz-box-pack":"start | end | center | justify","-o-box-decoration-break":"slice | clone","-webkit-box-align":"start | end | center | baseline | stretch","-webkit-box-decoration-break":"slice | clone","-webkit-box-direction":"normal | reverse","-webkit-box-flex":"<number>","-webkit-box-flex-group":"<integer>","-webkit-box-lines":"single | multiple","-webkit-box-ordinal-group":"<integer>","-webkit-box-orient":"horizontal | vertical | inline-axis | block-axis","-webkit-box-pack":"start | end | center | justify","box-decoration-break":"slice | clone","box-shadow":"<box-shadow>","box-sizing":"content-box | border-box","break-after":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-before":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-inside":"auto | avoid | avoid-page | avoid-column","caption-side":"top | bottom",clear:"none | right | left | both",clip:"<shape> | auto","-webkit-clip-path":"<clip-source> | <clip-path> | none","clip-path":"<clip-source> | <clip-path> | none","clip-rule":"nonzero | evenodd",color:"<color>","color-interpolation":"auto | sRGB | linearRGB","color-interpolation-filters":"auto | sRGB | linearRGB","color-profile":1,"color-rendering":"auto | optimizeSpeed | optimizeQuality","column-count":"<integer> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<border-width> || <border-style> || <color>","column-rule-color":"<color>","column-rule-style":"<border-style>","column-rule-width":"<border-width>","column-span":"none | all","column-width":"<length> | auto",columns:1,content:1,"counter-increment":1,"counter-reset":1,crop:"<shape> | auto",cue:"cue-after | cue-before","cue-after":1,"cue-before":1,cursor:1,direction:"ltr | rtl",display:"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | run-in | ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container | contents | none | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex","dominant-baseline":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge","drop-initial-after-adjust":"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>","drop-initial-after-align":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-before-adjust":"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>","drop-initial-before-align":"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-size":"auto | line | <length> | <percentage>","drop-initial-value":"<integer>",elevation:"<angle> | below | level | above | higher | lower","empty-cells":"show | hide","enable-background":1,fill:"<paint>","fill-opacity":"<opacity-value>","fill-rule":"nonzero | evenodd",filter:"<filter-function-list> | none",fit:"fill | hidden | meet | slice","fit-position":1,flex:"<flex>","flex-basis":"<width>","flex-direction":"row | row-reverse | column | column-reverse","flex-flow":"<flex-direction> || <flex-wrap>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap | wrap | wrap-reverse","-webkit-flex":"<flex>","-webkit-flex-basis":"<width>","-webkit-flex-direction":"row | row-reverse | column | column-reverse","-webkit-flex-flow":"<flex-direction> || <flex-wrap>","-webkit-flex-grow":"<number>","-webkit-flex-shrink":"<number>","-webkit-flex-wrap":"nowrap | wrap | wrap-reverse","-ms-flex":"<flex>","-ms-flex-align":"start | end | center | stretch | baseline","-ms-flex-direction":"row | row-reverse | column | column-reverse","-ms-flex-order":"<number>","-ms-flex-pack":"start | end | center | justify | distribute","-ms-flex-wrap":"nowrap | wrap | wrap-reverse",float:"left | right | none","float-offset":1,"flood-color":1,"flood-opacity":"<opacity-value>",font:"<font-shorthand> | caption | icon | menu | message-box | small-caption | status-bar","font-family":"<font-family>","font-feature-settings":"<feature-tag-value> | normal","font-kerning":"auto | normal | none","font-size":"<font-size>","font-size-adjust":"<number> | none","font-stretch":"<font-stretch>","font-style":"<font-style>","font-variant":"<font-variant> | normal | none","font-variant-alternates":"<font-variant-alternates> | normal","font-variant-caps":"<font-variant-caps> | normal","font-variant-east-asian":"<font-variant-east-asian> | normal","font-variant-ligatures":"<font-variant-ligatures> | normal | none","font-variant-numeric":"<font-variant-numeric> | normal","font-variant-position":"normal | sub | super","font-weight":"<font-weight>",gap:"[ <length> | <percentage> ]{1,2}","glyph-orientation-horizontal":"<glyph-angle>","glyph-orientation-vertical":"auto | <glyph-angle>",grid:1,"grid-area":1,"grid-auto-columns":1,"grid-auto-flow":1,"grid-auto-position":1,"grid-auto-rows":1,"grid-cell-stacking":"columns | rows | layer","grid-column":1,"grid-columns":1,"grid-column-align":"start | end | center | stretch","grid-column-sizing":1,"grid-column-start":1,"grid-column-end":1,"grid-column-span":"<integer>","grid-flow":"none | rows | columns","grid-gap":"[ <length> | <percentage> ]{1,2}","grid-layer":"<integer>","grid-row":1,"grid-rows":1,"grid-row-align":"start | end | center | stretch","grid-row-gap":1,"grid-row-start":1,"grid-row-end":1,"grid-row-span":"<integer>","grid-row-sizing":1,"grid-template":1,"grid-template-areas":1,"grid-template-columns":1,"grid-template-rows":1,"hanging-punctuation":1,height:"<margin-width> | <content-sizing>","hyphenate-after":"<integer> | auto","hyphenate-before":"<integer> | auto","hyphenate-character":"<string> | auto","hyphenate-lines":"no-limit | <integer>","hyphenate-resource":1,hyphens:"none | manual | auto",icon:1,"image-orientation":"angle | auto","image-rendering":"auto | optimizeSpeed | optimizeQuality","image-resolution":1,"ime-mode":"auto | normal | active | inactive | disabled","inline-box-align":"last | <integer>","justify-content":"flex-start | flex-end | center | space-between | space-around | space-evenly | stretch","-webkit-justify-content":"flex-start | flex-end | center | space-between | space-around | space-evenly | stretch",kerning:"auto | <length>",left:"<margin-width>","letter-spacing":"<length> | normal","line-height":"<line-height>","line-break":"auto | loose | normal | strict","line-stacking":1,"line-stacking-ruby":"exclude-ruby | include-ruby","line-stacking-shift":"consider-shifts | disregard-shifts","line-stacking-strategy":"inline-line-height | block-line-height | max-height | grid-height","list-style":1,"list-style-image":"<uri> | none","list-style-position":"inside | outside","list-style-type":"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none",margin:"<margin-width>{1,4}","margin-bottom":"<margin-width>","margin-left":"<margin-width>","margin-right":"<margin-width>","margin-top":"<margin-width>",mark:1,"mark-after":1,"mark-before":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,marks:1,"marquee-direction":1,"marquee-play-count":1,"marquee-speed":1,"marquee-style":1,mask:1,"max-height":"<length> | <percentage> | <content-sizing> | none","max-width":"<length> | <percentage> | <content-sizing> | none","min-height":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","min-width":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","mix-blend-mode":"<blend-mode>","move-to":1,"nav-down":1,"nav-index":1,"nav-left":1,"nav-right":1,"nav-up":1,"object-fit":"fill | contain | cover | none | scale-down","object-position":"<position>",opacity:"<opacity-value>",order:"<integer>","-webkit-order":"<integer>",orphans:"<integer>",outline:1,"outline-color":"<color> | invert","outline-offset":1,"outline-style":"<border-style>","outline-width":"<border-width>",overflow:"visible | hidden | scroll | auto","overflow-style":1,"overflow-wrap":"normal | break-word","overflow-x":1,"overflow-y":1,padding:"<padding-width>{1,4}","padding-bottom":"<padding-width>","padding-left":"<padding-width>","padding-right":"<padding-width>","padding-top":"<padding-width>",page:1,"page-break-after":"auto | always | avoid | left | right","page-break-before":"auto | always | avoid | left | right","page-break-inside":"auto | avoid","page-policy":1,pause:1,"pause-after":1,"pause-before":1,perspective:1,"perspective-origin":1,phonemes:1,pitch:1,"pitch-range":1,"play-during":1,"pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all",position:"static | relative | absolute | fixed | sticky | -webkit-sticky","presentation-level":1,"punctuation-trim":1,quotes:1,"rendering-intent":1,resize:1,rest:1,"rest-after":1,"rest-before":1,richness:1,right:"<margin-width>",rotation:1,"rotation-point":1,"ruby-align":1,"ruby-overhang":1,"ruby-position":1,"ruby-span":1,"shape-rendering":"auto | optimizeSpeed | crispEdges | geometricPrecision",size:1,speak:"normal | none | spell-out","speak-header":"once | always","speak-numeral":"digits | continuous","speak-punctuation":"code | none","speech-rate":1,src:1,"stop-color":1,"stop-opacity":"<opacity-value>",stress:1,"string-set":1,stroke:"<paint>","stroke-dasharray":"none | <dasharray>","stroke-dashoffset":"<percentage> | <length>","stroke-linecap":"butt | round | square","stroke-linejoin":"miter | round | bevel","stroke-miterlimit":"<miterlimit>","stroke-opacity":"<opacity-value>","stroke-width":"<percentage> | <length>","table-layout":"auto | fixed","tab-size":"<integer> | <length>",target:1,"target-name":1,"target-new":1,"target-position":1,"text-align":"left | right | center | justify | match-parent | start | end","text-align-last":1,"text-anchor":"start | middle | end","text-decoration":"<text-decoration-line> || <text-decoration-style> || <text-decoration-color>","text-decoration-color":"<text-decoration-color>","text-decoration-line":"<text-decoration-line>","text-decoration-style":"<text-decoration-style>","text-decoration-skip":"none | [ objects || spaces || ink || edges || box-decoration ]","-webkit-text-decoration-skip":"none | [ objects || spaces || ink || edges || box-decoration ]","text-underline-position":"auto | [ under || [ left | right ] ]","text-emphasis":1,"text-height":1,"text-indent":"<length> | <percentage>","text-justify":"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida","text-outline":1,"text-overflow":1,"text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","text-shadow":1,"text-transform":"capitalize | uppercase | lowercase | none","text-wrap":"normal | none | avoid",top:"<margin-width>","-ms-touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation","touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",transform:1,"transform-origin":1,"transform-style":1,transition:1,"transition-delay":1,"transition-duration":1,"transition-property":1,"transition-timing-function":1,"unicode-bidi":"normal | embed | isolate | bidi-override | isolate-override | plaintext","user-modify":"read-only | read-write | write-only","user-select":"auto | text | none | contain | all","vertical-align":"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",visibility:"visible | hidden | collapse","voice-balance":1,"voice-duration":1,"voice-family":1,"voice-pitch":1,"voice-pitch-range":1,"voice-rate":1,"voice-stress":1,"voice-volume":1,volume:1,"white-space":"normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap","white-space-collapse":1,widows:"<integer>",width:"<length> | <percentage> | <content-sizing> | auto","will-change":"<will-change>","word-break":"normal | keep-all | break-all | break-word","word-spacing":"<length> | normal","word-wrap":"normal | break-word","writing-mode":"horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb","z-index":"<integer> | auto",zoom:"<number> | <percentage> | normal"}},{}],8:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l,d,g){s.call(this,t,d,g,a.PROPERTY_NAME_TYPE),this.hack=l}o.prototype=new s,o.prototype.constructor=o,o.prototype.toString=function(){return(this.hack?this.hack:"")+this.text}},{"../util/SyntaxUnit":26,"./Parser":6}],9:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l,d){s.call(this,t.join(" "),l,d,a.PROPERTY_VALUE_TYPE),this.parts=t}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],10:[function(n,f,h){"use strict";f.exports=s;function s(a){this._i=0,this._parts=a.parts,this._marks=[],this.value=a}s.prototype.count=function(){return this._parts.length},s.prototype.isFirst=function(){return this._i===0},s.prototype.hasNext=function(){return this._i<this._parts.length},s.prototype.mark=function(){this._marks.push(this._i)},s.prototype.peek=function(a){return this.hasNext()?this._parts[this._i+(a||0)]:null},s.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},s.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},s.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},s.prototype.drop=function(){this._marks.pop()}},{}],11:[function(n,f,h){"use strict";f.exports=l;var s=n("../util/SyntaxUnit"),a=n("./Colors"),o=n("./Parser"),t=n("./Tokens");function l(d,g,w,S){var E=S||{};s.call(this,d,g,w,o.PROPERTY_VALUE_PART_TYPE),this.type="unknown";var T;if(/^([+-]?[\d.]+)([a-z]+)$/i.test(d))switch(this.type="dimension",this.value=Number(RegExp.$1),this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vmax":case"vmin":this.type="length";break;case"fr":this.type="grid";break;case"deg":case"rad":case"grad":case"turn":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution";break}else/^([+-]?[\d.]+)%$/i.test(d)?(this.type="percentage",this.value=Number(RegExp.$1)):/^([+-]?\d+)$/i.test(d)?(this.type="integer",this.value=Number(RegExp.$1)):/^([+-]?[\d.]+)$/i.test(d)?(this.type="number",this.value=Number(RegExp.$1)):/^#([a-f0-9]{3,6})/i.test(d)?(this.type="color",T=RegExp.$1,T.length===3?(this.red=parseInt(T.charAt(0)+T.charAt(0),16),this.green=parseInt(T.charAt(1)+T.charAt(1),16),this.blue=parseInt(T.charAt(2)+T.charAt(2),16)):(this.red=parseInt(T.substring(0,2),16),this.green=parseInt(T.substring(2,4),16),this.blue=parseInt(T.substring(4,6),16))):/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i.test(d)?(this.type="color",this.red=Number(RegExp.$1),this.green=Number(RegExp.$2),this.blue=Number(RegExp.$3)):/^rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(d)?(this.type="color",this.red=Number(RegExp.$1)*255/100,this.green=Number(RegExp.$2)*255/100,this.blue=Number(RegExp.$3)*255/100):/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/i.test(d)?(this.type="color",this.red=Number(RegExp.$1),this.green=Number(RegExp.$2),this.blue=Number(RegExp.$3),this.alpha=Number(RegExp.$4)):/^rgba\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)/i.test(d)?(this.type="color",this.red=Number(RegExp.$1)*255/100,this.green=Number(RegExp.$2)*255/100,this.blue=Number(RegExp.$3)*255/100,this.alpha=Number(RegExp.$4)):/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(d)?(this.type="color",this.hue=Number(RegExp.$1),this.saturation=Number(RegExp.$2)/100,this.lightness=Number(RegExp.$3)/100):/^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)/i.test(d)?(this.type="color",this.hue=Number(RegExp.$1),this.saturation=Number(RegExp.$2)/100,this.lightness=Number(RegExp.$3)/100,this.alpha=Number(RegExp.$4)):/^url\(("([^\\"]|\.)*")\)/i.test(d)?(this.type="uri",this.uri=l.parseString(RegExp.$1)):/^([^(]+)\(/i.test(d)?(this.type="function",this.name=RegExp.$1,this.value=d):/^"([^\n\r\f\\"]|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*"/i.test(d)?(this.type="string",this.value=l.parseString(d)):/^'([^\n\r\f\\']|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*'/i.test(d)?(this.type="string",this.value=l.parseString(d)):a[d.toLowerCase()]?(this.type="color",T=a[d.toLowerCase()].substring(1),this.red=parseInt(T.substring(0,2),16),this.green=parseInt(T.substring(2,4),16),this.blue=parseInt(T.substring(4,6),16)):/^[,/]$/.test(d)?(this.type="operator",this.value=d):/^-?[a-z_\u00A0-\uFFFF][a-z0-9\-_\u00A0-\uFFFF]*$/i.test(d)&&(this.type="identifier",this.value=d);this.wasIdent=Boolean(E.ident)}l.prototype=new s,l.prototype.constructor=l,l.parseString=function(d){d=d.slice(1,-1);var g=function(w,S){if(/^(\n|\r\n|\r|\f)$/.test(S))return"";var E=/^[0-9a-f]{1,6}/i.exec(S);if(E){var T=parseInt(E[0],16);return String.fromCodePoint?String.fromCodePoint(T):String.fromCharCode(T)}return S};return d.replace(/\\(\r\n|[^\r0-9a-f]|[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)/ig,g)},l.serializeString=function(d){var g=function(w,S){if(S==='"')return"\\"+S;var E=String.codePointAt?String.codePointAt(0):String.charCodeAt(0);return"\\"+E.toString(16)+" "};return'"'+d.replace(/["\r\n\f]/g,g)+'"'},l.fromToken=function(d){var g=new l(d.value,d.startLine,d.startCol,{ident:d.type===t.IDENT});return g}},{"../util/SyntaxUnit":26,"./Colors":1,"./Parser":6,"./Tokens":18}],12:[function(n,f,h){"use strict";var s=f.exports={__proto__:null,":first-letter":1,":first-line":1,":before":1,":after":1};s.ELEMENT=1,s.CLASS=2,s.isElement=function(a){return a.indexOf("::")===0||s[a.toLowerCase()]===s.ELEMENT}},{}],13:[function(n,f,h){"use strict";f.exports=t;var s=n("../util/SyntaxUnit"),a=n("./Parser"),o=n("./Specificity");function t(l,d,g){s.call(this,l.join(" "),d,g,a.SELECTOR_TYPE),this.parts=l,this.specificity=o.calculate(this)}t.prototype=new s,t.prototype.constructor=t},{"../util/SyntaxUnit":26,"./Parser":6,"./Specificity":16}],14:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l,d,g,w){s.call(this,d,g,w,a.SELECTOR_PART_TYPE),this.elementName=t,this.modifiers=l}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],15:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l,d,g){s.call(this,t,d,g,a.SELECTOR_SUB_PART_TYPE),this.type=l,this.args=[]}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],16:[function(n,f,h){"use strict";f.exports=o;var s=n("./Pseudos"),a=n("./SelectorPart");function o(t,l,d,g){this.a=t,this.b=l,this.c=d,this.d=g}o.prototype={constructor:o,compare:function(t){var l=["a","b","c","d"],d,g;for(d=0,g=l.length;d<g;d++){if(this[l[d]]<t[l[d]])return-1;if(this[l[d]]>t[l[d]])return 1}return 0},valueOf:function(){return this.a*1e3+this.b*100+this.c*10+this.d},toString:function(){return this.a+","+this.b+","+this.c+","+this.d}},o.calculate=function(t){var l,d,g,w=0,S=0,E=0;function T(A){var O,c,z,C,U=A.elementName?A.elementName.text:"",I;for(U&&U.charAt(U.length-1)!=="*"&&E++,O=0,z=A.modifiers.length;O<z;O++)switch(I=A.modifiers[O],I.type){case"class":case"attribute":S++;break;case"id":w++;break;case"pseudo":s.isElement(I.text)?E++:S++;break;case"not":for(c=0,C=I.args.length;c<C;c++)T(I.args[c])}}for(l=0,d=t.parts.length;l<d;l++)g=t.parts[l],g instanceof a&&T(g);return new o(0,w,S,E)}},{"./Pseudos":12,"./SelectorPart":14}],17:[function(n,f,h){"use strict";f.exports=I;var s=n("../util/TokenStreamBase"),a=n("./PropertyValuePart"),o=n("./Tokens"),t=/^[0-9a-fA-F]$/,l=/^[\u00A0-\uFFFF]$/,d=/\n|\r\n|\r|\f/,g=/\u0009|\u000a|\u000c|\u000d|\u0020/;function w(_){return _!=null&&t.test(_)}function S(_){return _!=null&&/\d/.test(_)}function E(_){return _!=null&&g.test(_)}function T(_){return _!=null&&d.test(_)}function A(_){return _!=null&&/[a-z_\u00A0-\uFFFF\\]/i.test(_)}function O(_){return _!=null&&(A(_)||/[0-9\-\\]/.test(_))}function c(_){return _!=null&&(A(_)||/-\\/.test(_))}function z(_,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(_[i]=r[i]);return _}function C(_){return typeof _=="string"&&(_[0]==="-"&&A(_[1])||A(_[0]))}function U(_){return typeof _=="string"&&(S(_[0])||_[0]==="."&&S(_[1]))}function I(_){s.call(this,_,o)}I.prototype=z(new s,{_getToken:function(){var _,r=this._reader,i=null,u=r.getLine(),p=r.getCol();for(_=r.read();_;){switch(_){case"/":r.peek()==="*"?i=this.commentToken(_,u,p):i=this.charToken(_,u,p);break;case"|":case"~":case"^":case"$":case"*":r.peek()==="="?i=this.comparisonToken(_,u,p):i=this.charToken(_,u,p);break;case'"':case"'":i=this.stringToken(_,u,p);break;case"#":O(r.peek())?i=this.hashToken(_,u,p):i=this.charToken(_,u,p);break;case".":S(r.peek())?i=this.numberToken(_,u,p):i=this.charToken(_,u,p);break;case"-":if(U(r.peekCount(2))){i=this.numberToken(_,u,p);break}else r.peekCount(2)==="->"?i=this.htmlCommentEndToken(_,u,p):i=this._getDefaultToken(_,u,p);break;case"+":U(r.peekCount(2))?i=this.numberToken(_,u,p):i=this.charToken(_,u,p);break;case"!":i=this.importantToken(_,u,p);break;case"@":i=this.atRuleToken(_,u,p);break;case":":i=this.notToken(_,u,p);break;case"<":i=this.htmlCommentStartToken(_,u,p);break;case"\\":/[^\r\n\f]/.test(r.peek())?i=this.identOrFunctionToken(this.readEscape(_,!0),u,p):i=this.charToken(_,u,p);break;case"U":case"u":r.peek()==="+"?i=this.unicodeRangeToken(_,u,p):i=this._getDefaultToken(_,u,p);break;default:i=this._getDefaultToken(_,u,p)}break}return!i&&_===null&&(i=this.createToken(o.EOF,null,u,p)),i},_getDefaultToken:function(_,r,i){var u=this._reader,p=null;return S(_)?p=this.numberToken(_,r,i):E(_)?p=this.whitespaceToken(_,r,i):C(_+u.peekCount(1))?p=this.identOrFunctionToken(_,r,i):p=this.charToken(_,r,i),p},createToken:function(_,r,i,u,p){var x=this._reader;return p=p||{},{value:r,type:_,channel:p.channel,endChar:p.endChar,hide:p.hide||!1,startLine:i,startCol:u,endLine:x.getLine(),endCol:x.getCol()}},atRuleToken:function(_,r,i){var u=_,p=this._reader,x=o.CHAR,R;return p.mark(),R=this.readName(),u=_+R,x=o.type(u.toLowerCase()),(x===o.CHAR||x===o.UNKNOWN)&&(u.length>1?x=o.UNKNOWN_SYM:(x=o.CHAR,u=_,p.reset())),this.createToken(x,u,r,i)},charToken:function(_,r,i){var u=o.type(_),p={};return u===-1?u=o.CHAR:p.endChar=o[u].endChar,this.createToken(u,_,r,i,p)},commentToken:function(_,r,i){var u=this.readComment(_);return this.createToken(o.COMMENT,u,r,i)},comparisonToken:function(_,r,i){var u=this._reader,p=_+u.read(),x=o.type(p)||o.CHAR;return this.createToken(x,p,r,i)},hashToken:function(_,r,i){var u=this.readName(_);return this.createToken(o.HASH,u,r,i)},htmlCommentStartToken:function(_,r,i){var u=this._reader,p=_;return u.mark(),p+=u.readCount(3),p==="<!--"?this.createToken(o.CDO,p,r,i):(u.reset(),this.charToken(_,r,i))},htmlCommentEndToken:function(_,r,i){var u=this._reader,p=_;return u.mark(),p+=u.readCount(2),p==="-->"?this.createToken(o.CDC,p,r,i):(u.reset(),this.charToken(_,r,i))},identOrFunctionToken:function(_,r,i){var u=this._reader,p=this.readName(_),x=o.IDENT,R=["url(","url-prefix(","domain("],M;return u.peek()==="("?(p+=u.read(),R.indexOf(p.toLowerCase())>-1?(u.mark(),M=this.readURI(p),M===null?(u.reset(),x=o.FUNCTION):(x=o.URI,p=M)):x=o.FUNCTION):u.peek()===":"&&p.toLowerCase()==="progid"&&(p+=u.readTo("("),x=o.IE_FUNCTION),this.createToken(x,p,r,i)},importantToken:function(_,r,i){var u=this._reader,p=_,x=o.CHAR,R,M;for(u.mark(),M=u.read();M;){if(M==="/"){if(u.peek()!=="*")break;if(R=this.readComment(M),R==="")break}else if(E(M))p+=M+this.readWhitespace();else if(/i/i.test(M)){R=u.readCount(8),/mportant/i.test(R)&&(p+=M+R,x=o.IMPORTANT_SYM);break}else break;M=u.read()}return x===o.CHAR?(u.reset(),this.charToken(_,r,i)):this.createToken(x,p,r,i)},notToken:function(_,r,i){var u=this._reader,p=_;return u.mark(),p+=u.readCount(4),p.toLowerCase()===":not("?this.createToken(o.NOT,p,r,i):(u.reset(),this.charToken(_,r,i))},numberToken:function(_,r,i){var u=this._reader,p=this.readNumber(_),x,R=o.NUMBER,M=u.peek();return c(M)?(x=this.readName(u.read()),p+=x,/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^fr$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(x)?R=o.LENGTH:/^deg|^rad$|^grad$|^turn$/i.test(x)?R=o.ANGLE:/^ms$|^s$/i.test(x)?R=o.TIME:/^hz$|^khz$/i.test(x)?R=o.FREQ:/^dpi$|^dpcm$/i.test(x)?R=o.RESOLUTION:R=o.DIMENSION):M==="%"&&(p+=u.read(),R=o.PERCENTAGE),this.createToken(R,p,r,i)},stringToken:function(_,r,i){for(var u=_,p=_,x=this._reader,R=o.STRING,M=x.read(),F;M;){if(p+=M,M==="\\"){if(M=x.read(),M===null)break;if(/[^\r\n\f0-9a-f]/i.test(M))p+=M;else{for(F=0;w(M)&&F<6;F++)p+=M,M=x.read();if(M==="\r"&&x.peek()===`
|
|
`&&(p+=M,M=x.read()),E(M))p+=M;else continue}}else{if(M===u)break;if(T(x.peek())){R=o.INVALID;break}}M=x.read()}return M===null&&(R=o.INVALID),this.createToken(R,p,r,i)},unicodeRangeToken:function(_,r,i){var u=this._reader,p=_,x,R=o.CHAR;return u.peek()==="+"&&(u.mark(),p+=u.read(),p+=this.readUnicodeRangePart(!0),p.length===2?u.reset():(R=o.UNICODE_RANGE,p.indexOf("?")===-1&&u.peek()==="-"&&(u.mark(),x=u.read(),x+=this.readUnicodeRangePart(!1),x.length===1?u.reset():p+=x))),this.createToken(R,p,r,i)},whitespaceToken:function(_,r,i){var u=_+this.readWhitespace();return this.createToken(o.S,u,r,i)},readUnicodeRangePart:function(_){for(var r=this._reader,i="",u=r.peek();w(u)&&i.length<6;)r.read(),i+=u,u=r.peek();if(_)for(;u==="?"&&i.length<6;)r.read(),i+=u,u=r.peek();return i},readWhitespace:function(){for(var _=this._reader,r="",i=_.peek();E(i);)_.read(),r+=i,i=_.peek();return r},readNumber:function(_){for(var r=this._reader,i=_,u=_===".",p=r.peek();p;){if(S(p))i+=r.read();else if(p==="."){if(u)break;u=!0,i+=r.read()}else break;p=r.peek()}return i},readString:function(){var _=this.stringToken(this._reader.read(),0,0);return _.type===o.INVALID?null:_.value},readURI:function(_){for(var r=this._reader,i=_,u="",p=r.peek();p&&E(p);)r.read(),p=r.peek();for(p==="'"||p==='"'?(u=this.readString(),u!==null&&(u=a.parseString(u))):u=this.readUnquotedURL(),p=r.peek();p&&E(p);)r.read(),p=r.peek();return u===null||p!==")"?i=null:i+=a.serializeString(u)+r.read(),i},readUnquotedURL:function(_){var r=this._reader,i=_||"",u;for(u=r.peek();u;u=r.peek())if(l.test(u)||/^[-!#$%&*-[\]-~]$/.test(u))i+=u,r.read();else if(u==="\\")if(/^[^\r\n\f]$/.test(r.peek(2)))i+=this.readEscape(r.read(),!0);else break;else break;return i},readName:function(_){var r=this._reader,i=_||"",u;for(u=r.peek();u;u=r.peek())if(u==="\\")if(/^[^\r\n\f]$/.test(r.peek(2)))i+=this.readEscape(r.read(),!0);else break;else if(O(u))i+=r.read();else break;return i},readEscape:function(_,r){var i=this._reader,u=_||"",p=0,x=i.peek();if(w(x))do u+=i.read(),x=i.peek();while(x&&w(x)&&++p<6);if(u.length===1)if(/^[^\r\n\f0-9a-f]$/.test(x)){if(i.read(),r)return x}else throw new Error("Bad escape sequence.");else x==="\r"?(i.read(),i.peek()===`
|
|
`&&(x+=i.read())):/^[ \t\n\f]$/.test(x)?i.read():x="";if(r){var R=parseInt(u.slice(_.length),16);return String.fromCodePoint?String.fromCodePoint(R):String.fromCharCode(R)}return u+x},readComment:function(_){var r=this._reader,i=_||"",u=r.read();if(u==="*"){for(;u;){if(i+=u,i.length>2&&u==="*"&&r.peek()==="/"){i+=r.read();break}u=r.read()}return i}else return""}})},{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(n,f,h){"use strict";var s=f.exports=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"SUPPORTS_SYM",text:"@supports"},{name:"VIEWPORT_SYM",text:["@viewport","@-ms-viewport","@-o-viewport"]},{name:"DOCUMENT_SYM",text:["@document","@-moz-document"]},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];(function(){var a=[],o=Object.create(null);s.UNKNOWN=-1,s.unshift({name:"EOF"});for(var t=0,l=s.length;t<l;t++)if(a.push(s[t].name),s[s[t].name]=t,s[t].text)if(s[t].text instanceof Array)for(var d=0;d<s[t].text.length;d++)o[s[t].text[d]]=t;else o[s[t].text]=t;s.name=function(g){return a[g]},s.type=function(g){return o[g]||-1}})()},{}],19:[function(n,f,h){"use strict";var s=n("./Matcher"),a=n("./Properties"),o=n("./ValidationTypes"),t=n("./ValidationError"),l=n("./PropertyValueIterator"),d=f.exports={validate:function(g,w){var S=g.toString().toLowerCase(),E=new l(w),T=a[S],A;if(T){if(typeof T!="number"){if(o.isAny(E,"inherit | initial | unset")){if(E.hasNext())throw A=E.next(),new t("Expected end of value but found '"+A+"'.",A.line,A.col);return}this.singleProperty(T,E)}}else if(S.indexOf("-")!==0)throw new t("Unknown property '"+g+"'.",g.line,g.col)},singleProperty:function(g,w){var S=!1,E=w.value,T;if(S=s.parse(g).match(w),S){if(w.hasNext())throw T=w.next(),new t("Expected end of value but found '"+T+"'.",T.line,T.col)}else throw w.hasNext()&&!w.isFirst()?(T=w.peek(),new t("Expected end of value but found '"+T+"'.",T.line,T.col)):new t("Expected ("+o.describe(g)+") but found '"+E+"'.",E.line,E.col)}}},{"./Matcher":3,"./Properties":7,"./PropertyValueIterator":10,"./ValidationError":20,"./ValidationTypes":21}],20:[function(n,f,h){"use strict";f.exports=s;function s(a,o,t){this.col=t,this.line=o,this.message=a}s.prototype=new Error},{}],21:[function(n,f,h){"use strict";var s=f.exports,a=n("./Matcher");function o(t,l){Object.keys(l).forEach(function(d){t[d]=l[d]})}o(s,{isLiteral:function(t,l){var d=t.text.toString().toLowerCase(),g=l.split(" | "),w,S,E=!1;for(w=0,S=g.length;w<S&&!E;w++)g[w].charAt(0)==="<"?E=this.simple[g[w]](t):g[w].slice(-2)==="()"?E=t.type==="function"&&t.name===g[w].slice(0,-2):d===g[w].toLowerCase()&&(E=!0);return E},isSimple:function(t){return Boolean(this.simple[t])},isComplex:function(t){return Boolean(this.complex[t])},describe:function(t){return this.complex[t]instanceof a?this.complex[t].toString(0):t},isAny:function(t,l){var d=l.split(" | "),g,w,S=!1;for(g=0,w=d.length;g<w&&!S&&t.hasNext();g++)S=this.isType(t,d[g]);return S},isAnyOfGroup:function(t,l){var d=l.split(" || "),g,w,S=!1;for(g=0,w=d.length;g<w&&!S;g++)S=this.isType(t,d[g]);return S?d[g-1]:!1},isType:function(t,l){var d=t.peek(),g=!1;return l.charAt(0)!=="<"?(g=this.isLiteral(d,l),g&&t.next()):this.simple[l]?(g=this.simple[l](d),g&&t.next()):this.complex[l]instanceof a?g=this.complex[l].match(t):g=this.complex[l](t),g},simple:{__proto__:null,"<absolute-size>":"xx-small | x-small | small | medium | large | x-large | xx-large","<animateable-feature>":"scroll-position | contents | <animateable-feature-name>","<animateable-feature-name>":function(t){return this["<ident>"](t)&&!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(t)},"<angle>":function(t){return t.type==="angle"},"<attachment>":"scroll | fixed | local","<attr>":"attr()","<basic-shape>":"inset() | circle() | ellipse() | polygon()","<bg-image>":"<image> | <gradient> | none","<border-style>":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","<border-width>":"<length> | thin | medium | thick","<box>":"padding-box | border-box | content-box","<clip-source>":"<uri>","<color>":function(t){return t.type==="color"||String(t)==="transparent"||String(t)==="currentColor"},"<color-svg>":function(t){return t.type==="color"},"<content>":"content()","<content-sizing>":"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content","<feature-tag-value>":function(t){return t.type==="function"&&/^[A-Z0-9]{4}$/i.test(t)},"<filter-function>":"blur() | brightness() | contrast() | custom() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia()","<flex-basis>":"<width>","<flex-direction>":"row | row-reverse | column | column-reverse","<flex-grow>":"<number>","<flex-shrink>":"<number>","<flex-wrap>":"nowrap | wrap | wrap-reverse","<font-size>":"<absolute-size> | <relative-size> | <length> | <percentage>","<font-stretch>":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded","<font-style>":"normal | italic | oblique","<font-variant-caps>":"small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","<font-variant-css21>":"normal | small-caps","<font-weight>":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900","<generic-family>":"serif | sans-serif | cursive | fantasy | monospace","<geometry-box>":"<shape-box> | fill-box | stroke-box | view-box","<glyph-angle>":function(t){return t.type==="angle"&&t.units==="deg"},"<gradient>":function(t){return t.type==="function"&&/^(?:-(?:ms|moz|o|webkit)-)?(?:repeating-)?(?:radial-|linear-)?gradient/i.test(t)},"<icccolor>":"cielab() | cielch() | cielchab() | icc-color() | icc-named-color()","<ident>":function(t){return t.type==="identifier"||t.wasIdent},"<ident-not-generic-family>":function(t){return this["<ident>"](t)&&!this["<generic-family>"](t)},"<image>":"<uri>","<integer>":function(t){return t.type==="integer"},"<length>":function(t){return t.type==="function"&&/^(?:-(?:ms|moz|o|webkit)-)?calc/i.test(t)?!0:t.type==="length"||t.type==="number"||t.type==="integer"||String(t)==="0"},"<line>":function(t){return t.type==="integer"},"<line-height>":"<number> | <length> | <percentage> | normal","<margin-width>":"<length> | <percentage> | auto","<miterlimit>":function(t){return this["<number>"](t)&&t.value>=1},"<nonnegative-length-or-percentage>":function(t){return(this["<length>"](t)||this["<percentage>"](t))&&(String(t)==="0"||t.type==="function"||t.value>=0)},"<nonnegative-number-or-percentage>":function(t){return(this["<number>"](t)||this["<percentage>"](t))&&(String(t)==="0"||t.type==="function"||t.value>=0)},"<number>":function(t){return t.type==="number"||this["<integer>"](t)},"<opacity-value>":function(t){return this["<number>"](t)&&t.value>=0&&t.value<=1},"<padding-width>":"<nonnegative-length-or-percentage>","<percentage>":function(t){return t.type==="percentage"||String(t)==="0"},"<relative-size>":"smaller | larger","<shape>":"rect() | inset-rect()","<shape-box>":"<box> | margin-box","<single-animation-direction>":"normal | reverse | alternate | alternate-reverse","<single-animation-name>":function(t){return this["<ident>"](t)&&/^-?[a-z_][-a-z0-9_]+$/i.test(t)&&!/^(none|unset|initial|inherit)$/i.test(t)},"<string>":function(t){return t.type==="string"},"<time>":function(t){return t.type==="time"},"<uri>":function(t){return t.type==="uri"},"<width>":"<margin-width>"},complex:{__proto__:null,"<azimuth>":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","<bg-position>":"<position>#","<bg-size>":"[ <length> | <percentage> | auto ]{1,2} | cover | contain","<blend-mode>":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity","<border-image-slice>":a.many([!0],a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),"fill"),"<border-radius>":"<nonnegative-length-or-percentage>{1,4} [ / <nonnegative-length-or-percentage>{1,4} ]?","<box-shadow>":"none | <shadow>#","<clip-path>":"<basic-shape> || <geometry-box>","<dasharray>":a.cast("<nonnegative-length-or-percentage>").braces(1,Infinity,"#",a.cast(",").question()),"<family-name>":"<string> | <ident-not-generic-family> <ident>*","<filter-function-list>":"[ <filter-function> | <uri> ]+","<flex>":"none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]","<font-family>":"[ <generic-family> | <family-name> ]#","<font-shorthand>":"[ <font-style> || <font-variant-css21> || <font-weight> || <font-stretch> ]? <font-size> [ / <line-height> ]? <font-family>","<font-variant-alternates>":"stylistic() || historical-forms || styleset() || character-variant() || swash() || ornaments() || annotation()","<font-variant-ligatures>":"[ common-ligatures | no-common-ligatures ] || [ discretionary-ligatures | no-discretionary-ligatures ] || [ historical-ligatures | no-historical-ligatures ] || [ contextual | no-contextual ]","<font-variant-numeric>":"[ lining-nums | oldstyle-nums ] || [ proportional-nums | tabular-nums ] || [ diagonal-fractions | stacked-fractions ] || ordinal || slashed-zero","<font-variant-east-asian>":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ] || [ full-width | proportional-width ] || ruby","<paint>":"<paint-basic> | <uri> <paint-basic>?","<paint-basic>":"none | currentColor | <color-svg> <icccolor>?","<position>":"[ center | [ left | right ] [ <percentage> | <length> ]? ] && [ center | [ top | bottom ] [ <percentage> | <length> ]? ] | [ left | center | right | <percentage> | <length> ] [ top | center | bottom | <percentage> | <length> ] | [ left | center | right | top | bottom | <percentage> | <length> ]","<repeat-style>":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","<shadow>":a.many([!0],a.cast("<length>").braces(2,4),"inset","<color>"),"<text-decoration-color>":"<color>","<text-decoration-line>":"none | [ underline || overline || line-through || blink ]","<text-decoration-style>":"solid | double | dotted | dashed | wavy","<will-change>":"auto | <animateable-feature>#","<x-one-radius>":"[ <length> | <percentage> ]{1,2}"}}),Object.keys(s.simple).forEach(function(t){var l=s.simple[t];typeof l=="string"&&(s.simple[t]=function(d){return s.isLiteral(d,l)})}),Object.keys(s.complex).forEach(function(t){var l=s.complex[t];typeof l=="string"&&(s.complex[t]=a.parse(l))}),s.complex["<font-variant>"]=a.oror({expand:"<font-variant-ligatures>"},{expand:"<font-variant-alternates>"},"<font-variant-caps>",{expand:"<font-variant-numeric>"},{expand:"<font-variant-east-asian>"})},{"./Matcher":3}],22:[function(n,f,h){"use strict";f.exports={Colors:n("./Colors"),Combinator:n("./Combinator"),Parser:n("./Parser"),PropertyName:n("./PropertyName"),PropertyValue:n("./PropertyValue"),PropertyValuePart:n("./PropertyValuePart"),Matcher:n("./Matcher"),MediaFeature:n("./MediaFeature"),MediaQuery:n("./MediaQuery"),Selector:n("./Selector"),SelectorPart:n("./SelectorPart"),SelectorSubPart:n("./SelectorSubPart"),Specificity:n("./Specificity"),TokenStream:n("./TokenStream"),Tokens:n("./Tokens"),ValidationError:n("./ValidationError")}},{"./Colors":1,"./Combinator":2,"./Matcher":3,"./MediaFeature":4,"./MediaQuery":5,"./Parser":6,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./Specificity":16,"./TokenStream":17,"./Tokens":18,"./ValidationError":20}],23:[function(n,f,h){"use strict";f.exports=s;function s(){this._listeners=Object.create(null)}s.prototype={constructor:s,addListener:function(a,o){this._listeners[a]||(this._listeners[a]=[]),this._listeners[a].push(o)},fire:function(a){if(typeof a=="string"&&(a={type:a}),typeof a.target!="undefined"&&(a.target=this),typeof a.type=="undefined")throw new Error("Event object missing 'type' property.");if(this._listeners[a.type])for(var o=this._listeners[a.type].concat(),t=0,l=o.length;t<l;t++)o[t].call(this,a)},removeListener:function(a,o){if(this._listeners[a]){for(var t=this._listeners[a],l=0,d=t.length;l<d;l++)if(t[l]===o){t.splice(l,1);break}}}}},{}],24:[function(n,f,h){"use strict";f.exports=s;function s(a){this._input=a.replace(/(\r\n?|\n)/g,`
|
|
`),this._line=1,this._col=1,this._cursor=0}s.prototype={constructor:s,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor===this._input.length},peek:function(a){var o=null;return a=typeof a=="undefined"?1:a,this._cursor<this._input.length&&(o=this._input.charAt(this._cursor+a-1)),o},read:function(){var a=null;return this._cursor<this._input.length&&(this._input.charAt(this._cursor)===`
|
|
`?(this._line++,this._col=1):this._col++,a=this._input.charAt(this._cursor++)),a},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},peekCount:function(a){return a=typeof a=="undefined"?1:Math.max(a,0),this._input.substring(this._cursor,this._cursor+a)},readTo:function(a){for(var o="",t;o.length<a.length||o.lastIndexOf(a)!==o.length-a.length;)if(t=this.read(),t)o+=t;else throw new Error('Expected "'+a+'" at line '+this._line+", col "+this._col+".");return o},readWhile:function(a){for(var o="",t=this.peek();t!==null&&a(t);)o+=this.read(),t=this.peek();return o},readMatch:function(a){var o=this._input.substring(this._cursor),t=null;return typeof a=="string"?o.slice(0,a.length)===a&&(t=this.readCount(a.length)):a instanceof RegExp&&a.test(o)&&(t=this.readCount(RegExp.lastMatch.length)),t},readCount:function(a){for(var o="";a--;)o+=this.read();return o}}},{}],25:[function(n,f,h){"use strict";f.exports=s;function s(a,o,t){Error.call(this),this.name=this.constructor.name,this.col=t,this.line=o,this.message=a}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s},{}],26:[function(n,f,h){"use strict";f.exports=s;function s(a,o,t,l){this.col=t,this.line=o,this.text=a,this.type=l}s.fromToken=function(a){return new s(a.value,a.startLine,a.startCol)},s.prototype={constructor:s,valueOf:function(){return this.toString()},toString:function(){return this.text}}},{}],27:[function(n,f,h){"use strict";f.exports=o;var s=n("./StringReader"),a=n("./SyntaxError");function o(t,l){this._reader=new s(t?t.toString():""),this._token=null,this._tokenData=l,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}o.createTokenData=function(t){var l=[],d=Object.create(null),g=t.concat([]),w=0,S=g.length+1;for(g.UNKNOWN=-1,g.unshift({name:"EOF"});w<S;w++)l.push(g[w].name),g[g[w].name]=w,g[w].text&&(d[g[w].text]=w);return g.name=function(E){return l[E]},g.type=function(E){return d[E]},g},o.prototype={constructor:o,match:function(t,l){t instanceof Array||(t=[t]);for(var d=this.get(l),g=0,w=t.length;g<w;)if(d===t[g++])return!0;return this.unget(),!1},mustMatch:function(t){var l;if(t instanceof Array||(t=[t]),!this.match.apply(this,arguments))throw l=this.LT(1),new a("Expected "+this._tokenData[t[0]].name+" at line "+l.startLine+", col "+l.startCol+".",l.startLine,l.startCol)},advance:function(t,l){for(;this.LA(0)!==0&&!this.match(t,l);)this.get();return this.LA(0)},get:function(t){var l=this._tokenData,d=0,g,w;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(d++,this._token=this._lt[this._ltIndex++],w=l[this._token.type];typeof w.channel!="undefined"&&t!==w.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],w=l[this._token.type],d++;if((typeof w.channel=="undefined"||t===w.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(d),this._token.type}return g=this._getToken(),g.type>-1&&!l[g.type].hide&&(g.channel=l[g.type].channel,this._token=g,this._lt.push(g),this._ltIndexCache.push(this._lt.length-this._ltIndex+d),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),w=l[g.type],w&&(w.hide||typeof w.channel!="undefined"&&t!==w.channel)?this.get(t):g.type},LA:function(t){var l=t,d;if(t>0){if(t>5)throw new Error("Too much lookahead.");for(;l;)d=this.get(),l--;for(;l<t;)this.unget(),l++}else if(t<0)if(this._lt[this._ltIndex+t])d=this._lt[this._ltIndex+t].type;else throw new Error("Too much lookbehind.");else d=this._token.type;return d},LT:function(t){return this.LA(t),this._lt[this._ltIndex+t-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(t){return t<0||t>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[t].name},tokenType:function(t){return this._tokenData[t]||-1},unget:function(){if(this._ltIndexCache.length)this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1];else throw new Error("Too much lookahead.")}}},{"./StringReader":24,"./SyntaxError":25}],28:[function(n,f,h){"use strict";f.exports={StringReader:n("./StringReader"),SyntaxError:n("./SyntaxError"),SyntaxUnit:n("./SyntaxUnit"),EventTarget:n("./EventTarget"),TokenStreamBase:n("./TokenStreamBase")}},{"./EventTarget":23,"./StringReader":24,"./SyntaxError":25,"./SyntaxUnit":26,"./TokenStreamBase":27}],parserlib:[function(n,f,h){"use strict";f.exports={css:n("./css"),util:n("./util")}},{"./css":22,"./util":28}]},{},[]),e("parserlib")}(),b=function(){"use strict";function e(g,w){return w!=null&&g instanceof w}var n;try{n=Map}catch(g){n=function(){}}var f;try{f=Set}catch(g){f=function(){}}var h;try{h=Promise}catch(g){h=function(){}}function s(g,w,S,E,T){typeof w=="object"&&(S=w.depth,E=w.prototype,T=w.includeNonEnumerable,w=w.circular);var A=[],O=[],c=typeof j!="undefined";typeof w=="undefined"&&(w=!0),typeof S=="undefined"&&(S=Infinity);function z(C,U){if(C===null)return null;if(U===0)return C;var I,_;if(typeof C!="object")return C;if(e(C,n))I=new n;else if(e(C,f))I=new f;else if(e(C,h))I=new h(function($,W){C.then(function(B){$(z(B,U-1))},function(B){W(z(B,U-1))})});else if(s.__isArray(C))I=[];else if(s.__isRegExp(C))I=new RegExp(C.source,d(C)),C.lastIndex&&(I.lastIndex=C.lastIndex);else if(s.__isDate(C))I=new Date(C.getTime());else{if(c&&j.isBuffer(C))return j.allocUnsafe?I=j.allocUnsafe(C.length):I=new j(C.length),C.copy(I),I;e(C,Error)?I=Object.create(C):typeof E=="undefined"?(_=Object.getPrototypeOf(C),I=Object.create(_)):(I=Object.create(E),_=E)}if(w){var r=A.indexOf(C);if(r!=-1)return O[r];A.push(C),O.push(I)}e(C,n)&&C.forEach(function($,W){var B=z(W,U-1),V=z($,U-1);I.set(B,V)}),e(C,f)&&C.forEach(function($){var W=z($,U-1);I.add(W)});for(var i in C){var u;_&&(u=Object.getOwnPropertyDescriptor(_,i)),!(u&&u.set==null)&&(I[i]=z(C[i],U-1))}if(Object.getOwnPropertySymbols)for(var p=Object.getOwnPropertySymbols(C),i=0;i<p.length;i++){var x=p[i],R=Object.getOwnPropertyDescriptor(C,x);R&&!R.enumerable&&!T||(I[x]=z(C[x],U-1),R.enumerable||Object.defineProperty(I,x,{enumerable:!1}))}if(T)for(var M=Object.getOwnPropertyNames(C),i=0;i<M.length;i++){var F=M[i],R=Object.getOwnPropertyDescriptor(C,F);R&&R.enumerable||(I[F]=z(C[F],U-1),Object.defineProperty(I,F,{enumerable:!1}))}return I}return z(g,S)}s.clonePrototype=function(w){if(w===null)return null;var S=function(){};return S.prototype=w,new S};function a(g){return Object.prototype.toString.call(g)}s.__objToStr=a;function o(g){return typeof g=="object"&&a(g)==="[object Date]"}s.__isDate=o;function t(g){return typeof g=="object"&&a(g)==="[object Array]"}s.__isArray=t;function l(g){return typeof g=="object"&&a(g)==="[object RegExp]"}s.__isRegExp=l;function d(g){var w="";return g.global&&(w+="g"),g.ignoreCase&&(w+="i"),g.multiline&&(w+="m"),w}return s.__getRegExpFlags=d,s}();typeof P=="object"&&P.exports&&(P.exports=b);var y=function(){"use strict";var e=[],n=[],f=/\/\*\s*csslint([^\*]*)\*\//,h=new m.util.EventTarget;h.version="1.0.5",h.addRule=function(a){e.push(a),e[a.id]=a},h.clearRules=function(){e=[]},h.getRules=function(){return[].concat(e).sort(function(a,o){return a.id>o.id?1:0})},h.getRuleset=function(){for(var a={},o=0,t=e.length;o<t;)a[e[o++].id]=1;return a};function s(a,o){var t,l=a&&a.match(f),d=l&&l[1];return d&&(t={true:2,"":1,false:0,"2":2,"1":1,"0":0},d.toLowerCase().split(",").forEach(function(g){var w=g.split(":"),S=w[0]||"",E=w[1]||"";o[S.trim()]=t[E.trim()]})),o}return h.addFormatter=function(a){n[a.id]=a},h.getFormatter=function(a){return n[a]},h.format=function(a,o,t,l){var d=h.getFormatter(t),g=null;return d&&(g=d.startFormat(),g+=d.formatResults(a,o,l||{}),g+=d.endFormat()),g},h.hasFormat=function(a){return n.hasOwnProperty(a)},h.verify=function(a,o){var t=0,l,d,g={},w=[],S,E=new m.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});d=a.replace(/\n\r?/g,"$split$").split("$split$"),y.Util.forEach(d,function(O,c){var z=O&&O.match(/\/\*[ \t]*csslint[ \t]+allow:[ \t]*([^\*]*)\*\//i),C=z&&z[1],U={};C&&(C.toLowerCase().split(",").forEach(function(I){U[I.trim()]=!0}),Object.keys(U).length>0&&(g[c+1]=U))});var T=null,A=null;y.Util.forEach(d,function(O,c){T===null&&O.match(/\/\*[ \t]*csslint[ \t]+ignore:start[ \t]*\*\//i)&&(T=c),O.match(/\/\*[ \t]*csslint[ \t]+ignore:end[ \t]*\*\//i)&&(A=c),T!==null&&A!==null&&(w.push([T,A]),T=A=null)}),T!==null&&w.push([T,d.length]),o||(o=h.getRuleset()),f.test(a)&&(o=b(o),o=s(a,o)),l=new k(d,o,g,w),o.errors=2;for(t in o)o.hasOwnProperty(t)&&o[t]&&e[t]&&e[t].init(E,l);try{E.parse(a)}catch(O){l.error("Fatal error, cannot continue: "+O.message,O.line,O.col,{})}return S={messages:l.messages,stats:l.stats,ruleset:l.ruleset,allow:l.allow,ignore:l.ignore},S.messages.sort(function(O,c){return O.rollup&&!c.rollup?1:!O.rollup&&c.rollup?-1:O.line-c.line}),S},h}();function k(e,n,f,h){"use strict";this.messages=[],this.stats=[],this.lines=e,this.ruleset=n,this.allow=f,this.allow||(this.allow={}),this.ignore=h,this.ignore||(this.ignore=[])}return k.prototype={constructor:k,error:function(e,n,f,h){"use strict";this.messages.push({type:"error",line:n,col:f,message:e,evidence:this.lines[n-1],rule:h||{}})},warn:function(e,n,f,h){"use strict";this.report(e,n,f,h)},report:function(e,n,f,h){"use strict";this.allow.hasOwnProperty(n)&&this.allow[n].hasOwnProperty(h.id)||this.isIgnored(n)||this.messages.push({type:this.ruleset[h.id]===2?"error":"warning",line:n,col:f,message:e,evidence:this.lines[n-1],rule:h})},info:function(e,n,f,h){"use strict";this.messages.push({type:"info",line:n,col:f,message:e,evidence:this.lines[n-1],rule:h})},rollupError:function(e,n){"use strict";this.messages.push({type:"error",rollup:!0,message:e,rule:n})},rollupWarn:function(e,n){"use strict";this.messages.push({type:"warning",rollup:!0,message:e,rule:n})},stat:function(e,n){"use strict";this.stats[e]=n},isIgnored:function(e){"use strict";var n=!1;return y.Util.forEach(this.ignore,function(f){f[0]<=e&&e<=f[1]&&(n=!0)}),n}},y._Reporter=k,y.Util={mix:function(e,n){"use strict";var f;for(f in n)n.hasOwnProperty(f)&&(e[f]=n[f]);return f},indexOf:function(e,n){"use strict";if(e.indexOf)return e.indexOf(n);for(var f=0,h=e.length;f<h;f++)if(e[f]===n)return f;return-1},forEach:function(e,n){"use strict";if(e.forEach)return e.forEach(n);for(var f=0,h=e.length;f<h;f++)n(e[f],f,e)}},y.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don't use width or height when using padding or border.",url:"https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size",browsers:"All",init:function(e,n){"use strict";var f=this,h={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},s={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},a,o=!1;function t(){a={},o=!1}function l(){var d,g;if(!o){if(a.height)for(d in s)s.hasOwnProperty(d)&&a[d]&&(g=a[d].value,d==="padding"&&g.parts.length===2&&g.parts[0].value===0||n.report("Using height with "+d+" can sometimes make elements larger than you expect.",a[d].line,a[d].col,f));if(a.width)for(d in h)h.hasOwnProperty(d)&&a[d]&&(g=a[d].value,d==="padding"&&g.parts.length===2&&g.parts[1].value===0||n.report("Using width with "+d+" can sometimes make elements larger than you expect.",a[d].line,a[d].col,f))}}e.addListener("startrule",t),e.addListener("startfontface",t),e.addListener("startpage",t),e.addListener("startpagemargin",t),e.addListener("startkeyframerule",t),e.addListener("startviewport",t),e.addListener("property",function(d){var g=d.property.text.toLowerCase();s[g]||h[g]?!/^0\S*$/.test(d.value)&&!(g==="border"&&d.value.toString()==="none")&&(a[g]={line:d.property.line,col:d.property.col,value:d.value}):/^(width|height)/i.test(g)&&/^(length|percentage)/.test(d.value.parts[0].type)?a[g]=1:g==="box-sizing"&&(o=!0)}),e.addListener("endrule",l),e.addListener("endfontface",l),e.addListener("endpage",l),e.addListener("endpagemargin",l),e.addListener("endkeyframerule",l),e.addListener("endviewport",l)}}),y.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",url:"https://github.com/CSSLint/csslint/wiki/Bulletproof-font-face",browsers:"All",init:function(e,n){"use strict";var f=this,h=!1,s=!0,a=!1,o,t;e.addListener("startfontface",function(){h=!0}),e.addListener("property",function(l){if(!!h){var d=l.property.toString().toLowerCase(),g=l.value.toString();if(o=l.line,t=l.col,d==="src"){var w=/^\s?url\(['"].+\.eot\?.*['"]\)\s*format\(['"]embedded-opentype['"]\).*$/i;!g.match(w)&&s?(a=!0,s=!1):g.match(w)&&!s&&(a=!1)}}}),e.addListener("endfontface",function(){h=!1,a&&n.report("@font-face declaration doesn't follow the fontspring bulletproof syntax.",o,t,f)})}}),y.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",url:"https://github.com/CSSLint/csslint/wiki/Require-compatible-vendor-prefixes",browsers:"All",init:function(e,n){"use strict";var f=this,h,s,a,o,t,l,d,g=!1,w=Array.prototype.push,S=[];h={animation:"webkit","animation-delay":"webkit","animation-direction":"webkit","animation-duration":"webkit","animation-fill-mode":"webkit","animation-iteration-count":"webkit","animation-name":"webkit","animation-play-state":"webkit","animation-timing-function":"webkit",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz","box-direction":"webkit moz","box-flex":"webkit moz","box-lines":"webkit","box-ordinal-group":"webkit moz","box-orient":"webkit moz","box-pack":"webkit moz","box-sizing":"","box-shadow":"","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",flex:"webkit ms","flex-basis":"webkit","flex-direction":"webkit ms","flex-flow":"webkit","flex-grow":"webkit","flex-shrink":"webkit",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit ms","transform-origin":"webkit ms",transition:"","transition-delay":"","transition-duration":"","transition-property":"","transition-timing-function":"","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"};for(a in h)if(h.hasOwnProperty(a)){for(o=[],t=h[a].split(" "),l=0,d=t.length;l<d;l++)o.push("-"+t[l]+"-"+a);h[a]=o,w.apply(S,o)}e.addListener("startrule",function(){s=[]}),e.addListener("startkeyframes",function(E){g=E.prefix||!0}),e.addListener("endkeyframes",function(){g=!1}),e.addListener("property",function(E){var T=E.property;y.Util.indexOf(S,T.text)>-1&&(!g||typeof g!="string"||T.text.indexOf("-"+g+"-")!==0)&&s.push(T)}),e.addListener("endrule",function(){if(!!s.length){var E={},T,A,O,c,z,C,U,I,_,r;for(T=0,A=s.length;T<A;T++){O=s[T];for(c in h)h.hasOwnProperty(c)&&(z=h[c],y.Util.indexOf(z,O.text)>-1&&(E[c]||(E[c]={full:z.slice(0),actual:[],actualNodes:[]}),y.Util.indexOf(E[c].actual,O.text)===-1&&(E[c].actual.push(O.text),E[c].actualNodes.push(O))))}for(c in E)if(E.hasOwnProperty(c)&&(C=E[c],U=C.full,I=C.actual,U.length>I.length))for(T=0,A=U.length;T<A;T++)_=U[T],y.Util.indexOf(I,_)===-1&&(r=I.length===1?I[0]:I.length===2?I.join(" and "):I.join(", "),n.report("The property "+_+" is compatible with "+r+" and should be included as well.",C.actualNodes[0].line,C.actualNodes[0].col,f))}})}}),y.addRule({id:"display-property-grouping",name:"Require properties appropriate for display",desc:"Certain properties shouldn't be used with certain display property values.",url:"https://github.com/CSSLint/csslint/wiki/Require-properties-appropriate-for-display",browsers:"All",init:function(e,n){"use strict";var f=this,h={display:1,float:"none",height:1,width:1,margin:1,"margin-left":1,"margin-right":1,"margin-bottom":1,"margin-top":1,padding:1,"padding-left":1,"padding-right":1,"padding-bottom":1,"padding-top":1,"vertical-align":1},s;function a(l,d,g){s[l]&&(typeof h[l]!="string"||s[l].value.toLowerCase()!==h[l])&&n.report(g||l+" can't be used with display: "+d+".",s[l].line,s[l].col,f)}function o(){s={}}function t(){var l=s.display?s.display.value:null;if(l)switch(l){case"inline":a("height",l),a("width",l),a("margin",l),a("margin-top",l),a("margin-bottom",l),a("float",l,"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).");break;case"block":a("vertical-align",l);break;case"inline-block":a("float",l);break;default:l.indexOf("table-")===0&&(a("margin",l),a("margin-left",l),a("margin-right",l),a("margin-top",l),a("margin-bottom",l),a("float",l))}}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startkeyframerule",o),e.addListener("startpagemargin",o),e.addListener("startpage",o),e.addListener("startviewport",o),e.addListener("property",function(l){var d=l.property.text.toLowerCase();h[d]&&(s[d]={value:l.value.text,line:l.property.line,col:l.property.col})}),e.addListener("endrule",t),e.addListener("endfontface",t),e.addListener("endkeyframerule",t),e.addListener("endpagemargin",t),e.addListener("endpage",t),e.addListener("endviewport",t)}}),y.addRule({id:"duplicate-background-images",name:"Disallow duplicate background images",desc:"Every background-image should be unique. Use a common class for e.g. sprites.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-background-images",browsers:"All",init:function(e,n){"use strict";var f=this,h={};e.addListener("property",function(s){var a=s.property.text,o=s.value,t,l;if(a.match(/background/i))for(t=0,l=o.parts.length;t<l;t++)o.parts[t].type==="uri"&&(typeof h[o.parts[t].uri]=="undefined"?h[o.parts[t].uri]=s:n.report("Background image '"+o.parts[t].uri+"' was used multiple times, first declared at line "+h[o.parts[t].uri].line+", col "+h[o.parts[t].uri].col+".",s.line,s.col,f))})}}),y.addRule({id:"duplicate-properties",name:"Disallow duplicate properties",desc:"Duplicate properties must appear one after the other.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties",browsers:"All",init:function(e,n){"use strict";var f=this,h,s;function a(){h={}}e.addListener("startrule",a),e.addListener("startfontface",a),e.addListener("startpage",a),e.addListener("startpagemargin",a),e.addListener("startkeyframerule",a),e.addListener("startviewport",a),e.addListener("property",function(o){var t=o.property,l=t.text.toLowerCase();h[l]&&(s!==l||h[l]===o.value.text)&&n.report("Duplicate property '"+o.property+"' found.",o.line,o.col,f),h[l]=o.value.text,s=l})}}),y.addRule({id:"empty-rules",name:"Disallow empty rules",desc:"Rules without any properties specified should be removed.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules",browsers:"All",init:function(e,n){"use strict";var f=this,h=0;e.addListener("startrule",function(){h=0}),e.addListener("property",function(){h++}),e.addListener("endrule",function(s){var a=s.selectors;h===0&&n.report("Rule is empty.",a[0].line,a[0].col,f)})}}),y.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("error",function(h){n.error(h.message,h.line,h.col,f)})}}),y.addRule({id:"floats",name:"Disallow too many floats",desc:"This rule tests if the float property is used too many times",url:"https://github.com/CSSLint/csslint/wiki/Disallow-too-many-floats",browsers:"All",init:function(e,n){"use strict";var f=this,h=0;e.addListener("property",function(s){n.isIgnored(s.property.line)||s.property.text.toLowerCase()==="float"&&s.value.text.toLowerCase()!=="none"&&h++}),e.addListener("endstylesheet",function(){n.stat("floats",h),h>=10&&n.rollupWarn("Too many floats ("+h+"), you're probably using them for layout. Consider using a grid system instead.",f)})}}),y.addRule({id:"font-faces",name:"Don't use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-web-fonts",browsers:"All",init:function(e,n){"use strict";var f=this,h=0;e.addListener("startfontface",function(s){n.isIgnored(s.line)||h++}),e.addListener("endstylesheet",function(){h>5&&n.rollupWarn("Too many @font-face declarations ("+h+").",f)})}}),y.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-font-size-declarations",browsers:"All",init:function(e,n){"use strict";var f=this,h=0;e.addListener("property",function(s){n.isIgnored(s.property.line)||s.property.toString()==="font-size"&&h++}),e.addListener("endstylesheet",function(){n.stat("font-sizes",h),h>=10&&n.rollupWarn("Too many font-size declarations ("+h+"), abstraction needed.",f)})}}),y.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",url:"https://github.com/CSSLint/csslint/wiki/Require-all-gradient-definitions",browsers:"All",init:function(e,n){"use strict";var f=this,h;e.addListener("startrule",function(){h={moz:0,webkit:0,oldWebkit:0,o:0}}),e.addListener("property",function(s){/\-(moz|o|webkit)(?:\-(?:linear|radial))\-gradient/i.test(s.value)?h[RegExp.$1]=1:/\-webkit\-gradient/i.test(s.value)&&(h.oldWebkit=1)}),e.addListener("endrule",function(s){var a=[];h.moz||a.push("Firefox 3.6+"),h.webkit||a.push("Webkit (Safari 5+, Chrome)"),h.oldWebkit||a.push("Old Webkit (Safari 4+, Chrome)"),h.o||a.push("Opera 11.1+"),a.length&&a.length<4&&n.report("Missing vendor-prefixed CSS gradients for "+a.join(", ")+".",s.selectors[0].line,s.selectors[0].col,f)})}}),y.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("startrule",function(h){var s=h.selectors,a,o,t,l,d,g,w;for(d=0;d<s.length;d++){for(a=s[d],l=0,g=0;g<a.parts.length;g++)if(o=a.parts[g],o.type===e.SELECTOR_PART_TYPE)for(w=0;w<o.modifiers.length;w++)t=o.modifiers[w],t.type==="id"&&l++;l===1?n.report("Don't use IDs in selectors.",a.line,a.col,f):l>1&&n.report(l+" IDs in the selector, really?",a.line,a.col,f)}})}}),y.addRule({id:"import-ie-limit",name:"@import limit on IE6-IE9",desc:"IE6-9 supports up to 31 @import per stylesheet",browsers:"IE6, IE7, IE8, IE9",init:function(e,n){"use strict";var f=this,h=31,s=0;function a(){s=0}e.addListener("startpage",a),e.addListener("import",function(){s++}),e.addListener("endstylesheet",function(){s>h&&n.rollupError("Too many @import rules ("+s+"). IE6-9 supports up to 31 import per stylesheet.",f)})}}),y.addRule({id:"import",name:"Disallow @import",desc:"Don't use @import, use <link> instead.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%40import",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("import",function(h){n.report("@import prevents parallel downloads, use <link> instead.",h.line,h.col,f)})}}),y.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%21important",browsers:"All",init:function(e,n){"use strict";var f=this,h=0;e.addListener("property",function(s){n.isIgnored(s.line)||s.important===!0&&(h++,n.report("Use of !important",s.line,s.col,f))}),e.addListener("endstylesheet",function(){n.stat("important",h),h>=10&&n.rollupWarn("Too many !important declarations ("+h+"), try to use less than 10 to avoid specificity issues.",f)})}}),y.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",url:"https://github.com/CSSLint/csslint/wiki/Require-use-of-known-properties",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("property",function(h){h.invalid&&n.report(h.invalid.message,h.line,h.col,f)})}}),y.addRule({id:"order-alphabetical",name:"Alphabetical order",desc:"Assure properties are in alphabetical order",browsers:"All",init:function(e,n){"use strict";var f=this,h,s=function(){h=[]},a=function(o){var t=h.join(","),l=h.sort().join(",");t!==l&&n.report("Rule doesn't have all its properties in alphabetical order.",o.line,o.col,f)};e.addListener("startrule",s),e.addListener("startfontface",s),e.addListener("startpage",s),e.addListener("startpagemargin",s),e.addListener("startkeyframerule",s),e.addListener("startviewport",s),e.addListener("property",function(o){var t=o.property.text,l=t.toLowerCase().replace(/^-.*?-/,"");h.push(l)}),e.addListener("endrule",a),e.addListener("endfontface",a),e.addListener("endpage",a),e.addListener("endpagemargin",a),e.addListener("endkeyframerule",a),e.addListener("endviewport",a)}}),y.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-outline%3Anone",browsers:"All",tags:["Accessibility"],init:function(e,n){"use strict";var f=this,h;function s(o){o.selectors?h={line:o.line,col:o.col,selectors:o.selectors,propCount:0,outline:!1}:h=null}function a(){h&&h.outline&&(h.selectors.toString().toLowerCase().indexOf(":focus")===-1?n.report("Outlines should only be modified using :focus.",h.line,h.col,f):h.propCount===1&&n.report("Outlines shouldn't be hidden unless other visual changes are made.",h.line,h.col,f))}e.addListener("startrule",s),e.addListener("startfontface",s),e.addListener("startpage",s),e.addListener("startpagemargin",s),e.addListener("startkeyframerule",s),e.addListener("startviewport",s),e.addListener("property",function(o){var t=o.property.text.toLowerCase(),l=o.value;h&&(h.propCount++,t==="outline"&&(l.toString()==="none"||l.toString()==="0")&&(h.outline=!0))}),e.addListener("endrule",a),e.addListener("endfontface",a),e.addListener("endpage",a),e.addListener("endpagemargin",a),e.addListener("endkeyframerule",a),e.addListener("endviewport",a)}}),y.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don't use classes or IDs with elements (a.foo or a#foo).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-overqualified-elements",browsers:"All",init:function(e,n){"use strict";var f=this,h={};e.addListener("startrule",function(s){var a=s.selectors,o,t,l,d,g,w;for(d=0;d<a.length;d++)for(o=a[d],g=0;g<o.parts.length;g++)if(t=o.parts[g],t.type===e.SELECTOR_PART_TYPE)for(w=0;w<t.modifiers.length;w++)l=t.modifiers[w],t.elementName&&l.type==="id"?n.report("Element ("+t+") is overqualified, just use "+l+" without element name.",t.line,t.col,f):l.type==="class"&&(h[l]||(h[l]=[]),h[l].push({modifier:l,part:t}))}),e.addListener("endstylesheet",function(){var s;for(s in h)h.hasOwnProperty(s)&&h[s].length===1&&h[s][0].part.elementName&&n.report("Element ("+h[s][0].part+") is overqualified, just use "+h[s][0].modifier+" without element name.",h[s][0].part.line,h[s][0].part.col,f)})}}),y.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",desc:"Selectors that look like regular expressions are slow and should be avoided.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-selectors-that-look-like-regular-expressions",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("startrule",function(h){var s=h.selectors,a,o,t,l,d,g;for(l=0;l<s.length;l++)for(a=s[l],d=0;d<a.parts.length;d++)if(o=a.parts[d],o.type===e.SELECTOR_PART_TYPE)for(g=0;g<o.modifiers.length;g++)t=o.modifiers[g],t.type==="attribute"&&/([~\|\^\$\*]=)/.test(t)&&n.report("Attribute selectors with "+RegExp.$1+" are slow!",t.line,t.col,f)})}}),y.addRule({id:"rules-count",name:"Rules Count",desc:"Track how many rules there are.",browsers:"All",init:function(e,n){"use strict";var f=0;e.addListener("startrule",function(){f++}),e.addListener("endstylesheet",function(){n.stat("rule-count",f)})}}),y.addRule({id:"selector-max-approaching",name:"Warn when approaching the 4095 selector limit for IE",desc:"Will warn when selector count is >= 3800 selectors.",browsers:"IE",init:function(e,n){"use strict";var f=this,h=0;e.addListener("startrule",function(s){h+=s.selectors.length}),e.addListener("endstylesheet",function(){h>=3800&&n.report("You have "+h+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,f)})}}),y.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(e,n){"use strict";var f=this,h=0;e.addListener("startrule",function(s){h+=s.selectors.length}),e.addListener("endstylesheet",function(){h>4095&&n.report("You have "+h+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,f)})}}),y.addRule({id:"selector-newline",name:"Disallow new-line characters in selectors",desc:"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.",browsers:"All",init:function(e,n){"use strict";var f=this;function h(s){var a,o,t,l,d,g,w,S,E,T,A,O=s.selectors;for(a=0,o=O.length;a<o;a++)for(t=O[a],l=0,g=t.parts.length;l<g;l++)for(d=l+1;d<g;d++)w=t.parts[l],S=t.parts[d],E=w.type,T=w.line,A=S.line,E==="descendant"&&A>T&&n.report("newline character found in selector (forgot a comma?)",T,O[a].parts[0].col,f)}e.addListener("startrule",h)}}),y.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",url:"https://github.com/CSSLint/csslint/wiki/Require-shorthand-properties",browsers:"All",init:function(e,n){"use strict";var f=this,h,s,a,o={},t,l={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(h in l)if(l.hasOwnProperty(h))for(s=0,a=l[h].length;s<a;s++)o[l[h][s]]=h;function d(){t={}}function g(w){var S,E,T,A;for(S in l)if(l.hasOwnProperty(S)){for(A=0,E=0,T=l[S].length;E<T;E++)A+=t[l[S][E]]?1:0;A===l[S].length&&n.report("The properties "+l[S].join(", ")+" can be replaced by "+S+".",w.line,w.col,f)}}e.addListener("startrule",d),e.addListener("startfontface",d),e.addListener("property",function(w){var S=w.property.toString().toLowerCase();o[S]&&(t[S]=1)}),e.addListener("endrule",g),e.addListener("endfontface",g)}}),y.addRule({id:"star-property-hack",name:"Disallow properties with a star prefix",desc:"Checks for the star property hack (targets IE6/7)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-star-hack",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("property",function(h){var s=h.property;s.hack==="*"&&n.report("Property with star prefix found.",h.property.line,h.property.col,f)})}}),y.addRule({id:"text-indent",name:"Disallow negative text-indent",desc:"Checks for text indent less than -99px",url:"https://github.com/CSSLint/csslint/wiki/Disallow-negative-text-indent",browsers:"All",init:function(e,n){"use strict";var f=this,h,s;function a(){h=!1,s="inherit"}function o(){h&&s!=="ltr"&&n.report("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.",h.line,h.col,f)}e.addListener("startrule",a),e.addListener("startfontface",a),e.addListener("property",function(t){var l=t.property.toString().toLowerCase(),d=t.value;l==="text-indent"&&d.parts[0].value<-99?h=t.property:l==="direction"&&d.toString()==="ltr"&&(s="ltr")}),e.addListener("endrule",o),e.addListener("endfontface",o)}}),y.addRule({id:"underscore-property-hack",name:"Disallow properties with an underscore prefix",desc:"Checks for the underscore property hack (targets IE6)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-underscore-hack",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("property",function(h){var s=h.property;s.hack==="_"&&n.report("Property with underscore prefix found.",h.property.line,h.property.col,f)})}}),y.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-universal-selector",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("startrule",function(h){var s=h.selectors,a,o,t;for(t=0;t<s.length;t++)a=s[t],o=a.parts[a.parts.length-1],o.elementName==="*"&&n.report(f.desc,o.line,o.col,f)})}}),y.addRule({id:"unqualified-attributes",name:"Disallow unqualified attribute selectors",desc:"Unqualified attribute selectors are known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-unqualified-attribute-selectors",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("startrule",function(h){var s=h.selectors,a=!1,o,t,l,d,g;for(d=0;d<s.length;d++)if(o=s[d],t=o.parts[o.parts.length-1],t.type===e.SELECTOR_PART_TYPE){for(g=0;g<t.modifiers.length;g++)if(l=t.modifiers[g],l.type==="class"||l.type==="id"){a=!0;break}if(!a)for(g=0;g<t.modifiers.length;g++)l=t.modifiers[g],l.type==="attribute"&&(!t.elementName||t.elementName==="*")&&n.report(f.desc,t.line,t.col,f)}})}}),y.addRule({id:"vendor-prefix",name:"Require standard property with vendor prefix",desc:"When using a vendor-prefixed property, make sure to include the standard one.",url:"https://github.com/CSSLint/csslint/wiki/Require-standard-property-with-vendor-prefix",browsers:"All",init:function(e,n){"use strict";var f=this,h,s,a={"-webkit-border-radius":"border-radius","-webkit-border-top-left-radius":"border-top-left-radius","-webkit-border-top-right-radius":"border-top-right-radius","-webkit-border-bottom-left-radius":"border-bottom-left-radius","-webkit-border-bottom-right-radius":"border-bottom-right-radius","-o-border-radius":"border-radius","-o-border-top-left-radius":"border-top-left-radius","-o-border-top-right-radius":"border-top-right-radius","-o-border-bottom-left-radius":"border-bottom-left-radius","-o-border-bottom-right-radius":"border-bottom-right-radius","-moz-border-radius":"border-radius","-moz-border-radius-topleft":"border-top-left-radius","-moz-border-radius-topright":"border-top-right-radius","-moz-border-radius-bottomleft":"border-bottom-left-radius","-moz-border-radius-bottomright":"border-bottom-right-radius","-moz-column-count":"column-count","-webkit-column-count":"column-count","-moz-column-gap":"column-gap","-webkit-column-gap":"column-gap","-moz-column-rule":"column-rule","-webkit-column-rule":"column-rule","-moz-column-rule-style":"column-rule-style","-webkit-column-rule-style":"column-rule-style","-moz-column-rule-color":"column-rule-color","-webkit-column-rule-color":"column-rule-color","-moz-column-rule-width":"column-rule-width","-webkit-column-rule-width":"column-rule-width","-moz-column-width":"column-width","-webkit-column-width":"column-width","-webkit-column-span":"column-span","-webkit-columns":"columns","-moz-box-shadow":"box-shadow","-webkit-box-shadow":"box-shadow","-moz-transform":"transform","-webkit-transform":"transform","-o-transform":"transform","-ms-transform":"transform","-moz-transform-origin":"transform-origin","-webkit-transform-origin":"transform-origin","-o-transform-origin":"transform-origin","-ms-transform-origin":"transform-origin","-moz-box-sizing":"box-sizing","-webkit-box-sizing":"box-sizing"};function o(){h={},s=1}function t(){var l,d,g,w,S,E=[];for(l in h)a[l]&&E.push({actual:l,needed:a[l]});for(d=0,g=E.length;d<g;d++)w=E[d].needed,S=E[d].actual,h[w]?h[w][0].pos<h[S][0].pos&&n.report("Standard property '"+w+"' should come after vendor-prefixed property '"+S+"'.",h[S][0].name.line,h[S][0].name.col,f):n.report("Missing standard property '"+w+"' to go along with '"+S+"'.",h[S][0].name.line,h[S][0].name.col,f)}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",function(l){var d=l.property.text.toLowerCase();h[d]||(h[d]=[]),h[d].push({name:l.property,value:l.value,pos:s++})}),e.addListener("endrule",t),e.addListener("endfontface",t),e.addListener("endpage",t),e.addListener("endpagemargin",t),e.addListener("endkeyframerule",t),e.addListener("endviewport",t)}}),y.addRule({id:"zero-units",name:"Disallow units for 0 values",desc:"You don't need to specify units when a value is 0.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-units-for-zero-values",browsers:"All",init:function(e,n){"use strict";var f=this;e.addListener("property",function(h){for(var s=h.value.parts,a=0,o=s.length;a<o;)(s[a].units||s[a].type==="percentage")&&s[a].value===0&&s[a].type!=="time"&&n.report("Values of 0 shouldn't have units specified.",s[a].line,s[a].col,f),a++})}}),function(){"use strict";var e=function(n){return!n||n.constructor!==String?"":n.replace(/["&><]/g,function(f){switch(f){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}})};y.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><checkstyle>'},endFormat:function(){return"</checkstyle>"},readError:function(n,f){return'<file name="'+e(n)+'"><error line="0" column="0" severty="error" message="'+e(f)+'"></error></file>'},formatResults:function(n,f){var h=n.messages,s=[],a=function(o){return!o||!("name"in o)?"":"net.csslint."+o.name.replace(/\s/g,"")};return h.length>0&&(s.push('<file name="'+f+'">'),y.Util.forEach(h,function(o){o.rollup||s.push('<error line="'+o.line+'" column="'+o.col+'" severity="'+o.type+'" message="'+e(o.message)+'" source="'+a(o.rule)+'"/>')}),s.push("</file>")),s.join("")}})}(),y.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,n,f){"use strict";var h=e.messages,s="";f=f||{};var a=function(o){return o.charAt(0).toUpperCase()+o.slice(1)};return h.length===0?f.quiet?"":n+": Lint Free!":(y.Util.forEach(h,function(o){o.rollup?s+=n+": "+a(o.type)+" - "+o.message+" ("+o.rule.id+`)
|
|
`:s+=n+": line "+o.line+", col "+o.col+", "+a(o.type)+" - "+o.message+" ("+o.rule.id+`)
|
|
`}),s)}}),y.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><csslint>'},endFormat:function(){"use strict";return"</csslint>"},formatResults:function(e,n){"use strict";var f=e.messages,h=[],s=function(a){return!a||a.constructor!==String?"":a.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};return f.length>0&&(h.push('<file name="'+n+'">'),y.Util.forEach(f,function(a){a.rollup?h.push('<issue severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>'):h.push('<issue line="'+a.line+'" char="'+a.col+'" severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>')}),h.push("</file>")),h.join("")}}),y.addFormatter({id:"json",name:"JSON",startFormat:function(){"use strict";return this.json=[],""},endFormat:function(){"use strict";var e="";return this.json.length>0&&(this.json.length===1?e=JSON.stringify(this.json[0]):e=JSON.stringify(this.json)),e},formatResults:function(e,n,f){"use strict";return(e.messages.length>0||!f.quiet)&&this.json.push({filename:n,messages:e.messages,stats:e.stats}),""}}),y.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><testsuites>'},endFormat:function(){"use strict";return"</testsuites>"},formatResults:function(e,n){"use strict";var f=e.messages,h=[],s={error:0,failure:0},a=function(t){return!t||!("name"in t)?"":"net.csslint."+t.name.replace(/\s/g,"")},o=function(t){return!t||t.constructor!==String?"":t.replace(/"/g,"'").replace(/</g,"<").replace(/>/g,">")};return f.length>0&&(f.forEach(function(t){var l=t.type==="warning"?"error":t.type;t.rollup||(h.push('<testcase time="0" name="'+a(t.rule)+'">'),h.push("<"+l+' message="'+o(t.message)+'"><![CDATA['+t.line+":"+t.col+":"+o(t.evidence)+"]]></"+l+">"),h.push("</testcase>"),s[l]+=1)}),h.unshift('<testsuite time="0" tests="'+f.length+'" skipped="0" errors="'+s.error+'" failures="'+s.failure+'" package="net.csslint" name="'+n+'">'),h.push("</testsuite>")),h.join("")}}),y.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><lint>'},endFormat:function(){"use strict";return"</lint>"},formatResults:function(e,n){"use strict";var f=e.messages,h=[],s=function(a){return!a||a.constructor!==String?"":a.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};return f.length>0&&(h.push('<file name="'+n+'">'),y.Util.forEach(f,function(a){if(a.rollup)h.push('<issue severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>');else{var o="";a.rule&&a.rule.id&&(o='rule="'+s(a.rule.id)+'" '),h.push("<issue "+o+'line="'+a.line+'" char="'+a.col+'" severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>')}}),h.push("</file>")),h.join("")}}),y.addFormatter({id:"text",name:"Plain Text",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,n,f){"use strict";var h=e.messages,s="";if(f=f||{},h.length===0)return f.quiet?"":`
|
|
|
|
csslint: No errors in `+n+".";s=`
|
|
|
|
csslint: There `,h.length===1?s+="is 1 problem":s+="are "+h.length+" problems",s+=" in "+n+".";var a=n.lastIndexOf("/"),o=n;return a===-1&&(a=n.lastIndexOf("\\")),a>-1&&(o=n.substring(a+1)),y.Util.forEach(h,function(t,l){s=s+`
|
|
|
|
`+o,t.rollup?(s+=`
|
|
`+(l+1)+": "+t.type,s+=`
|
|
`+t.message):(s+=`
|
|
`+(l+1)+": "+t.type+" at line "+t.line+", col "+t.col,s+=`
|
|
`+t.message,s+=`
|
|
`+t.evidence)}),s}}),y}();Y.exports.CSSLint=N}),ace.define("ace/mode/css_worker",[],function(L,D,Y){"use strict";var N=L("../lib/oop"),P=L("../lib/lang"),v=L("../worker/mirror").Mirror,m=L("./css/csslint").CSSLint,b=D.Worker=function(y){v.call(this,y),this.setTimeout(400),this.ruleset=null,this.setDisabledRules("ids|order-alphabetical"),this.setInfoRules("adjoining-classes|zero-units|gradients|box-model|import|outline-none|vendor-prefix")};N.inherits(b,v),function(){this.setInfoRules=function(y){typeof y=="string"&&(y=y.split("|")),this.infoRules=P.arrayToMap(y),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.setDisabledRules=function(y){if(!y)this.ruleset=null;else{typeof y=="string"&&(y=y.split("|"));var k={};m.getRules().forEach(function(e){k[e.id]=!0}),y.forEach(function(e){delete k[e]}),this.ruleset=k}this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var y=this.doc.getValue();if(!y)return this.sender.emit("annotate",[]);var k=this.infoRules,e=m.verify(y,this.ruleset);this.sender.emit("annotate",e.messages.map(function(n){return{row:n.line-1,column:n.col-1,text:n.message,type:k[n.rule.id]?"info":n.type,rule:n.rule.name}}))}}.call(b.prototype)})}}]);
|