vendor: 4,676 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Raphael=e():t.Raphael=e()}(this,(function(){return function(t){function e(n){if(a[n])return a[n].exports;var i=a[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var a={};return e.m=t,e.c=a,e.p="",e(0)}([function(t,e,a){var n,i;n=[a(1),a(3),a(4)],void 0===(i=function(t){return t}.apply(e,n))||(t.exports=i)},function(t,e,a){var n,i;n=[a(2)],void 0===(i=function(t){function e(a){if(e.is(a,"function"))return v?a():t.on("raphael.DOMload",a);if(e.is(a,W))return e._engine.create[k](e,a.splice(0,3+e.is(a[0],G))).add(a);var n=Array.prototype.slice.call(arguments,0);if(e.is(n[n.length-1],"function")){var i=n.pop();return v?i.call(e._engine.create[k](e,n)):t.on("raphael.DOMload",(function(){i.call(e._engine.create[k](e,n))}))}return e._engine.create[k](e,arguments)}function a(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[q](n)&&(e[n]=a(t[n]));return e}function n(t,e){for(var a=0,n=t.length;a<n;a++)if(t[a]===e)return t.push(t.splice(a,1)[0])}function i(t,e,a){return function i(){var r=Array.prototype.slice.call(arguments,0),o=r.join("â"),s=i.cache=i.cache||{},l=i.count=i.count||[];return s[q](o)?(n(l,o),a?a(s[o]):s[o]):(l.length>=1e3&&delete s[l.shift()],l.push(o),s[o]=t[k](e,r),a?a(s[o]):s[o])}}function r(){return this.hex}function o(t,e){for(var a=[],n=0,i=t.length;i-2*!e>n;n+=2){var r=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?i-4==n?r[3]={x:+t[0],y:+t[1]}:i-2==n&&(r[2]={x:+t[0],y:+t[1]},r[3]={x:+t[2],y:+t[3]}):r[0]={x:+t[i-2],y:+t[i-1]}:i-4==n?r[3]=r[2]:n||(r[0]={x:+t[n],y:+t[n+1]}),a.push(["C",(-r[0].x+6*r[1].x+r[2].x)/6,(-r[0].y+6*r[1].y+r[2].y)/6,(r[1].x+6*r[2].x-r[3].x)/6,(r[1].y+6*r[2].y-r[3].y)/6,r[2].x,r[2].y])}return a}function s(t,e,a,n,i){return t*(t*(-3*e+9*a-9*n+3*i)+6*e-12*a+6*n)-3*e+3*a}function l(t,e,a,n,i,r,o,l,u){null==u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,f=0;f<12;f++){var y=c*d[f]+c,m=s(y,t,a,i,o),g=s(y,e,n,r,l),v=m*m+g*g;h+=p[f]*I.sqrt(v)}return c*h}function u(t,e,a,n,i,r,o,s){if(!(B(t,a)<D(i,o)||D(t,a)>B(i,o)||B(e,n)<D(r,s)||D(e,n)>B(r,s))){var l=(t-a)*(r-s)-(e-n)*(i-o);if(l){var u=((t*n-e*a)*(i-o)-(t-a)*(i*s-r*o))/l,c=((t*n-e*a)*(r-s)-(e-n)*(i*s-r*o))/l,d=+u.toFixed(2),p=+c.toFixed(2);if(!(d<+D(t,a).toFixed(2)||d>+B(t,a).toFixed(2)||d<+D(i,o).toFixed(2)||d>+B(i,o).toFixed(2)||p<+D(e,n).toFixed(2)||p>+B(e,n).toFixed(2)||p<+D(r,s).toFixed(2)||p>+B(r,s).toFixed(2)))return{x:u,y:c}}}}function c(t,a,n){var i=e.bezierBBox(t),r=e.bezierBBox(a);if(!e.isBBoxIntersect(i,r))return n?0:[];for(var o=l.apply(0,t),s=l.apply(0,a),c=B(~~(o/5),1),d=B(~~(s/5),1),p=[],h=[],f={},y=n?0:[],m=0;m<c+1;m++){var g=e.findDotsAtSegment.apply(e,t.concat(m/c));p.push({x:g.x,y:g.y,t:m/c})}for(m=0;m<d+1;m++)g=e.findDotsAtSegment.apply(e,a.concat(m/d)),h.push({x:g.x,y:g.y,t:m/d});for(m=0;m<c;m++)for(var v=0;v<d;v++){var b=p[m],w=p[m+1],_=h[v],x=h[v+1],q=N(w.x-b.x)<.001?"y":"x",P=N(x.x-_.x)<.001?"y":"x",M=u(b.x,b.y,w.x,w.y,_.x,_.y,x.x,x.y);if(M){if(f[M.x.toFixed(4)]==M.y.toFixed(4))continue;f[M.x.toFixed(4)]=M.y.toFixed(4);var O=b.t+N((M[q]-b[q])/(w[q]-b[q]))*(w.t-b.t),k=_.t+N((M[P]-_[P])/(x[P]-_[P]))*(x.t-_.t);O>=0&&O<=1.001&&k>=0&&k<=1.001&&(n?y++:y.push({x:M.x,y:M.y,t1:D(O,1),t2:D(k,1)}))}}return y}function d(t,a,n){t=e._path2curve(t),a=e._path2curve(a);for(var i,r,o,s,l,u,d,p,h,f,y=n?0:[],m=0,g=t.length;m<g;m++){var v=t[m];if("M"==v[0])i=l=v[1],r=u=v[2];else{"C"==v[0]?(h=[i,r].concat(v.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,l,u,l,u],i=l,r=u);for(var b=0,w=a.length;b<w;b++){var _=a[b];if("M"==_[0])o=d=_[1],s=p=_[2];else{"C"==_[0]?(f=[o,s].concat(_.slice(1)),o=f[6],s=f[7]):(f=[o,s,o,s,d,p,d,p],o=d,s=p);var x=c(h,f,n);if(n)y+=x;else{for(var q=0,P=x.length;q<P;q++)x[q].segment1=m,x[q].segment2=b,x[q].bez1=h,x[q].bez2=f;y=y.concat(x)}}}}}return y}function p(t,e,a,n,i,r){null!=t?(this.a=+t,this.b=+e,this.c=+a,this.d=+n,this.e=+i,this.f=+r):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function h(){return this.x+j+this.y+j+this.width+" Ã "+this.height}function f(t,e,a,n,i,r){function o(t){return((u*t+l)*t+s)*t}var s=3*e,l=3*(n-e)-s,u=1-s-l,c=3*a,d=3*(i-a)-c,p=1-c-d;return function(t,e){var a=function(t,e){var a,n,i,r,c,d;for(i=t,d=0;d<8;d++){if(r=o(i)-t,N(r)<e)return i;if(N(c=(3*u*i+2*l)*i+s)<1e-6)break;i-=r/c}if(n=1,(i=t)<(a=0))return a;
vendor: 66,347 bytes, lines 1-3
1if(i>n)return n;for(;a<n;){if(r=o(i),N(r-t)<e)return i;t>r?a=i:n=i,i=(n-a)/2+a}return i}(t,e);return((p*a+d)*a+c)*a}(t,1/(200*r))}function y(t,e){var a=[],n={};if(this.ms=e,this.times=1,t){for(var i in t)t[q](i)&&(n[$(i)]=t[i],a.push($(i)));a.sort(ut)}this.anim=n,this.top=a[a.length-1],this.percents=a}function m(a,n,i,r,o,s){i=$(i);var l,u,c,d,h,y,m=a.ms,g={},v={},b={};if(r)for(x=0,P=ne.length;x<P;x++){var _=ne[x];if(_.el.id==n.id&&_.anim==a){_.percent!=i?(ne.splice(x,1),c=1):u=_,n.attr(_.totalOrigin);break}}else r=+v;for(var x=0,P=a.percents.length;x<P;x++){if(a.percents[x]==i||a.percents[x]>r*a.top){i=a.percents[x],h=a.percents[x-1]||0,m=m/a.top*(i-h),d=a.percents[x+1],l=a.anim[i];break}r&&n.attr(a.anim[a.percents[x]])}if(l){if(u)u.initstatus=r,u.start=new Date-u.ms*r;else{for(var M in l)if(l[q](M)&&(et[q](M)||n.paper.customAttributes[q](M)))switch(g[M]=n.attr(M),null==g[M]&&(g[M]=tt[M]),v[M]=l[M],et[M]){case G:b[M]=(v[M]-g[M])/m;break;case"colour":g[M]=e.getRGB(g[M]);var O=e.getRGB(v[M]);b[M]={r:(O.r-g[M].r)/m,g:(O.g-g[M].g)/m,b:(O.b-g[M].b)/m};break;case"path":var k=Lt(g[M],v[M]),S=k[1];for(g[M]=k[0],b[M]=[],x=0,P=g[M].length;x<P;x++){b[M][x]=[0];for(var A=1,j=g[M][x].length;A<j;A++)b[M][x][A]=(S[x][A]-g[M][x][A])/m}break;case"transform":var E=n._,F=Bt(E[M],v[M]);if(F)for(g[M]=F.from,v[M]=F.to,b[M]=[],b[M].real=!0,x=0,P=g[M].length;x<P;x++)for(b[M][x]=[g[M][x][0]],A=1,j=g[M][x].length;A<j;A++)b[M][x][A]=(v[M][x][A]-g[M][x][A])/m;else{var R=n.matrix||new p,I={_:{transform:E.transform},getBBox:function(){return n.getBBox(1)}};g[M]=[R.a,R.b,R.c,R.d,R.e,R.f],Rt(I,v[M]),v[M]=I._.transform,b[M]=[(I.matrix.a-R.a)/m,(I.matrix.b-R.b)/m,(I.matrix.c-R.c)/m,(I.matrix.d-R.d)/m,(I.matrix.e-R.e)/m,(I.matrix.f-R.f)/m]}break;case"csv":var B=C(l[M])[L](w),D=C(g[M])[L](w);if("clip-rect"==M)for(g[M]=D,b[M]=[],x=D.length;x--;)b[M][x]=(B[x]-g[M][x])/m;v[M]=B;break;default:for(B=[][T](l[M]),D=[][T](g[M]),b[M]=[],x=n.paper.customAttributes[M].length;x--;)b[M][x]=((B[x]||0)-(D[x]||0))/m}var N=l.easing,H=e.easing_formulas[N];if(!H)if((H=C(N).match(X))&&5==H.length){var z=H;H=function(t){return f(t,+z[1],+z[2],+z[3],+z[4],m)}}else H=ct;if(_={anim:a,percent:i,timestamp:y=l.start||a.start||+new Date,start:y+(a.del||0),status:0,initstatus:r||0,stop:!1,ms:m,easing:H,from:g,diff:b,to:v,el:n,callback:l.callback,prev:h,next:d,repeat:s||a.times,origin:n.attr(),totalOrigin:o},ne.push(_),r&&!u&&!c&&(_.stop=!0,_.start=new Date-m*r,1==ne.length))return re();c&&(_.start=new Date-_.ms*r),1==ne.length&&ie(re)}t("raphael.anim.start."+n.id,n,a)}}function g(t){for(var e=0;e<ne.length;e++)ne[e].el.paper==t&&ne.splice(e--,1)}e.version="2.2.0",e.eve=t;var v,b,w=/[, ]+/,_={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},x=/\{(\d+)\}/g,q="hasOwnProperty",P={doc:document,win:window},M={was:Object.prototype[q].call(P.win,"Raphael"),is:P.win.Raphael},O=function(){this.ca=this.customAttributes={}},k="apply",T="concat",S="ontouchstart"in P.win||P.win.DocumentTouch&&P.doc instanceof DocumentTouch,A="",j=" ",C=String,L="split",E="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[L](j),F={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},R=C.prototype.toLowerCase,I=Math,B=I.max,D=I.min,N=I.abs,H=I.pow,z=I.PI,G="number",U="string",W="array",V=Object.prototype.toString,Y=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),Q={NaN:1,Infinity:1,"-Infinity":1},X=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,J=I.round,$=parseFloat,K=parseInt,Z=C.prototype.toUpperCase,tt=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},et=e._availableAnimAttrs={blur:G,"clip-rect":"csv",cx:G,cy:G,fill:"colour","fill-opacity":G,"font-size":G,height:G,opacity:G,path:"path",r:G,rx:G,ry:G,stroke:"colour","stroke-opacity":G,"stroke-width":G,transform:"transform",width:G,x:G,y:G},at=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,nt={hs:1,rg:1},it=/,?([achlmqrstvxz]),?/gi,rt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ot=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,st=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,lt=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),ut=function(t,e){return $(t)-$(e)},ct=function(t){return t},dt=e._rectPath=function(t,e,a,n,i){return i?[["M",t+i,e],["l",a-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-a,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",a,0],["l",0,n],["l",-a,0],["z"]]},pt=function(t,e,a,n){return null==n&&(n=a),[["M",t,e],["m",0,-n],["a",a,n,0,1,1,0,2*n],["a",a,n,0,1,1,0,-2*n],["z"]]},ht=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return pt(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return pt(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return dt(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return dt(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return dt(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return dt(e.x,e.y,e.width,e.height)}},ft=e.mapPath=function(t,e){if(!e)return t;var a,n,i,r,o,s,l;for(i=0,o=(t=Lt(t)).length;i<o;i++)for(r=1,s=(l=t[i]).length;r<s;r+=2)a=e.x(l[r],l[r+1]),n=e.y(l[r],l[r+1]),l[r]=a,l[r+1]=n;return t};if(e._g=P,e.type=P.win.SVGAngle||P.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==e.type){var yt,mt=P.doc.createElement("div");if(mt.innerHTML='<v:shape adj="1"/>',(yt=mt.firstChild).style.behavior="url(#default#VML)",!yt||"object"!=typeof yt.adj)return e.type=A;mt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=O,e.fn=b=O.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=R.call(e))?!Q[q](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||V.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,a,n,i,r,o){if(null==r){var s=t-n,l=a-i;return s||l?(180+180*I.atan2(-l,-s)/z+360)%360:0}return e.angle(t,a,r,o)-e.angle(n,i,r,o)},e.rad=function(t){return t%360*z/180},e.deg=function(t){return Math.round(180*t/z%360*1e3)/1e3},e.snapTo=function(t,a,n){if(n=e.is(n,"finite")?n:10,e.is(t,W)){for(var i=t.length;i--;)if(N(t[i]-a)<=n)return t[i]}else{var r=a%(t=+t);if(r<n)return a-r;if(r>t-n)return a-r+t}return a};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,(function(t){var e=16*I.random()|0;return("x"==t?e:3&e|8).toString(16)}));e.setWindow=function(a){t("raphael.setWindow",e,P.win,a),P.win=a,P.doc=P.win.document,e._engine.initWin&&e._engine.initWin(P.win)};var gt=function(t){if(e.vml){var a,n=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write("<body>"),r.close(),a=r.body}catch(t){a=createPopup().document.body}var o=a.createTextRange();gt=i((function(t){try{a.style.color=C(t).replace(n,A);var e=o.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var s=P.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",P.doc.body.appendChild(s),gt=i((function(t){return s.style.color=t,P.doc.defaultView.getComputedStyle(s,A).getPropertyValue("color")}))}return gt(t)},vt=function(){return"hsb("+[this.h,this.s,this.b]+")"},bt=function(){return"hsl("+[this.h,this.s,this.l]+")"},wt=function(){return this.hex},_t=function(t,a,n){if(null==a&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,a=t.g,t=t.r),null==a&&e.is(t,U)){var i=e.getRGB(t);t=i.r,a=i.g,n=i.b}return(t>1||a>1||n>1)&&(t/=255,a/=255,n/=255),[t,a,n]},xt=function(t,a,n,i){var r={r:t*=255,g:a*=255,b:n*=255,hex:e.rgb(t,a,n),toString:wt};return e.is(i,"finite")&&(r.opacity=i),r};e.color=function(t){var a;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(a=e.hsb2rgb(t),t.r=a.r,t.g=a.g,t.b=a.b,t.hex=a.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(a=e.hsl2rgb(t),t.r=a.r,t.g=a.g,t.b=a.b,t.hex=a.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(a=e.rgb2hsl(t),t.h=a.h,t.s=a.s,t.l=a.l,a=e.rgb2hsb(t),t.v=a.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=wt,t},e.hsb2rgb=function(t,e,a,n){var i,r,o,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(a=t.b,e=t.s,n=t.o,t=t.h),i=r=o=a-(l=a*e),i+=[l,s=l*(1-N((t=(t*=360)%360/60)%2-1)),0,0,s,l][t=~~t],r+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],xt(i,r,o,n)},e.hsl2rgb=function(t,e,a,n){var i,r,o,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(a=t.l,e=t.s,t=t.h),(t>1||e>1||a>1)&&(t/=360,e/=100,a/=100),i=r=o=a-(l=2*e*(a<.5?a:1-a))/2,i+=[l,s=l*(1-N((t=(t*=360)%360/60)%2-1)),0,0,s,l][t=~~t],r+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],xt(i,r,o,n)},e.rgb2hsb=function(t,e,a){var n,i;return t=(a=_t(t,e,a))[0],e=a[1],a=a[2],{h:((0==(i=(n=B(t,e,a))-D(t,e,a))?null:n==t?(e-a)/i:n==e?(a-t)/i+2:(t-e)/i+4)+360)%6*60/360,s:0==i?0:i/n,b:n,toString:vt}},e.rgb2hsl=function(t,e,a){var n,i,r,o;return t=(a=_t(t,e,a))[0],e=a[1],a=a[2],n=((i=B(t,e,a))+(r=D(t,e,a)))/2,{h:((0==(o=i-r)?null:i==t?(e-a)/o:i==e?(a-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:n<.5?o/(2*n):o/(2-2*n),l:n,toString:bt}},e._path2string=function(){return this.join(",").replace(it,"$1")};e._preload=function(t,e){var a=P.doc.createElement("img");a.style.cssText="position:absolute;left:-9999em;top:-9999em",a.onload=function(){e.call(this),this.onload=null,P.doc.body.removeChild(this)},a.onerror=function(){P.doc.body.removeChild(this)},P.doc.body.appendChild(a),a.src=t};e.getRGB=i((function(t){if(!t||(t=C(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:r};!nt[q](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=gt(t));var a,n,i,o,s,l,u=t.match(Y);return u?(u[2]&&(i=K(u[2].substring(5),16),n=K(u[2].substring(3,5),16),a=K(u[2].substring(1,3),16)),u[3]&&(i=K((s=u[3].charAt(3))+s,16),n=K((s=u[3].charAt(2))+s,16),a=K((s=u[3].charAt(1))+s,16)),u[4]&&(l=u[4][L](at),a=$(l[0]),"%"==l[0].slice(-1)&&(a*=2.55),n=$(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),i=$(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(o=$(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100)),u[5]?(l=u[5][L](at),a=$(l[0]),"%"==l[0].slice(-1)&&(a*=2.55),n=$(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),i=$(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(a/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(o=$(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),e.hsb2rgb(a,n,i,o)):u[6]?(l=u[6][L](at),a=$(l[0]),"%"==l[0].slice(-1)&&(a*=2.55),n=$(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),i=$(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(a/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(o=$(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),e.hsl2rgb(a,n,i,o)):((u={r:a,g:n,b:i,toString:r}).hex="#"+(16777216|i|n<<8|a<<16).toString(16).slice(1),e.is(o,"finite")&&(u.opacity=o),u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r}}),e),e.hsb=i((function(t,a,n){return e.hsb2rgb(t,a,n).hex})),e.hsl=i((function(t,a,n){return e.hsl2rgb(t,a,n).hex})),e.rgb=i((function(t,e,a){function n(t){return t+.5|0}return"#"+(16777216|n(a)|n(e)<<8|n(t)<<16).toString(16).slice(1)})),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},a=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),a.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var a=qt(t);if(a.arr)return Mt(a.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return e.is(t,W)&&e.is(t[0],W)&&(i=Mt(t)),i.length||C(t).replace(rt,(function(t,e,a){var r=[],o=e.toLowerCase();if(a.replace(st,(function(t,e){e&&r.push(+e)})),"m"==o&&r.length>2&&(i.push([e][T](r.splice(0,2))),o="l",e="m"==e?"l":"L"),"r"==o)i.push([e][T](r));else for(;r.length>=n[o]&&(i.push([e][T](r.splice(0,n[o]))),n[o]););})),i.toString=e._path2string,a.arr=Mt(i),i},e.parseTransformString=i((function(t){if(!t)return null;var a=[];return e.is(t,W)&&e.is(t[0],W)&&(a=Mt(t)),a.length||C(t).replace(ot,(function(t,e,n){var i=[];R.call(e);n.replace(st,(function(t,e){e&&i.push(+e)})),a.push([e][T](i))})),a.toString=e._path2string,a}));var qt=function(t){var e=qt.ps=qt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var a in e)e[q](a)&&a!=t&&(e[a].sleep--,!e[a].sleep&&delete e[a])})),e[t]};e.findDotsAtSegment=function(t,e,a,n,i,r,o,s,l){var u=1-l,c=H(u,3),d=H(u,2),p=l*l,h=p*l,f=c*t+3*d*l*a+3*u*l*l*i+h*o,y=c*e+3*d*l*n+3*u*l*l*r+h*s,m=t+2*l*(a-t)+p*(i-2*a+t),g=e+2*l*(n-e)+p*(r-2*n+e),v=a+2*l*(i-a)+p*(o-2*i+a),b=n+2*l*(r-n)+p*(s-2*r+n),w=u*t+l*a,_=u*e+l*n,x=u*i+l*o,q=u*r+l*s,P=90-180*I.atan2(m-v,g-b)/z;return(m>v||g<b)&&(P+=180),{x:f,y:y,m:{x:m,y:g},n:{x:v,y:b},start:{x:w,y:_},end:{x:x,y:q},alpha:P}},e.bezierBBox=function(t,a,n,i,r,o,s,l){e.is(t,"array")||(t=[t,a,n,i,r,o,s,l]);var u=Ct.apply(null,t);return{x:u.min.x,y:u.min.y,x2:u.max.x,y2:u.max.y,width:u.max.x-u.min.x,height:u.max.y-u.min.y}},e.isPointInsideBBox=function(t,e,a){return e>=t.x&&e<=t.x2&&a>=t.y&&a<=t.y2},e.isBBoxIntersect=function(t,a){var n=e.isPointInsideBBox;return n(a,t.x,t.y)||n(a,t.x2,t.y)||n(a,t.x,t.y2)||n(a,t.x2,t.y2)||n(t,a.x,a.y)||n(t,a.x2,a.y)||n(t,a.x,a.y2)||n(t,a.x2,a.y2)||(t.x<a.x2&&t.x>a.x||a.x<t.x2&&a.x>t.x)&&(t.y<a.y2&&t.y>a.y||a.y<t.y2&&a.y>t.y)},e.pathIntersection=function(t,e){return d(t,e)},e.pathIntersectionNumber=function(t,e){return d(t,e,1)},e.isPointInsidePath=function(t,a,n){var i=e.pathBBox(t);return e.isPointInsideBBox(i,a,n)&&d(t,[["M",a,n],["H",i.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method â"+e+"â of removed object",e)}};var Pt=e.pathBBox=function(t){var e=qt(t);if(e.bbox)return a(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,i=0,r=0,o=[],s=[],l=0,u=(t=Lt(t)).length;l<u;l++)if("M"==(n=t[l])[0])i=n[1],r=n[2],o.push(i),s.push(r);else{var c=Ct(i,r,n[1],n[2],n[3],n[4],n[5],n[6]);o=o[T](c.min.x,c.max.x),s=s[T](c.min.y,c.max.y),i=n[5],r=n[6]}var d=D[k](0,o),p=D[k](0,s),h=B[k](0,o),f=B[k](0,s),y=h-d,m=f-p,g={x:d,y:p,x2:h,y2:f,width:y,height:m,cx:d+y/2,cy:p+m/2};return e.bbox=a(g),g},Mt=function(t){var n=a(t);return n.toString=e._path2string,n},Ot=e._pathToRelative=function(t){var a=qt(t);if(a.rel)return Mt(a.rel);e.is(t,W)&&e.is(t&&t[0],W)||(t=e.parsePathString(t));var n=[],i=0,r=0,o=0,s=0,l=0;"M"==t[0][0]&&(o=i=t[0][1],s=r=t[0][2],l++,n.push(["M",i,r]));for(var u=l,c=t.length;u<c;u++){var d=n[u]=[],p=t[u];if(p[0]!=R.call(p[0]))switch(d[0]=R.call(p[0]),d[0]){case"a":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+(p[6]-i).toFixed(3),d[7]=+(p[7]-r).toFixed(3);break;case"v":d[1]=+(p[1]-r).toFixed(3);break;case"m":o=p[1],s=p[2];default:for(var h=1,f=p.length;h<f;h++)d[h]=+(p[h]-(h%2?i:r)).toFixed(3)}else{d=n[u]=[],"m"==p[0]&&(o=p[1]+i,s=p[2]+r);for(var y=0,m=p.length;y<m;y++)n[u][y]=p[y]}var g=n[u].length;switch(n[u][0]){case"z":i=o,r=s;break;case"h":i+=+n[u][g-1];break;case"v":r+=+n[u][g-1];break;default:i+=+n[u][g-2],r+=+n[u][g-1]}}return n.toString=e._path2string,a.rel=Mt(n),n},kt=e._pathToAbsolute=function(t){var a=qt(t);if(a.abs)return Mt(a.abs);if(e.is(t,W)&&e.is(t&&t[0],W)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],i=0,r=0,s=0,l=0,u=0;"M"==t[0][0]&&(s=i=+t[0][1],l=r=+t[0][2],u++,n[0]=["M",i,r]);for(var c,d,p=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),h=u,f=t.length;h<f;h++){if(n.push(c=[]),(d=t[h])[0]!=Z.call(d[0]))switch(c[0]=Z.call(d[0]),c[0]){case"A":c[1]=d[1],c[2]=d[2],c[3]=d[3],c[4]=d[4],c[5]=d[5],c[6]=+(d[6]+i),c[7]=+(d[7]+r);break;case"V":c[1]=+d[1]+r;break;case"H":c[1]=+d[1]+i;break;case"R":for(var y=[i,r][T](d.slice(1)),m=2,g=y.length;m<g;m++)y[m]=+y[m]+i,y[++m]=+y[m]+r;n.pop(),n=n[T](o(y,p));break;case"M":s=+d[1]+i,l=+d[2]+r;default:for(m=1,g=d.length;m<g;m++)c[m]=+d[m]+(m%2?i:r)}else if("R"==d[0])y=[i,r][T](d.slice(1)),n.pop(),n=n[T](o(y,p)),c=["R"][T](d.slice(-2));else for(var v=0,b=d.length;v<b;v++)c[v]=d[v];switch(c[0]){case"Z":i=s,r=l;break;case"H":i=c[1];break;case"V":r=c[1];break;case"M":s=c[c.length-2],l=c[c.length-1];default:i=c[c.length-2],r=c[c.length-1]}}return n.toString=e._path2string,a.abs=Mt(n),n},Tt=function(t,e,a,n){return[t,e,a,n,a,n]},St=function(t,e,a,n,i,r){var o=1/3,s=2/3;return[o*t+s*a,o*e+s*n,o*i+s*a,o*r+s*n,i,r]},At=function(t,e,a,n,r,o,s,l,u,c){var d,p=120*z/180,h=z/180*(+r||0),f=[],y=i((function(t,e,a){return{x:t*I.cos(a)-e*I.sin(a),y:t*I.sin(a)+e*I.cos(a)}}));if(c)P=c[0],M=c[1],x=c[2],q=c[3];else{t=(d=y(t,e,-h)).x,e=d.y,l=(d=y(l,u,-h)).x,u=d.y;I.cos(z/180*r),I.sin(z/180*r);var m=(t-l)/2,g=(e-u)/2,v=m*m/(a*a)+g*g/(n*n);v>1&&(a*=v=I.sqrt(v),n*=v);var b=a*a,w=n*n,_=(o==s?-1:1)*I.sqrt(N((b*w-b*g*g-w*m*m)/(b*g*g+w*m*m))),x=_*a*g/n+(t+l)/2,q=_*-n*m/a+(e+u)/2,P=I.asin(((e-q)/n).toFixed(9)),M=I.asin(((u-q)/n).toFixed(9));(P=t<x?z-P:P)<0&&(P=2*z+P),(M=l<x?z-M:M)<0&&(M=2*z+M),s&&P>M&&(P-=2*z),!s&&M>P&&(M-=2*z)}var O=M-P;if(N(O)>p){var k=M,S=l,A=u;M=P+p*(s&&M>P?1:-1),l=x+a*I.cos(M),u=q+n*I.sin(M),f=At(l,u,a,n,r,0,s,S,A,[M,k,x,q])}O=M-P;var j=I.cos(P),C=I.sin(P),E=I.cos(M),F=I.sin(M),R=I.tan(O/4),B=4/3*a*R,D=4/3*n*R,H=[t,e],G=[t+B*C,e-D*j],U=[l+B*F,u-D*E],W=[l,u];if(G[0]=2*H[0]-G[0],G[1]=2*H[1]-G[1],c)return[G,U,W][T](f);for(var V=[],Y=0,Q=(f=[G,U,W][T](f).join()[L](",")).length;Y<Q;Y++)V[Y]=Y%2?y(f[Y-1],f[Y],h).y:y(f[Y],f[Y+1],h).x;return V},jt=function(t,e,a,n,i,r,o,s,l){var u=1-l;return{x:H(u,3)*t+3*H(u,2)*l*a+3*u*l*l*i+H(l,3)*o,y:H(u,3)*e+3*H(u,2)*l*n+3*u*l*l*r+H(l,3)*s}},Ct=i((function(t,e,a,n,i,r,o,s){var l,u=i-2*a+t-(o-2*i+a),c=2*(a-t)-2*(i-a),d=t-a,p=(-c+I.sqrt(c*c-4*u*d))/2/u,h=(-c-I.sqrt(c*c-4*u*d))/2/u,f=[e,s],y=[t,o];return N(p)>"1e12"&&(p=.5),N(h)>"1e12"&&(h=.5),p>0&&p<1&&(l=jt(t,e,a,n,i,r,o,s,p),y.push(l.x),f.push(l.y)),h>0&&h<1&&(l=jt(t,e,a,n,i,r,o,s,h),y.push(l.x),f.push(l.y)),u=r-2*n+e-(s-2*r+n),d=e-n,p=(-(c=2*(n-e)-2*(r-n))+I.sqrt(c*c-4*u*d))/2/u,h=(-c-I.sqrt(c*c-4*u*d))/2/u,N(p)>"1e12"&&(p=.5),N(h)>"1e12"&&(h=.5),p>0&&p<1&&(l=jt(t,e,a,n,i,r,o,s,p),y.push(l.x),f.push(l.y)),h>0&&h<1&&(l=jt(t,e,a,n,i,r,o,s,h),y.push(l.x),f.push(l.y)),{min:{x:D[k](0,y),y:D[k](0,f)},max:{x:B[k](0,y),y:B[k](0,f)}}})),Lt=e._path2curve=i((function(t,e){var a=!e&&qt(t);if(!e&&a.curve)return Mt(a.curve);for(var n=kt(t),i=e&&kt(e),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(t,e,a){var n,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][T](At[k](0,[e.x,e.y][T](t.slice(1))));break;case"S":"C"==a||"S"==a?(n=2*e.x-e.bx,i=2*e.y-e.by):(n=e.x,i=e.y),t=["C",n,i][T](t.slice(1));break;case"T":"Q"==a||"T"==a?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][T](St(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][T](St(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][T](Tt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][T](Tt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][T](Tt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][T](Tt(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)c[e]="A",i&&(d[e]="A"),t.splice(e++,0,["C"][T](a.splice(0,6)));t.splice(e,1),y=B(n.length,i&&i.length||0)}},u=function(t,e,a,r,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",r.x,r.y]),a.bx=0,a.by=0,a.x=t[o][1],a.y=t[o][2],y=B(n.length,i&&i.length||0))},c=[],d=[],p="",h="",f=0,y=B(n.length,i&&i.length||0);f<y;f++){n[f]&&(p=n[f][0]),"C"!=p&&(c[f]=p,f&&(h=c[f-1])),n[f]=s(n[f],r,h),"A"!=c[f]&&"C"==p&&(c[f]="C"),l(n,f),i&&(i[f]&&(p=i[f][0]),"C"!=p&&(d[f]=p,f&&(h=d[f-1])),i[f]=s(i[f],o,h),"A"!=d[f]&&"C"==p&&(d[f]="C"),l(i,f)),u(n,i,r,o,f),u(i,n,o,r,f);var m=n[f],g=i&&i[f],v=m.length,b=i&&g.length;r.x=m[v-2],r.y=m[v-1],r.bx=$(m[v-4])||r.x,r.by=$(m[v-3])||r.y,o.bx=i&&($(g[b-4])||o.x),o.by=i&&($(g[b-3])||o.y),o.x=i&&g[b-2],o.y=i&&g[b-1]}return i||(a.curve=Mt(n)),i?[n,i]:n}),null,Mt),Et=(e._parseDots=i((function(t){for(var a=[],n=0,i=t.length;n<i;n++){var r={},o=t[n].match(/^([^:]*):?([\d\.]*)/);if(r.color=e.getRGB(o[1]),r.color.error)return null;r.opacity=r.color.opacity,r.color=r.color.hex,o[2]&&(r.offset=o[2]+"%"),a.push(r)}for(n=1,i=a.length-1;n<i;n++)if(!a[n].offset){for(var s=$(a[n-1].offset||0),l=0,u=n+1;u<i;u++)if(a[u].offset){l=a[u].offset;break}l||(l=100,u=i);for(var c=((l=$(l))-s)/(u-n+1);n<u;n++)s+=c,a[n].offset=s+"%"}return a})),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Ft=(e._tofront=function(t,e){e.top!==t&&(Et(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(Et(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,a){Et(t,a),e==a.top&&(a.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,a){Et(t,a),e==a.bottom&&(a.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var a=Pt(t),n={_:{transform:A},getBBox:function(){return a}};return Rt(n,e),n.matrix}),Rt=(e.transformPath=function(t,e){return ft(t,Ft(t,e))},e._extractTransform=function(t,a){if(null==a)return t._.transform;a=C(a).replace(/\.{3}|\u2026/g,t._.transform||A);var n,i,r=e.parseTransformString(a),o=0,s=1,l=1,u=t._,c=new p;if(u.transform=r||[],r)for(var d=0,h=r.length;d<h;d++){var f,y,m,g,v,b=r[d],w=b.length,_=C(b[0]).toLowerCase(),x=b[0]!=_,q=x?c.invert():0;"t"==_&&3==w?x?(f=q.x(0,0),y=q.y(0,0),m=q.x(b[1],b[2]),g=q.y(b[1],b[2]),c.translate(m-f,g-y)):c.translate(b[1],b[2]):"r"==_?2==w?(v=v||t.getBBox(1),c.rotate(b[1],v.x+v.width/2,v.y+v.height/2),o+=b[1]):4==w&&(x?(m=q.x(b[2],b[3]),g=q.y(b[2],b[3]),c.rotate(b[1],m,g)):c.rotate(b[1],b[2],b[3]),o+=b[1]):"s"==_?2==w||3==w?(v=v||t.getBBox(1),c.scale(b[1],b[w-1],v.x+v.width/2,v.y+v.height/2),s*=b[1],l*=b[w-1]):5==w&&(x?(m=q.x(b[3],b[4]),g=q.y(b[3],b[4]),c.scale(b[1],b[2],m,g)):c.scale(b[1],b[2],b[3],b[4]),s*=b[1],l*=b[2]):"m"==_&&7==w&&c.add(b[1],b[2],b[3],b[4],b[5],b[6]),u.dirtyT=1,t.matrix=c}t.matrix=c,u.sx=s,u.sy=l,u.deg=o,u.dx=n=c.e,u.dy=i=c.f,1==s&&1==l&&!o&&u.bbox?(u.bbox.x+=+n,u.bbox.y+=+i):u.dirtyT=1}),It=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Bt=e._equaliseTransform=function(t,a){a=C(a).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],a=e.parseTransformString(a)||[];for(var n,i,r,o,s=B(t.length,a.length),l=[],u=[],c=0;c<s;c++){if(r=t[c]||It(a[c]),o=a[c]||It(r),r[0]!=o[0]||"r"==r[0].toLowerCase()&&(r[2]!=o[2]||r[3]!=o[3])||"s"==r[0].toLowerCase()&&(r[3]!=o[3]||r[4]!=o[4]))return;for(l[c]=[],u[c]=[],n=0,i=B(r.length,o.length);n<i;n++)n in r&&(l[c][n]=r[n]),n in o&&(u[c][n]=o[n])}return{from:l,to:u}};e._getContainer=function(t,a,n,i){var r;if(null!=(r=null!=i||e.is(t,"object")?t:P.doc.getElementById(t)))return r.tagName?null==a?{container:r,width:r.style.pixelWidth||r.offsetWidth,height:r.style.pixelHeight||r.offsetHeight}:{container:r,width:a,height:n}:{container:1,x:t,y:a,width:n,height:i}},e.pathToRelative=Ot,e._engine={},e.path2curve=Lt,e.matrix=function(t,e,a,n,i,r){return new p(t,e,a,n,i,r)},function(t){function a(t){return t[0]*t[0]+t[1]*t[1]}function n(t){var e=I.sqrt(a(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,a,n,i,r){var o,s,l,u,c=[[],[],[]],d=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],h=[[t,a,i],[e,n,r],[0,0,1]];for(t&&t instanceof p&&(h=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),o=0;o<3;o++)for(s=0;s<3;s++){for(u=0,l=0;l<3;l++)u+=d[o][l]*h[l][s];c[o][s]=u}this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new p(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new p(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,a,n){null==e&&(e=t),(a||n)&&this.add(1,0,0,1,a,n),this.add(t,0,0,e,0,0),(a||n)&&this.add(1,0,0,1,-a,-n)},t.rotate=function(t,a,n){t=e.rad(t),a=a||0,n=n||0;var i=+I.cos(t).toFixed(9),r=+I.sin(t).toFixed(9);this.add(i,r,-r,i,a,n),this.add(1,0,0,1,-a,-n)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[C.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){ 2return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];t.scalex=I.sqrt(a(i[0])),n(i[0]),t.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*t.shear,i[1][1]-i[0][1]*t.shear],t.scaley=I.sqrt(a(i[1])),n(i[1]),t.shear/=t.scaley;var r=-i[0][1],o=i[1][1];return o<0?(t.rotate=e.deg(I.acos(o)),r<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(I.asin(r)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[L]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:A)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:A)+(e.rotate?"r"+[e.rotate,0,0]:A)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(p.prototype);for(var Dt=function(){this.returnValue=!1},Nt=function(){return this.originalEvent.preventDefault()},Ht=function(){this.cancelBubble=!0},zt=function(){return this.originalEvent.stopPropagation()},Gt=function(t){var e=P.doc.documentElement.scrollTop||P.doc.body.scrollTop,a=P.doc.documentElement.scrollLeft||P.doc.body.scrollLeft;return{x:t.clientX+a,y:t.clientY+e}},Ut=P.doc.addEventListener?function(t,e,a,n){var i=function(t){var e=Gt(t);return a.call(n,t,e.x,e.y)};if(t.addEventListener(e,i,!1),S&&F[e]){var r=function(e){for(var i=Gt(e),r=e,o=0,s=e.targetTouches&&e.targetTouches.length;o<s;o++)if(e.targetTouches[o].target==t){(e=e.targetTouches[o]).originalEvent=r,e.preventDefault=Nt,e.stopPropagation=zt;break}return a.call(n,e,i.x,i.y)};t.addEventListener(F[e],r,!1)}return function(){return t.removeEventListener(e,i,!1),S&&F[e]&&t.removeEventListener(F[e],r,!1),!0}}:P.doc.attachEvent?function(t,e,a,n){var i=function(t){t=t||P.win.event;var e=P.doc.documentElement.scrollTop||P.doc.body.scrollTop,i=P.doc.documentElement.scrollLeft||P.doc.body.scrollLeft,r=t.clientX+i,o=t.clientY+e;return t.preventDefault=t.preventDefault||Dt,t.stopPropagation=t.stopPropagation||Ht,a.call(n,t,r,o)};return t.attachEvent("on"+e,i),function(){return t.detachEvent("on"+e,i),!0}}:void 0,Wt=[],Vt=function(e){for(var a,n=e.clientX,i=e.clientY,r=P.doc.documentElement.scrollTop||P.doc.body.scrollTop,o=P.doc.documentElement.scrollLeft||P.doc.body.scrollLeft,s=Wt.length;s--;){if(a=Wt[s],S&&e.touches){for(var l,u=e.touches.length;u--;)if((l=e.touches[u]).identifier==a.el._drag.id){n=l.clientX,i=l.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var c,d=a.el.node,p=d.nextSibling,h=d.parentNode,f=d.style.display;P.win.opera&&h.removeChild(d),d.style.display="none",c=a.el.paper.getElementByPoint(n,i),d.style.display=f,P.win.opera&&(p?h.insertBefore(d,p):h.appendChild(d)),c&&t("raphael.drag.over."+a.el.id,a.el,c),n+=o,i+=r,t("raphael.drag.move."+a.el.id,a.move_scope||a.el,n-a.el._drag.x,i-a.el._drag.y,n,i,e)}},Yt=function(a){e.unmousemove(Vt).unmouseup(Yt);for(var n,i=Wt.length;i--;)(n=Wt[i]).el._drag={},t("raphael.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,a);Wt=[]},Qt=e.el={},Xt=E.length;Xt--;)!function(t){e[t]=Qt[t]=function(a,n){return e.is(a,"function")&&(this.events=this.events||[],this.events.push({name:t,f:a,unbind:Ut(this.shape||this.node||P.doc,t,a,n||this)})),this},e["un"+t]=Qt["un"+t]=function(a){for(var n=this.events||[],i=n.length;i--;)n[i].name!=t||!e.is(a,"undefined")&&n[i].f!=a||(n[i].unbind(),n.splice(i,1),!n.length&&delete this.events);return this}}(E[Xt]);Qt.data=function(a,n){var i=lt[this.id]=lt[this.id]||{};if(0==arguments.length)return i;if(1==arguments.length){if(e.is(a,"object")){for(var r in a)a[q](r)&&this.data(r,a[r]);return this}return t("raphael.data.get."+this.id,this,i[a],a),i[a]}return i[a]=n,t("raphael.data.set."+this.id,this,n,a),this},Qt.removeData=function(t){return null==t?lt[this.id]={}:lt[this.id]&&delete lt[this.id][t],this},Qt.getData=function(){return a(lt[this.id]||{})},Qt.hover=function(t,e,a,n){return this.mouseover(t,a).mouseout(e,n||a)},Qt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Jt=[];Qt.drag=function(a,n,i,r,o,s){function l(l){(l.originalEvent||l).preventDefault();var u=l.clientX,c=l.clientY,d=P.doc.documentElement.scrollTop||P.doc.body.scrollTop,p=P.doc.documentElement.scrollLeft||P.doc.body.scrollLeft;if(this._drag.id=l.identifier,S&&l.touches)for(var h,f=l.touches.length;f--;)if(h=l.touches[f],this._drag.id=h.identifier,h.identifier==this._drag.id){u=h.clientX,c=h.clientY;break}this._drag.x=u+p,this._drag.y=c+d,!Wt.length&&e.mousemove(Vt).mouseup(Yt),Wt.push({el:this,move_scope:r,start_scope:o,end_scope:s}),n&&t.on("raphael.drag.start."+this.id,n),a&&t.on("raphael.drag.move."+this.id,a),i&&t.on("raphael.drag.end."+this.id,i),t("raphael.drag.start."+this.id,o||r||this,l.clientX+p,l.clientY+d,l)}return this._drag={},Jt.push({el:this,start:l}),this.mousedown(l),this},Qt.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},Qt.undrag=function(){for(var a=Jt.length;a--;)Jt[a].el==this&&(this.unmousedown(Jt[a].start),Jt.splice(a,1),t.unbind("raphael.drag.*."+this.id));!Jt.length&&e.unmousemove(Vt).unmouseup(Yt),Wt=[]},b.circle=function(t,a,n){var i=e._engine.circle(this,t||0,a||0,n||0);return this.__set__&&this.__set__.push(i),i},b.rect=function(t,a,n,i,r){var o=e._engine.rect(this,t||0,a||0,n||0,i||0,r||0);return this.__set__&&this.__set__.push(o),o},b.ellipse=function(t,a,n,i){var r=e._engine.ellipse(this,t||0,a||0,n||0,i||0);return this.__set__&&this.__set__.push(r),r},b.path=function(t){t&&!e.is(t,U)&&!e.is(t[0],W)&&(t+=A);var a=e._engine.path(e.format[k](e,arguments),this);return this.__set__&&this.__set__.push(a),a},b.image=function(t,a,n,i,r){var o=e._engine.image(this,t||"about:blank",a||0,n||0,i||0,r||0);return this.__set__&&this.__set__.push(o),o},b.text=function(t,a,n){var i=e._engine.text(this,t||0,a||0,C(n));return this.__set__&&this.__set__.push(i),i},b.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var a=new se(t);return this.__set__&&this.__set__.push(a),a.paper=this,a.type="set",a},b.setStart=function(t){this.__set__=t||this.set()},b.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},b.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},b.setSize=function(t,a){return e._engine.setSize.call(this,t,a)},b.setViewBox=function(t,a,n,i,r){return e._engine.setViewBox.call(this,t,a,n,i,r)},b.top=b.bottom=null,b.raphael=e;b.getElementByPoint=function(t,e){var a=this,n=a.canvas,i=P.doc.elementFromPoint(t,e);if(P.win.opera&&"svg"==i.tagName){var r=function(t){var e=t.getBoundingClientRect(),a=t.ownerDocument,n=a.body,i=a.documentElement,r=i.clientTop||n.clientTop||0,o=i.clientLeft||n.clientLeft||0;return{y:e.top+(P.win.pageYOffset||i.scrollTop||n.scrollTop)-r,x:e.left+(P.win.pageXOffset||i.scrollLeft||n.scrollLeft)-o}}(n),o=n.createSVGRect();o.x=t-r.x,o.y=e-r.y,o.width=o.height=1;var s=n.getIntersectionList(o,null);s.length&&(i=s[s.length-1])}if(!i)return null;for(;i.parentNode&&i!=n.parentNode&&!i.raphael;)i=i.parentNode;return i==a.canvas.parentNode&&(i=n),i&&i.raphael?a.getById(i.raphaelid):null},b.getElementsByBBox=function(t){var a=this.set();return this.forEach((function(n){e.isBBoxIntersect(n.getBBox(),t)&&a.push(n)})),a},b.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},b.forEach=function(t,e){for(var a=this.bottom;a;){if(!1===t.call(e,a))return this;a=a.next}return this},b.getElementsByPoint=function(t,e){var a=this.set();return this.forEach((function(n){n.isPointInside(t,e)&&a.push(n)})),a},Qt.isPointInside=function(t,a){var n=this.realPath=ht[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=e.transformPath(n,this.attr("transform"))),e.isPointInsidePath(n,t,a)},Qt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=ht[this.type](this),e.bboxwt=Pt(this.realPath),e.bboxwt.toString=h,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=ht[this.type](this)),e.bbox=Pt(ft(this.realPath,this.matrix)),e.bbox.toString=h,e.dirty=e.dirtyT=0),e.bbox)},Qt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},Qt.glow=function(t){if("text"==this.type)return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},a=e.width/2,n=this.paper,i=n.set(),r=this.realPath||ht[this.type](this);r=this.matrix?ft(r,this.matrix):r;for(var o=1;o<a+1;o++)i.push(n.path(r).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/a*o).toFixed(3),opacity:+(e.opacity/a).toFixed(3)}));return i.insertBefore(this).translate(e.offsetx,e.offsety)};var $t=function(t,a,n,i,r,o,s,u,c){return null==c?l(t,a,n,i,r,o,s,u):e.findDotsAtSegment(t,a,n,i,r,o,s,u,function(t,e,a,n,i,r,o,s,u){if(!(u<0||l(t,e,a,n,i,r,o,s)<u)){var c,d=.5,p=1-d;for(c=l(t,e,a,n,i,r,o,s,p);N(c-u)>.01;)c=l(t,e,a,n,i,r,o,s,p+=(c<u?1:-1)*(d/=2));return p}}(t,a,n,i,r,o,s,u,c))},Kt=function(t,a){return function(n,i,r){for(var o,s,l,u,c,d="",p={},h=0,f=0,y=(n=Lt(n)).length;f<y;f++){if("M"==(l=n[f])[0])o=+l[1],s=+l[2];else{if(h+(u=$t(o,s,l[1],l[2],l[3],l[4],l[5],l[6]))>i){if(a&&!p.start){if(d+=["C"+(c=$t(o,s,l[1],l[2],l[3],l[4],l[5],l[6],i-h)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],r)return d;p.start=d,d=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),h+=u,o=+l[5],s=+l[6];continue}if(!t&&!a)return{x:(c=$t(o,s,l[1],l[2],l[3],l[4],l[5],l[6],i-h)).x,y:c.y,alpha:c.alpha}}h+=u,o=+l[5],s=+l[6]}d+=l.shift()+l}return p.end=d,(c=t?h:a?p:e.findDotsAtSegment(o,s,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},Zt=Kt(1),te=Kt(),ee=Kt(0,1);e.getTotalLength=Zt,e.getPointAtLength=te,e.getSubpath=function(t,e,a){if(this.getTotalLength(t)-a<1e-6)return ee(t,e).end;var n=ee(t,a,1);return e?ee(n,e).end:n},Qt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Zt(t)},Qt.getPointAtLength=function(t){var e=this.getPath();if(e)return te(e,t)},Qt.getPath=function(){var t,a=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return a&&(t=a(this)),t},Qt.getSubpath=function(t,a){var n=this.getPath();if(n)return e.getSubpath(n,t,a)};var ae=e.easing_formulas={linear:function(t){return t},"<":function(t){return H(t,1.7)},">":function(t){return H(t,.48)},"<>":function(t){var e=.48-t/1.04,a=I.sqrt(.1734+e*e),n=a-e,i=-a-e,r=H(N(n),1/3)*(n<0?-1:1)+H(N(i),1/3)*(i<0?-1:1)+.5;return 3*(1-r)*r*r+r*r*r},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:H(2,-10*t)*I.sin(2*z*(t-.075)/.3)+1},bounce:function(t){var e,a=7.5625,n=2.75;return t<1/n?e=a*t*t:t<2/n?e=a*(t-=1.5/n)*t+.75:t<2.5/n?e=a*(t-=2.25/n)*t+.9375:e=a*(t-=2.625/n)*t+.984375,e}};ae.easeIn=ae["ease-in"]=ae["<"],ae.easeOut=ae["ease-out"]=ae[">"],ae.easeInOut=ae["ease-in-out"]=ae["<>"],ae["back-in"]=ae.backIn,ae["back-out"]=ae.backOut;var ne=[],ie=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},re=function(){for(var a=+new Date,n=0;n<ne.length;n++){var i=ne[n];if(!i.el.removed&&!i.paused){var r,o,s=a-i.start,l=i.ms,u=i.easing,c=i.from,d=i.diff,p=i.to,h=(i.t,i.el),f={},y={};if(i.initstatus?(s=(i.initstatus*i.anim.top-i.prev)/(i.percent-i.prev)*l,i.status=i.initstatus,delete i.initstatus,i.stop&&ne.splice(n--,1)):i.status=(i.prev+(i.percent-i.prev)*(s/l))/i.anim.top,!(s<0))if(s<l){var g=u(s/l);for(var v in c)if(c[q](v)){switch(et[v]){case G:r=+c[v]+g*l*d[v];break;case"colour":r="rgb("+[oe(J(c[v].r+g*l*d[v].r)),oe(J(c[v].g+g*l*d[v].g)),oe(J(c[v].b+g*l*d[v].b))].join(",")+")";break;case"path":r=[];for(var b=0,w=c[v].length;b<w;b++){r[b]=[c[v][b][0]];for(var _=1,x=c[v][b].length;_<x;_++)r[b][_]=+c[v][b][_]+g*l*d[v][b][_];r[b]=r[b].join(j)}r=r.join(j);break;case"transform":if(d[v].real)for(r=[],b=0,w=c[v].length;b<w;b++)for(r[b]=[c[v][b][0]],_=1,x=c[v][b].length;_<x;_++)r[b][_]=c[v][b][_]+g*l*d[v][b][_];else{var P=function(t){return+c[v][t]+g*l*d[v][t]};r=[["m",P(0),P(1),P(2),P(3),P(4),P(5)]]}break;case"csv":if("clip-rect"==v)for(r=[],b=4;b--;)r[b]=+c[v][b]+g*l*d[v][b];break;default:var M=[][T](c[v]);for(r=[],b=h.paper.customAttributes[v].length;b--;)r[b]=+M[b]+g*l*d[v][b]}f[v]=r}h.attr(f),function(e,a,n){setTimeout((function(){t("raphael.anim.frame."+e,a,n)}))}(h.id,h,i.anim)}else{if(function(a,n,i){setTimeout((function(){t("raphael.anim.frame."+n.id,n,i),t("raphael.anim.finish."+n.id,n,i),e.is(a,"function")&&a.call(n)}))}(i.callback,h,i.anim),h.attr(p),ne.splice(n--,1),i.repeat>1&&!i.next){for(o in p)p[q](o)&&(y[o]=i.totalOrigin[o]);i.el.attr(y),m(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&m(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}ne.length&&ie(re)},oe=function(t){return t>255?255:t<0?0:t};Qt.animateWith=function(t,a,n,i,r,o){var s=this;if(s.removed)return o&&o.call(s),s;var l=n instanceof y?n:e.animation(n,i,r,o);m(l,s,l.percents[0],null,s.attr());for(var u=0,c=ne.length;u<c;u++)if(ne[u].anim==a&&ne[u].el==t){ne[c-1].start=ne[u].start;break}return s},Qt.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},y.prototype.delay=function(t){var e=new y(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},y.prototype.repeat=function(t){var e=new y(this.anim,this.ms);return e.del=this.del,e.times=I.floor(B(t,0))||1,e},e.animation=function(t,a,n,i){if(t instanceof y)return t;!e.is(n,"function")&&n||(i=i||n||null,n=null),t=Object(t),a=+a||0;var r,o,s={};for(o in t)t[q](o)&&$(o)!=o&&$(o)+"%"!=o&&(r=!0,s[o]=t[o]);if(r)return n&&(s.easing=n),i&&(s.callback=i),new y({100:s},a);if(i){var l=0;for(var u in t){var c=K(u);t[q](u)&&c>l&&(l=c)}!t[l+="%"].callback&&(t[l].callback=i)}return new y(t,a)},Qt.animate=function(t,a,n,i){var r=this;if(r.removed)return i&&i.call(r),r;var o=t instanceof y?t:e.animation(t,a,n,i);return m(o,r,o.percents[0],null,r.attr()),r},Qt.setTime=function(t,e){return t&&null!=e&&this.status(t,D(e,t.ms)/t.ms),this},Qt.status=function(t,e){var a,n,i=[],r=0;if(null!=e)return m(t,this,-1,D(e,1)),this;for(a=ne.length;r<a;r++)if((n=ne[r]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;i.push({anim:n.anim,status:n.status})}return t?0:i},Qt.pause=function(e){for(var a=0;a<ne.length;a++)ne[a].el.id!=this.id||e&&ne[a].anim!=e||!1!==t("raphael.anim.pause."+this.id,this,ne[a].anim)&&(ne[a].paused=!0);return this},Qt.resume=function(e){for(var a=0;a<ne.length;a++)if(ne[a].el.id==this.id&&(!e||ne[a].anim==e)){var n=ne[a];!1!==t("raphael.anim.resume."+this.id,this,n.anim)&&(delete n.paused,this.status(n.anim,n.status))}return this},Qt.stop=function(e){for(var a=0;a<ne.length;a++)ne[a].el.id!=this.id||e&&ne[a].anim!=e||!1!==t("raphael.anim.stop."+this.id,this,ne[a].anim)&&ne.splice(a--,1);return this},t.on("raphael.remove",g),t.on("raphael.clear",g),Qt.toString=function(){return"Raphaëlâs object"};var se=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,a=t.length;e<a;e++)!t[e]||t[e].constructor!=Qt.constructor&&t[e].constructor!=se||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},le=se.prototype;for(var ue in le.push=function(){for(var t,e,a=0,n=arguments.length;a<n;a++)!(t=arguments[a])||t.constructor!=Qt.constructor&&t.constructor!=se||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},le.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},le.forEach=function(t,e){for(var a=0,n=this.items.length;a<n;a++)if(!1===t.call(e,this.items[a],a))return this;return this},Qt)Qt[q](ue)&&(le[ue]=function(t){return function(){var e=arguments;return this.forEach((function(a){a[t][k](a,e)}))}}(ue));return le.attr=function(t,a){if(t&&e.is(t,W)&&e.is(t[0],"object"))for(var n=0,i=t.length;n<i;n++)this.items[n].attr(t[n]);else for(var r=0,o=this.items.length;r<o;r++)this.items[r].attr(t,a);return this},le.clear=function(){for(;this.length;)this.pop()},le.splice=function(t,e,a){t=t<0?B(this.length+t,0):t,e=B(0,D(this.length-t,e));var n,i=[],r=[],o=[];for(n=2;n<arguments.length;n++)o.push(arguments[n]);for(n=0;n<e;n++)r.push(this[t+n]);for(;n<this.length-t;n++)i.push(this[t+n]);var s=o.length;for(n=0;n<s+i.length;n++)this.items[t+n]=this[t+n]=n<s?o[n]:i[n-s];for(n=this.items.length=this.length-=e-s;this[n];)delete this[n++];return new se(r)},le.exclude=function(t){for(var e=0,a=this.length;e<a;e++)if(this[e]==t)return this.splice(e,1),!0},le.animate=function(t,a,n,i){(e.is(n,"function")||!n)&&(i=n||null);var r,o,s=this.items.length,l=s,u=this;if(!s)return this;i&&(o=function(){!--s&&i.call(u)}),n=e.is(n,U)?n:o;var c=e.animation(t,a,n,o);for(r=this.items[--l].animate(c);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(r,c,c),this.items[l]&&!this.items[l].removed||s--;return this},le.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},le.getBBox=function(){for(var t=[],e=[],a=[],n=[],i=this.items.length;i--;)if(!this.items[i].removed){var r=this.items[i].getBBox();t.push(r.x),e.push(r.y),a.push(r.x+r.width),n.push(r.y+r.height)}return{x:t=D[k](0,t),y:e=D[k](0,e),x2:a=B[k](0,a),y2:n=B[k](0,n),width:a-t,height:n-e}},le.clone=function(t){t=this.paper.set();for(var e=0,a=this.items.length;e<a;e++)t.push(this.items[e].clone());return t},le.toString=function(){return"Raphaëlâs set"},le.glow=function(t){var e=this.paper.set();return this.forEach((function(a,n){var i=a.glow(t);null!=i&&i.forEach((function(t,a){e.push(t)}))})),e},le.isPointInside=function(t,e){var a=!1;return this.forEach((function(n){if(n.isPointInside(t,e))return a=!0,!1})),a},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},a=t.face["font-family"];for(var n in t.face)t.face[q](n)&&(e.face[n]=t.face[n]);if(this.fonts[a]?this.fonts[a].push(e):this.fonts[a]=[e],!t.svg)for(var i in e.face["units-per-em"]=K(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[q](i)){var r=t.glyphs[i];if(e.glyphs[i]={w:r.w,k:{},d:r.d&&"M"+r.d.replace(/[mlcxtrv]/g,(function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"}))+"z"},r.k)for(var o in r.k)r[q](o)&&(e.glyphs[i].k[o]=r.k[o])}return t},b.getFont=function(t,a,n,i){if(i=i||"normal",n=n||"normal",a=+a||{normal:400,bold:700,lighter:300,bolder:800}[a]||400,e.fonts){var r,o=e.fonts[t];if(!o){var s=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,A)+"(\\s|$)","i");for(var l in e.fonts)if(e.fonts[q](l)&&s.test(l)){o=e.fonts[l];break}}if(o)for(var u=0,c=o.length;u<c&&((r=o[u]).face["font-weight"]!=a||r.face["font-style"]!=n&&r.face["font-style"]||r.face["font-stretch"]!=i);u++);return r}},b.print=function(t,a,n,i,r,o,s,l){o=o||"middle",s=B(D(s||0,1),-1),l=B(D(l||1,3),1);var u,c=C(n)[L](A),d=0,p=0,h=A;if(e.is(i,"string")&&(i=this.getFont(i)),i){u=(r||16)/i.face["units-per-em"];for(var f=i.face.bbox[L](w),y=+f[0],m=f[3]-f[1],g=0,v=+f[1]+("baseline"==o?m+ +i.face.descent:m/2),b=0,_=c.length;b<_;b++){if("\n"==c[b])d=0,q=0,p=0,g+=m*l;else{var x=p&&i.glyphs[c[b-1]]||{},q=i.glyphs[c[b]];d+=p?(x.w||i.w)+(x.k&&x.k[c[b]]||0)+i.w*s:0,p=1}q&&q.d&&(h+=e.transformPath(q.d,["t",d*u,g*u,"s",u,u,y,v,"t",(t-y)/u,(a-v)/u]))}}return this.path(h).attr({fill:"#000",stroke:"none"})},b.add=function(t){if(e.is(t,"array"))for(var a,n=this.set(),i=0,r=t.length;i<r;i++)a=t[i]||{},_[q](a.type)&&n.push(this[a.type]().attr(a));return n},e.format=function(t,a){var n=e.is(a,W)?[0][T](a):arguments;return t&&e.is(t,U)&&n.length-1&&(t=t.replace(x,(function(t,e){return null==n[++e]?A:n[e]}))),t||A},e.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,a=function(t,a,n){var i=n;return a.replace(e,(function(t,e,a,n,r){e=e||n,i&&(e in i&&(i=i[e]),"function"==typeof i&&r&&(i=i()))})),i=(null==i||i==n?t:i)+""};return function(e,n){return String(e).replace(t,(function(t,e){return a(t,e,n)}))}}(),e.ninja=function(){if(M.was)P.win.Raphael=M.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=le,t.on("raphael.DOMload",(function(){v=!0})),function(t,a,n){null==t.readyState&&t.addEventListener&&(t.addEventListener(a,n=function(){t.removeEventListener(a,n,!1),t.readyState="complete"},!1),t.readyState="loading"),function a(){/in/.test(t.readyState)?setTimeout(a,9):e.eve("raphael.DOMload")}()}(document,"DOMContentLoaded"),e}.apply(e,n))||(t.exports=i)},function(t,e,a){var n,i;!function(a){var r,o,s="0.5.0",l="hasOwnProperty",u=/[\.\/]/,c=/\s*,\s*/,d=function(t,e){return t-e},p={n:{}},h=function(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]},f=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},y=Object.prototype.toString,m=String,g=Array.isArray||function(t){return t instanceof Array||"[object Array]"==y.call(t)};eve=function(t,e){var a,n=o,i=Array.prototype.slice.call(arguments,2),s=eve.listeners(t),l=0,u=[],c={},p=[],y=r;p.firstDefined=h,p.lastDefined=f,r=t,o=0;for(var m=0,g=s.length;m<g;m++)"zIndex"in s[m]&&(u.push(s[m].zIndex),s[m].zIndex<0&&(c[s[m].zIndex]=s[m]));for(u.sort(d);u[l]<0;)if(a=c[u[l++]],p.push(a.apply(e,i)),o)return o=n,p;for(m=0;m<g;m++)if("zIndex"in(a=s[m]))if(a.zIndex==u[l]){if(p.push(a.apply(e,i)),o)break;do{if((a=c[u[++l]])&&p.push(a.apply(e,i)),o)break}while(a)}else c[a.zIndex]=a;else if(p.push(a.apply(e,i)),o)break;return o=n,r=y,p},eve._events=p,eve.listeners=function(t){var e,a,n,i,r,o,s,l,c=g(t)?t:t.split(u),d=p,h=[d],f=[];for(i=0,r=c.length;i<r;i++){for(l=[],o=0,s=h.length;o<s;o++)for(a=[(d=h[o].n)[c[i]],d["*"]],n=2;n--;)(e=a[n])&&(l.push(e),f=f.concat(e.f||[]));h=l}return f},eve.separator=function(t){t?(t="["+(t=m(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",u=new RegExp(t)):u=/[\.\/]/},eve.on=function(t,e){if("function"!=typeof e)return function(){};for(var a=g(t)?g(t[0])?t:[t]:m(t).split(c),n=0,i=a.length;n<i;n++)!function(t){for(var a,n=g(t)?t:m(t).split(u),i=p,r=0,o=n.length;r<o;r++)i=(i=i.n).hasOwnProperty(n[r])&&i[n[r]]||(i[n[r]]={n:{}});for(i.f=i.f||[],r=0,o=i.f.length;r<o;r++)if(i.f[r]==e){a=!0;break}!a&&i.f.push(e)}(a[n]);return function(t){+t==+t&&(e.zIndex=+t)}},eve.f=function(t){var e=[].slice.call(arguments,1);return function(){eve.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},eve.stop=function(){o=1},eve.nt=function(t){var e=g(r)?r.join("."):r;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},eve.nts=function(){return g(r)?r:r.split(u)},eve.off=eve.unbind=function(t,e){if(t){var a=g(t)?g(t[0])?t:[t]:m(t).split(c);if(a.length>1)for(var n=0,i=a.length;n<i;n++)eve.off(a[n],e);else{a=g(t)?t:m(t).split(u);var r,o,s,d,h,f=[p];for(n=0,i=a.length;n<i;n++)for(d=0;d<f.length;d+=s.length-2){if(s=[d,1],r=f[d].n,"*"!=a[n])r[a[n]]&&s.push(r[a[n]]);else for(o in r)r[l](o)&&s.push(r[o]);f.splice.apply(f,s)}for(n=0,i=f.length;n<i;n++)for(r=f[n];r.n;){if(e){if(r.f){for(d=0,h=r.f.length;d<h;d++)if(r.f[d]==e){r.f.splice(d,1);break}!r.f.length&&delete r.f}for(o in r.n)if(r.n[l](o)&&r.n[o].f){var y=r.n[o].f;for(d=0,h=y.length;d<h;d++)if(y[d]==e){y.splice(d,1);break}!y.length&&delete r.n[o].f}}else for(o in delete r.f,r.n)r.n[l](o)&&r.n[o].f&&delete r.n[o].f;r=r.n}}}else eve._events=p={n:{}}},eve.once=function(t,e){var a=function(){return eve.off(t,a),e.apply(this,arguments)};return eve.on(t,a)},eve.version=s,eve.toString=function(){return"You are running Eve "+s},void 0!==t&&t.exports?t.exports=eve:(n=[],void 0===(i=function(){return eve}.apply(e,n))||(t.exports=i))}()},function(t,e,a){var n,i;n=[a(1)],void 0===(i=function(t){if(!t||t.svg){var e="hasOwnProperty",a=String,n=parseFloat,i=parseInt,r=Math,o=r.max,s=r.abs,l=r.pow,u=/[, ]+/,c=t.eve,d="",p=" ",h="http://www.w3.org/1999/xlink",f={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},y={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var m=function(n,i){if(i)for(var r in"string"==typeof n&&(n=m(n)),i)i[e](r)&&("xlink:"==r.substring(0,6)?n.setAttributeNS(h,r.substring(6),a(i[r])):n.setAttribute(r,a(i[r])));else(n=t._g.doc.createElementNS("http://www.w3.org/2000/svg",n)).style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},g=function(e,i){var u="linear",c=e.id+i,p=.5,h=.5,f=e.node,y=e.paper,g=f.style,b=t._g.doc.getElementById(c);if(!b){if(i=(i=a(i).replace(t._radial_gradient,(function(t,e,a){if(u="radial",e&&a){p=n(e);var i=2*((h=n(a))>.5)-1;l(p-.5,2)+l(h-.5,2)>.25&&(h=r.sqrt(.25-l(p-.5,2))*i+.5)&&.5!=h&&(h=h.toFixed(5)-1e-5*i)}return d}))).split(/\s*\-\s*/),"linear"==u){var w=i.shift();if(w=-n(w),isNaN(w))return null;var _=[0,0,r.cos(t.rad(w)),r.sin(t.rad(w))],x=1/(o(s(_[2]),s(_[3]))||1);_[2]*=x,_[3]*=x,_[2]<0&&(_[0]=-_[2],_[2]=0),_[3]<0&&(_[1]=-_[3],_[3]=0)}var q=t._parseDots(i);if(!q)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(y.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){b=m(u+"Gradient",{id:c}),e.gradient=b,m(b,"radial"==u?{fx:p,fy:h}:{x1:_[0],y1:_[1],x2:_[2],y2:_[3],gradientTransform:e.matrix.invert()}),y.defs.appendChild(b);for(var P=0,M=q.length;P<M;P++)b.appendChild(m("stop",{offset:q[P].offset?q[P].offset:P?"100%":"0%","stop-color":q[P].color||"#fff","stop-opacity":isFinite(q[P].opacity)?q[P].opacity:1}))}}return m(f,{fill:v(c),opacity:1,"fill-opacity":1}),g.fill=d,g.opacity=1,g.fillOpacity=1,1},v=function(t){if(function(){var t=document.documentMode;return t&&(9===t||10===t)}())return"url('#"+t+"')";var e=document.location;return"url('"+(e.protocol+"//"+e.host+e.pathname+e.search)+"#"+t+"')"},b=function(t){var e=t.getBBox(1);m(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},w=function(n,i,r){if("path"==n.type){for(var o,s,l,u,c,p=a(i).toLowerCase().split("-"),h=n.paper,g=r?"end":"start",v=n.node,b=n.attrs,w=b["stroke-width"],_=p.length,x="classic",q=3,P=3,M=5;_--;)switch(p[_]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":x=p[_];break;case"wide":P=5;break;case"narrow":P=2;break;case"long":q=5;break;case"short":q=2}if("open"==x?(q+=2,P+=2,M+=2,l=1,u=r?4:1,c={fill:"none",stroke:b.stroke}):(u=l=q/2,c={fill:b.stroke,stroke:"none"}),n._.arrows?r?(n._.arrows.endPath&&y[n._.arrows.endPath]--,n._.arrows.endMarker&&y[n._.arrows.endMarker]--):(n._.arrows.startPath&&y[n._.arrows.startPath]--,n._.arrows.startMarker&&y[n._.arrows.startMarker]--):n._.arrows={},"none"!=x){var O="raphael-marker-"+x,k="raphael-marker-"+g+x+q+P+"-obj"+n.id;t._g.doc.getElementById(O)?y[O]++:(h.defs.appendChild(m(m("path"),{"stroke-linecap":"round",d:f[x],id:O})),y[O]=1);var T,S=t._g.doc.getElementById(k);S?(y[k]++,T=S.getElementsByTagName("use")[0]):(S=m(m("marker"),{id:k,markerHeight:P,markerWidth:q,orient:"auto",refX:u,refY:P/2}),T=m(m("use"),{"xlink:href":"#"+O,transform:(r?"rotate(180 "+q/2+" "+P/2+") ":d)+"scale("+q/M+","+P/M+")","stroke-width":(1/((q/M+P/M)/2)).toFixed(4)}),S.appendChild(T),h.defs.appendChild(S),y[k]=1),m(T,c);var A=l*("diamond"!=x&&"oval"!=x);r?(o=n._.arrows.startdx*w||0,s=t.getTotalLength(b.path)-A*w):(o=A*w,s=t.getTotalLength(b.path)-(n._.arrows.enddx*w||0)),(c={})["marker-"+g]="url(#"+k+")",(s||o)&&(c.d=t.getSubpath(b.path,o,s)),m(v,c),n._.arrows[g+"Path"]=O,n._.arrows[g+"Marker"]=k,n._.arrows[g+"dx"]=A,n._.arrows[g+"Type"]=x,n._.arrows[g+"String"]=i}else r?(o=n._.arrows.startdx*w||0,s=t.getTotalLength(b.path)-o):(o=0,s=t.getTotalLength(b.path)-(n._.arrows.enddx*w||0)),n._.arrows[g+"Path"]&&m(v,{d:t.getSubpath(b.path,o,s)}),delete n._.arrows[g+"Path"],delete n._.arrows[g+"Marker"],delete n._.arrows[g+"dx"],delete n._.arrows[g+"Type"],delete n._.arrows[g+"String"];for(c in y)if(y[e](c)&&!y[c]){var j=t._g.doc.getElementById(c);j&&j.parentNode.removeChild(j)}}},_={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},x=function(t,e,n){if(e=_[a(e).toLowerCase()]){for(var i=t.attrs["stroke-width"]||"1",r={round:i,square:i,butt:0}[t.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,o=[],s=e.length;s--;)o[s]=e[s]*i+(s%2?1:-1)*r;m(t.node,{"stroke-dasharray":o.join(",")})}else m(t.node,{"stroke-dasharray":"none"})},q=function(n,r){var l=n.node,c=n.attrs,p=l.style.visibility;for(var f in l.style.visibility="hidden",r)if(r[e](f)){if(!t._availableAttrs[e](f))continue;var y=r[f];switch(c[f]=y,f){case"blur":n.blur(y);break;case"title":var v=l.getElementsByTagName("title");if(v.length&&(v=v[0]))v.firstChild.nodeValue=y;else{v=m("title");var _=t._g.doc.createTextNode(y);v.appendChild(_),l.appendChild(v)}break;case"href":case"target":var q=l.parentNode;if("a"!=q.tagName.toLowerCase()){var M=m("a");q.insertBefore(M,l),M.appendChild(l),q=M}"target"==f?q.setAttributeNS(h,"show","blank"==y?"new":y):q.setAttributeNS(h,f,y);break;case"cursor":l.style.cursor=y;break;case"transform":n.transform(y);break;case"arrow-start":w(n,y);break;case"arrow-end":w(n,y,1);break;case"clip-rect":var O=a(y).split(u);if(4==O.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var k=m("clipPath"),T=m("rect");k.id=t.createUUID(),m(T,{x:O[0],y:O[1],width:O[2],height:O[3]}),k.appendChild(T),n.paper.defs.appendChild(k),m(l,{"clip-path":"url(#"+k.id+")"}),n.clip=T}if(!y){var S=l.getAttribute("clip-path");if(S){var A=t._g.doc.getElementById(S.replace(/(^url\(#|\)$)/g,d));A&&A.parentNode.removeChild(A),m(l,{"clip-path":d}),delete n.clip}}break;case"path":"path"==n.type&&(m(l,{d:y?c.path=t._pathToAbsolute(y):"M0,0"}),n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&w(n,n._.arrows.startString),"endString"in n._.arrows&&w(n,n._.arrows.endString,1)));break;case"width":if(l.setAttribute(f,y),n._.dirty=1,!c.fx)break;f="x",y=c.x;case"x":c.fx&&(y=-c.x-(c.width||0));case"rx":if("rx"==f&&"rect"==n.type)break;case"cx":l.setAttribute(f,y),n.pattern&&b(n),n._.dirty=1;break;case"height":if(l.setAttribute(f,y),n._.dirty=1,!c.fy)break;f="y",y=c.y;case"y":c.fy&&(y=-c.y-(c.height||0));case"ry":if("ry"==f&&"rect"==n.type)break;case"cy":l.setAttribute(f,y),n.pattern&&b(n),n._.dirty=1;break;case"r":"rect"==n.type?m(l,{rx:y,ry:y}):l.setAttribute(f,y),n._.dirty=1;break;case"src":"image"==n.type&&l.setAttributeNS(h,"href",y);break;case"stroke-width":1==n._.sx&&1==n._.sy||(y/=o(s(n._.sx),s(n._.sy))||1),l.setAttribute(f,y),c["stroke-dasharray"]&&x(n,c["stroke-dasharray"],r),n._.arrows&&("startString"in n._.arrows&&w(n,n._.arrows.startString),"endString"in n._.arrows&&w(n,n._.arrows.endString,1));break;case"stroke-dasharray":x(n,y,r);break;case"fill":var j=a(y).match(t._ISURL);if(j){k=m("pattern");var C=m("image");k.id=t.createUUID(),m(k,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),m(C,{x:0,y:0,"xlink:href":j[1]}),k.appendChild(C),function(e){t._preload(j[1],(function(){var t=this.offsetWidth,a=this.offsetHeight;m(e,{width:t,height:a}),m(C,{width:t,height:a})}))}(k),n.paper.defs.appendChild(k),m(l,{fill:"url(#"+k.id+")"}),n.pattern=k,n.pattern&&b(n);break}var L=t.getRGB(y);if(L.error){ 3if(("circle"==n.type||"ellipse"==n.type||"r"!=a(y).charAt())&&g(n,y)){if("opacity"in c||"fill-opacity"in c){var E=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,d));if(E){var F=E.getElementsByTagName("stop");m(F[F.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=y,c.fill="none";break}}else delete r.gradient,delete c.gradient,!t.is(c.opacity,"undefined")&&t.is(r.opacity,"undefined")&&m(l,{opacity:c.opacity}),!t.is(c["fill-opacity"],"undefined")&&t.is(r["fill-opacity"],"undefined")&&m(l,{"fill-opacity":c["fill-opacity"]});L[e]("opacity")&&m(l,{"fill-opacity":L.opacity>1?L.opacity/100:L.opacity});case"stroke":L=t.getRGB(y),l.setAttribute(f,L.hex),"stroke"==f&&L[e]("opacity")&&m(l,{"stroke-opacity":L.opacity>1?L.opacity/100:L.opacity}),"stroke"==f&&n._.arrows&&("startString"in n._.arrows&&w(n,n._.arrows.startString),"endString"in n._.arrows&&w(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=a(y).charAt())&&g(n,y);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&m(l,{"stroke-opacity":y>1?y/100:y});case"fill-opacity":if(c.gradient){(E=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,d)))&&(F=E.getElementsByTagName("stop"),m(F[F.length-1],{"stop-opacity":y}));break}default:"font-size"==f&&(y=i(y,10)+"px");var R=f.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()}));l.style[R]=y,n._.dirty=1,l.setAttribute(f,y)}}P(n,r),l.style.visibility=p},P=function(n,r){if("text"==n.type&&(r[e]("text")||r[e]("font")||r[e]("font-size")||r[e]("x")||r[e]("y"))){var o=n.attrs,s=n.node,l=s.firstChild?i(t._g.doc.defaultView.getComputedStyle(s.firstChild,d).getPropertyValue("font-size"),10):10;if(r[e]("text")){for(o.text=r.text;s.firstChild;)s.removeChild(s.firstChild);for(var u,c=a(r.text).split("\n"),p=[],h=0,f=c.length;h<f;h++)u=m("tspan"),h&&m(u,{dy:1.2*l,x:o.x}),u.appendChild(t._g.doc.createTextNode(c[h])),s.appendChild(u),p[h]=u}else for(h=0,f=(p=s.getElementsByTagName("tspan")).length;h<f;h++)h?m(p[h],{dy:1.2*l,x:o.x}):m(p[0],{dy:0});m(s,{x:o.x,y:o.y}),n._.dirty=1;var y=n._getBBox(),g=o.y-(y.y+y.height/2);g&&t.is(g,"finite")&&m(p[0],{dy:g})}},M=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},O=function(e,a){this[0]=this.node=e,e.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=a,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!a.bottom&&(a.bottom=this),this.prev=a.top,a.top&&(a.top.next=this),a.top=this,this.next=null},k=t.el;O.prototype=k,k.constructor=O,t._engine.path=function(t,e){var a=m("path");e.canvas&&e.canvas.appendChild(a);var n=new O(a,e);return n.type="path",q(n,{fill:"none",stroke:"#000",path:t}),n},k.rotate=function(t,e,i){if(this.removed)return this;if((t=a(t).split(u)).length-1&&(e=n(t[1]),i=n(t[2])),t=n(t[0]),null==i&&(e=i),null==e||null==i){var r=this.getBBox(1);e=r.x+r.width/2,i=r.y+r.height/2}return this.transform(this._.transform.concat([["r",t,e,i]])),this},k.scale=function(t,e,i,r){if(this.removed)return this;if((t=a(t).split(u)).length-1&&(e=n(t[1]),i=n(t[2]),r=n(t[3])),t=n(t[0]),null==e&&(e=t),null==r&&(i=r),null==i||null==r)var o=this.getBBox(1);return i=null==i?o.x+o.width/2:i,r=null==r?o.y+o.height/2:r,this.transform(this._.transform.concat([["s",t,e,i,r]])),this},k.translate=function(t,e){return this.removed||((t=a(t).split(u)).length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]]))),this},k.transform=function(a){var n=this._;if(null==a)return n.transform;if(t._extractTransform(this,a),this.clip&&m(this.clip,{transform:this.matrix.invert()}),this.pattern&&b(this),this.node&&m(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var i=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":i})}return this},k.hide=function(){return this.removed||(this.node.style.display="none"),this},k.show=function(){return this.removed||(this.node.style.display=""),this},k.remove=function(){var e=M(this.node);if(!this.removed&&e.parentNode){var a=this.paper;for(var n in a.__set__&&a.__set__.exclude(this),c.unbind("raphael.*.*."+this.id),this.gradient&&a.defs.removeChild(this.gradient),t._tear(this,a),e.parentNode.removeChild(e),this.removeData(),this)this[n]="function"==typeof this[n]?t._removedFactory(n):null;this.removed=!0}},k._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,a=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(a=!0,e.display="");var n={};try{n=this.node.getBBox()}catch(t){n={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{n=n||{},a&&(e.display="none")}return t&&this.hide(),n},k.attr=function(a,n){if(this.removed)return this;if(null==a){var i={};for(var r in this.attrs)this.attrs[e](r)&&(i[r]=this.attrs[r]);return i.gradient&&"none"==i.fill&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(null==n&&t.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==a)return this._.transform;for(var o=a.split(u),s={},l=0,d=o.length;l<d;l++)(a=o[l])in this.attrs?s[a]=this.attrs[a]:t.is(this.paper.customAttributes[a],"function")?s[a]=this.paper.customAttributes[a].def:s[a]=t._availableAttrs[a];return d-1?s:s[o[0]]}if(null==n&&t.is(a,"array")){for(s={},l=0,d=a.length;l<d;l++)s[a[l]]=this.attr(a[l]);return s}if(null!=n){var p={};p[a]=n}else null!=a&&t.is(a,"object")&&(p=a);for(var h in p)c("raphael.attr."+h+"."+this.id,this,p[h]);for(h in this.paper.customAttributes)if(this.paper.customAttributes[e](h)&&p[e](h)&&t.is(this.paper.customAttributes[h],"function")){var f=this.paper.customAttributes[h].apply(this,[].concat(p[h]));for(var y in this.attrs[h]=p[h],f)f[e](y)&&(p[y]=f[y])}return q(this,p),this},k.toFront=function(){if(this.removed)return this;var e=M(this.node);e.parentNode.appendChild(e);var a=this.paper;return a.top!=this&&t._tofront(this,a),this},k.toBack=function(){if(this.removed)return this;var e=M(this.node),a=e.parentNode;a.insertBefore(e,a.firstChild),t._toback(this,this.paper);this.paper;return this},k.insertAfter=function(e){if(this.removed||!e)return this;var a=M(this.node),n=M(e.node||e[e.length-1].node);return n.nextSibling?n.parentNode.insertBefore(a,n.nextSibling):n.parentNode.appendChild(a),t._insertafter(this,e,this.paper),this},k.insertBefore=function(e){if(this.removed||!e)return this;var a=M(this.node),n=M(e.node||e[0].node);return n.parentNode.insertBefore(a,n),t._insertbefore(this,e,this.paper),this},k.blur=function(e){var a=this;if(0!=+e){var n=m("filter"),i=m("feGaussianBlur");a.attrs.blur=e,n.id=t.createUUID(),m(i,{stdDeviation:+e||1.5}),n.appendChild(i),a.paper.defs.appendChild(n),a._blur=n,m(a.node,{filter:"url
3(#"+n.id+")"})}else a._blur&&(a._blur.parentNode.removeChild(a._blur),delete a._blur,delete a.attrs.blur),a.node.removeAttribute("filter");return a},t._engine.circle=function(t,e,a,n){var i=m("circle");t.canvas&&t.canvas.appendChild(i);var r=new O(i,t);return r.attrs={cx:e,cy:a,r:n,fill:"none",stroke:"#000"},r.type="circle",m(i,r.attrs),r},t._engine.rect=function(t,e,a,n,i,r){var o=m("rect");t.canvas&&t.canvas.appendChild(o);var s=new O(o,t);return s.attrs={x:e,y:a,width:n,height:i,rx:r||0,ry:r||0,fill:"none",stroke:"#000"},s.type="rect",m(o,s.attrs),s},t._engine.ellipse=function(t,e,a,n,i){var r=m("ellipse");t.canvas&&t.canvas.appendChild(r);var o=new O(r,t);return o.attrs={cx:e,cy:a,rx:n,ry:i,fill:"none",stroke:"#000"},o.type="ellipse",m(r,o.attrs),o},t._engine.image=function(t,e,a,n,i,r){var o=m("image");m(o,{x:a,y:n,width:i,height:r,preserveAspectRatio:"none"}),o.setAttributeNS(h,"href",e),t.canvas&&t.canvas.appendChild(o);var s=new O(o,t);return s.attrs={x:a,y:n,width:i,height:r,src:e},s.type="image",s},t._engine.text=function(e,a,n,i){var r=m("text");e.canvas&&e.canvas.appendChild(r);var o=new O(r,e);return o.attrs={x:a,y:n,"text-anchor":"middle",text:i,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},o.type="text",q(o,o.attrs),o},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),a=e&&e.container,n=e.x,i=e.y,r=e.width,o=e.height;if(!a)throw new Error("SVG container not found.");var s,l=m("svg"),u="overflow:hidden;";return n=n||0,i=i||0,m(l,{height:o=o||342,version:1.1,width:r=r||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==a?(l.style.cssText=u+"position:absolute;left:"+n+"px;top:"+i+"px",t._g.doc.body.appendChild(l),s=1):(l.style.cssText=u+"position:relative",a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l)),(a=new t._Paper).width=r,a.height=o,a.canvas=l,a.clear(),a._left=a._top=0,s&&(a.renderfix=function(){}),a.renderfix(),a},t._engine.setViewBox=function(t,e,a,n,i){c("raphael.setViewBox",this,this._viewBox,[t,e,a,n,i]);var r,s,l=this.getSize(),u=o(a/l.width,n/l.height),d=this.top,h=i?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(u=1),delete this._vbSize,r="0 0 "+this.width+p+this.height):(this._vbSize=u,r=t+p+e+p+a+p+n),m(this.canvas,{viewBox:r,preserveAspectRatio:h});u&&d;)s="stroke-width"in d.attrs?d.attrs["stroke-width"]:1,d.attr({"stroke-width":s}),d._.dirty=1,d._.dirtyT=1,d=d.prev;return this._viewBox=[t,e,a,n,!!i],this},t.prototype.renderfix=function(){var t,e=this.canvas,a=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(a){t=e.createSVGMatrix()}var n=-t.e%1,i=-t.f%1;(n||i)&&(n&&(this._left=(this._left+n)%1,a.left=this._left+"px"),i&&(this._top=(this._top+i)%1,a.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=m("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=m("defs"))},t.prototype.remove=function(){for(var e in c("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var T=t.st;for(var S in k)k[e](S)&&!T[e](S)&&(T[S]=function(t){return function(){var e=arguments;return this.forEach((function(a){a[t].apply(a,e)}))}}(S))}}.apply(e,n))||(t.exports=i)},function(t,e,a){var n,i;n=[a(1)],void 0===(i=function(t){if(!t||t.vml){var e="hasOwnProperty",a=String,n=parseFloat,i=Math,r=i.round,o=i.max,s=i.min,l=i.abs,u="fill",c=/[, ]+/,d=t.eve,p=" ",h="",f={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},y=/([clmz]),?([^clmz]*)/gi,m=/ progid:\S+Blur\([^\)]+\)/g,g=/-?[^,\s-]+/g,v="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",b=21600,w={path:1,rect:1,image:1},_={circle:1,ellipse:1},x=function(e){var n=/[ahqstv]/gi,i=t._pathToAbsolute;if(a(e).match(n)&&(i=t._path2curve),n=/[clmz]/g,i==t._pathToAbsolute&&!a(e).match(n)){var o=a(e).replace(y,(function(t,e,a){var n=[],i="m"==e.toLowerCase(),o=f[e];return a.replace(g,(function(t){i&&2==n.length&&(o+=n+f["m"==e?"l":"L"],n=[]),n.push(r
vendor: 16,342 bytes, line 3
3(t*b))})),o+n}));return o}var s,l,u=i(e);o=[];for(var c=0,d=u.length;c<d;c++){s=u[c],"z"==(l=u[c][0].toLowerCase())&&(l="x");for(var m=1,v=s.length;m<v;m++)l+=r(s[m]*b)+(m!=v-1?",":h);o.push(l)}return o.join(p)},q=function(e,a,n){var i=t.matrix();return i.rotate(-e,.5,.5),{dx:i.x(a,n),dy:i.y(a,n)}},P=function(t,e,a,n,i,r){var o=t._,s=t.matrix,c=o.fillpos,d=t.node,h=d.style,f=1,y="",m=b/e,g=b/a;if(h.visibility="hidden",e&&a){if(d.coordsize=l(m)+p+l(g),h.rotation=r*(e*a<0?-1:1),r){var v=q(r,n,i);n=v.dx,i=v.dy}if(e<0&&(y+="x"),a<0&&(y+=" y")&&(f=-1),h.flip=y,d.coordorigin=n*-m+p+i*-g,c||o.fillsize){var w=d.getElementsByTagName(u);w=w&&w[0],d.removeChild(w),c&&(v=q(r,s.x(c[0],c[1]),s.y(c[0],c[1])),w.position=v.dx*f+p+v.dy*f),o.fillsize&&(w.size=o.fillsize[0]*l(e)+p+o.fillsize[1]*l(a)),d.appendChild(w)}h.visibility="visible"}};t.toString=function(){return"Your browser doesnât support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var M,O=function(t,e,n){for(var i=a(e).toLowerCase().split("-"),r=n?"end":"start",o=i.length,s="classic",l="medium",u="medium";o--;)switch(i[o]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=i[o];break;case"wide":case"narrow":u=i[o];break;case"long":case"short":l=i[o]}var c=t.node.getElementsByTagName("stroke")[0];c[r+"arrow"]=s,c[r+"arrowlength"]=l,c[r+"arrowwidth"]=u},k=function(i,l){i.attrs=i.attrs||{};var d=i.node,f=i.attrs,y=d.style,m=w[i.type]&&(l.x!=f.x||l.y!=f.y||l.width!=f.width||l.height!=f.height||l.cx!=f.cx||l.cy!=f.cy||l.rx!=f.rx||l.ry!=f.ry||l.r!=f.r),g=_[i.type]&&(f.cx!=l.cx||f.cy!=l.cy||f.r!=l.r||f.rx!=l.rx||f.ry!=l.ry),v=i;for(var q in l)l[e](q)&&(f[q]=l[q]);if(m&&(f.path=t._getPath[i.type](i),i._.dirty=1),l.href&&(d.href=l.href),l.title&&(d.title=l.title),l.target&&(d.target=l.target),l.cursor&&(y.cursor=l.cursor),"blur"in l&&i.blur(l.blur),(l.path&&"path"==i.type||m)&&(d.path=x(~a(f.path).toLowerCase().indexOf("r")?t._pathToAbsolute(f.path):f.path),i._.dirty=1,"image"==i.type&&(i._.fillpos=[f.x,f.y],i._.fillsize=[f.width,f.height],P(i,1,1,0,0,0))),"transform"in l&&i.transform(l.transform),g){var k=+f.cx,S=+f.cy,A=+f.rx||+f.r||0,j=+f.ry||+f.r||0;d.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",r((k-A)*b),r((S-j)*b),r((k+A)*b),r((S+j)*b),r(k*b)),i._.dirty=1}if("clip-rect"in l){var C=a(l["clip-rect"]).split(c);if(4==C.length){C[2]=+C[2]+ +C[0],C[3]=+C[3]+ +C[1];var L=d.clipRect||t._g.doc.createElement("div"),E=L.style;E.clip=t.format("rect({1}px {2}px {3}px {0}px)",C),d.clipRect||(E.position="absolute",E.top=0,E.left=0,E.width=i.paper.width+"px",E.height=i.paper.height+"px",d.parentNode.insertBefore(L,d),L.appendChild(d),d.clipRect=L)}l["clip-rect"]||d.clipRect&&(d.clipRect.style.clip="auto")}if(i.textpath){var F=i.textpath.style;l.font&&(F.font=l.font),l["font-family"]&&(F.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,h)+'"'),l["font-size"]&&(F.fontSize=l["font-size"]),l["font-weight"]&&(F.fontWeight=l["font-weight"]),l["font-style"]&&(F.fontStyle=l["font-style"])}if("arrow-start"in l&&O(v,l["arrow-start"]),"arrow-end"in l&&O(v,l["arrow-end"],1),null!=l.opacity||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var R=d.getElementsByTagName(u);if(!(R=R&&R[0])&&(R=M(u)),"image"==i.type&&l.src&&(R.src=l.src),l.fill&&(R.on=!0),null!=R.on&&"none"!=l.fill&&null!==l.fill||(R.on=!1),R.on&&l.fill){var I=a(l.fill).match(t._ISURL);if(I){R.parentNode==d&&d.removeChild(R),R.rotate=!0,R.src=I[1],R.type="tile";var B=i.getBBox(1);R.position=B.x+p+B.y,i._.fillpos=[B.x,B.y],t._preload(I[1],(function(){i._.fillsize=[this.offsetWidth,this.offsetHeight]}))}else R.color=t.getRGB(l.fill).hex,R.src=h,R.type="solid",t.getRGB(l.fill).error&&(v.type in{circle:1,ellipse:1}||"r"!=a(l.fill).charAt())&&T(v,l.fill,R)&&(f.fill="none",f.gradient=l.fill,R.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var D=((+f["fill-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+t.getRGB(l.fill).o+1||2)-1);D=s(o(D,0),1),R.opacity=D,R.src&&(R.color="none")}d.appendChild(R);var N=d.getElementsByTagName("stroke")&&d.getElementsByTagName("stroke")[0],H=!1;!N&&(H=N=M("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(N.on=!0),("none"==l.stroke||null===l.stroke||null==N.on||0==l.stroke||0==l["stroke-width"])&&(N.on=!1);var z=t.getRGB(l.stroke);N.on&&l.stroke&&(N.color=z.hex),D=((+f["stroke-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+z.o+1||2)-1);var G=.75*(n(l["stroke-width"])||1);if(D=s(o(D,0),1),null==l["stroke-width"]&&(G=f["stroke-width"]),l["stroke-width"]&&(N.weight=G),G&&G<1&&(D*=G)&&(N.weight=1),N.opacity=D,l["stroke-linejoin"]&&(N.joinstyle=l["stroke-linejoin"]||"miter"),N.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(N.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var U={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};N.dashstyle=U[e](l["stroke-dasharray"])?U[l["stroke-dasharray"]]:h}H&&d.appendChild(N)}if("text"==v.type){v.paper.canvas.style.display=h;var W=v.paper.span,V=f.font&&f.font.match(/\d+(?:\.\d*)?(?=px)/);y=W.style,f.font&&(y.font=f.font),f["font-family"]&&(y.fontFamily=f["font-family"]),f["font-weight"]&&(y.fontWeight=f["font-weight"]),f["font-style"]&&(y.fontStyle=f["font-style"]),V=n(f["font-size"]||V&&V[0])||10,y.fontSize=100*V+"px",v.textpath.string&&(W.innerHTML=a(v.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var Y=W.getBoundingClientRect();v.W=f.w=(Y.right-Y.left)/100,v.H=f.h=(Y.bottom-Y.top)/100,v.X=f.x,v.Y=f.y+v.H/2,("x"in l||"y"in l)&&(v.path.v=t.format("m{0},{1}l{2},{1}",r(f.x*b),r(f.y*b),r(f.x*b)+1));for(var Q=["x","y","text","font","font-family","font-weight","font-style","font-size"],X=0,J=Q.length;X<J;X++)if(Q[X]in l){v._.dirty=1;break}switch(f["text-anchor"]){case"start":v.textpath.style["v-text-align"]="left",v.bbx=v.W/2;break;case"end":v.textpath.style["v-text-align"]="right",v.bbx=-v.W/2;break;default:v.textpath.style["v-text-align"]="center",v.bbx=0}v.textpath.style["v-text-kern"]=!0}},T=function(e,r,o){e.attrs=e.attrs||{};e.attrs;var s=Math.pow,l="linear",u=".5 .5";if(e.attrs.gradient=r,r=(r=a(r).replace(t._radial_gradient,(function(t,e,a){return l="radial",e&&a&&(e=n(e),a=n(a),s(e-.5,2)+s(a-.5,2)>.25&&(a=i.sqrt(.25-s(e-.5,2))*(2*(a>.5)-1)+.5),u=e+p+a),h}))).split(/\s*\-\s*/),"linear"==l){var c=r.shift();if(c=-n(c),isNaN(c))return null}var d=t._parseDots(r);if(!d)return null;if(e=e.shape||e.node,d.length){e.removeChild(o),o.on=!0,o.method="none",o.color=d[0].color,o.color2=d[d.length-1].color;for(var f=[],y=0,m=d.length;y<m;y++)d[y].offset&&f.push(d[y].offset+p+d[y].color);o.colors=f.length?f.join():"0% "+o.color,"radial"==l?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=u,o.angle=0):(o.type="gradient",o.angle=(270-c)%360),e.appendChild(o)}return 1},S=function(e,a){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=a,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!a.bottom&&(a.bottom=this),this.prev=a.top,a.top&&(a.top.next=this),a.top=this,this.next=null},A=t.el;S.prototype=A,A.constructor=S,A.transform=function(e){if(null==e)return this._.transform;var n,i=this.paper._viewBoxShift,r=i?"s"+[i.scale,i.scale]+"-1-1t"+[i.dx,i.dy]:h;i&&(n=e=a(e).replace(/\.{3}|\u2026/g,this._.transform||h)),t._extractTransform(this,r+e);var o,s=this.matrix.clone(),l=this.skew,u=this.node,c=~a(this.attrs.fill).indexOf("-"),d=!a(this.attrs.fill).indexOf("url(");if(s.translate(1,1),d||c||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",o=s.split(),c&&o.noRotation||!o.isSimple){u.style.filter=s.toFilter();var f=this.getBBox(),y=this.getBBox(1),m=f.x-y.x,g=f.y-y.y;u.coordorigin=m*-b+p+g*-b,P(this,1,1,m,g,0)}else u.style.filter=h,P(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else u.style.filter=h,l.matrix=a(s),l.offset=s.offset();return null!==n&&(this._.transform=n,t._extractTransform(this,n)),this},A.rotate=function(t,e,i){if(this.removed)return this;if(null!=t){if((t=a(t).split(c)).length-1&&(e=n(t[1]),i=n(t[2])),t=n(t[0]),null==i&&(e=i),null==e||null==i){var r=this.getBBox(1);e=r.x+r.width/2,i=r.y+r.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,i]])),this}},A.translate=function(t,e){return this.removed||((t=a(t).split(c)).length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]]))),this},A.scale=function(t,e,i,r){if(this.removed)return this;if((t=a(t).split(c)).length-1&&(e=n(t[1]),i=n(t[2]),r=n(t[3]),isNaN(i)&&(i=null),isNaN(r)&&(r=null)),t=n(t[0]),null==e&&(e=t),null==r&&(i=r),null==i||null==r)var o=this.getBBox(1);return i=null==i?o.x+o.width/2:i,r=null==r?o.y+o.height/2:r,this.transform(this._.transform.concat([["s",t,e,i,r]])),this._.dirtyT=1,this},A.hide=function(){return!this.removed&&(this.node.style.display="none"),this},A.show=function(){return!this.removed&&(this.node.style.display=h),this},A.auxGetBBox=t.el.getBBox,A.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},a=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=a,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=a,e.width=t.width*a,e.height=t.height*a,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},A._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},A.remove=function(){if(!this.removed&&this.node.parentNode){for(var e in this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},A.attr=function(a,n){if(this.removed)return this;if(null==a){var i={};for(var r in this.attrs)this.attrs[e](r)&&(i[r]=this.attrs[r]);return i.gradient&&"none"==i.fill&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(null==n&&t.is(a,"string")){if(a==u&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var o=a.split(c),s={},l=0,p=o.length;l<p;l++)(a=o[l])in this.attrs?s[a]=this.attrs[a]:t.is(this.paper.customAttributes[a],"function")?s[a]=this.paper.customAttributes[a].def:s[a]=t._availableAttrs[a];return p-1?s:s[o[0]]}if(this.attrs&&null==n&&t.is(a,"array")){for(s={},l=0,p=a.length;l<p;l++)s[a[l]]=this.attr(a[l]);return s}var h;for(var f in null!=n&&((h={})[a]=n),null==n&&t.is(a,"object")&&(h=a),h)d("raphael.attr."+f+"."+this.id,this,h[f]);if(h){for(f in this.paper.customAttributes)if(this.paper.customAttributes[e](f)&&h[e](f)&&t.is(this.paper.customAttributes[f],"function")){var y=this.paper.customAttributes[f].apply(this,[].concat(h[f]));for(var m in this.attrs[f]=h[f],y)y[e](m)&&(h[m]=y[m])}h.text&&"text"==this.type&&(this.textpath.string=h.text),k(this,h)}return this},A.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},A.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this},A.insertAfter=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper)),this},A.insertBefore=function(e){return this.removed||(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper)),this},A.blur=function(e){var a=this.node.runtimeStyle,n=a.filter;return n=n.replace(m,h),0!=+e?(this.attrs.blur=e,a.filter=n+p+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+e||1.5)+")",a.margin=t.format("-{0}px 0 0 -{0}px",r(+e||1.5))):(a.filter=n,a.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var a=M("shape");a.style.cssText=v,a.coordsize=b+p+b,a.coordorigin=e.coordorigin;var n=new S(a,e),i={fill:"none",stroke:"#000"};t&&(i.path=t),n.type="path",n.path=[],n.Path=h,k(n,i),e.canvas&&e.canvas.appendChild(a);var r=M("skew");return r.on=!0,a.appendChild(r),n.skew=r,n.transform(h),n},t._engine.rect=function(e,a,n,i,r,o){var s=t._rectPath(a,n,i,r,o),l=e.path(s),u=l.attrs;return l.X=u.x=a,l.Y=u.y=n,l.W=u.width=i,l.H=u.height=r,u.r=o,u.path=s,l.type="rect",l},t._engine.ellipse=function(t,e,a,n,i){var r=t.path();r.attrs;return r.X=e-n,r.Y=a-i,r.W=2*n,r.H=2*i,r.type="ellipse",k(r,{cx:e,cy:a,rx:n,ry:i}),r},t._engine.circle=function(t,e,a,n){var i=t.path();i.attrs;return i.X=e-n,i.Y=a-n,i.W=i.H=2*n,i.type="circle",k(i,{cx:e,cy:a,r:n}),i},t._engine.image=function(e,a,n,i,r,o){var s=t._rectPath(n,i,r,o),l=e.path(s).attr({stroke:"none"}),c=l.attrs,d=l.node,p=d.getElementsByTagName(u)[0];return c.src=a,l.X=c.x=n,l.Y=c.y=i,l.W=c.width=r,l.H=c.height=o,c.path=s,l.type="image",p.parentNode==d&&d.removeChild(p),p.rotate=!0,p.src=a,p.type="tile",l._.fillpos=[n,i],l._.fillsize=[r,o],d.appendChild(p),P(l,1,1,0,0,0),l},t._engine.text=function(e,n,i,o){var s=M("shape"),l=M("path"),u=M("textpath");n=n||0,i=i||0,o=o||"",l.v=t.format("m{0},{1}l{2},{1}",r(n*b),r(i*b),r(n*b)+1),l.textpathok=!0,u.string=a(o),u.on=!0,s.style.cssText=v,s.coordsize=b+p+b,s.coordorigin="0 0";var c=new S(s,e),d={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:o};c.shape=s,c.path=l,c.textpath=u,c.type="text",c.attrs.text=a(o),c.attrs.x=n,c.attrs.y=i,c.attrs.w=1,c.attrs.h=1,k(c,d),s.appendChild(u),s.appendChild(l),e.canvas.appendChild(s);var f=M("skew");return f.on=!0,s.appendChild(f),c.skew=f,c.transform(h),c},t._engine.setSize=function(e,a){var n=this.canvas.style;return this.width=e,this.height=a,e==+e&&(e+="px"),a==+a&&(a+="px"),n.width=e,n.height=a,n.clip="rect(0 "+e+" "+a+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,a,n,i,r){t.eve("raphael.setViewBox",this,this._viewBox,[e,a,n,i,r]);var o,s,l=this.getSize(),u=l.width,c=l.height;return r&&(n*(o=c/i)<u&&(e-=(u-n*o)/2/o),i*(s=u/n)<c&&(a-=(c-i*s)/2/s)),this._viewBox=[e,a,n,i,!!r],this._viewBoxShift={dx:-e,dy:-a,scale:l},this.forEach((function(t){t.transform("...")})),this},t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),M=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(t){M=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),a=e.container,n=e.height,i=e.width,r=e.x,o=e.y;if(!a)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),u=l.style;return r=r||0,o=o||0,i=i||512,n=n||342,s.width=i,s.height=n,i==+i&&(i+="px"),n==+n&&(n+="px"),s.coordsize=1e3*b+p+1e3*b,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),u.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,n),1==a?(t._g.doc.body.appendChild(l),u.left=r+"px",u.top=o+"px",u.position="absolute"):a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=h,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;
3left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var j=t.st;for(var C in A)A[e](C)&&!j[e](C)&&(j[C]=function(t){return function(){var e=arguments;return this.forEach((function(a){a[t].apply(a,e)}))}}(C))}}.apply(e,n))||(t.exports=i)}])})), 4/** @license 5 * 6 * SoundManager 2: JavaScript Sound for the Web 7 * ---------------------------------------------- 8 * http://schillmania.com/projects/soundmanager2/ 9 * 10 * Copyright (c) 2007, Scott Schiller. All rights reserved. 11 * Code provided under the BSD License: 12 * http://schillmania.com/projects/soundmanager2/license.txt 13 * 14 * V2.97a.20150601 15 */ 16function(t,e){function a(a,n){function i(t){return ut.preferFlash&&at&&!ut.ignoreFlash&&ut.flash[t]!==e&&ut.flash[t]}function r(t){return function(e){var a=this._s;return a&&a._a?t.call(this,e):null}}this.setupOptions={url:a||null,flashVersion:8,debugMode:!0,debugFlash:!1,useConsole:!0,consoleOnly:!0,waitForWindowLoad:!1,bgColor:"#ffffff",useHighPerformance:!1,flashPollingInterval:null,html5PollingInterval:null,flashLoadTimeout:1e3,wmode:null,allowScriptAccess:"always",useFlashBlock:!1,useHTML5Audio:!0,forceUseGlobalHTML5Audio:!1,ignoreMobileRestrictions:!1,html5Test:/^(probably|maybe)$/i,preferFlash:!1,noSWFCache:!1,idPrefix:"sound"},this.defaultOptions={autoLoad:!1,autoPlay:!1,from:null,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onposition:null,onstop:null,onfailure:null,onfinish:null,multiShot:!0,multiShotEvents:!1,position:null,pan:0,stream:!0,to:null,type:null,usePolicyFile:!1,volume:100},this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null},this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null},this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a","m4b"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!1},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},opus:{type:["audio/ogg; codecs=opus","audio/opus"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}},this.movieID="sm2-container",this.id=n||"sm2movie",this.debugID="soundmanager-debug",this.debugURLParam=/([#?&])debug=1/i,this.versionNumber="V2.97a.20150601",this.altURL=this.movieURL=this.version=null,this.enabled=this.swfLoaded=!1,this.oMC=null,this.sounds={},this.soundIDs=[],this.didFlashBlock=this.muted=!1,this.filePattern=null,this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i},this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1},this.sandbox={},this.html5={usingFlash:null},this.flash={},this.ignoreFlash=this.html5Only=!1;var o,s,l,u,c,d,p,h,f,y,m,g,v,b,w,_,x,q,P,M,O,k,T,S,A,j,C,L,E,F,R,I,B,D,N,H,z,G,U,W,V,Y,Q,X,J,$,K,Z,tt,et,at,nt,it,rt,ot,st,lt,ut=this,ct=null,dt=null,pt=navigator.userAgent,ht=t.location.href.toString(),ft=document,yt=[],mt=!1,gt=!1,vt=!1,bt=!1,wt=!1,_t=null,xt=null,qt=!1,Pt=!1,Mt=0,Ot=null,kt=[],Tt=null,St=Array.prototype.slice,At=!1,jt=0,Ct=pt.match(/(ipad|iphone|ipod)/i),Lt=pt.match(/android/i),Et=pt.match(/msie/i),Ft=pt.match(/webkit/i),Rt=pt.match(/safari/i)&&!pt.match(/chrome/i),It=pt.match(/opera/i),Bt=pt.match(/(mobile|pre\/|xoom)/i)||Ct||Lt,Dt=!ht.match(/usehtml5audio/i)&&!ht.match(/sm2\-ignorebadua/i)&&Rt&&!pt.match(/silk/i)&&pt.match(/OS X 10_6_([3-7])/i),Nt=ft.hasFocus!==e?ft.hasFocus():null,Ht=Rt&&(ft.hasFocus===e||!ft.hasFocus()),zt=!Ht,Gt=/(mp3|mp4|mpa|m4a|m4b)/i,Ut=ft.location?ft.location.protocol.match(/http/i):null,Wt=Ut?"":"http://",Vt=/^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,Yt="mpeg4 aac flv mov mp4 m4v f4v m4a m4b mp4v 3gp 3g2".split(" "),Qt=new RegExp("\\.("+Yt.join("|")+")(\\?.*)?$","i");this.mimePattern=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i,this.useAltURL=!Ut;try{lt=Audio!==e&&(It&&opera!==e&&10>opera.version()?new Audio(null):new Audio).canPlayType!==e}catch(t){lt=!1}this.hasHTML5=lt,this.setup=function(t){var a=!ut.url;return t!==e&&vt&&Tt&&ut.ok(),f(t),At||(Bt?ut.setupOptions.ignoreMobileRestrictions&&!ut.setupOptions.forceUseGlobalHTML5Audio||(kt.push(P.globalHTML5),At=!0):ut.setupOptions.forceUseGlobalHTML5Audio&&(kt.push(P.globalHTML5),At=!0)),!st&&Bt&&(ut.setupOptions.ignoreMobileRestrictions?kt.push(P.ignoreMobile):(ut.setupOptions.useHTML5Audio=!0,ut.setupOptions.preferFlash=!1,Ct?ut.ignoreFlash=!0:(Lt&&!pt.match(/android\s2\.3/i)||!Lt)&&(At=!0))),t&&(a&&T&&t.url
16!==e&&ut.beginDelayedInit(),T||t.url===e||"complete"!==ft.readyState||setTimeout(O,1)),st=!0,ut},this.supported=this.ok=function(){return Tt?vt&&!bt:ut.useHTML5Audio&&ut.hasHTML5},this.getMovie=function(e){return s(e)||ft[e]||t[e]},this.createSound=function(t,a){function n(){return i=D(i),ut.sounds[i.id]=new o(i),ut.soundIDs.push(i.id),ut.sounds[i.id]}var i,r=null;if(!vt||!ut.ok())return!1;if(a!==e&&(t={id:t,url:a}),(i=h(t)).url=W(i.url),i.id===e&&(i.id=ut.setupOptions.idPrefix+jt++),H(i.id,!0))return ut.sounds[i.id];if(Q(i))(r=n())._setup_html5(i);else{if(ut.html5Only||ut.html5.usingFlash&&i.url&&i.url.match(/data\:/i))return n();8<d&&null===i.isMovieStar&&(i.isMovieStar=!!(i.serverURL||i.type&&i.type.match(Vt)||i.url&&i.url.match(Qt))),i=N(i,void 0),r=n(),8===d?dt._createSound(i.id,i.loops||1,i.usePolicyFile):(dt._createSound(i.id,i.url,i.usePeakData,i.useWaveformData,i.useEQData,i.isMovieStar,!!i.isMovieStar&&i.bufferTime,i.loops||1,i.serverURL,i.duration||null,i.autoPlay,!0,i.autoLoad,i.usePolicyFile),i.serverURL||(r.connected=!0,i.onconnect&&i.onconnect.apply(r))),i.serverURL||!i.autoLoad&&!i.autoPlay||r.load(i)}return!i.serverURL&&i.autoPlay&&r.play(),r},this.destroySound=function(t,e){if(!H(t))return!1;var a,n=ut.sounds[t];for(n.stop(),n._iO={},n.unload(),a=0;a<ut.soundIDs.length;a++)if(ut.soundIDs[a]===t){ut.soundIDs.splice(a,1);break}return e||n.destruct(!0),delete ut.sounds[t],!0},this.load=function(t,e){return!!H(t)&&ut.sounds[t].load(e)},this.unload=function(t){return!!H(t)&&ut.sounds[t].unload()},this.onposition=this.onPosition=function(t,e,a,n){return!!H(t)&&ut.sounds[t].onposition(e,a,n)},this.clearOnPosition=function(t,e,a){return!!H(t)&&ut.sounds[t].clearOnPosition(e,a)},this.start=this.play=function(t,e){var a=null,n=e&&!(e instanceof Object);if(!vt||!ut.ok())return!1;if(H(t,n))n&&(e={url:e});else{if(!n)return!1;n&&(e={url:e}),e&&e.url&&(e.id=t,a=ut.createSound(e).play())}return null===a&&(a=ut.sounds[t].play(e)),a},this.setPosition=function(t,e){return!!H(t)&&ut.sounds[t].setPosition(e)},this.stop=function(t){return!!H(t)&&ut.sounds[t].stop()},this.stopAll=function(){for(var t in ut.sounds)ut.sounds.hasOwnProperty(t)&&ut.sounds[t].stop()},this.pause=function(t){return!!H(t)&&ut.sounds[t].pause()},this.pauseAll=function(){var t;for(t=ut.soundIDs.length-1;0<=t;t--)ut.sounds[ut.soundIDs[t]].pause()},this.resume=function(t){return!!H(t)&&ut.sounds[t].resume()},this.resumeAll=function(){var t;for(t=ut.soundIDs.length-1;0<=t;t--)ut.sounds[ut.soundIDs[t]].resume()},this.togglePause=function(t){return!!H(t)&&ut.sounds[t].togglePause()},this.setPan=function(t,e){return!!H(t)&&ut.sounds[t].setPan(e)},this.setVolume=function(t,a){var n,i;if(t===e||isNaN(t)||a!==e)return!!H(t)&&ut.sounds[t].setVolume(a);for(n=0,i=ut.soundIDs.length;n<i;n++)ut.sounds[ut.soundIDs[n]].setVolume(t)},this.mute=function(t){var e=0;if(t instanceof String&&(t=null),t)return!!H(t)&&ut.sounds[t].mute();for(e=ut.soundIDs.length-1;0<=e;e--)ut.sounds[ut.soundIDs[e]].mute();return ut.muted=!0},this.muteAll=function(){ut.mute()},this.unmute=function(t){if(t instanceof String&&(t=null),t)return!!H(t)&&ut.sounds[t].unmute();for(t=ut.soundIDs.length-1;0<=t;t--)ut.sounds[ut.soundIDs[t]].unmute();return ut.muted=!1,!0},this.unmuteAll=function(){ut.unmute()},this.toggleMute=function(t){return!!H(t)&&ut.sounds[t].toggleMute()},this.getMemoryUse=function(){var t=0;return dt&&8!==d&&(t=parseInt(dt._getMemoryUse(),10)),t},this.disable=function(a){var n;if(a===e&&(a=!1),bt)return!1;for(bt=!0,n=ut.soundIDs.length-1;0<=n;n--)L(ut.sounds[ut.soundIDs[n]]);return p(a),tt.remove(t,"load",v),!0},this.canPlayMIME=function(t){var e;return ut.hasHTML5&&(e=X({type:t})),!e&&Tt&&(e=t&&ut.ok()?!!(8<d&&t.match(Vt)||t.match(ut.mimePattern)):null),e},this.canPlayURL=function(t){var e;return ut.hasHTML5&&(e=X({url:t})),!e&&Tt&&(e=t&&ut.ok()?!!t.match(ut.filePattern):null),e},this.canPlayLink=function(t){return!(t.type===e||!t.type||!ut.canPlayMIME(t.type))||ut.canPlayURL(t.href)},this.getSoundById=function(t,e){return t?ut.sounds[t]:null},this.onready=function(e,a){if("function"!=typeof e)throw R("needFunction","onready");return a||(a=t),m("onready",e,a),g(),!0},this.ontimeout=function(e,a){if("function"!=typeof e)throw R("needFunction","ontimeout");return a||(a=t),m("ontimeout",e,a),g({type:"ontimeout"}),!0},this._wD=this._writeDebug=function(t,e){return!0},this._debug=function(){},this.reboot=function(e,a){var n,i,r;for(n=ut.soundIDs.length-1;0<=n;n--)ut.sounds[ut.soundIDs[n]].destruct();if(dt)try{Et&&(xt=dt.innerHTML),_t=dt.parentNode.removeChild(dt)}catch(t){}if(xt=_t=Tt=dt=null,ut.enabled=T=vt=qt=Pt=mt=gt=bt=At=ut.swfLoaded=!1,ut.soundIDs=[],ut.sounds={},jt=0,st=!1,e)yt=[];else for(n in yt)if(yt.hasOwnProperty(n))for(i=0,r=yt[n].length;i<r;i++)yt[n][i].fired=!1;return ut.html5={usingFlash:null},ut.flash={},ut.html5Only=!1,ut.ignoreFlash=!1,t.setTimeout((function(){a||ut.beginDelayedInit()}),20),ut},this.reset=function(){return ut.reboot(!0,!0)},this.getMoviePercent=function(){return dt&&"PercentLoaded"in dt?dt.PercentLoaded():null},this.beginDelayedInit=function(){wt=!0,O(),setTimeout((function(){return!Pt&&(A(),M(),Pt=!0)}),20),b()},this.destruct=function(){ut.disable(!0)},o=function(t){var a,n,i,r,o,s,l,u,c,p,f,y=this,m=!1,g=[],v=0,b=null;n=a=null,this.sID=this.id=t.id,this.url=t.url,this._iO=this.instanceOptions=this.options=h(t),this.pan=this.options.pan,this.volume=this.options.volume,this.isHTML5=!1,this._a=null,f=!this.url,this.id3={},this._debug=function(){},this.load=function(t){var a;if(t!==e?y._iO=h(t,y.options):(t=y.options,y._iO=t,b&&b!==y.url&&(y._iO.url=y.url,y.url=null)),y._iO.url||(y._iO.url=y.url),y._iO.url=W(y._iO.url),!(a=y.instanceOptions=y._iO).url&&!y.url)return y;if(a.url===y.url&&0!==y.readyState&&2!==y.readyState)return 3===y.readyState&&a.onload&&ot(y,(function(){a.onload.apply(y,[!!y.duration])})),y;if(y.loaded=!1,y.readyState=1,y.playState=0,y.id3={},Q(a))y._setup_html5(a)._called_load||(y._html5_canplay=!1,y.url!==a.url&&(y._a.src=a.url,y.setPosition(0)),y._a.autobuffer="auto",y._a.preload="auto",y._a._called_load=!0);else{if(ut.html5Only||y._iO.url&&y._iO.url.match(/data\:/i))return y;try{y.isHTML5=!1,y._iO=N(D(a)),y._iO.autoPlay&&(y._iO.position||y._iO.from)&&(y._iO.autoPlay=!1),a=y._iO,8===d?dt._load(y.id,a.url,a.stream,a.autoPlay,a.usePolicyFile):dt._load(y.id,a.url,!!a.stream,!!a.autoPlay,a.loops||1,!!a.autoLoad,a.usePolicyFile)}catch(t){j({type:"SMSOUND_LOAD_JS_EXCEPTION",fatal:!0})}}return y.url=a.url,y},this.unload=function(){return 0!==y.readyState&&(y.isHTML5?(s(),y._a&&(y._a.pause(),b=$(y._a))):8===d?dt._unload(y.id,"about:blank"):dt._unload(y.id),i()),y},this.destruct=function(t){y.isHTML5?(s(),y._a&&(y._a.pause(),$(y._a),At||o(),y._a._s=null,y._a=null)):(y._iO.onfailure=null,dt._destroySound(y.id)),t||ut.destroySound(y.id,!0)},this.start=this.play=function(t,a){var n,i,r,o,s;if(i=!0,i=null,a=a===e||a,t||(t={}),y.url&&(y._iO.url=y.url),y._iO=h(y._iO,y.options),y._iO=h(t,y._iO),y._iO.url=W(y._iO.url),y.instanceOptions=y._iO,!y.isHTML5&&y._iO.serverURL&&!y.connected)return y.getAutoPlay()||y.setAutoPlay(!0),y;if(Q(y._iO)&&(y._setup_html5(y._iO),l()),1!==y.playState||y.paused||((n=y._iO.multiSh
16ot)||(y.isHTML5&&y.setPosition(y._iO.position),i=y)),null!==i)return i;if(t.url&&t.url!==y.url&&(y.readyState||y.isHTML5||8!==d||!f?y.load(y._iO):f=!1),y.loaded||(0===y.readyState?(y.isHTML5||ut.html5Only?y.isHTML5?y.load(y._iO):i=y:(y._iO.autoPlay=!0,y.load(y._iO)),y.instanceOptions=y._iO):2===y.readyState&&(i=y)),null!==i)return i;if(!y.isHTML5&&9===d&&0<y.position&&y.position===y.duration&&(t.position=0),y.paused&&0<=y.position&&(!y._iO.serverURL||0<y.position))y.resume();else{if(y._iO=h(t,y._iO),(!y.isHTML5&&null!==y._iO.position&&0<y._iO.position||null!==y._iO.from&&0<y._iO.from||null!==y._iO.to)&&0===y.instanceCount&&0===y.playState&&!y._iO.serverURL){if(n=function(){y._iO=h(t,y._iO),y.play(y._iO)},y.isHTML5&&!y._html5_canplay?(y.load({_oncanplay:n}),i=!1):y.isHTML5||y.loaded||y.readyState&&2===y.readyState||(y.load({onload:n}),i=!1),null!==i)return i;y._iO=p()}(!y.instanceCount||y._iO.multiShotEvents||y.isHTML5&&y._iO.multiShot&&!At||!y.isHTML5&&8<d&&!y.getAutoPlay())&&y.instanceCount++,y._iO.onposition&&0===y.playState&&u(y),y.playState=1,y.paused=!1,y.position=y._iO.position===e||isNaN(y._iO.position)?0:y._iO.position,y.isHTML5||(y._iO=N(D(y._iO))),y._iO.onplay&&a&&(y._iO.onplay.apply(y),m=!0),y.setVolume(y._iO.volume,!0),y.setPan(y._iO.pan,!0),y.isHTML5?2>y.instanceCount?(l(),i=y._setup_html5(),y.setPosition(y._iO.position),i.play()):(r=new Audio(y._iO.url),o=function(){tt.remove(r,"ended",o),y._onfinish(y),$(r),r=null},s=function(){tt.remove(r,"canplay",s);try{r.currentTime=y._iO.position/1e3}catch(t){}r.play()},tt.add(r,"ended",o),y._iO.volume!==e&&(r.volume=Math.max(0,Math.min(1,y._iO.volume/100))),y.muted&&(r.muted=!0),y._iO.position?tt.add(r,"canplay",s):r.play()):(i=dt._start(y.id,y._iO.loops||1,9===d?y.position:y.position/1e3,y._iO.multiShot||!1),9!==d||i||y._iO.onplayerror&&y._iO.onplayerror.apply(y))}return y},this.stop=function(t){var e=y._iO;return 1===y.playState&&(y._onbufferchange(0),y._resetOnPosition(0),y.paused=!1,y.isHTML5||(y.playState=0),c(),e.to&&y.clearOnPosition(e.to),y.isHTML5?y._a&&(t=y.position,y.setPosition(0),y.position=t,y._a.pause(),y.playState=0,y._onTimer(),s()):(dt._stop(y.id,t),e.serverURL&&y.unload()),y.instanceCount=0,y._iO={},e.onstop&&e.onstop.apply(y)),y},this.setAutoPlay=function(t){y._iO.autoPlay=t,y.isHTML5||(dt._setAutoPlay(y.id,t),t&&(y.instanceCount||1!==y.readyState||y.instanceCount++))},this.getAutoPlay=function(){return y._iO.autoPlay},this.setPosition=function(t){t===e&&(t=0);var a=y.isHTML5?Math.max(t,0):Math.min(y.duration||y._iO.duration,Math.max(t,0));if(y.position=a,t=y.position/1e3,y._resetOnPosition(y.position),y._iO.position=a,y.isHTML5){if(y._a){if(y._html5_canplay){if(y._a.currentTime!==t)try{y._a.currentTime=t,(0===y.playState||y.paused)&&y._a.pause()}catch(t){}}else if(t)return y;y.paused&&y._onTimer(!0)}}else t=9===d?y.position:t,y.readyState&&2!==y.readyState&&dt._setPosition(y.id,t,y.paused||!y.playState,y._iO.multiShot);return y},this.pause=function(t){return y.paused||0===y.playState&&1!==y.readyState||(y.paused=!0,y.isHTML5?(y._setup_html5().pause(),s()):(t||t===e)&&dt._pause(y.id,y._iO.multiShot),y._iO.onpause&&y._iO.onpause.apply(y)),y},this.resume=function(){var t=y._iO;return y.paused?(y.paused=!1,y.playState=1,y.isHTML5?(y._setup_html5().play(),l()):(t.isMovieStar&&!t.serverURL&&y.setPosition(y.position),dt._pause(y.id,t.multiShot)),!m&&t.onplay?(t.onplay.apply(y),m=!0):t.onresume&&t.onresume.apply(y),y):y},this.togglePause=function(){return 0===y.playState?(y.play({position:9!==d||y.isHTML5?y.position/1e3:y.position}),y):(y.paused?y.resume():y.pause(),y)},this.setPan=function(t,a){return t===e&&(t=0),a===e&&(a=!1),y.isHTML5||dt._setPan(y.id,t),y._iO.pan=t,a||(y.pan=t,y.options.pan=t),y},this.setVolume=function(t,a){return t===e&&(t=100),a===e&&(a=!1),y.isHTML5?y._a&&(ut.muted&&!y.muted&&(y.muted=!0,y._a.muted=!0),y._a.volume=Math.max(0,Math.min(1,t/100))):dt._setVolume(y.id,ut.muted&&!y.muted||y.muted?0:t),y._iO.volume=t,a||(y.volume=t,y.options.volume=t),y},this.mute=function(){return y.muted=!0,y.isHTML5?y._a&&(y._a.muted=!0):dt._setVolume(y.id,0),y},this.unmute=function(){y.muted=!1;var t=y._iO.volume!==e;return y.isHTML5?y._a&&(y._a.muted=!1):dt._setVolume(y.id,t?y._iO.volume:y.options.volume),y},this.toggleMute=function(){return y.muted?y.unmute():y.mute()},this.onposition=this.onPosition=function(t,a,n){return g.push({position:parseInt(t,10),method:a,scope:n!==e?n:y,fired:!1}),y},this.clearOnPosition=function(t,e){var a;if(t=parseInt(t,10),isNaN(t))return!1;for(a=0;a<g.length;a++)t!==g[a].position||e&&e!==g[a].method||(g[a].fired&&v--,g.splice(a,1))},this._processOnPosition=function(){var t,e;if(!(t=g.length)||!y.playState||v>=t)return!1;for(--t;0<=t;t--)!(e=g[t]).fired&&y.position>=e.position&&(e.fired=!0,v++,e.method.apply(e.scope,[e.position]));return!0},this._resetOnPosition=function(t){var e,a;if(!(e=g.length))return!1;for(--e;0<=e;e--)(a=g[e]).fired&&t<=a.position&&(a.fired=!1,v--);return!0},p=function(){var t,e,a=y._iO,n=a.from,i=a.to;return e=function(){y.clearOnPosition(i,e),y.stop()},t=function(){null===i||isNaN(i)||y.onPosition(i,e)},null===n||isNaN(n)||(a.position=n,a.multiShot=!1,t()),a},u=function(){var t,e=y._iO.onposition;if(e)for(t in e)e.hasOwnProperty(t)&&y.onPosition(parseInt(t,10),e[t])},c=function(){var t,e=y._iO.onposition;if(e)for(t in e)e.hasOwnProperty(t)&&y.clearOnPosition(parseInt(t,10))},l=function(){y.isHTML5&&z(y)},s=function(){y.isHTML5&&G(y)},(i=function(t){t||(g=[],v=0),m=!1,y._hasTimer=null,y._a=null,y._html5_canplay=!1,y.bytesLoaded=null,y.bytesTotal=null,y.duration=y._iO&&y._iO.duration?y._iO.duration:null,y.durationEstimate=null,y.buffered=[],y.eqData=[],y.eqData.left
16=[],y.eqData.right=[],y.failures=0,y.isBuffering=!1,y.instanceOptions={},y.instanceCount=0,y.loaded=!1,y.metadata={},y.readyState=0,y.muted=!1,y.paused=!1,y.peakData={left:0,right:0},y.waveformData={left:[],right:[]},y.playState=0,y.position=null,y.id3={}})(),this._onTimer=function(t){var e,i=!1,r={};if(y._hasTimer||t)return y._a&&(t||(0<y.playState||1===y.readyState)&&!y.paused)&&((e=y._get_html5_duration())!==a&&(a=e,y.duration=e,i=!0),y.durationEstimate=y.duration,(e=1e3*y._a.currentTime||0)!==n&&(n=e,i=!0),(i||t)&&y._whileplaying(e,r,r,r,r)),i},this._get_html5_duration=function(){var t=y._iO;return(t=y._a&&y._a.duration?1e3*y._a.duration:t&&t.duration?t.duration:null)&&!isNaN(t)&&1/0!==t?t:null},this._apply_loop=function(t,e){t.loop=1<e?"loop":""},this._setup_html5=function(t){t=h(y._iO,t);var e,a=At?ct:y._a,n=decodeURI(t.url);if(At?n===decodeURI(et)&&(e=!0):n===decodeURI(b)&&(e=!0),a){if(a._s)if(At)a._s&&a._s.playState&&!e&&a._s.stop();else if(!At&&n===decodeURI(b))return y._apply_loop(a,t.loops),a;e||(b&&i(!1),a.src=t.url,et=b=y.url=t.url,a._called_load=!1)}else t.autoLoad||t.autoPlay?(y._a=new Audio(t.url),y._a.load()):y._a=It&&10>opera.version()?new Audio(null):new Audio,(a=y._a)._called_load=!1,At&&(ct=a);return y.isHTML5=!0,y._a=a,a._s=y,r(),y._apply_loop(a,t.loops),t.autoLoad||t.autoPlay?y.load():(a.autobuffer=!1,a.preload="auto"),a},r=function(){if(y._a._added_events)return!1;var t;for(t in y._a._added_events=!0,rt)rt.hasOwnProperty(t)&&y._a&&y._a.addEventListener(t,rt[t],!1);return!0},o=function(){var t;for(t in y._a._added_events=!1,rt)rt.hasOwnProperty(t)&&y._a&&y._a.removeEventListener(t,rt[t],!1)},this._onload=function(t){var e=!!t||!y.isHTML5&&8===d&&y.duration;return y.loaded=e,y.readyState=e?3:2,y._onbufferchange(0),y._iO.onload&&ot(y,(function(){y._iO.onload.apply(y,[e])})),!0},this._onbufferchange=function(t){return!(0===y.playState||t&&y.isBuffering||!t&&!y.isBuffering)&&(y.isBuffering=1===t,y._iO.onbufferchange&&y._iO.onbufferchange.apply(y,[t]),!0)},this._onsuspend=function(){return y._iO.onsuspend&&y._iO.onsuspend.apply(y),!0},this._onfailure=function(t,e,a){y.failures++,y._iO.onfailure&&1===y.failures&&y._iO.onfailure(t,e,a)},this._onwarning=function(t,e,a){y._iO.onwarning&&y._iO.onwarning(t,e,a)},this._onfinish=function(){var t=y._iO.onfinish;y._onbufferchange(0),y._resetOnPosition(0),y.instanceCount&&(y.instanceCount--,y.instanceCount||(c(),y.playState=0,y.paused=!1,y.instanceCount=0,y.instanceOptions={},y._iO={},s(),y.isHTML5&&(y.position=0)),(!y.instanceCount||y._iO.multiShotEvents)&&t&&ot(y,(function(){t.apply(y)})))},this._whileloading=function(t,e,a,n){var i=y._iO;y.bytesLoaded=t,y.bytesTotal=e,y.duration=Math.floor(a),y.bufferLength=n,y.durationEstimate=y.isHTML5||i.isMovieStar?y.duration:i.duration?y.duration>i.duration?y.duration:i.duration:parseInt(y.bytesTotal/y.bytesLoaded*y.duration,10),y.isHTML5||(y.buffered=[{start:0,end:y.duration}]),(3!==y.readyState||y.isHTML5)&&i.whileloading&&i.whileloading.apply(y)},this._whileplaying=function(t,a,n,i,r){var o=y._iO;return!isNaN(t)&&null!==t&&(y.position=Math.max(0,t),y._processOnPosition(),!y.isHTML5&&8<d&&(o.usePeakData&&a!==e&&a&&(y.peakData={left:a.leftPeak,right:a.rightPeak}),o.useWaveformData&&n!==e&&n&&(y.waveformData={left:n.split(","),right:i.split(",")}),o.useEQData&&r!==e&&r&&r.leftEQ&&(t=r.leftEQ.split(","),y.eqData=t,y.eqData.left=t,r.rightEQ!==e&&r.rightEQ&&(y.eqData.right=r.rightEQ.split(",")))),1===y.playState&&(y.isHTML5||8!==d||y.position||!y.isBuffering||y._onbufferchange(0),o.whileplaying&&o.whileplaying.apply(y)),!0)},this._oncaptiondata=function(t){y.captiondata=t,y._iO.oncaptiondata&&y._iO.oncaptiondata.apply(y,[t])},this._onmetadata=function(t,e){var a,n,i={};for(a=0,n=t.length;a<n;a++)i[t[a]]=e[a];y.metadata=i,y._iO.onmetadata&&y._iO.onmetadata.call(y,y.metadata)},this._onid3=function(t,e){var a,n,i=[];for(a=0,n=t.length;a<n;a++)i[t[a]]=e[a];y.id3=h(y.id3,i),y._iO.onid3&&y._iO.onid3.apply(y)},this._onconnect=function(t){t=1===t,(y.connected=t)&&(y.failures=0,H(y.id)&&(y.getAutoPlay()?y.play(e,y.getAutoPlay()):y._iO.autoLoad&&y.load()),y._iO.onconnect&&y._iO.onconnect.apply(y,[t]))},this._ondataerror=function(t){0<y.playState&&y._iO.ondataerror&&y._iO.ondataerror.apply(y)}},S=function(){return ft.body||ft.getElementsByTagName("div")[0]},s=function(t){return ft.getElementById(t)},h=function(t,a){var n,i,r=t||{};for(i in n=a===e?ut.defaultOptions:a)n.hasOwnProperty(i)&&r[i]===e&&(r[i]="object"!=typeof n[i]||null===n[i]?n[i]:h(r[i],n[i]));return r},ot=function(e,a){e.isHTML5||8!==d?a():t.setTimeout(a,0)},y={onready:1,ontimeout:1,defaultOptions:1,flash9Options:1,movieStarOptions:1},f=function(t,a){var n,i=!0,r=a!==e,o=ut.setupOptions;for(n in t)if(t.hasOwnProperty(n))if("object"!=typeof t[n]||null===t[n]||t[n]instanceof Array||t[n]instanceof RegExp)r&&y[a]!==e?ut[a][n]=t[n]:o[n]!==e?(ut.setupOptions[n]=t[n],ut[n]=t[n]):y[n]===e?i=!1:ut[n]instanceof Function?ut[n].apply(ut,t[n]instanceof Array?t[n]:[t[n]]):ut[n]=t[n];else{if(y[n]!==e)return f(t[n],n);i=!1}return i},tt=function(){function e(t){var e=(t=St.call(t)).length;return n?(t[1]="on"+t[1],3<e&&t.pop()):3===e&&t.push(!1),t}function a(t,e){var a=t.shift(),r=[i[e]];n?a[r](t[0],t[1]):a[r].apply(a,t)}var n=t.attachEvent,i={add:n?"attachEvent":"addEventListener",remove:n?"detachEvent":"removeEventListener"};return{add:function(){a(e(arguments),"add")},remove:function(){a(e(arguments),"remove")}}}(),rt={abort:r((function(){})),canplay:r((function(){var t,a=this._s;if(a._html5_canplay)return!0;
16if(a._html5_canplay=!0,a._onbufferchange(0),t=a._iO.position===e||isNaN(a._iO.position)?null:a._iO.position/1e3,this.currentTime!==t)try{this.currentTime=t}catch(t){}a._iO._oncanplay&&a._iO._oncanplay()})),canplaythrough:r((function(){var t=this._s;t.loaded||(t._onbufferchange(0),t._whileloading(t.bytesLoaded,t.bytesTotal,t._get_html5_duration()),t._onload(!0))})),durationchange:r((function(){var t,e=this._s;t=e._get_html5_duration(),isNaN(t)||t===e.duration||(e.durationEstimate=e.duration=t)})),ended:r((function(){this._s._onfinish()})),error:r((function(){this._s._onload(!1)})),loadeddata:r((function(){var t=this._s;t._loaded||Rt||(t.duration=t._get_html5_duration())})),loadedmetadata:r((function(){})),loadstart:r((function(){this._s._onbufferchange(1)})),play:r((function(){this._s._onbufferchange(0)})),playing:r((function(){this._s._onbufferchange(0)})),progress:r((function(t){var e,a,n=this._s,i=0;i=t.target.buffered;e=t.loaded||0;var r=t.total||1;if(n.buffered=[],i&&i.length){for(e=0,a=i.length;e<a;e++)n.buffered.push({start:1e3*i.start(e),end:1e3*i.end(e)});i=1e3*(i.end(0)-i.start(0)),e=Math.min(1,i/(1e3*t.target.duration))}isNaN(e)||(n._whileloading(e,r,n._get_html5_duration()),e&&r&&e===r&&rt.canplaythrough.call(this,t))})),ratechange:r((function(){})),suspend:r((function(t){var e=this._s;rt.progress.call(this,t),e._onsuspend()})),stalled:r((function(){})),timeupdate:r((function(){this._s._onTimer()})),waiting:r((function(){this._s._onbufferchange(1)}))},Q=function(t){return!(!t||!(t.type||t.url||t.serverURL))&&(!(t.serverURL||t.type&&i(t.type))&&(t.type?X({type:t.type}):X({url:t.url})||ut.html5Only||t.url.match(/data\:/i)))},$=function(t){var a;return t&&(a=Rt?"about:blank":ut.html5.canPlayType("audio/wav")?"data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==":"about:blank",t.src=a,t._called_unload!==e&&(t._called_load=!1)),At&&(et=null),a},X=function(t){if(!ut.useHTML5Audio||!ut.hasHTML5)return!1;var a=t.url||null;t=t.type||null;var n,r=ut.audioFormats;if(t&&ut.html5[t]!==e)return ut.html5[t]&&!i(t);if(!J){for(n in J=[],r)r.hasOwnProperty(n)&&(J.push(n),r[n].related&&(J=J.concat(r[n].related)));J=new RegExp("\\.("+J.join("|")+")(\\?.*)?$","i")}return(n=a?a.toLowerCase().match(J):null)&&n.length?n=n[1]:t&&(n=(-1!==(a=t.indexOf(";"))?t.substr(0,a):t).substr(6)),n&&ut.html5[n]!==e?a=ut.html5[n]&&!i(n):(t="audio/"+n,a=ut.html5.canPlayType({type:t}),a=(ut.html5[n]=a)&&ut.html5[t]&&!i(t)),a},Z=function(){function t(t){var e,a=e=!1;if(!o||"function"!=typeof o.canPlayType)return e;if(t instanceof Array){for(r=0,e=t.length;r<e;r++)(ut.html5[t[r]]||o.canPlayType(t[r]).match(ut.html5Test))&&(a=!0,ut.html5[t[r]]=!0,ut.flash[t[r]]=!!t[r].match(Gt));e=a}else e=!(!(t=!(!o||"function"!=typeof o.canPlayType)&&o.canPlayType(t))||!t.match(ut.html5Test));return e}if(!ut.useHTML5Audio||!ut.hasHTML5)return Tt=ut.html5.usingFlash=!0,!1;var a,n,i,r,o=Audio!==e?It&&10>opera.version()?new Audio(null):new Audio:null,s={};for(a in i=ut.audioFormats)if(i.hasOwnProperty(a)&&(n="audio/"+a,s[a]=t(i[a].type),s[n]=s[a],a.match(Gt)?(ut.flash[a]=!0,ut.flash[n]=!0):(ut.flash[a]=!1,ut.flash[n]=!1),i[a]&&i[a].related))for(r=i[a].related.length-1;0<=r;r--)s["audio/"+i[a].related[r]]=s[a],ut.html5[i[a].related[r]]=s[a],ut.flash[i[a].related[r]]=s[a];return s.canPlayType=o?t:null,ut.html5=h(ut.html5,s),ut.html5.usingFlash=Y(),Tt=ut.html5.usingFlash,!0},P={},R=function(){},D=function(t){return 8===d&&1<t.loops&&t.stream&&(t.stream=!1),t},N=function(t,e){return t&&!t.usePolicyFile&&(t.onid3||t.usePeakData||t.useWaveformData||t.useEQData)&&(t.usePolicyFile=!0),t},l=function(){return!1},L=function(t){for(var e in t)t.hasOwnProperty(e)&&"function"==typeof t[e]&&(t[e]=l)},E=function(t){t===e&&(t=!1),(bt||t)&&ut.disable(t)},F=function(t){if(t)if(t.match(/\.swf(\?.*)?$/i)){if(t.substr(t.toLowerCase().lastIndexOf(".swf?")+4))return t}else t.lastIndexOf("/")!==t.length-1&&(t+="/");return t=(t&&-1!==t.lastIndexOf("/")?t.substr(0,t.lastIndexOf("/")+1):"./")+ut.movieURL,ut.noSWFCache&&(t+="?ts="+(new Date).getTime()),t},x=function(){8!==(d=parseInt(ut.flashVersion,10))&&9!==d&&(ut.flashVersion=d=8);var t=ut.debugMode||ut.debugFlash?"_debug.swf":".swf";ut.useHTML5Audio&&!ut.html5Only&&ut.audioFormats.mp4.required&&9>d&&(ut.flashVersion=d=9),ut.version=ut.versionNumber+(ut.html5Only?" (HTML5-only mode)":9===d?" (AS3/Flash 9)":" (AS2/Flash 8)"),8<d?(ut.defaultOptions=h(ut.defaultOptions,ut.flash9Options),ut.features.buffering=!0,ut.defaultOptions=h(ut.defaultOptions,ut.movieStarOptions),ut.filePatterns.flash9=new RegExp("\\.(mp3|"+Yt.join("|")+")(\\?.*)?$","i"),ut.features.movieStar=!0):ut.features.movieStar=!1,ut.filePattern=ut.filePatterns[8!==d?"flash9":"flash8"],ut.movieURL=(8===d?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",t),ut.features.peakData=ut.features.waveformData=ut.features.eqData=8<d},C=function(t,e){if(!dt)return!1;dt._setPolling(t,e)},H=this.getSoundById,B=function(){var t=[];
16return ut.debugMode&&t.push("sm2_debug"),ut.debugFlash&&t.push("flash_debug"),ut.useHighPerformance&&t.push("high_performance"),t.join(" ")},I=function(){R("fbHandler");var t=ut.getMoviePercent(),e={type:"FLASHBLOCK"};if(ut.html5Only)return!1;ut.ok()?ut.oMC&&(ut.oMC.className=[B(),"movieContainer","swf_loaded"+(ut.didFlashBlock?" swf_unblocked":"")].join(" ")):(Tt&&(ut.oMC.className=B()+" movieContainer "+(null===t?"swf_timedout":"swf_error")),ut.didFlashBlock=!0,g({type:"ontimeout",ignoreInit:!0,error:e}),j(e))},m=function(t,a,n){yt[t]===e&&(yt[t]=[]),yt[t].push({method:a,scope:n||null,fired:!1})},g=function(t){if(t||(t={type:ut.ok()?"onready":"ontimeout"}),!vt&&t&&!t.ignoreInit||"ontimeout"===t.type&&(ut.ok()||bt&&!t.ignoreInit))return!1;var e,a={success:t&&t.ignoreInit?ut.ok():!bt},n=t&&t.type&&yt[t.type]||[],i=[],r=(a=[a],Tt&&!ut.ok());for(t.error&&(a[0].error=t.error),t=0,e=n.length;t<e;t++)!0!==n[t].fired&&i.push(n[t]);if(i.length)for(t=0,e=i.length;t<e;t++)i[t].scope?i[t].method.apply(i[t].scope,a):i[t].method.apply(this,a),r||(i[t].fired=!0);return!0},v=function(){t.setTimeout((function(){ut.useFlashBlock&&I(),g(),"function"==typeof ut.onload&&ut.onload.apply(t),ut.waitForWindowLoad&&tt.add(t,"load",v)}),1)},nt=function(){if(at!==e)return at;var a,n=!1,i=navigator,r=i.plugins,o=t.ActiveXObject;if(r&&r.length)(i=i.mimeTypes)&&i["application/x-shockwave-flash"]&&i["application/x-shockwave-flash"].enabledPlugin&&i["application/x-shockwave-flash"].enabledPlugin.description&&(n=!0);else if(o!==e&&!pt.match(/MSAppHost/i)){try{a=new o("ShockwaveFlash.ShockwaveFlash")}catch(t){a=null}n=!!a}return at=n},Y=function(){var t,e,a=ut.audioFormats;if(Ct&&pt.match(/os (1|2|3_0|3_1)\s/i)?(ut.hasHTML5=!1,ut.html5Only=!0,ut.oMC&&(ut.oMC.style.display="none")):!ut.useHTML5Audio||ut.html5&&ut.html5.canPlayType||(ut.hasHTML5=!1),ut.useHTML5Audio&&ut.hasHTML5)for(e in V=!0,a)a.hasOwnProperty(e)&&a[e].required&&(ut.html5.canPlayType(a[e].type)?ut.preferFlash&&(ut.flash[e]||ut.flash[a[e].type])&&(t=!0):(V=!1,t=!0));return ut.ignoreFlash&&(t=!1,V=!0),ut.html5Only=ut.hasHTML5&&ut.useHTML5Audio&&!t,!ut.html5Only},W=function(t){var e,a,n=0;if(t instanceof Array){for(e=0,a=t.length;e<a;e++)if(t[e]instanceof Object){if(ut.canPlayMIME(t[e].type)){n=e;break}}else if(ut.canPlayURL(t[e])){n=e;break}t[n].url&&(t[n]=t[n].url),t=t[n]}return t},z=function(t){t._hasTimer||(t._hasTimer=!0,!Bt&&ut.html5PollingInterval&&(null===Ot&&0===Mt&&(Ot=setInterval(U,ut.html5PollingInterval)),Mt++))},G=function(t){t._hasTimer&&(t._hasTimer=!1,!Bt&&ut.html5PollingInterval&&Mt--)},U=function(){var t;if(null!==Ot&&!Mt)return clearInterval(Ot),Ot=null,!1;for(t=ut.soundIDs.length-1;0<=t;t--)ut.sounds[ut.soundIDs[t]].isHTML5&&ut.sounds[ut.soundIDs[t]]._hasTimer&&ut.sounds[ut.soundIDs[t]]._onTimer()},j=function(a){a=a!==e?a:{},"function"==typeof ut.onerror&&ut.onerror.apply(t,[{type:a.type!==e?a.type:null}]),a.fatal!==e&&a.fatal&&ut.disable()},it=function(){if(!Dt||!nt())return!1;var t,e,a=ut.audioFormats;for(e in a)if(a.hasOwnProperty(e)&&("mp3"===e||"mp4"===e)&&(ut.html5[e]=!1,a[e]&&a[e].related))for(t=a[e].related.length-1;0<=t;t--)ut.html5[a[e].related[t]]=!1},this._setSandboxType=function(t){},this._externalInterfaceOK=function(t){if(ut.swfLoaded)return!1;ut.swfLoaded=!0,Ht=!1,Dt&&it(),setTimeout(c,Et?100:1)},A=function(t,a){function n(t,e){return'<param name="'+t+'" value="'+e+'" />'}if(mt&>)return!1;if(ut.html5Only)return x(),ut.oMC=s(ut.movieID),c(),gt=mt=!0,!1;var i,r,o,l=a||ut.url,u=ut.altURL||l,d=S(),p=B(),h=null;h=(h=ft.getElementsByTagName("html")[0])&&h.dir&&h.dir.match(/rtl/i);if(t=t===e?ut.id:t,x(),ut.url=F(Ut?l:u),a=ut.url,ut.wmode=!ut.wmode&&ut.useHighPerformance?"transparent":ut.wmode,null!==ut.wmode&&(pt.match(/msie 8/i)||!Et&&!ut.useHighPerformance)&&navigator.platform.match(/win32|win64/i)&&(kt.push(P.spcWmode),ut.wmode=null),d={name:t,id:t,src:a,quality:"high",allowScriptAccess:ut.allowScriptAccess,bgcolor:ut.bgColor,pluginspage:Wt+"www.macromedia.com/go/getflashplayer",title:"JS/Flash audio component (SoundManager 2)",type:"application/x-shockwave-flash",wmode:ut.wmode,hasPriority:"true"},ut.debugFlash&&(d.FlashVars="debug=1"),ut.wmode||delete d.wmode,Et)l=ft.createElement("div"), 17r=['<object id="'+t+'" data="'+a+'" type="'+d.type+'" title="'+d.title+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s
17hockwave/cabs/flash/swflash.cab#version=6,0,40,0">',n("movie",a),n("AllowScriptAccess",ut.allowScriptAccess),n("quality",d.quality),ut.wmode?n("wmode",ut.wmode):"",n("bgcolor",ut.bgColor),n("hasPriority","true"),ut.debugFlash?n("FlashVars",d.FlashVars):"","</object>"].join("");else for(i in l=ft.createElement("embed"),d)d.hasOwnProperty(i)&&l.setAttribute(i,d[i]);if(p=B(),d=S())if(ut.oMC=s(ut.movieID)||ft.createElement("div"),ut.oMC.id)o=ut.oMC.className,ut.oMC.className=(o?o+" ":"movieContainer")+(p?" "+p:""),ut.oMC.appendChild(l),Et&&((i=ut.oMC.appendChild(ft.createElement("div"))).className="sm2-object-box",i.innerHTML=r),gt=!0;else{if(ut.oMC.id=ut.movieID,ut.oMC.className="movieContainer "+p,i=p=null,ut.useFlashBlock||(ut.useHighPerformance?p={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}:(p={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},h&&(p.left=Math.abs(parseInt(p.left,10))+"px"))),Ft&&(ut.oMC.style.zIndex=1e4),!ut.debugFlash)for(o in p)p.hasOwnProperty(o)&&(ut.oMC.style[o]=p[o]);try{Et||ut.oMC.appendChild(l),d.appendChild(ut.oMC),Et&&((i=ut.oMC.appendChild(ft.createElement("div"))).className="sm2-object-box",i.innerHTML=r),gt=!0}catch(t){throw Error(R("domError")+" \n"+t.toString())}}return mt=!0},M=function(){return ut.html5Only?(A(),!1):!(dt||!ut.url)&&((dt=ut.getMovie(ut.id))||(_t?(Et?ut.oMC.innerHTML=xt:ut.oMC.appendChild(_t),_t=null,mt=!0):A(ut.id,ut.url),dt=ut.getMovie(ut.id)),"function"==typeof ut.oninitmovie&&setTimeout(ut.oninitmovie,1),!0)},b=function(){setTimeout(w,1e3)},_=function(){t.setTimeout((function(){ut.setup({preferFlash:!1}).reboot(),ut.didFlashBlock=!0,ut.beginDelayedInit()}),1)},w=function(){var e,a=!1;return!(!ut.url||qt)&&(qt=!0,tt.remove(t,"load",b),!(at&&Ht&&!Nt)&&(vt||0<(e=ut.getMoviePercent())&&100>e&&(a=!0),void setTimeout((function(){if(e=ut.getMoviePercent(),a)return qt=!1,t.setTimeout(b,1),!1;!vt&&zt&&(null===e?ut.useFlashBlock||0===ut.flashLoadTimeout?ut.useFlashBlock&&I():!ut.useFlashBlock&&V?_():g({type:"ontimeout",ignoreInit:!0,error:{type:"INIT_FLASHBLOCK"}}):0!==ut.flashLoadTimeout&&(!ut.useFlashBlock&&V?_():E(!0)))}),ut.flashLoadTimeout)))},q=function(){return Nt||!Ht?(tt.remove(t,"focus",q),!0):(Nt=zt=!0,qt=!1,b(),tt.remove(t,"focus",q),!0)},p=function(e){if(vt)return!1;if(ut.html5Only)return vt=!0,v(),!0;var a,n=!0;return ut.useFlashBlock&&ut.flashLoadTimeout&&!ut.getMoviePercent()||(vt=!0),a={type:!at&&Tt?"NO_FLASH":"INIT_TIMEOUT"},(bt||e)&&(ut.useFlashBlock&&ut.oMC&&(ut.oMC.className=B()+" "+(null===ut.getMoviePercent()?"swf_timedout":"swf_error")),g({type:"ontimeout",error:a,ignoreInit:!0}),j(a),n=!1),bt||(ut.waitForWindowLoad&&!wt?tt.add(t,"load",v):v()),n},u=function(){var t,a=ut.setupOptions;for(t in a)a.hasOwnProperty(t)&&(ut[t]===e?ut[t]=a[t]:ut[t]!==a[t]&&(ut.setupOptions[t]=ut[t]))},c=function(){if(vt)return!1;if(ut.html5Only)return vt||(tt.remove(t,"load",ut.beginDelayedInit),ut.enabled=!0,p()),!0;M();try{dt._externalInterfaceTest(!1),C(!0,ut.flashPollingInterval||(ut.useHighPerformance?10:50)),ut.debugMode||dt._disableDebug(),ut.enabled=!0,ut.html5Only||tt.add(t,"unload",l)}catch(t){return j({type:"JS_TO_FLASH_EXCEPTION",fatal:!0}),E(!0),p(),!1}return p(),tt.remove(t,"load",ut.beginDelayedInit),!0},O=function(){return!T&&(T=!0,u(),!at&&ut.hasHTML5&&ut.setup({useHTML5Audio:!0,preferFlash:!1}),Z(),!at&&Tt&&(kt.push(P.needFlash),ut.setup({flashLoadTimeout:1})),ft.removeEventListener&&ft.removeEventListener("DOMContentLoaded",O,!1),M(),!0)},K=function(){return"complete"===ft.readyState&&(O(),ft.detachEvent("onreadystatechange",K)),!0},k=function(){wt=!0,O(),tt.remove(t,"load",k)},nt(),tt.add(t,"focus",q),tt.add(t,"load",b),tt.add(t,"load",k),ft.addEventListener?ft.addEventListener("DOMContentLoaded",O,!1):ft.attachEvent?ft.attachEvent("onreadystatechange",K):j({type:"NO_DOM2_EVENTS",fatal:!0})}if(!t||!t.document)throw Error("SoundManager requires a browser with window and document objects.");var n=null;t.SM2_DEFER!==e&&SM2_DEFER||(n=new a),"object"==typeof module&&module&&"object"==typeof module.exports?(module.exports.SoundManager=a,module.exports.soundManager=n):"function"==typeof define&&define.amd&&define((function(){return{constructor:a,getInstance:function(e){return!t.soundManager&&e instanceof Function&&((e=e(a))instanceof a&&(t.soundManager=e)),t.soundManager}}})),t.SoundManager=a,t.soundManager=n}(window),function(t){t.qtSMPO={sm:soundManager,playerCont:t("#qtmplayer"),soundId:"qtSoundId",init:function(){t.qtSMPO.playerCont.data("qtmplayer-smflash");var e=!(!t.qtWebApiPlayer||"function"!=typeof t.qtWebApiPlayer.usesIsolatedAudio||!t.qtWebApiPlayer.usesIsolatedAudio());return t.qtSMPO.sm.setup({useHighPerformance:!0,usePeakData:!0,forceUseGlobalHTML5Audio:!e,bufferTime:9e4,useHTML5Audio:!0}),!0},smPause:function(){t.qtSMPO.sm.pause(t.qtSMPO.soundId),t.qtWebApiPlayer&&"function"==typeof t.qtWebApiPlayer.pause&&t.qtWebApiPlayer.pause()},secondsTimeSpanToHMS:function(t){var e=Math.floor(t/3600);t-=3600*e;var a=Math.floor(t/60);return t-=60*a,e>=1?e+":"+(a<10?"0"+a:a)+":"+(t<10?"0"+t:t):(a<10?"0"+a:a)+":"+(t<10?"0"+t:t)},smStop:function(){t.qtSMPO;var e=t.qtSMPO.sm,a=t.qtSMPO.soundId,n=t.qtPlayerObj.interface,i=e.sound;
17t.qtWebApiPlayer&&"function"==typeof t.qtWebApiPlayer.sourceWillChange&&t.qtWebApiPlayer.sourceWillChange(),i&&t.qtWebApiPlayer&&"function"==typeof t.qtWebApiPlayer.releaseSound&&t.qtWebApiPlayer.releaseSound(i),e.stop(a),e.destroySound(a),e.nowplaying=!1,n.timeupdate("00:00","00:00")},smPlay:function(){var e,a,n,i,r,o,s,l=t.qtSMPO,u=t.qtSMPO.sm,c=t.qtSMPO.soundId,d=t.qtPlayerObj,p=d.interface,h=t.qtWebApiPlayer,f=!(!h||"function"!=typeof h.usesIsolatedAudio||!h.usesIsolatedAudio()),y=f&&"function"==typeof h.getSourcePlan?h.getSourcePlan(d.songdata.file,!1):{visualize:!1,crossOrigin:!1};if(u.nowplaying===d.songdata.file)u.play(c);else if(e=u.sound,h&&"function"==typeof h.sourceWillChange&&h.sourceWillChange(),e&&h&&"function"==typeof h.releaseSound&&h.releaseSound(e),u.destroySound(c),u.nowplaying=d.songdata.file,a={id:c,url:d.songdata.file,autoLoad:!f,autoPlay:!f,volume:90,onload:function(){},onplay:function(){y.visualize&&h&&"function"==typeof h.attach&&h.attach(this,a.url)},onresume:function(){y.visualize&&h&&"function"==typeof h.attach&&h.attach(this,a.url)},whileplaying:function(){i=u.sound.duration,r=u.sound.position,o=r/i,s=l.secondsTimeSpanToHMS(Math.round(u.sound.position/1e3)),i=l.secondsTimeSpanToHMS(Math.round(u.sound.duration/1e3)),p.timeupdate(o,s),t.qtRaphaelCircle.update(o),t.qtMplayerPlaylistCue.update(100*o)},onbufferchange:function(){if(u.sound.isBuffering)p.bufferStart();else{var e=l.secondsTimeSpanToHMS(Math.round(u.sound.duration/1e3));p.setDuration(e),p.bufferEnd(),n=u.sound.bytesLoaded/u.sound.bytesTotal,isNaN(n)?t.qtPlayerObj.interface.progressUpdate(0):t.qtPlayerObj.interface.progressUpdate(n)}},whileloading:function(){var e;0===(e=u.sound.bytesLoaded/u.sound.bytesTotal)&&(e=.1),t.qtPlayerObj.interface.progressUpdate(e)},onPosition:function(){},onfinish:function(){p.next()}},f)try{if(u.sound=u.createSound(a),!u.sound)throw new Error("Unable to create SoundManager sound");u.sound._a&&(y.crossOrigin?(u.sound._a.crossOrigin="anonymous",u.sound._a.setAttribute("crossorigin","anonymous")):u.sound._a.removeAttribute("crossorigin")),u.sound.load({url:d.songdata.file,autoLoad:!0,autoPlay:!1}),u.sound.play()}catch(t){h&&"function"==typeof h.markUnsupported&&h.markUnsupported(d.songdata.file);try{u.destroySound(c),y.visualize=!1,a.autoLoad=!0,a.autoPlay=!0,u.sound=u.createSound(a)}catch(t){}}else u.sound=u.createSound(a)},smSeek:function(e){if(void 0!==t.qtSMPO.sm.sound){var a,n=t.qtSMPO.sm.sound.duration*e/100,i=Math.round(t.qtSMPO.sm.sound.duration)/1e3/100*e,r=Math.floor(i/3600);i-=3600*r;var o=Math.floor(i/60);i-=60*o,a=(i=Math.round(i))>3600?r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i):(o<10?"0"+o:o)+":"+(i<10?"0"+i:i),t.qtPlayerObj.interface.timeupdate(e/100,a),t.qtSMPO.sm.setPosition(t.qtSMPO.soundId,n)}},smSeekTime:function(e){var a=e.split(":"),n=1e3*(parseInt(3600*a[0])+parseInt(60*a[1])+parseInt(a[2])),i=n/t.qtSMPO.sm.sound.duration*100;t.qtPlayerObj.interface.timeupdate(i,e),t.qtSMPO.sm.setPosition(t.qtSMPO.soundId,n)}}}(jQuery),function(t){"use strict";t.qtmplayerRadioFeedObj={body:t("body"),window:t(window),document:t(document),htmlAndbody:t("html,body"),qtFeedData:{},timeInterval:15e3,fn:{cachedThumbsArray:[],updateMediaData(){"mediaSession"in navigator&&(t.qtMplayerGlobalSongData.thumbnail&&!1!==t.qtMplayerGlobalSongData.thumbnail?navigator.mediaSession.metadata=new MediaMetadata({title:t.qtMplayerGlobalSongData.title,artist:t.qtMplayerGlobalSongData.artist,artwork:[{src:t.qtMplayerGlobalSongData.thumbnail,type:"image/jpeg"}]}):navigator.mediaSession.metadata=new MediaMetadata({title:t.qtMplayerGlobalSongData.title,artist:t.qtMplayerGlobalSongData.artist}))},getThumbnailOriginal:function(e,a,n){var i,r,o=a.split("\x3c!--");return o.length>1&&(a=o[0]),a=a.split(" - ").join("-").split(" ").join("+"),"https://itunes.apple.com/search?media=music&entity=album&attribute=albumTerm&limit=25&term="+encodeURIComponent(a),r="https://itunes.apple.com/search?limit=4&media=music&term="+a,"Song title unavailable"==a||"No Titles Available"==a?(i=t.qtmplayerRadioFeedObj.qtFeedData.cover,e.cachedThumbsArray[a]=i,t.qtMplayerGlobalSongData.thumbnail=i,void n(i)):void 0!==e.cachedThumbsArray[a]?(t.qtMplayerGlobalSongData.thumbnail=e.cac
17hedThumbsArray[a],void n(e.cachedThumbsArray[a])):(t.qtmplayerRadioFeedObj.qtFeedData.artwork?(a=a.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),n(t.qtmplayerRadioFeedObj.qtFeedData.artwork+"?song="+a)):t.ajax({type:"GET",cache:!0,url:r,async:!0,dataType:"jsonp",context:this,success:function(r){if("object"!=typeof r&&(r=JSON.parse(r)),r.resultCount>0)return i=r.results[0].artworkUrl100.split("100x100bb.jpg").join("1000x1000bb.jpg"),e.cachedThumbsArray[a]=i,t.qtMplayerGlobalSongData.thumbnail=i,void n(i)}}),void t.qtmplayerRadioFeedObj.fn.updateMediaData())},getThumbnail:function(e,a,n){var i=a.split("\x3c!--");i.length>1&&(a=i[0]);var r=a.split(" - ").join("-").split(" ").join("+");if("Song title unavailable"===a||"No Titles Available"===a){var o=t.qtmplayerRadioFeedObj.qtFeedData.cover||!1;return e.cachedThumbsArray[r]=o,o&&(t.qtMplayerGlobalSongData.thumbnail=o),void n(o)}if(void 0!==e.cachedThumbsArray[r]){var s=e.cachedThumbsArray[r];return s&&(t.qtMplayerGlobalSongData.thumbnail=s),void n(s||!1)}if(t.qtmplayerRadioFeedObj.qtFeedData.artwork){var l=a.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),u=t.qtmplayerRadioFeedObj.qtFeedData.artwork+"?song="+encodeURIComponent(l);return e.cachedThumbsArray[r]=u,t.qtMplayerGlobalSongData.thumbnail=u,void n(u)}var c=navigator.userAgent||navigator.vendor||window.opera,d=/iPad|iPhone|iPod/.test(c)&&!window.MSStream,p=encodeURIComponent(a.toLowerCase().trim().replace(/\s*-\s*/g,"-").replace(/\s+/g," ")),h=d?"https://itunes.apple.com/search?limit=20&entity=musicTrack&term="+p:"https://itunes.apple.com/search?limit=4&media=music&term="+p,f=function(t){if(!t)return!1;return-1===["feature-movie","ebook","podcast","tv-episode","software"].indexOf(t.kind)&&("song"===t.kind||"collection"===t.wrapperType&&("Album"===t.collectionType||"Compilation"===t.collectionType))},y=function(a){e.cachedThumbsArray[r]=a||!1,a&&(t.qtMplayerGlobalSongData.thumbnail=a),n(a||!1)},m=function(e,a){if("object"!=typeof e)try{e=JSON.parse(e)}catch(t){e={results:[]}}var n=function(t){var e=(t||[]).filter(f).sort((function(t,e){var a=function(t){return"song"===t.kind?1:"collection"===t.wrapperType?2:9};return a(t)-a(e)}));if(!e.length)return null;var a=e[0],n=(a.artworkUrl100||a.artworkUrl60||a.artworkUrl30||"").toString();return n?n.replace("100x100bb.jpg","1000x1000bb.jpg"):null}(e.results);n?y(n):!d||a?y(t.qtmplayerRadioFeedObj.qtFeedData.cover||!1):t.ajax({type:"GET",cache:!0,url:"https://itunes.apple.com/search?limit=20&entity=album&term="+p,async:!0,dataType:"jsonp",success:function(t){m(t,!0)},error:function(){y(t.qtmplayerRadioFeedObj.qtFeedData.cover||!1)}})};t.ajax({type:"GET",cache:!0,url:h,async:!0,dataType:"jsonp",success:function(t){m(t,!1)},error:function(){y(t.qtmplayerRadioFeedObj.qtFeedData.cover||!1)}}),t.qtmplayerRadioFeedObj.fn.updateMediaData()},marqueeInstances:[],marqueeText:function(e){if("function"==typeof t.fn.marquee){var a=t("body").find(".proradio-marquee");if(e.marqueeInstances.length>0){for(var n=0;n<e.marqueeInstances.length;n++)void 0!==e.marqueeInstances[n]&&e.marqueeInstances[n].marquee("destroy");e.marqueeInstances=[]}t.each(a,(function(a,n){var i=t(n);0===i.find(".marquee").length&&i.html('<span class="marquee">'+i.html()+"</span>");var r=i.find(".marquee").first();r.css({display:"inline-block",width:"auto",whiteSpace:"nowrap"});var o=i.innerWidth();r[0].getBoundingClientRect().width<=o+1||(e.marqueeInstances[a]=i.marquee({duration:2e4,gap:150,delayBeforeStart:0,direction:"left",duplicated:!0,pauseOnCycle:0,startVisible:!0}))}))}},qtApplyListeners:function(e,a){if((t.qtmplayerRadioFeedObj.qtFeedData.listeners||t.qtmplayerRadioFeedObj.qtFeedData.listenerspeak)&&(e||a))return t(".qtmplayer__stats").addClass("show"),e&&t.qtmplayerRadioFeedObj.qtFeedData.listeners?(t(".qtmplayer-listeners span").html(e),t(".qtmplayer-listeners").show()):t(".qtmplayer-listeners").hide(),a&&t.qtmplayerRadioFeedObj.qtFeedData.listenerspeak?(t(".qtmplayer-listener_peak span").html(a),t(".qtmplayer-listener_peak").show()):t(".qtmplayer-listener_peak").hide(),!0;t(".qtmplayer__stats").removeClass("show"),t(".qtmplayer-listeners span").html(""),t(".qtmplayer-listener_peak span").html("")},qtApplyTitle:function(e,a){if(e&&""!==e){var n=">>>>> qtApplyTitle : "+e;t.qtmplayerRadioFeedObj.fn.log(n);var i,r,o=e.match(/^\s*(.*?)\s+[-ââ]\s+(.+?)\s*$/);o?(i=o[1],r=o[2]):(i="",r=e);var s=i.split("[");s.length>1&&(i=s[0]),(s=i.split(" : ")).length>1&&(i=s[1]);var l=r.split("[");l.length>1&&(r=l[0]),r=t.trim(r),i=t.trim(i),t(".qtmplayer-feed").show();var u=r,c=i,d=t.qtmplayerRadioFeedObj&&t.qtmplayerRadioFeedObj.qtFeedData;d&&"1"===String(d.revt)&&(u=i,c=r),d&&"1"===String(d.nobreak)&&(u=u+" - "+c,c=""),d&&"1"===String(d.radiotitle)&&d.title&&(u=d.title+" | "+u),t(".qtmplayer__title").html(u),t(".qtmplayer__artist").html(c),this.marqueeText(this);var p=i+"-"+r;if(a&&this.getThumbnail(this,p,a),window.screen.width<670){var h=navigator.userAgent||navigator.vendor||window.opera;/Googlebot/i.test(h)||/Bing/i.test(h)||/Yandex/i.test(h)||/Apple Bot/i.test(h)||/DuckDuck Bot/i.test(h)||jQuery(document).prop("title",i+" - "+r)}t.qtMplayerGlobalSongData.title=r,t.qtMplayerGlobalSongData.artist=i,t.qtmplayerRadioFeedObj.fn.updateMediaData()}else t(".qtmplayer-feed").hide()},newFeedReading:function(){t.qtmplayerRadioFeedObj.fn.log("newFeedReading = REITERATE - "+t.now());var e,a=t.qtmplayerRadioFeedObj,n=a.qtFeedData,i=n.callBack,r=a.fn,o=void 0!==n.host?n.host:"",s=void 0!==n.port?n.port:"",l=void 0!==n.protocol?n.protocol:"http",u=void 0!==n.channel?n.channel:"",c=void 0!==n.icecasturl?n.icecasturl:"",d=void 0!==n.icecastmountpoint?n.icecastmountpoint:"",p=void 0!==n.icecastchannel?n.icecastchannel:"",h=void 0!==n.radiodotco?n.radiodotco:"",f=void 0!==n.airtime?n.airtime:"",y=void 0!==n.radionomy?n.radionomy:"",m=void 0!==n.textfeed?n.textfeed:"",g=void 0!==n.useproxy?n.useproxy:"",v=void 0!==n.live365?n.live365:"",b=void 0!==n.radioking?n.radioking:"",w=void 0!==n.azuracast?n.azuracast:"",_=void 0!==n.securesystems?n.securesystems:"",x=void 0!==n.radiojar?n.radiojar:"",q=void 0!==n.radioboss?n.radioboss:"",P=void 0!==n.maxcast?n.maxcast:"",M=void 0!==n.sonicpanel?n.sonicpanel:"",O=void 0!==n.sonicpaneldj?n.sonicpaneldj:"",k=void 0!==n.jazler?n.jazler:"",T=void 0!==n.everestcast?n.everestcast:"",S=void 0!==n.streamerr?n.streamerr:"",A=void 0!==n.streamguys_api?n.streamguys_api:"",j=void 0!==n.streamguys_uuid?n.streamguys_uuid:"",C=void 0!==n.radiocult?n.radiocult:"",L=void 0!==n.broadcastradio?n.broadcastradio:"",E=void 0!==n.radiolize?n.radiolize:"",F=void 0!==n.stationplaylist?n.stationplaylist:"",R=void 0!==n.yesstreaming?n.yesstreaming:"",I=void 0!==n.schedulefilter?n.schedulefilter:"";t("#qtFeedPlayerTrack"),t("#qtFeedPlayerAuthor"),t("#qtPlayerTrackInfo");a=t.qtmplayerRadioFeedObj;var B=t("#qtmplayer-radiofeed-proxyurl").data("proxyurl"),D=(new Date).getUTCMilliseconds(),N=!1,H=!1;if("type-radioshow"==n.servertype){var z=B+"?proradio-currentshow=1";
17I&&(z=z+"&filterquery="+I),t.ajax({type:"GET",cache:!1,url:z,async:!0,success:function(e){if("object"!=typeof e&&(e=JSON.parse(e)),e.title&&(e.subtitle2&&(e.title=e.subtitle2+" - "+e.title),r.qtApplyTitle(e.title)),e.image){var a=e.image;if(e.title){var n=e.title.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"");a+="?title="+encodeURIComponent(n)}t.qtMplayerGlobalSongData.thumbnail=a,"function"==typeof i&&i(a)}!e.image&&e.thumb&&(t.qtMplayerGlobalSongData.thumbnail=e.thumb,"function"==typeof i&&i(e.thumb))},error:function(t){console.log(t)}})}if("type-yesstreaming"==n.servertype&&R)return g&&(R=B+"?qtproxycall="+window.btoa(R)),void t.ajax({type:"GET",cache:!1,url:R,async:!0,jsonp:"callback",success:function(t){if("object"!=typeof t)try{t=JSON.parse(t)}catch(t){return void console.log("Invalid JSON from Radiolize")}t.results[0];var e=t.results[0].metadata;void 0!==t.results[0].img_url&&t.results[0].img_url&&"function"==typeof i&&(console.log(t.results[0].img_url),i(t.results[0].img_url),i=!1),e?r.qtApplyTitle(e,i):(console.log(R),console.log("Yesstreaming title not available"),r.qtApplyTitle("Title not available",i))},error:function(t){console.log(R),console.log("Yesstreaming feed not loaded - error ahead:"),console.log(t)}});if("type-stationplaylist"==n.servertype&&F)return g&&(F=B+"?qtproxycall="+window.btoa(F)),void t.ajax({type:"GET",url:F,dataType:"xml",async:!0,cache:!1,success:function(e){r.log(e),t(e).find("Current").each((function(){r.log(t(this));var e=t(this),a=e.find("Title").html(),n=e.find("Artist").html(),o=e.find("Image");o&&""!=(o=o.html())&&(i(o),i=!1),r.qtApplyTitle(a+" - "+n,i)}))},error:function(t){console.log("stationplaylist source unreachable - please check your channel settings"),console.log(t)}});if("type-radiolize"==n.servertype&&E)return g&&(E=B+"?qtproxycall="+window.btoa(E)),void t.ajax({type:"GET",url:E,cache:!1,async:!0,dataType:"json",success:function(e){if("object"!=typeof e)try{e=JSON.parse(e)}catch(t){return void console.log("Invalid JSON from Radiolize")}if(e.now_playing&&e.now_playing.song&&e.now_playing.song.text){var a=e.now_playing.song.text;if(void 0!==e.now_playing.song.art&&e.now_playing.song.art&&"function"==typeof i){var n=e.now_playing.song.art;t.qtMplayerGlobalSongData.thumbnail=n,i(n),i=!1}r.qtApplyTitle(a,i)}else r.log("Missing data for Radiolize song title")},error:function(t){console.log("Broadcast.Radio feed not loaded - error ahead:"),console.log(t)}});if("type-broadcastradio"==n.servertype&&L)return g&&(L=B+"?qtproxycall="+window.btoa(L)),void t.ajax({type:"GET",cache:!1,url:L,async:!0,jsonp:!0,success:function(e){if("object"!=typeof e&&(e=JSON.parse(e)),e.success){if(Q=e.body.now_playing.title,e.body.now_playing.artist&&(Q=Q+" - "+e.body.now_playing.artist),void 0!==e.body.now_playing.artworkUrl&&e.body.now_playing.artworkUrl&&"function"==typeof i&&void 0!==e.body.now_playing.artworkUrl&&e.body.now_playing.artworkUrl){var a=e.body.now_playing.artworkUrl;t.qtMplayerGlobalSongData.thumbnail=a,i(a),i=!1}r.qtApplyTitle(Q,i)}else r.log("Missing data for Broadcast.Radio song title")},error:function(t){console.log("Broadcast.Radio feed not loaded - error ahead:"),console.log(t)}});if("type-radiocult"==n.servertype&&C)return C=B+"?qtproxycall="+window.btoa(C),void t.ajax({type:"GET",cache:!1,url:C,async:!0,jsonp:!0,success:function(e){if("object"!=typeof e&&(e=JSON.parse(e)),e.result.metadata){if(Q=e.result.metadata.title,e.result.metadata.artist&&(Q=Q+" - "+e.result.metadata.artist),void 0!==e.result.metadata.artwork&&e.result.metadata.artwork&&"function"==typeof i&&void 0!==e.result.metadata.artwork.original&&e.result.metadata.artwork.original){var a=e.result.metadata.artwork.original;t.qtMplayerGlobalSongData.thumbnail=a,i(a),i=!1}r.qtApplyTitle(Q,i)}else r.log("Missing data for Radiocult song title")},error:function(t){console.log("Streamguys feed not loaded - error ahead:"),console.log(t)}});if("type-streamguys"==n.servertype&&A&&j){var G="https://jetapi.streamguys.com/"+A+"/scraper/"+j+"/metadata/raw/";return g&&(G=B+"?qtproxycall="+window.btoa(G)),void t.ajax({type:"GET",cac
17he:!1,url:G,async:!0,jsonp:!0,success:function(t){if('{"error":"API Key not found."}'!=t){var e=t.match(/StreamTitle='(.*?)'/),a=e?e[1]:"";r.qtApplyTitle(a,i)}},error:function(t){console.log("Streamguys feed not loaded - error ahead:"),console.log(t)}})}if("type-everestcast"==n.servertype)return r.log(T),g&&(T=B+"?qtproxycall="+window.btoa(T)),void t.ajax({type:"GET",cache:!1,url:T,async:!0,jsonp:!0,success:function(e){"object"!=typeof e&&(e=JSON.parse(e)),e.current_track.title?(Q=e.current_track.title,e.current_track.image&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=e.current_track.image,i(e.current_track.image),i=!1),r.qtApplyTitle(Q,i)):r.log("Missing data for Everestcast song title")},error:function(t){console.log("EverestCast feed not loaded - error ahead:"),console.log(t)}});if("type-mediacp"==n.servertype)return r.log(qtmediacp),g&&(qtmediacp=B+"?qtproxycall="+window.btoa(qtmediacp)),void t.ajax({type:"GET",cache:!1,url:qtmediacp,async:!0,jsonp:!0,success:function(e){"object"!=typeof e&&(e=JSON.parse(e)),r.log(e),Q=e.nowplaying,e.coverart&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=e.coverart,i(e.coverart),i=!1),r.qtApplyTitle(Q,i)},error:function(t){console.log("MediaCP feed not loaded - error ahead:"),console.log(t)}});if("type-streamerr"==n.servertype)return r.log(S),g&&(S=B+"?qtproxycall="+window.btoa(S)),void t.ajax({type:"GET",cache:!1,url:S,async:!0,jsonp:!0,success:function(e){"object"!=typeof e&&(e=JSON.parse(e)),r.log(e),Q=e.nowplaying,e.coverart&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=e.coverart,i(e.coverart),i=!1),r.qtApplyTitle(Q,i)},error:function(t){console.log("Streamerr not working - error ahead:"),console.log(t)}});if("type-sonicpanel"==n.servertype&&""!==M&&(M=M.indexOf("?")>-1?M+"&rand="+D:M+"?rand="+D,g&&(M=B+"?qtproxycall="+window.btoa(M)),t.ajax({type:"GET",cache:!1,url:M,async:!0,success:function(e){"object"!=typeof e&&(e=JSON.parse(e));var a="Now live - Streaming";e.title&&(a=e.title,e.artist&&(a=e.artist+" - "+e.title)),e.art&&"function"==typeof i&&(e.title&&(e.art=e.art+"?title="+e.title.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")),t.qtMplayerGlobalSongData.thumbnail=e.art,i(e.art),i=!1),e.thumb&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=e.thumb+"#.jpg",i(e.thumb+"#.jpg"),i=!1),"1"==O&&"No DJ"!==e.djusername&&(a=e.title.split(" - ").join(" / ")+" - "+e.djusername),e.listn&&(H=e.listn),e.peaklistn&&(N=e.peaklistn),r.qtApplyListeners(H,N),r.qtApplyTitle(a,i)},error:function(t){console.log(t)}})),"type-jazler"==n.servertype){var U=k.split("NowOnAir.xml").join("AlbumsCache/");return g&&(k=B+"?qtproxycall="+window.btoa(k)),r.log("=============================================================="),r.log(k),void t.ajax({type:"GET",url:k,dataType:"xml",async:!0,cache:!1,success:function(e){r.log(e),t(e).find("Event").each((function(){r.log(t(this));var e=t(this).find("CacheImageFile").html();t(this).find("Announcement").each((function(){var a=t(this).attr("Display");r.log(a),e&&"function"==typeof i&&(r.log(U+e),t.qtMplayerGlobalSongData.thumbnail=U+e,i(U+e),i=!1),r.qtApplyTitle(a,i)}))}))},error:function(t){console.log("Jazler source unreachable - please check your channel settings"),console.log(t)}})}if("type-lautfm"!=n.servertype){if("type-icy"===n.servertype){if(t("body").hasClass("customize-partial-edit-shortcuts-shown"))return void r.qtApplyTitle("Titles unavailable while customizing global options");r.log("type-icy"),r.log(B+"?qtproxycall="+window.btoa(n.file)+"&icymetadata=1"),t.ajax({type:"GET",url:B,jsonpCallback:"parseMusic",async:!0,cache:!1,data:{qtproxycall:window.btoa(n.file),icymetadata:"1"},success:function(e){if("Song title unavailable"===e||"Cannot open the stream"===e)return r.log("ERROR OPENING THE STREAM OR GETTING THE TITLES: "+e),r.qtApplyTitle(t.qtmplayerRadioFeedObj.qtFeedData.title,!1),void i(t.qtmplayerRadioFeedObj.qtFeedData.cover);r.qtApplyTitle(e,i),r.log(e)},error:function(t){console.log("Error"),r.log(t),console.log(t)}})}if("type-auto"!=n.servertype){if("type-maxcast"==n.servertype)return r.log("Maxcast "+P),P=P+"?rand="+D,g&&(P=B+"?qtproxycall="+window.btoa(P)),void t.ajax({type:"GET",cac
17he:!1,url:P,async:!0,jsonpCallback:"parseMusic",jsonp:!1,data:X,success:function(e){"object"!=typeof e&&(e=JSON.parse(e)),e.playing&&(Q=e.playing.current),e.song_data&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=e.song_data.cover,i(e.song_data.cover),i=!1),r.qtApplyTitle(Q,i)},error:function(t){console.log(t)}});if(""!==q||""!==_||""!==x||""!==b||""!==w||""!==m||""!==y||""!==v||""!==f||""!==o&&""!==s&&void 0!==o||""!==c||""!==h){if(""!==q)return q=q,r.log(q),g&&(q=B+"?qtproxycall="+window.btoa(q)),void t.ajax({type:"GET",cache:!1,url:q,async:!0,success:function(t){"object"!=typeof t&&(t=JSON.parse(t)),Q=t.nowplaying,r.qtApplyTitle(Q,i)},error:function(t){console.log(t)}});if(""!==x&&(x=x.indexOf("?")>-1?x+"&rand="+D:x+"?rand="+D,g&&(x=B+"?qtproxycall="+window.btoa(x)),t.ajax({type:"GET",cache:!1,url:x,async:!0,success:function(e){"object"!=typeof e&&(e=JSON.parse(e));var a="Now live - Streaming";e.title&&(a=e.title,e.artist&&(a=e.artist+" - "+e.title)),e.art&&"function"==typeof i&&(e.title&&(e.art=e.art+"?title="+e.title.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")),t.qtMplayerGlobalSongData.thumbnail=e.art,i(e.art),i=!1),e.thumb&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=e.thumb+"#.jpg",i(e.thumb+"#.jpg"),i=!1),r.qtApplyTitle(a,i)},error:function(t){console.log(t)}})),""!==_)return _=_,g&&(_=B+"?qtproxycall="+window.btoa(_)),void t.ajax({type:"GET",cache:!1,url:_,async:!0,dataType:"xml",success:function(e){t(e).find("cover").length>0&&""!==t(e).find("cover").html()&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=t(e).find("cover").html(),i(t(e).find("cover").html()),i=!1);var a=t(e).find("title").html();void 0!==a&&"undefined"!=a||(a=t(e).find("name").html()),r.qtApplyTitle(t(e).find("artist").html()+" - "+a,i)},error:function(t){console.log(t)}});if(""!==v)v="https://api.live365.com/station/"+v,g&&(v=B+"?qtproxycall="+window.btoa(v)),t.ajax({type:"GET",cache:!1,url:v,async:!0,jsonpCallback:"parseMusic",jsonp:!1,success:function(e){if(e,"object"!=typeof e&&(e=JSON.parse(e)),e["current-track"].art){var a=e["current-track"].art;""!=a&&(t.qtMplayerGlobalSongData.thumbnail=a,i(a),i=!1)}r.qtApplyTitle(e["current-track"].artist+" - "+e["current-track"].title,i)},error:function(t){console.log(t)}});else{var W,V;if(""!==m)return g?(W=t("#qtmplayer-radiofeed-proxyurl").data("proxyurl"),V={qtproxycall:window.btoa(m)}):W=m,void t.ajax({type:"GET",cache:!1,url:W,async:!0,data:V,dataType:"html",success:function(t){r.qtApplyTitle(t,i)},error:function(t){console.log(t)}});if(""!==y)t.ajax({type:"GET",url:y,async:!0,cache:!1,dataType:"xml",success:function(e){r.qtApplyTitle(t(e).find("artists").html()+" - "+t(e).find("title").html())},error:function(t){console.log(t)}});else if(""!==f&&"undefined"!==f&&void 0!==f&&void 0!==f){t.ajax({type:"GET",cache:!1,url:f,async:!0,data:{qtproxycall:window.btoa(f)},jsonpCallback:"parseMusic",jsonp:!0,success:function(t){"object"!=typeof t&&(t=JSON.parse(t)),Q=t.tracks.current.name,r.qtApplyTitle(Q)},error:function(t){}})}else if(""!==c&&void 0!==c){var Y,Q,X,J=c;H=!1,N=!1;g&&(J=B,X={qtproxycall:window.btoa(c)}),r.log("Radio feed - Icecast "+c),t.ajax({type:"GET",cache:!1,url:J,async:!0,jsonpCallback:"parseMusic",jsonp:!1,data:X,success:function(e){r.log("Ajax response"),r.log(e),"object"!=typeof e&&(e=JSON.parse(e)),void 0===e.icestats?d?Y=e[d]:t.each(e,(function(t,e){Y=e,0==t&&(Y=e)})):Y=e.icestats.source,void 0!==Y&&(d&&(Y=Y[d]),p&&(Y=Y[p]),p||void 0!==Y.title||(Y=Y[0]),Q=Y.title,Y.artist&&(Q=Q+" - "+Y.artist),r.qtApplyTitle(Q,i),Y.listeners&&(H=Y.listeners),Y.listener_peak&&(N=Y.listener_peak),r.qtApplyListeners(H,N))},error:function(t){console.log(t),r.log("Ajax response"),r.log(t)}})}else{if(""!==o&&""!==s&&void 0!==o){var $={shoutcast_host:o,shoutcast_port:s,shoutcast_protocol:l,shoutcast_channel:u},K=$.shoutcast_channel||1,Z="http";"443"!==$.shoutcast_port&&"https"!==$.shoutcast_protocol||(Z="https");var tt=Z+"://"+$.shoutcast_host+":"+$.shoutcast_port+"/stats?sid="+K+"&json=1";J=tt;g&&(J=B,X={qtproxycall:window.btoa(tt)});
17try{t.ajax({type:"GET",cache:!1,url:J,async:!0,data:X,dataType:t.qtmplayerRadioFeedObj.qtFeedData.dataType,contentType:"application/json",success:function(t){"object"!=typeof t&&(t=JSON.parse(t)),r.qtApplyTitle(t.songtitle,i),t.currentlisteners&&(H=t.currentlisteners),t.peaklisteners&&(N=t.peaklisteners),r.qtApplyListeners(H,N)},error:function(e){"jsonp"!==t.qtmplayerRadioFeedObj.qtFeedData.dataType&&(t.qtmplayerRadioFeedObj.qtFeedData.dataType="jsonp",t.qtmplayerRadioFeedObj.fn.newFeedReading())}})}catch(t){dataType="jsonp",console.log(t)}return}if(""!==h&&void 0!==h){var et="https://public.radio.co/stations/"+h+"/status";t.ajax({type:"GET",cache:!1,url:et,async:!0,contentType:"application/json",success:function(e){if(e.current_track){if(Q=e.current_track.title,r.log("Radio.co artwork: "+e.current_track.artwork_url_large),e.current_track.artwork_url_large&&"function"==typeof i){var a=e.current_track.artwork_url_large;""!==a&&(t.qtMplayerGlobalSongData.thumbnail=a,i(a),i=!1)}}else Q="Song title currently unavailable - Please check your radio settings";r.qtApplyTitle(Q,i)},error:function(t){}})}else if("type-radioking"==n.servertype&&""!==b){et="https://api.radioking.io/widget/radio/"+b+"/track/current";t.ajax({type:"GET",cache:!1,url:et,async:!0,contentType:"application/json",success:function(e){Q=e.artist+" - "+e.title,e.cover&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=e.cover,i(e.cover),i=!1),r.qtApplyTitle(Q,i)},error:function(t){console.log(t)}})}else if("type-azuracast"==n.servertype&&""!==w){et="",J=w+"?rand="+D;g&&(J=B+"?qtproxycall="+window.btoa(w)),t.ajax({type:"GET",cache:!1,url:J,async:!0,contentType:"application/json",success:function(a){"string"==typeof a&&(a=jQuery.parseJSON(a)),void 0===a.now_playing&&(a=a[0]),e=a.now_playing.song.artist,Q=a.now_playing.song.title,""!==e&&(Q=e+" - "+Q),a.now_playing.song.cover&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=a.now_playing.song.cover,i(a.now_playing.song.cover),i=!1),a.now_playing.song.art&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=a.now_playing.song.art,i(a.now_playing.song.art),i=!1),a.cover&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=a.cover,i(a.cover),i=!1),a.art&&"function"==typeof i&&(t.qtMplayerGlobalSongData.thumbnail=a.art,i(a.art),i=!1),a.listeners&&(a.listeners.current&&(H=a.listeners.current),a.listeners.total&&(N=a.listeners.total),r.qtApplyListeners(H,N)),r.qtApplyTitle(Q,i)},error:function(t){console.log(t)}})}}}}else r.qtApplyTitle()}else if(-1!=n.file.indexOf("/proxy/")&&-1!=n.file.indexOf("https")&&-1!=n.file.indexOf("?mp=/"))r.log("type-auto TYPE 1 - GET MOUNTPOINT"),o=(o=n.file.split("?mp=/"))[0]+"?mp=/stats&rand="+D,g&&(o=B+"?qtproxycall="+window.btoa(o)),t.ajax({type:"GET",url:o,async:!0,cache:!1,dataType:"xml",success:function(e){r.qtApplyTitle(t(e).find("SONGTITLE").html(),i),t(e).find("CURRENTLISTENERS")&&(H=t(e).find("CURRENTLISTENERS").html()), 18t(e).find("PEAKLISTENERS")&&(N=t(e).find("PEAKLISTENERS").html()),r.qtApplyListeners(H,N)},error:function(t){r.log(t),console.log(t)}});else if(-1==n.file.indexOf("/proxy/")&&-1!=n.file.indexOf("https")&&n.file.endsWith("/stream")&&-1==n.file.indexOf("/mp3"))r.log("type-auto TYPE 2 - XML:"+n.file.endsWith("/stream")+"? ----\x3e "+n.file),o=n.file.replace(/\/stream$/,"/stats","$1"),r.log('Stats link: <a href="'+o+'">'+o+"</a>"),g&&(o=B+"?qtproxycall="+window.btoa(o)),r.log('Proxy stats link: <a href="'+o+'">'+o+"</a>"),t.ajax({type:"GET",url:o,async:!0,success:function(e){if("Song title unavailable"===e)return r.qtApplyTitle(t.qtmplayerRadioFeedObj.qtFeedData.title,!1),void i(t.qtmplayerRadioFeedObj.qtFeedData.cover);r.qtApplyTitle(t(e).find("SONGTITLE").html(),i),t(e).find("CURRENTLISTENERS")&&(H=t(e).find("CURRENTLISTENERS").html()),t(e).find("PEAKLISTENERS")&&(N=t(e).find("PEAKLISTENERS").html()),r.qtApplyListeners(H,N)},error:function(t){r.log(t),console.log(t)}});else{if(r.log("type-auto TYPE 3 ICY METADATA"),t("body").hasClass("customize-partial-edit-shortcuts-shown"))return void r.qtApplyTitle("Titles unavailable while customizing global options");r.log(B+"?qtproxycall="+window.btoa(n.file)+"&icymetadata=1"),t.ajax({type:"GET",url:B,jsonpCallback:"parseMusic",async:!0,cache:!1,data:{qtproxycall:window.btoa(n.file),icymetadata:"1"},success:function(e){if("Song title unavailable"===e)return r.qtApplyTitle(t.qtmplayerRadioFeedObj.qtFeedData.title,!1),void i(t.qtmplayerRadioFeedObj.qtFeedData.cover);r.qtApplyTitle(e,i),r.log(e)}})}}else if(r.log("Server type: LAUT.FM"),r.log("Stream URL: "+n.file),-1!=n.file.indexOf("/stream.laut.fm/")){r.log("Laut.FM reading titles");var at="https://api.laut.fm/station/"+n.file.split("https").join("http").split("http://stream.laut.fm/").join("")+"/current_song";g&&(at=B+"/?qtproxycall="+window.btoa(at)),t.ajax({type:"GET",url:at,async:!0,cache:!1,success:function(t){r.log("Laut.FM Success"),"object"!=typeof t&&(t=JSON.parse(t));var e="Now live - Streaming";t.type&&"jingle"!==t.type&&(t.title&&(e=t.title,t.artist&&t.artist.name&&(e=t.artist.name+" - "+e)),r.qtApplyTitle(e,i))},error:function(t){r.log(t),console.log(t),r.qtApplyTitle("Laut FM API error - Titles not available")}})}},feedInterval:null,stopFeed:function(){t.qtmplayerRadioFeedObj;void 0!==t.qtmplayerRadioFeedObj.fn.qtFeedInterval&&clearInterval(t.qtmplayerRadioFeedObj.fn.qtFeedInterval)},pushFeed:function(e){var a=t.qtmplayerRadioFeedObj;a.qtFeedData=e,a.fn.log("pushFeed = INITIALIZE"+t.now()),a.fn.log(e),a.fn.stopFeed(),a.fn.newFeedReading(),a.fn.qtApplyListeners(!1,!1),t.qtmplayerRadioFeedObj.qtFeedData.dataType="",t.qtmplayerRadioFeedObj.fn.qtFeedInterval=setInterval((function(){a.fn.newFeedReading()}),t.qtmplayerRadioFeedObj.timeInterval)},log:function(e){var a=t("#qtmPlayerDebugger");a.length>0&&a.append(e+"<br>")}}},t(document).ready((function(){t.qtmplayerRadioFeedObj.fn.qtApplyTitle()}))}(jQuery),function(t){"use strict";function e(){var t=Array.prototype.slice.call(arguments);
18t.unshift("QTMPLAYER -")}if(e("admin script loaded"),void 0!==window.qtmplayer_stats&&window.qtmplayer_stats&&1===parseInt(window.qtmplayer_stats.isAdmin,10)&&"radiochannel"===window.qtmplayer_stats.postType){e("radiochannel admin context detected",window.qtmplayer_stats);var a=null,n=!1,i=!1,r=!1;t((function(){var a,o;e("document ready, binding protections"),e("bindClassicEditorProtection init",{formFound:!!(a=t("#post")).length}),a.length&&a.on("submit.qtmplayerLicense",(function(t){if(e("classic editor submit intercepted",{bypassNextClassicSubmit:i,verificationPassed:n}),i||n)return e("classic submit allowed immediately"),!0;t.preventDefault(),t.stopImmediatePropagation(),e("classic submit blocked temporarily, starting verification");var a=this;return l().then((function(){e("classic verification ok, re-submitting form"),i=!0,a&&"function"==typeof a.submit&&a.submit()})).catch((function(t){e("classic verification rejected",t),i=!1})),!1})),e("bindButtonProtection init",o=["#publish","#save-post",".editor-post-publish-panel__toggle",".editor-post-publish-button",".editor-post-publish-button__button",".editor-post-publish-panel__header-publish-button",".editor-post-save-draft",".editor-post-switch-to-draft"].join(",")),document.addEventListener("click",(function(t){var a=t.target&&t.target.closest?t.target.closest(o):null;a&&(e("admin save button click intercepted",{button:a,bypassNextButtonClick:r,verificationPassed:n}),r||n?e("button click allowed immediately"):(t.preventDefault(),t.stopPropagation(),"function"==typeof t.stopImmediatePropagation&&t.stopImmediatePropagation(),e("button click blocked temporarily, starting verification"),l().then((function(){e("button verification ok, replaying click"),r=!0,setTimeout((function(){a.click(),setTimeout((function(){r=!1,e("button bypass reset")}),50)}),10)})).catch((function(t){e("button verification rejected",t),r=!1}))))}),!0),e("bindings completed")}))}else e("abort: not in radiochannel admin context",window.qtmplayer_stats||null);function o(){var t,a=(e("normalizeDomain input",t=window.location.hostname||window.location.host||""),e("normalizeDomain output",t=(t=(t=(t=String(t||"").toLowerCase().trim()).replace(/^https?:\/\//,"")).replace(/\/.*$/,"")).replace(/^www\./,"")),t);return e("browser domain detected",a),a}function s(t,a){e("BLOCKED",{code:a||"unknown",message:t||"License verification failed"}),console.error("[QTMPLAYER_LICENSE_BLOCK]",a||"unknown",t||"License verification failed"),window.alert(t||"License verification failed. Save blocked.")}function l(){if(e("requestForcedLicenseVerify called",{verificationPassed:n,hasPromise:!!a}),n)return e("verification already passed, skipping ajax"),Promise.resolve({allow:!0});if(a)return e("reusing pending verification promise"),a;var i={action:"qtmplayer_radiochannel_forced_verify",nonce:window.qtmplayer_stats.nonce,postId:parseInt(window.qtmplayer_stats.postId||0,10),postType:window.qtmplayer_stats.postType||"",browserDomain:o()};return e("starting ajax forced verify",i),a=t.ajax({url:window.qtmplayer_stats.ajaxUrl,type:"POST",dataType:"json",cache:!1,data:i}).then((function(t){if(e("ajax response received",t),a=null,t&&t.success&&t.data&&t.data.allow)return n=!0,e("verification passed",t.data),t.data;var i=t&&t.data?t.data:{};return n=!1,e("verification failed from ajax success branch",i),s(i.message||"License verification failed. Save blocked.",i.code||"verify_failed"),Promise.reject(i)})).catch((function(t){e("ajax catch branch triggered",t),a=null,n=!1;var i={};return t&&t.responseJSON&&t.responseJSON.data&&(i=t.responseJSON.data),e("parsed ajax error data",i),s(i.message||"License verification failed. Save blocked.",i.code||"ajax_error"),Promise.reject(i)}))}}(jQuery),function(){"use strict";function t(){if(void 0!==window.qtmplayer_guard&&window.qtmplayer_guard&&1===parseInt(window.qtmplayer_guard.debug||0,10)){var t=Array.prototype.slice.call(arguments);t.unshift("QTMPLAYER -")}}function e(t){return t=(t=(t=(t=String(t||"").toLowerCase().trim()).replace(/^https?:\/\//,"")).replace(/\/.*$/,"")).replace(/^www\./,"")}function a(e){window.QTMPLAYER_FRONT_GUARD_OK=!1,window.QTMPLAYER_VALID_DOMAIN="",window.QTMPLAYER_FRONT_GUARD_CODE=e||"blocked",t("frontend guard blocked",e)}!function(){if(void 0!==window.qtmplayer_guard&&window.qtmplayer_guard&&1===parseInt(window.qtmplayer_guard.enabled||0,10)){var n,i,r,o=e(window.location.hostname||window.location.host||""),s=(n=window.qtmplayer_guard.blobOptionName||"",i="proradio_samurai_blob.",0!==(n=String(n||"").trim()).indexOf(i)?"":e(n.substring(i.length))),l=1===parseInt(window.qtmplayer_guard.hasBlob||0,10);if(t("guard input",{browserDomain:o,blobDomain:s,hasBlob:l}),l)if(s)if(o===s)r=s,window.QTMPLAYER_FRONT_GUARD_OK=!0,window.QTMPLAYER_VALID_DOMAIN=r,
18window.QTMPLAYER_FRONT_GUARD_CODE="ok",t("frontend guard passed",r);else a("domain_mismatch");else a("blob_domain_missing");else a("blob_missing")}else a("guard_missing")}()}(),function(t){"use strict";function e(){if("function"==typeof window.Map)return new window.Map;var t=[],e=[];return{set:function(a,n){var i=t.indexOf(a);-1===i?(t.push(a),e.push(n)):e[i]=n},get:function(a){var n=t.indexOf(a);return-1===n?void 0:e[n]},has:function(e){return-1!==t.indexOf(e)},delete:function(a){var n=t.indexOf(a);-1!==n&&(t.splice(n,1),e.splice(n,1))}}}var a,n,i,r,o,s,l,u,c,d,p,h,f=null,y=null,m=null,g=null,v=0,b=0,w=0,_=!1,x=!0,q="off",P=null,M={phase:0,lastTime:0,seed:123456789,values:null},O="default",k=null,T=null,S=null,A=null,j=null,C=function(){if("function"==typeof window.Set)return new window.Set;var t=[];return{add:function(e){-1===t.indexOf(e)&&t.push(e)},has:function(e){return-1!==t.indexOf(e)}}}(),L=e(),E=e(),F=function(){if("function"==typeof window.WeakMap)return new window.WeakMap;var t="__qtmplayerVisualizerNode_"+String(Date.now());return{set:function(e,a){e[t]=a},get:function(e){return e?e[t]:void 0},delete:function(e){try{delete e[t]}catch(a){e[t]=void 0}}}}(),R=2048,I=.3,B=30,D=100,N=-50,H=-1,z=1800,G=250,U=3e3;function W(t){return window.Promise&&"function"==typeof window.Promise.resolve?window.Promise.resolve(t):{then:function(e){return"function"==typeof e&&e(t),this},catch:function(){return this}}}function V(){return a&&a.length&&document.documentElement.contains(a[0])||(a=t("#qtmplayer")),a}function Y(){var t=V();return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||!t.length||"1"!==String(t.attr("data-visualizer-enabled"))||!window.AudioContext&&!window.webkitAudioContext||!window.Promise||!window.fetch||!window.AbortController||!window.Raphael||"function"!=typeof window.requestAnimationFrame||"function"!=typeof window.cancelAnimationFrame)}function Q(t){try{return new URL(String(t||""),window.location.href).href}catch(e){return String(t||"")}}function X(t){try{return new URL(t,window.location.href).origin===window.location.origin}catch(t){return!1}}function J(t){t=Q(t),y=null,t&&(C.add(t),L.set(t,!1)),_=!1,St()}function $(t,e){var a,n,i,r=Q(t);if(!Y()||!r||e||C.has(r))return W(!1);if(X(r))return L.set(r,!0),W(!0);if(L.has(r))return W(!0===L.get(r));if(E.has(r))return E.get(r);try{return a=new AbortController,n=window.setTimeout((function(){try{a.abort()}catch(t){}}),z),i=fetch(r,{method:"GET",mode:"cors",credentials:"omit",cache:"no-store",headers:{Range:"bytes=0-0"},signal:a.signal}).then((function(t){var e=!(!t||"opaque"===t.type||!t.ok&&206!==t.status);!function(t){try{t&&t.body&&"function"==typeof t.body.cancel&&t.body.cancel().catch((function(){}))}catch(t){}}(t);try{a.abort()}catch(t){}return L.set(r,e),e||C.add(r),e})).catch((function(){return L.set(r,!1),C.add(r),!1})).then((function(t){return window.clearTimeout(n),E.delete(r),t})),E.set(r,i),i}catch(t){return window.clearTimeout(n),L.set(r,!1),C.add(r),W(!1)}}function K(t,e){var a,n=Q(t);return Y()&&n&&!e?C.has(n)?{url:n,visualize:!0,fake:!0,crossOrigin:!1}:X(n)?(L.set(n,!0),{url:n,visualize:!0,fake:!1,crossOrigin:!1}):(a=!0===L.get(n),L.has(n)||E.has(n)||$(n,!1),{url:n,visualize:!0,fake:!a,crossOrigin:a}):{url:n,visualize:!1,fake:!1,crossOrigin:!1}}function Z(){var t=String(V().attr("data-visualizer-template")||"default").toLowerCase();return-1===["default","player","header","circular","radial","orbit","ribbon"].indexOf(t)?"default":t}function tt(t){return"circular"===t||"radial"===t||"orbit"===t}function et(t){return"default"===t||"player"===t||"header"===t}function at(t){return"player"===t||"header"===t||"ribbon"===t}function nt(){var t;if(!S||!S.length||!A)return S=null,void(A=null);try{for(S[0].style.position=A.position,S[0].style.isolation=A.isolation,t=0;t<A.children.length;t++)A.children[t].element.style.position=A.children[t].position,A.children[t].element.style.zIndex=A.children[t].zIndex}catch(t){}S=null,A=null}function it(){var t,e;if(!k||!k.length||!T)return k=null,void(T=null);try{for(k[0].style.position=T.position,k[0].style.isolation=T.isolation,t=k.children("i"),e=0;e<t.length;e++)t[e].style.zIndex=T.icons[e].zIndex}catch(t){}k=null,T=null}function rt(e){var a,o,s;if(!n||!n.length)return!1;try{if(tt(e)){if(nt(),!function(){var e,a,n=[];if(!(k=t("#qtmplayerPlay")).length)return k=null,!1;if(!T){for(e=k.children("i"),a=0;a<e.length;a++)n.push({zIndex:e[a].style.zIndex});T={position:k[0].style.position,isolation:k[0].style.isolation,icons:n}}try{"static"===window.getComputedStyle(k[0]).position&&(k[0].style.position="relative"),k[0].style.isolation="isolate",k.children("i").css({zIndex:2})}catch(t){return it(),!1}return!0}())return!1;a=k,n.appendTo(a).css({position:"absolute",top:0,left:0,bottom:"auto",width:"100%",height:Math.min(G,window.innerHeight||G)+"px",display:"none",overflow:"hidden",pointerEvents:"none",zIndex:1})}else if(at(e)){if(it(),!function(e){var a,n,i,r=[];if("header"===e?((a=t("#proradio-headerbar-container").first()).length||(a=t("#proradio-headerbar-content").first()),a.length||(a=t("#proradio-headerbar").first())):a="ribbon"===e?t("#qtmplayer-control
18s .qtmplayer__controllayer").first():t("#qtmplayer-controls").first(),!a.length)return!1;for(nt(),S=a,n=a.children().not("#qtmplayerVisualizer"),i=0;i<n.length;i++)r.push({element:n[i],position:n[i].style.position,zIndex:n[i].style.zIndex});A={position:a[0].style.position,isolation:a[0].style.isolation,children:r};try{"static"===window.getComputedStyle(a[0]).position&&(a[0].style.position="relative"),a[0].style.isolation="isolate","header"!==e&&n.css({position:"relative",zIndex:2})}catch(t){return nt(),!1}return!0}(e))return!1;o=S[0].getBoundingClientRect(),s=Math.max(1,Math.round(o.height||S.outerHeight()||1)),n.appendTo(S).css({position:"absolute",top:0,bottom:"auto",left:0,width:"100%",height:s+"px",display:"none",overflow:"hidden",pointerEvents:"none",zIndex:"header"===e?100:"ribbon"===e?1:2})}else it(),nt(),n.appendTo("body").css({position:"fixed",top:"auto",bottom:0,left:0,width:"100%",height:Math.min(G,window.innerHeight||G)+"px",display:"none",overflow:"hidden",pointerEvents:"none",zIndex:1e3});return r.css({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:et(e)?"none":"block",pointerEvents:"none"}),i.css({position:"absolute",bottom:0,left:0,width:"100%",height:"100%",display:et(e)?"block":"none",pointerEvents:"none",zIndex:"player"===e?1:"header"===e?100:"auto"}),!0}catch(t){return!1}}function ot(){var t=V(),e="rgba(255, 0, 0, 0.2)";return{background:t.attr("data-spectrum-bg")||e,bass:t.attr("data-spectrum-bass")||e,mid:t.attr("data-spectrum-mid")||e,high:t.attr("data-spectrum-hi")||e}}function st(){return"1"===String(V().attr("data-hiquality"))}function lt(t,e){return st()?0===e?t.bass:1===e?t.mid:t.high:t.background}function ut(){var t,e,a;return tt(O)&&k&&k.length?(t=(a=k[0].getBoundingClientRect()).width||k.outerWidth(),e=a.height||k.outerHeight()):at(O)&&S&&S.length?(t=(a=S[0].getBoundingClientRect()).width||S.outerWidth(),e=a.height||S.outerHeight(),n&&n.length&&n.css("height",Math.max(1,Math.round(e||1))+"px")):(t=window.innerWidth||(n?n.width():0),e=Math.min(G,window.innerHeight||G)),{width:Math.max(1,Math.round(t||1)),height:Math.max(1,Math.round(e||1))}}function ct(t,e){return Math.min(255,255*function(t,e){var a=Math.min(1,Math.max(0,Number(t||0)/255)*[1.15,2.6,5.2][e||0]);return Math.pow(a,[.62,.54,.48][e||0])}(t,e))}function dt(t){return t<.14?0:t<.52?1:2}function pt(t,e,a){var n=Math.pow(Math.max(0,Math.min(1,e)),1.65),i=Math.max(0,Math.min(t.length-1,Math.round(n*(t.length-1)))),r="number"==typeof a?a:dt(n);return ct(t[i]||0,r)}function ht(t,e,a){var n=[[1,Math.max(2,Math.round(.08*t.length))],[Math.max(2,Math.round(.08*t.length)),Math.max(3,Math.round(.34*t.length))],[Math.max(3,Math.round(.34*t.length)),Math.max(4,Math.round(.88*t.length))]][e],i=Math.round(n[0]+Math.max(0,Math.min(1,a))*(n[1]-n[0]));return ct(t[Math.min(t.length-1,i)]||0,e)}function ft(t,e,a,n){var i,r,o="M0,"+n,s=t.length,l=s>1?a/(s-1):a,u=0;for(i=0;i<s;i++)r=n-t[i]/100*n*e,o+=0===i?"L"+u+","+r:1===i?"S"+u+","+r:","+u+","+r,u+=l;return o+"L"+a+","+n+"L0,"+n+"Z"}function yt(){try{l&&"function"==typeof l.remove&&l.remove()}catch(t){}l=null,u=null,s=null,j=null,i&&i.length&&i.empty();try{o&&o.length&&o[0].getContext&&o[0].getContext("2d").clearRect(0,0,o[0].width,o[0].height)}catch(t){}}function mt(){var e,a,c,d;if(O=Z(),!(e=function(){var e,a,s=Z();if(n&&n.length)return O!==s&&(O=s),rt(O)?n:null;if((n=t("#qtmplayerVisualizer")).length)return r=n.find("#qtmplayerWF"),o=r.find("canvas"),i=n.find("#qtmplayerFFT"),O=s,Lt(),rt(O)?n:null;try{return e=ot(),a=st(),O=s,n=t('<div id="qtmplayerVisualizer" aria-hidden="true"><div id="qtmplayerWF" class="qtmplayer__waveform"><canvas></canvas></div><div id="qtmplayerFFT" class="qtmplayer__waves"></div></div>').attr({"data-hiquality":a?"1":"0","data-spectrum-bg":e.background,"data-spectrum-bass":e.bass,"data-spectrum-mid":e.mid,"data-spectrum-hi":e.high}),r=n.find("#qtmplayerWF"),o=r.find("canvas").css({display:"block",width:"100%",height:"100%",pointerEvents:"none"}),i=n.find("#qtmplayerFFT"),rt(O)?(Lt(),n):(n.remove(),n=null,r=null,o=null,i=null,null)}catch(t){return it(),nt(),n=null,r=null,o=null,i=null,null}}())||!i||!i.length)return!1;try{if(e.show(),yt(),x=!0,!et(O))return function(){var t,e;if(!o||!o.length||!o[0].getContext)return!1;try{return t=ut(),e=Math.max(1,Math.min(2,window.devicePixelRatio||1)),o[0].width=Math.round(t.width*e),o[0].height=Math.round(t.height*e),o.css({width:t.width+"px",height:t.height+"px"}),(s=o[0].getContext("2d")).setTransform(e,0,0,e,0,0),s.clearRect(0,0,t.width,t.height),!0}catch(t){return s=null,!1}}();c=ut(),a=ot(),l=Raphael("qtmplayerFFT",c.width,c.height),d="M0,"+c.height+"L"+c.width+","+c.height+"Z",u={bass:l.path(d).attr({stroke:a.bass,"stroke-width":1.5,"stroke-opacity":.75,fill:a.bass,opacity:.5}),mid:l.path(d).attr({stroke:a.mid,"stroke-width":1.5,"stroke-opacity":.75,fill:a.mid,opacity:.6}),high:l.path(d).attr({stroke:st()?a.high:a.background,"stroke-width":1.5,"stroke-opacity":.85,fill:st()?a.high:a.background,opacity:.8})};try{u.bass.node.style.filter="drop-shadow(0 0 6px "+a.bass+")",u.mid.node.style.filter="drop-shadow(0 0 6px "+a.mid+")",u.high.node.style.filter="drop-shadow(0 0 8px "+(st()?a.high:a.background)+")"}catch(t){}return!0}catch(t){return yt(),e.hide(),!1}}function gt(t,e,a,n){try{if("function"==typeof t.stop&&t.stop(),n)return void t.attr({path:e});t.animate({path:e},a,"<>")}catch(a){t.attr({path:e})}}function vt(t,e,a,n,i,r,o,s,l,u,c){var d,p,h;for(t.beginPath(),d=0;d<=72;d++)p=2*Math.PI*d/72-Math.PI/2,h=i+ht(e,c,(d+s)%72/72)/255*r,0===d?t.moveTo(a+Math.cos(p)*h,n+Math.sin(p)*h):t.lineTo(a+Math.cos(p)*h,n+Math.sin(p)*h);t.closePath(),t.globalAlpha=l,t.strokeStyle=o,t.lineWidth=u,t.lineJoin="round",t.lineCap="round",t.shadowColor=o,t.shadowBlur=Math.max(2,2*u),t.stroke()}
18function bt(t,e,a,n,i,r,o,s,l,u){var c,d,p,h,f,y,m=[],g=[];for(c=0;c<=110;c++)d=c/110,f=n+u*((h=pt(e,p=Math.abs(2*((d+o)%1-.5)),dt(Math.pow(p,1.65)))/255)*i+Math.sin(d*Math.PI*8+o*Math.PI*2)*i*.08),y=l*(.45+.85*h),m.push([d*a,f-y]),g.push([d*a,f+y]);for(t.beginPath(),t.moveTo(m[0][0],m[0][1]),c=1;c<m.length;c++)t.lineTo(m[c][0],m[c][1]);for(c=g.length-1;c>=0;c--)t.lineTo(g[c][0],g[c][1]);for(t.closePath(),t.globalAlpha=s,t.fillStyle=r,t.shadowColor=r,t.shadowBlur=Math.max(2,2.5*l),t.fill(),t.beginPath(),t.moveTo(m[0][0],(m[0][1]+g[0][1])/2),c=1;c<m.length;c++)t.lineTo(m[c][0],(m[c][1]+g[c][1])/2);t.globalAlpha=Math.min(1,2.2*s),t.strokeStyle=r,t.lineWidth=Math.max(.8,.45*l),t.stroke()}function wt(t){var e,a,n;s&&(e=ut(),a=ot(),n=function(t){var e,a=Math.min(t.length,256);for(j&&j.length===a||(j=new Float32Array(a)),e=0;e<a;e++)j[e]+=.16*((t[e]||0)-j[e]);return j}(t),s.save(),s.clearRect(0,0,e.width,e.height),s.globalCompositeOperation="source-over","circular"===O?function(t,e,a){var n=s,i=e.width/2,r=e.height/2,o=Math.min(e.width,e.height),l=.19*o,u=.29*o;vt(n,t,i,r,l,u,lt(a,0),0,.68,Math.max(1.5,.03*o),0),vt(n,t,i,r,.94*l,.9*u,lt(a,1),18,.54,Math.max(1.2,.022*o),1),vt(n,t,i,r,1.05*l,.82*u,lt(a,2),37,.46,Math.max(1,.018*o),2)}(n,e,a):"radial"===O?function(t,e,a){var n,i,r,o,l,u,c,d,p=s,h=e.width/2,f=e.height/2,y=Math.min(e.width,e.height),m=.22*y,g=.25*y;for(p.lineWidth=Math.max(1.5,.024*y),p.lineCap="round",p.globalAlpha=.92,n=0;n<72;n++)r=n/71,o=Math.pow(r,1.65),i=2*Math.PI*n/72-Math.PI/2,l=pt(t,r,c=dt(o))/255,2===c&&(l=Math.min(1,4*l)),u=.025*y+l*g,d=lt(a,c),p.strokeStyle=d,p.shadowColor=d,p.shadowBlur=Math.max(1,.028*y),p.beginPath(),p.moveTo(h+Math.cos(i)*m,f+Math.sin(i)*m),p.lineTo(h+Math.cos(i)*(m+u),f+Math.sin(i)*(m+u)),p.stroke()}(n,e,a):"orbit"===O?function(t,e,a){var n=s,i=e.width/2,r=e.height/2,o=Math.min(e.width,e.height),l=.18*o,u=.3*o;vt(n,t,i,r,l,u,lt(a,0),0,.48,Math.max(1.2,.018*o),0),vt(n,t,i,r,.95*l,.94*u,lt(a,1),19,.42,Math.max(1,.015*o),1),vt(n,t,i,r,1.04*l,.88*u,lt(a,2),39,.38,Math.max(1,.013*o),2),vt(n,t,i,r,.98*l,.72*u,lt(a,1),57,.28,Math.max(.8,.01*o),1),vt(n,t,i,r,1.01*l,.62*u,lt(a,2),71,.24,Math.max(.8,.009*o),2)}(n,e,a):"ribbon"===O&&function(t,e,a){var n,i,r=s,o=.52*e.height,l=.38*e.height,u=Math.max(1.5,.035*e.height);for(r.globalCompositeOperation="lighter",n=0;n<8;n++)i=n%2==0?-1:1,bt(r,t,e.width,o+(n-3.5)*e.height*.012,l*(.42+.055*n),lt(a,n%3),.055*n,.1+.015*n,u*(.7+.05*n),i)}(n,e,a),s.restore())}function _t(t){try{et(O)?function(t){var e,a,n=[],i=[],r=[],o="default"===O,s=x,c=o?280:60,d=o?250:50,p=o?220:20,h=o?220:15;if(l&&u){if(e=ut(),st()){for(a=1;a<10;a++)n.push(t[a]||0);for(a=10;a<30;a++)i.push(t[a]||0);for(a=30;a<50;a++)r.push(t[a]||0);u.bass.attr({opacity:.5}),u.mid.attr({opacity:.6}),u.high.attr({opacity:.8}),gt(u.bass,ft(n,.5,e.width,e.height),c,s),gt(u.mid,ft(i,.7,e.width,e.height),d,s),gt(u.high,ft(r,.8,e.width,e.height),p,s)}else{for(a=0;a<5;a++)r[a]=.6*(t[a+2]||0);for(a=5;a<16;a++)r[a]=.7*(t[a+2]||0);for(a=16;a<=38;a++)r[a]=.8*(t[a+2]||0);for(a=39;a<=44;a++)r[a]=1.2*(t[a+2]||0);u.bass.attr({opacity:0}),u.mid.attr({opacity:0}),u.high.attr({opacity:.8}),gt(u.high,ft(r,.9,e.width,e.height),h,s)}x=!1}}(t):wt(t)}catch(t){J(h)}}function xt(){M.phase=0,M.lastTime=0,M.seed=123456789,M.values=null}function qt(t){return t=Math.max(1,Number(t)||R/2),P&&P.length===t||(P=new Uint8Array(t)),P}function Pt(t,e){return!!(t&&window.HTMLMediaElement&&t instanceof window.HTMLMediaElement)&&(function(t){var e;if(t){try{(e=F.get(t))&&e.source&&c&&(e.source.disconnect(),e.source.connect(c.destination))}catch(t){}try{d&&d.disconnect()}catch(t){}d=null}}(t),q="fake",p=t,h=Q(e),_=!1,xt(),mt()?(Tt(),!0):(q="off",St(),!1))}function Mt(t,e){var a=Q(t);return y=null,a&&(C.add(a),L.set(a,!1)),Pt(e,a)}function Ot(){if(null!==m){try{window.cancelAnimationFrame(m)}catch(t){}m=null}}function kt(t){var e,a,n,i,r,o,s=0;if(!p||!h||"real"===q&&!d||"real"!==q&&"fake"!==q)Ot();else try{if(n="number"==typeof t?t:Date.now(),i="default"===O?D:B,"fake"===q)return e=qt(R/2),p.paused||p.ended?function(t){var e,a;for(M.values&&M.values.length===t.length||(M.values=new Float32Array(t.length)),e=0;e<t.length;e++)a=.82*M.values[e],M.values[e]=a,t[e]=0|a}
18(e):(!function(t,e){var a,n,i,r,o,s,l,u,c,d,p,h,f,y,m,g,v,b=t.length,w=Math.min(b,et(O)?64:256);for(M.values&&M.values.length===b||(M.values=new Float32Array(b)),M.lastTime||(M.lastTime=e),a=Math.min((e-M.lastTime)/1e3,.1),M.lastTime=e,n=1.62+.12*Math.sin(41e-6*e),M.phase+=a*n*Math.PI*2,i=Math.pow(Math.max(0,Math.cos(M.phase)),18),r=Math.pow(Math.max(0,Math.cos(M.phase-Math.PI)),14),o=Math.pow(Math.max(0,Math.cos(2*M.phase-.35)),20),s=Math.pow(Math.max(0,Math.cos(2*M.phase-Math.PI-.35)),20),l=.5+.5*Math.sin(.47*M.phase+.6),u=.5+.5*Math.sin(.31*M.phase+2.1),c=.5+.5*Math.sin(.23*M.phase+4),d=0;d<b;d++)d>=w?(M.values[d]*=.88,t[d]=0|M.values[d]):(p=d/Math.max(1,w-1),f=.8+12*(m=Math.pow(Math.max(0,1-p),1.55)),h=(p-(.042+.007*Math.sin(19e-5*e)))/.026,f+=Math.exp(-.5*h*h)*(42+180*i+28*l),h=(p-(.125+.018*Math.sin(13e-5*e+1.4)))/.045,f+=Math.exp(-.5*h*h)*(20+82*l),h=(p-(.285+.03*Math.sin(9e-5*e+2.8)))/.06,f+=Math.exp(-.5*h*h)*(10+62*r+34*u),h=(p-(.465+.04*Math.sin(71e-6*e+.9)))/.07,f+=Math.exp(-.5*h*h)*(5+38*u),h=(p-(.675+.034*Math.sin(11e-5*e+4.2)))/.06,f+=Math.exp(-.5*h*h)*(1.5+15*o+4.5*c),h=(p-(.845+.025*Math.sin(83e-6*e+5.1)))/.05,f+=Math.exp(-.5*h*h)*(.5+8*s+2.5*c),y=.55*Math.sin(.83*d+.37*M.phase)+.45*Math.sin(.29*d-.19*M.phase),M.seed=1664525*M.seed+1013904223>>>0,f+=y*(1.2+4.8*m)+((M.seed>>>24)/255-.5)*(1+5*m),p>=.34&&(f*=.1),g=p<.12?240:p<.34?145:p<.52?1.8:12*.1,v=(f=Math.max(0,Math.min(g,f)))>M.values[d]?.24-.09*p+d%5*.012:.052+d%7*.006,M.values[d]+=(f-M.values[d])*v,t[d]=0|M.values[d])}(e,n),_=!0),(!w||n-w>=i)&&(_t(e),w=n),void(m=window.requestAnimationFrame(kt));for(e=qt(d.frequencyBinCount),d.getByteFrequencyData(e),r=0;r<e.length;r++)s+=e[r];if(s>0&&(_=!0,(!w||n-w>=i)&&(_t(e),w=n),v=0),!p.paused){if(o=Number(p.currentTime)||0,!_&&o>b+.01&&0===s)if(a=Date.now(),v){if(a-v>=U)return void Mt(h,p)}else v=a;b=o}m=window.requestAnimationFrame(kt)}catch(t){"real"===q&&p?Mt(h,p):J(h)}}function Tt(){Ot(),v=0,w=0,b=p&&Number(p.currentTime)||0;try{m=window.requestAnimationFrame(kt)}catch(t){J(h)}}function St(){Ot(),v=0,w=0,b=0;try{n&&n.length&&n.hide()}catch(t){}}function At(){y=null}function jt(){At(),_=!1,St()}function Ct(){var t;if(At(),St(),p)try{(t=F.get(p))&&t.source&&d&&t.source.disconnect(d)}catch(t){}try{d&&d.disconnect()}catch(t){}d=null,p=null,h=null,_=!1,q="off",P=null,xt()}function Lt(){t(window).off("resize.qtmplayerVisualizer").on("resize.qtmplayerVisualizer",(function(){window.clearTimeout(g),g=window.setTimeout((function(){if(p&&h&&n&&n.is(":visible"))try{mt()||J(h)}catch(t){J(h)}}),150)}))}t.qtWebApiPlayer={isEnabled:Y,usesIsolatedAudio:Y,testCors:$,prepareSource:function(t,e){return e?(jt(),W(!1)):$(t,!1)},getSourcePlan:K,userGesture:function(t,e){var a,n,i=K(t,e);if(!i.visualize)return!1;if(i.fake)return!0;if(!(a=function(){var t;if(c)return c;try{return t=window.AudioContext||window.webkitAudioContext,c=new t}catch(t){return c=null,null}}()))return J(i.url),!1;try{return f=null,"suspended"===a.state&&"function"==typeof a.resume?(n=a.resume())&&"function"==typeof n.then&&(f=n,"function"==typeof n.catch&&n.catch((function(){J(i.url)}))):f=W(!0),!0}catch(t){return J(i.url),!1}},attach:function t(e,a){var i,r,o,s=K(a,!1);if(!s.visualize||!e)return St(),!1;try{i=e._a}catch(t){return J(s.url),!1}if(!(i&&window.HTMLMediaElement&&i instanceof window.HTMLMediaElement))return J(s.url),!1;if(s.fake)return Pt(i,s.url);if(!(r=c))return Mt(s.url,i);if("running"!==r.state)return y={sound:e,url:a},f&&"function"==typeof f.then&&f.then((function(){var n=y;n&&n.sound===e&&n.url===a&&(y=null,c&&"running"===c.state&&t(n.sound,n.url))})).catch((function(){At()})),!1;if(p===i&&d&&"real"===q)try{return h!==s.url&&(_=!1),n&&n.length&&n.is(":visible")||mt()?(h=s.url,Tt(),!0):(J(s.url),!1)}catch(t){return J(s.url),!1}try{if(p&&p!==i&&Ct(),d)try{d.disconnect()}catch(t){}(d=r.createAnalyser()).fftSize=R,d.smoothingTimeConstant=I,d.minDecibels=N,d.maxDecibels=H,d.connect(r.destination),(o=F.get(i))||(o={source:r.createMediaElementSource(i)},F.set(i,o));try{o.source.disconnect()}catch(t){}try{o.source.connect(d)}catch(t){try{o.source.connect(r.destination)}catch(t){}throw t}return p=i,h=s.url,_=!1,q="real",P=null,mt()?(Tt(),!0):(J(s.url),!1)}catch(t){return Mt(s.url,i)}},releaseSound:function(t){var e,a;if(t){try{e=t._a}catch(t){return}if(e){p===e&&Ct();try{(a=F.get(e))&&a.source&&a.source.disconnect(),F.delete(e)}catch(t){}}}},pause:function(){At(),St()}
18,stop:Ct,sourceWillChange:jt,markUnsupported:J,isUnsupported:function(t){return C.has(Q(t))},play:function(){return!1},seek:function(){},seekTime:function(){},setvolume:function(){}}}(jQuery), 19/** @license 20 * 21 * ProRadio Music Player: JavaScript player with audio analyzer 22 * ---------------------------------------------- 23 * http://proradio.com/ 24 * 25 * Copyright (c) 2020-2021, ProRadio / QANTUM THEMES SL. All rights reserved. 26 * This software cna be used only within our products. It can't be edited or modified for reuse under other projects. 27 * Cannot be re-sold or embedded in other products for sale. 28 * 29 */ 30function(t){var e=t("#qtmplayer").data("qtmplayer-debugger"),a=(t("#qtmplayer").data("analyzer"),!1),n=!1,i=t("#qtmplayer").data("showplayer"),r=!1,o=!1,s=[];function u(a){if("function"!=typeof a&&(a=function(){}),void 0!==window.Hls)return o=!0,e&&console.log("QTMPlayer HLS: hls.js already available",{version:window.Hls&&window.Hls.version?window.Hls.version:"unknown"}),void a();if(o)a();else if(s.push(a),!r){r=!0;var n=document.createElement("script");n.src=function(t){var e,a,n=document.getElementsByTagName("script");for(e=n.length-1;e>=0;e--)if(-1!==(a=n[e].getAttribute("src")||"").indexOf("/assets/js/qtmplayer"))return a.split("/assets/js/qtmplayer")[0]+t;return t}("/assets/components/hls/hls.js"),n.async=!0,n.onload=function(){var a;r=!1,o=!0,e&&console.log("QTMPlayer HLS: hls.js loaded",{src:n.src,Hls:typeof window.Hls,version:window.Hls&&window.Hls.version?window.Hls.version:"unknown"}),a=s.slice(0),s=[],t.each(a,(function(t,e){"function"==typeof e&&e()}))},n.onerror=function(){r=!1,s=[],t.qtPlayerObj&&t.qtPlayerObj.interface&&t.qtPlayerObj.interface.doSpinner(!1),console.error("QTMPlayer: unable to load hls.js")},e&&console.log("QTMPlayer HLS: loading hls.js",n.src),document.head.appendChild(n)}}function c(t){return t&&void 0!==t.streamtype&&"hls"===String(t.streamtype).toLowerCase()}function d(){var t,e=navigator.userAgent||"",a=/iPad|iPhone|iPod/i.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,n=/Safari/i.test(e)&&!/Chrome|Chromium|CriOS|FxiOS|Edg|OPR|Android/i.test(e);return!(!a&&!n||(t=document.createElement("audio"),!t.canPlayType||!t.canPlayType("application/vnd.apple.mpegurl")&&!t.canPlayType("application/x-mpegURL")))}function h(a,n){var i=t.qtPlayerObj,r=i.interface,o="";a||(a="This HLS stream is not supported by your browser."),e&&console.error("QTMPlayer HLS: playback failure",{message:a,error:n||null,songdata:i.songdata||null}),i.playing=!1,r&&(r.doSpinner(!1),r.bufferEnd(),r.justStop(),(o=r.getCurrentFile?r.getCurrentFile():i.songdata&&i.songdata.file?i.songdata.file:"")&&r.syncButtonsByFile(o,"play"),r.controls&&(r.controls.find(".qtmplayer__title").text(a),r.controls.find(".qtmplayer__artist").text("")),r.time&&r.time.html(""),r.advance&&r.advance.width(0),r.buffer&&r.buffer.width(0))}var f={audio:!1,hls:!1,currentSrc:!1,fatalError:!1,fatalErrorMessage:!1,getAudio:function(){return!1===f.audio&&(f.audio=document.createElement("audio"),f.audio.preload="none",f.audio.setAttribute("playsinline","playsinline"),f.bindEvents()),f.audio},bindEvents:function(){var a=f.audio,n=t.qtPlayerObj.interface;a.addEventListener("waiting",(function(){n.bufferStart(),n.doSpinner(!0)})),a.addEventListener("canplay",(function(){n.bufferEnd(),n.doSpinner(!1)})),a.addEventListener("playing",(function(){n.bufferEnd(),n.doSpinner(!1),e&&console.log("QTMPlayer HLS: audio playing")})),a.addEventListener("timeupdate",(function(){})),a.addEventListener("ended",(function(){n.next()})),a.addEventListener("error",(function(){h("This HLS stream is not supported by your browser.",a.error)}))},load:function(t){var a;if(!t||"file_hold"===t)return console.error("QTMPlayer HLS: invalid source",t),!1;if(f.currentSrc===t)return!0;if(f.stop(),a=f.getAudio(),f.currentSrc=t,f.fatalError=!1,f.fatalErrorMessage=!1,e&&console.log("QTMPlayer HLS: load source",t),void 0!==window.Hls&&window.Hls.isSupported()){function n(t){return e&&console.error("QTMPlayer HLS: error data",t),"This HLS stream could not be played. Please check the stream URL."}return f.hls=new window.Hls({enableWorker:!0,lowLatencyMode:!1}
30),f.hls.attachMedia(a),f.hls.on(window.Hls.Events.MEDIA_ATTACHED,(function(){e&&console.log("QTMPlayer HLS: media attached"),f.hls.loadSource(t)})),f.hls.on(window.Hls.Events.MANIFEST_PARSED,(function(){e&&console.log("QTMPlayer HLS: manifest parsed")})),f.hls.on(window.Hls.Events.ERROR,(function(t,a){var i,r=0,o=a&&a.details?String(a.details):"";if(console.error("QTMPlayer HLS: hls.js error",a),a&&a.fatal){if(a.response&&a.response.code&&(r=parseInt(a.response.code,10)),a.type===window.Hls.ErrorTypes.NETWORK_ERROR&&("manifestLoadError"===o||"manifestLoadTimeOut"===o||400===r||401===r||403===r||404===r||410===r))return i=n(a),f.fatalError=!0,f.fatalErrorMessage=i,f.stop(),void h(i,a);if(a.type===window.Hls.ErrorTypes.NETWORK_ERROR)return e&&console.log("QTMPlayer HLS: recoverable network error, retrying..."),void f.hls.startLoad();if(a.type===window.Hls.ErrorTypes.MEDIA_ERROR)return e&&console.log("QTMPlayer HLS: media error, trying recovery..."),void f.hls.recoverMediaError();i=n(a),f.fatalError=!0,f.fatalErrorMessage=i,f.stop(),h(i,a)}})),!0}return d()?(a.src=t,a.load(),e&&console.log("QTMPlayer HLS: trusted native HLS mode"),!0):(h("This HLS stream is not supported by your browser."),!1)},play:function(a){var n,i;return!!f.load(a)&&((n=f.getAudio()).volume=t.qtPlayerObj.masterVolume/100,t.qtPlayerObj.interface.doSpinner(!0),(i=n.play())&&"function"==typeof i.then&&i.then((function(){e&&console.log("QTMPlayer HLS: play resolved")})).catch((function(t){h("This HLS stream could not be played.",t)})),!0)},pause:function(){f.audio&&f.audio.pause()},stop:function(){var t=f.audio;if(f.hls)try{f.hls.destroy()}catch(t){}if(f.hls=!1,f.currentSrc=!1,t)try{t.pause(),t.removeAttribute("src"),t.load()}catch(t){}},setVolume:function(t){var e=f.audio;e&&(e.volume=Math.max(0,Math.min(1,t/100)))},seek:function(t){var e,a=f.audio;a&&(e=a.duration)&&isFinite(e)&&(a.currentTime=e*(t/100))},seekTime:function(t){var e,a=f.audio,n=0;a&&a.duration&&isFinite(a.duration)&&(3===(e=String(t).split(":")).length?(n+=3600*parseInt(e[0],10),n+=60*parseInt(e[1],10),n+=parseInt(e[2],10)):2===e.length&&(n+=60*parseInt(e[0],10),n+=parseInt(e[1],10)),isNaN(n)||(a.currentTime=n))}};/MSIE|Edge|Trident/i.test(navigator.userAgent)||-1!=navigator.userAgent.indexOf("Safari")&&navigator.userAgent.indexOf("Chrome");var y=!1;function m(){var t=navigator.userAgent||"",e=!1;try{e=window.matchMedia&&window.matchMedia("(max-width: 1119px)").matches}catch(t){e=window.innerWidth<=1119}return!!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||e)}(/MSIE|Edge|Trident/i.test(navigator.userAgent)||-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))&&(y=!0),/iPad/i.test(navigator.userAgent)&&(y=!0),/iPhone/i.test(navigator.userAgent)&&(y=!0),screen.width<=1119&&(y=!0),t.qtMplayerGlobalSongData={title:!1,artist:!1,thumbnail:!1},t.qtMplayerPlaylistCue={minicue:!1,tadv:!1,init:function(){var e,a,n,i,r;t.qtMplayerPlaylistCue.destroy(),(e=t("li.qtmplayer-played")).length>0&&(a=e.offset().left,n=e.width(),i=0,e.append('<div id="qtMplayerPlaylistTrack" class="qtmplayer-playlist__track"><span id="qtMplayerPlaylistTrackAdv" data-qtmplayer-trackadv class="qtmplayer-track-adv qtmplayer-content-accent"></span>
30<span id="qtMplayerPlaylistMinicue" class="qtmplayer-playlist-minicue"></span></div>'),t.qtMplayerPlaylistCue.minicue=t("#qtMplayerPlaylistMinicue"),t.qtMplayerPlaylistCue.tadv=t("#qtMplayerPlaylistTrackAdv"),(r=t("#qtMplayerPlaylistTrack")).off("mousemove").off("click"),r.on("mousemove",(function(e){i=e.clientX-a,t.qtMplayerPlaylistCue.minicue.css({left:i,transition:"left 0.1s"})})),r.on("click",(function(e){t.qtPlayerObj.uniPlayer.seek((e.clientX-a)/n*100)})))},update:function(e){t.qtMplayerPlaylistCue.tadv&&t.qtMplayerPlaylistCue.tadv.css({width:e+"%"}),t.qtMplayerPlaylistCue.minicue},destroy:function(){t("#qtMplayerPlaylistTrack").remove()}},t.qtRaphaelCircle={container:t(".qtmplayer-circularplayer"),findXY:function(t){var e=0,a=0;do{e+=t.offsetLeft,a+=t.offsetTop}while(t=t.offsetParent);return[e,a]},getScrollLeft:function(){return t("body").scrollLeft+document.documentElement.scrollLeft},getScrollTop:function(){return t("body").scrollTop+document.documentElement.scrollTop},init:function(){if(void 0===t||!t.qtPlayerObj||!t.qtPlayerObj.songdata||"radio"!==t.qtPlayerObj.songdata.type){var e=t.qtRaphaelCircle,a=t("#qtdonut"),n=a.height(),i=a.width(),r=n/2;e.destroy(),a.find("svg").remove(),e.R=r;var o=new Raphael("qtdonut",i,n);o.customAttributes.arc=function(t,e,a,n,i){var r=360/n*a,o=(90-r)*Math.PI/180,s=t+i*Math.cos(o),l=e-i*Math.sin(o);return{path:n===a?[["M",t,e-i],["A",i,i,0,1,1,t,e-i]]:[["M",t,e-i],["A",i,i,0,+(r>180),1,s,l]]}};var s=o.path().attr({stroke:"#fff","stroke-width":"22px",arc:[0,0,0,0,0]});e.arc=s,e.container=a;var l,u,c,d,p,h,f=navigator.userAgent,y=f.match(/opera/i),m=f.match(/chrome/i),g=f.match(/ipad|iphone/i),v=y||m?359.9:360;a.on("click","svg",(function(r){r=r||window.event,g&&r.touches&&(r=r.touches[0]),r.pageX||r.pageY?[r.pageX,r.pageY]:(r.clientX||r.clientY)&&[r.clientX+e.getScrollLeft(),r.clientY+e.getScrollTop()],u=a.offset().left,c=a.offset().top-t(window).scrollTop(),d=r.clientX-(u+i/2),p=r.clientY-(c+n/2),l=Math.floor(v-(180*Math.atan2(d,p)/Math.PI+180)),h=l/v*100,t.qtPlayerObj.uniPlayer.seek(h)})),a.addClass("active")}},update:function(e){if(void 0===t||!t.qtPlayerObj||!t.qtPlayerObj.songdata||"radio"!==t.qtPlayerObj.songdata.type){var a=t.qtRaphaelCircle,n=a.R;void 0!==e&&void 0!==a.arc&&(isNaN(e)||a.arc.animate({arc:[n,n,100*e,100,n]},2,"ease"))}},destroy:function(){var e=t.qtRaphaelCircle;void 0!==e.arc&&(e.arc.remove(),e.container.removeClass("active")),void 0!==e.container&&e.container.removeClass("active")}},t.qtPlayerObj={isSoundApi:!1,playing:!1,hasDoneAutoplay:!1,masterVolume:t("#qtmplayer").data("qtmplayer-startvol"),ProRadioUserManagerIntegration:{shouldBlock:function(e){if(void 0!==t.ProRadioUserManager){void 0===e&&(e=t.qtPlayerObj.songdata);var a=t.ProRadioUserManager,n=t.qtPlayerObj.songdata.blocking;return void 0!==n&&(console.log(n),a.fn.modal.openModal(a,n),!0)}}},uniPlayer:{btnPlay:t("[data-qtmplayer-playbtn]"),canMoove:!0,pause:function(){t.qtPlayerObj.playing=!1,"object"==typeof t.qtmplayerRadioFeedObj&&t.qtmplayerRadioFeedObj.fn.stopFeed(),t.qtPlayerObj.interface.justStop(),"radio"===t.qtPlayerObj.songdata.type?(t.qtPlayerObj.songdata.file_hold=t.qtPlayerObj.songdata.file,t.qtPlayerObj.songdata.file="file_hold",t.qtPlayerObj.interface.doSpinner(!1),c(t.qtPlayerObj.songdata)?f.stop():!0===t.qtPlayerObj.isSoundApi?t.qtWebApiPlayer.stop():t.qtSMPO.smStop()):c(t.qtPlayerObj.songdata)?f.pause():!0===t.qtPlayerObj.isSoundApi?t.qtWebApiPlayer.pause():t.qtSMPO.smPause()},webapiPlay:function(){t.qtWebApiPlayer.play(t.qtPlayerObj.songdata.file)},radioFeedCallback:function(e){var a=t.qtPlayerObj.imgCover.attr("data-fallback");void 0!==e?t.qtPlayerObj.imgCover.attr("src",e).show():a?t.qtPlayerObj.imgCover.attr("src",a).show():t.qtPlayerObj.imgCover.hide()},play:function(){var i,r,o=String(window.location.hostname||window.location.host||"").toLowerCase().replace(/^www\./,""),s=String(window.QTMPLAYER_VALID_DOMAIN||"").toLowerCase().replace(/^www\./,"");return!(!0!==window.QTMPLAYER_FRONT_GUARD_OK||!s||o!==s)&&("function"==typeof t.qtmplayerRadioFeedObj.fn.updateMediaData&&t.qtmplayerRadioFeedObj.fn.updateMediaData(),"pause"!==t.qtPlayerObj.uniPlayer.btnPlay.find("i.material-icons").html()?c(t.qtPlayerObj.songdata)&&void 0===window.Hls&&!d()?(i=t.qtPlayerObj.songdata,"function"!=typeof(r=function(){t.qtPlayerObj.uniPlayer.play()})&&(r=function(){}),void(c(i)?void 0!==window.Hls||d()?r():(t.qtPlayerObj.interface.doSpinner(!0),u((function(){if(void 0===window.Hls)return t.qtPlayerObj.interface.doSpinner(!1),void console.error("QTMPlayer: HLS stream declared but hls.js is not available.");r()}))):r())):void(a&&n&&(t.qtPlayerObj.uniPlayer.btnPlay.find("i.material-icons").html("pause"),t("#qtmplayerPlay").addClass("qtmplayer-is-playing"),c(t.qtPlayerObj.songdata)?(t.qtWebApiPlayer&&"function"==typeof t.qtWebApiPlayer.stop&&t.qtWebApiPlayer.stop(),"radio"===t.qtPlayerObj.songdata.type&&"file_hold"===t.qtPlayerObj.songdata.file&&(t.qtPlayerObj.songdata.file=t.qtPlayerObj.songdata.file_hold,"object"==typeof t.qtmplayerRadioFeedObj&&t.qtmplayerRadioFeedObj.fn.pushFeed(t.qtPlayerObj.songdata)),void 0!==t.qtMplayerStats&&t.qtMplayerStats.sendHit(t.qtPlayerObj.songdata),e&&console.log("QTMPlayer HLS: uniPlayer play branch",t.qtPlayerObj.songdata),f.play(t.qtPlayerObj.songdata.file)):!0===t.qtPlayerObj.isSoundApi?(f.stop(),t.qtWebApiPlayer.play(t.qtPlayerObj.songdata.file)):(f.stop(),"radio"===t.qtPlayerObj.songdata.type&&"file_hold"===t.qtPlayerObj.songdata.file&&(t.qtPlayerObj.songdata.file=t.qtPlayerObj.songdata.file_hold,"object"==typeof t.qtmplayerRadioFeedObj&&t.qtmplayerRadioFeedObj.fn.pushFeed(t.qtPlayerObj.songdata)),void 0!==t.qtMplayerStats&&t.qtMplayerStats.sendHit(t.qtPlayerObj.songdata),console.log(t.qtPlayerObj.songdata),t.qtSMPO.smPause(),t.qtSMPO.smPlay()),setTimeout((function(){if(100!==t.qtPlayerObj.masterVolume){var e=t.qtPlayerObj.masterVolume;t.qtPlayerObj.uniPlayer.setVolume(e),t("[data-qtmplayer-vball]").css({top:100-e}),t("[data-qtmplayer-vfill]").css({height:e+"%"})}}),300),t.qtPlayerObj.playing=!0)):void 0)},seek:function(e){isNaN(e)||((e=parseFloat(e))>100&&(e=100),c(t.qtPlayerObj.songdata)?f.seek(e):!0===t.qtPlayerObj.isSoundApi?t.qtWebApiPlayer.seek(e):t.qtSMPO.smSeek(e))},seekTime:function(e){"00:00"===e&&(e="00:00:00"),c(t.qtPlayerObj.songdata)?f.seekTime(e):!0===t.qtPlayerObj.isSoundApi?t.qtWebApiPlayer.seekTime(e):t.qtSMPO.smSeekTime(e)},setVolume:function(e){t.qtPlayerObj.masterVolume=e,c(t.qtPlayerObj.songdata)?f.setVolume(e):!0===t.qtPlayerObj.isSoundApi?t.qtWebApiPlayer.setvolume(e/100):t.qtSMPO.sm.setVolume(e)}},interface:{window:t(window),body:t("body"),htmlAndbody:t("html,body"),player:t("#qtmplayer"),controls:t("#qtmplayer-control
30s"),qtmplayer:t("#qtmplayer-playlistcontainer"),playlist:t("#qtmplayer-playlist ul"),grooveadv:t("#qtMplayerTadv"),buffer:t("#qtMplayerBuffer"),progWave:t("#qtMplayerprogWave"),advance:t("#qtMplayerTadv"),btnPlay:t("[data-qtmplayer-playbtn]"),control:t("#qtmplayerTrackControl"),minicue:t("#qtMplayerMiniCue"),minicueT:t("#qtMplayerPlaylistTrackMinicue"),trackAdvance:t("#qtmplayerTrackAdv"),time:t("#qtmplayerTime"),autoplay:!m()&&t("#qtmplayer").data("autoplay"),artwork:t("#qtmplayer").data("artwork"),dragging:!1,vdragging:!1,debug:function(e){t("#qtmplayerDebug").prepend(e+"<br>")},syncButtonsByFile:function(e,a,n){var i=t.qtPlayerObj,r=i.interface;if(e&&a){"file_hold"===e&&i.songdata&&i.songdata.file_hold&&(e=i.songdata.file_hold);var o=n?t(n):r.body,s=(""+e).replace(/"/g,'\\"'),l=o.find('.qtmplayer-play-btn[data-qtmplayer-file="'+s+'"]');l.length&&(r.switchicon(l.find("i.material-icons"),a),l.each((function(){var e=t(this).closest(".qtmplayer-trackitem");e.length&&("pause"===a?e.addClass("qtmplayer-played"):e.removeClass("qtmplayer-played"))})))}},preloadTrack:function(e){var a=t.qtPlayerObj,n=a.interface;a.interface.doSpinner(!0);n.playlist.find("li:first-child .qtmplayer-play-btn").each((function(e,n){var r=t(n);a.songdata={},t.each(r.data(),(function(t,e){var n=t.replace("qtmplayer","").toLowerCase();a.songdata[n]=e})),t(".qtmplayer-played").removeClass("qtmplayer-played"),r.closest(".qtmplayer-trackitem").addClass("qtmplayer-played");n=t.qtPlayerObj.interface.controls;i&&a.interface.showhide(),a.interface.deployTrack()&&a.interface.autoplay&&setTimeout(a.uniPlayer.play,2200)}))},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||t(window).width()<1170},deployTrack:function(n){var r,o,s,l=t.qtPlayerObj,p=l.interface,h=p.controls,f=l.songdata,g=p.qtmplayer,v=t("#qtmplayerDuration"),b=h.find(".qtmplayer__cart"),w=window.location.href,_="";if(""!=f.file){if(!0===y&&t.qtPlayerObj.songdata.file_mobile&&screen.width<=1119&&(t.qtPlayerObj.songdata.file=t.qtPlayerObj.songdata.file_mobile),t.qtWebApiPlayer&&"function"==typeof t.qtWebApiPlayer.prepareSource&&t.qtWebApiPlayer.prepareSource(f.file,c(f)),c(f)&&(d()?e&&console.log("QTMPlayer HLS: trusted native HLS available, skipping hls.js preload"):u()),p.doSpinner(!0),0==a&&setTimeout(p.doSpinner,1e3),t.qtPlayerObj.interface.waveformAdvance=!1,"radio"===f.type){if(p.minicue.hide(),p.buffer.hide(),p.trackAdvance.hide(),v.hide(),c(f)&&(p.time.html(""),p.advance.width(0),p.buffer.width(0)),p.control.addClass("qtmplayer-is-radio"),t("#qtmplayerTrackControl canvas").remove(),t.qtmplayerRadioFeedObj){if(t.qtPlayerObj.songdata.callBack=!1,t.qtPlayerObj.interface.artwork){t.qtPlayerObj.imgCover=t.qtPlayerObj.interface.controls.find(".qtmplayer__cover img");var x=t.qtPlayerObj.imgCover.attr("src");x&&t.qtPlayerObj.imgCover.attr("data-fallback",x),t.qtPlayerObj.interface.controls.find(".qtmplayer__cover img").attr("data-fallback",x),t.qtPlayerObj.songdata.callBack=t.qtPlayerObj.uniPlayer.radioFeedCallback}t.qtmplayerRadioFeedObj.fn.pushFeed(t.qtPlayerObj.songdata)}}else if(p.control.removeClass("qtmplayer-is-radio"),t.qtmplayerRadioFeedObj&&t.qtmplayerRadioFeedObj.fn.stopFeed(),p.minicue.show(),p.buffer.show(),p.trackAdvance.show(),v.show(),!1===p.isMobile()){var q=new RegExp(location.host);try{q.test(f.file)&&"function"==typeof qtDrawAudio?(qtDrawAudio(f.file),t.qtPlayerObj.interface.waveformAdvance=t("#qtwaveformClone")):t("#qtmplayerTrackControl canvas").remove()}catch(t){console.log(t)}}if(""==f.buylink||"undefined"==f.buylink||void 0===f.buylink?b.css({opacity:0,"pointer-events":"none"}):b.css({opacity:1,"pointer-events":"initial"}),t(".qtmplayer__actions .added_to_cart.wc-forward").remove(),""!==f.link?h.find(".qtmplayer__title").html('<a href="'+f.link+'"><strong>'+f.title+"</strong></a> "):h.find(".qtmplayer__title").html(f.title),h.find(".qtmplayer__artist").text(f.artist),void 0!==f.album&&""!==f.album&&(h.find(".qtmplayer__title").append("["+f.album+"]"),t.qtMplayerGlobalSongData.album=f.album),h.find(".qtmplayer__cover").attr("href",f.link),t.qtMplayerGlobalSongData.title=f.title,t.qtMplayerGlobalSongData.artist=f.artist,f.cover?t.qtMplayerGlobalSongData.thumbnail=f.cover:t.qtMplayerGlobalSongData.thumbnail=!1,b.addClass("qtmplayer__disabled"),b.off("click"),"string"==typeof f.buylink&&""!==f.buylink.trim()){if(b.removeClass("qtmplayer__disabled"),r=f.buylink,void 0!==f.buylink){f.buylink=f.buylink.toString(),f.buylink.match(/^-?\d+$/)?(o={"add-to-cart":f.buylink},s=jQuery.param(o),r=-1!=w.indexOf("?")?w+"&"+s:w+"?"+s,_=" product_type_simple add_to_cart_button ajax_add_to_cart ",b.attr("href",r).attr("data-quantity","1").attr("data-product_id",f.buylink).addClass(_).show()):b.attr("href",f.buylink).removeClass("product_type_simple").removeClass("add_to_cart_button").removeClass("ajax_add_to_cart").show();try{new URL(r,window.location.origin).host!==window.location.host||t("body").hasClass("qtmplayer--page-popup")?b.attr("target","_blank"):b.attr("target","")}catch(t){b.attr("target","")}}"download"==f.icon&&(f.icon="file_download"),b.show()}else b.hide(),b.removeClass("product_type_simple").removeClass("add_to_cart_button").removeClass("ajax_add_to_cart");
30return b.find("i").html(f.icon),p.advance.width(0),!1!==p.waveformAdvance&&void 0!==p.waveformAdvance&&p.waveformAdvance.css({"clip-path":"polygon(0 0, 0% 0, 0% 100%, 0% 100%)"}),p.buffer.width(0),""!==f.cover&&void 0!==f.cover?(g.find(".qtmplayer__album img").attr("src",f.cover).show(),h.find(".qtmplayer__cover img").attr("src",f.cover).show(),h.find(".qtmplayer__bgimg").css({"background-image":"url("+f.cover+")"})):(g.find(".qtmplayer__album img").hide(),h.find(".qtmplayer__cover img").hide(),h.find(".qtmplayer__bgimg").css({"background-image":"none"})),g.find(".qtmplayer-albumlink").attr("href",f.link),i&&p.showhide(),p.btnPlayClick(),p.playTrack(),n&&!m()&&l.uniPlayer.play(),!0}},btnPlaySetup:function(e){var a=t.qtPlayerObj,n=a.interface.btnPlay;a.uniPlayer;n.off("click"),n.on("click",(function(e){e.preventDefault(),"pause"===n.find("i").html()?t(".qtmplayer-played .qtmplayer-play-btn").click():t("#qtmplayer-playlist li:first-child").find(".qtmplayer-play-btn").click()}))},btnPlayClick:function(){var e="pause",i=t.qtPlayerObj,r=i.interface,o=r.btnPlay,s=i.uniPlayer;o.off("click"),o.on("click",(function(i){if(i.preventDefault(),"pause"!==(e=o.find("i.material-icons").html())&&t.qtWebApiPlayer&&"function"==typeof t.qtWebApiPlayer.userGesture&&t.qtWebApiPlayer.userGesture(r.getCurrentFile(),c(s.songdata)),"pause"===e)s.pause();else if(0==a){if(r.doSpinner(!0),r.initializeAudio(),!0===t.qtPlayerObj.ProRadioUserManagerIntegration.shouldBlock())return void r.doSpinner(!1);n=!0,setTimeout(s.play,200)}else{if(!0===t.qtPlayerObj.ProRadioUserManagerIntegration.shouldBlock())return void r.doSpinner(!1);n=!0,s.play()}return!0}))},getCurrentFile:function(){var e=t.qtPlayerObj,a=e.songdata&&e.songdata.file?e.songdata.file:"";return"file_hold"===a&&e.songdata&&e.songdata.file_hold&&(a=e.songdata.file_hold),a||""},playTrack:function(){var e=t.qtPlayerObj,i=e.interface,r=e.uniPlayer;i.resumeRadio&&clearTimeout(i.resumeRadio),i.body.off("click.proradioSyncBar","#qtmplayerPlay").on("click.proradioSyncBar","#qtmplayerPlay",(function(){setTimeout((function(){console.log("Sync play");var t=i.getCurrentFile?i.getCurrentFile():e.songdata&&e.songdata.file?e.songdata.file:"";t&&i.syncButtonsByFile(t,!0===e.playing?"pause":"play")}),350)})),i.body.off("click",".qtmplayer-play-btn"),i.body.on("click",".qtmplayer-play-btn",(function(o){o.preventDefault(),n=!0,i.doSpinner(!0);var s=t(this),l=s.closest(".qtmplayer-trackitem"),u=l.hasClass("qtmplayer-donut"),c=(s.find("i"),s.attr("data-qtmplayer-file")),d=i.body.find(".qtmplayer-played");if(t.qtWebApiPlayer&&"function"==typeof t.qtWebApiPlayer.userGesture&&t.qtWebApiPlayer.userGesture(c,"hls"===String(s.attr("data-qtmplayer-streamtype")||"").toLowerCase()),l.hasClass("qtmplayer-played")&&"pause"===s.find("i").html())return i.syncButtonsByFile(c,"play"),r.pause(),void o.stopPropagation();if(c===i.getCurrentFile()){if(d.length>0){if("pause"===e.uniPlayer.btnPlay.find("i.material-icons").html())return i.syncButtonsByFile(c,"play"),r.pause(),void o.stopPropagation();r.pause(),i.syncButtonsByFile(c,"play")}}else i.syncButtonsByFile(i.getCurrentFile(),"play"),i.justStop(),r.pause();void 0===s.data("qtmplayer-type")&&s.data("qtmplayer-type","track"),e.songdata={},t.each(s.data(),(function(t,a){var n=t.replace("qtmplayer","").toLowerCase();e.songdata[n]=a})),i.deployTrack(),!0!==t.qtPlayerObj.ProRadioUserManagerIntegration.shouldBlock()&&(i.seekBtn(),i.syncButtonsByFile(c,"pause"),t("#qtdonut").length>0&&t("#qtdonut").removeAttr("id"),u?(l.attr("id","qtdonut"),t.qtMplayerPlaylistCue.destroy(),"track"===e.songdata.type&&t.qtRaphaelCircle.init()):"track"===e.songdata.type&&t.qtMplayerPlaylistCue.init(),0==a?(i.initializeAudio(),i.doSpinner(!0),setTimeout(r.play,2200)):r.play(),o.stopPropagation())}))},switchicon:function(t,e){"play"===e?t.html("play_arrow"):"pause"===e&&t.html("pause")},progressUpdate:function(e){var a=t.qtPlayerObj.interface,n=100*e;a.buffer.css({width:n+"%"}),a.minicue.addClass("actvd")},timeupdate:function(e,a){var n=t.qtPlayerObj.interface,i=100*e;n.advance.css({width:i+"%",transition:"width 0.3s"}),!1!==n.waveformAdvance&&void 0!==n.waveformAdvance&&n.waveformAdvance.css({transition:"clip-path 0.3s","clip-path":"polygon(0 0, "+i+"% 0, "+i+"% 100%, 0% 100%)"}),n.time.html(a),e>
30.001&&(n.doSpinner(),setTimeout(n.doSpinner,300)),t("#qtMplayerprogWave")&&t("#qtMplayerprogWave").css({width:i+"%"}),!1===n.dragging&&n.minicue.css({transition:"left 0.3s",left:i+"%"})},seekBtn:function(){var e,a=t.qtPlayerObj,n=a.interface,i=n.control,r=n.minicue,o=i.offset().left,s=i.outerWidth(),l="radio"==a.songdata.type?"radio":"track",u=!1;if(yOffset=0,dragItem=r,i.off("touchstart").off("touchend").off("touchmove").off("mousedown").off("mouseup").off("mouseleave").off("mousemove"),"radio"===l)r.css({left:0});else{function c(t){n.dragging=!0,u=!0,r.addClass("qtmplayer-touch")}function d(t){n.dragging=!1,u=!1,r.removeClass("qtmplayer-touch")}function p(t){o=i.offset().left,s=i.outerWidth(),e="touchmove"===t.type?t.originalEvent.touches[0].pageX-o:t.clientX-o,u&&function(t){var e=t/s;if(e<0||e>99.9)return;r.css({left:t}),a.uniPlayer.seek(100*e)}(e)}i.on("touchstart",c),i.on("touchend",d),i.on("touchmove",p),i.on("mousedown",c),i.on("mouseup",d),i.on("mouseleave",d),i.on("mousemove",p)}},appendAlbum:function(){var e,a,n,i=t.qtPlayerObj,r=i.interface,o=(r.controls,window.location.href),s="",l="",u=t("[data-qtmplayerNotif]");r.body.on("click","[data-qtmplayer-addrelease]",(function(c){c.preventDefault();var d=t(this),p=d.data("qtmplayer-addrelease"),h=d.data("playnow"),f="qtmplayer-latestadded";"0"==d.data("qtmplayer-addrelease")||d.hasClass("disabled")||t.getJSON(p,(function(c){var p,y;c.length;t.each(c,(function(u,c){e=c.buylink,c.buylink.match(/^-?\d+$/)&&(a={"add-to-cart":c.buylink},n=jQuery.param(a),o&&(e=o.indexOf("?")>=0?o+"&"+n:o+"?"+n),l=" product_type_simple add_to_cart_button ajax_add_to_cart ",s=' data-quantity="1" data-product_id="'+c.buylink+'" '),y='<i class="material-icons">'+c.icon+"</i>",void 0!==c.price&&""!==c.price&&(y='<span class="qtmplayer-price qtmplayer-btn qtmplayer-btn-xs qtmplayer-btn-primary">'+c.price+"</span>"),p='<li class="qtmplayer-trackitem dynamic">',""!==c.cover&&(p+='<img src="'+c.cover+'">'),p+='<span class="qtmplayer-play qtmplayer-link-sec qtmplayer-play-btn '+f+'" data-qtmplayer-type="track" data-qtmplayer-cover="'+c.cover+'" data-qtmplayer-price="'+c.price+'" data-qtmplayer-file="'+c.file+'" data-qtmplayer-title="'+c.title+'"data-qtmplayer-artist="'+c.artist+'"data-qtmplayer-album="'+c.album+'" data-qtmplayer-link="'+c.link+'" data-qtmplayer-buylink="'+c.buylink+'" data-qtmplayer-icon="'+c.icon+'"><i class="material-icons">play_arrow</i></span><p>\t<span class="qtmplayer-tit">'+c.title+'</span><br>\t<span class="qtmplayer-art">'+c.artist+'</span></p><a href="'+e+'" '+s+' class="qtmplayer-cart '+l+'" target="_blank">'+y+"</a></li>",r.playlist.append(p),0===u&&h&&(t.qtPlayerObj.interface.justStop(),t.qtPlayerObj.uniPlayer.pause(),i.songdata=c,t("."+f).click()),f=""})),r.showhide(),1===d.data("clickonce")?(d.hide(),t(d.data("notificate")).addClass("active")):d.addClass("disabled"),u.addClass("wait").delay(1500).promise().done((function(){u.removeClass("wait")})),d.attr("data-qtmplayer-addrelease","0")}))}))},showhide:function(){var e=t.qtPlayerObj.interface.controls;e.addClass("open"),ot=setTimeout((function(){e.removeClass("open"),clearTimeout(ot)}),4e3)},prevNext:function(){t.qtPlayerObj.interface.controls.on("click",".qtmplayer__prev, .qtmplayer__next",(function(e){e.preventDefault();var a=t(this);t.qtPlayerObj.interface.doSpinner(!0),("prev"===a.data("control")?t(".qtmplayer-played").prev():t(".qtmplayer-played").next()).find(".qtmplayer-play-btn").click()}))},doSpinner:function(e,a){var n=t("[data-qtmplayerNotif]");a?n.html(a):n.html(""),!0===e?n.addClass("active qtmplayer-spinner"):n.removeClass("active").removeClass("qtmplayer-spinner")},resumeRadio:!1,_wasRadioPlayingOnOffline:!1,resumeAttempts:0,resumeMaxAttempts:5,next:function(){var e=t.qtPlayerObj.interface,a=(t.qtPlayerObj,t(".qtmplayer-played")),n=t(".qtmplayer-played").next();if(e.player.data("qtmplayer-reconnect")&&"radio"===t.qtPlayerObj.songdata.type)if(console.log("resume attempts: "+e.resumeAttempts),console.log(e.player.data("qtmplayer-bufferinglabel")),a.length){if(!(e.resumeAttempts<e.resumeMaxAttempts))return e.resumeAttempts=0,e.justStop(),e.doSpinner(!1),t(".qtmplayer__title").html(e.player.data("qtmplayer-bufferingfail")),void t(".qtmplayer__artist").html("");
30e.justStop(),e.doSpinner(!0,"â"),setTimeout((function(){e.doSpinner(!0,"â")}),350),t(".qtmplayer__title").html(e.player.data("qtmplayer-bufferinglabel")),t(".qtmplayer__artist").html(""),e.resumeRadio&&clearTimeout(e.resumeRadio),e.resumeRadio=setTimeout((function(){console.log("Restart Radio"),a.find(".qtmplayer-play-btn").click(),e.resumeAttempts+=1}),7e3)}else console.log("Current length FALSE");else{var i=t(".qtmplayer-played").closest(".proradio-chart-track");if(i.length){var r=i.next(".proradio-chart-track").find(".collapsible-header");r.length&&(r.click(),n=i.next(".proradio-chart-track").find(".qtmplayer-trackitem"))}void 0!==n&&n.length>0?n.find(".qtmplayer-play-btn").click():e.justStop()}},justStop:function(){t.qtPlayerObj.interface.switchicon(t(".qtmplayer-played .qtmplayer-play-btn i.material-icons"),"play"),t.qtPlayerObj.uniPlayer.btnPlay.removeClass("qtmplayer-is-playing").find("i.material-icons").html("play_arrow")},skipCue:function(){var e=t.qtPlayerObj,i=e.interface;b=i.btnPlay,p=e.uniPlayer,i.body.on("click","[data-qtplayercue]",(function(){var r=t(this),o=r.data("qttrackurl"),s=r.data("qtplayercue");void 0!==e.songdata.type&&(e.songdata.file===o?t.qtPlayerObj.playing?e.uniPlayer.seekTime(s):0==a?(i.doSpinner(!0),i.initializeAudio(),n=!0,setTimeout(p.play,200)):(n=!0,p.play()):console.log("Not this track"))}))},volBtn:function(){var e=t.qtPlayerObj.interface,a=t("[data-qtmplayer-vcontrol]");if(0!==a.length){a.offset().top,a.outerHeight(),t("[data-qtmplayer-vtrack]");var n=t("[data-qtmplayer-vfill]"),i=t("[data-qtmplayer-vball]"),r=a.offset().top,o=(a.height(),t("[data-qtmplayer-vicon]"),100),s=100;a.on("touchstart",d),a.on("touchend",p),a.on("touchmove",h),a.on("mousedown",d),a.on("mouseup",p),a.on("mouseleave",p),a.on("mousemove",h);var u=!1;t("body").on("click","[data-qtmplayer-vicon]",(function(t){t.preventDefault(),o>1?(s=o,f(0)):f(s),t.stopPropagation()}));var c=t.qtPlayerObj.masterVolume;100!==c&&(t.qtPlayerObj.uniPlayer.setVolume(c),f(c))}function d(t){e.vdragging=!0,u=!0,i.addClass("qtmplayer-touch")}function p(t){e.vdragging=!1,u=!1,i.removeClass("qtmplayer-touch")}function h(e){r=a.offset().top-t(window).scrollTop(),u&&(a.offset().top,a.outerHeight(),"touchmove"===e.type?l=r-e.originalEvent.touches[0].pageY:l=r-e.clientY,f(100-Math.abs(l)))}function f(e){e<0&&(e=0),e>95&&(e=100),i.css({top:100-e}),o=e,n.css({height:o+"%"}),t.qtPlayerObj.uniPlayer.setVolume(o),t("[data-proradio-volumeslider]").val(o);var a=t("[data-qtmplayer-vicon]");o>1?o<50?a.html("volume_down"):a.html("volume_up"):a.html("volume_off")}},setDuration:function(e){"NaN:NaN"!==e&&"00:00"!==e?t("#qtmplayerDuration").html(e):t("#qtmplayerDuration").html()},bufferStart:function(){t("#qtmplayerDuration").html("..."),t("#qtmplayer-buffer").show(),t("#qtMplayerMiniCue, #qtMplayerTadv").animate({opacity:1},"fast").css({"pointer-events":"none"})},bufferEnd:function(){t("#qtmplayer-buffer").hide();setTimeout((function(){t("#qtMplayerMiniCue, #qtMplayerTadv").css({"pointer-events":"all"})}),300)},screenResize:function(){var e,a=t.qtPlayerObj.interface,n=a.window,i=n.width(),r=n.height();n.off("resize.qtmplayerLayout").on("resize.qtmplayerLayout",(function(){a.body.addClass("qtmplayer-layout-resizing"),clearTimeout(e),e=setTimeout((function(){var e=n.width(),o=n.height();e===i&&o===r||(a.seekBtn(),t.qtMplayerPlaylistCue.init(),i=e,r=o),a.player&&a.player[0]&&a.player[0].getBoundingClientRect(),a.body.removeClass("qtmplayer-layout-resizing")}),150)}))},initializeAudio:function(){if(t.qtPlayerObj.interface.doSpinner(!0),t.qtSMPO.init())return a=!0,!0},resumeAudioOld:function(){var e=t.qtPlayerObj,a=e.interface;a.initializeAudio(),n=!0,a.autoplay&&setTimeout(e.uniPlayer.play,2200),document.removeEventListener("click",a.resumeAudio)},zoomArtwork:function(){var e=t("#qtmplayer"),a=e.find("#qtmplayer-controls .qtmplayer__covercontainer"),n=a.find(".qtmplayer__cover"),i="1"===e.attr("data-qtmplayer-cover-zoom");n.off(".qtmplayerZoom"),!i||window.innerWidth<1201||!n.length?a.find(".qtmplayer__coverzoom").remove():(a.css("position","relative"),a.find(".qtmplayer__coverzoom").length||a.append(t('<img class="qtmplayer__coverzoom">').css({position:"absolute",display:"block",opacity:0,visibility:"hidden",
30width:"300px",height:"300px",maxWidth:"none",left:"50%",bottom:"100%",transform:"translateX(-50%)",objectFit:"cover",pointerEvents:"none",borderRadius:"10px",zIndex:100})),n.on("mouseenter.qtmplayerZoom",(function(){ 31var e=t(this).find("img").attr("src"),a=t(this).closest(".qtmplayer__covercontainer").find(".qtmplayer__coverzoom");e&&a.attr("src",e).css("visibility","visible").stop(!0).animate({opacity:1},200)})).on("mouseleave.qtmplayerZoom",(function(){t(this).closest(".qtmplayer__covercontainer").find(".qtmplayer__coverzoom").stop(!0).animate({opacity:0},200,(function(){t(this).css("visibility","hidden")}))})))},resumeAudio:function(){var e=t.qtPlayerObj.interface;e.log("resumeAudio A"),e.initializeAudio(),n=!0,e.autoplay&&(e.log("resumeAudio B"),setTimeout((function(){e.btnPlay.click(),e.log("resumeAudio A1"),setTimeout((function(){e.log("resumeAudio AB"),!1===e.isMobile()?e.log("resumeAudio AB 0"):(e.btnPlay.click(),e.log("resumeAudio AB 1"))}),10)}),2200)),e.log("resumeAudio C"),document.removeEventListener("click",e.resumeAudio)},triucco:function(){var e=t("body"),a=t.qtPlayerObj.interface;t("#qtmusicplayer").addClass("qt-mplayer-mobile"),a.initializeAudio(),a.resumeAudio(),e.addClass("qt-mplayer-enabled"),a.log("mobile player enabled"),setTimeout((function(){a.doSpinner()}),1200)},log:function(e){var a=t("#qtmPlayerDebugger");a.length>0&&a.append(e+"<br>")}},initPlayer:function(){if(e&&t("#qtmplayer-playlist").append('<div class="qtmplayer__debugger" id="qtmPlayerDebugger"><h5>Player Debug</h5></div>'),t(".qtmplayer__controllayer_noky").length>0)t(".qtmplayer__controllayer_noky").animate({opacity:.6},2e3);else{var a,n=t.qtPlayerObj,i=n.interface,r=i.controls,o=i.body;n.songdata={},o.addClass("qtmplayer-enabled"),t(document).on("click","[data-playlistopen]",(function(){o.toggleClass("qtmplayer-openplaylist")})),o.on("click","[data-playeropen]",(function(){o.toggleClass("qtmplayer-open")})),r.find(".qtmplayer__cover").html('<img src="">'),i.qtmplayer.find(".qtmplayer__album").prepend('<img src="">'),y?i.triucco():o.addClass("qt-mplayer-enabled"),i.preloadTrack(!1),i.prevNext(),i.appendAlbum(),i.seekBtn(),i.volBtn(),i.zoomArtwork(),i.bufferEnd(),i.skipCue(),i.screenResize(),r.mouseenter((function(){r.addClass("open"),i.seekBtn(),clearTimeout(a)})).mouseleave((function(){a=setTimeout((function(){r.removeClass("open")}),r.data("hidetimeout"))})),t("body").one("click",(function(e){if(t(window).width()>=1280){var a=t(e.target).closest("a");if(a&&(a.hasClass("qtmplayer__play")||a.hasClass("qtmplayer-play")||a.hasClass("proradio-btn--playmenu")))return;var n=t(e.target).closest("a");if(n&&(n.hasClass("qtmplayer__play")||n.hasClass("qtmplayer-play")||n.hasClass("proradio-btn--playmenu")))return;!1===t.qtPlayerObj.hasDoneAutoplay&&t.qtPlayerObj.interface.autoplay&&setTimeout((function(){console.log("%c Pro.Radio player - do Autoplay! ","background: #030303; color: #bada55"),t("#qtmplayerPlay").click(),t.qtPlayerObj.hasDoneAutoplay=!1}),500)}})),t("body").on("change","[data-proradio-volumeslider]",(function(){let e=t(this).val();t.qtPlayerObj.uniPlayer.setVolume(e),t("[data-qtmplayer-vball]").css({top:100-e}),t("[data-qtmplayer-vfill]").css({height:e+"%"})})),t("[data-proradio-volumeslider]").val(t.qtPlayerObj.masterVolume),window.onresize=function(){t("body").hasClass("qtmplayer--page-popup")&&window.resizeTo(380,560)}}}},"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("offline",(function(){var e=t.qtPlayerObj,a=e.interface;e&&e.playing&&e.songdata&&"radio"===e.songdata.type&&(a._wasRadioPlayingOnOffline=!0,a.justStop(),a.doSpinner(!0,"Connection lost, reconnecting..."))})),window.addEventListener("online",(function(){var e=t.qtPlayerObj,a=e.interface;e&&a._wasRadioPlayingOnOffline&&(a._wasRadioPlayingOnOffline=!1,a.next())}))),t(window).on("qtAjaxpageLoadEnd",(function(){if(t(".proradio-infoajax")&&"radiochannel"==t(".proradio-infoajax").data("proradio-posttype")){var e=t(".proradio-infoajax").data("proradio-pageid");0==t.qtPlayerObj.playing&&t('*[data-qtmplayer-qtmpid="'+e+'"]')&&t('*[data-qtmplayer-qtmpid="'+e+'"]').click()}t("[data-proradio-volumeslider]").val(t.qtPlayerObj.masterVolume)})),t(document).ready((function(){0!==t("#qtmplayer-playlist li").length&&t.qtPlayerObj.initPlayer()}))}(jQuery),function(t){"use strict";window.proradio_sync_qtmplayer_buttons=function(e){var a=t.qtPlayerObj;if(a&&a.interface&&a.interface.switchicon){var n=t(e||"body");if(!0===a.playing){var i=a.songdata&&a.songdata.file?a.songdata.file:"";"file_hold"===i&&a.songdata&&a.songdata.file_hold&&(i=a.songdata.file_hold),i&&n.find(".qtmplayer-play-btn[data-qtmplayer-file]").each((function(){var e=t(this),n=e.attr("data-qtmplayer-file")||"",r=e.find("i.material-icons");if(r.length)if(n===i){a.interface.switchicon(r,"pause");var o=e.closest(".qtmplayer-trackitem");o.length&&o.addClass("qtmplayer-played")}else{a.interface.switchicon(r,"play");var s=e.closest(".qtmplayer-trackitem");s.length&&s.removeClass("qtmplayer-played")}}
31))}}},t(window).on("qtAjaxpageLoadEnd",(function(){window.proradio_sync_qtmplayer_buttons(document.body)}))}(jQuery); 32//# sourceMappingURL=qtmplayer-min.js.map
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.