/*! uuCanvas.js { version: "1.0.3", author: "uupaa.js@gmail.com",
                   license: "MIT, Apache License Version 2.0" } */
(function(){var c,i=window,d=document,f=(i.UUMETA_DEBUG||0),q=parseFloat,p=navigator.userAgent,b=!!d.uniqueID,h=!!i.opera,x=p.indexOf("Gecko/")>0,k=p.indexOf("WebKit")>0,w=p.indexOf("Chrome")>0,l=h?(opera.version().replace(/\d$/,"")-0):q((/(?:IE |fox\/|ome\/|ion\/)(\d+\.\d)/.exec(p)||[,0])[1]),v=(function(){try{var y=["1.0","2.0","3.0"],A=3,z,C=b?new ActiveXObject("AgControl.AgControl"):navigator.plugins["Silverlight Plug-In"];while(A--){z=b?C.IsVersionSupported(y[A]):q(/\d+\.\d+/.exec(C.description)[0])>=q(y[A]);if(z){return q(y[A])}}}catch(B){}return 0})(),g=(function(){try{var B=b?new ActiveXObject("ShockwaveFlash.ShockwaveFlash"):navigator.plugins["Shockwave Flash"],z=b?B.GetVariable("$version").replace(/,/g,"."):B.description,y=/\d+\.\d+/.exec(z);
return y?q(y[0],10):0}catch(A){}return 0})(),m=q(((/(?:rv\:|ari\/|sto\/)(\d+\.\d+(\.\d+)?)/.exec(p)||[,0])[1]).toString().replace(/[^\d\.]/g,"").replace(/^(\d+\.\d+)(\.(\d+))?$/,"$1$3")),o=(function(){var z=[],y=256;for(;y<512;++y){z.push(y.toString(16).slice(1))}return z})(),r=function(D,y,B,A){var z,C=(A===void 0)||A;for(z in y){if(C||!(z in D)){D[z]=y[z]}}return B?c.mix(D,B,void 0,C):D},e=function(z){if(!b&&(h&&l>=9.5)){return Array.prototype.slice.call(z,0)}var C=[],y=-1,A=0,B=z.length;for(;A<B;++A){C[++y]=z[A]}return C},a={},u=0,n=[[],[]],j="uuqid";c={ie:b,iemode8:b&&d.documentMode>=8,quirks:(d.compatMode||"")!=="CSS1Compat",opera:h,gecko:x,gecko191:(x&&m>=1.91),firefox:p.indexOf("Firefox/")>0,webkit:k,webkit522:(k&&m>=522),webkit530:(k&&m>=530),chrome:w,safari:!w&&p.indexOf("Safari")>0,iphone:k&&/iPod|iPhone/.test(p),uaver:l,slver:v,flashver:g,enginever:m,canvas:(b&&l>=6)||(h&&l>=9.2)||(x&&m>=1.81)||(k&&m>=522),runstyle:b?"currentStyle":(i.getComputedStyle||d.defaultView.getComputedStyle),imagedir:(i.UUMETA_IMAGE_DIR||".").replace(/\/+$/,""),blackout:0,debug:f,hex:o,mix:r,toArray:e};
c.uid=function(z){var y;return z[j]||(a[z[j]=y=++i[j]]=z,y)};c.uid2node=function(y){return a[y]};c.uid2node.refHash=function(){return a};c.boot=function(z,y){(u&&!c.blackout)?z(257):n[y?0:1].push(z)};c.event={bind:function(B,z,A,y){b?B.attachEvent("on"+z,A):B.addEventListener(z,A,y||false)},unbind:function(B,z,A,y){b?B.detachEvent("on"+z,A):B.removeEventListener(z,A,y||false)},stop:function(y){y=y||i.event;b?(y.cancelBubble=true):y.stopPropagation();b?(y.returnValue=false):y.preventDefault()}};function t(y){if(!u++){if(f){while((y=n[0].shift())){!c.blackout&&y()}while((y=n[1].shift())){!c.blackout&&y()}!c.blackout&&(typeof i.boot==="function")&&i.boot(256)}else{try{while((y=n[0].shift())){!c.blackout&&y()}while((y=n[1].shift())){!c.blackout&&y()}!c.blackout&&(typeof i.boot==="function")&&i.boot(256)
}catch(z){}}}}if(b){i.attachEvent("onload",t);(function s(){try{d.firstChild.doScroll("up"),t()}catch(y){setTimeout(s,16)}})()}else{i.addEventListener("load",t,false);d.addEventListener("DOMContentLoaded",t,false)}c.boot(function(){var B=d.getElementsByTagName("*"),z,A=0,C=B.length,y;for(;A<C;++A){z=B[A];if(!b||z.nodeType===1){z[j]||(a[z[j]=y=++i[j]]=z,y)}}},1);b&&c.boot(function(){var z="urn:schemas-microsoft-com:",A="#default#VML",y=d.namespaces;if(!y.v){y.add("v",z+"vml",A);y.add("o",z+"office:office",A)}d.createStyleSheet().cssText="canvas{display:inline-block;text-align:left;width:300px;height:150px}v:roundrect,v:oval,v:shape,v:stroke,v:fill,v:textpath,v:image,v:line,v:skew,v:path,o:opacity2{behavior:url("+A+");display:inline-block}"});i.uuMeta=c;i[j]=0})();(function(){var h,e=uuMeta,i=window,b=document,c=parseInt,l=parseFloat,a=e.ie,g=e.opera,j=e.webkit,d=e.quirks?"body":"documentElement",f=e.runstyle,n="transparent",s="rgba(0, 0, 0, 0)",o="important",m="position",r="absolute",p="display",q="block",k="left";
h={toPixel:function(u,z,A){var t,B,v,y,x,w,C;if(typeof z==="string"){if(z.lastIndexOf("px")>0){return c(z)||0}if(!A){t=l(z);if(z.lastIndexOf("pt")>0){t*=4/3}else{if(z.lastIndexOf("em")>0){C=(a?u[f]:f(u,"")).fontSize;if(C.lastIndexOf("pt")>0){t*=l(C)*4/3}else{t*=l(C)}}}return c(t)||0}B=u.style,y=B[k];if(a){v=u.runtimeStyle,x=v[k];v[k]=u[f][k];B[k]=z;z=B.pixelLeft;B[k]=y;v[k]=x}else{if(j){x=B.getPropertyValue(m);w=B.getPropertyValue(p);B.setProperty(m,r,o);B.setProperty(p,q,o)}B.setProperty(k,z,o);z=c(f(u,"")[k]);B.removeProperty(k);B.setProperty(k,y,"");if(j){B.removeProperty(m);B.removeProperty(p);B.setProperty(m,x,"");B.setProperty(p,w,"")}}}return z||0},getPixel:function(t,w){function u(x){var y=t.getBoundingClientRect();return x?(y.right-y.left):(y.bottom-y.top)}var v;if(a){switch(w){case"width":return t.clientWidth||u(1);
case"height":return t.clientHeight||u(0)}v=t[f][w];(v==="auto")&&(v=h.toPixel(t,v))}else{v=f(t,"")[w]}return c(v)||0},getBGImg:function(w){var v="backgroundImage",t,u=a?(w.style[v]||w[f][v]):f(w,"")[v];if(u.indexOf(",")<0){if(u){if((t=/^url\((.*)\)$/.exec(u))){return t[1].replace(/^\s*[\"\']?|[\"\']?\s*$/g,"")}}}return""},getBGColor:function(x,w,u){function y(A){return A===n||A===s}var t="backgroundColor",z=x,v=n;if(!w){return a?(z.style[t]||z[f][t]):f(z,"")[t]}while(z&&z!==b&&y(v)){if((a&&z[f])||!a){v=a?z[f][t]:f(z,"")[t]}z=z.parentNode}if(u){return y(v)?{r:255,g:255,b:255,a:1}:uuColor.parse(v,1)}return y(v)?["white",1]:uuColor.parse(v)},getViewport:function(){var t=i;if(a){t=b[d];return{w:t.clientWidth||t.scrollWidth,h:t.clientHeight||t.scrollHeight,sx:t.scrollLeft,sy:t.scrollTop}}return{w:t.innerWidth,h:t.innerHeight,sx:t.pageXOffset,sy:t.pageYOffset}
},getRect:function(u){var A,D=0,B=0,E=0,z=0,v=0,C,t;if(u.getBoundingClientRect){C=u.getBoundingClientRect();v=(a&&u.parentNode===b.body)?2:0;t=h.getViewport();D=C.left+t.sx-v;B=C.top+t.sy-v;E=C.right-C.left;z=C.bottom-C.top}else{A=u;while(A){D+=A.offsetLeft||0;B+=A.offsetTop||0;A=A.offsetParent}}return{x:D,y:B,w:u.clientWidth||E,h:u.clientHeight||z,ow:u.offsetWidth,oh:u.offsetHeight}},setRect:function(v,u){var t=v.style;if(a||g){if("x" in u){t.pixelLeft=u.x}if("y" in u){t.pixelTop=u.y}if("w" in u){t.pixelWidth=u.w>0?u.w:0}if("h" in u){t.pixelHeight=u.h>0?u.h:0}}else{if("x" in u){t.left=u.x+"px"}if("y" in u){t.top=u.y+"px"}if("w" in u){t.width=(u.w>0?u.w:0)+"px"}if("h" in u){t.height=(u.h>0?u.h:0)+"px"}}},getRelPos:function(v){var t=0,z=0,u,w={relative:1,absolute:1};while(v){t+=v.offsetLeft||0;
z+=v.offsetTop||0;v=v.offsetParent;u=a?v[f]:f(v,"");if(w[u.position]){break}}return{x:t,y:z}}};i.uuStyle=h})();(function(){var c=uuMeta,e=parseFloat,h=c.runstyle,g="DXImageTransform.Microsoft.Alpha";function b(k,i,j){if(j){i+=e(k.style.opacity||h(k,"").opacity)}k.style.opacity=(i>0.999)?1:(i<0.001)?0:i}function a(m,i,k){var l=m.style,j;if(l.uuopacity===void 0){l.uuopacity=1;(l.filter.indexOf(g)<0)&&(l.filter+=" progid:"+g);if(!c.iemode8&&m.currentStyle.width==="auto"){l.zoom=1}}if(k){i+=e(l.uuopacity)}l.uuopacity=i=(i>0.999)?1:(i<0.001)?0:i;j=m.filters.item(g);j.Opacity=(i*100)|0;j.Enabled=(i===1||i===0)?false:true;l.visibility=(i===0)?"hidden":""}function d(i){return e(i.style.opacity||h(i,"").opacity)}function f(j){var i=j.style.uuopacity;return(i===void 0)?1:i}window.uuStyle.getOpacity=c.ie?f:d;
window.uuStyle.setOpacity=c.ie?a:b})();(function(){var b,a=document.uniqueID;b={load:function(d,e){var c=new Image();c.state=0;c.clear=function(){c.onerror="";c.onload="";c=void 0};c.onerror=function(){c.state=-1;e&&e(c,c.state,{w:0,h:0})};c.onload=function(){if(c.complete||c.readyState==="complete"){c.state=1;setTimeout(function(){e&&e(c,c.state,{w:c.width,h:c.height})},0)}};c.setAttribute("src",d)},getActualDimension:function(i){var g,f,c,e,d="actual";if("naturalWidth" in i){return{w:i.naturalWidth,h:i.naturalHeight}}if("src" in i){if(i[d]&&i[d].src===i.src){return i[d]}if(a){g=i.runtimeStyle;f={w:g.width,h:g.height};g.width="auto";g.height="auto";c=i.width;e=i.height;g.width=f.w;g.height=f.h}else{f={w:i.width,h:i.height};i.removeAttribute("width");i.removeAttribute("height");c=i.width;e=i.height;
i.width=f.w;i.height=f.h}return i[d]={w:c,h:e,src:i.src}}return{w:i.width,h:i.height}}};window.uuImage=b})();(function(){var e,aM=uuMeta,G=uuStyle,an=uuImage,k=window,aR=document,V=aM.ie,ax=aM.opera,bb=aM.gecko,p=aM.webkit,t=aM.chrome,D=aM.slver,ar=aM.uaver,aO=aM.enginever,aK=parseInt,am=parseFloat,ai=Math,r=ai.round,a3=ai.ceil,C=ai.sin,aN=ai.cos,aE=ai.max,T=180/ai.PI,ad=aM.runstyle,N=aM.mix,w=aM.hex,A=0,aB=0,M,a6,ap,y=10,at=5,Y=0,aD,a2=4,aI={},i={},av={},aY=function(bd){return av[bd]=uuColor.parse(bd)},aV="CanvasRenderingContext2D",ab="globalAlpha",a4="globalCompositeOperation",ba="strokeStyle",d="fillStyle",aH="lineWidth",g="lineCap",aX="lineJoin",ay="miterLimit",aa="shadowOffsetX",Z="shadowOffsetY",aJ="shadowBlur",al="shadowColor",a5=[al,aa,Z,aJ],B="font",x="textAlign",aT="textBaseline",aq="position:absolute;border:0 none;margin:0;padding:0;",aA="transparent",aW={width:1,height:1},R={width:1,height:1,display:2,visibility:2,opacity:2},P={"source-over":0,"destination-over":4,copy:10},m={strokeStyle:1,fillStyle:1,globalAlpha:1,lineWidth:1,lineCap:1,lineJoin:1,miterLimit:1,shadowOffsetX:1,shadowOffsetY:1,shadowBlur:1,shadowColor:1,globalCompositeOperation:1,font:1,textAlign:1,textBaseline:1,_lineScale:1,_scaleX:1,_scaleY:1,_efx:1,_clipPath:1},F={square:"square",butt:"flat",round:"round"},f={"xx-small":0.512,"x-small":0.64,smaller:0.8,small:0.8,medium:1,large:1.2,larger:1.2,"x-large":1.44,"xx-large":1.728},aw={normal:"Normal",italic:"Italic",oblique:"Italic"},a0={normal:"Normal",bold:"Bold",bolder:"ExtraBold",lighter:"Thin","100":"Thin","200":"ExtraLight","300":"Light","400":"Normal","500":"Medium","600":"SemiBold","700":"Bold","800":"ExtraBold","900":"Black"},v={ARIAL:1.55,"ARIAL BLACK":1.07,"COMIC SANS MS":1.15,"COURIER NEW":1.6,GEORGIA:1.6,"LUCIDA GRANDE":1,"LUCIDA SANS UNICODE":1,"TIMES NEW ROMAN":1.65,"TREBUCHET MS":1.55,VERDANA:1.4,"MS UI GOTHIC":2,"MS PGOTHIC":2,MEIRYO:1,"SANS-SERIF":1,SERIF:1,MONOSPACE:1,FANTASY:1,CURSIVE:1},E={1:"_lfill",2:"_rfill",3:"_pfill"},a7='" Fill="',az='" Stroke="',a1='" Data="',c='<Path Opacity="',X='<Canvas Canvas.ZIndex="',ae='" Canvas.Left="',h='" Canvas.Top="',aU='" coordsize="100,100',u='" filled="t" stroked="f',K='" filled="f" stroked="t',U='" path="',L='" color="',O='" colors="',s='" opacity="',S='" angle="',aG=' filltype="',ag=' type="',aQ=' color="',b=' style="position:absolute;z-index:',aC='<v:shape style="position:absolute;width:10px;height:10px;z-index:',ac='" /></v:shape>',ao='"><v:stroke',l='"><v:fill',z="progid:DXImageTransform.Microsoft";
e={init:function(be,bd){return be.getContext?be:(bd||!D)?q(be):Q(be)},ready:function(be){var bd=function(){(V?e.already():aB)?be():setTimeout(bd,64)};setTimeout(bd,16)},already:function(){if(!V){return !!aB}var be=aR.getElementsByTagName("canvas"),bd=be.length;while(bd--){if(!("uuCanvasType" in be[bd])){return false}}return true},expire:function(){aI={};i={};av={}}};ap={multiply:function(be,bd){return[be[0]*bd[0]+be[1]*bd[3]+be[2]*bd[6],be[0]*bd[1]+be[1]*bd[4]+be[2]*bd[7],0,be[3]*bd[0]+be[4]*bd[3]+be[5]*bd[6],be[3]*bd[1]+be[4]*bd[4]+be[5]*bd[7],0,be[6]*bd[0]+be[7]*bd[3]+be[8]*bd[6],be[6]*bd[1]+be[7]*bd[4]+be[8]*bd[7],be[6]*bd[2]+be[7]*bd[5]+be[8]*bd[8]]},translate:function(bd,be){return[1,0,0,0,1,0,bd,be,1]},rotate:function(be){var bf=aN(be),bd=C(be);return[bf,bd,0,-bd,bf,0,0,0,1]},scale:function(bd,be){return[bd,0,0,0,be,0,0,0,1]
},transform:function(bg,bf,bi,bh,be,bd){return[bg,bf,0,bi,bh,0,be,bd,1]}};function af(bg){var bd=arguments,be=bd.length,bf=an.getActualDimension(bg);if(be<9){return{az:be,dim:bf,sx:0,sy:0,sw:bf.w,sh:bf.h,dx:bd[1],dy:bd[2],dw:bd[3]||bf.w,dh:bd[4]||bf.h}}else{if(be===9){return{az:be,dim:bf,sx:bd[1],sy:bd[2],sw:bd[3],sh:bd[4],dx:bd[5],dy:bd[6],dw:bd[7],dh:bd[8]}}}throw""}function aL(bd){return bd.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function ah(bh,be){if(!a6){a6=aR.createElement("div");a6.style.cssText=aq+"top:-10000px;left:-10000px;text-align:left;visibility:hidden";aR.body.appendChild(a6)}a6.style.font=be;V?(a6.innerText=bh):(a6.textContent=bh);var bd=0,bf=0,bg;if(a6.getBoundingClientRect){bg=a6.getBoundingClientRect();bd=bg.right-bg.left,bf=bg.bottom-bg.top}return{w:a6.clientWidth||bd,h:a6.clientHeight||bf}
}function n(bg,bk){var bf={},bm,bl,bh,bd,bj,bn="uuCanvasID";function be(br){var bp=br.appendChild(aR.createElement("div")),bq,bo;bp.style.cssText=aq+"width:12pt;height:12em";bq=bp.clientWidth/12;bo=bp.clientHeight/12;br.removeChild(bp);return{pt:bq,em:bo}}bj=bk[bn]||(bk[bn]=++A);if(bj in aI){if(bg in aI[bj]){return aI[bj][bg]}}else{aI[bj]={}}bh=aR.createElement("div");bd=bh.style;try{bd.font=bg}catch(bi){}bl=bd.fontSize;if((bm=f[bl])){bm*=16}else{bm=am(bl);if(/pt$/.test(bl)){bm*=1.33}else{if(/em$/.test(bl)){if(!(bj in i)){i[bj]=be(bk)}bm*=i[bj].em}}}bf.size=am(bm);bf.style=bd.fontStyle;bf.weight=bd.fontWeight;bf.variant=bd.fontVariant;bf.rawfamily=bd.fontFamily.replace(/[\"\']/g,"");bf.family="'"+bf.rawfamily.replace(/\s*,\s*/g,"','")+"'";bf.formal=[bf.style,bf.variant,bf.weight,bf.size.toFixed(2)+"px",bf.family].join(" ");
return aI[bj][bg]=bf}function aP(bf){var be=bf,bd=be.attributes;if(bd.width&&bd.width.specified){be.style.pixelWidth=aK(bd.width.nodeValue)}else{be.width=be.clientWidth}if(bd.height&&bd.height.specified){be.style.pixelHeight=aK(bd.height.nodeValue)}else{be.height=be.clientHeight}}function J(bi,bd){var be=F[bi[g]],bh=bi[aX],bf=(bi[aH]*bi._lineScale).toFixed(2),bg=bi[ay];if(!bd){return['" StrokeLineJoin="',bh,'" StrokeMiterLimit="',bg,'" StrokeThickness="',bf,'" StrokeStartLineCap="',be,'" StrokeEndLineCap="',be].join("")}return['" weight="',bf,'px" endcap="',be,'" joinstyle="',bh,'" miterlimit="',bg].join("")}aD={save:function(){var be={},bd;for(bd in m){be[bd]=this[bd]}this._stack.push([be,N([],this._mtx),this._clipPath?String(this._clipPath):null])},restore:function(){if(!this._stack.length){return
}var be=this._stack.pop(),bd;for(bd in m){this[bd]=be[0][bd]}this._mtx=be[1];this._clipPath=be[2]},scale:function(bd,be){this._efx=1;this._mtx=ap.multiply([bd,0,0,0,be,0,0,0,1],this._mtx);this._scaleX*=bd;this._scaleY*=be;this._lineScale=(this._mtx[0]+this._mtx[4])/2},rotate:function(be){this._efx=1;var bf=aN(be),bd=C(be);this._mtx=ap.multiply([bf,bd,0,-bd,bf,0,0,0,1],this._mtx)},translate:function(bd,be){this._efx=1;this._mtx=ap.multiply([1,0,0,0,1,0,bd,be,1],this._mtx)},transform:function(bg,bf,bi,bh,be,bd){this._efx=1;this._mtx=ap.multiply([bg,bf,0,bi,bh,0,be,bd,1],this._mtx)},setTransform:function(bg,bf,bi,bh,be,bd){this._efx=(bg===1&&!bf&&!bi&&bh===1&&!be&&!bd)?0:1;this._mtx=ap.transform(bg,bf,bi,bh,be,bd)},strokeRect:function(bd,bg,be,bf){this.fill(1,this._rect(bd,bg,be,bf))},beginPath:function(){this._path=[]
},arcTo:function(bf,bh,be,bg,bd){},stroke:function(){this.fill(1)},isPointInPath:function(bd,be){},strokeText:function(bf,bd,bg,be){this.fillText(bf,bd,bg,be,1)},measureText:function(be){var bd=ah(be,this[B]);return new o(bd.w,bd.h)},createImageData:function(bd,be){},getImageData:function(bg,bf,bd,be){},putImageData:function(bh,bg,bf,be,bj,bd,bi){},_initSurface:function(bd){N(this,{globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"#000000",fillStyle:"#000000",lineWidth:1,lineCap:"butt",lineJoin:"miter",miterLimit:10,shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:aA,font:"10px sans-serif",textAlign:"start",textBaseline:"alphabetic",xMissColor:"#000000",xTextMarginTop:1.3,xClipStyle:0,xImageRender:0,xFlyweight:0,xShadowOpacityFrom:0.01,xShadowOpacityDelta:0.05,_lineScale:1,_scaleX:1,_scaleY:1,_zindex:-1,_efx:0});
this._mtx=[1,0,0,0,1,0,0,0,1];this._history=[];this._stack=[];this._path=[];this._clipPath=null;if(this.canvas.uuCanvasType==="VML2D"){this._shadow=["#000",0,0,0];this._px=0;this._py=0;if(bd){this._elm.style.pixelWidth=this.canvas.width;this._elm.style.pixelHeight=this.canvas.height}}else{this._shadow=["#000",0,0,0];this.xShadowBlur=D>=3?1:0;this.xTiling=1;this._clipRect=null}return this}};function ak(bd){var bf,be=bd.propertyName;if(aW[be]){bf=bd.srcElement;bf.style[be]=aE(aK(bf.attributes[be].nodeValue),0)+"px";bf.uuCanvasType&&bf.getContext()._initSurface(1)._clear()}}function o(bd,be){this.width=bd;this.height=be}function au(be,bd){bd=bd||"repeat";switch(bd){case"repeat":break;default:throw""}if(!("src" in be)){throw""}this._src=be.src;this._dim=an.getActualDimension(be);this._type=3;this._repeat=bd
}function a(be,bf,bd){this._vml=bd;this._type=be;this._param=bf;this._colorStop=[]}a.prototype.addColorStop=function(bh,be){function bg(bl,bk){return bl.offset-bk.offset}var bj=av[be]||aY(be),bd,bf=0,bi;if(!this._vml){this._colorStop.push({offset:bh,color:bj})}else{for(bi=this._colorStop.length;bf<bi;++bf){bd=this._colorStop[bf];if(bd.offset===bh){if(bh<1&&bh>0){bh+=bi/1000}}}this._colorStop.push({offset:1-bh,color:bj})}this._colorStop.sort(bg)};function aZ(bk){if(!bk.parentNode){return bk}var bj=aR.createElement(bk.outerHTML),bh=aR.getElementsByTagName("/CANVAS"),bd=bk.sourceIndex,bf,be,bg=0,bi=bh.length;for(;bg<bi;++bg){if(bd<bh[bg].sourceIndex&&bk.parentNode===bh[bg].parentNode){bf=aR.all[bh[bg].sourceIndex];do{be=bf.previousSibling;bf.parentNode.removeChild(bf);bf=be}while(bf!==bk);break
}}bk.parentNode.replaceChild(bj,bk);return bj}function Q(bf){var be=aZ(bf),bd="_sl"+(++Y)+"_onload";aP(be);be.getContext=function(){return be._ctx2d};be._ctx2d=new I(be);k[bd]=function(bg){be.uuCanvasType="SL2D";be.style.direction=be.currentStyle.direction;be._ctx2d._view=bg.children;be._ctx2d._content=bg.getHost().content;k[bd]=void 0};be.innerHTML=['<object type="application/x-silverlight" width="100%" height="100%">','<param name="background" value="#00000000" />','<param name="windowless" value="true" />','<param name="source" value="#xaml" />','<param name="onLoad" value="',bd,'" />',"</object>"].join("");be.bind=function(){be.attachEvent("onpropertychange",ak)};be.unbind=function(){be.detachEvent("onpropertychange",ak)};be.bind();return be}function I(bd){this.canvas=bd;this._initSurface();
this._elm=bd;this._view=null;this._content=null}N(I.prototype,aD,{_rect:function(bd,bk,be,bi){if(this._efx){var bj=this._map(bd,bk),bh=this._map(bd+be,bk),bg=this._map(bd+be,bk+bi),bf=this._map(bd,bk+bi);return[" M",bj.x," ",bj.y," L",bh.x," ",bh.y," L",bg.x," ",bg.y," L",bf.x," ",bf.y," Z"].join("")}return[" M",bd," ",bk," L",bd+be," ",bk," L",bd+be," ",bk+bi," L",bd," ",bk+bi," Z"].join("")},_map:function(be,bf){var bd=this._mtx;return{x:be*bd[0]+bf*bd[3]+bd[6],y:be*bd[1]+bf*bd[4]+bd[7]}},clearRect:function(bd,bj,be,bg){be=aK(be),bg=aK(bg);if((!bd&&!bj&&be==this.canvas.width&&bg==this.canvas.height)){this._clear()}else{var bf=0,bi=G.getBGColor(this._elm,1),bh;switch(P[this[a4]]){case 4:bf=--this._zindex;break;case 10:this._clear()}bh=[c,bi[1]*this[ab],'" Canvas.ZIndex="',bf,a7,bi[0],a1,this._rect(bd,bj,be,bg),'" />'].join("");
!this.xFlyweight&&this._history.push(this._clipPath?(bh=this._clippy(bh)):bh);this._view.add(this._content.createFromXaml(bh,false))}},_clear:function(bd,bg,be,bf){this._history=[];this._zindex=0;this._view&&this._view.clear()},fillRect:function(bd,bg,be,bf){this.fill(0,this._rect(bd,bg,be,bf))},closePath:function(){this._path.push(" Z")},moveTo:function(be,bf){if(this._efx){var bd=this._mtx;this._path.push(" M",be*bd[0]+bf*bd[3]+bd[6]," ",be*bd[1]+bf*bd[4]+bd[7])}else{this._path.push(" M",be," ",bf)}},lineTo:function(be,bf){if(this._efx){var bd=this._mtx;this._path.push(" L",be*bd[0]+bf*bd[3]+bd[6]," ",be*bd[1]+bf*bd[4]+bd[7])}else{this._path.push(" L",be," ",bf)}},quadraticCurveTo:function(bf,be,bd,bi){if(this._efx){var bh=this._map(bf,be),bg=this._map(bd,bi);bf=bh.x,be=bh.y,bd=bg.x,bi=bg.y
}this._path.push(" Q",bf," ",be," ",bd," ",bi)},bezierCurveTo:function(be,bd,bl,bk,bj,bi){if(this._efx){var bh=this._map(be,bd),bg=this._map(bl,bk),bf=this._map(bj,bi);be=bh.x,bd=bh.y,bl=bg.x,bk=bg.y,bj=bf.x,bi=bf.y}this._path.push(" C",be," ",bd," ",bl," ",bk," ",bj," ",bi)},rect:function(bd,bg,be,bf){this._path.push(this._rect(bd,bg,be,bf))},arc:function(bk,bj,be,bq,bo,bd){var bs=bq*T,br=bo*T,bf=0,bi=0.0001570796326795,bl=bd?0:1,bn,bm,bu,bt,bh,bg,bp;if(bs<0){bs+=360}if(bs>360){bs-=360}if(br<0){br+=360}if(br>360){br-=360}if(bs+360==br||bs==br+360){if(bl){bo-=bi}else{bo+=bi}bf=1}else{if(bl){if(br-bs>180){bf=1}}else{if(bs-br>180){bf=1}}}bh=this._scaleX*be;bg=this._scaleY*be;bn=bk+(aN(bq)*be);bm=bj+(C(bq)*be);bu=bk+(aN(bo)*be);bt=bj+(C(bo)*be);this._path.length?this.lineTo(bn,bm):this.moveTo(bn,bm);
if(this._efx){bp=this._map(bu,bt);bu=bp.x;bt=bp.y}this._path.push(" A",bh," ",bg," 0 ",bf," ",bl," ",bu," ",bt)},fill:function(bm,bq){bq=bq||this._path.join("");var bg=[],bf,bp=0,bo,bk,bd=bm?this[ba]:this[d],bh=0,be=0,bi=0,bn=0,bl=0,bj=av[this[al]]||aY(this[al]);if((bo=P[this[a4]])){(bo===4)?(bp=--this._zindex):this._clear()}if(typeof bd==="string"){bk=av[bd]||aY(bd);bg.push(X,bp,'">');if(bj[1]&&!this.xShadowBlur){bn=a2/2+this[aa];bl=a2/2+this[Z];be=this.xShadowOpacityFrom;bi=this.xShadowOpacityDelta;for(;bh<a2;be+=bi,--bn,--bl,++bh){bg.push(c,be.toFixed(2),ae,bn,h,bl,a1,bq,bm?J(this):"",bm?az:a7,bj[0],'" />')}}bg.push(c,bk[1]*this[ab],a1,bq,bm?J(this):"",bm?az:a7,bk[0],'">',(bj[1]&&this.xShadowBlur)?this._blur("Path",bj):"","</Path></Canvas>");bf=bg.join("")}else{bf=this[E[bd._type]](bd,bq,bm,bo,bp,bj)
}!this.xFlyweight&&this._history.push(this._clipPath?(bf=this._clippy(bf)):bf);this._view.add(this._content.createFromXaml(bf,false))},_lfill:function(bu,bo,bl,bm,bh,bn){var bg=[],bi=bu._param,br=this._lcolor(bu._colorStop),bf=bl?"Stroke":"Fill",bq=this._map(bi.x0,bi.y0),bp=this._map(bi.x1,bi.y1),bv=0,bs=a2,be,bt=0,bd=0,bk=0,bj=0;bg.push(X,bh,'">');if(bn[1]&&!this.xShadowBlur){be=this._lcolor([{offset:0,color:bn},{offset:1,color:bn}]);bk=a2/2+this[aa];bj=a2/2+this[Z];bt=this.xShadowOpacityFrom;bd=this.xShadowOpacityDelta;if(bl){bs=this[aH];bd=0.2/bs}for(;bv<bs;bt+=bd,--bk,--bj,++bv){bg.push(c,bt.toFixed(2),ae,bk,h,bj,a1,bo,bl?J(this):"",'"><Path.',bf,'><LinearGradientBrush MappingMode="Absolute" StartPoint="',bq.x,",",bq.y,'" EndPoint="',bp.x,",",bp.y,'">',be,"</LinearGradientBrush></Path.",bf,"></Path>")
}}bg.push(c,this[ab],a1,bo,bl?J(this):"",'"><Path.',bf,'><LinearGradientBrush MappingMode="Absolute" StartPoint="',bq.x,",",bq.y,'" EndPoint="',bp.x,",",bp.y,'">',br,"</LinearGradientBrush></Path.",bf,">",(bn[1]&&this.xShadowBlur)?this._blur("Path",bn):"","</Path></Canvas>");return bg.join("")},_rfill:function(bA,bv,bn,bp,bg,bu){var bf=[],be=bn?"Stroke":"Fill",bh=bA._param,bl=0,bx=this._rcolor(bA),bi=bh.r1*2,bm=bh.x1-bh.r1,bk=bh.y1-bh.r1,br=(bh.x0-(bh.x1-bh.r1))/bi,bq=(bh.y0-(bh.y1-bh.r1))/bi,bw=ap.multiply(ap.translate(bm,bk),this._mtx),bj=this._trns("Ellipse",bw),bo,bB="",bC=0,by=a2,bz=0,bd=0,bt=0,bs=0;bf.push(X,bg,'">');if(bu[1]&&!this.xShadowBlur){bt=a2/2+this[aa];bs=a2/2+this[Z];bz=this.xShadowOpacityFrom;bd=this.xShadowOpacityDelta;if(bn){by=this[aH];bd=0.2/by}for(;bC<by;bz+=bd,--bt,--bs,++bC){bf.push('<Ellipse Opacity="',bz.toFixed(2),ae,bt,h,bs,'" Width="',bi,'" Height="',bi,bn?J(this):"",bn?az:a7,bu[0],'">',bj,"</Ellipse>")
}}if(!bn){if(bA._colorStop.length){bo=bA._colorStop[bA._colorStop.length-1];if(bo.color[1]>0.001){if(bp===4){bl=--this._zindex}bB=[c,this[ab],'" Canvas.ZIndex="',bl,a1,bv,a7,"#",w[am(bo.color[1]/(1/255))]+bo.color[0].substring(1),'" />'].join("");!this.xFlyweight&&this._history.push(this._clipPath?(bB=this._clippy(bB)):bB);this._view.add(this._content.createFromXaml(bB,false))}}}bf.push('<Ellipse Opacity="',this[ab],'" Width="',bi,'" Height="',bi,bn?J(this):"",'"><Ellipse.',be,'><RadialGradientBrush GradientOrigin="',br,",",bq,'" Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5">',bx,"</RadialGradientBrush></Ellipse.",be,">",bj,(bu[1]&&this.xShadowBlur)?this._blur("Ellipse",bu):"","</Ellipse></Canvas>");return bf.join("")},_pfill:function(bu,br,bl,bm,bh,bq){var bg=[],be=bl?"Stroke":"Fill",bj=0,bs,bw,bf,bp,bk,bi,bv=0,bt=0,bd=0,bo=0,bn=0;
if(!bl&&this.xTiling){bk=0;bi=0;bs=bu._dim.w;bw=bu._dim.h;bf=a3(aK(this.canvas.width)/bs);bp=a3(aK(this.canvas.height)/bw);if(bm===4){bj=--this._zindex}bg.push(X,bh,'">');if(bq[1]){bo=a2/2+this[aa];bn=a2/2+this[Z];bt=this.xShadowOpacityFrom;bd=this.xShadowOpacityDelta;for(;bv<a2;bt+=bd,--bo,--bn,++bv){bg.push(c,bt.toFixed(2),ae,bo,h,bn,a1,br,bl?J(this):"",a7,bq[0],'" />')}}bg.push(X,bj,'" Clip="',br,'">');for(bi=0;bi<bp;++bi){for(bk=0;bk<bf;++bk){bg.push('<Image Opacity="',this[ab],ae,bk*bs,h,bi*bw,'" Source="',bu._src,'">',"</Image>")}}bg.push("</Canvas></Canvas>");return bg.join("")}bg.push(X,bh,'">');if(bq[1]&&!this.xShadowBlur){bo=a2/2+this[aa];bn=a2/2+this[Z];bt=this.xShadowOpacityFrom;bd=this.xShadowOpacityDelta;for(;bv<a2;bt+=bd,--bo,--bn,++bv){bg.push(c,bt.toFixed(2),ae,bo,h,bn,a1,br,bl?J(this):"",'"><Path.',be,'><ImageBrush Stretch="None" ImageSource="',bu._src,'" /></Path.',be,"></Path>")
}}bg.push(c,this[ab],bl?J(this):"",a1,br,'"><Path.',be,'><ImageBrush Stretch="None" ImageSource="',bu._src,'" /></Path.',be,">",(bq[1]&&this.xShadowBlur)?this._blur("Path",bq):"","</Path></Canvas>");return bg.join("")},clip:function(){this._clipPath=this._path.join("")},_clippy:function(bd){return['<Canvas Clip="',this._clipPath,'">',bd,"</Canvas>"].join("")},fillText:function(bo,bl,bk,bC,bm){bo=bo.replace(/(\t|\v|\f|\r\n|\r|\n)/g," ");var bA=bm?this[ba]:this[d],bn=(typeof bA==="string")?0:bA._type,bg=[],bj,bD,bi,bx,bw,bh=0,bf,bs,bp,br=n(this[B],this.canvas),bv=ah(bo,br.formal),bB=0,by=this[x],bu="ltr",bE=0,bz=0,bd=0,bt=0,bq=0,be=av[this[al]]||aY(this[al]);switch(by){case"end":bu="rtl";case"start":by=this._elm.style.direction===bu?"left":"right"}if(by==="center"){bB=(bv.w-4)/2}else{if(by==="right"){bB=bv.w
}}bf=this._trns("TextBlock",ap.multiply(ap.translate(bl-bB,bk),this._mtx));switch(P[this[a4]]){case 4:bh=--this._zindex;break;case 10:this._clear()}bg.push(X,bh,'">');if(be[1]&&!this.xShadowBlur){bt=a2/2+this[aa];bq=a2/2+this[Z];bz=aE(this.xShadowOpacityFrom+0.9,1);bd=this.xShadowOpacityDelta;for(;bE<a2;bz+=bd,--bt,--bq,++bE){bg.push('<TextBlock Opacity="',bz.toFixed(2),'" Foreground="',be[0],ae,bt,h,bq,'" FontFamily="',br.rawfamily,'" FontSize="',br.size.toFixed(2),'" FontStyle="',aw[br.style]||"Normal",'" FontWeight="',a0[br.weight]||"Normal",'">',aL(bo),bf,"</TextBlock>")}}if(!bn){bD=av[bA]||aY(bA);bg.push('<TextBlock Opacity="',bD[1]*this[ab],'" Foreground="',bD[0])}else{bg.push('<TextBlock Opacity="',this[ab])}bg.push('" FontFamily="',br.rawfamily,'" FontSize="',br.size.toFixed(2),'" FontStyle="',aw[br.style]||"Normal",'" FontWeight="',a0[br.weight]||"Normal",'">',aL(bo),bf,(be[1]&&this.xShadowBlur)?this._blur("TextBlock",be):"");
switch(bn){case 1:bD=this._lcolor(bA._colorStop);bi=bA._param;bx=this._map(bi.x0,bi.y0),bw=this._map(bi.x1,bi.y1),bg.push("<TextBlock.Foreground>",'<LinearGradientBrush MappingMode="Absolute" StartPoint="',bx.x,",",bx.y,'" EndPoint="',bw.x,",",bw.y,'">',bD,"</LinearGradientBrush></TextBlock.Foreground>");break;case 2:bD=this._rcolor(bA);bi=bA._param,bs=(bi.x0-(bi.x1-bi.r1))/(bi.r1*2),bp=(bi.y0-(bi.y1-bi.r1))/(bi.r1*2),bg.push("<TextBlock.Foreground>",'<RadialGradientBrush GradientOrigin="',bs,",",bp,'" Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5">',bD,"</RadialGradientBrush></TextBlock.Foreground>");break;case 3:bg.push("<TextBlock.Foreground>",'<ImageBrush Stretch="None" ImageSource="',bA._src,'" /></TextBlock.Foreground>')}bg.push("</TextBlock></Canvas>");bj=bg.join("");!this.xFlyweight&&this._history.push(this._clipPath?(bj=this._clippy(bj)):bj);
this._view.add(this._content.createFromXaml(bj,false))},drawImage:function(bA){var bK=af.apply(this,arguments),bt=bK.dx,br=bK.dy,bu=bK.dw,bI=bK.dh,bz=bK.sx,bx=bK.sy,bB=bK.sw,bM=bK.sh,bi=bK.dim.w,bv=bK.dim.h,bj=[],bl,bH,bg,bs,bF,bp,bn,bC,bm,by="",bJ="",bk=0,bG="",bD=0,bf,bL=0,bE=0,bd=0,bq=0,bo=0,be=av[this[al]]||aY(this[al]);switch(P[this[a4]]){case 4:bk=--this._zindex;break;case 10:this._clear()}if("src" in bA){switch(bK.az){case 3:bC=ap.multiply(ap.translate(bt,br),this._mtx);break;case 5:bC=ap.multiply(ap.translate(bt,br),this._mtx);by=['" Width="',bu,'" Height="',bI].join("");break;case 9:bH=bu/bB;bg=bI/bM;bs=bH*bi;bF=bg*bv;bp=bt-(bH*bz);bn=br-(bg*bx);bC=ap.multiply(ap.translate(bp,bn),this._mtx);by=['" Width="',bs,'" Height="',bF].join("");bJ=['<Image.Clip><RectangleGeometry Rect="',[bt-bp,br-bn,bu,bI].join(" "),'" /></Image.Clip>'].join("");
if(be[1]&&!this.xShadowBlur){bG=['<Rectangle.Clip><RectangleGeometry Rect="',[bt-bp,br-bn,bu,bI].join(" "),'" /></Rectangle.Clip>'].join("")}}bj.push(X,bk,'">');if(be[1]&&!this.xShadowBlur){bq=a2/2+this[aa];bo=a2/2+this[Z];bE=this.xShadowOpacityFrom;bd=this.xShadowOpacityDelta;bm=this._trns("Rectangle",bC);for(;bL<a2;bE+=bd,--bq,--bo,++bL){bj.push('<Rectangle Opacity="',bE.toFixed(2),ae,bq,h,bo,by,a7,be[0],'">',bG,bm,"</Rectangle>")}}bj.push('<Image Opacity="',this[ab],'" Source="',bA.src,by,'">',bJ,this._trns("Image",bC),(be[1]&&this.xShadowBlur)?this._blur("Image",be):"","</Image></Canvas>");bl=bj.join("");!this.xFlyweight&&this._history.push(this._clipPath?(bl=this._clippy(bl)):bl);this._view.add(this._content.createFromXaml(bl,false))}else{bf=bA._ctx2d._history.length;switch(bK.az){case 3:bC=ap.multiply(ap.translate(bt,br),this._mtx);
break;case 5:bC=ap.multiply(ap.translate(bt,br),this._mtx);bC=ap.multiply(ap.scale(bu/bi,bI/bv),bC);break;case 9:bH=bu/bB;bg=bI/bM;bs=bH*bi;bF=bg*bv;bp=bt-(bH*bz);bn=br-(bg*bx);bC=ap.multiply(ap.translate(bp,bn),this._mtx);bC=ap.multiply(ap.scale(bH,bg),bC);bJ=['<Canvas.Clip><RectangleGeometry Rect="',[(bt-bp)/bH,(br-bn)/bg,bu/bH,bI/bg].join(" "),'" /></Canvas.Clip>'].join("")}bj.push(X,bk,'" Opacity="',this[ab],by,'">',bJ,this._trns("Canvas",bC),"<Canvas>");for(;bD<bf;++bD){bj.push(bA._ctx2d._history[bD])}bj.push("</Canvas></Canvas>");bl=bj.join("");!this.xFlyweight&&this._history.push(this._clipPath?(bl=this._clippy(bl)):bl);this._view.add(this._content.createFromXaml(bl,false))}},createLinearGradient:function(be,bg,bd,bf){return new a(1,{x0:be,y0:bg,x1:bd,y1:bf})},createRadialGradient:function(bg,bi,bf,be,bh,bd){return new a(2,{x0:bg,y0:bi,r0:bf,x1:be,y1:bh,r1:bd})
},createPattern:function(be,bd){return new au(be,bd)},_lcolor:function(bf){var bi=[],bd,be=0,bh=bf.length,bg=1/255;for(;be<bh;++be){bd=bf[be];bi.push('<GradientStop Color="#',w[am(bd.color[1]/bg)],bd.color[0].substring(1),'" Offset="',bd.offset,'" />')}return bi.join("")},_rcolor:function(bd){var bf=[],bk=bd._param,bg=1/255,bh=bk.r0/bk.r1,bj=1-bh,bl,bi=0,be=bd._colorStop.length;if(!be){return""}bf.push('<GradientStop Color="#',w[am(bd._colorStop[0].color[1]/bg)],bd._colorStop[0].color[0].substring(1),'" Offset="',0,'" />');for(bi=0;bi<be;++bi){bl=bd._colorStop[bi];bf.push('<GradientStop Color="#',w[am(bl.color[1]/bg)],bl.color[0].substring(1),'" Offset="',(bl.offset*bj+bh),'" />')}return bf.join("")},_trns:function(be,bd){return["<",be,'.RenderTransform><MatrixTransform><MatrixTransform.Matrix><Matrix M11="',bd[0],'" M21="',bd[3],'" OffsetX="',bd[6],'" M12="',bd[1],'" M22="',bd[4],'" OffsetY="',bd[7],'" /></MatrixTransform.Matrix></MatrixTransform></',be,".RenderTransform>"].join("")
},_blur:function(bd,bf){var be=0,bh=this[aa],bg=this[Z];if(bf[1]){be=aE(ai.abs(bh),ai.abs(bg))*1.2;return["<",bd,'.Effect><DropShadowEffect Opacity="',1,'" Color="',bf[0],'" BlurRadius="',this[aJ]*1.2,'" Direction="',ai.atan2(-bg,bh)*T,'" ShadowDepth="',be,'" /></',bd,".Effect>"].join("")}return""}});function q(be){var bd=aZ(be);aP(bd);bd.getContext=function(){return bd._ctx2d};bd._ctx2d=new a8(bd);bd.bind=function(){bd.attachEvent("onpropertychange",ak)};bd.unbind=function(){bd.detachEvent("onpropertychange",ak)};bd.bind();return bd}function a8(bd){this.canvas=bd;bd.uuCanvasType="VML2D";this._initSurface();this._elm=bd.appendChild(aR.createElement("div"));this._elm.style.pixelWidth=bd.width;this._elm.style.pixelHeight=bd.height;this._elm.style.overflow="hidden";this._elm.style.position="absolute";
this._elm.uuCanvasDirection=bd.currentStyle.direction;this._elm.style.direction="ltr";this._clipRect=this._rect(0,0,this.canvas.width,this.canvas.height)}N(a8.prototype,aD,{_rect:function(bd,bk,be,bi){var bj=this._map(bd,bk),bh=this._map(bd+be,bk),bg=this._map(bd+be,bk+bi),bf=this._map(bd,bk+bi);return[" m",bj.x," ",bj.y," l",bh.x," ",bh.y," l",bg.x," ",bg.y," l",bf.x," ",bf.y," x"].join("")},_map:function(be,bf){var bd=this._mtx;return{x:r((be*bd[0]+bf*bd[3]+bd[6])*y-at),y:r((be*bd[1]+bf*bd[4]+bd[7])*y-at)}},clearRect:function(be,bj,bf,bh){bf=aK(bf),bh=aK(bh);if((!be&&!bj&&bf==this.canvas.width&&bh==this.canvas.height)){this._clear()}else{var bg=0,bi=G.getBGColor(this._elm,1),bd;switch(P[this[a4]]){case 4:bg=--this._zindex;break;case 10:this._clear()}bd=[aC,bg,u,aU,U,this._rect(be,bj,bf,bh),l,ag,"solid",L,bi[0],s,bi[1]*this[ab],ac].join("");
!this.xFlyweight&&this._history.push(this._clipPath?(bd=this._clippy(bd)):bd);this._elm.insertAdjacentHTML("BeforeEnd",bd)}},_clear:function(){this._history=[];this._elm.innerHTML="";this._zindex=0},fillRect:function(bd,bh,be,bf){var bg=this._rect(bd,bh,be,bf);this._px=bd;this._py=bh;if(bg===this._clipRect){if(typeof this[d]==="string"){this.xClipStyle=this[d]}}this.fill(0,bg)},closePath:function(){this._path.push(" x")},moveTo:function(be,bf){var bd=this._mtx;this._path.push("m ",r((be*bd[0]+bf*bd[3]+bd[6])*y-at)," ",r((be*bd[1]+bf*bd[4]+bd[7])*y-at));this._px=be;this._py=bf},lineTo:function(be,bf){var bd=this._mtx;this._path.push("l ",r((be*bd[0]+bf*bd[3]+bd[6])*y-at)," ",r((be*bd[1]+bf*bd[4]+bd[7])*y-at));this._px=be;this._py=bf},quadraticCurveTo:function(bg,bf,bl,bk){var be=this._px+2/3*(bg-this._px),bd=this._py+2/3*(bf-this._py),bn=be+(bl-this._px)/3,bm=bd+(bk-this._py)/3,bj=this._map(bl,bk),bi=this._map(be,bd),bh=this._map(bn,bm);
this._path.push("c ",bi.x," ",bi.y," ",bh.x," ",bh.y," ",bj.x," ",bj.y);this._px=bl;this._py=bk},bezierCurveTo:function(be,bd,bl,bk,bj,bi){var bh=this._map(bj,bi),bg=this._map(be,bd),bf=this._map(bl,bk);this._path.push("c ",bg.x," ",bg.y," ",bf.x," ",bf.y," ",bh.x," ",bh.y);this._px=bj;this._py=bi},rect:function(bd,bg,be,bf){this._path.push(this._rect(bd,bg,be,bf));this._px=bd;this._py=bg},arc:function(br,bp,bm,bn,bh,bi){bm*=y;var bg=br+(aN(bn)*bm)-at,bq=bp+(C(bn)*bm)-at,be=br+(aN(bh)*bm)-at,bo=bp+(C(bh)*bm)-at,bl,bk,bj,bf,bd;if(!bi){(bg.toExponential(5)===be.toExponential(5))&&(bg+=0.125);(bq.toExponential(5)===bo.toExponential(5))&&(bq+=0.125)}bl=this._map(br,bp),bk=this._map(bg,bq),bj=this._map(be,bo),bf=this._scaleX*bm,bd=this._scaleY*bm;this._path.push(bi?"at ":"wa ",bl.x-bf," ",bl.y-bd," ",bl.x+bf," ",bl.y+bd," ",bk.x," ",bk.y," ",bj.x," ",bj.y)
},fill:function(bm,bq){bq=bq||this._path.join("");var bg=[],bd,bp=0,bo,bk,be=bm?this[ba]:this[d],bh=0,bf=0,bi=0,bn=0,bl=0,bj=av[this[al]]||aY(this[al]);if((bo=P[this[a4]])){(bo===4)?(bp=--this._zindex):this._clear()}if(typeof be==="string"){bk=av[be]||aY(be);if(bj[1]){bn=a2/2+this[aa];bl=a2/2+this[Z];bf=this.xShadowOpacityFrom;bi=this.xShadowOpacityDelta;for(;bh<a2;bf+=bi,--bn,--bl,++bh){bg.push(aC,bp,";left:",bn,"px;top:",bl,"px",bm?K:u,aU,U,bq,bm?ao:l,aQ,bj[0],s,bf.toFixed(2),bm?J(this,1):"",ac)}}bg.push(aC,bp,bm?K:u,aU,U,bq,bm?ao:l,aQ,bk[0],s,bk[1]*this[ab],bm?J(this,1):"",ac);bd=bg.join("")}else{bd=this[E[be._type]](be,bq,bm,bo,bp,bj)}!this.xFlyweight&&this._history.push(this._clipPath?(bd=this._clippy(bd)):bd);this._elm.insertAdjacentHTML("BeforeEnd",bd)},_lfill:function(bs,bm,bh,bi,bf,bl){var be=[],bg=bs._param,bo=this._map(bg.x0,bg.y0),bn=this._map(bg.x1,bg.y1),bt=ai.atan2(bn.x-bo.x,bn.y-bo.y)*T,bp=this._gcolor(bs._colorStop),bu=0,bq=a2,br=0,bd=0,bk=0,bj=0;
(bt<0)&&(bt+=360);if(bl[1]){bk=a2/2+this[aa];bj=a2/2+this[Z];br=this.xShadowOpacityFrom;bd=this.xShadowOpacityDelta;if(bh){bq=this[aH];bd=0.2/bq}for(;bu<bq;br+=bd,--bk,--bj,++bu){be.push(aC,bf,";left:",bk,"px;top:",bj,"px",aU,bh?K:u,U,bm,bh?ao:l,bh?aG:ag,bh?"solid":'gradient" method="sigma" focus="0%',L,bl[0],s,br.toFixed(2),S,bt,bh?J(this,1):"",ac)}}be.push(aC,bf,aU,bh?K:u,U,bm,bh?ao:l,bh?aG:ag,bh?"solid":'gradient" method="sigma" focus="0%',bh?L:O,bh?aY(this.xMissColor)[0]:bp,s,this[ab],'" o:opacity2="',this[ab],S,bt,bh?J(this,1):"",ac);return be.join("")},_rfill:function(bC,bw,bp,bq,bk,bv){var bi=[],be,br,bl=bC._param,bs,bj,bh,by="",bz=this._gcolor(bC._colorStop),bn=0,bo=bl.x1-bl.r1,bm=bl.y1-bl.r1,bg=bl.r1*this._scaleX,bf=bl.r1*this._scaleY,bx=this._map(bo,bm),bD=0,bA=a2,bB=0,bd=0,bu=0,bt=0;
if(!bp){bs=(bl.r0/bl.r1);bj=(1-bs+(bl.x0-bl.x1)/bl.r1)/2;bh=(1-bs+(bl.y0-bl.y1)/bl.r1)/2}if(bv[1]){bu=a2/2+this[aa];bt=a2/2+this[Z];bB=this.xShadowOpacityFrom;bd=this.xShadowOpacityDelta;if(bp){bA=this[aH];bd=0.2/bA}if(bp){by=[ao,aG,"tile",J(this,1)].join("")}else{by=[l,ag,'gradientradial" method="sigma" focussize="',bs,",",bs,'" focusposition="',bj,",",bh].join("")}for(;bD<bA;bB+=bd,--bu,--bt,++bD){bi.push("<v:oval",b,bk,";left:",r(bx.x/y)+bu,"px;top:",r(bx.y/y)+bt,"px;width:",bg,"px;height:",bf,"px",bp?K:u,'" coordsize="11000,11000',by,s,bB.toFixed(2),L,bv[0],'" /></v:oval>')}}if(bp){be=[ao,aG,"tile",J(this,1),s,this[ab],L,aY(this.xMissColor)[0]].join("")}else{if(bC._colorStop.length){br=bC._colorStop[0];if(br.color[1]>0.001){if(bq===4){bn=--this._zindex}bi.push(aC,bn,u,aU,U,bw,l,ag,"solid",L,br.color[0],s,br.color[1]*this[ab],ac)
}}be=[l,ag,'gradientradial" method="sigma" focussize="',bs,",",bs,'" focusposition="',bj,",",bh,s,this[ab],'" o:opacity2="',this[ab],O,bz].join("")}bi.push("<v:oval",b,bk,";left:",r(bx.x/y),"px;top:",r(bx.y/y),"px;width:",bg,"px;height:",bf,"px",bp?K:u,'" coordsize="11000,11000',be,'" /></v:oval>');return bi.join("")},_pfill:function(bd,bo,bk,bm,bn,bh){var bf=[],bg=0,be=0,bi=0,bl=0,bj=0;if(bh[1]){bl=a2/2+this[aa];bj=a2/2+this[Z];be=this.xShadowOpacityFrom;bi=this.xShadowOpacityDelta;for(;bg<a2;be+=bi,--bl,--bj,++bg){bf.push(aC,bn,";left:",bl,"px;top:",bj,"px",aU,bk?K:u,U,bo,bk?ao:l,bk?aG:ag,"solid",bk?J(this,1):"",L,bh[0],s,be.toFixed(2),ac)}}bf.push(aC,bn,aU,bk?K:u,U,bo,bk?ao:l,bk?aG:ag,"tile",s,this[ab],'" src="',bd._src,bk?J(this,1):"",ac);return bf.join("")},clip:function(){this._clipPath=this._clipRect+" x "+this._path.join("")
},_clippy:function(bd){if(!this.xClipStyle){var be=G.getBGColor(this._elm,1);this.xClipStyle=be[0]}return[bd,'<v:shape style="position:absolute;width:10px;height:10px',u,aU,U,this._clipPath,l,ag,"solid",L,this.xClipStyle,ac].join("")},fillText:function(br,bn,bm,bC,bo){br=br.replace(/(\t|\v|\f|\r\n|\r|\n)/g," ");var bB=bo?this[ba]:this[d],bq=(typeof bB==="string")?0:bB._type,bj=[],bf,bz=this[x],bv="ltr",bE,bt=n(this[B],this.canvas),by=this._mtx,bk=0,bl,bx,bw,bg=[by[0].toFixed(3)+","+by[3].toFixed(3)+","+by[1].toFixed(3)+","+by[4].toFixed(3)+",0,0"].join(""),bp,bG=1000,bh=0,bD=bG,bi={x:0,y:0},bF=0,bA=0,bd=0,bu=0,bs=0,be=av[this[al]]||aY(this[al]);switch(P[this[a4]]){case 4:bk=--this._zindex;break;case 10:this._clear()}switch(bz){case"end":bv="rtl";case"start":bz=this._elm.uuCanvasDirection===bv?"left":"right"
}switch(bz){case"center":bh=bD=bG/2;break;case"right":bh=bG,bD=0.05}if(this[aT]==="top"){bi.y=bt.size/(v[bt.rawfamily.split(",")[0].toUpperCase()]||this.xTextMarginTop)}bp=this._map(bn+bi.x,bm+bi.y);if(be[1]&&!this.xShadowBlur){bu=a2/2+this[aa];bs=a2/2+this[Z];bA=aE(this.xShadowOpacityFrom+0.9,1);bd=this.xShadowOpacityDelta;for(;bF<a2;bA+=bd,--bu,--bs,++bF){bj.push("<v:line",b,bk,";width:1px;height:1px;left:",bu,"px;top:",bs,"px",u,'" from="',-bh,' 0" to="',bD,' 0.05" coordsize="100 100">','<v:fill color="',be[0],'" opacity="',bA.toFixed(2),'" />','<v:skew on="t" matrix="',bg,'" ',' offset="',r(bp.x/y),",",r(bp.y/y),'" origin="',bh,' 0" />','<v:path textpathok="t" />','<v:textpath on="t" string="',aL(br),'" style="v-text-align:',bz,";font:",aL(bt.formal),'" /></v:line>')}}bj.push("<v:line",b,bk,";width:1px;height:1px",u,'" from="',-bh,' 0" to="',bD,' 0.05" coordsize="100 100">');
switch(bq){case 0:bE=av[bB]||aY(bB);bj.push('<v:fill color="',bE[0],'" opacity="',bE[1]*this[ab],'" />');break;case 1:case 2:bl=bB._param;bx=this._map(bl.x0,bl.y0);bw=this._map(bl.x1,bl.y1);bj.push('<v:fill type="gradient" method="sigma" focus="0%',O,this._gcolor(bB._colorStop),s,this[ab],'" o:opacity2="',this[ab],S,ai.atan2(bw.x-bx.x,bw.y-bx.y)*T,'" />');break;case 3:bj.push('<v:fill position="0,0" type="tile" src="',bB._src,'" />');break}bj.push('<v:skew on="t" matrix="',bg,'" ',' offset="',r(bp.x/y),",",r(bp.y/y),'" origin="',bh,' 0" />','<v:path textpathok="t" />','<v:textpath on="t" string="',aL(br),'" style="v-text-align:',bz,";font:",aL(bt.formal),'" /></v:line>');bf=bj.join("");!this.xFlyweight&&this._history.push(this._clipPath?(bf=this._clippy(bf)):bf);this._elm.insertAdjacentHTML("BeforeEnd",bf)
},drawImage:function(be){var bK=af.apply(this,arguments),bL=bK.az===3?"image":"scale",bf=bK.dx,bd=bK.dy,bg=bK.dw,bn=bK.dh,bl=bK.sx,bk=bK.sy,bm=bK.sw,bs=bK.sh,bz=bK.dim.w,bE=bK.dim.h,bB=[],bD,bI,bM=[],bw,bj,bJ=0,bv,bp=this,bi,bC=0,bH=aR.documentMode>=8,bG=bH?"-ms-filter:'":"filter:",br=bH?"'":"",bh,bq=0,bo=0,bt=0,by=0,bx=0,bA=a2,bu=av[this[al]]||aY(this[al]);function bF(bN,bU,bT,bV,bS){var bR=bp._map(bU,bT),bQ=bp._map(bU+bV,bT),bP=bp._map(bU+bV,bT+bS),bO=bp._map(bU,bT+bS);return[";padding:0 ",r(aE(bR.x,bQ.x,bP.x,bO.x)/y),"px ",r(aE(bR.y,bQ.y,bP.y,bO.y)/y),"px 0;",bG,z,".Matrix(M11=",bN[0],",M12=",bN[3],",M21=",bN[1],",M22=",bN[4],",Dx=",r(bR.x/y),",Dy=",r(bR.y/y),")",br].join("")}switch(P[this[a4]]){case 4:bC=--this._zindex;break;case 10:this._clear()}if("src" in be){bi=this._map(bf,bd);if(this.xImageRender){bB.push("<v:image",b,bC,";width:",bg,"px;height:",bn,"px;left:",r(bi.x/y),"px;top:",r(bi.y/y),'px" coordsize="100,100','" src="',be.src,'" cropleft="',bl/bz,'" croptop="',bk/bE,'" cropright="',(bz-bl-bm)/bz,'" cropbottom="',(bE-bk-bs)/bE,'" />')
}else{bh=(bl||bk);bj=this._efx?bF(this._mtx,bf,bd,bg,bn):"";bM=[["<div",b,bC-10,";left:$1px;top:$2px",bj,'">'].join(""),['<div style="position:relative;overflow:hidden;width:',r(bg),"px;height:",r(bn),'px">'].join(""),!bh?"":['<div style="width:',a3(bg+bl*bg/bm),"px;height:",a3(bn+bk*bn/bs),"px;",bG,z,".Matrix(Dx=",(-bl*bg/bm).toFixed(3),",Dy=",(-bk*bn/bs).toFixed(3),")",br,'">'].join(""),['<div style="width:',r(bz*bg/bm),"px;height:",r(bE*bn/bs),"px;"].join(""),["background-color:",bu[0],";",bG,z,".Alpha(opacity=$3)",br].join(""),[bG,z,".AlphaImageLoader(src=",be.src,",SizingMethod=",bL,")",br].join(""),['"></div>',bh?"</div>":"","</div></div>"].join("")];if(bu[1]){by=bA/2+this[aa];bx=bA/2+this[Z];bo=this.xShadowOpacityFrom;bt=this.xShadowOpacityDelta;bw=[bM[0],bM[1],bM[2],bM[3],bM[4],bM[6]].join("");
for(;bq<bA;bo+=bt,--by,--bx,++bq){bB.push(bw.replace(/\$1/,this._efx?by:r(bi.x/y)+by).replace(/\$2/,this._efx?bx:r(bi.y/y)+bx).replace(/\$3/,(bo*100).toFixed(2)))}}bB.push("<div",b,bC);if(this._efx){bB.push(bj,'">')}else{bB.push(";top:",r(bi.y/y),"px;left:",r(bi.x/y),'px">')}bB.push(bM[1],bM[2],bM[3],bM[5],bM[6])}bD=bB.join("")}else{bi=this._map(bf,bd);switch(bK.az){case 3:bB.push("<div",b,bC,";left:",r(bi.x/y),"px;top:",r(bi.y/y),'px">');bv=be._ctx2d._history.length;for(;bJ<bv;++bJ){bB.push(be._ctx2d._history[bJ])}bB.push("</div>");break;case 5:bI=ap.multiply(ap.scale(bg/bz,bn/bE),this._mtx);bB.push("<div",b,bC,bF(bI,bf,bd,bg,bn),'"><div style="width:',r(bz*bg/bm),"px;height:",r(bE*bn/bs),'px">');bv=be._ctx2d._history.length;for(;bJ<bv;++bJ){bB.push(be._ctx2d._history[bJ])}bB.push("</div></div>");
break;case 9:bI=ap.multiply(ap.scale(bg/bm,bn/bs),this._mtx);bB.push("<div",b,bC,";overflow:hidden",bF(bI,bf,bd,bg,bn),'">');bv=be._ctx2d._history.length;for(;bJ<bv;++bJ){bB.push(be._ctx2d._history[bJ])}bB.push("</div>");break}bD=bB.join("")}!this.xFlyweight&&this._history.push(this._clipPath?(bD=this._clippy(bD)):bD);this._elm.insertAdjacentHTML("BeforeEnd",bD)},createLinearGradient:function(be,bg,bd,bf){return new a(1,{x0:be,y0:bg,x1:bd,y1:bf},1)},createRadialGradient:function(bg,bi,bf,be,bh,bd){return new a(2,{x0:bg,y0:bi,r0:bf,x1:be,y1:bh,r1:bd},1)},createPattern:function(be,bd){return new au(be,bd)},_gcolor:function(be){var bg=[],bd=0,bf=be.length;for(;bd<bf;++bd){bg.push(be[bd].offset+" "+be[bd].color[0])}return bg.join(",")}});if(aV in k){M=k[aV].prototype}if(M&&((bb&&aO<=1.9)||(ax&&ar<=10))){M._save=M.save;
M._restore=M.restore;M._clearRect=M.clearRect;N(M,{_shadow:[aA,0,0,0],_stack:[],font:"10px sans-serif",textAlign:"start",textBaseline:"top",xMissColor:"#000",xTextMarginTop:1.3,xAutoTextRender:1,xShadowOpacityFrom:0.01,xShadowOpacityDelta:0.05,save:function(){this._stack.push([this[B],this[x],this[aT],N([],this._shadow)]);this._save()},restore:function(){this._restore();if(this._stack.length){var bd=this._stack.pop();this[B]=bd[0];this[x]=bd[1];this[aT]=bd[2];this._shadow=bd[3]}},clearRect:function(bd,bh,be,bg){var bf=aj;if(this.xAutoTextRender){if(bb&&aO===1.9){bf=aS}else{if(ax&&ar>=9.5&&ar<=10){bf=a9}}}bf(this,bd,bh,be,bg)},fillText:function(bh,bd,bi,bf,bg){var be=aF;if(this.xAutoTextRender){if(bb&&aO===1.9){be=bc}else{if(ax&&ar>=9.5&&ar<=10){be=j}}}be(this,bh,bd,bi,bf,bg)},strokeText:function(bf,bd,bg,be){this.fillText(bf,bd,bg,be,1)
},measureText:function(be){var bd=ah(be,this[B]);return new o(bd.w,bd.h)}});if(bb&&aO<=1.9){M.__defineSetter__(a5[0],function(bd){this._shadow[0]=bd});M.__defineSetter__(a5[1],function(bd){this._shadow[1]=bd});M.__defineSetter__(a5[2],function(bd){this._shadow[2]=bd});M.__defineSetter__(a5[3],function(bd){this._shadow[3]=bd});M.__defineGetter__(a5[0],function(){return this._shadow[0]});M.__defineGetter__(a5[1],function(){return this._shadow[1]});M.__defineGetter__(a5[2],function(){return this._shadow[2]});M.__defineGetter__(a5[3],function(){return this._shadow[3]})}}if(M&&(t&&ar===2)){M.strokeText=function(bf,bd,bg,be){this.save();this[d]=this[ba];this.fillText(bf,bd,bg,be);this.restore()}}function H(be){var bd=1,bf=be.canvas._canvasTextView.length;for(;bd<bf;++bd){be.canvas._canvasTextView[bd].textContent=""
}}function aS(bg,bd,bh,be,bf){bg._clearRect(bd,bh,be,bf)}function aj(bg,bd,bh,be,bf){if(bg.canvas._canvasTextView&&!bd&&!bh&&be==bg.canvas.width&&bf==bg.canvas.height){H(bg)}bg._clearRect(bd,bh,be,bf)}function a9(bg,bd,bh,be,bf){bg._clearRect(bd,bh,be,bf)}function bc(bk,br,bn,bl,bp,bm){var bh=bk[x],be="ltr",bf=ah(br,bk[B]),bq=0,bo=0,bg=0,bd=0,bi=0,bj=av[bk._shadow[0]]||aY(bk._shadow[0]);switch(bh){case"end":be="rtl";case"start":bh=ad(bk.canvas,"").direction===be?"left":"right"}if(bh==="center"){bq=bf.w/2}else{if(bh==="right"){bq=bf.w}}bo=(bf.h+bf.h/2)/2;bk.save();bk[a4]="source-over";bk.mozTextStyle=bk.font;bk.translate(bn-bq,bl+bo);if(bm){bk[d]=bk[ba]}if(bj[1]){bd=aE(bk.xShadowOpacityFrom+0.9,1);bi=bk.xShadowOpacityDelta;bk.save();bk.translate(a2/2+bk._shadow[1],a2/2+bk._shadow[2]);for(;bg<a2;
bd+=bi,++bg){bk.translate(-1,-1);bk[ab]=bd.toFixed(2);bk[d]=bj[0];bk.mozDrawText(br)}bk.restore()}bk.mozDrawText(br);bk.fillRect(0,0,0,0);bk.restore()}function aF(bm,bt,bq,bn,br,bo){var be=bm.canvas,bp,bj,bl,bd,bs=0,bg,bk=bm[x],bf="ltr";if(be._canvasLayerView){bp=be._canvasLayerView._view;be._canvasTextView=[bp]}else{if(!be._canvasTextView){bp=aR.body.appendChild(aR.createElement("div"));bp.style.position="absolute";bp.style.overflow="hidden";be._canvasTextView=[bp];function bi(bu){function by(bC){var bz=0,bB=0,bA;if(bC.getBoundingClientRect){bA=bC.getBoundingClientRect();bz=bA.left+pageXOffset;bB=bA.top+pageYOffset}else{while(bC){bz+=bC.offsetLeft||0;bB+=bC.offsetTop||0;bC=bC.offsetParent}}return{x:bz,y:bB}}try{var bx,bv=ad(bm.canvas,"");if(bu&1){bx=by(bm.canvas)}else{bx={x:aK(bv.left),y:aK(bv.top)}
}N(bm.canvas._canvasTextView[0].style,{height:aK(be.height)+"px",width:aK(be.width)+"px",left:bx.x+"px",top:bx.y+"px",visibility:bv.visibility,display:bv.display,opacity:am(bv.opacity)});if(!bb){N(bm.canvas._canvasTextView[0].style,{zIndex:(aK(bv.zIndex)||0)+1})}}catch(bw){}}function bh(bv){var bu=R[bv.attrName]||0;if(bu){(bu&1)&&H(bm);bi(bu)}}bi(3);be.addEventListener("DOMAttrModified",bh,false);setInterval(function(){bi(3)},1000)}else{bp=be._canvasTextView[0]}}if(bb){bl=av[bm._shadow[0]]||aY(bm._shadow[0])}else{bl=av[bm[al]]||aY(bm[al])}bg=ah(bt,bm[B]);switch(bk){case"end":bf="rtl";case"start":bk=ad(bm.canvas,"").direction===bf?"left":"right"}if(bk==="center"){bs=bg.w/2}else{if(bk==="right"){bs=bg.w}}bj=bp.appendChild(aR.createElement("div"));N(bj.style,{font:bm[B],position:"absolute",opacity:bm[ab],height:aK(bg.h*1.2)+"px",width:aK(bg.w*1.2)+"px",left:(bq-bs)+"px",top:bn+"px"});
if(bl[1]){bj.style.textShadow=[bm[a5[1]]+"px",bm[a5[2]]+"px",bm[a5[3]]+"px",bm[a5[0]]].join(" ")}bd=bo?ba:d;if(typeof bm[bd]==="string"){bj.style.color=bm[bd]}bj.textContent=bt;be._canvasTextView.push(bj)}function j(by,bm,bi,bh,bx,bj){bm=bm.replace(/(\t|\v|\f|\r\n|\r|\n)/g," ");function bg(bz){return aR.createElementNS("http://www.w3.org/2000/svg",bz)}function bt(bB,bA){for(var bz in bA){bB.setAttribute(bz,bA[bz])}}function bk(bz,bE,bC,bD,bB){var bA=[];bz.appendChild(bA[0]=bg("defs"));bA[0].appendChild(bA[1]=bg("filter"));bA[1].appendChild(bA[2]=bg("feGaussianBlur"));bA[1].appendChild(bA[3]=bg("feOffset"));bA[1].appendChild(bA[4]=bg("feFlood"));bA[1].appendChild(bA[5]=bg("feComposite"));bA[1].appendChild(bA[6]=bg("feMerge"));bA[6].appendChild(bA[7]=bg("feMergeNode"));bA[6].appendChild(bA[8]=bg("feMergeNode"));
bt(bA[1],{id:"dropshadow",filterUnits:"userSpaceOnUse"});bt(bA[2],{"in":"SourceAlpha",stdDeviation:(bD<8)?bD/2:ai.sqrt(bD*2)});bt(bA[3],{dx:bE,dy:bC,result:"offsetblur"});bt(bA[4],{"flood-color":bB[0],"flood-opacity":bB[1]});bt(bA[5],{in2:"offsetblur",operator:"in"});bt(bA[8],{"in":"SourceGraphic"})}var bw=bj?by[ba]:by[d],bl=(typeof bw==="string")?0:bw._type,bu=by[x],br=ad(by.canvas,"").direction==="ltr",bp=n(by[B],by.canvas),bs=ah(bm,by[B]),bq=bg("svg"),bn=bg("text"),bd=av[by[al]]||aY(by[al]),bf={x:0,y:0},bo=100,bv;switch(bu){case"left":bu="start";break;case"center":bu="middle";break;case"right":bu="end";break;case"start":bu=br?"start":"end";break;case"end":bu=br?"end":"start"}switch(bu){case"middle":bf.x=bs.w/2;break;case"end":bf.x=bs.w}if(by[aT]==="top"){bf.y=bp.size/(v[bp.rawfamily.split(",")[0].toUpperCase()]||by.xTextMarginTop)
}bt(bq,{width:bs.w+bo,height:bs.h+bo});if(bd[1]){bk(bq,by[aa],by[Z],by[aJ],bd);bt(bn,{filter:"url(#dropshadow)"})}bt(bn,{x:0+bo/2+bf.x,y:bf.y+bf.y/2.4+bo/2,fill:bl?by.xMissColor:bw,"text-anchor":bu,"font-style":bp.style,"font-variant":bp.variant,"font-size":bp.size+"px","font-weight":bp.weight,"font-family":bp.family});bv=bn.getAttribute("font-family");if(!bv.replace(/[\"\']/g,"")){return}bq.appendChild(bn);bn.appendChild(aR.createTextNode(bm));aR.body.appendChild(bq);by.save();by[a4]="source-over";try{by.drawImage(bq,bi-bo/2-bf.x,bh-bo/2)}catch(be){}by.restore();aR.body.removeChild(bq)}function W(){var bf=/loaded|complete/,bd="readyState",be,bh="onreadystatechange";if(!V){if(aR.getElementsByTagName("canvas").length){++aB}else{if(ax){addEventListener("load",function(){++aB},false)}else{if(p&&aR[bd]){be=function(){bf.test(aR[bd])?++aB:setTimeout(be,0)
};be()}else{if(bb){aR.addEventListener("DOMContentLoaded",function(){++aB},false)}else{++aB}}}}return}function bg(){var bi,bk=aR.getElementsByTagName("canvas"),bj=bk.length;while(bj--){bi=bk[bj];e.init(bk[bj],(!D||(" "+bi.className+" ").indexOf(" vml ")>=0))}++aB}if(bf.test(aR[bd])){bg()}else{be=function(){bf.test(aR[bd])&&(bg(),aR.detachEvent(bh,be))};aR.attachEvent(bh,be)}}k.uuCanvas=e;e.SL2D=I;e.VML2D=a8;if(V){aR.createElement("canvas");k.CanvasRenderingContext2D=function(){};k.CanvasGradient=a;k.CanvasPattern=au}W()})();(function(){var g,k=uuMeta,f=parseFloat,h=Math,a=h.round,e=k.hex,b={transparent:{hex:"#000000",num:0,r:0,g:0,b:0,a:0,valid:1}},i=/^#(([\da-f])([\da-f])([\da-f])([\da-f]{3})?)$/,d=/[\d\.]+%/g,c=/(rgba?)\((\d+),(\d+),(\d+)(?:,([\d\.]+))?\)/;g={parse:function(p,o){var r=b[p],l,q;
!r&&(p=p.toLowerCase().replace(/\s+/g,""),r=b[p]);if(r){return o?r:[r.hex,r.a,r.valid]}if((l=i.exec(p))){r=l[5]?l[1]:[l[2],l[2],l[3],l[3],l[4],l[4]].join("");if(o){q=parseInt(r,16);return{r:(q>>16)&255,g:(q>>8)&255,b:q&255,a:1,valid:1}}return["#"+r,1,1]}l=c.exec(p);if(!l){l=c.exec(p.replace(d,function(m){return h.min((f(m)||0)*2.55,255)|0}))}if(l){return o?{r:l[2]|0,g:l[3]|0,b:l[4]|0,a:l[1]==="rgb"?1:f(l[5]),valid:1}:[["#",e[l[2]],e[l[3]],e[l[4]]].join(""),l[1]==="rgb"?1:f(l[5]),1]}return o?{r:0,g:0,b:0,a:0,valid:0}:["#000000",0,0]},refHash:function(){return b},hex:function(l){return["#",e[l.r],e[l.g],e[l.b]].join("")},rgba:function(l){return"rgba("+[l.r,l.g,l.b,l.a].join(",")+")"},arrange:function(m,o,n,l){var q=g.rgba2hsva(m),p=360;q.h+=o,q.h=(q.h>p)?q.h-p:(q.h<0)?q.h+p:q.h;q.s+=n,q.s=(q.s>100)?100:(q.s<0)?0:q.s;
q.v+=l,q.v=(q.v>100)?100:(q.v<0)?0:q.v;return g.hsva2rgba(q)},comple:function(l){return{r:l.r^255,g:l.g^255,b:l.b^255,a:l.a}},gray:function(l){return{r:l.g,g:l.g,b:l.g,a:l.a}},sepia:function(o){var q=o.r,p=o.g,l=o.b,s=0.299*q+0.587*p+0.114*l,n=-0.091,m=0.056;q=s+1.4026*m;p=s-0.3444*n-0.7114*m;l=s+1.733*n;q*=1.2;l*=0.8;return{r:q<0?0:q>255?255:q|0,g:p<0?0:p>255?255:p|0,b:l<0?0:l>255?255:l|0,a:o.a}},hex2rgba:function(l){var m=parseInt(l.slice(1),16);return{r:(m>>16)&255,g:(m>>8)&255,b:m&255,a:1}},rgba2hsva:function(m){var l=m.r/255,o=m.g/255,p=m.b/255,q=h.max(l,o,p),t=q-h.min(l,o,p),n=0,w=q?a(t/q*100):0,u=a(q*100);if(!w){return{h:0,s:0,v:u,a:m.a}}n=(l===q)?((o-p)*60/t):(o===q)?((p-l)*60/t+120):((l-o)*60/t+240);return{h:(n<0)?n+360:n,s:w,v:u,a:m.a}},hsva2rgba:function(u){var o=(u.h>=360)?0:u.h,D=u.s/100,B=u.v/100,z=u.a,x=o/60,y=x|0,r=x-y,n,m,l,C,A;
if(!D){o=a(B*255);return{r:o,g:o,b:o,a:z}}n=B*255,m=a((1-D)*n),l=a((1-(D*r))*n),C=a((1-(D*(1-r)))*n),A=a(n);switch(y){case 0:return{r:A,g:C,b:m,a:z};case 1:return{r:l,g:A,b:m,a:z};case 2:return{r:m,g:A,b:C,a:z};case 3:return{r:m,g:l,b:A,a:z};case 4:return{r:C,g:m,b:A,a:z};case 5:return{r:A,g:m,b:l,a:z}}return{r:0,g:0,b:0,a:z}},rgba2hsla:function(o){var m=o.r/255,t=o.g/255,u=o.b/255,v=Math.max(m,t,u),p=Math.min(m,t,u),w=v-p,q=0,x=0,n=(p+v)/2;if(n>0&&n<1){x=w/(n<0.5?n*2:2-(n*2))}if(w>0){if(v===m&&v!==t){q+=(t-u)/w}else{if(v===t&&v!==u){q+=(u-m)/w+2}else{if(v===u&&v!==m){q+=(m-t)/w+4}}}q*=60}return{h:q,s:a(x*100),l:a(n*100),a:o.a}},hsla2rgba:function(n){var t=(n.h===360)?0:n.h,y=n.s/100,q=n.l/100,m,u,v,x,w,p,o;if(t<120){m=(120-t)/60,u=t/60,v=0}else{if(t<240){m=0,u=(240-t)/60,v=(t-120)/60}else{m=(t-240)/60,u=0,v=(360-t)/60
}}x=1-y;w=y*2;m=w*(m>1?1:m)+x;u=w*(u>1?1:u)+x;v=w*(v>1?1:v)+x;if(q<0.5){m*=q,u*=q,v*=q}else{p=1-q;o=q*2-1;m=p*m+o;u=p*u+o;v=p*v+o}return{r:a(m*255),g:a(u*255),b:a(v*255),a:n.a}}};function j(){var o,q,m,l,n=0,p=("7b7b7bfc00,0000fffc01,0000bdfc02,4229bdfc03,940084fc04,ad0021fc05,8c1000fc06,8c1000fc07,522900fc08,007300fc09,006b00fc0a,005a00fc0b,004252fc0c,000000fc0d,000000fc0e,000000fc0f,bdbdbdfc10,0073f7fc11,0052f7fc12,6b42fffc13,de00cefc14,e7005afc15,f73100fc16,e75a10fc17,ad7b00fc18,00ad00fc19,00ad00fc1a,00ad42fc1b,008c8cfc1c,000000fc1d,000000fc1e,000000fc1f,f7f7f7fc20,39bdfffc20,6b84fffc22,9473f7fc23,f773f7fc24,f75294fc25,f77352fc26,ffa542fc27,f7b500fc28,b5f710fc29,5ade52fc2a,52f794fc2b,00efdefc2c,737373fc2d,000000fc2e,000000fc2f,fffffffc30,a5e7fffc31,b5b5f7fc32,d6b5f7fc33,f7b5f7fc34,ffa5c6fc35,efceadfc36,ffe7adfc37,ffde7bfc38,d6f773fc39,b5f7b5fc3a,b5f7d6fc3b,00fffffc3c,f7d6f7fc3d,000000fc3e,000000fc3f,000000black,888888gray,ccccccsilver,ffffffwhite,ff0000red,ffff00yellow,00ff00lime,00ffffaqua,00ffffcyan,0000ffblue,ff00fffuchsia,ff00ffmagenta,880000maroon,888800olive,008800green,008888teal,000088navy,880088purple,696969dimgray,808080gray,a9a9a9darkgray,c0c0c0silver,d3d3d3lightgrey,dcdcdcgainsboro,f5f5f5whitesmoke,fffafasnow,708090slategray,778899lightslategray,b0c4delightsteelblue,4682b4steelblue,5f9ea0cadetblue,4b0082indigo,483d8bdarkslateblue,6a5acdslateblue,7b68eemediumslateblue,9370dbmediumpurple,f8f8ffghostwhite,00008bdarkblue,0000cdmediumblue,4169e1royalblue,1e90ffdodgerblue,6495edcornflowerblue,87cefalightskyblue,add8e6lightblue,f0f8ffaliceblue,191970midnightblue,00bfffdeepskyblue,87ceebskyblue,b0e0e6powderblue,2f4f4fdarkslategray,00ced1darkturquoise,afeeeepaleturquoise,f0ffffazure,008b8bdarkcyan,20b2aalightseagreen,48d1ccmediumturquoise,40e0d0turquoise,7fffd4aquamarine,e0fffflightcyan,00fa9amediumspringgreen,7cfc00lawngreen,00ff7fspringgreen,7fff00chartreuse,adff2fgreenyellow,2e8b57seagreen,3cb371mediumseagreen,66cdaamediumaquamarine,98fb98palegreen,f5fffamintcream,006400darkgreen,228b22forestgreen,32cd32limegreen,90ee90lightgreen,f0fff0honeydew,556b2fdarkolivegreen,6b8e23olivedrab,9acd32yellowgreen,8fbc8fdarkseagreen,9400d3darkviolet,8a2be2blueviolet,dda0ddplum,d8bfd8thistle,8b008bdarkmagenta,9932ccdarkorchid,ba55d3mediumorchid,da70d6orchid,ee82eeviolet,e6e6falavender,c71585mediumvioletred,bc8f8frosybrown,ff69b4hotpink,ffc0cbpink,ffe4e1mistyrose,ff1493deeppink,db7093palevioletred,e9967adarksalmon,ffb6c1lightpink,fff0f5lavenderblush,cd5c5cindianred,f08080lightcoral,f4a460sandybrown,fff5eeseashell,dc143ccrimson,ff6347tomato,ff7f50coral,fa8072salmon,ffa07alightsalmon,ffdab9peachpuff,ffffe0lightyellow,b22222firebrick,ff4500orangered,ff8c00darkorange,ffa500orange,ffd700gold,fafad2lightgoldenrodyellow,8b0000darkred,a52a2abrown,a0522dsienna,b8860bdarkgoldenrod,daa520goldenrod,deb887burlywood,f0e68ckhaki,fffacdlemonchiffon,d2691echocolate,cd853fperu,bdb76bdarkkhaki,bdb76btan,eee8aapalegoldenrod,f5f5dcbeige,ffdeadnavajowhite,ffe4b5moccasin,ffe4c4bisque,ffebcdblanchedalmond,ffefd5papayawhip,fff8dccornsilk,f5deb3wheat,faebd7antiquewhite,faf0e6linen,fdf5e6oldlace,fffaf0floralwhite,fffff0ivory").split(",");
while((l=p[n++])){o=l.slice(6);q=l.slice(0,6);m=parseInt(q,16);b[o]={hex:"#"+q,num:m,r:(m>>16)&255,g:(m>>8)&255,b:m&255,a:1,valid:1}}}j();window.uuColor=g})();(function(){var h,n=uuMeta,c=uuStyle,f=uuImage,a=document,i=n.ie,d=n.opera,j=parseInt,e=parseFloat,g=Math,k=g.PI/180,m=n.runstyle,b=n.mix,l={};h=function(q,t,o){var r=n.uid(q),u=i?q[m]:m(q,""),p=(t===void 0||t==="auto")?"auto":j(t)+"px",s=(o===void 0||o==="auto")?"auto":j(o)+"px";if(r in l){return l[r]}this.view=q;this._layer={};this._stack=[];this._cctx=void 0;this._clid=void 0;b(q.style,{width:p,height:s,zIndex:j(u.zIndex)||0,overflow:"hidden"});if(u.position==="static"){q.style.position="relative"}l[r]=this};h.getLayerInstance=function(p){var o=n.uid(p);if(o in l){return l[o]}return null};h.prototype={resizeView:function(p,o){this.view.style.width=p;
this.view.style.height=o},getViewInfo:function(){var s=this._layer,x,t,r=0,o,u,w=0,q=0,p=[];for(t in s){++r;x=j(s[t].elm.style.zIndex);(!o||w<=x)&&(w=x,o=t);(!u||q>=x)&&(q=x,u=t);p[x]=t}return{clid:this._clid,cctx:this._cctx,front:o||"",rear:u||"",zmax:w||0,zmin:q||0,zorder:p,length:r}},createLayer:function(o,t,r,q,p,x){t=t.toLowerCase();var s,w,z,u=this.view,y=this.getViewInfo();if(/canvas$/.test(t)){s=a.createElement("canvas");s.width=(p!==void 0)?p:(u.style.width==="auto")?u.offsetWidth:j(u.style.width);s.height=(x!==void 0)?x:(u.style.height==="auto")?u.offsetHeight:j(u.style.height);s=uuCanvas.init(s,t==="vmlcanvas");if(i){if(s.unbind){s.unbind()}}w=s.style;q?u.insertBefore(s,u.firstChild):u.appendChild(s);z=s.getContext("2d");z.textBaseline="top";this._clid=o;this._cctx=z}else{s=a.createElement(t);
w=s.style;q?u.insertBefore(s,u.firstChild):u.appendChild(s);if(t!=="img"){w.width=u.style.width;w.height=u.style.height}else{(p!==void 0)&&(s.width=p);(x!==void 0)&&(s.height=x)}}w.zIndex=q?(y.zmin-1):(y.zmax+1);w.display=r?"none":"";w.position="absolute";w.top="0";w.left="0";this._layer[o]={elm:s,ctx:z,chain:[]};return s},appendLayer:function(t,r,p){var s=r,q=s.tagName.toLowerCase(),o;if(q==="canvas"){o=s.getContext("2d");o.textBaseline="top";this._clid=t;this._cctx=o}s.style.zIndex=this.getViewInfo().length;this._layer[t]={elm:s,ctx:o,chain:[]};return s},removeLayer:function(r){if(r in this._layer){var o=this._layer[r],p=0,q=o.chain.length;for(;p<q;++p){o.chain[p].elm.parentNode.removeChild(o.chain[p].elm);delete this._layer[o.chain[p]]}o.elm.parentNode.removeChild(o.elm);o.elm=void 0;delete this._layer[r];
this._stack=[];this._clid=void 0;this._cctx=void 0}return this},resizeLayer:function(r,p,o){var q=this._layer[r].elm;switch(q.tagName.toLowerCase()){case"canvas":case"img":i&&q.bind&&q.bind();q.width=p;q.height=o;i&&q.unbind&&q.unbind();break;default:q.style.width=p+"px";q.style.height=o+"px"}return this},refLayer:function(o){return this._layer[o].elm},bringLayer:function(u,t){var p=this._layer,s,o,r=j(p[u].elm.style.zIndex),q=j(p[t||this.getViewInfo().front].elm.style.zIndex);if(r<q){for(o in p){s=j(p[o].elm.style.zIndex);if(s>r&&s<=q){p[o].elm.style.zIndex=s-1}}p[u].elm.style.zIndex=q}else{if(r===q){p[u].elm.style.zIndex=r+1}}return this},_chains:function(s){var r={},o,p=0,q;r[s]=o=this._layer[s];for(q=o.chain.length;p<q;++p){r[o.chain[p]]=this._layer[o.chain[p]]}return r},moveLayer:function(w,o,u,t){o=j(o),u=j(u),t=t||0;
var s=w?this._chains(w):this._layer,p,q,r=i||d;for(q in s){p=s[q].elm.style;if(r){p.pixelLeft=(t?p.pixelLeft:0)+o;p.pixelTop=(t?p.pixelTop:0)+u}else{p.left=(t?j(p.left):0)+o+"px";p.top=(t?j(p.top):0)+u+"px"}}return this},showLayer:function(o){return this._showLayer(o,0)},hideLayer:function(o){return this._showLayer(o,1)},_showLayer:function(r,p){var q=r?this._chains(r):this._layer,o;for(o in q){q[o].elm.style.display=p?"none":"block"}return this},getLayerOpacity:function(o){return c.getOpacity(this._layer[o].elm)},setLayerOpacity:function(s,o,r){o=(o===void 0)?1:o;r=r||0;var q=s?this._chains(s):this._layer,p;for(p in q){c.setOpacity(q[p].elm,o,r)}return this},getContext:function(o){if(o){return(o in this._layer)?this._layer[o].ctx:void 0}return this._cctx},push:function(o){this._clid&&this._stack.push(this._clid);
this._clid=o;this._cctx=this._layer[o].ctx;return this},pop:function(){if(this._stack.length){this._clid=this._stack.pop();this._cctx=this._layer[this._clid].ctx}return this},alphas:function(o){this._cctx.globalAlpha=o;return this},fills:function(o){this._cctx.fillStyle=o;return this},wires:function(p,o){this._cctx.strokeStyle=p;if(o!==void 0){this._cctx.lineWidth=o}return this},fonts:function(o){this._cctx.font=o;return this},lines:function(o){this._cctx.lineWidth=o;return this},shadows:function(q,o,s,r){var p=this._cctx;(q!==void 0)&&(p.shadowColor=q);(o!==void 0)&&(p.shadowOffsetX=o);(s!==void 0)&&(p.shadowOffsetY=s);(r!==void 0)&&(p.shadowBlur=r);return this},sets:function(p){var o=this._cctx,q;for(q in p){o[q]=p[q]}return this},gets:function(p){var o=this._cctx,q,r={};for(q in p){r[q]=o[q]
}return r},clear:function(o,s,q,r){var p=this._cctx;p.clearRect(o||0,s||0,q||p.canvas.width,r||p.canvas.height);return this},save:function(){this._cctx.save();return this},restore:function(){this._cctx.restore();return this},scale:function(o,p){this._cctx.scale(o,p);return this},translate:function(o,p){this._cctx.translate(o,p);return this},rotate:function(p){var o=(/rad$/.test(p+"")?1:k)*e(p);this._cctx.rotate(o);return this},transform:function(r,q,t,s,p,o){this._cctx.transform(r,q,t,s,p,o);return this},begin:function(o,p){this._cctx.beginPath();(o!==void 0&&p!==void 0)&&this._cctx.moveTo(o||0,p||0);return this},move:function(o,p){this._cctx.moveTo(o,p);return this},line:function(o,p){this._cctx.lineTo(o,p);return this},curve:function(q,p,o,t,s,r){if(s===void 0){this._cctx.quadraticCurveTo(q,p,o,t)
}else{this._cctx.bezierCurveTo(q,p,o,t,s,r)}return this},clip:function(){this._cctx.clip();return this},arc:function(o,w,t,q,p,s){q=q||"0deg";p=p||"360deg";var v=(/rad$/.test(q+"")?1:k)*e(q),u=(/rad$/.test(p+"")?1:k)*e(p);this._cctx.arc(o,w,t,v,u,(s===void 0)?0:!s);return this},draw:function(o){o?this._cctx.stroke():this._cctx.fill();return this},close:function(){this._cctx.closePath();return this},text:function(s,o,t,r,q){var p=r?"strokeText":"fillText";if(q===void 0){this._cctx[p](s,o||0,t||0)}else{this._cctx[p](s,o||0,t||0,q)}return this},measureText:function(o){this._cctx.measureText(o)},poly:function(o,s){var r=o||[0,0],q,t=o.length;this.close().begin(r[0],r[1]);for(q=2;q<t;q+=2){this.line(r[q],r[q+1])}this.draw(s).close()},box:function(o,u,p,q,s,t){return this.boxpath(o,u,p,q,s).draw(t)
},boxpath:function(o,t,p,q,s){if(!s){this._cctx.rect(o,t,p,q);return this}if(s<0){s=0}return this.close().begin(o,t+s).line(o,t+q-s).curve(o,t+q,o+s,t+q).line(o+p-s,t+q).curve(o+p,t+q,o+p,t+q-s).line(o+p,t+s).curve(o+p,t,o+p-s,t).line(o+s,t).curve(o,t,o,t+s).close()},metabo:function(o,v,p,q,s,t,u){s=s||0;t=(t===void 0)?10:t;if(t){return this.close().begin(o,v+s).line(o,v+q-s).curve(o+p*0.5,v+q+t,o+p,v+q-s).line(o+p,v+s).curve(o+p,v,o+p-s,v).line(o+s,v).curve(o,v,o,v+s).draw(u).close()}return this.close().begin(o,v+s).line(o,v+q).line(o+p,v+q).line(o+p,v+s).curve(o+p,v,o+p-s,v).line(o+s,v).curve(o,v,o,v+s).draw(u).close()},circle:function(o,u,p,q,s,t){if(p===q){return this.close().begin(o,u).arc(o,u,s).draw(t).close()}return this},dots:function(B,A,D,u,q,t,z){var F=this._cctx,s=0,r=0,o,E,C=z||0;
for(;r<u;++r){for(s=0;s<D;++s){E=t[C+s+r*D];if(!(E in q)){continue}o=q[E];if(typeof o==="string"){F.fillStyle=o}else{if(o.a){F.fillStyle="rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}}F.fillRect(B+s,A+r,1,1)}}return this},linearGrad:function(p,w,o,v,t,s){var r=this._cctx.createLinearGradient(p,w,o,v),u=0,q=t.length;for(;u<q;++u){r.addColorStop(t[u],s[u])}return r},radialGrad:function(p,y,t,o,x,r,v,u){var s=this._cctx.createRadialGradient(p,y,t,o,x,r),w=0,q=v.length;for(;w<q;++w){s.addColorStop(v[w],u[w])}return s},pattern:function(p,o){return this._cctx.createPattern(p,o||"repeat")},image:function(r,w,v,u,t,s,q,p,o){switch(arguments.length){case 1:this._cctx.drawImage(r,0,0);break;case 3:this._cctx.drawImage(r,w,v);break;case 5:this._cctx.drawImage(r,w,v,u,t);break;case 9:this._cctx.drawImage(r,w,v,u,t,s,q,p,o);
break;default:throw""}return this},fitImage:function(q){var x=this._cctx,s=f.getActualDimension(q),r=j(x.canvas.width),p=j(x.canvas.height),v=s.w,t=s.h,y=(v<=r)?g.floor((r-v)/2):0,w=(t<=p)?g.floor((p-t)/2):0,o=(v<=r)?v:r,u=(t<=p)?t:p;x.drawImage(q,0,0,v,t,y,w,o,u);return this},grid:function(A,v,o,z){A=A||10,v=v||5;o=o||"skyblue",z=z||"steelblue";var t=A,s=A,q=1,p=1,u=j(this._cctx.canvas.width),r=j(this._cctx.canvas.height);for(;t<u;++q,t+=A){this.wires((q%v)?o:z).begin(t,0).line(t,r).draw(1).close()}for(;s<r;++p,s+=A){this.wires((p%v)?o:z).begin(0,s).line(u,s).draw(1).close()}return this},angleGlossy:function(A,z,C,t){C=(C||"GBLACK").toUpperCase();C=(C in this.preset)?this.preset[C]:{};t=b({w:100,h:100,r:12,angle:0},C,t||{});var B=t.w,s=t.h,o=t.r,q=t.angle,p=t.overlayAlpha,v=3,u=0;if(q<-45){q=-45
}if(q>45){q=45}this.fills(this.linearGrad(A,z,A,z+s,[0,1],[t.gcolor1,t.gcolor2])).begin().box(A,z,B,s,o).close().fills("rgba(255,255,255,"+p+")");switch(q){case 45:this.begin(A+v,z+v+o).line(A+v,z+s-v*2).line(A+B-v*2,z+v).line(A+v+o,z+v).curve(A,z,A+v,z+v+o).draw().close();break;case -45:this.begin(A-v+B,z+v+o).line(A-v+B,z+s-v*2).line(A+v*2,z+v).line(A-v-o+B,z+v).curve(A+B,z,A-v+B,z+v+o).draw().close();break;default:u=((s-v*2)/45*q)/2;this.begin(A+v,z+v+o).line(A+v,z+(s/2)-v*2+u).line(A+B-v,z+(s/2)-v*2-u).line(A+B-v,z+v+o).curve(A+B,z,A+B-o,z+v).line(A+v+o,z+v).curve(A,z,A+v,z+v+o).draw().close()}return this},metaboGlossy:function(A,z,C,u){C=(C||"GBLACK").toUpperCase();C=(C in this.preset)?this.preset[C]:{};u=b({w:100,h:50,r:12,bulge:6},C,u||{});var B=u.w,t=u.h,o=u.r,s=u.bulge,q=u.overlayAlpha,p=o>4?o-4:0,v=3;
this.fills(this.linearGrad(A,z,A,z+t,[0,1],[u.gcolor1,u.gcolor2])).begin().box(A,z,B,t,o).close().fills("rgba(255,255,255,"+q+")").begin().metabo(A+v,z+v,B-v*2,t*0.5,p,s).close();return this},jellyBean:function(o,r,p,q){q=b({w:100,h:30,r:16,bulge:6},q||{});this.metaboGlossy(o,r,p,q);return this},createReflectionLayer:function(p,t,B,E,D,q,G,r,A,u){var z=f.getActualDimension(t),F=q||z.w,v=G||z.h,s=A||0,o=u||0,C=(r===void 0)?0.625:r;if(!i){return this._addReflection(p,t,B,z,E||0,D||0,F,v,C,s,o)}return this._addReflectionIE(p,t,B,z,E||0,D||0,F,v,C,s,o)},_addReflection:function(p,r,u,s,D,B,F,t,v,q,o){var z=this.createLayer(p,"canvas",u),E,C=F/s.w,A=t/s.h;z.width=F;z.height=t+t*v;this.moveLayer(p,D,B);D=0,B=0;E=this.linearGrad(D,B+t,D,B+t+t*v,[v,0],["rgba(255, 255, 255, 1.0)","rgba(255, 255, 255, 0.3)"]),this.clear().save().translate(D,B).scale(C,A).image(r).restore().save().translate(D+q,B+t*2+o).scale(C,-A).image(r).restore().save().sets({globalCompositeOperation:"destination-out"}).fills(E).box(D,B+t,F,t*v).restore();
return z},_addReflectionIE:function(A,z,u,B,s,r,t,D,F,q,p){var o="DXImageTransform.Microsoft.",C=o+"BasicImage",E=o+"Alpha",H=this.createLayer(A,"img",u),G=this.createLayer(A+"_reflection","img",u),I=G.style,v;b(H,{src:z.src,width:t,height:D});b(G,{src:z.src,width:t,height:D});b(H.style,{top:s+"px",left:r+"px"});b(G.style,{top:(s+D+p)+"px",left:(r+q)+"px"});(I.filter.indexOf(C)<0)&&(I.filter+=" progid:"+C);(I.filter.indexOf(E)<0)&&(I.filter+=" progid:"+E);v=G.filters.item(C);v.Mask=0;v.Xray=0;v.Invert=0;v.Mirror=1;v.Opacity=1;v.Rotation=2;v.GrayScale=0;v.Enabled=1;v=G.filters.item(E);v.Style=1;v.StartX=0;v.StartY=0;v.FinishX=0;v.FinishY=(1-F)*100;v.Opacity=70;v.FinishOpacity=0;v.Enabled=1;this._layer[A].chain.push(A+"_reflection");return H}};(function(){function o(r,p,q){return{gcolor1:r,gcolor2:p,overlayAlpha:q}
}h.prototype.preset={GBLACK:o("#000","#333",0.25),GGRAY:o("black","silver",0.38),GSLIVER:o("gray","white",0.38),GBLUE:o("#0000a0","#0097ff",0.38),GGREEN:o("#006400","#00ff00",0.38),GRED:o("#400000","#ff0000",0.38),GLEMON:o("#dfcc00","#FFE900",0.38),GGOLD:o("#fffacd","gold",0.45),GPEACH:o("violet","red",0.38),GBLOODORANGE:o("orange","red",0.38)}})();window.uuLayer=h})();