-
Notifications
You must be signed in to change notification settings - Fork 5
/
fusioncharts.vml.js
14 lines (14 loc) · 27.4 KB
/
fusioncharts.vml.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
!function(t){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=t:t()}((function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[16],{1659:function(t,e,r){"use strict";var i=r(273);e.__esModule=!0,e["default"]=void 0;var n=i(r(1660)),a=i(r(1661)),o={extension:function(t){var e=t.getDep("redraphael","plugin");(0,n["default"])(e),(0,a["default"])(e)},name:"redraphaelVml",type:"plugin",requiresFusionCharts:!0};e["default"]=o},1660:function(t,e,r){"use strict";e.__esModule=!0,e["default"]=
/**!
* RedRaphael 1.0.0 - JavaScript Vector Library VML Module
* Copyright (c) 2012-2013 FusionCharts, Inc. <http://www.fusioncharts.com>
*
* Raphael 2.1.0 - JavaScript Vector Library VML Module
* Copyright (c) 2008-2012 Dmitry Baranovskiy <http://raphaeljs.com>
* Copyright © 2008-2012 Sencha Labs <http://sencha.com>
*
* Licensed under the MIT license.
*/
function(t){if(t.vml){var e,r="hasOwnProperty",n=String,a=parseFloat,o=Math,s=o.round,l=o.max,c=o.min,p=o.sqrt,h=o.abs,f=/[, ]+/,d=t.eve,u=Array.prototype.shift,g=t._g.doc.createElement("div"),v=" ",m="",_={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},w=/([clmz]),?([^clmz]*)/gi,b=/-?[^,\s-]+/g,k="position:absolute;left:0;top:0;width:1px;height:1px",S=21600,T={path:1,rect:1,image:1},R={circle:1,ellipse:1},C=function(e,r,i){var n=t.matrix();return n.rotate(-e,.5,.5),{dx:n.x(r,i),dy:n.y(r,i)}},N=function(t,e,r,i,n,a){var o=t._,s=t.matrix,l=o.fillpos,c=t.node,p=c.style,f=1,d="",u=S/e,y=S/r;if(p.visibility="hidden",e&&r){if(c.coordsize=h(u)+v+h(y),p.rotation=a*(e*r<0?-1:1),a){var g=C(a,i,n);i=g.dx,n=g.dy}if(e<0&&(d+="x"),r<0&&(d+=" y")&&(f=-1),p.flip=d,c.coordorigin=i*-u+v+n*-y,l||o.fillsize){var x=c.getElementsByTagName("fill");(x=x&&x[0])&&(c.removeChild(x),l&&(g=C(a,s.x(l[0],l[1]),s.y(l[0],l[1])),x.position=g.dx*f+v+g.dy*f),o.fillsize&&(x.size=o.fillsize[0]*h(e)+v+o.fillsize[1]*h(r)),c.appendChild(x))}p.visibility="visible"}};g.innerHTML='<v:shape adj="1"/>',(e=g.firstChild).style.behavior="url(#default#VML)",e&&"object"==typeof e.adj||(t.type=m),g=null,t._url=m,t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var B,z=function(t,e){for(var r in e)d("raphael.attr."+r+"."+t.id,t,e[r],r),t.ca[r]&&t.attr(r,e[r])},L=["font","line-height","font-family","font-weight","font-style","font-size"],E=t._setFillAndStroke=function(e,i){if(e.paper.canvas){e.attrs=e.attrs||{};var o,p=e.node,h=e.attrs,d=p.style,u=T[e.type]&&(i.x!=h.x||i.y!=h.y||i.width!=h.width||i.height!=h.height||i.cx!=h.cx||i.cy!=h.cy||i.rx!=h.rx||i.ry!=h.ry||i.r!=h.r),y=R[e.type]&&(h.cx!=i.cx||h.cy!=i.cy||h.r!=i.r||h.rx!=i.rx||h.ry!=i.ry),g="group"===e.type,x=e;for(var k in o=x.oriOp||(x.oriOp={}),i)""!==i[k]?i[r](k)&&(h[k]=i[k]):(p.removeAttribute(k),delete h[k],delete i[k]);if(u&&(h.path=t._getPath[e.type](e),e._.dirty=1),i.href&&(p.href=i.href),i.title&&(p.title=i.title),i.target&&(p.target=i.target),i.cursor&&(d.cursor=i.cursor),"blur"in i&&e.blur(i.blur),(i.path&&"path"==e.type||u)&&(p.path=function(e){var r=/[ahqstv]/gi,i=t._pathToAbsolute;if(n(e).match(r)&&(i=t._path2curve),r=/[clmz]/g,i==t._pathToAbsolute&&!n(e).match(r)){var a=n(e).replace(w,(function(t,e,r){var i=[],n="m"==e.toLowerCase(),a=_[e];return r.replace(b,(function(t){n&&2==i.length&&(a+=i+_["m"==e?"l":"L"],i=[]),i.push(s(t*S))})),a+i}));return a||"m0,0"}var o,l,c=i(e);a=[];for(var p=0,h=c.length;p<h;p++){o=c[p],"z"==(l=c[p][0].toLowerCase())&&(l="x");for(var f=1,d=o.length;f<d;f++)l+=s(o[f]*S)+(f!=d-1?",":m);a.push(l)}return a.length?a.join(v):"m0,0"}(~n(h.path).toLowerCase().indexOf("r")?t._pathToAbsolute(h.path):h.path),"image"==e.type&&(e._.fillpos=[h.x,h.y],e._.fillsize=[h.width,h.height],N(e,1,1,0,0,0))),"transform"in i&&e.transform(i.transform),"rotation"in i){var C=i.rotation;t.is(C,"array")?e.rotate.apply(e,C):e.rotate(C)}if("visibility"in i&&("hidden"===i.visibility?e.hide():e.show()),y){var z=+h.cx,E=+h.cy,F=+h.rx||+h.r||0,A=+h.ry||+h.r||0;p.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",s((z-F)*S),s((E-A)*S),s((z+F)*S),s((E+A)*S),s(z*S))}if("clip-rect"in i){var M=n(i["clip-rect"]).split(f);if(4==M.length){M[0]=+M[0],M[1]=+M[1],M[2]=+M[2]+M[0],M[3]=+M[3]+M[1];var H,O=g?p:p.clipRect||t._g.doc.createElement("div"),W=O.style;g?(e.clip=M.slice(),H=e.matrix.offset(),H=[a(H[0]),a(H[1])],M[0]-=H[0],M[1]-=H[1],M[2]-=H[0],M[3]-=H[1],W.width="1px",W.height="1px"):p.clipRect||(W.top="0",W.left="0",W.width=e.paper.width+"px",W.height=e.paper.height+"px",p.parentNode.insertBefore(O,p),O.appendChild(p),O.raphael=!0,O.raphaelid=p.raphaelid,p.clipRect=O),W.position="absolute",W.clip=t.format("rect({1}px {2}px {3}px {0}px)",M)}i["clip-rect"]||(g&&e.clip?(p.style.clip="rect(0px 10800px 10800px 0px)",delete e.clip):p.clipRect&&(p.clipRect.style.clip="rect(0px 10800px 10800px 0px)"))}if("shape-rendering"in i&&(p.style.antialias="crisp"!==i["shape-rendering"]),e.textpath||g){var I=g?p.style:e.textpath.style;i.font&&(I.font=i.font),i["font-family"]&&(I.fontFamily='"'+i["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,m)+'"'),i["font-size"]&&(I.fontSize=i["font-size"]),i["font-weight"]&&(I.fontWeight=i["font-weight"]),i["font-style"]&&(I.fontStyle=i["font-style"])}if("arrow-start"in i&&t.addArrow&&t.addArrow(x,i["arrow-start"]),"arrow-end"in i&&t.addArrow&&t.addArrow(x,i["arrow-end"],1),null!=i.opacity||null!=i["stroke-width"]||null!=i.fill||null!=i.src||null!=i.stroke||null!=i["stroke-width"]||null!=i["stroke-opacity"]||null!=i["fill-opacity"]||null!=i["stroke-dasharray"]||null!=i["stroke-miterlimit"]||null!=i["stroke-linejoin"]||null!=i["stroke-linecap"]){var G,P=p.getElementsByTagName("fill"),V=-1;if(!(P=P&&P[0])&&(P=B("fill")),"image"==e.type&&i.src&&(!function(t,e){var r=e.src;t._.group,t.node;t._.RefImg||(t._.RefImg=new Image),e.src!==undefined&&(t._.RefImg.src=r)}(e,i),P.src=i.src),i.fill&&(P.on=!0),null!=P.on&&"none"!=i.fill&&null!==i.fill||(P.on=!1),P.on&&i.fill)if(n(i.fill).match(t._ISURL)){G=i.fill.split(t._ISURL),P.parentNode==p&&p.removeChild(P),P.rotate=!0,P.src=G[1],P.type="tile";var Y=e.getBBox(1);P.position=Y.x+v+Y.y,e._.fillpos=[Y.x,Y.y],t._preload(G[1],(function(){e._.fillsize=[this.offsetWidth,this.offsetHeight]}))}else{var q=t.getRGB(i.fill);P.color=q.hex,P.src=m,P.type="solid",q.error&&(x.type in{circle:1,ellipse:1}||"r"!=n(i.fill).charAt())&&j(x,i.fill,P)?(h.fill="none",h.gradient=i.fill,P.rotate=!1):"opacity"in q&&!("fill-opacity"in i)&&(o.nonGradOpacity=V=q.opacity)}if(-1!==V||"fill-opacity"in i||"opacity"in i){var X=((+h["fill-opacity"]+1||2)-1)*((+h.opacity+1||2)-1);X=c(l(X,0),1),o.opacity=X,o.opacity1!==undefined?(P.opacity=o.opacity1*X,P["o:opacity2"]=o.opacity2*X):P.opacity=X*(o.nonGradOpacity===undefined?1:o.nonGradOpacity),P.src&&(P.color="none")}o.opacity=undefined,p.appendChild(P);var U=p.getElementsByTagName("stroke")&&p.getElementsByTagName("stroke")[0],D=!1;!U&&(D=U=B("stroke")),(i.stroke&&"none"!=i.stroke||i["stroke-width"]||null!=i["stroke-opacity"]||i["stroke-dasharray"]||i["stroke-miterlimit"]||i["stroke-linejoin"]||i["stroke-linecap"])&&(U.on=!0),("none"==i.stroke||null===i.stroke||null==U.on||0==i.stroke||0==i["stroke-width"])&&(U.on=!1);var J=t.getRGB("stroke"in i?i.stroke:h.stroke);U.on&&i.stroke&&(U.color=J.hex),X=((+h["stroke-opacity"]+1||2)-1)*((+h.opacity+1||2)-1)*((+J.opacity+1||2)-1);var $=.75*(a(i["stroke-width"])||1);if(X=c(l(X,0),1),null==i["stroke-width"]&&($=h["stroke-width"]),i["stroke-width"]&&(U.weight=$),$&&$<1&&(X*=$)&&(U.weight=1),U.opacity="none"!==h.stroke?X:0,i["stroke-linejoin"]&&(U.joinstyle=i["stroke-linejoin"])||D&&(D.joinstyle="miter"),U.miterlimit=i["stroke-miterlimit"]||8,i["stroke-linecap"]&&(U.endcap="butt"==i["stroke-linecap"]?"flat":"square"==i["stroke-linecap"]?"square":"round"),i["stroke-dasharray"]){var Z={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};U.dashstyle=Z[r](i["stroke-dasharray"])?Z[i["stroke-dasharray"]]:i["stroke-dasharray"].join&&i["stroke-dasharray"].join(" ")||m}D&&p.appendChild(U)}if("text"==x.type){x.paper.canvas.style.display=m;var K=x.paper.span,Q=100,tt=function(t){for(var e,r,i,n={},a=L.length;t.paper&&t.paper.canvas;){for(i=t.attrs,e=!0,r=0;r<a;r++)n[L[r]]||(n[L[r]]=i[L[r]],e=!1);if(e)break;t=t.parent}return n}(x),et=tt.font&&tt.font.match(/\d+(?:\.\d*)?(?=px)/),rt=tt["line-height"]&&(tt["line-height"]+m).match(/\d+(?:\.\d*)?(?=px)/);d=K.style,tt.font&&(d.font=tt.font),tt["font-family"]&&(d.fontFamily=tt["font-family"]),tt["font-weight"]&&(d.fontWeight=tt["font-weight"]),tt["font-style"]&&(d.fontStyle=tt["font-style"]),et=a(tt["font-size"]||et&&et[0])||10,d.fontSize=et*Q+"px",rt=a(tt["line-height"]||rt&&rt[0]||1.2*et)||12,d.lineHeight=rt*Q+"px",t.is(i.text,"array")&&(i.text=x.textpath.string=i.text.join("\n").replace(/<br\s*?\/?>/gi,"\n")),x.textpath.string&&(K.innerHTML=n(x.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var it=K.getBoundingClientRect();x.W=h.w=(it.right-it.left)/Q,x.H=h.h=(it.bottom-it.top)/Q,x.X=h.x,x.Y=h.y;switch(h["vertical-align"]){case"top":x.bby=x.H/2;break;case"bottom":x.bby=-x.H/2;break;default:x.bby=0}("x"in i||"y"in i||x.bby!==undefined)&&(x.path.v=t.format("m{0},{1}l{2},{1}",s(h.x*S),s((h.y+(x.bby||0))*S),s(h.x*S)+1));for(var nt=["x","y","text","font","font-family","font-weight","font-style","font-size","line-height"],at=0,ot=nt.length;at<ot;at++)if(nt[at]in i){x._.dirty=1;break}switch(h["text-anchor"]){case"start":x.textpath.style["v-text-align"]="left",x.bbx=x.W/2;break;case"end":x.textpath.style["v-text-align"]="right",x.bbx=-x.W/2;break;default:x.textpath.style["v-text-align"]="center",x.bbx=0}x.textpath.style["v-text-kern"]=!0}}},F=t._updateFollowers=function(){var t,e,r,n=(0,i.getArrayCopy)(arguments),a=u.call(n),o=u.call(n);for(t=0,e=a.followers.length;t<e;t++)(r=a.followers[t].el)[o].apply(r,n)},j=function(e,r,i){e.attrs=e.attrs||{};e.attrs;var o,s=Math.pow,l=e.oriOp,c="linear",h=".5 .5";if(e.attrs.gradient=r,r=(r=n(r).replace(t._radial_gradient,(function(t,e){c="radial";(e=e&&e.split(",")||[])[0],e[1],e[2];var r=e[3],i=e[4];e[5];return r&&i&&(r=a(r),i=a(i),s(r-.5,2)+s(i-.5,2)>.25&&(i=p(.25-s(r-.5,2))*(2*(i>.5)-1)+.5),h=r+v+i),m}))).split(/\s*\-\s*/),"linear"==c){var f=r.shift();if(f=-a(f),isNaN(f))return null}var d=t._parseDots(r);if(!d)return null;if(e=e.shape||e.node,d.length){i.parentNode==e&&e.removeChild(i),i.on=!0,i.method="none",i.color=d[0].color,i.color2=d[d.length-1].color;for(var u=[],y=1,g=d[0].opacity===undefined?1:d[0].opacity,x=0,_=d.length;x<_;x++)d[x].offset&&u.push(d[x].offset+v+d[x].color),d[x].opacity!==undefined&&(y=d[x].opacity);i.colors=u.length?u.join():"0% "+i.color,l.opacity1=y,l.opacity2=g,o=l.opacity===undefined?1:l.opacity,i.opacity=y*o,i["o:opacity2"]=g*o,"radial"==c?(i.type="gradientTitle",i.focus="100%",i.focussize="0 0",i.focusposition=h,i.angle=0):(i.type="gradient",i.angle=(270-f)%360),e.appendChild(i)}return 1},A=function(e,r,i){var n,a=this,o=i||r;
/*!dontAppend && */o.canvas&&o.canvas.appendChild(e),(n=B("skew")).on=!0,e.appendChild(n),a.skew=n,a.node=a[0]=e,e.raphael=!0,e.raphaelid=a.id=t._oid++,a.X=0,a.Y=0,a.attrs=a.attrs||{},a.followers=a.followers||[],a.paper=r,a.ca=a.customAttributes=a.customAttributes||new r._CustomAttributes,a.matrix=t.matrix(),a._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},a.parent=o,!o.bottom&&(o.bottom=a),a.prev=o.top,o.top&&(o.top.next=a),o.top=a,a.next=null},M=t.el;A.prototype=M,M.constructor=A,M.transform=function(e){if(null==e)return this._.transform;var r,i=this.paper._viewBoxShift,a=i?"s"+[i.scale,i.scale]+"-1-1t"+[i.dx,i.dy]:m;i&&(r=e=n(e).replace(/\.{3}|\u2026/g,this._.transform||m)),t._extractTransform(this,a+e);var o,s=this.matrix.clone(),l=this.skew,c=this.node,p=~n(this.attrs.fill).indexOf("-"),h=!n(this.attrs.fill).indexOf("url(");if(s.translate(-.5,-.5),h||p||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",o=s.split(),p&&o.noRotation||!o.isSimple){c.style.filter=s.toFilter();var f=this.getBBox(),d=this.getBBox(1),u=f.x2&&d.x2?"x2":"x",y=f.y2&&d.y2?"y2":"y",g=f[u]-d[u],x=f[y]-d[y];c.coordorigin=g*-S+v+x*-S,N(this,1,1,g,x,0)}else c.style.filter=m,N(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else c.style.filter=m,l.matrix=n(s),l.offset=s.offset();return r&&(this._.transform=r),this},M.rotate=function(t,e,r){var i=this;if(i.removed)return i;if(F(i,"rotate",t,e,r),null!=t){if((t=n(t).split(f)).length-1&&(e=a(t[1]),r=a(t[2])),t=a(t[0]),null==r&&(e=r),null==e||null==r){var o=i.getBBox(1);e=o.x+o.width/2,r=o.y+o.height/2}return i._.dirtyT=1,i.transform(i._.transform.concat([["r",t,e,r]])),i}},M.translate=function(t,e){var r=this;return r.removed||(F(r,"translate",t,e),(t=n(t).split(f)).length-1&&(e=a(t[1])),t=a(t[0])||0,e=+e||0,r._.bbox&&(r._.bbox.x+=t,r._.bbox.y+=e),r.transform(r._.transform.concat([["t",t,e]]))),r},M.scale=function(t,e,r,i){var o=this;if(o.removed)return o;if(F(o,"scale",t,e,r,i),(t=n(t).split(f)).length-1&&(e=a(t[1]),r=a(t[2]),i=a(t[3]),isNaN(r)&&(r=null),isNaN(i)&&(i=null)),t=a(t[0]),null==e&&(e=t),null==i&&(r=i),null==r||null==i)var s=o.getBBox(1);return r=null==r?s.x+s.width/2:r,i=null==i?s.y+s.height/2:i,o.transform(o._.transform.concat([["s",t,e,r,i]])),o._.dirtyT=1,o},M.hide=function(t){var e=this;return F(e,"hide",t),!e.removed&&(e.node.style.display="none"),e},M.show=function(t){var e=this;return F(e,"show",t),!e.removed&&(e.node.style.display=m),e},M._getBBox=function(){var t=this;return t.removed?{}:{x:t.X+(t.bbx||0)-t.W/2,y:t.Y+(t.bby||0)-t.H/2,width:t.W,height:t.H}},M.remove=function(){if(!this.removed&&this.parent.canvas){var e=this,r=t._engine.getNode(e),i=e.paper,n=e.shape;for(i.__set__&&i.__set__.exclude(e),d.unbind("raphael.*.*."+e.id),n&&n.parentNode.removeChild(n),r.parentNode&&r.parentNode.removeChild(r);a=e.followers.pop();)a.el.remove();for(;a=e.bottom;)a.remove();if(e._drag&&e.undrag(),e.events)for(;a=e.events.pop();)a.unbind();for(var a in e.removeData(),delete i._elementsById[e.id],t._tear(e,e.parent),e)e[a]="function"==typeof e[a]?t._removedFactory(a):null;e.removed=!0}},M.attr=function(e,i){if(this.removed)return this;if(null==e){var n={};for(var a in this.attrs)this.attrs[r](a)&&(n[a]=this.attrs[a]);return n.gradient&&"none"==n.fill&&(n.fill=n.gradient)&&delete n.gradient,n.transform=this._.transform,n.visibility="none"===this.node.style.display?"hidden":"visible",n}if(null==i&&t.is(e,"string")){if("fill"==e&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("visibility"==e)return"none"===this.node.style.display?"hidden":"visible";for(var o=e.split(f),s={},l=0,c=o.length;l<c;l++)(e=o[l])in this.attrs?s[e]=this.attrs[e]:t.is(this.ca[e],"function")?s[e]=this.ca[e].def:s[e]=t._availableAttrs[e];return c-1?s:s[o[0]]}if(this.attrs&&null==i&&t.is(e,"array")){for(s={},l=0,c=e.length;l<c;l++)s[e[l]]=this.attr(e[l]);return s}var p;if(null!=i&&((p={})[e]=i),null==i&&t.is(e,"object")&&(p=e),!t.stopPartialEventPropagation)for(var h in p)d("raphael.attr."+h+"."+this.id,this,p[h],h);if(p){var u,y={};for(h in this.ca)if(this.ca[h]&&p[r](h)&&t.is(this.ca[h],"function")&&!this.ca["_invoked"+h]){this.ca["_invoked"+h]=!0;var g=this.ca[h].apply(this,[].concat(p[h]));for(var v in delete this.ca["_invoked"+h],g)g[r](v)&&(p[v]=g[v]);this.attrs[h]=p[h],!1===g&&(y[h]=p[h],delete p[h])}"text"in p&&"text"==this.type&&(t.is(p.text,"array")&&(p.text=p.text.join("\n")),this.textpath.string=p.text.replace(/<br\s*?\/?>/gi,"\n")),E(this,p);for(l=0,c=this.followers.length;l<c;l++)(u=this.followers[l]).cb&&!u.cb.call(u.el,p,this)||u.el.attr(p);for(var v in y)p[v]=y[v]}return this},M.on=function(e,r,i){var n,a=this,o=r;if(a.removed)return a;switch(a._actualListners||(a._actualListners=[]),a._derivedListeners||(a._derivedListeners=[]),e){case"fc-dragstart":return a.drag(null,r),a;case"fc-dragmove":return a.drag(r),a;case"fc-dragend":return a.drag(null,null,r),a;case"fc-dbclick":return a.dbclick(r,i),a;case"fc-click":return a.fcclick(r,i),a}return e=e.replace(/fc-/,""),a._&&a._.RefImg&&("load"===e||"error"===e)?(node=a._.RefImg,o=function(e,r){return function(i){n={},t.makeSelectiveCopy(n,i),n.target=a._.RefImg,!e.removed&&r.call(e,n)}}(a,r)):node=a.node,node.attachEvent?o===r&&(o=function(t){r.call(i||a,t)}):o=function(){var e=t._g.win.event;e.target=e.srcElement,r(e)},a._actualListners.push(r),a._derivedListeners.push(o),node.attachEvent?node.attachEvent("on"+e,o):node["on"+e]=o,a},M.off=function(t,e){var r;if(this.removed)return this;switch(t){case"fc-dragstart":return this.undragstart(e),this;case"fc-dragmove":return this.undragmove(e),this;case"fc-dragend":return this.undragend(e),this;case"fc-dbclick":return this.undbclick(e),this;case"fc-click":return this.fcunclick(e),this}return t=t.replace(/fc-/,""),-1!==(r=this._actualListners.indexOf(e))&&(e=this._derivedListeners[r],this._actualListners.splice(r,1),this._derivedListeners.splice(r,1)),this.node.attachEvent?this.node.detachEvent("on"+t,e):this.node["on"+t]=null,this},t._engine.getNode=function(t){var e=t.node||t[0].node;return e.clipRect||e},t._engine.getLastNode=function(t){var e=t.node||t[t.length-1].node;return e.clipRect||e},t._engine.group=function(e,r,i,n){var a,o=t._g.doc.createElement("div"),s=e._HTMLClassName,l=new A(o,e,i);return o.style.cssText=k,l._id=r||m,r&&(a=o.className=n?"raphael-group-"+r:"raphael-group-"+l.id+"-"+r),s&&(o.className=a?a+" "+s:s),(i||e).canvas.appendChild(o),l.type="group",l.canvas=l.node,l.transform=t._engine.group.transform,l.top=null,l.bottom=null,l},t._engine.group.transform=function(e){if(null==e)return this._.transform;var r,i,o,s,l=this,c=l.node.style,p=l.clip,h=l.paper._viewBoxShift,f=h?"s"+[h.scale,h.scale]+"-1-1t"+[h.dx,h.dy]:m;return h&&(e=n(e).replace(/\.{3}|\u2026/g,l._.transform||m)),t._extractTransform(l,f+e),i=(r=l.matrix).offset(),o=a(i[0])||0,s=a(i[1])||0,c.left=o+"px",c.top=s+"px",c.zoom=(l._.tzoom=r.get(0))+m,p&&(c.clip=t.format("rect({1}px {2}px {3}px {0}px)",[p[0]-o,p[1]-s,p[2]-o,p[3]-s])),l},t._engine.path=function(t,e,r){var i=B("shape");i.style.cssText=k,i.coordsize=S+v+S,i.coordorigin=t.coordorigin;var n=new A(i,t,r);return n.type=e.type||"path",n.path=[],n.Path=m,e.type&&delete e.type,E(n,e),z(n,e),n},t._engine.rect=function(e,r,i){var n=t._rectPath(r.x,r.y,r.w,r.h,r.r);r.path=n,r.type="rect";var a=e.path(r,i),o=a.attrs;return a.X=o.x,a.Y=o.y,a.W=o.width,a.H=o.height,o.path=n,a},t._engine.ellipse=function(t,e,r){e.type="ellipse";var i=t.path(e,r),n=i.attrs;return i.X=n.x-n.rx,i.Y=n.y-n.ry,i.W=2*n.rx,i.H=2*n.ry,i},t._engine.circle=function(t,e,r){e.type="circle";var i=t.path(e,r),n=i.attrs;return i.X=n.x-n.r,i.Y=n.y-n.r,i.W=i.H=2*n.r,i},t._engine.image=function(e,r,i){r.w||(r.w=r.width),r.h||(r.h=r.height);var n=t._rectPath(r.x,r.y,r.w,r.h);r.path=n,r.type="image",r.stroke="none";var a=e.path(r,i),o=a.attrs,s=a.node,l=s.getElementsByTagName("fill")[0];return!a._.RefImg&&(a._.RefImg=new Image),o.src=r.src,a.X=o.x=r.x,a.Y=o.y=r.y,a.W=o.width=r.w,a.H=o.height=r.h,l.parentNode==s&&s.removeChild(l),l.rotate=!0,l.src=o.src,l.type="tile",a._.fillpos=[o.x,o.y],a._.fillsize=[o.w,o.h],s.appendChild(l),N(a,1,1,0,0,0),a},t._engine.text=function(e,r,i,a){var o=B("shape"),l=B("path"),c=B("textpath");x=r.x||0,y=r.y||0,text=r.text,l.v=t.format("m{0},{1}l{2},{1}",s(r.x*S),s(r.y*S),s(r.x*S)+1),l.textpathok=!0,c.string=n(r.text).replace(/<br\s*?\/?>/gi,"\n"),c.on=!0,o.style.cssText=k,o.coordsize=S+v+S,o.coordorigin="0 0";var p=new A(o,e,i);return p.shape=o,p.path=l,p.textpath=c,p.type="text",p.attrs.text=n(r.text||m),p.attrs.x=r.x,p.attrs.y=r.y,p.attrs.w=1,p.attrs.h=1,a&&p.css&&p.css(a,undefined,!0),E(p,r),z(p,r),o.appendChild(c),o.appendChild(l),p},t._engine.setSize=function(e,r){var i=this.canvas.style;return this.width=e,this.height=r,e==+e&&(e+="px"),r==+r&&(r+="px"),e&&(i.width=e),r&&(i.height=r),i.clip="rect(0 "+i.width+" "+i.height+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(t,e,r,i,n){d("raphael.setViewBox",this,this._viewBox,[t,e,r,i,n]);var a,o,s=this.width,c=this.height,p=1/l(r/s,i/c);return n&&(r*(a=c/i)<s&&(t-=(s-r*a)/2/a),i*(o=s/r)<c&&(e-=(c-i*o)/2/o)),this._viewBox=[t,e,r,i,!!n],this._viewBoxShift={dx:-t,dy:-e,scale:p},this.forEach((function(t){t.transform("...")})),this},t._engine.initWin=function(e){var r=e.document;r.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!r.namespaces.rvml&&r.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),B=t._createNode=function(t,e){var i,a=r.createElement("<rvml:"+t+' class="rvml">');for(i in e)a[i]=n(e[i]);return a}}catch(i){B=t._createNode=function(t,e){var i,a=r.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');for(i in e)a[i]=n(e[i]);return a}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),r=e.container,i=e.height,n=e.width,a=e.x,o=e.y;if(!r)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),c=l.style;return a=a||0,o=o||0,n=n||512,i=i||342,s.width=n,s.height=i,n==+n&&(n+="px"),i==+i&&(i+="px"),s.coordsize=1e3*S+v+1e3*S,s.coordorigin="0 0",l.id="raphael-paper-"+s.id,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),c.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,i),1==r?(t._g.doc.body.appendChild(l),c.left=a+"px",c.top=o+"px",c.position="absolute"):r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){var e;for(d("raphael.clear",this);e=this.bottom;)e.remove();this.canvas.innerHTML=m,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-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(){var e;for(d("raphael.remove",this);e=this.bottom;)e.remove();for(e in this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0},t.prototype.setHTMLClassName=function(t){this._HTMLClassName=t}}};var i=r(281)},1661:function(t,e,r){"use strict";e.__esModule=!0,e["default"]=function(t){var e=t._availableAttrs,r='" id = "',n=/^matrix\(|\)$/g,a=/\,/g,o=/\n|<br\s*?\/?>/gi,s=/[^\d\.]/gi,l=/[\%\(\)\s,\xb0#]/g,c=/group/gi,p=/&/g,h=/"/g,f=/'/g,d=/</g,u=/>/g,y=0,g={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},v=Math,x=parseFloat,m=v.max,_=v.abs,w=v.pow,b=String,k=/[, ]+/,S={blur:function(){},transform:function(){},src:function(){var t=arguments[1],e=t.attrs,r=e.src;t.attrSTR+=' xlink:href="'+r+'"'},path:function(){var e=arguments[1],r=e.attrs,i=r.path;i=t._pathToAbsolute(i||""),e.attrSTR+=' d="'+(i.toString&&i.toString()||"").replace(a," ")+'"'},gradient:function(e,i,n){var a,o,s,c,p,h,f,d,u,y,k=e.attrs.gradient,S="linear",T=k,R=.5,C=.5,N="",B="",z="";if(!n[T=T.replace(l,"_")]){if(k=(k=b(k).replace(t._radial_gradient,(function(t,e){var r,i,n,a,o,s,l,c,p=e;return p=p&&p.split(",")||[],S="radial",r=p[0],i=p[1],a=p[2],o=p[3],s=p[4],y=p[5],c=r&&i,a&&(u=/\%/.test(a)?a:x(a)),y===g.userSpaceOnUse?(c&&(R=r,C=i),o&&s&&(f=o,d=s,c||(R=f,C=d)),""):(c&&(R=x(r),n=2*((C=x(i))>.5)-1,(l=w(R-.5,2))+w(C-.5,2)>.25&&l<.25&&(C=v.sqrt(.25-l)*n+.5)&&.5!==C&&(C=C.toFixed(5)-1e-5*n)),o&&s&&(f=x(o),n=2*((d=x(s))>.5)-1,(l=w(f-.5,2))+w(d-.5,2)>.25&&l<.25&&(d=v.sqrt(.25-l)*n+.5)&&.5!==d&&(d=d.toFixed(5)-1e-5*n),c||(R=f,C=d)),"")}))).split(/\s*\-\s*/),"linear"===S){if(a=k.shift(),a=-x(a),isNaN(a))return null;o=[0,0,v.cos(t.rad(a)),v.sin(t.rad(a))],s=1/(m(_(o[2]),_(o[3]))||1),o[2]*=s,o[3]*=s,o[2]<0&&(o[0]=-o[2],o[2]=0),o[3]<0&&(o[1]=-o[3],o[3]=0)}if(!(c=t._parseDots(k)))return null;for("radial"===S?(N='<radialGradient fx = "'+R+'" fy = "'+C+'" cy = "'+d+'" cx = "'+f+'" r = "'+u+'" gradientUnits = "'+y+r+T+'">',B="</radialGradient>"):(N='<linearGradient x1 = "'+o[0]+'" y1 = "'+o[1]+'" x2 = "'+o[2]+'" y2 = "'+o[3]+'" gradientTransform ="matrix('+e.matrix.invert()+")"+r+T+'">',B="</linearGradient>"),p=0,h=c.length;p<h;p++)z+='<stop offset="'+(c[p].offset?c[p].offset:p?"100%":"0%")+'" stop-color="'+(c[p].color||"#fff")+'" stop-opacity="'+(void 0===c[p].opacity?1:c[p].opacity)+'" />';n[T]=!0,n.str+=N+z+B}i.attrSTR+=" fill=\"url('#"+T+"')\""},fill:function(e,r){var i,n,a=r.attrs,o=a.fill;e.attrs.gradient||(n=(i=t.color(o)).opacity,"text"===e.type?r.styleSTR+="fill:"+i+"; stroke-opacity:0; ":(r.attrSTR+=' fill="'+i+'"',a["fill-opacity"]||!n&&0!==n||(r.attrSTR+=' fill-opacity="'+n+'"')))},stroke:function(e,r){var i,n,a=r.attrs,o=a.stroke;n=(i=t.color(o)).opacity,"text"!==e.type&&(r.attrSTR+=' stroke="'+i+'"',a["stroke-opacity"]||!n&&0!==n||(r.attrSTR+=' stroke-opacity="'+n+'"'))},"clip-rect":function(t,e,r){var i=e.attrs,a=b(i["clip-rect"]),o=a.split(k),s=a.replace(l,"_")+"__"+y++;4===o.length&&(r[s]||(r[s]=!0,r.str+='<clipPath id="'+s+'"><rect x="'+o[0]+'" y="'+o[1]+'" width="'+o[2]+'" height="'+o[3]+'" transform="matrix('+t.matrix.invert().toMatrixString().replace(n,"")+')"/></clipPath>'),e.attrSTR+=' clip-path="url(#'+s+')"')},cursor:function(){var t=arguments[1],e=t.attrs,r=e.cursor;r&&(t.styleSTR+="cursor:"+r+"; ")},font:function(){var t=arguments[1],e=t.attrs,r=e.font;t.styleSTR+="font:"+r.replace(/\"/gi," ")+"; "},"font-size":function(){var t=arguments[1],e=t.attrs,r=(0,i.pluck)(e["font-size"],"10");r&&r.replace&&(r=r.replace(s,"")),t.styleSTR+="font-size:"+r+"px; "},"font-weight":function(){var t=arguments[1],e=t.attrs,r=e["font-weight"];t.styleSTR+="font-weight:"+r+"; "},"font-family":function(){var t=arguments[1],e=t.attrs,r=e["font-family"];t.styleSTR+="font-family:"+r+"; "},"line-height":i.stubFN,"clip-path":i.stubFN,visibility:i.stubFN,"vertical-align":i.stubFN,"text-anchor":function(t,e){var r=e.attrs["text-anchor"]||"middle";"text"===t.type&&(e.attrSTR+=' text-anchor="'+r+'"')},title:i.stubFN,text:function(){var t,e,r,n,a,l,c,y,g=arguments[1],v=g.attrs,x=v.text,m=(0,i.pluck)(v["font-size"],v.font,"10"),_=(0,i.pluck)(v["line-height"]);for(m&&m.replace&&(m=m.replace(s,"")),m=(0,i.pluckNumber)(m),_&&_.replace&&(_=_.replace(s,"")),_=(0,i.pluckNumber)(_,m&&1.2*m),t=m?.85*m:.75*_,e=v.x,r=(0,i.pluck)(v["vertical-align"],"middle").toLowerCase(),l=(n=b(x).split(o)).length,a=0,c="top"===r?t:"bottom"===r?t-_*l:t-_*l*.5;a<l;a++)g.textSTR+="<tspan ",y=(n[a]||"").replace(p,"&").replace(h,""").replace(f,"'").replace(d,"<").replace(u,">"),g.textSTR+=a?'dy="'+_+'" x="'+e+'" ':'dy="'+c+'"',g.textSTR+=">"+y+"</tspan>"}};t.vml&&(t.fn.toSVG=function(t){var r="",i={str:""},a="";return r='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(a=function o(t,r){var i,a,s,l="",p={attrSTR:"",styleSTR:"",textSTR:"",attrs:t.attr()},h=t.isShadow,f="",d="",u=p.attrs;if("none"===t.node.style.display||h)t.next&&(l+=o(t.next,r));else{for(i in u)"gradient"===i||void 0===e[i]&&!S[i]||void 0===u[i]||(S[i]?S[i](t,p,r):p.attrSTR+=" "+i+'="'+u[i]+'"');for(a in t.attrs.gradient&&S.gradient(t,p,r),"rect"===t.type&&u.r&&(p.attrSTR+=' rx="'+u.r+'" ry="'+u.r+'"'),t.styles)p.styleSTR+=a+":"+t.styles[a]+"; ";"image"===t.type&&(p.attrSTR+=' preserveAspectRatio="none"'),"text"!==t.type||u["text-anchor"]||S["text-anchor"](t,p),t.bottom&&(f=o(t.bottom,r)),t.next&&(d=o(t.next,r)),(s=t.type).match(c)&&(s="g"),l+="<"+s+' transform="matrix('+t.matrix.toMatrixString().replace(n,"")+')" style="'+p.styleSTR+'"'+p.attrSTR+">"+p.textSTR+f+"</"+s+">"+d}return l}(this.bottom,i)),r+="<defs>"+i.str+"</defs>"+a+"</svg>",t||(r=r.replace(/<image[^\>]*\>[^\>]*\>/gi,(function(t){return t.match(/href=\"data\:image/i)?t:""}))),r})};var i=r(278)}}])}));
//# sourceMappingURL=http://localhost:3052/4.0.0/map/eval/fusioncharts.vml.js.map