(function(e){function f(e){if(!(this instanceof f))return new f(e);e||(e={});"number"==typeof e&&(e={s:e});null!=e.u||(e.u=!0);this.options=e;this.s=e.s||f.C;this.H=1E3/this.s;this.I=this.s!==f.C;this.w=null;this.l={};this.p=this.v=0}var u=Date.now,O=e.setTimeout,n,y,C=!1;(function(){var f,s=["ms","moz","webkit","o"];n=e.requestAnimationFrame;y=e.cancelAnimationFrame;for(f=0;fw&&(w=0),this.w=O(function(){var e;f.v=u?u():(new Date).getTime();f.w=null;++f.p;for(e in f.l)if(f.l[e]){if(C&&f.options.u)n(f.l[e]); else f.l[e](f.v);delete f.l[e]}},w));this.l[this.p]=e;return this.p};f.prototype.cancel=function(e){C&&this.options.u&&y(e);delete this.l[e]};"object"==typeof exports&&"object"==typeof module?module.P=f:"function"==typeof define&&define.O?define(function(){return f}):e.AnimationFrame=f})(window);window.TagulDisplayCloud=function(e,f,u,O){function n(b){return!isNaN(parseFloat(b))&&isFinite(b)}function y(){var b=h.offsetWidth,c=h.offsetHeight;G=36E4>16&255,i:b>>8&255,g:b&255}}function s(b,c){b=b.substring(1,b.length);b=K(b);return"rgba("+b.j+","+b.i+","+b.g+","+c.toFixed(4)+ ")"}function w(b){b=b.toString(16);return 1==b.length?"0"+b:b}function Q(b,c,d){c1=K(b.substring(1,b.length));c2=K(c.substring(1,c.length));return"#"+w(Math.round(c1.j*(1-d)+c2.j*d))+w(Math.round(c1.i*(1-d)+c2.i*d))+w(Math.round(c1.g*(1-d)+c2.g*d))}function H(){return Date.now?Date.now():(new Date).getTime()}function L(b,c){b.setTransform(c[0][0],c[1][0],c[0][1],c[1][1],c[0][2],c[1][2])}function v(b,c){return[[1,0,b],[0,1,c]]}function q(b,c){return[[b[0][0]*c[0][0]+b[0][1]*c[1][0],b[0][0]*c[0][1]+ b[0][1]*c[1][1],b[0][0]*c[0][2]+b[0][1]*c[1][2]+b[0][2]],[b[1][0]*c[0][0]+b[1][1]*c[1][0],b[1][0]*c[0][1]+b[1][1]*c[1][1],b[1][0]*c[0][2]+b[1][1]*c[1][2]+b[1][2]]]}function R(b){var c=b[0][0]*b[1][1]-b[0][1]*b[1][0];return[[b[1][1]/c,-b[0][1]/c,(b[0][1]*b[1][2]-b[0][2]*b[1][1])/c],[-b[1][0]/c,b[0][0]/c,(b[0][2]*b[1][0]-b[0][0]*b[1][2])/c]]}function S(b){return Math.sqrt(b[0][0]*b[0][0]+b[0][1]*b[0][1])}function E(b,c){return{x:c[0][0]*b.x+c[0][1]*b.y+c[0][2],y:c[1][0]*b.x+c[1][1]*b.y+c[1][2]}}function F(b, c){var d=E({x:b.x,y:b.y},c),a=E({x:b.x+b.width,y:b.y+b.height},c),e=E({x:b.x,y:b.y+b.height},c),g=E({x:b.x+b.width,y:b.y},c),f=Math.min(d.x,a.x,e.x,g.x),h=Math.min(d.y,a.y,e.y,g.y),k=Math.max(d.x,a.x,e.x,g.x),d=Math.max(d.y,a.y,e.y,g.y);return{x:f,y:h,width:k-f,height:d-h}}function T(b,c){var d=v(-b.bbox.D,-b.bbox.F),a=Math.pow(b.o/b.scale,c),d=q([[a,0,0],[0,a,0]],d),a=(b.N-b.G)*c,d=q([[Math.cos(a),Math.sin(a),0],[-Math.sin(a),Math.cos(a),0]],d);return q(v(b.bbox.D,b.bbox.F),d)}function U(b,c,d,a, e){radius=0.1*Math.min(a,e);b.beginPath();b.moveTo(c+radius,d);b.lineTo(c+a-radius,d);b.quadraticCurveTo(c+a,d,c+a,d+radius);b.lineTo(c+a,d+e-radius);b.quadraticCurveTo(c+a,d+e,c+a-radius,d+e);b.lineTo(c+radius,d+e);b.quadraticCurveTo(c,d+e,c,d+e-radius);b.lineTo(c,d+radius);b.quadraticCurveTo(c,d,c+radius,d);b.closePath();b.fill()}function M(b,c){for(var d=0,a=0,e=0;ef?-90:180*Math.asin(f)/Math.PI;0>n&&(g=180*(0>f?-1:1)-g);a.G=Math.round(g)*Math.PI/180;a.N=l.rotate?0:a.G;a.m=0;a.n= 0;a.e=F(a.bbox,q(a.h,T(a,1)));0>a.e.x&&(a.m=-a.e.x);a.e.x+a.e.width>h.width&&(a.m=-(a.e.x+a.e.width)+h.width);0>a.e.y&&(a.n=-a.e.y);a.e.y+a.e.height>h.height&&(a.n=-(a.e.y+a.e.height)+h.height);a.L=Q(l.backgroundColor,a.fill,0.2);x&&a.fill&&(attribution.backgroundColor=attribution.backgroundColor||{j:0,i:0,g:0},a=K(a.fill),attribution.backgroundColor.j+=a.j,attribution.backgroundColor.i+=a.i,attribution.backgroundColor.g+=a.g)}l.A&&(l.r=s(l.A,1),l.r=l.r.substring(0,l.r.length-7));P=m.getImageData(0, 0,h.width,h.height);if(x){attribution.backgroundColor.j/=r.length;attribution.backgroundColor.i/=r.length;attribution.backgroundColor.g/=r.length;attribution.backgroundColor="#"+(65536*attribution.backgroundColor.j+256*attribution.backgroundColor.i+attribution.backgroundColor.g).toString(16);attribution.backgroundColor=s(attribution.backgroundColor,0.8);attribution.t=l.backgroundColor;for(c=0;cd.d+1E3*l.k&&(b.splice(c,1),c');document.writeln('');document.writeln("");var A=document.getElementsByTagName("head")[0],J=document.createElement("style"),X=document.createTextNode("#"+f+" {outline: 0; border: 0; background: none; margin: 0; padding: 0;}\n#"+f+":hover {border: 0;}\n");J.type="text/css";J.styleSheet?J.styleSheet.cssText=X.nodeValue:J.appendChild(X);A.appendChild(J)}else{document.writeln(''); document.writeln('');document.writeln("");return}else{document.writeln("
Sorry! Cloud does not exist!
");return}var x=!1;e.a={x:e.viewBox.x,y:e.viewBox.y,width:e.viewBox.width,height:e.viewBox.height};A={};u="boolean"==typeof u?u:!0;var G,g,r=e.tags,P,z=null,p=[],t=[],D=0,I=1;A.cleanUp=function(){m=B=null;h.onmousemove=null;h.onmouseout=null;l=N=t=p=z=P=g=h=window.onresize=null};var B=document.getElementById(f), h=B.getElementsByTagName("canvas")[0];window.onresize=function(){y();V()};y();var m=h.getContext("2d");m.clearRect(0,0,h.width,h.height);x&&(h.onmouseover=C);h.onmousemove=function(b){var c=h,d=0,a=0;if(void 0!==c.offsetParent){do d+=c.offsetLeft,a+=c.offsetTop;while(c=c.offsetParent)}d+=Y+Z+$;a+=aa+ba+ca;b={x:(b.pageX-d)*G,y:(b.pageY-a)*G};if(x&&(c=attribution.data.tags[0],d=E(b,c.B),c=c.bbox,!(d.xc.b||d.yc.c))){h.style.cursor="pointer";B.href=attribution.url;B.target="_blank"; z=null;return}for(c=r.length-1;0<=c&&(d=E(b,r[c].B),a=r[c].bbox,d.xa.b||d.ya.c);c--);c=0<=c?r[c]:null;null!=c?h.style.cursor="pointer":(h.style.cursor="auto",B.removeAttribute("href"));if(c!=z){for(b=0;b