amis.define("f1fe26e",function(e,n){"use strict";function t(e,n,t){var r=e.offsetAt(n),o=t.findNodeAt(r);if(!o.tag)return[];var c=[],u=i(f.TokenType.StartTag,e,o.start),g="number"==typeof o.endTagStart&&i(f.TokenType.EndTag,e,o.endTagStart);return(u&&a(u,n)||g&&a(g,n))&&(u&&c.push({kind:d.DocumentHighlightKind.Read,range:u}),g&&c.push({kind:d.DocumentHighlightKind.Read,range:g})),c}function r(e,n){return e.line<n.line||e.line===n.line&&e.character<=n.character}function a(e,n){return r(e.start,n)&&r(n,e.end)}function i(e,n,t){for(var r=o.createScanner(n.getText(),t),a=r.scan();a!==f.TokenType.EOS&&a!==e;)a=r.scan();return a!==f.TokenType.EOS?{start:n.positionAt(r.getTokenOffset()),end:n.positionAt(r.getTokenEnd())}:null}Object.defineProperty(n,"__esModule",{value:!0});var o=e("3dfa3cb"),d=e("c1fd486"),f=e("d8847af");n.findDocumentHighlights=t});