!function(){CodeMirror.xmlHints=[],CodeMirror.xmlHint=function(n,r){if(r.length>0){var i=n.getCursor();n.replaceSelection(r),i={line:i.line,ch:i.ch+1},n.setCursor(i)}CodeMirror.simpleHint(n,e)};var e=function(e){var r=e.getCursor();if(r.ch>0){for(var i=e.getRange({line:0,ch:0},r),l="",t="",o=i.length-1;o>=0;o--){if(" "==i[o]||"<"==i[o]){t=i[o];break}l=i[o]+l}i=i.slice(0,i.length-l.length);var f=n(i)+t,s=CodeMirror.xmlHints[f];if(void 0===s)s=[""];else for(o=(s=s.slice(0)).length-1;o>=0;o--)0!=s[o].indexOf(l)&&s.splice(o,1);return{list:s,from:{line:r.line,ch:r.ch-l.length},to:r}}},n=function(e){var n="";if(e.length>=0){for(var i,l=new RegExp("<([^!?][^\\s/>]*).*?>","g"),t=[];null!=(i=l.exec(e));)t.push({tag:i[1],selfclose:"/>"===i[0].slice(i[0].length-2)});for(var o=t.length-1,f=0;o>=0;o--){var s=t[o];"/"==s.tag[0]?f++:0==s.selfclose&&(f>0?f--:n="<"+s.tag+">"+n)}n+=r(e)}return n},r=function(e){var n=e.lastIndexOf("<");if(e.lastIndexOf(">")<n&&"<"!=(e=e.slice(n))){var r=e.indexOf(" ");return r<0&&(r=e.indexOf("\t")),r<0&&(r=e.indexOf("\n")),r<0&&(r=e.length),e.slice(0,r)}return""}}();