1(function(h,n){var k=h.location.protocol==="file:"; 2var p=n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"); 3function i(t){t=t.split(" "); 4var u={}; 5var s=t.length; 6var r=[]; 7while(s--){if(!u.hasOwnProperty(t[s])){u[t[s]]=1; 8r.unshift(t[s]) 9}}return r.join(" ") 10}var g=Array.prototype.forEach||function(u,t){if(this===void 0||this===null||typeof u!=="function"){throw new TypeError() 11}var s,r=this.length>>>0; 12for(s=0; 13s<r; 14++s){if(s in this){u.call(t,this[s],s,this) 15}}}; 16var q={}; 17var b=0; 18var m=[]; 19var j=[]; 20var a={}; 21var e=function(r){return r.cloneNode(true) 22}; 23var d=function(r,s){j[r]=j[r]||[]; 24j[r].push(s) 25}; 26var c=function(s){for(var t=0,r=j[s].length; 27t<r; 28t++){(function(u){setTimeout(function(){j[s][u](e(q[s])) 29},0) 30})(t) 31}}; 32var o=function(s,t){if(q[s]!==undefined){if(q[s] instanceof SVGSVGElement){t(e(q[s])) 33}else{d(s,t) 34}}else{if(!h.XMLHttpRequest){t("Browser does not support XMLHttpRequest"); 35return false 36}q[s]={}; 37d(s,t); 38var r=new XMLHttpRequest(); 39r.onreadystatechange=function(){if(r.readyState===4){if(r.status===404||r.responseXML===null){t("Unable to load SVG file: "+s); 40if(k){t("Note: SVG injection ajax calls do not work locally without adjusting security setting in your browser. Or consider using a local webserver.") 41}t(); 42return false 43}if(r.status===200||(k&&r.status===0)){if(r.responseXML instanceof Document){q[s]=r.responseXML.documentElement 44}else{if(DOMParser&&(DOMParser instanceof Function)){var u; 45try{var w=new DOMParser(); 46u=w.parseFromString(r.responseText,"text/xml") 47}catch(v){u=undefined 48}if(!u||u.getElementsByTagName("parsererror").length){t("Unable to parse SVG file: "+s); 49return false 50}else{q[s]=u.documentElement 51}}}c(s) 52}else{t("There was a problem injecting the SVG: "+r.status+" "+r.statusText); 53return false 54}}}; 55r.open("GET",s); 56if(r.overrideMimeType){r.overrideMimeType("text/xml") 57}r.send() 58}}; 59var l=function(s,r,u,w){var v=s.getAttribute("data-src")||s.getAttribute("src"); 60if(!(/\.svg/i).test(v)){w("Attempted to inject a file with a non-svg extension: "+v); 61return 62}if(!p){var t=s.getAttribute("data-fallback")||s.getAttribute("data-png"); 63if(t){s.setAttribute("src",t); 64w(null) 65}else{if(u){s.setAttribute("src",u+"/"+v.split("/").pop().replace(".svg",".png")); 66w(null) 67}else{w("This browser does not support SVG and no PNG fallback was defined.") 68}}return 69}if(m.indexOf(s)!==-1){return 70}m.push(s); 71s.setAttribute("src",""); 72o(v,function(G){if(typeof G==="undefined"||typeof G==="string"){w(G); 73return false 74}var K=s.getAttribute("id"); 75if(K){G.setAttribute("id",K) 76}var M=s.getAttribute("title"); 77if(M){G.setAttribute("title",M) 78}var H=[].concat(G.getAttribute("class")||[],"injected-svg",s.getAttribute("class")||[]).join(" "); 79G.setAttribute("class",i(H)); 80var F=s.getAttribute("style"); 81if(F){G.setAttribute("style",F) 82}var Q=[].filter.call(s.attributes,function(S){return(/^data-\w[\w\-]*$/).test(S.name) 83}); 84g.call(Q,function(S){if(S.name&&S.value){G.setAttribute(S.name,S.value) 85}}); 86var O={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],pattern:["fill","stroke"],radialGradient:["fill","stroke"]}; 87var z,D,C,L,E; 88Object.keys(O).forEach(function(U){z=U; 89C=O[U]; 90D=G.querySelectorAll("defs "+z+"[id]"); 91for(var T=0,S=D.length; 92T<S; 93T++){L=D[T].id; 94E=L+"-"+b; 95var V; 96g.call(C,function(Y){V=G.querySelectorAll("["+Y+'*="'+L+'"]'); 97for(var X=0,W=V.length; 98X<W; 99X++){V[X].setAttribute(Y,"url(#"+E+")") 100}}); 101D[T].id=E 102}}); 103G.removeAttribute("xmlns:a"); 104var A=G.querySelectorAll("script"); 105var y=[]; 106var R,x; 107for(var J=0,P=A.length; 108J<P; 109J++){x=A[J].getAttribute("type"); 110if(!x||x==="application/ecmascript"||x==="application/javascript"){R=A[J].innerText||A[J].textContent; 111y.push(R); 112G.removeChild(A[J]) 113}}if(y.length>0&&(r==="always"||(r==="once"&&!a[v]))){for(var I=0,B=y.length; 114I<B; 115I++){new Function(y[I])(h) 116}a[v]=true 117}var N=G.querySelectorAll("style"); 118g.call(N,function(S){S.textContent+="" 119}); 120s.parentNode.replaceChild(G,s); 121delete m[m.indexOf(s)]; 122s=null; 123b++; 124w(G) 125}) 126}; 127var f=function(w,t,r){t=t||{}; 128var u=t.evalScripts||"always"; 129var v=t.pngFallback||false; 130var s=t.each; 131if(w.length!==undefined){var x=0; 132g.call(w,function(y){l(y,u,v,function(z){if(s&&typeof s==="function"){s(z) 133}if(r&&w.length===++x){r(x) 134}}) 135}) 136}else{if(w){l(w,u,v,function(y){if(s&&typeof s==="function"){s(y) 137}if(r){r(1) 138}w=null 139}) 140}else{if(r){r(0) 141}}}}; 142if(typeof module==="object"&&typeof module.exports==="object"){module.exports=exports=f 143}else{if(typeof define==="function"&&define.amd){define(function(){return f 144}) 145}else{if(typeof h==="object"){h.SVGInjector=f 146}}}}(window,document));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.