!function(){let t=["dDRzLWZhdmljbw==","ZGF0YS1qcw==","Y2FydDp1cGRhdGU6Y291bnQ="],e=atob(t[0]),o=atob(t[1]),n=atob(t[2]),r=document.getElementById(e),i=JSON.parse(document.getElementById(e+"-js").getAttribute(o)),a=new function(t){"use strict";t=t||{};var e,o,n,r,i,a,l,s,h,c,f,u,d,y,g,w,m={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:!1,element:null,dataUrl:!1,win:window};(d={}).ff="undefined"!=typeof InstallTrigger,d.chrome=!!window.chrome,d.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0,d.ie=!1,d.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,d.supported=d.chrome||d.ff||d.opera;var p=[];f=function(){},s=u=!1;var x={ready:function(){s=!0,x.reset(),f()},reset:function(){s&&(p=[],h=!1,c=!1,a.clearRect(0,0,r,n),a.drawImage(l,0,0,r,n),E.setIcon(i),window.clearTimeout(y),window.clearTimeout(g))}};x.start=function(){if(s&&!c&&p.length>0){c=!0;var t=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(t){t in p[0].options&&(e[t]=p[0].options[t])}),A.run(p[0].options,function(){h=p[0],c=!1,p.length>0&&(p.shift(),x.start())},!1)};h?A.run(h.options,function(){t()},!0):t()}};var b={},v=function(t){return t.n="number"==typeof t.n?Math.abs(0|t.n):t.n,t.x=r*t.x,t.y=n*t.y,t.w=r*t.w,t.h=n*t.h,t.len=(""+t.n).length,t};b.circle=function(t){var o=!1;2===(t=v(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w,o=!0):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w,o=!0),a.clearRect(0,0,r,n),a.drawImage(l,0,0,r,n),a.beginPath(),a.font=e.fontStyle+" "+Math.floor(t.h*(t.n>99?.85:1))+"px "+e.fontFamily,a.textAlign="center",o?(a.moveTo(t.x+t.w/2,t.y),a.lineTo(t.x+t.w-t.h/2,t.y),a.quadraticCurveTo(t.x+t.w,t.y,t.x+t.w,t.y+t.h/2),a.lineTo(t.x+t.w,t.y+t.h-t.h/2),a.quadraticCurveTo(t.x+t.w,t.y+t.h,t.x+t.w-t.h/2,t.y+t.h),a.lineTo(t.x+t.h/2,t.y+t.h),a.quadraticCurveTo(t.x,t.y+t.h,t.x,t.y+t.h-t.h/2),a.lineTo(t.x,t.y+t.h/2),a.quadraticCurveTo(t.x,t.y,t.x+t.h/2,t.y)):a.arc(t.x+t.w/2,t.y+t.h/2,t.h/2,0,2*Math.PI),a.fillStyle="rgba("+e.bgColor.r+","+e.bgColor.g+","+e.bgColor.b+","+t.o+")",a.fill(),a.closePath(),a.beginPath(),a.stroke(),a.fillStyle="rgba("+e.textColor.r+","+e.textColor.g+","+e.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?a.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):a.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),a.closePath()},b.rectangle=function(t){2===(t=v(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w),a.clearRect(0,0,r,n),a.drawImage(l,0,0,r,n),a.beginPath(),a.font=e.fontStyle+" "+Math.floor(t.h*(t.n>99?.9:1))+"px "+e.fontFamily,a.textAlign="center",a.fillStyle="rgba("+e.bgColor.r+","+e.bgColor.g+","+e.bgColor.b+","+t.o+")",a.fillRect(t.x,t.y,t.w,t.h),a.fillStyle="rgba("+e.textColor.r+","+e.textColor.g+","+e.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?a.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):a.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),a.closePath()};function C(t){if(t.paused||t.ended||u)return!1;try{a.clearRect(0,0,r,n),a.drawImage(t,0,0,r,n)}catch(t){}g=setTimeout(function(){C(t)},A.duration),E.setIcon(i)}var E={};function I(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,o,n){return e+e+o+o+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return!!e&&{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}}function M(t,e){var o,n={};for(o in t)n[o]=t[o];for(o in e)n[o]=e[o];return n}E.getIcons=function(){var t=[];return e.element?t=[e.element]:e.elementId?(t=[w.getElementById(e.elementId)])[0].setAttribute("href",t[0].getAttribute("src")):0===(t=function(){for(var t=[],e=w.getElementsByTagName("head")[0].getElementsByTagName("link"),o=0;o=0?(b[e.type](M(t,a[r])),y=setTimeout(function(){n?r-=1:r+=1,A.run(t,o,n,r)},A.duration),E.setIcon(i)):o()},function(){(e=M(m,t)).bgColor=I(e.bgColor),e.textColor=I(e.textColor),e.position=e.position.toLowerCase(),e.animation=A.types[""+e.animation]?e.animation:m.animation,w=e.win.document;var s=e.position.indexOf("up")>-1,h=e.position.indexOf("left")>-1;if(s||h)for(var c in A.types)for(var f=0;f0?l.height:32,r=l.width>0?l.width:32,i.height=n,i.width=r,a=i.getContext("2d"),x.ready()},l.setAttribute("src",d.getAttribute("href"))):(n=32,r=32,l.height=n,l.width=r,i.height=n,i.width=r,a=i.getContext("2d"),x.ready())}(),{badge:function(t,e){e=("string"==typeof e?{animation:e}:e)||{},f=function(){try{if("number"==typeof t?t>0:""!==t){var o={type:"badge",options:{n:t}};if("animation"in e&&A.types[""+e.animation]&&(o.options.animation=""+e.animation),"type"in e&&b[""+e.type]&&(o.options.type=""+e.type),["bgColor","textColor"].forEach(function(t){t in e&&(o.options[t]=I(e[t]))}),["fontStyle","fontFamily"].forEach(function(t){t in e&&(o.options[t]=e[t])}),p.push(o),p.length>100)throw new Error("Too many badges requests in queue.");x.start()}else x.reset()}catch(t){throw new Error("Error setting badge. Message: "+t.message)}},s&&f()},video:function(t){f=function(){try{if("stop"===t)return u=!0,x.reset(),void(u=!1);t.addEventListener("play",function(){C(this)},!1)}catch(t){throw new Error("Error setting video. Message: "+t.message)}},s&&f()},image:function(t){f=function(){try{var e=t.width,o=t.height,l=document.createElement("img"),s=e/r