amis.define("0034c44",function(e,t){"use strict";function r(e){var t=e[0],r=e[e.length-1];return t!==r||"'"!==t&&'"'!==t||(e=e.substr(1,e.length-2)),e}function n(e,t){if(!e.length)return!1;if("handlebars"===t&&/{{.*}}/.test(e))return!1;try{return!!g.default.parse(e)}catch(r){return!1}}function a(e,t,r,n){if(/^\s*javascript\:/i.test(t)||/^\s*\#/i.test(t)||/[\n\r]/.test(t))return null;if(t=t.replace(/^\s*/g,""),/^https?:\/\//i.test(t)||/^file:\/\//i.test(t))return t;if(/^\/\//i.test(t)){var a=l.startsWith(e,"https://")?"https":"http";return a+":"+t.replace(/^\s*/g,"")}return r?r.resolveReference(t,n||e):t}function i(e,t,i,u,c,f){var l=r(i,e.languageId);if(!n(l,e.languageId))return null;l.length<i.length&&(u++,c--);var g=a(e.uri,l,t,f);return g&&s(g)?{range:o.Range.create(e.positionAt(u),e.positionAt(c)),target:g}:null}function s(e){try{return g.default.parse(e),!0}catch(t){return!1}}function u(e,t){for(var n=[],a=f.createScanner(e.getText(),0),s=a.scan(),u=!1,c=!1,o=void 0;s!==d.TokenType.EOS;){switch(s){case d.TokenType.StartTag:if(!o){var l=a.getTokenText().toLowerCase();c="base"===l}break;case d.TokenType.AttributeName:var g=a.getTokenText().toLowerCase();u="src"===g||"href"===g;break;case d.TokenType.AttributeValue:if(u){var p=a.getTokenText();if(!c){var T=i(e,t,p,a.getTokenOffset(),a.getTokenEnd(),o);T&&n.push(T)}c&&"undefined"==typeof o&&(o=r(p,e.languageId),o&&t&&(o=t.resolveReference(o,e.uri))),c=!1,u=!1}}s=a.scan()}return n}Object.defineProperty(t,"__esModule",{value:!0});var c=e("11ed2ab"),f=e("3dfa3cb"),o=e("c1fd486"),l=c.__importStar(e("ad9ca80")),g=c.__importDefault(e("decc387")),d=e("d8847af");t.findDocumentLinks=u});