Liferay.Loader.define("journal-web$codemirror@5.65.2/addon/hint/css-hint",["module","exports","require","../../lib/codemirror","../../mode/css/css"],(function(e,t,r){var o,i=void 0;window;o=function(e){"use strict";var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(r){var o=r.getCursor(),i=r.getTokenAt(o),d=e.innerMode(r.getMode(),i.state);if("css"==d.mode.name){if("keyword"==i.type&&0=="!important".indexOf(i.string))return{list:["!important"],from:e.Pos(o.line,i.start),to:e.Pos(o.line,i.end)};var s=i.start,a=o.ch,n=i.string.slice(0,a-s);/[^\w$_-]/.test(n)&&(n="",s=a=o.ch);var l=e.resolveMode("text/css"),c=[],f=d.state.state;return"pseudo"==f||"variable-3"==i.type?add(t):"block"==f||"maybeprop"==f?add(l.propertyKeywords):"prop"==f||"parens"==f||"at"==f||"params"==f?(add(l.valueKeywords),add(l.colorKeywords)):"media"!=f&&"media_parens"!=f||(add(l.mediaTypes),add(l.mediaFeatures)),c.length?{list:c,from:e.Pos(o.line,s),to:e.Pos(o.line,a)}:void 0}function add(e){for(var t in e)n&&0!=t.lastIndexOf(n,0)||c.push(t)}}))},"object"==typeof t&&"object"==typeof e?o(r("../../lib/codemirror"),r("../../mode/css/css")):"function"==typeof i&&i.amd?i(["../../lib/codemirror","../../mode/css/css"],o):o(CodeMirror)}));
//# sourceMappingURL=css-hint.js.map