<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f2e0d2a"],{"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"968e":function(t,e,n){"use strict";n("be89")},be89:function(t,e,n){},ca84:function(t,e,n){"use strict";n.r(e),function(t){n("6c7b"),n("ac6a"),n("456d"),n("4917"),n("6b54"),n("28a5"),n("a481");var e=n("7618");(function(i,r){"function"===typeof define&amp;&amp;n("3c35")?define((function(){return r(i,i.document)})):"object"===("undefined"===typeof exports?"undefined":Object(e["a"])(exports))?t.exports=i.document?r(i,i.document):function(t){return r(t,t.document)}:i.SVG=r(i,i.document)})("undefined"!==typeof window?window:void 0,(function(t,n){var i="undefined"!==typeof this?this:t,r=i.SVG=function(t){if(r.supported)return t=new r.Doc(t),r.parser.draw||r.prepare(),t};if(r.ns="http://www.w3.org/2000/svg",r.xmlns="http://www.w3.org/2000/xmlns/",r.xlink="http://www.w3.org/1999/xlink",r.svgjs="http://svgjs.com/svgjs",r.supported=function(){return!!n.createElementNS&amp;&amp;!!n.createElementNS(r.ns,"svg").createSVGRect}(),!r.supported)return!1;r.did=1e3,r.eid=function(t){return"Svgjs"+m(t)+r.did++},r.create=function(t){var e=n.createElementNS(this.ns,t);return e.setAttribute("id",this.eid(t)),e},r.extend=function(){var t,e,n,i;for(t=[].slice.call(arguments),e=t.pop(),i=t.length-1;i&gt;=0;i--)if(t[i])for(n in e)t[i].prototype[n]=e[n];r.Set&amp;&amp;r.Set.inherit&amp;&amp;r.Set.inherit()},r.invent=function(t){var e="function"===typeof t.create?t.create:function(){this.constructor.call(this,r.create(t.create))};return t.inherit&amp;&amp;(e.prototype=new t.inherit),t.extend&amp;&amp;r.extend(e,t.extend),t.construct&amp;&amp;r.extend(t.parent||r.Container,t.construct),e},r.adopt=function(e){return e?e.instance?e.instance:(n="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new r.Nested:new r.Doc:"linearGradient"==e.nodeName?new r.Gradient("linear"):"radialGradient"==e.nodeName?new r.Gradient("radial"):r[m(e.nodeName)]?new(r[m(e.nodeName)]):new r.Element(e),n.type=e.nodeName,n.node=e,e.instance=n,n instanceof r.Doc&amp;&amp;n.namespace().defs(),n.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),n):null;var n},r.prepare=function(){var t=n.getElementsByTagName("body")[0],e=(t?new r.Doc(t):r.adopt(n.documentElement).nested()).size(2,0);r.parser={body:t||n.documentElement,draw:e.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").attr("focusable","false").node,poly:e.polyline().node,path:e.path().node,native:r.create("svg")}},r.parser={native:r.create("svg")},n.addEventListener("DOMContentLoaded",(function(){r.parser.draw||r.prepare()}),!1),r.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},r.utils={map:function(t,e){var n,i=t.length,r=[];for(n=0;n&lt;i;n++)r.push(e(t[n]));return r},filter:function(t,e){var n,i=t.length,r=[];for(n=0;n&lt;i;n++)e(t[n])&amp;&amp;r.push(t[n]);return r},radians:function(t){return t%360*Math.PI/180},degrees:function(t){return 180*t/Math.PI%360},filterSVGElements:function(e){return this.filter(e,(function(e){return e instanceof t.SVGElement}))}},r.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},r.Color=function(t){var n;this.r=0,this.g=0,this.b=0,t&amp;&amp;("string"===typeof t?r.regex.isRgb.test(t)?(n=r.regex.rgb.exec(t.replace(r.regex.whitespace,"")),this.r=parseInt(n[1]),this.g=parseInt(n[2]),this.b=parseInt(n[3])):r.regex.isHex.test(t)&amp;&amp;(n=r.regex.hex.exec(x(t)),this.r=parseInt(n[1],16),this.g=parseInt(n[2],16),this.b=parseInt(n[3],16)):"object"===Object(e["a"])(t)&amp;&amp;(this.r=t.r,this.g=t.g,this.b=t.b))},r.extend(r.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+v(this.r)+v(this.g)+v(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new r.Color(t),this},at:function(t){return this.destination?(t=t&lt;0?0:t&gt;1?1:t,new r.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),r.Color.test=function(t){return t+="",r.regex.isHex.test(t)||r.regex.isRgb.test(t)},r.Color.isRgb=function(t){return t&amp;&amp;"number"===typeof t.r&amp;&amp;"number"===typeof t.g&amp;&amp;"number"===typeof t.b},r.Color.isColor=function(t){return r.Color.isRgb(t)||r.Color.test(t)},r.Array=function(t,e){t=(t||[]).valueOf(),0==t.length&amp;&amp;e&amp;&amp;(t=e.valueOf()),this.value=this.parse(t)},r.extend(r.Array,{morph:function(t){if(this.destination=this.parse(t),this.value.length!=this.destination.length){var e=this.value[this.value.length-1],n=this.destination[this.destination.length-1];while(this.value.length&gt;this.destination.length)this.destination.push(n);while(this.value.length&lt;this.destination.length)this.value.push(e)}return this},settle:function(){for(var t=0,e=this.value.length,n=[];t&lt;e;t++)-1==n.indexOf(this.value[t])&amp;&amp;n.push(this.value[t]);return this.value=n},at:function(t){if(!this.destination)return this;for(var e=0,n=this.value.length,i=[];e&lt;n;e++)i.push(this.value[e]+(this.destination[e]-this.value[e])*t);return new r.Array(i)},toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)},split:function(t){return t.trim().split(r.regex.delimiter).map(parseFloat)},reverse:function(){return this.value.reverse(),this},clone:function(){var t=new this.constructor;return t.value=c(this.value),t}}),r.PointArray=function(t,e){r.Array.call(this,t,e||[[0,0]])},r.PointArray.prototype=new r.Array,r.PointArray.prototype.constructor=r.PointArray,r.extend(r.PointArray,{toString:function(){for(var t=0,e=this.value.length,n=[];t&lt;e;t++)n.push(this.value[t].join(","));return n.join(" ")},toLine:function(){return{x1:this.value[0][0],y1:this.value[0][1],x2:this.value[1][0],y2:this.value[1][1]}},at:function(t){if(!this.destination)return this;for(var e=0,n=this.value.length,i=[];e&lt;n;e++)i.push([this.value[e][0]+(this.destination[e][0]-this.value[e][0])*t,this.value[e][1]+(this.destination[e][1]-this.value[e][1])*t]);return new r.PointArray(i)},parse:function(t){var e=[];if(t=t.valueOf(),Array.isArray(t)){if(Array.isArray(t[0]))return t.map((function(t){return t.slice()}));if(null!=t[0].x)return t.map((function(t){return[t.x,t.y]}))}else t=t.trim().split(r.regex.delimiter).map(parseFloat);t.length%2!==0&amp;&amp;t.pop();for(var n=0,i=t.length;n&lt;i;n+=2)e.push([t[n],t[n+1]]);return e},move:function(t,e){var n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&amp;&amp;!isNaN(e))for(var i=this.value.length-1;i&gt;=0;i--)this.value[i]=[this.value[i][0]+t,this.value[i][1]+e];return this},size:function(t,e){var n,i=this.bbox();for(n=this.value.length-1;n&gt;=0;n--)i.width&amp;&amp;(this.value[n][0]=(this.value[n][0]-i.x)*t/i.width+i.x),i.height&amp;&amp;(this.value[n][1]=(this.value[n][1]-i.y)*e/i.height+i.y);return this},bbox:function(){return r.parser.poly.setAttribute("points",this.toString()),r.parser.poly.getBBox()}});for(var s={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},o="mlhvqtcsaz".split(""),a=0,h=o.length;a&lt;h;++a)s[o[a]]=function(t){return function(e,n,i){if("H"==t)e[0]=e[0]+n.x;else if("V"==t)e[0]=e[0]+n.y;else if("A"==t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(var r=0,o=e.length;r&lt;o;++r)e[r]=e[r]+(r%2?n.y:n.x);return s[t](e,n,i)}}(o[a].toUpperCase());r.PathArray=function(t,e){r.Array.call(this,t,e||[["M",0,0]])},r.PathArray.prototype=new r.Array,r.PathArray.prototype.constructor=r.PathArray,r.extend(r.PathArray,{toString:function(){return k(this.value)},move:function(t,e){var n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&amp;&amp;!isNaN(e))for(var i,r=this.value.length-1;r&gt;=0;r--)i=this.value[r][0],"M"==i||"L"==i||"T"==i?(this.value[r][1]+=t,this.value[r][2]+=e):"H"==i?this.value[r][1]+=t:"V"==i?this.value[r][1]+=e:"C"==i||"S"==i||"Q"==i?(this.value[r][1]+=t,this.value[r][2]+=e,this.value[r][3]+=t,this.value[r][4]+=e,"C"==i&amp;&amp;(this.value[r][5]+=t,this.value[r][6]+=e)):"A"==i&amp;&amp;(this.value[r][6]+=t,this.value[r][7]+=e);return this},size:function(t,e){var n,i,r=this.bbox();for(n=this.value.length-1;n&gt;=0;n--)i=this.value[n][0],"M"==i||"L"==i||"T"==i?(this.value[n][1]=(this.value[n][1]-r.x)*t/r.width+r.x,this.value[n][2]=(this.value[n][2]-r.y)*e/r.height+r.y):"H"==i?this.value[n][1]=(this.value[n][1]-r.x)*t/r.width+r.x:"V"==i?this.value[n][1]=(this.value[n][1]-r.y)*e/r.height+r.y:"C"==i||"S"==i||"Q"==i?(this.value[n][1]=(this.value[n][1]-r.x)*t/r.width+r.x,this.value[n][2]=(this.value[n][2]-r.y)*e/r.height+r.y,this.value[n][3]=(this.value[n][3]-r.x)*t/r.width+r.x,this.value[n][4]=(this.value[n][4]-r.y)*e/r.height+r.y,"C"==i&amp;&amp;(this.value[n][5]=(this.value[n][5]-r.x)*t/r.width+r.x,this.value[n][6]=(this.value[n][6]-r.y)*e/r.height+r.y)):"A"==i&amp;&amp;(this.value[n][1]=this.value[n][1]*t/r.width,this.value[n][2]=this.value[n][2]*e/r.height,this.value[n][6]=(this.value[n][6]-r.x)*t/r.width+r.x,this.value[n][7]=(this.value[n][7]-r.y)*e/r.height+r.y);return this},equalCommands:function(t){var e,n,i;for(t=new r.PathArray(t),i=this.value.length===t.value.length,e=0,n=this.value.length;i&amp;&amp;e&lt;n;e++)i=this.value[e][0]===t.value[e][0];return i},morph:function(t){return t=new r.PathArray(t),this.equalCommands(t)?this.destination=t:this.destination=null,this},at:function(t){if(!this.destination)return this;var e,n,i,s,o=this.value,a=this.destination.value,h=[],u=new r.PathArray;for(e=0,n=o.length;e&lt;n;e++){for(h[e]=[o[e][0]],i=1,s=o[e].length;i&lt;s;i++)h[e][i]=o[e][i]+(a[e][i]-o[e][i])*t;"A"===h[e][0]&amp;&amp;(h[e][4]=+(0!=h[e][4]),h[e][5]=+(0!=h[e][5]))}return u.value=h,u},parse:function(t){if(t instanceof r.PathArray)return t.valueOf();var e,n={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"===typeof t?t.replace(r.regex.numbersWithDots,l).replace(r.regex.pathLetters," $&amp; ").replace(r.regex.hyphen,"$1 -").trim().split(r.regex.delimiter):t.reduce((function(t,e){return[].concat.call(t,e)}),[]);var i=[],o=new r.Point,a=new r.Point,h=0,u=t.length;do{r.regex.isPathLetter.test(t[h])?(e=t[h],++h):"M"==e?e="L":"m"==e&amp;&amp;(e="l"),i.push(s[e].call(null,t.slice(h,h+=n[e.toUpperCase()]).map(parseFloat),o,a))}while(u&gt;h);return i},bbox:function(){return r.parser.path.setAttribute("d",this.toString()),r.parser.path.getBBox()}}),r.Number=r.invent({create:function(t,e){this.value=0,this.unit=e||"","number"===typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t&lt;0?-34e37:34e37:"string"===typeof t?(e=t.match(r.regex.numberAndUnit),e&amp;&amp;(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&amp;&amp;(this.value*=1e3),this.unit=e[5])):t instanceof r.Number&amp;&amp;(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new r.Number(t),new r.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new r.Number(t),new r.Number(this-t,this.unit||t.unit)},times:function(t){return t=new r.Number(t),new r.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new r.Number(t),new r.Number(this/t,this.unit||t.unit)},to:function(t){var e=new r.Number(this);return"string"===typeof t&amp;&amp;(e.unit=t),e},morph:function(t){return this.destination=new r.Number(t),t.relative&amp;&amp;(this.destination.value+=this.value),this},at:function(t){return this.destination?new r.Number(this.destination).minus(this).times(t).plus(this):this}}}),r.Element=r.invent({create:function(t){this._stroke=r.defaults.attrs.stroke,this._event=null,this._events={},this.dom={},(this.node=t)&amp;&amp;(this.type=t.nodeName,this.node.instance=this,this._events=t._events||{},this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var n=y(this,t,e);return this.width(new r.Number(n.width)).height(new r.Number(n.height))},clone:function(t){this.writeDataToDom();var e=N(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&amp;&amp;this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},inside:function(t,e){var n=this.bbox();return t&gt;n.x&amp;&amp;e&gt;n.y&amp;&amp;t&lt;n.x+n.width&amp;&amp;e&lt;n.y+n.height},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(r.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&amp;&amp;this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return r.get(this.attr(t))},parent:function(e){var n=this;if(!n.node.parentNode)return null;if(n=r.adopt(n.node.parentNode),!e)return n;while(n&amp;&amp;n.node instanceof t.SVGElement){if("string"===typeof e?n.matches(e):n instanceof e)return n;if(!n.node.parentNode||"#document"==n.node.parentNode.nodeName||"#document-fragment"==n.node.parentNode.nodeName)return null;n=r.adopt(n.node.parentNode)}},doc:function(){return this instanceof r.Doc?this:this.parent(r.Doc)},parents:function(t){var e=[],n=this;do{if(n=n.parent(t),!n||!n.node)break;e.push(n)}while(n.parent);return e},matches:function(t){return d(this.node,t)},native:function(){return this.node},svg:function(t){var e=n.createElement("svg");if(!(t&amp;&amp;this instanceof r.Parent))return e.appendChild(t=n.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),e.innerHTML.replace(/^&lt;svg&gt;/,"").replace(/&lt;\/svg&gt;$/,"");e.innerHTML="&lt;svg&gt;"+t.replace(/\n/,"").replace(/&lt;([\w:-]+)([^&lt;]+?)\/&gt;/g,"&lt;$1$2&gt;&lt;/$1&gt;")+"&lt;/svg&gt;";for(var i=0,s=e.firstChild.childNodes.length;i&lt;s;i++)this.node.appendChild(e.firstChild.firstChild);return this},writeDataToDom:function(){if(this.each||this.lines){var t=this.each?this:this.lines();t.each((function(){this.writeDataToDom()}))}return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&amp;&amp;this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return f(this,t)}}}),r.easing={"-":function(t){return t},"&lt;&gt;":function(t){return-Math.cos(t*Math.PI)/2+.5},"&gt;":function(t){return Math.sin(t*Math.PI/2)},"&lt;":function(t){return 1-Math.cos(t*Math.PI/2)}},r.morph=function(t){return function(e,n){return new r.MorphObj(e,n).at(t)}},r.Situation=r.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new r.Number(t.duration).valueOf(),this.delay=new r.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),r.FX=r.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,n,i){"object"===Object(e["a"])(t)&amp;&amp;(n=t.ease,i=t.delay,t=t.duration);var s=new r.Situation({duration:t||1e3,delay:i||0,ease:r.easing[n||"-"]||n});return this.queue(s),this},delay:function(t){var e=new r.Situation({duration:t,delay:0,ease:r.easing["-"]});return this.queue(e)},target:function(t){return t&amp;&amp;t instanceof r.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&amp;&amp;this.situation&amp;&amp;(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"===typeof t||t instanceof r.Situation)&amp;&amp;this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&amp;&amp;(this.situation instanceof r.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e,n,i=this.situation;if(i.init)return this;for(t in i.animations)for(n=this.target()[t](),Array.isArray(n)||(n=[n]),Array.isArray(i.animations[t])||(i.animations[t]=[i.animations[t]]),e=n.length;e--;)i.animations[t][e]instanceof r.Number&amp;&amp;(n[e]=new r.Number(n[e])),i.animations[t][e]=n[e].morph(i.animations[t][e]);for(t in i.attrs)i.attrs[t]=new r.MorphObj(this.target().attr(t),i.attrs[t]);for(t in i.styles)i.styles[t]=new r.MorphObj(this.target().style(t),i.styles[t]);return i.initialTransformation=this.target().matrixify(),i.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var n=this.active;return this.active=!1,e&amp;&amp;this.clearQueue(),t&amp;&amp;this.situation&amp;&amp;(!n&amp;&amp;this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},reset:function(){if(this.situation){var t=this.situation;this.stop(),this.situation=t,this.atStart()}return this},finish:function(){this.stop(!0,!1);while(this.dequeue().situation&amp;&amp;this.stop(!0,!1));return this.clearQueue().clearCurrent(),this},atStart:function(){return this.at(0,!0)},atEnd:function(){return!0===this.situation.loops&amp;&amp;(this.situation.loops=this.situation.loop+1),"number"===typeof this.situation.loops?this.at(this.situation.loops,!0):this.at(1,!0)},at:function(t,e){var n=this.situation.duration/this._speed;return this.absPos=t,e||(this.situation.reversed&amp;&amp;(this.absPos=1-this.absPos),this.absPos+=this.situation.loop),this.situation.start=+new Date-this.absPos*n,this.situation.finish=this.situation.start+n,this.step(!0)},speed:function(t){return 0===t?this.pause():t?(this._speed=t,this.at(this.absPos,!0)):this._speed},loop:function(t,e){var n=this.last();return n.loops=null==t||t,n.loop=0,e&amp;&amp;(n.reversing=!0),this},pause:function(){return this.paused=!0,this.stopAnimFrame(),this},play:function(){return this.paused?(this.paused=!1,this.at(this.absPos,!0)):this},reverse:function(t){var e=this.last();return e.reversed="undefined"===typeof t?!e.reversed:t,this},progress:function(t){return t?this.situation.ease(this.pos):this.pos},after:function(t){var e=this.last(),n=function n(i){i.detail.situation==e&amp;&amp;(t.call(this,e),this.off("finished.fx",n))};return this.target().on("finished.fx",n),this._callStart()},during:function(t){var e=this.last(),n=function(n){n.detail.situation==e&amp;&amp;t.call(this,n.detail.pos,r.morph(n.detail.pos),n.detail.eased,e)};return this.target().off("during.fx",n).on("during.fx",n),this.after((function(){this.off("during.fx",n)})),this._callStart()},afterAll:function(t){var e=function e(n){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},duringAll:function(t){var e=function(e){t.call(this,e.detail.pos,r.morph(e.detail.pos),e.detail.eased,e.detail.situation)};return this.target().off("during.fx",e).on("during.fx",e),this.afterAll((function(){this.off("during.fx",e)})),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,n){return this.last()[n||"animations"][t]=e,this._callStart()},step:function(t){var e,n,i;(t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops)?(e=Math.max(this.absPos,0),n=Math.floor(e),!0===this.situation.loops||n&lt;this.situation.loops?(this.pos=e-n,i=this.situation.loop,this.situation.loop=n):(this.absPos=this.situation.loops,this.pos=1,i=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&amp;&amp;(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-i)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos);this.pos&lt;0&amp;&amp;(this.pos=0),this.situation.reversed&amp;&amp;(this.pos=1-this.pos);var r=this.situation.ease(this.pos);for(var s in this.situation.once)s&gt;this.lastPos&amp;&amp;s&lt;=r&amp;&amp;(this.situation.once[s].call(this.target(),this.pos,r),delete this.situation.once[s]);return this.active&amp;&amp;this.target().fire("during",{pos:this.pos,eased:r,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&amp;&amp;!this.situation.reversed||this.situation.reversed&amp;&amp;0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&amp;&amp;this.active&amp;&amp;this.startAnimFrame(),this.lastPos=r,this):this},eachAt:function(){var t,e,n,i=this,s=this.target(),o=this.situation;for(t in o.animations)n=[].concat(o.animations[t]).map((function(t){return"string"!==typeof t&amp;&amp;t.at?t.at(o.ease(i.pos),i.pos):t})),s[t].apply(s,n);for(t in o.attrs)n=[t].concat(o.attrs[t]).map((function(t){return"string"!==typeof t&amp;&amp;t.at?t.at(o.ease(i.pos),i.pos):t})),s.attr.apply(s,n);for(t in o.styles)n=[t].concat(o.styles[t]).map((function(t){return"string"!==typeof t&amp;&amp;t.at?t.at(o.ease(i.pos),i.pos):t})),s.style.apply(s,n);if(o.transforms.length){for(n=o.initialTransformation,t=0,e=o.transforms.length;t&lt;e;t++){var a=o.transforms[t];a instanceof r.Matrix?n=a.relative?n.multiply((new r.Matrix).morph(a).at(o.ease(this.pos))):n.morph(a).at(o.ease(this.pos)):(a.relative||a.undo(n.extract()),n=n.multiply(a.at(o.ease(this.pos))))}s.matrix(n)}return this},once:function(t,e,n){var i=this.last();return n||(t=i.ease(t)),i.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:r.Element,construct:{animate:function(t,e,n){return(this.fx||(this.fx=new r.FX(this))).animate(t,e,n)},delay:function(t){return(this.fx||(this.fx=new r.FX(this))).delay(t)},stop:function(t,e){return this.fx&amp;&amp;this.fx.stop(t,e),this},finish:function(){return this.fx&amp;&amp;this.fx.finish(),this},pause:function(){return this.fx&amp;&amp;this.fx.pause(),this},play:function(){return this.fx&amp;&amp;this.fx.play(),this},speed:function(t){if(this.fx){if(null==t)return this.fx.speed();this.fx.speed(t)}return this}}}),r.MorphObj=r.invent({create:function(t,e){return r.Color.isColor(e)?new r.Color(t).morph(e):r.regex.delimiter.test(t)?r.regex.pathLetters.test(t)?new r.PathArray(t).morph(e):new r.Array(t).morph(e):r.regex.numberAndUnit.test(e)?new r.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e&lt;1?this.value:this.destination},valueOf:function(){return this.value}}}),r.extend(r.FX,{attr:function(t,n,i){if("object"===Object(e["a"])(t))for(var r in t)this.attr(r,t[r]);else this.add(t,n,"attrs");return this},style:function(t,n){if("object"===Object(e["a"])(t))for(var i in t)this.style(i,t[i]);else this.add(t,n,"styles");return this},x:function(t,e){if(this.target()instanceof r.G)return this.transform({x:t},e),this;var n=new r.Number(t);return n.relative=e,this.add("x",n)},y:function(t,e){if(this.target()instanceof r.G)return this.transform({y:t},e),this;var n=new r.Number(t);return n.relative=e,this.add("y",n)},cx:function(t){return this.add("cx",new r.Number(t))},cy:function(t){return this.add("cy",new r.Number(t))},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},size:function(t,e){var n;this.target()instanceof r.Text?this.attr("font-size",t):(t&amp;&amp;e||(n=this.target().bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.add("width",new r.Number(t)).add("height",new r.Number(e)));return this},width:function(t){return this.add("width",new r.Number(t))},height:function(t){return this.add("height",new r.Number(t))},plot:function(t,e,n,i){return 4==arguments.length?this.plot([t,e,n,i]):this.add("plot",new(this.target().morphArray)(t))},leading:function(t){return this.target().leading?this.add("leading",new r.Number(t)):this},viewbox:function(t,e,n,i){return this.target()instanceof r.Container&amp;&amp;this.add("viewbox",new r.ViewBox(t,e,n,i)),this},update:function(t){if(this.target()instanceof r.Stop){if("number"===typeof t||t instanceof r.Number)return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]});null!=t.opacity&amp;&amp;this.attr("stop-opacity",t.opacity),null!=t.color&amp;&amp;this.attr("stop-color",t.color),null!=t.offset&amp;&amp;this.attr("offset",t.offset)}return this}}),r.Box=r.invent({create:function(t,n,i,s){if(!("object"!==Object(e["a"])(t)||t instanceof r.Element))return r.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);4==arguments.length&amp;&amp;(this.x=t,this.y=n,this.width=i,this.height=s),P(this)},extend:{merge:function(t){var e=new this.constructor;return e.x=Math.min(this.x,t.x),e.y=Math.min(this.y,t.y),e.width=Math.max(this.x+this.width,t.x+t.width)-e.x,e.height=Math.max(this.y+this.height,t.y+t.height)-e.y,P(e)},transform:function(t){var e,n=1/0,i=-1/0,s=1/0,o=-1/0,a=[new r.Point(this.x,this.y),new r.Point(this.x2,this.y),new r.Point(this.x,this.y2),new r.Point(this.x2,this.y2)];return a.forEach((function(e){e=e.transform(t),n=Math.min(n,e.x),i=Math.max(i,e.x),s=Math.min(s,e.y),o=Math.max(o,e.y)})),e=new this.constructor,e.x=n,e.width=i-n,e.y=s,e.height=o-s,P(e),e}}}),r.BBox=r.invent({create:function(t){if(r.Box.apply(this,[].slice.call(arguments)),t instanceof r.Element){var e;try{if(n.documentElement.contains){if(!n.documentElement.contains(t.node))throw new Exception("Element not in the dom")}else{var i=t.node;while(i.parentNode)i=i.parentNode;if(i!=n)throw new Exception("Element not in the dom")}e=t.node.getBBox()}catch(o){if(t instanceof r.Shape){var s=t.clone(r.parser.draw.instance).show();e=s.node.getBBox(),s.remove()}else e={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}r.Box.call(this,e)}},inherit:r.Box,parent:r.Element,construct:{bbox:function(){return new r.BBox(this)}}}),r.BBox.prototype.constructor=r.BBox,r.extend(r.Element,{tbox:function(){return console.warn("Use of TBox is deprecated and mapped to RBox. Use .rbox() instead."),this.rbox(this.doc())}}),r.RBox=r.invent({create:function(t){r.Box.apply(this,[].slice.call(arguments)),t instanceof r.Element&amp;&amp;r.Box.call(this,t.node.getBoundingClientRect())},inherit:r.Box,parent:r.Element,extend:{addOffset:function(){return this.x+=t.pageXOffset,this.y+=t.pageYOffset,this}},construct:{rbox:function(t){return t?new r.RBox(this).transform(t.screenCTM().inverse()):new r.RBox(this).addOffset()}}}),r.RBox.prototype.constructor=r.RBox,r.Matrix=r.invent({create:function(t){var n,i=w([1,0,0,1,0,0]);for(t=t instanceof r.Element?t.matrixify():"string"===typeof t?w(t.split(r.regex.delimiter).map(parseFloat)):6==arguments.length?w([].slice.call(arguments)):Array.isArray(t)?w(t):"object"===Object(e["a"])(t)?t:i,n=M.length-1;n&gt;=0;--n)this[M[n]]=null!=t[M[n]]?t[M[n]]:i[M[n]]},extend:{extract:function(){var t=g(this,0,1),e=g(this,1,0),n=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(n*Math.PI/180)+this.f*Math.sin(n*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(n*Math.PI/180)+this.e*Math.sin(-n*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),skewX:-n,skewY:180/Math.PI*Math.atan2(e.y,e.x),scaleX:Math.sqrt(this.a*this.a+this.b*this.b),scaleY:Math.sqrt(this.c*this.c+this.d*this.d),rotation:n,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new r.Matrix(this)}},clone:function(){return new r.Matrix(this)},morph:function(t){return this.destination=new r.Matrix(t),this},at:function(t){if(!this.destination)return this;var e=new r.Matrix({a:this.a+(this.destination.a-this.a)*t,b:this.b+(this.destination.b-this.b)*t,c:this.c+(this.destination.c-this.c)*t,d:this.d+(this.destination.d-this.d)*t,e:this.e+(this.destination.e-this.e)*t,f:this.f+(this.destination.f-this.f)*t});return e},multiply:function(t){return new r.Matrix(this.native().multiply(b(t).native()))},inverse:function(){return new r.Matrix(this.native().inverse())},translate:function(t,e){return new r.Matrix(this.native().translate(t||0,e||0))},scale:function(t,e,n,i){return 1==arguments.length?e=t:3==arguments.length&amp;&amp;(i=n,n=e,e=t),this.around(n,i,new r.Matrix(t,0,0,e,0,0))},rotate:function(t,e,n){return t=r.utils.radians(t),this.around(e,n,new r.Matrix(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0))},flip:function(t,e){return"x"==t?this.scale(-1,1,e,0):"y"==t?this.scale(1,-1,0,e):this.scale(-1,-1,t,null!=e?e:t)},skew:function(t,e,n,i){return 1==arguments.length?e=t:3==arguments.length&amp;&amp;(i=n,n=e,e=t),t=r.utils.radians(t),e=r.utils.radians(e),this.around(n,i,new r.Matrix(1,Math.tan(e),Math.tan(t),1,0,0))},skewX:function(t,e,n){return this.skew(t,0,e,n)},skewY:function(t,e,n){return this.skew(0,t,e,n)},around:function(t,e,n){return this.multiply(new r.Matrix(1,0,0,1,t||0,e||0)).multiply(n).multiply(new r.Matrix(1,0,0,1,-t||0,-e||0))},native:function(){for(var t=r.parser.native.createSVGMatrix(),e=M.length-1;e&gt;=0;e--)t[M[e]]=this[M[e]];return t},toString:function(){return"matrix("+A(this.a)+","+A(this.b)+","+A(this.c)+","+A(this.d)+","+A(this.e)+","+A(this.f)+")"}},parent:r.Element,construct:{ctm:function(){return new r.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof r.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new r.Matrix(e)}return new r.Matrix(this.node.getScreenCTM())}}}),r.Point=r.invent({create:function(t,n){var i,r={x:0,y:0};i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===Object(e["a"])(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=n?n:t}:r,this.x=i.x,this.y=i.y},extend:{clone:function(){return new r.Point(this)},morph:function(t,e){return this.destination=new r.Point(t,e),this},at:function(t){if(!this.destination)return this;var e=new r.Point({x:this.x+(this.destination.x-this.x)*t,y:this.y+(this.destination.y-this.y)*t});return e},native:function(){var t=r.parser.native.createSVGPoint();return t.x=this.x,t.y=this.y,t},transform:function(t){return new r.Point(this.native().matrixTransform(t.native()))}}}),r.extend(r.Element,{point:function(t,e){return new r.Point(t,e).transform(this.screenCTM().inverse())}}),r.extend(r.Element,{attr:function(t,n,i){if(null==t){for(t={},n=this.node.attributes,i=n.length-1;i&gt;=0;i--)t[n[i].nodeName]=r.regex.isNumber.test(n[i].nodeValue)?parseFloat(n[i].nodeValue):n[i].nodeValue;return t}if("object"===Object(e["a"])(t))for(n in t)this.attr(n,t[n]);else if(null===n)this.node.removeAttribute(t);else{if(null==n)return n=this.node.getAttribute(t),null==n?r.defaults.attrs[t]:r.regex.isNumber.test(n)?parseFloat(n):n;"stroke-width"==t?this.attr("stroke",parseFloat(n)&gt;0?this._stroke:null):"stroke"==t&amp;&amp;(this._stroke=n),"fill"!=t&amp;&amp;"stroke"!=t||(r.regex.isImage.test(n)&amp;&amp;(n=this.doc().defs().image(n,0,0)),n instanceof r.Image&amp;&amp;(n=this.doc().defs().pattern(0,0,(function(){this.add(n)})))),"number"===typeof n?n=new r.Number(n):r.Color.isColor(n)?n=new r.Color(n):Array.isArray(n)&amp;&amp;(n=new r.Array(n)),"leading"==t?this.leading&amp;&amp;this.leading(n):"string"===typeof i?this.node.setAttributeNS(i,t,n.toString()):this.node.setAttribute(t,n.toString()),!this.rebuild||"font-size"!=t&amp;&amp;"x"!=t||this.rebuild(t,n)}return this}}),r.extend(r.Element,{transform:function(t,n){var i,s,o=this;if("object"!==Object(e["a"])(t))return i=new r.Matrix(o).extract(),"string"===typeof t?i[t]:i;if(i=new r.Matrix(o),n=!!n||!!t.relative,null!=t.a)i=n?i.multiply(new r.Matrix(t)):new r.Matrix(t);else if(null!=t.rotation)C(t,o),i=n?i.rotate(t.rotation,t.cx,t.cy):i.rotate(t.rotation-i.extract().rotation,t.cx,t.cy);else if(null!=t.scale||null!=t.scaleX||null!=t.scaleY){if(C(t,o),t.scaleX=null!=t.scale?t.scale:null!=t.scaleX?t.scaleX:1,t.scaleY=null!=t.scale?t.scale:null!=t.scaleY?t.scaleY:1,!n){var a=i.extract();t.scaleX=1*t.scaleX/a.scaleX,t.scaleY=1*t.scaleY/a.scaleY}i=i.scale(t.scaleX,t.scaleY,t.cx,t.cy)}else if(null!=t.skew||null!=t.skewX||null!=t.skewY){if(C(t,o),t.skewX=null!=t.skew?t.skew:null!=t.skewX?t.skewX:0,t.skewY=null!=t.skew?t.skew:null!=t.skewY?t.skewY:0,!n){a=i.extract();i=i.multiply((new r.Matrix).skew(a.skewX,a.skewY,t.cx,t.cy).inverse())}i=i.skew(t.skewX,t.skewY,t.cx,t.cy)}else t.flip?("x"==t.flip||"y"==t.flip?t.offset=null==t.offset?o.bbox()["c"+t.flip]:t.offset:null==t.offset?(s=o.bbox(),t.flip=s.cx,t.offset=s.cy):t.flip=t.offset,i=(new r.Matrix).flip(t.flip,t.offset)):null==t.x&amp;&amp;null==t.y||(n?i=i.translate(t.x,t.y):(null!=t.x&amp;&amp;(i.e=t.x),null!=t.y&amp;&amp;(i.f=t.y)));return this.attr("transform",i)}}),r.extend(r.FX,{transform:function(t,n){var i,s,o=this.target();return"object"!==Object(e["a"])(t)?(i=new r.Matrix(o).extract(),"string"===typeof t?i[t]:i):(n=!!n||!!t.relative,null!=t.a?i=new r.Matrix(t):null!=t.rotation?(C(t,o),i=new r.Rotate(t.rotation,t.cx,t.cy)):null!=t.scale||null!=t.scaleX||null!=t.scaleY?(C(t,o),t.scaleX=null!=t.scale?t.scale:null!=t.scaleX?t.scaleX:1,t.scaleY=null!=t.scale?t.scale:null!=t.scaleY?t.scaleY:1,i=new r.Scale(t.scaleX,t.scaleY,t.cx,t.cy)):null!=t.skewX||null!=t.skewY?(C(t,o),t.skewX=null!=t.skewX?t.skewX:0,t.skewY=null!=t.skewY?t.skewY:0,i=new r.Skew(t.skewX,t.skewY,t.cx,t.cy)):t.flip?("x"==t.flip||"y"==t.flip?t.offset=null==t.offset?o.bbox()["c"+t.flip]:t.offset:null==t.offset?(s=o.bbox(),t.flip=s.cx,t.offset=s.cy):t.flip=t.offset,i=(new r.Matrix).flip(t.flip,t.offset)):null==t.x&amp;&amp;null==t.y||(i=new r.Translate(t.x,t.y)),i?(i.relative=n,this.last().transforms.push(i),this._callStart()):this)}}),r.extend(r.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){var t=(this.attr("transform")||"").split(r.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(r.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(w(e[1])):t[e[0]].apply(t,e[1])}),new r.Matrix);return t},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),n=t.screenCTM().inverse();return this.addTo(t).untransform().transform(n.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),r.Transformation=r.invent({create:function(t,n){if(arguments.length&gt;1&amp;&amp;"boolean"!==typeof n)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,r=this.arguments.length;i&lt;r;++i)this[this.arguments[i]]=t[i];else if("object"===Object(e["a"])(t))for(i=0,r=this.arguments.length;i&lt;r;++i)this[this.arguments[i]]=t[this.arguments[i]];this.inversed=!1,!0===n&amp;&amp;(this.inversed=!0)},extend:{arguments:[],method:"",at:function(t){for(var e=[],n=0,i=this.arguments.length;n&lt;i;++n)e.push(this[this.arguments[n]]);var s=this._undo||new r.Matrix;return s=(new r.Matrix).morph(r.Matrix.prototype[this.method].apply(s,e)).at(t),this.inversed?s.inverse():s},undo:function(t){for(var e=0,n=this.arguments.length;e&lt;n;++e)t[this.arguments[e]]="undefined"===typeof this[this.arguments[e]]?0:t[this.arguments[e]];return t.cx=this.cx,t.cy=this.cy,this._undo=new(r[m(this.method)])(t,!0).at(1),this}}}),r.Translate=r.invent({parent:r.Matrix,inherit:r.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),r.Rotate=r.invent({parent:r.Matrix,inherit:r.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["rotation","cx","cy"],method:"rotate",at:function(t){var e=(new r.Matrix).rotate((new r.Number).morph(this.rotation-(this._undo?this._undo.rotation:0)).at(t),this.cx,this.cy);return this.inversed?e.inverse():e},undo:function(t){return this._undo=t,this}}}),r.Scale=r.invent({parent:r.Matrix,inherit:r.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["scaleX","scaleY","cx","cy"],method:"scale"}}),r.Skew=r.invent({parent:r.Matrix,inherit:r.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["skewX","skewY","cx","cy"],method:"skew"}}),r.extend(r.Element,{style:function(t,n){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length&lt;2)if("object"===Object(e["a"])(t))for(n in t)this.style(n,t[n]);else{if(!r.regex.isCss.test(t))return this.node.style[p(t)];t=t.split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/)}));while(n=t.pop())this.style(n[0],n[1])}else this.node.style[p(t)]=null===n||r.regex.isBlank.test(n)?"":n;return this}}),r.Parent=r.invent({create:function(t){this.constructor.call(this,t)},inherit:r.Element,extend:{children:function(){return r.utils.map(r.utils.filterSVGElements(this.node.childNodes),(function(t){return r.adopt(t)}))},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&amp;&amp;this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)&gt;=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return r.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){var n,i,s=this.children();for(n=0,i=s.length;n&lt;i;n++)s[n]instanceof r.Element&amp;&amp;t.apply(s[n],[n,s]),e&amp;&amp;s[n]instanceof r.Container&amp;&amp;s[n].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),r.extend(r.Parent,{ungroup:function(t,e){return 0===e||this instanceof r.Defs||this.node==r.parser.draw||(t=t||(this instanceof r.Doc?this:this.parent(r.Parent)),e=e||1/0,this.each((function(){return this instanceof r.Defs?this:this instanceof r.Parent?this.ungroup(t,e-1):this.toParent(t)})),this.node.firstChild||this.remove()),this},flatten:function(t,e){return this.ungroup(t,e)}}),r.Container=r.invent({create:function(t){this.constructor.call(this,t)},inherit:r.Parent}),r.ViewBox=r.invent({create:function(t){var n,i,s,o,a,h,u,l=[0,0,0,0],c=1,f=1,d=/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi;if(t instanceof r.Element){h=t,u=t,a=(t.attr("viewBox")||"").match(d),t.bbox,s=new r.Number(t.width()),o=new r.Number(t.height());while("%"==s.unit)c*=s.value,s=new r.Number(h instanceof r.Doc?h.parent().offsetWidth:h.parent().width()),h=h.parent();while("%"==o.unit)f*=o.value,o=new r.Number(u instanceof r.Doc?u.parent().offsetHeight:u.parent().height()),u=u.parent();this.x=0,this.y=0,this.width=s*c,this.height=o*f,this.zoom=1,a&amp;&amp;(n=parseFloat(a[0]),i=parseFloat(a[1]),s=parseFloat(a[2]),o=parseFloat(a[3]),this.zoom=this.width/this.height&gt;s/o?this.height/o:this.width/s,this.x=n,this.y=i,this.width=s,this.height=o)}else t="string"===typeof t?t.match(d).map((function(t){return parseFloat(t)})):Array.isArray(t)?t:"object"===Object(e["a"])(t)?[t.x,t.y,t.width,t.height]:4==arguments.length?[].slice.call(arguments):l,this.x=t[0],this.y=t[1],this.width=t[2],this.height=t[3]},extend:{toString:function(){return this.x+" "+this.y+" "+this.width+" "+this.height},morph:function(t,e,n,i){return this.destination=new r.ViewBox(t,e,n,i),this},at:function(t){return this.destination?new r.ViewBox([this.x+(this.destination.x-this.x)*t,this.y+(this.destination.y-this.y)*t,this.width+(this.destination.width-this.width)*t,this.height+(this.destination.height-this.height)*t]):this}},parent:r.Container,construct:{viewbox:function(t,e,n,i){return 0==arguments.length?new r.ViewBox(this):this.attr("viewBox",new r.ViewBox(t,e,n,i))}}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(t){r.Element.prototype[t]=function(e){return null==e?r.off(this,t):r.on(this,t,e),this}})),r.listenerId=0,r.on=function(t,e,n,i,s){var o=n.bind(i||t),a=t instanceof r.Element?t.node:t;a.instance=a.instance||{_events:{}};var h=a.instance._events;n._svgjsListenerId||(n._svgjsListenerId=++r.listenerId),e.split(r.regex.delimiter).forEach((function(t){var e=t.split(".")[0],i=t.split(".")[1]||"*";h[e]=h[e]||{},h[e][i]=h[e][i]||{},h[e][i][n._svgjsListenerId]=o,a.addEventListener(e,o,s||!1)}))},r.off=function(t,e,n,i){var s=t instanceof r.Element?t.node:t;if(s.instance&amp;&amp;("function"!==typeof n||(n=n._svgjsListenerId,n))){var o=s.instance._events;(e||"").split(r.regex.delimiter).forEach((function(t){var e,a,h=t&amp;&amp;t.split(".")[0],u=t&amp;&amp;t.split(".")[1];if(n)o[h]&amp;&amp;o[h][u||"*"]&amp;&amp;(s.removeEventListener(h,o[h][u||"*"][n],i||!1),delete o[h][u||"*"][n]);else if(h&amp;&amp;u){if(o[h]&amp;&amp;o[h][u]){for(a in o[h][u])r.off(s,[h,u].join("."),a);delete o[h][u]}}else if(u)for(t in o)for(e in o[t])u===e&amp;&amp;r.off(s,[t,u].join("."));else if(h){if(o[h]){for(e in o[h])r.off(s,[h,e].join("."));delete o[h]}}else{for(t in o)r.off(s,t);s.instance._events={}}}))}},r.extend(r.Element,{on:function(t,e,n,i){return r.on(this,t,e,n,i),this},off:function(t,e){return r.off(this.node,t,e),this},fire:function(e,n){return e instanceof t.Event?this.node.dispatchEvent(e):this.node.dispatchEvent(e=new r.CustomEvent(e,{detail:n,cancelable:!0})),this._event=e,this},event:function(){return this._event}}),r.Defs=r.invent({create:"defs",inherit:r.Container}),r.G=r.invent({create:"g",inherit:r.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)},y:function(t){return null==t?this.transform("y"):this.transform({y:t-this.y()},!0)},cx:function(t){return null==t?this.gbox().cx:this.x(t-this.gbox().width/2)},cy:function(t){return null==t?this.gbox().cy:this.y(t-this.gbox().height/2)},gbox:function(){var t=this.bbox(),e=this.transform();return t.x+=e.x,t.x2+=e.x,t.cx+=e.x,t.y+=e.y,t.y2+=e.y,t.cy+=e.y,t}},construct:{group:function(){return this.put(new r.G)}}}),r.Doc=r.invent({create:function(t){t&amp;&amp;(t="string"===typeof t?n.getElementById(t):t,"svg"==t.nodeName?this.constructor.call(this,t):(this.constructor.call(this,r.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:r.Container,extend:{namespace:function(){return this.attr({xmlns:r.ns,version:"1.1"}).attr("xmlns:xlink",r.xlink,r.xmlns).attr("xmlns:svgjs",r.svgjs,r.xmlns)},defs:function(){var t;this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=r.adopt(t):this._defs=new r.Defs,this.node.appendChild(this._defs.node));return this._defs},parent:function(){return this.node.parentNode&amp;&amp;"#document"!=this.node.parentNode.nodeName&amp;&amp;"#document-fragment"!=this.node.parentNode.nodeName?this.node.parentNode:null},spof:function(){var t=this.node.getScreenCTM();return t&amp;&amp;this.style("left",-t.e%1+"px").style("top",-t.f%1+"px"),this},remove:function(){return this.parent()&amp;&amp;this.parent().removeChild(this.node),this},clear:function(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return delete this._defs,r.parser.draw.parentNode||this.node.appendChild(r.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,n=N(e.cloneNode(!0));return t?(t.node||t).appendChild(n.node):e.parentNode.insertBefore(n.node,e.nextSibling),n}}}),r.extend(r.Element,{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},previous:function(){return this.siblings()[this.position()-1]},forward:function(){var t=this.position()+1,e=this.parent();return e.removeElement(this).add(this,t),e instanceof r.Doc&amp;&amp;e.node.appendChild(e.defs().node),this},backward:function(){var t=this.position();return t&gt;0&amp;&amp;this.parent().removeElement(this).add(this,t-1),this},front:function(){var t=this.parent();return t.node.appendChild(this.node),t instanceof r.Doc&amp;&amp;t.node.appendChild(t.defs().node),this},back:function(){return this.position()&gt;0&amp;&amp;this.parent().removeElement(this).add(this,0),this},before:function(t){t.remove();var e=this.position();return this.parent().add(t,e),this},after:function(t){t.remove();var e=this.position();return this.parent().add(t,e+1),this}}),r.Mask=r.invent({create:function(){this.constructor.call(this,r.create("mask")),this.targets=[]},inherit:r.Container,extend:{remove:function(){for(var t=this.targets.length-1;t&gt;=0;t--)this.targets[t]&amp;&amp;this.targets[t].unmask();return this.targets=[],r.Element.prototype.remove.call(this),this}},construct:{mask:function(){return this.defs().put(new r.Mask)}}}),r.extend(r.Element,{maskWith:function(t){return this.masker=t instanceof r.Mask?t:this.parent().mask().add(t),this.masker.targets.push(this),this.attr("mask",'url("#'+this.masker.attr("id")+'")')},unmask:function(){return delete this.masker,this.attr("mask",null)}}),r.ClipPath=r.invent({create:function(){this.constructor.call(this,r.create("clipPath")),this.targets=[]},inherit:r.Container,extend:{remove:function(){for(var t=this.targets.length-1;t&gt;=0;t--)this.targets[t]&amp;&amp;this.targets[t].unclip();return this.targets=[],this.parent().removeElement(this),this}},construct:{clip:function(){return this.defs().put(new r.ClipPath)}}}),r.extend(r.Element,{clipWith:function(t){return this.clipper=t instanceof r.ClipPath?t:this.parent().clip().add(t),this.clipper.targets.push(this),this.attr("clip-path",'url("#'+this.clipper.attr("id")+'")')},unclip:function(){return delete this.clipper,this.attr("clip-path",null)}}),r.Gradient=r.invent({create:function(t){this.constructor.call(this,r.create(t+"Gradient")),this.type=t},inherit:r.Container,extend:{at:function(t,e,n){return this.put(new r.Stop).update(t,e,n)},update:function(t){return this.clear(),"function"===typeof t&amp;&amp;t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,n){return"transform"==t&amp;&amp;(t="gradientTransform"),r.Container.prototype.attr.call(this,t,e,n)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),r.extend(r.Gradient,r.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new r.Number(t),fy:new r.Number(e)}):this.attr({x1:new r.Number(t),y1:new r.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new r.Number(t),cy:new r.Number(e)}):this.attr({x2:new r.Number(t),y2:new r.Number(e)})}}),r.extend(r.Defs,{gradient:function(t,e){return this.put(new r.Gradient(t)).update(e)}}),r.Stop=r.invent({create:"stop",inherit:r.Element,extend:{update:function(t){return("number"===typeof t||t instanceof r.Number)&amp;&amp;(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&amp;&amp;this.attr("stop-opacity",t.opacity),null!=t.color&amp;&amp;this.attr("stop-color",t.color),null!=t.offset&amp;&amp;this.attr("offset",new r.Number(t.offset)),this}}}),r.Pattern=r.invent({create:"pattern",inherit:r.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"===typeof t&amp;&amp;t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,n){return"transform"==t&amp;&amp;(t="patternTransform"),r.Container.prototype.attr.call(this,t,e,n)}},construct:{pattern:function(t,e,n){return this.defs().pattern(t,e,n)}}}),r.extend(r.Defs,{pattern:function(t,e,n){return this.put(new r.Pattern).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),r.Shape=r.invent({create:function(t){this.constructor.call(this,t)},inherit:r.Element}),r.Bare=r.invent({create:function(t,e){if(this.constructor.call(this,r.create(t)),e)for(var n in e.prototype)"function"===typeof e.prototype[n]&amp;&amp;(this[n]=e.prototype[n])},inherit:r.Element,extend:{words:function(t){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return this.node.appendChild(n.createTextNode(t)),this}}}),r.extend(r.Parent,{element:function(t,e){return this.put(new r.Bare(t,e))}}),r.Symbol=r.invent({create:"symbol",inherit:r.Container,construct:{symbol:function(){return this.put(new r.Symbol)}}}),r.Use=r.invent({create:"use",inherit:r.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,r.xlink)}},construct:{use:function(t,e){return this.put(new r.Use).element(t,e)}}}),r.Rect=r.invent({create:"rect",inherit:r.Shape,construct:{rect:function(t,e){return this.put(new r.Rect).size(t,e)}}}),r.Circle=r.invent({create:"circle",inherit:r.Shape,construct:{circle:function(t){return this.put(new r.Circle).rx(new r.Number(t).divide(2)).move(0,0)}}}),r.extend(r.Circle,r.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),r.Ellipse=r.invent({create:"ellipse",inherit:r.Shape,construct:{ellipse:function(t,e){return this.put(new r.Ellipse).size(t,e).move(0,0)}}}),r.extend(r.Ellipse,r.Rect,r.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),r.extend(r.Circle,r.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new r.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new r.Number(t).divide(2))},size:function(t,e){var n=y(this,t,e);return this.rx(new r.Number(n.width).divide(2)).ry(new r.Number(n.height).divide(2))}}),r.Line=r.invent({create:"line",inherit:r.Shape,extend:{array:function(){return new r.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,n,i){return null==t?this.array():(t="undefined"!==typeof e?{x1:t,y1:e,x2:n,y2:i}:new r.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var n=y(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}},construct:{line:function(t,e,n,i){return r.Line.prototype.plot.apply(this.put(new r.Line),null!=t?[t,e,n,i]:[0,0,0,0])}}}),r.Polyline=r.invent({create:"polyline",inherit:r.Shape,construct:{polyline:function(t){return this.put(new r.Polyline).plot(t||new r.PointArray)}}}),r.Polygon=r.invent({create:"polygon",inherit:r.Shape,construct:{polygon:function(t){return this.put(new r.Polygon).plot(t||new r.PointArray)}}}),r.extend(r.Polyline,r.Polygon,{array:function(){return this._array||(this._array=new r.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"===typeof t?t:this._array=new r.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var n=y(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}}),r.extend(r.Line,r.Polyline,r.Polygon,{morphArray:r.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),r.Path=r.invent({create:"path",inherit:r.Shape,extend:{morphArray:r.PathArray,array:function(){return this._array||(this._array=new r.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"===typeof t?t:this._array=new r.PathArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("d",this.array().move(t,e))},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},size:function(t,e){var n=y(this,t,e);return this.attr("d",this.array().size(n.width,n.height))},width:function(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)},height:function(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}},construct:{path:function(t){return this.put(new r.Path).plot(t||new r.PathArray)}}}),r.Image=r.invent({create:"image",inherit:r.Shape,extend:{load:function(e){if(!e)return this;var n=this,i=new t.Image;return r.on(i,"load",(function(){r.off(i);var t=n.parent(r.Pattern);null!==t&amp;&amp;(0==n.width()&amp;&amp;0==n.height()&amp;&amp;n.size(i.width,i.height),t&amp;&amp;0==t.width()&amp;&amp;0==t.height()&amp;&amp;t.size(n.width(),n.height()),"function"===typeof n._loaded&amp;&amp;n._loaded.call(n,{width:i.width,height:i.height,ratio:i.width/i.height,url:e}))})),r.on(i,"error",(function(t){r.off(i),"function"===typeof n._error&amp;&amp;n._error.call(n,t)})),this.attr("href",i.src=this.src=e,r.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,n){return this.put(new r.Image).load(t).size(e||0,n||e||0)}}}),r.Text=r.invent({create:function(){this.constructor.call(this,r.create("text")),this.dom.leading=new r.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",r.defaults.attrs["font-family"])},inherit:r.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},y:function(t){var e=this.attr("y"),n="number"===typeof e?e-this.bbox().y:0;return null==t?"number"===typeof e?e-n:e:this.attr("y","number"===typeof t.valueOf()?t+n:t)},cx:function(t){return null==t?this.bbox().cx:this.x(t-this.bbox().width/2)},cy:function(t){return null==t?this.bbox().cy:this.y(t-this.bbox().height/2)},text:function(t){if("undefined"===typeof t){t="";for(var e=this.node.childNodes,n=0,i=e.length;n&lt;i;++n)0!=n&amp;&amp;3!=e[n].nodeType&amp;&amp;1==r.adopt(e[n]).dom.newLined&amp;&amp;(t+="\n"),t+=e[n].textContent;return t}if(this.clear().build(!0),"function"===typeof t)t.call(this,this);else{t=t.split("\n");n=0;for(var s=t.length;n&lt;s;n++)this.tspan(t[n]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new r.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&amp;&amp;this.textPath()||this).node,e=r.utils.map(r.utils.filterSVGElements(t.childNodes),(function(t){return r.adopt(t)}));return new r.Set(e)},rebuild:function(t){if("boolean"===typeof t&amp;&amp;(this._rebuild=t),this._rebuild){var e=this,n=0,i=this.dom.leading*new r.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&amp;&amp;(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?n+=i:(this.attr("dy",i+n),n=0))})),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new r.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new r.Text).text(t)},plain:function(t){return this.put(new r.Text).plain(t)}}}),r.Tspan=r.invent({create:"tspan",inherit:r.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"===typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(r.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),r.extend(r.Text,r.Tspan,{plain:function(t){return!1===this._build&amp;&amp;this.clear(),this.node.appendChild(n.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&amp;&amp;this.textPath()||this).node,n=new r.Tspan;return!1===this._build&amp;&amp;this.clear(),e.appendChild(n.node),n.text(t)},clear:function(){var t=(this.textPath&amp;&amp;this.textPath()||this).node;while(t.hasChildNodes())t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),r.TextPath=r.invent({create:"textPath",inherit:r.Parent,parent:r.Text,construct:{morphArray:r.PathArray,path:function(t){var e=new r.TextPath,n=this.doc().defs().path(t);while(this.node.hasChildNodes())e.node.appendChild(this.node.firstChild);return this.node.appendChild(e.node),e.attr("href","#"+n,r.xlink),this},array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),n=null;return e&amp;&amp;(n=e.plot(t)),null==t?n:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&amp;&amp;"textPath"==this.node.firstChild.nodeName)return r.adopt(this.node.firstChild)}}}),r.Nested=r.invent({create:function(){this.constructor.call(this,r.create("svg")),this.style("overflow","visible")},inherit:r.Container,construct:{nested:function(){return this.put(new r.Nested)}}}),r.A=r.invent({create:"a",inherit:r.Container,extend:{to:function(t){return this.attr("href",t,r.xlink)},show:function(t){return this.attr("show",t,r.xlink)},target:function(t){return this.attr("target",t)}},construct:{link:function(t){return this.put(new r.A).to(t)}}}),r.extend(r.Element,{linkTo:function(t){var e=new r.A;return"function"===typeof t?t.call(e,e):e.to(t),this.parent().put(e).put(this)}}),r.Marker=r.invent({create:"marker",inherit:r.Container,extend:{width:function(t){return this.attr("markerWidth",t)},height:function(t){return this.attr("markerHeight",t)},ref:function(t,e){return this.attr("refX",t).attr("refY",e)},update:function(t){return this.clear(),"function"===typeof t&amp;&amp;t.call(this,this),this},toString:function(){return"url(#"+this.id()+")"}},construct:{marker:function(t,e,n){return this.defs().marker(t,e,n)}}}),r.extend(r.Defs,{marker:function(t,e,n){return this.put(new r.Marker).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}}),r.extend(r.Line,r.Polyline,r.Polygon,r.Path,{marker:function(t,e,n,i){var s=["marker"];return"all"!=t&amp;&amp;s.push(t),s=s.join("-"),t=arguments[1]instanceof r.Marker?arguments[1]:this.doc().marker(e,n,i),this.attr(s,t)}});var u={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function l(t,e,n,i){return n+i.replace(r.regex.dots," .")}function c(t){for(var e=t.slice(0),n=e.length;n--;)Array.isArray(e[n])&amp;&amp;(e[n]=c(e[n]));return e}function f(t,e){return t instanceof e}function d(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}function p(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function m(t){return t.charAt(0).toUpperCase()+t.slice(1)}function x(t){return 4==t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function v(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function y(t,e,n){if(null==e||null==n){var i=t.bbox();null==e?e=i.width/i.height*n:null==n&amp;&amp;(n=i.height/i.width*e)}return{width:e,height:n}}function g(t,e,n){return{x:e*t.a+n*t.c+0,y:e*t.b+n*t.d+0}}function w(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function b(t){return t instanceof r.Matrix||(t=new r.Matrix(t)),t}function C(t,e){t.cx=null==t.cx?e.bbox().cx:t.cx,t.cy=null==t.cy?e.bbox().cy:t.cy}function k(t){for(var e=0,n=t.length,i="";e&lt;n;e++)i+=t[e][0],null!=t[e][1]&amp;&amp;(i+=t[e][1],null!=t[e][2]&amp;&amp;(i+=" ",i+=t[e][2],null!=t[e][3]&amp;&amp;(i+=" ",i+=t[e][3],i+=" ",i+=t[e][4],null!=t[e][5]&amp;&amp;(i+=" ",i+=t[e][5],i+=" ",i+=t[e][6],null!=t[e][7]&amp;&amp;(i+=" ",i+=t[e][7])))));return i+" "}function N(e){for(var n=e.childNodes.length-1;n&gt;=0;n--)e.childNodes[n]instanceof t.SVGElement&amp;&amp;N(e.childNodes[n]);return r.adopt(e).id(r.eid(e.nodeName))}function P(t){return null==t.x&amp;&amp;(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function S(t){var e=(t||"").toString().match(r.regex.reference);if(e)return e[1]}function A(t){return Math.abs(t)&gt;1e-37?t:0}["fill","stroke"].forEach((function(t){var e,n={};n[t]=function(n){if("undefined"===typeof n)return this;if("string"===typeof n||r.Color.isRgb(n)||n&amp;&amp;"function"===typeof n.fill)this.attr(t,n);else for(e=u[t].length-1;e&gt;=0;e--)null!=n[u[t][e]]&amp;&amp;this.attr(u.prefix(t,u[t][e]),n[u[t][e]]);return this},r.extend(r.Element,r.FX,n)})),r.extend(r.Element,r.FX,{rotate:function(t,e,n){return this.transform({rotation:t,cx:e,cy:n})},skew:function(t,e,n,i){return 1==arguments.length||3==arguments.length?this.transform({skew:t,cx:e,cy:n}):this.transform({skewX:t,skewY:e,cx:n,cy:i})},scale:function(t,e,n,i){return 1==arguments.length||3==arguments.length?this.transform({scale:t,cx:e,cy:n}):this.transform({scaleX:t,scaleY:e,cx:n,cy:i})},translate:function(t,e){return this.transform({x:t,y:e})},flip:function(t,e){return e="number"===typeof t?t:e,this.transform({flip:t||"both",offset:e})},matrix:function(t){return this.attr("transform",new r.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new r.Number(t).plus(this instanceof r.FX?0:this.x()),!0)},dy:function(t){return this.y(new r.Number(t).plus(this instanceof r.FX?0:this.y()),!0)},dmove:function(t,e){return this.dx(t).dy(e)}}),r.extend(r.Rect,r.Ellipse,r.Circle,r.Gradient,r.FX,{radius:function(t,e){var n=(this._target||this).type;return"radial"==n||"circle"==n?this.attr("r",new r.Number(t)):this.rx(t).ry(null==e?t:e)}}),r.extend(r.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),r.extend(r.Parent,r.Text,r.Tspan,r.FX,{font:function(t,n){if("object"===Object(e["a"])(t))for(n in t)this.font(n,t[n]);return"leading"==t?this.leading(n):"anchor"==t?this.attr("text-anchor",n):"size"==t||"family"==t||"weight"==t||"stretch"==t||"variant"==t||"style"==t?this.attr("font-"+t,n):this.attr(t,n)}}),r.Set=r.invent({create:function(t){t instanceof r.Set?this.members=t.members.slice():Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){var t,e,n=[].slice.call(arguments);for(t=0,e=n.length;t&lt;e;t++)this.members.push(n[t]);return this},remove:function(t){var e=this.index(t);return e&gt;-1&amp;&amp;this.members.splice(e,1),this},each:function(t){for(var e=0,n=this.members.length;e&lt;n;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)&gt;=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members},bbox:function(){if(0==this.members.length)return new r.RBox;var t=this.members[0].rbox(this.members[0].doc());return this.each((function(){t=t.merge(this.rbox(this.doc()))})),t}},construct:{set:function(t){return new r.Set(t)}}}),r.FX.Set=r.invent({create:function(t){this.set=t}}),r.Set.inherit=function(){var t=[];for(var e in r.Shape.prototype)"function"===typeof r.Shape.prototype[e]&amp;&amp;"function"!==typeof r.Set.prototype[e]&amp;&amp;t.push(e);for(var e in t.forEach((function(t){r.Set.prototype[t]=function(){for(var e=0,n=this.members.length;e&lt;n;e++)this.members[e]&amp;&amp;"function"===typeof this.members[e][t]&amp;&amp;this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new r.FX.Set(this)):this}})),t=[],r.FX.prototype)"function"===typeof r.FX.prototype[e]&amp;&amp;"function"!==typeof r.FX.Set.prototype[e]&amp;&amp;t.push(e);t.forEach((function(t){r.FX.Set.prototype[t]=function(){for(var e=0,n=this.set.members.length;e&lt;n;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}}))},r.extend(r.Element,{data:function(t,n,i){if("object"===Object(e["a"])(t))for(n in t)this.data(n,t[n]);else if(arguments.length&lt;2)try{return JSON.parse(this.attr("data-"+t))}catch(r){return this.attr("data-"+t)}else this.attr("data-"+t,null===n?null:!0===i||"string"===typeof n||"number"===typeof n?n:JSON.stringify(n));return this}}),r.extend(r.Element,{remember:function(t,n){if("object"===Object(e["a"])(arguments[0]))for(var n in t)this.remember(n,t[n]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=n}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t&gt;=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),r.get=function(t){var e=n.getElementById(S(t)||t);return r.adopt(e)},r.select=function(t,e){return new r.Set(r.utils.map((e||n).querySelectorAll(t),(function(t){return r.adopt(t)})))},r.extend(r.Parent,{select:function(t){return r.select(t,this.node)}});var M="abcdef".split("");if("function"!==typeof t.CustomEvent){var _=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=n.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i};_.prototype=t.Event.prototype,r.CustomEvent=_}else r.CustomEvent=t.CustomEvent;return function(e){for(var n=0,i=["moz","webkit"],r=0;r&lt;i.length&amp;&amp;!t.requestAnimationFrame;++r)e.requestAnimationFrame=e[i[r]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[i[r]+"CancelAnimationFrame"]||e[i[r]+"CancelRequestAnimationFrame"];e.requestAnimationFrame=e.requestAnimationFrame||function(t){var i=(new Date).getTime(),r=Math.max(0,16-(i-n)),s=e.setTimeout((function(){t(i+r)}),r);return n=i+r,s},e.cancelAnimationFrame=e.cancelAnimationFrame||e.clearTimeout}(t),r}))}.call(this,n("dd40")(t))},dd40:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},dea95:function(t,e,n){"use strict";n.r(e);n("7514");for(var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"consultation-table-wrap"},[e("van-nav-bar",{attrs:{fixed:"",title:t.$route.query.webtitle||t.$route.meta.title},on:{"click-left":function(e){return t.$router.go(-1)}}},[e("van-icon",{attrs:{slot:"left",name:"arrow-left",color:"#333",size:"16"},slot:"left"})],1),e("div",{staticClass:"tab-wrap"},[e("div",{staticClass:"tab-item",on:{click:function(e){t.show=!0}}},[t._v("\n\t\t\tæŸ¥è¯¢å¹´ä»½"),e("i",{staticClass:"icon iconfont icon-sort-down"})]),e("div",{staticClass:"tab-item",on:{click:function(e){t.confirmShow=!0}}},[t._v("\n\t\t\tæŸ¥è¯¢æ¡ä»¶"),e("i",{staticClass:"icon iconfont icon-sort-down"})])]),e("div",{ref:"tablewrap",staticClass:"table-wrap",style:{overflowY:t.confirmShow?"hidden":"auto"}},[e("div",{staticClass:"label-qs clearfix"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.checkboxSel,expression:"checkboxSel"}],attrs:{id:"checkBoxsel",type:"checkbox"},domProps:{checked:Array.isArray(t.checkboxSel)?t._i(t.checkboxSel,null)&gt;-1:t.checkboxSel},on:{change:function(e){var n=t.checkboxSel,i=e.target,r=!!i.checked;if(Array.isArray(n)){var s=null,o=t._i(n,s);i.checked?o&lt;0&amp;&amp;(t.checkboxSel=n.concat([s])):o&gt;-1&amp;&amp;(t.checkboxSel=n.slice(0,o).concat(n.slice(o+1)))}else t.checkboxSel=r}}}),e("label",{attrs:{for:"checkBoxsel"}},[t._v("ä»…æ˜¾ç¤ºå‡ºçŽ°çš„æœŸæ•°")]),e("span",{staticClass:"to-notice",on:{click:function(e){return t.$router.push("help")}}},[t._v("?")])]),e("table",{attrs:{id:"tableSvg"}},[e("tr",{staticStyle:{"line-height":"28px"}},t._l(t.data.rows,(function(n){return e("th",{key:n.prop,domProps:{innerHTML:t._s(n.label)}})})),0),t._l(t.filterData,(function(n,i){return e("tr",{key:i},t._l(t.data.rows,(function(r){return e("td",{key:r.prop+i,class:{red:"å¤§"==n[r.prop]||"é‡Ž"==n[r.prop]}},[e("div",{class:{redcolor:"yearAndTerm"!=r.prop&amp;&amp;n[r.prop]&amp;&amp;1==n[r.prop].right,blue:t.getBlue(n[r.prop]),green:t.getGreen(n[r.prop])},domProps:{innerHTML:t._s(n[r.prop]?"yearAndTerm"==r.prop?n[r.prop]:n[r.prop].value&amp;&amp;3==t.textIndex?n[r.prop].value.substring(0,1):n[r.prop].value:"")}})])})),0)}))],2),e("div",{attrs:{id:"chart_svg"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.confirmShow,expression:"confirmShow"}],staticClass:"sel-type",style:{height:"100vh"}},[e("div",{staticClass:"sel-type-body"},[e("div",{staticClass:"left-type"},t._l(t.typeList,(function(n,i){return e("div",{key:i,class:{active:i==t.typeIndex},on:{click:function(e){return t.changeTypeIndex(i)}}},[t._v(t._s(n)),e("i",{class:["icon","iconfont","icon-caret-right",{active:i==t.typeIndex}]})])})),0),e("div",{staticClass:"right-sel"},t._l(t.itemList[t.typeIndex],(function(n,i){return e("div",{key:i,class:{active:!!t.itemIndex.find((function(t){return t==n}))},on:{click:function(e){return t.changeItemIndex(n)}}},[t._v(t._s(n)),t.itemIndex.find((function(t){return t==n}))?e("i",{staticClass:"icon iconfont icon-check"}):t._e()])})),0)]),e("div",{staticClass:"btn-wrap"},[e("div",{on:{click:function(e){t.confirmShow=!1}}},[t._v("å–æ¶ˆ")]),e("div",{staticClass:"active",on:{click:t.init}},[t._v("ç¡®å®š")])])])]),e("van-popup",{attrs:{position:"bottom"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("van-picker",{attrs:{"show-toolbar":"",columns:t.columns,title:"é€‰æ‹©å¹´ä»½"},on:{confirm:t.onChange,cancel:function(e){t.show=!1}}})],1)],1)},r=[],s=(n("a481"),n("6c7b"),n("ac6a"),n("7618")),o=n("6bfd"),a=[],h=1;h&lt;50;h++)h&lt;10?a.push("0"+h):a.push(""+h);n("ca84");var u={data:function(){return{typeIndex:0,typeIndex1:0,typeList:["æ•°å­—","ç”Ÿè‚–","äº”è¡Œ","æ³¢è‰²","å®¶é‡Ž","å°¾æ•°"],itemIndex:[],itemIndex1:[],itemList:[a,["é¼&nbsp;","ç‰›","è™Ž","å…”","é¾™","è›‡","é©¬","ç¾Š","çŒ´","é¸¡","ç‹—","çŒª"],["é‡‘","æœ¨","æ°´","ç«","åœŸ"],["çº¢æ³¢","è“æ³¢","ç»¿æ³¢"],["å®¶ç¦½","é‡Žå…½"],["0å°¾","1å°¾","2å°¾","3å°¾","4å°¾","5å°¾","6å°¾","7å°¾","8å°¾","9å°¾"]],textIndex:0,data:{rols:[],rows:[]},confirmShow:!1,height:0,year:(new Date).getFullYear(),checkboxSel:!1,init1:!0,columns:[],show:!1}},watch:{confirmShow:function(t){t&amp;&amp;(this.$refs.tablewrap.scrollTop=0)}},computed:{filterData:function(){var t=this;this.$nextTick((function(){document.getElementById("chart_svg").innerHTML="",(0==t.typeIndex1&amp;&amp;t.itemIndex.length&lt;=1||t.init1)&amp;&amp;t.$nextTick((function(){t.height=document.getElementById("tableSvg").offsetHeight,t.svgTable()}))}));var e=[];return e=this.checkboxSel?this.data.rols.filter((function(t){var e=!1;for(var n in t)"object"===Object(s["a"])(t[n])&amp;&amp;1==t[n].right&amp;&amp;(e=!0);return e})):this.data.rols,e}},methods:{init:function(t){var e=this,n="";if(5!=this.typeIndex1)n=this.itemIndex.join(",");else{var i=this.itemIndex.map((function(t){var e="0"+parseInt(t);return e}));n=i.join(",")}var r={year:this.year,queryType:this.typeIndex1+1,value:n};Object(o["a"])({url:"query/doQuery",params:r}).then((function(n){1!=t&amp;&amp;(e.init1=!1),e.data=n.data,e.confirmShow=!1,e.textIndex=e.typeIndex,e.typeIndex1=e.typeIndex,e.itemIndex1=e.itemIndex}),(function(t){}))},getBlue:function(t){if("string"===typeof t)return!1;if(0==this.textIndex||1==this.textIndex){var e=!1;return this.itemIndex1.forEach((function(n,i){if(n==t.value&amp;&amp;1==i)return e=!0})),e}return!1},getGreen:function(t){if("string"===typeof t)return!1;if(0==this.textIndex||1==this.textIndex){var e=!1;return this.itemIndex1.forEach((function(n,i){if(n==t.value&amp;&amp;2==i)return e=!0})),e}return!1},svgTable:function(){for(var t=document.getElementById("tableSvg"),e=SVG("chart_svg").size(t.offsetWidth,t.offsetHeight),n=[],i=t.getElementsByClassName("redcolor"),r=0;r&lt;i.length;r++){var s=[];s.push(this.getPosition(i[r],"left")),s.push(this.getPosition(i[r],"top")),n.push(s)}e.polyline(n).fill("none").stroke({width:1,color:"#ff0000"})},getPosition:function(t,e){e=e.toLowerCase().replace("left","Left").replace("top","Top");var n="offset"+e,i="Left"==e?"offsetWidth":"offsetHeight",r="offsetTop"==n?t[n]-76:t[n],s=t.offsetParent;"table#table.table"==s&amp;&amp;(s=null);while(null!==s)r+=s[n],s=s.offsetParent;return r+t[i]/2},changeTypeIndex:function(t){this.typeIndex!=t&amp;&amp;(this.typeIndex=t)},changeItemIndex:function(t){if(this.typeIndex1!=this.typeIndex&amp;&amp;(this.typeIndex1=this.typeIndex,this.itemIndex=[]),0==this.typeIndex||1==this.typeIndex){var e=this.itemIndex.indexOf(t);e&lt;0&amp;&amp;this.itemIndex.length&lt;3?this.itemIndex.push(t):e&lt;0&amp;&amp;3==this.itemIndex.length?this.$toast({message:"æœ€å¤šé€‰æ‹©ä¸‰ä¸ªé€‰é¡¹",position:"center"}):this.itemIndex.splice(e,1)}else this.itemIndex=[t]},handleConfirm:function(t){this.year=t,this.init()},onChange:function(t){this.show=!1,t!=this.year&amp;&amp;(this.year=t,this.init())},getYearList:function(){var t=this;Object(o["a"])({url:"lottery/listYear"}).then((function(e){t.columns=e.data.list}))}},created:function(){this.init(1),this.getYearList()}},l=u,c=(n("968e"),n("2877")),f=Object(c["a"])(l,i,r,!1,null,null,null);e["default"]=f.exports}}]);</pre></body></html>