'use strict';(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror"),require("htmlhint")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","htmlhint"],b):b(CodeMirror,window.HTMLHint)})(function(b,a){var g={"tagname-lowercase":!0,"attr-lowercase":!0,"attr-value-double-quotes":!0,"doctype-first":!1,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0};b.registerHelper("lint","html",function(e,c){var f=
[];a&&!a.verify&&(a="undefined"!==typeof a.default?a.default:a.HTMLHint);a||(a=window.HTMLHint);if(!a)return window.console&&window.console.error("Error: HTMLHint not found, not defined on window, or not available through define/require, CodeMirror HTML linting cannot run."),f;e=a.verify(e,c&&c.rules||g);for(c=0;c<e.length;c++){var d=e[c],h=d.line-1,k=d.col;f.push({from:b.Pos(d.line-1,d.col-1),to:b.Pos(h,k),message:d.message,severity:d.type})}return f})});
