Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ !function(t){var e,n,r="hasOwnProperty",i=/[\.\/]/,a=/\s*,\s*/,o=function(t,e){return t-e},s={n:{}},u=function(){for(var t=0,e=this.length;t1)for(var o=0,u=n.length;o=1&&(delete r[o],s.s=1,a--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(s)),s.update()}n=!!a&&i(v)}else n||(n=i(v))},m=function(t,e,n,i,a,u,y){var x={id:s+(o++).toString(36),start:t,end:e,b:n,s:0,dur:i-n,spd:1,get:a,set:u,easing:y||m.linear,status:l,speed:f,duration:c,stop:h,pause:d,resume:p,update:g};r[x.id]=x;var b,F=0;for(b in r)if(r.hasOwnProperty(b)&&2==++F)break;return 1==F&&v(),x};return m.time=u,m.getById=function(t){return r[t]||null},m.linear=function(t){return t},m.easeout=function(t){return Math.pow(t,1.7)},m.easein=function(t){return Math.pow(t,.48)},m.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),r=n-e,i=-n-e,a=Math.pow(Math.abs(r),1/3)*(r<0?-1:1)+Math.pow(Math.abs(i),1/3)*(i<0?-1:1)+.5;return 3*(1-a)*a*a+a*a*a},m.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},m.backout=function(t){if(0==t)return 0;var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},m.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},m.bounce=function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},t.mina=m,m}(void 0===e?function(){}:e),r=function(t){function n(t,e){if(t){if(t.nodeType)return H(t);if(T(t,"array")&&n.set)return n.set.apply(n,t);if(t instanceof I)return t;if(null==e)try{return H(t=r.doc.querySelector(String(t)))}catch(t){return null}}return new $(t=null==t?"100%":t,e=null==e?"100%":e)}n.version="0.5.1",n.toString=function(){return"Snap v"+this.version},n._={};var r={win:t.window,doc:t.window.document};n._.glob=r;var i,a,o="hasOwnProperty",s=String,u=parseFloat,l=parseInt,f=Math,c=f.max,h=f.min,d=f.abs,p=(f.pow,f.PI),v=(f.round,""),m=Object.prototype.toString,y=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,x=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),b={hs:1,rg:1},F=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,C=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,w=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,B=0,A="S"+(+new Date).toString(36),E=function(t){return(t&&t.type?t.type:v)+A+(B++).toString(36)},S="http://www.w3.org/1999/xlink",k="http://www.w3.org/2000/svg",D={};n.url=function(t){return"url('#"+t+"')"};function _(t,e){if(e){if("#text"==t&&(t=r.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=r.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=_(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(S,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(k,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var n in e)if(e[o](n)){var i=s(e[n]);i?"xlink:"==n.substring(0,6)?t.setAttributeNS(S,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS(k,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n)}}else"text"in e&&(t.nodeValue=e.text)}else t=r.doc.createElementNS(k,t);return t}function T(t,e){return"finite"==(e=s.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||m.call(t).slice(8,-1).toLowerCase()==e)}function M(t,e,n){return function r(){var i=Array.prototype.slice.call(arguments,0),a=i.join("␀"),s=r.cache=r.cache||{},u=r.count=r.count||[];return s[o](a)?(function(t,e){for(var n=0,r=t.length;n=1e3&&delete s[u.shift()],u.push(a),s[a]=t.apply(e,i),n?n(s[a]):s[a])}}function N(t){return t%360*p/180}n._.$=_,n._.id=E,n.format=(i=/\{([^\}]+)\}/g,a=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return s(t).replace(i,function(t,n){return function(t,e,n){var r=n;return e.replace(a,function(t,e,n,i,a){e=e||i,r&&(e in r&&(r=r[e]),"function"==typeof r&&a&&(r=r()))}),r=(null==r||r==n?t:r)+""}(t,n,e)})}),n._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n=new e.constructor;for(var r in e)e[o](r)&&(n[r]=t(e[r]));return n},n._.cacher=M,n.rad=N,n.deg=function(t){return 180*t/p%360},n.sin=function(t){return f.sin(n.rad(t))},n.tan=function(t){return f.tan(n.rad(t))},n.cos=function(t){return f.cos(n.rad(t))},n.asin=function(t){return n.deg(f.asin(t))},n.acos=function(t){return n.deg(f.acos(t))},n.atan=function(t){return n.deg(f.atan(t))},n.atan2=function(t){return n.deg(f.atan2(t))},n.angle=function t(e,n,r,i,a,o){if(null==a){var s=e-r,u=n-i;return s||u?(180+180*f.atan2(-u,-s)/p+360)%360:0}return t(e,n,a,o)-t(r,i,a,o)},n.len=function(t,e,r,i){return Math.sqrt(n.len2(t,e,r,i))},n.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},n.closestPoint=function(t,e,n){function r(t){var r=t.x-e,i=t.y-n;return r*r+i*i}for(var i,a,o,s,u=t.node,l=u.getTotalLength(),f=l/u.pathSegList.numberOfItems*.125,c=1/0,h=0;h<=l;h+=f)(s=r(o=u.getPointAtLength(h))).5;){var d,p,g,v,m,y;(g=a-f)>=0&&(m=r(d=u.getPointAtLength(g)))t-n)return e-i+t}return e},n.getRGB=M(function(t){if(!t||(t=s(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:q};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:q};if(!b[o](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=j(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:q};var e,r,i,a,d,p,g=t.match(y);return g?(g[2]&&(i=l(g[2].substring(5),16),r=l(g[2].substring(3,5),16),e=l(g[2].substring(1,3),16)),g[3]&&(i=l((d=g[3].charAt(3))+d,16),r=l((d=g[3].charAt(2))+d,16),e=l((d=g[3].charAt(1))+d,16)),g[4]&&(p=g[4].split(x),e=u(p[0]),"%"==p[0].slice(-1)&&(e*=2.55),r=u(p[1]),"%"==p[1].slice(-1)&&(r*=2.55),i=u(p[2]),"%"==p[2].slice(-1)&&(i*=2.55),"rgba"==g[1].toLowerCase().slice(0,4)&&(a=u(p[3])),p[3]&&"%"==p[3].slice(-1)&&(a/=100)),g[5]?(p=g[5].split(x),e=u(p[0]),"%"==p[0].slice(-1)&&(e/=100),r=u(p[1]),"%"==p[1].slice(-1)&&(r/=100),i=u(p[2]),"%"==p[2].slice(-1)&&(i/=100),("deg"==p[0].slice(-3)||"°"==p[0].slice(-1))&&(e/=360),"hsba"==g[1].toLowerCase().slice(0,4)&&(a=u(p[3])),p[3]&&"%"==p[3].slice(-1)&&(a/=100),n.hsb2rgb(e,r,i,a)):g[6]?(p=g[6].split(x),e=u(p[0]),"%"==p[0].slice(-1)&&(e/=100),r=u(p[1]),"%"==p[1].slice(-1)&&(r/=100),i=u(p[2]),"%"==p[2].slice(-1)&&(i/=100),("deg"==p[0].slice(-3)||"°"==p[0].slice(-1))&&(e/=360),"hsla"==g[1].toLowerCase().slice(0,4)&&(a=u(p[3])),p[3]&&"%"==p[3].slice(-1)&&(a/=100),n.hsl2rgb(e,r,i,a)):(e=h(f.round(e),255),r=h(f.round(r),255),i=h(f.round(i),255),a=h(c(a,0),1),(g={r:e,g:r,b:i,toString:q}).hex="#"+(16777216|i|r<<8|e<<16).toString(16).slice(1),g.opacity=T(a,"finite")?a:1,g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:q}},n),n.hsb=M(function(t,e,r){return n.hsb2rgb(t,e,r).hex}),n.hsl=M(function(t,e,r){return n.hsl2rgb(t,e,r).hex}),n.rgb=M(function(t,e,n,r){if(T(r,"finite")){var i=f.round;return"rgba("+[i(t),i(e),i(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});var j=function(t){var e=r.doc.getElementsByTagName("head")[0]||r.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(j=M(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var i=r.doc.defaultView.getComputedStyle(e,v).getPropertyValue("color");return i==n?null:i}))(t)},P=function(){return"hsb("+[this.h,this.s,this.b]+")"},L=function(){return"hsl("+[this.h,this.s,this.l]+")"},q=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},O=function(t,e,r){if(null==e&&T(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),null==e&&T(t,string)){var i=n.getRGB(t);t=i.r,e=i.g,r=i.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},V=function(t,e,r,i){var a={r:t=f.round(255*t),g:e=f.round(255*e),b:r=f.round(255*r),opacity:T(i,"finite")?i:1,hex:n.rgb(t,e,r),toString:q};return T(i,"finite")&&(a.opacity=i),a};n.color=function(t){var e;return T(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):T(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(T(t,"string")&&(t=n.getRGB(t)),T(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=q,t},n.hsb2rgb=function(t,e,n,r){var i,a,o,s,u;return T(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),s=(u=n*e)*(1-d((t=(t*=360)%360/60)%2-1)),i=a=o=n-u,V(i+=[u,s,0,0,s,u][t=~~t],a+=[s,u,u,s,0,0][t],o+=[0,0,s,u,u,s][t],r)},n.hsl2rgb=function(t,e,n,r){var i,a,o,s,u;return T(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t=(t*=360)%360/60,s=(u=2*e*(n<.5?n:1-n))*(1-d(t%2-1)),i=a=o=n-u/2,V(i+=[u,s,0,0,s,u][t=~~t],a+=[s,u,u,s,0,0][t],o+=[0,0,s,u,u,s][t],r)},n.rgb2hsb=function(t,e,n){var r,i;return t=(n=O(t,e,n))[0],e=n[1],n=n[2],{h:((0==(i=(r=c(t,e,n))-h(t,e,n))?null:r==t?(e-n)/i:r==e?(n-t)/i+2:(t-e)/i+4)+360)%6*60/360,s:0==i?0:i/r,b:r,toString:P}},n.rgb2hsl=function(t,e,n){var r,i,a,o;return t=(n=O(t,e,n))[0],e=n[1],n=n[2],r=((i=c(t,e,n))+(a=h(t,e,n)))/2,{h:((0==(o=i-a)?null:i==t?(e-n)/o:i==e?(n-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:r<.5?o/(2*r):o/(2-2*r),l:r,toString:L}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return T(t,"array")&&T(t[0],"array")&&(i=n.path.clone(t)),i.length||s(t).replace(F,function(t,e,n){var a=[],o=e.toLowerCase();if(n.replace(w,function(t,e){e&&a.push(+e)}),"m"==o&&a.length>2&&(i.push([e].concat(a.splice(0,2))),o="l",e="m"==e?"l":"L"),"o"==o&&1==a.length&&i.push([e,a[0]]),"r"==o)i.push([e].concat(a));else for(;a.length>=r[o]&&(i.push([e].concat(a.splice(0,r[o]))),r[o]););}),i.toString=n.path.toString,e.arr=n.path.clone(i),i};var G=n.parseTransformString=function(t){if(!t)return null;var e=[];return T(t,"array")&&T(t[0],"array")&&(e=n.path.clone(t)),e.length||s(t).replace(C,function(t,n,r){var i=[];n.toLowerCase();r.replace(w,function(t,e){e&&i.push(+e)}),e.push([n].concat(i))}),e.toString=n.path.toString,e};n._.svgTransform2string=function(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,f.tan(N(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,f.tan(N(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t}),e},n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=function(t,e){var r=G(t),i=new n.Matrix;if(r)for(var a=0,o=r.length;a1))return e("snap.util.getattr."+t,this).firstDefined();var l={};l[t]=n,t=l}for(var f in t)t[o](f)&&e("snap.util.attr."+f,this,t[f]);return this},n.parse=function(t){var e=r.doc.createDocumentFragment(),n=!0,i=r.doc.createElement("div");if((t=s(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t="",n=!1),i.innerHTML=t,t=i.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new U(e)},n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=r.doc.createDocumentFragment(),i=0,a=t.length;i")}else t&&(e+="/>");return e}}s.data=function(t,r){var i=m[this.id]=m[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,i,null),i;if(1==arguments.length){if(n.is(t,"object")){for(var a in t)t.hasOwnProperty(a)&&this.data(a,t[a]);return this}return e("snap.data.get."+this.id,this,i[t],t),i[t]}return i[t]=r,e("snap.data.set."+this.id,this,r,t),this},s.removeData=function(t){return null==t?m[this.id]={}:m[this.id]&&delete m[this.id][t],this},s.outerSVG=s.toString=y(1),s.innerSVG=y(),s.toDataURL=function(){if(t&&t.btoa){var e=this.getBBox(),r=n.format('',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r)))}},o.prototype.select=s.select,o.prototype.selectAll=s.selectAll}),r.plugin(function(t,r,i,a,o){var s=r.prototype,u=t.is,l=String,f="hasOwnProperty";function c(t,e,n){return function(r){var i=r.slice(t,e);return 1==i.length&&(i=i[0]),n?n(i):i}}var h=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=t,this.dur=e,r&&(this.easing=r),i&&(this.callback=i)};t._.Animation=h,t.animation=function(t,e,n,r){return new h(t,e,n,r)},s.inAnim=function(){var t=[];for(var e in this.anims)this.anims[f](e)&&function(e){t.push({anim:new h(e._attrs,e.dur,e.easing,e._callback),mina:e,curStatus:e.status(),status:function(t){return e.status(t)},stop:function(){e.stop()}})}(this.anims[e]);return t},t.animate=function(t,r,i,a,o,s){"function"!=typeof o||o.length||(s=o,o=n.linear);var u=n.time(),l=n(t,r,u,u+a,n.time,i,o);return s&&e.once("mina.finish."+l.id,s),l},s.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},s.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){var r=n._.$;function i(){return this.selectAll("stop")}function a(t,e){var i=r("stop"),a={offset:+e+"%"};t=n.color(t),a["stop-color"]=t.hex,t.opacity<1&&(a["stop-opacity"]=t.opacity),r(i,a);for(var o,s=this.stops(),u=0;ue){this.node.insertBefore(i,s[u].node),o=!0;break}}return o||this.node.appendChild(i),this}function o(){if("linearGradient"==this.type){var t=r(this.node,"x1")||0,e=r(this.node,"x2")||1,i=r(this.node,"y1")||0,a=r(this.node,"y2")||0;return n._.box(t,i,math.abs(e-t),math.abs(a-i))}var o=this.node.cx||.5,s=this.node.cy||.5,u=this.node.r||0;return n._.box(o-u,s-u,2*u,2*u)}function u(t){var r=t,i=this.stops();if("string"==typeof t&&(r=e("snap.util.grad.parse",null,"l(0,0,0,1)"+t).firstDefined().stops),n.is(r,"array")){for(var a=0;a.01;)f/=2,l=_(t,e,n,r,i,a,o,s,c+=(la){if(r&&!d.start){if(h+=["C"+i((c=b(s,u,l[1],l[2],l[3],l[4],l[5],l[6],a-p)).start.x),i(c.start.y),i(c.m.x),i(c.m.y),i(c.x),i(c.y)],o)return h;d.start=h,h=["M"+i(c.x),i(c.y)+"C"+i(c.n.x),i(c.n.y),i(c.end.x),i(c.end.y),i(l[5]),i(l[6])].join(),p+=f,s=+l[5],u=+l[6];continue}if(!n&&!r)return c=b(s,u,l[1],l[2],l[3],l[4],l[5],l[6],a-p)}p+=f,s=+l[5],u=+l[6]}h+=l.shift()+l}return d.end=h,c=n?p:r?d:A(s,u,l[0],l[1],l[2],l[3],l[4],l[5],1)},null,t._.clone)}var C=F(1),w=F(),B=F(0,1);function A(t,e,n,r,i,a,o,s,u){var l=1-u,h=p(l,3),d=p(l,2),g=u*u,v=g*u,m=t+2*u*(n-t)+g*(i-2*n+t),y=e+2*u*(r-e)+g*(a-2*r+e),x=n+2*u*(i-n)+g*(o-2*i+n),b=r+2*u*(a-r)+g*(s-2*a+r);return{x:h*t+3*d*u*n+3*l*u*u*i+v*o,y:h*e+3*d*u*r+3*l*u*u*a+v*s,m:{x:m,y:y},n:{x:x,y:b},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*f.atan2(m-x,y-b)/c}}function E(e,n,r,i,a,o,s,u){t.is(e,"array")||(e=[e,n,r,i,a,o,s,u]);var l=R.apply(null,e);return m(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function S(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function k(t,e){return t=m(t),S(e=m(e),t.x,t.y)||S(e,t.x2,t.y)||S(e,t.x,t.y2)||S(e,t.x2,t.y2)||S(t,e.x,e.y)||S(t,e.x2,e.y)||S(t,e.x,e.y2)||S(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}function D(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}function _(t,e,n,r,i,a,o,s,u){null==u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var g=l*c[p]+l,v=D(g,t,n,i,o),m=D(g,e,r,a,s),y=v*v+m*m;d+=h[p]*f.sqrt(y)}return l*d}function T(t,e,n,r,i,a,o,s){if(!(d(t,n)d(i,o)||d(e,r)d(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,f=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,c=+l.toFixed(2),p=+f.toFixed(2);if(!(c<+h(t,n).toFixed(2)||c>+d(t,n).toFixed(2)||c<+h(i,o).toFixed(2)||c>+d(i,o).toFixed(2)||p<+h(e,r).toFixed(2)||p>+d(e,r).toFixed(2)||p<+h(a,s).toFixed(2)||p>+d(a,s).toFixed(2)))return{x:l,y:f}}}}function M(t,e,n){if(!k(E(t),E(e)))return n?0:[];for(var r=~~(_.apply(0,t)/8),i=~~(_.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l=0&&b<=1&&F>=0&&F<=1&&(n?u++:u.push({x:x.x,y:x.y,t1:b,t2:F}))}}return u}function N(t,e,n){t=I(t),e=I(e);for(var r,i,a,o,s,u,l,f,c,h,d=n?0:[],p=0,g=t.length;p180),0,s,e+n*Math.sin(-i*a)]];else u=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return u.toString=y,u}var q=t._unit2px,O={path:function(t){return t.attr("path")},circle:function(t){var e=q(t);return L(e.cx,e.cy,e.r)},ellipse:function(t){var e=q(t);return L(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=q(t);return P(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=q(t);return P(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return P(e.x,e.y,e.width,e.height)}};function V(e){var n=v(e);if(n.abs)return x(n.abs);if(a(e,"array")&&a(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,i=[],o=0,s=0,u=0,l=0,f=0;"M"==e[0][0]&&(u=o=+e[0][1],l=s=+e[0][2],f++,i[0]=["M",o,s]);for(var c,h,d=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),p=f,g=e.length;p1&&(i*=C=f.sqrt(C),a*=C);var w=i*i,B=a*a,A=(s==u?-1:1)*f.sqrt(g((w*B-w*F*F-B*b*b)/(w*F*F+B*b*b))),E=A*i*F/a+(n+l)/2,S=A*-a*b/i+(r+h)/2,k=f.asin(((r-S)/a).toFixed(9)),D=f.asin(((h-S)/a).toFixed(9));k=nD&&(k-=2*c),!u&&D>k&&(D-=2*c)}var _=D-k;if(g(_)>v){var T=D,M=l,N=h;D=k+v*(u&&D>k?1:-1),y=e(l=E+i*f.cos(D),h=S+a*f.sin(D),i,a,o,0,u,M,N,[D,T,E,S])}_=D-k;var j=f.cos(k),P=f.sin(k),L=f.cos(D),q=f.sin(D),O=f.tan(_/4),V=4/3*i*O,G=4/3*a*O,z=[n,r],R=[n+V*P,r-G*j],I=[l+V*q,h-G*L],U=[l,h];if(R[0]=2*z[0]-R[0],R[1]=2*z[1]-R[1],d)return[R,I,U].concat(y);for(var X=[],$=0,H=(y=[R,I,U].concat(y).join().split(",")).length;$7){t[e].shift();for(var n=t[e];n.length;)m[e]="A",a&&(y[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),w=d(i.length,a&&a.length||0)}},p=function(t,e,n,r,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[o][1],n.y=t[o][2],w=d(i.length,a&&a.length||0))},m=[],y=[],b="",F="",C=0,w=d(i.length,a&&a.length||0);Cr;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4==r?a[3]={x:+t[0],y:+t[1]}:i-2==r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4==r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}t.path=v,t.path.getTotalLength=C,t.path.getPointAtLength=w,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return B(t,e).end;var r=B(t,n,1);return e?B(r,e).end:r},i.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},i.getPointAtLength=function(t){return w(this.attr("d"),t)},i.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=m,t.path.findDotsAtSegment=A,t.path.bezierBBox=E,t.path.isPointInsideBBox=S,t.closest=function(e,n,r,i){for(var a=100,o=m(e-a/2,n-a/2,a,a),s=[],u=r[0].hasOwnProperty("x")?function(t){return{x:r[t].x,y:r[t].y}}:function(t){return{x:r[t],y:i[t]}},l=0;a<=1e6&&!l;){for(var f=0,c=r.length;fg&&(p=g,s[f].len=g,d=s[f])}return d}},t.path.isBBoxIntersect=k,t.path.intersection=function(t,e){return N(t,e)},t.path.intersectionNumber=function(t,e){return N(t,e,1)},t.path.isPointInside=function(t,e,n){var r=j(t);return S(r,e,n)&&N(t,[["M",e,n],["H",r.x2+10]],1)%2==1},t.path.getBBox=j,t.path.get=O,t.path.toRelative=function(e){var n=v(e),r=String.prototype.toLowerCase;if(n.rel)return x(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var i=[],a=0,o=0,s=0,u=0,l=0;"M"==e[0][0]&&(s=a=e[0][1],u=o=e[0][2],l++,i.push(["M",a,o]));for(var f=l,c=e.length;f',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,r,i,a){return null==a&&(null==i?(a=r,r=4,i="#000"):(a=i,i=r,r=4)),null==r&&(r=4),null==a&&(a=1),null==e&&(e=0,n=2),null==n&&(n=e),i=t.color(i),t.format('',{color:i,dx:e,dy:n,blur:r,opacity:a})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),r.plugin(function(t,e,n,r,i){var a=t._.box,o=t.is,s=/^[^a-z]*([tbmlrc])/i,u=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&o(t,"string")&&(e=t,t=null);var n=(t=t||this.paper).getBBox?t.getBBox():a(t),r=this.getBBox(),i={};switch(e=(e=e&&e.match(s))?e[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=n.y-r.y;break;case"b":i.dx=0,i.dy=n.y2-r.y2;break;case"m":i.dx=0,i.dy=n.cy-r.cy;break;case"l":i.dx=n.x-r.x,i.dy=0;break;case"r":i.dx=n.x2-r.x2,i.dy=0;break;default:i.dx=n.cx-r.cx,i.dy=0}return i.toString=u,i},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}}),r.plugin(function(e,n,r,i){function a(t){t=t.split(/(?=#)/);var e=new String(t[5]);return e[50]=t[0],e[100]=t[1],e[200]=t[2],e[300]=t[3],e[400]=t[4],e[500]=t[5],e[600]=t[6],e[700]=t[7],e[800]=t[8],e[900]=t[9],t[10]&&(e.A100=t[10],e.A200=t[11],e.A400=t[12],e.A700=t[13]),e}e.mui={},e.flat={},e.mui.red=a("#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000"),e.mui.pink=a("#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162"),e.mui.purple=a("#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF"),e.mui.deeppurple=a("#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA"),e.mui.indigo=a("#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE"),e.mui.blue=a("#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF"),e.mui.lightblue=a("#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA"),e.mui.cyan=a("#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4"),e.mui.teal=a("#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5"),e.mui.green=a("#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853"),e.mui.lightgreen=a("#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17"),e.mui.lime=a("#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00"),e.mui.yellow=a("#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600"),e.mui.amber=a("#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00"),e.mui.orange=a("#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00"),e.mui.deeporange=a("#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00"),e.mui.brown=a("#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723"),e.mui.grey=a("#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121"),e.mui.bluegrey=a("#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238"),e.flat.turquoise="#1abc9c",e.flat.greensea="#16a085",e.flat.sunflower="#f1c40f",e.flat.orange="#f39c12",e.flat.emerland="#2ecc71",e.flat.nephritis="#27ae60",e.flat.carrot="#e67e22",e.flat.pumpkin="#d35400",e.flat.peterriver="#3498db",e.flat.belizehole="#2980b9",e.flat.alizarin="#e74c3c",e.flat.pomegranate="#c0392b",e.flat.amethyst="#9b59b6",e.flat.wisteria="#8e44ad",e.flat.clouds="#ecf0f1",e.flat.silver="#bdc3c7",e.flat.wetasphalt="#34495e",e.flat.midnightblue="#2c3e50",e.flat.concrete="#95a5a6",e.flat.asbestos="#7f8c8d",e.importMUIColors=function(){for(var n in e.mui)e.mui.hasOwnProperty(n)&&(t[n]=e.mui[n])}}),r});