text: !function(e,t,r){"use strict";function n(){this.$get=["$$sanitizeUri",function(e){return function(t){var r=[];return s(t,l(r,function(t,r){return!/^unsafe/.test(e(t,r))})),r.join("")}}]}function a(e){var r=[],n=l(r,t.noop);return n.chars(e),r.join("")}function i(e,r){var n,a={},i=e.split(",");for(n=0;n<i.length;n++)a[r?t.lowercase(i[n]):i[n]]=!0;return a}function s(e,r){function n(e,n,i,s){if(n=t.lowercase(n),E[n])for(;y.last()&&P[y.last()];)a("",y.last());A[n]&&y.last()==n&&a("",n),s=x[n]||!!s,s||y.push(n);var c={};i.replace(f,function(e,t,r,n,a){var i=r||n||a||"";c[t]=o(i)}),r.start&&r.start(n,c,s)}function a(e,n){var a,i=0;if(n=t.lowercase(n))for(i=y.length-1;i>=0&&y[i]!=n;i--);if(i>=0){for(a=y.length-1;a>=i;a--)r.end&&r.end(y[a]);y.length=i}}"string"!=typeof e&&(e=null===e||"undefined"==typeof e?"":""+e);var i,s,c,l,y=[],w=e;for(y.last=function(){return y[y.length-1]};e;){if(l="",s=!0,y.last()&&T[y.last()]?(e=e.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+y.last()+"[^>]*>","i"),function(e,t){return t=t.replace(m,"$1").replace(v,"$1"),r.chars&&r.chars(o(t)),""}),a("",y.last())):(0===e.indexOf("<!--")?(i=e.indexOf("--",4),i>=0&&e.lastIndexOf("-->",i)===i&&(r.comment&&r.comment(e.substring(4,i)),e=e.substring(i+3),s=!1)):b.test(e)?(c=e.match(b),c&&(e=e.replace(c[0],""),s=!1)):g.test(e)?(c=e.match(h),c&&(e=e.substring(c[0].length),c[0].replace(h,a),s=!1)):d.test(e)&&(c=e.match(p),c?(c[4]&&(e=e.substring(c[0].length),c[0].replace(p,n)),s=!1):(l+="<",e=e.substring(1))),s&&(i=e.indexOf("<"),l+=0>i?e:e.substring(0,i),e=0>i?"":e.substring(i),r.chars&&r.chars(o(l)))),e==w)throw u("badparse","The sanitizer was unable to parse the following block of html: {0}",e);w=e}a()}function o(e){return e?(j.innerHTML=e.replace(/</g,"&lt;"),j.textContent):""}function c(e){return e.replace(/&/g,"&amp;").replace(y,function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(r-56320)+65536)+";"}).replace(w,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l(e,r){var n=!1,a=t.bind(e,e.push);return{start:function(e,i,s){e=t.lowercase(e),!n&&T[e]&&(n=e),n||D[e]!==!0||(a("<"),a(e),t.forEach(i,function(n,i){var s=t.lowercase(i),o="img"===e&&"src"===s||"background"===s;S[s]!==!0||O[s]===!0&&!r(n,o)||(a(" "),a(i),a('="'),a(c(n)),a('"'))}),a(s?"/>":">"))},end:function(e){e=t.lowercase(e),n||D[e]!==!0||(a("</"),a(e),a(">")),e==n&&(n=!1)},chars:function(e){n||a(c(e))}}}var u=t.$$minErr("$sanitize"),p=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,f=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,d=/^</,g=/^<\//,m=/<!--(.*?)-->/g,b=/<!DOCTYPE([^>]*?)>/i,v=/<!\[CDATA\[(.*?)]]>/g,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,w=/([^\#-~| |!])/g,x=i("area,br,col,hr,img,wbr"),k=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$=i("rp,rt"),A=t.extend({},$,k),E=t.extend({},k,i("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),P=t.extend({},$,i("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),z=i("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),T=i("script,style"),D=t.extend({},x,E,P,A,z),O=i("background,cite,href,longdesc,src,usemap,xlink:href"),C=i("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),R=i("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),S=t.extend({},O,R,C),j=document.createElement("pre");t.module("sanitize",[]).provider("$sanitize",n),t.module("sanitize").filter("linky",["$sanitize",function(e){var r=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,n=/^mailto:/i;return function(i,s){function o(e){e&&f.push(a(e))}function c(e,r){f.push("<a "),t.isDefined(s)&&f.push('target="',s,'" '),f.push('href="',e.replace(/"/g,"&quot;"),'">'),o(r),f.push("</a>")}if(!i)return i;for(var l,u,p,h=i,f=[];l=h.match(r);)u=l[0],l[2]||l[4]||(u=(l[3]?"http://":"mailto:")+u),p=l.index,o(h.substr(0,p)),c(u,l[0].replace(n,"")),h=h.substring(p+l[0].length);return o(h),e(f.join(""))}}])}(window,window.angular);