(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{124:function(t,e){t.exports={defaults:function t(e,i){if(!e||"function"==typeof e)return i;var r={};for(var n in i)r[n]=i[n];for(n in e)e[n]&&("object"==typeof r[n]?r[n]=t(r[n],e[n]):r[n]=e[n]);return r},inherits:function(t,e){if("function"==typeof Object.create)t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});else{t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}}},126:function(t,e,i){var r=i(179),n=r.drawLine,s=r.checkLineIntersection;function o(t,e,i){this.chart=t,this.group=this.chart.paper.set(),this.symbol=i,this.connectedTo=[],this.symbolType=e.symbolType,this.flowstate=e.flowstate||"future",this.lineStyle=e.lineStyle||{},this.key=e.key||"",this.next_direction=e.next&&e.direction_next?e.direction_next:void 0,this.text=this.chart.paper.text(0,0,e.text),e.key&&(this.text.node.id=e.key+"t"),this.text.node.setAttribute("class",this.getAttr("class")+"t"),this.text.attr({"text-anchor":"start",x:this.getAttr("text-margin"),fill:this.getAttr("font-color"),"font-size":this.getAttr("font-size")});var r=this.getAttr("font"),n=this.getAttr("font-family"),s=this.getAttr("font-weight");r&&this.text.attr({font:r}),n&&this.text.attr({"font-family":n}),s&&this.text.attr({"font-weight":s}),e.link&&this.text.attr("href",e.link),e.function&&(this.text.attr({cursor:"pointer"}),this.text.node.addEventListener("click",(function(t){window[e.function](t,e)}),!1)),e.target&&this.text.attr("target",e.target);var o=this.getAttr("maxWidth");if(o){for(var a=e.text.split(" "),h="",l=0,c=a.length;lo?h+="\n"+u:h+=" "+u}this.text.attr("text",h.substring(1))}if(this.group.push(this.text),i){var f=this.getAttr("text-margin");i.attr({fill:this.getAttr("fill"),stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),width:this.text.getBBox().width+2*f,height:this.text.getBBox().height+2*f}),i.node.setAttribute("class",this.getAttr("class")),e.link&&i.attr("href",e.link),e.target&&i.attr("target",e.target),e.function&&(i.node.addEventListener("click",(function(t){window[e.function](t,e)}),!1),i.attr({cursor:"pointer"})),e.key&&(i.node.id=e.key),this.group.push(i),i.insertBefore(this.text),this.text.attr({y:i.getBBox().height/2}),this.initialize()}}o.prototype.getAttr=function(t){if(this.chart){var e,i=this.chart.options?this.chart.options[t]:void 0,r=this.chart.options.symbols?this.chart.options.symbols[this.symbolType][t]:void 0;return this.chart.options.flowstate&&this.chart.options.flowstate[this.flowstate]&&(e=this.chart.options.flowstate[this.flowstate][t]),e||r||i}},o.prototype.initialize=function(){this.group.transform("t"+this.getAttr("line-width")+","+this.getAttr("line-width")),this.width=this.group.getBBox().width,this.height=this.group.getBBox().height},o.prototype.getCenter=function(){return{x:this.getX()+this.width/2,y:this.getY()+this.height/2}},o.prototype.getX=function(){return this.group.getBBox().x},o.prototype.getY=function(){return this.group.getBBox().y},o.prototype.shiftX=function(t){this.group.transform("t"+(this.getX()+t)+","+this.getY())},o.prototype.setX=function(t){this.group.transform("t"+t+","+this.getY())},o.prototype.shiftY=function(t){this.group.transform("t"+this.getX()+","+(this.getY()+t))},o.prototype.setY=function(t){this.group.transform("t"+this.getX()+","+t)},o.prototype.getTop=function(){var t=this.getY();return{x:this.getX()+this.width/2,y:t}},o.prototype.getBottom=function(){var t=this.getY()+this.height;return{x:this.getX()+this.width/2,y:t}},o.prototype.getLeft=function(){var t=this.getY()+this.group.getBBox().height/2;return{x:this.getX(),y:t}},o.prototype.getRight=function(){var t=this.getY()+this.group.getBBox().height/2;return{x:this.getX()+this.group.getBBox().width,y:t}},o.prototype.render=function(){if(this.next){var t=this,e=this.getAttr("line-length");if("right"===this.next_direction){var i=this.getRight();this.next.isPositioned||(this.next.setY(i.y-this.next.height/2),this.next.shiftX(this.group.getBBox().x+this.width+e),function i(){for(var r,n=!1,s=0,o=t.chart.symbols.length;st.next.getCenter().y&&a<=t.next.width/2){n=!0;break}}if(n){if("end"===t.next.symbolType)return;t.next.setX(r.getX()+r.width+e),i()}}(),this.next.isPositioned=!0,this.next.render())}else if("left"===this.next_direction){var r=this.getLeft();this.next.isPositioned||(this.next.setY(r.y-this.next.height/2),this.next.shiftX(-(this.group.getBBox().x+this.width+e)),function i(){for(var r,n=!1,s=0,o=t.chart.symbols.length;st.next.getCenter().y&&a<=t.next.width/2){n=!0;break}}if(n){if("end"===t.next.symbolType)return;t.next.setX(r.getX()+r.width+e),i()}}(),this.next.isPositioned=!0,this.next.render())}else{var n=this.getBottom();this.next.isPositioned||(this.next.shiftY(this.getY()+this.height+e),this.next.setX(n.x-this.next.width/2),this.next.isPositioned=!0,this.next.render())}}},o.prototype.renderLines=function(){this.next&&(this.next_direction?this.drawLineTo(this.next,this.getAttr("arrow-text")||"",this.next_direction):this.drawLineTo(this.next,this.getAttr("arrow-text")||""))},o.prototype.drawLineTo=function(t,e,i){this.connectedTo.indexOf(t)<0&&this.connectedTo.push(t);var r,o=this.getCenter().x,a=this.getCenter().y,h=this.getRight(),l=this.getBottom(),c=this.getTop(),u=this.getLeft(),f=t.getCenter().x,p=t.getCenter().y,d=t.getTop(),g=t.getRight(),x=t.getLeft(),y=o===f,m=a===p,v=ap||this===t,_=o>f,w=ok&&(k=d.x);else r=this.leftEnd&&b?n(this.chart,l,[{x:l.x,y:l.y+B/2},{x:l.x+(l.x-d.x)/2,y:l.y+B/2},{x:l.x+(l.x-d.x)/2,y:d.y-B/2},{x:d.x,y:d.y-B/2},{x:d.x,y:d.y}],e):n(this.chart,l,[{x:l.x,y:d.y-B/2},{x:d.x,y:d.y-B/2},{x:d.x,y:d.y}],e),this.bottomStart=!0,t.topEnd=!0,k=l.x+(l.x-d.x)/2;else r=n(this.chart,h,[{x:h.x+B/2,y:h.y},{x:h.x+B/2,y:d.y-B/2},{x:d.x,y:d.y-B/2},{x:d.x,y:d.y}],e),this.rightStart=!0,t.topEnd=!0,k=h.x+B/2;else r=n(this.chart,h,[{x:h.x+B/2,y:h.y},{x:h.x+B/2,y:d.y-B/2},{x:d.x,y:d.y-B/2},{x:d.x,y:d.y}],e),this.rightStart=!0,t.topEnd=!0,k=h.x+B/2;else r=n(this.chart,u,g,e),this.leftStart=!0,t.rightEnd=!0,k=g.x;else r=n(this.chart,h,x,e),this.rightStart=!0,t.leftEnd=!0,k=x.x;else r=n(this.chart,l,d,e),this.bottomStart=!0,t.topEnd=!0,k=l.x;if(this.lineStyle[t.key]&&r&&r.attr(this.lineStyle[t.key]),r){for(var A=0,T=this.chart.lines.length;AV?(Y=["L",G.x+2*C,D],M.splice(R+1,0,Y),Y=["C",G.x+2*C,D,G.x,D-4*C,G.x-2*C,D],M.splice(R+2,0,Y),r.attr("path",M)):(Y=["L",G.x-2*C,D],M.splice(R+1,0,Y),Y=["C",G.x-2*C,D,G.x,D-4*C,G.x+2*C,D],M.splice(R+2,0,Y),r.attr("path",M)):D>W?(Y=["L",q,G.y+2*C],M.splice(R+1,0,Y),Y=["C",q,G.y+2*C,q+4*C,G.y,q,G.y-2*C],M.splice(R+2,0,Y),r.attr("path",M)):(Y=["L",q,G.y-2*C],M.splice(R+1,0,Y),Y=["C",q,G.y-2*C,q+4*C,G.y,q,G.y+2*C],M.splice(R+2,0,Y),r.attr("path",M)),R+=2,2}}this.chart.lines.push(r),(void 0===this.chart.minXFromSymbols||this.chart.minXFromSymbols>u.x)&&(this.chart.minXFromSymbols=u.x)}(!this.chart.maxXFromLine||this.chart.maxXFromLine&&k>this.chart.maxXFromLine)&&(this.chart.maxXFromLine=k)},t.exports=o},179:function(t,e){t.exports={drawPath:function(t,e,i){var r,n,s="M{0},{1}";for(r=2,n=2*i.length+2;rd.y&&(x-=2*t.options["text-margin"])),f.attr({"text-anchor":"start","font-size":t.options["font-size"],fill:t.options["font-color"],x:g,y:x}),l&&f.attr({font:l}),c&&f.attr({"font-family":c}),u&&f.attr({"font-weight":u})}return h},checkLineIntersection:function(t,e,i,r,n,s,o,a){var h,l,c,u,f={x:null,y:null,onLine1:!1,onLine2:!1};return 0===(h=(a-s)*(i-t)-(o-n)*(r-e))?f:(u=(i-t)*(l=e-s)-(r-e)*(c=t-n),l=((o-n)*l-(a-s)*c)/h,c=u/h,f.x=t+l*(i-t),f.y=e+l*(r-e),l>0&&l<1&&(f.onLine1=!0),c>0&&c<1&&(f.onLine2=!0),f)}}},191:function(t,e,i){var r=i(275),n=i(278),s=i(279),o=i(280),a=i(281),h=i(282),l=i(192),c=i(193);t.exports=function(t){t=(t=t||"").trim();for(var e={symbols:{},start:null,drawSVG:function(t,e){var i=this;this.diagram&&this.diagram.clean();var u=new r(t,e);this.diagram=u;var f={};!function t(e,r,p){var d=function(t){if(f[t.key])return f[t.key];switch(t.symbolType){case"start":f[t.key]=new n(u,t);break;case"end":f[t.key]=new s(u,t);break;case"operation":f[t.key]=new o(u,t);break;case"inputoutput":f[t.key]=new a(u,t);break;case"subroutine":f[t.key]=new h(u,t);break;case"condition":f[t.key]=new l(u,t);break;case"parallel":f[t.key]=new c(u,t);break;default:return new Error("Wrong symbol type!")}return f[t.key]}(e);return i.start===e?u.startWith(d):r&&p&&!r.pathOk&&(r instanceof l?(p.yes===e&&r.yes(d),p.no===e&&r.no(d)):r instanceof c?(p.path1===e&&r.path1(d),p.path2===e&&r.path2(d),p.path3===e&&r.path3(d)):r.then(d)),d.pathOk?d:(d instanceof l?(e.yes&&t(e.yes,d,e),e.no&&t(e.no,d,e)):d instanceof c?(e.path1&&t(e.path1,d,e),e.path2&&t(e.path2,d,e),e.path3&&t(e.path3,d,e)):e.next&&t(e.next,d,e),d)}(this.start),u.render()},clean:function(){this.diagram.clean()}},i=[],u=0,f=1,p=t.length;f")<0&&y.indexOf("=>")<0&&y.indexOf("@>")<0?(i[g-1]+="\n"+y,i.splice(g,1),x--):g++}function m(t){var e=t.indexOf("(")+1,i=t.indexOf(")");return e>=0&&i>=0?t.substring(e,i):"{}"}function v(t){var e=t.indexOf("(")+1,i=t.indexOf(")");return e>=0&&i>=0?t.substring(e,i):""}function b(t){var i=t.indexOf("(")+1,r=t.indexOf(")");return i>=0&&r>=0?e.symbols[t.substring(0,i-1)]:e.symbols[t]}function _(t){var e="next",i=t.indexOf("(")+1,r=t.indexOf(")");return i>=0&&r>=0&&(e=O.substring(i,r)).indexOf(",")<0&&"yes"!==e&&"no"!==e&&(e="next, "+e),e}for(;i.length>0;){var w=i.splice(0,1)[0].trim();if(w.indexOf("=>")>=0){var k,B=w.split("=>"),C={key:B[0].replace(/\(.*\)/,""),symbolType:B[1],text:null,link:null,target:null,flowstate:null,function:null,lineStyle:{},params:{}},S=B[0].match(/\((.*)\)/);if(S&&S.length>1)for(var A=S[1].split(","),T=0;T=0&&(k=C.symbolType.split(": "),C.symbolType=k.shift(),C.text=k.join(": ")),C.text&&C.text.indexOf(":$")>=0?(k=C.text.split(":$"),C.text=k.shift(),C.function=k.join(":$")):C.symbolType.indexOf(":$")>=0?(k=C.symbolType.split(":$"),C.symbolType=k.shift(),C.function=k.join(":$")):C.text&&C.text.indexOf(":>")>=0?(k=C.text.split(":>"),C.text=k.shift(),C.link=k.join(":>")):C.symbolType.indexOf(":>")>=0&&(k=C.symbolType.split(":>"),C.symbolType=k.shift(),C.link=k.join(":>")),C.symbolType.indexOf("\n")>=0&&(C.symbolType=C.symbolType.split("\n")[0]),C.link){var M=C.link.indexOf("[")+1,E=C.link.indexOf("]");M>=0&&E>=0&&(C.target=C.link.substring(M,E),C.link=C.link.substring(0,M-1))}if(C.text&&C.text.indexOf("|")>=0){var P=C.text.split("|");C.flowstate=P.pop().trim(),C.text=P.join("|")}e.symbols[C.key]=C}else if(w.indexOf("->")>=0)for(var z=w.split("->"),N=(T=0,z.length);T=0){var I=R.split(",");R=I[0],j=I[1].trim()}if(e.start||(e.start=X),T+1")>=0){var q=w.split("@>");for(T=0,N=q.length;Tr.right_symbol.getCenter().y&&a<=r.right_symbol.width/2){n=!0;break}}if(n){if("end"===r.right_symbol.symbolType)return;r.right_symbol.setX(i.getX()+i.width+t),e()}}(),this.right_symbol.isPositioned=!0,this.right_symbol.render()}}},o.prototype.renderLines=function(){this.yes_symbol&&this.drawLineTo(this.yes_symbol,this.getAttr("yes-text"),this.yes_direction),this.no_symbol&&this.drawLineTo(this.no_symbol,this.getAttr("no-text"),this.no_direction)},t.exports=o},193:function(t,e,i){var r=i(126);function n(t,e){var i=t.paper.rect(0,0,0,0);e=e||{},r.call(this,t,e,i),this.textMargin=this.getAttr("text-margin"),this.path1_direction="bottom",this.path2_direction="right",this.path3_direction="top",this.params=e.params,"path1"===e.direction_next&&!e[e.direction_next]&&e.next&&(e[e.direction_next]=e.next),"path2"===e.direction_next&&!e[e.direction_next]&&e.next&&(e[e.direction_next]=e.next),"path3"===e.direction_next&&!e[e.direction_next]&&e.next&&(e[e.direction_next]=e.next),e.path1&&e.direction_path1&&e.path2&&!e.direction_path2&&e.path3&&!e.direction_path3?"right"===e.direction_path1?(this.path2_direction="bottom",this.path1_direction="right",this.path3_direction="top"):"top"===e.direction_path1?(this.path2_direction="right",this.path1_direction="top",this.path3_direction="bottom"):"left"===e.direction_path1?(this.path2_direction="right",this.path1_direction="left",this.path3_direction="bottom"):(this.path2_direction="right",this.path1_direction="bottom",this.path3_direction="top"):e.path1&&!e.direction_path1&&e.path2&&e.direction_path2&&e.path3&&!e.direction_path3?"right"===e.direction_path2?(this.path1_direction="bottom",this.path2_direction="right",this.path3_direction="top"):"left"===e.direction_path2?(this.path1_direction="bottom",this.path2_direction="left",this.path3_direction="right"):(this.path1_direction="right",this.path2_direction="bottom",this.path3_direction="top"):e.path1&&!e.direction_path1&&e.path2&&!e.direction_path2&&e.path3&&e.direction_path3?"right"===e.direction_path2?(this.path1_direction="bottom",this.path2_direction="top",this.path3_direction="right"):"left"===e.direction_path2?(this.path1_direction="bottom",this.path2_direction="right",this.path3_direction="left"):(this.path1_direction="right",this.path2_direction="bottom",this.path3_direction="top"):(this.path1_direction=e.direction_path1,this.path2_direction=e.direction_path2,this.path3_direction=e.direction_path3),this.path1_direction=this.path1_direction||"bottom",this.path2_direction=this.path2_direction||"right",this.path3_direction=this.path3_direction||"top",this.initialize()}(0,i(124).inherits)(n,r),n.prototype.render=function(){this.path1_direction&&(this[this.path1_direction+"_symbol"]=this.path1_symbol),this.path2_direction&&(this[this.path2_direction+"_symbol"]=this.path2_symbol),this.path3_direction&&(this[this.path3_direction+"_symbol"]=this.path3_symbol);var t=this.getAttr("line-length");if(this.bottom_symbol){var e=this.getBottom();this.bottom_symbol.isPositioned||(this.bottom_symbol.shiftY(this.getY()+this.height+t),this.bottom_symbol.setX(e.x-this.bottom_symbol.width/2),this.bottom_symbol.isPositioned=!0,this.bottom_symbol.render())}if(this.top_symbol){var i=this.getTop();this.top_symbol.isPositioned||(this.top_symbol.shiftY(this.getY()-this.top_symbol.height-t),this.top_symbol.setX(i.x+this.top_symbol.width),this.top_symbol.isPositioned=!0,this.top_symbol.render())}var r=this;if(this.left_symbol){var n=this.getLeft();this.left_symbol.isPositioned||(this.left_symbol.setY(n.y-this.left_symbol.height/2),this.left_symbol.shiftX(-(this.group.getBBox().x+this.width+t)),function e(){for(var i,n=!1,s=0,o=r.chart.symbols.length;sr.left_symbol.getCenter().y&&a<=r.left_symbol.width/2){n=!0;break}}if(n){if("end"===r.left_symbol.symbolType)return;r.left_symbol.setX(i.getX()+i.width+t),e()}}(),this.left_symbol.isPositioned=!0,this.left_symbol.render())}if(this.right_symbol){var s=this.getRight();this.right_symbol.isPositioned||(this.right_symbol.setY(s.y-this.right_symbol.height/2),this.right_symbol.shiftX(this.group.getBBox().x+this.width+t),function e(){for(var i,n=!1,s=0,o=r.chart.symbols.length;sr.right_symbol.getCenter().y&&a<=r.right_symbol.width/2){n=!0;break}}if(n){if("end"===r.right_symbol.symbolType)return;r.right_symbol.setX(i.getX()+i.width+t),e()}}(),this.right_symbol.isPositioned=!0,this.right_symbol.render())}},n.prototype.renderLines=function(){this.path1_symbol&&this.drawLineTo(this.path1_symbol,"",this.path1_direction),this.path2_symbol&&this.drawLineTo(this.path2_symbol,"",this.path2_direction),this.path3_symbol&&this.drawLineTo(this.path3_symbol,"",this.path3_direction)},t.exports=n},274:function(t,e){Array.prototype.indexOf||(Array.prototype.indexOf=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),i=e.length>>>0;if(0===i)return-1;var r=0;if(arguments.length>0&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!=1/0&&r!=-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r)))),r>=i)return-1;for(var n=r>=0?r:Math.max(i-Math.abs(r),0);n>>0;if(0===i)return-1;var r=i;arguments.length>1&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!=1/0&&r!=-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r))));for(var n=r>=0?Math.min(r,i-1):i-Math.abs(r);n>=0;n--)if(n in e&&e[n]===t)return n;return-1}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})},275:function(t,e,i){var r=i(276),n=i(124).defaults,s=i(277),o=i(192),a=i(193);function h(t,e){e=e||{},this.paper=new r(t),this.options=n(e,s),this.symbols=[],this.lines=[],this.start=null}h.prototype.handle=function(t){this.symbols.indexOf(t)<=-1&&this.symbols.push(t);var e=this;return t instanceof o?(t.yes=function(i){return t.yes_symbol=i,t.no_symbol&&(t.pathOk=!0),e.handle(i)},t.no=function(i){return t.no_symbol=i,t.yes_symbol&&(t.pathOk=!0),e.handle(i)}):t instanceof a?(t.path1=function(i){return t.path1_symbol=i,t.path2_symbol&&(t.pathOk=!0),e.handle(i)},t.path2=function(i){return t.path2_symbol=i,t.path3_symbol&&(t.pathOk=!0),e.handle(i)},t.path3=function(i){return t.path3_symbol=i,t.path1_symbol&&(t.pathOk=!0),e.handle(i)}):t.then=function(i){return t.next=i,t.pathOk=!0,e.handle(i)},t},h.prototype.startWith=function(t){return this.start=t,this.handle(t)},h.prototype.render=function(){var t,e,i,r,n=0,s=0,o=0,a=0,h=0,l=0,c=0,u=0;for(o=0,a=this.symbols.length;on&&(n=t.width),t.height>s&&(s=t.height);for(o=0,a=this.symbols.length;oh&&(h=i),(r=t.getY()+t.height)>l&&(l=r);for(o=0,a=this.lines.length;oh&&(h=f),p>l&&(l=p)}var d=this.options.scale,g=this.options["line-width"];this.minXFromSymbols=1e3&&delete o[a.shift()],a.push(s),o[s]=t[S](e,n),i?i(o[s]):o[s])}}function n(){return this.hex}function s(t,e){for(var i=[],r=0,n=t.length;n-2*!e>r;r+=2){var s=[{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?n-4==r?s[3]={x:+t[0],y:+t[1]}:n-2==r&&(s[2]={x:+t[0],y:+t[1]},s[3]={x:+t[2],y:+t[3]}):s[0]={x:+t[n-2],y:+t[n-1]}:n-4==r?s[3]=s[2]:r||(s[0]={x:+t[r],y:+t[r+1]}),i.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return i}function o(t,e,i,r,n){return t*(t*(-3*e+9*i-9*r+3*n)+6*e-12*i+6*r)-3*e+3*i}function a(t,e,i,r,n,s,a,h,l){null==l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var g=c*u[d]+c,x=o(g,t,i,n,a),y=o(g,e,r,s,h),m=x*x+y*y;p+=f[d]*F.sqrt(m)}return c*p}function h(t,e,i,r,n,s,o,a){if(!(X(t,i)X(n,o)||X(e,r)X(s,a))){var h=(t-i)*(s-a)-(e-r)*(n-o);if(h){var l=((t*r-e*i)*(n-o)-(t-i)*(n*a-s*o))/h,c=((t*r-e*i)*(s-a)-(e-r)*(n*a-s*o))/h,u=+l.toFixed(2),f=+c.toFixed(2);if(!(u<+R(t,i).toFixed(2)||u>+X(t,i).toFixed(2)||u<+R(n,o).toFixed(2)||u>+X(n,o).toFixed(2)||f<+R(e,r).toFixed(2)||f>+X(e,r).toFixed(2)||f<+R(s,a).toFixed(2)||f>+X(s,a).toFixed(2)))return{x:l,y:c}}}}function l(t,i,r){var n=e.bezierBBox(t),s=e.bezierBBox(i);if(!e.isBBoxIntersect(n,s))return r?0:[];for(var o=a.apply(0,t),l=a.apply(0,i),c=X(~~(o/5),1),u=X(~~(l/5),1),f=[],p=[],d={},g=r?0:[],x=0;x=0&&S<=1.001&&A>=0&&A<=1.001&&(r?g++:g.push({x:C.x,y:C.y,t1:R(S,1),t2:R(A,1)}))}}return g}function c(t,i,r){t=e._path2curve(t),i=e._path2curve(i);for(var n,s,o,a,h,c,u,f,p,d,g=r?0:[],x=0,y=t.length;xr)return r;for(;is?i=n:r=n,n=(r-i)/2+i}return n}(t,e);return((f*i+u)*i+c)*i}(t,1/(200*s))}function d(t,e){var i=[],r={};if(this.ms=e,this.times=1,t){for(var n in t)t[w](n)&&(r[Q(n)]=t[n],i.push(Q(n)));i.sort(ht)}this.anim=r,this.top=i[i.length-1],this.percents=i}function g(i,r,n,s,o,a){n=Q(n);var h,l,c,f,d,g,x=i.ms,y={},m={},b={};if(s)for(k=0,B=ie.length;ks*i.top){n=i.percents[k],d=i.percents[k-1]||0,x=x/i.top*(n-d),f=i.percents[k+1],h=i.anim[n];break}s&&r.attr(i.anim[i.percents[k]])}if(h){if(l)l.initstatus=s,l.start=new Date-l.ms*s;else{for(var C in h)if(h[w](C)&&(tt[w](C)||r.paper.customAttributes[w](C)))switch(y[C]=r.attr(C),null==y[C]&&(y[C]=K[C]),m[C]=h[C],tt[C]){case q:b[C]=(m[C]-y[C])/x;break;case"colour":y[C]=e.getRGB(y[C]);var S=e.getRGB(m[C]);b[C]={r:(S.r-y[C].r)/x,g:(S.g-y[C].g)/x,b:(S.b-y[C].b)/x};break;case"path":var T=Pt(y[C],m[C]),L=T[1];for(y[C]=T[0],b[C]=[],k=0,B=y[C].length;k',(dt=gt.firstChild).style.behavior="url(#default#VML)",!dt||"object"!=typeof dt.adj)return e.type=L;gt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=C,e.fn=m=C.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=O.call(e))?!H[w](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||W.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,r,n,s,o){if(null==s){var a=t-r,h=i-n;return a||h?(180+180*F.atan2(-h,-a)/Y+360)%360:0}return e.angle(t,i,s,o)-e.angle(r,n,s,o)},e.rad=function(t){return t%360*Y/180},e.deg=function(t){return Math.round(180*t/Y%360*1e3)/1e3},e.snapTo=function(t,i,r){if(r=e.is(r,"finite")?r:10,e.is(t,V)){for(var n=t.length;n--;)if(j(t[n]-i)<=r)return t[n]}else{var s=i%(t=+t);if(st-r)return i-s+t}return i},e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,(function(t){var e=16*F.random()|0;return("x"==t?e:3&e|8).toString(16)})),e.setWindow=function(i){t("raphael.setWindow",e,k.win,i),k.win=i,k.doc=k.win.document,e._engine.initWin&&e._engine.initWin(k.win)};var xt=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var s=new ActiveXObject("htmlfile");s.write(""),s.close(),i=s.body}catch(t){i=createPopup().document.body}var o=i.createTextRange();xt=r((function(t){try{i.style.color=E(t).replace(n,L);var e=o.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var a=k.doc.createElement("i");a.title="Raphaël Colour Picker",a.style.display="none",k.doc.body.appendChild(a),xt=r((function(t){return a.style.color=t,k.doc.defaultView.getComputedStyle(a,L).getPropertyValue("color")}))}return xt(t)},yt=function(){return"hsb("+[this.h,this.s,this.b]+")"},mt=function(){return"hsl("+[this.h,this.s,this.l]+")"},vt=function(){return this.hex},bt=function(t,i,r){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,i=t.g,t=t.r),null==i&&e.is(t,D)){var n=e.getRGB(t);t=n.r,i=n.g,r=n.b}return(t>1||i>1||r>1)&&(t/=255,i/=255,r/=255),[t,i,r]},_t=function(t,i,r,n){var s={r:t*=255,g:i*=255,b:r*=255,hex:e.rgb(t,i,r),toString:vt};return e.is(n,"finite")&&(s.opacity=n),s};e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=vt,t},e.hsb2rgb=function(t,e,i,r){var n,s,o,a,h;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,r=t.o,t=t.h),a=(h=i*e)*(1-j((t=(t*=360)%360/60)%2-1)),n=s=o=i-h,_t(n+=[h,a,0,0,a,h][t=~~t],s+=[a,h,h,a,0,0][t],o+=[0,0,a,h,h,a][t],r)},e.hsl2rgb=function(t,e,i,r){var n,s,o,a,h;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),a=(h=2*e*(i<.5?i:1-i))*(1-j((t=(t*=360)%360/60)%2-1)),n=s=o=i-h/2,_t(n+=[h,a,0,0,a,h][t=~~t],s+=[a,h,h,a,0,0][t],o+=[0,0,a,h,h,a][t],r)},e.rgb2hsb=function(t,e,i){var r,n;return t=(i=bt(t,e,i))[0],e=i[1],i=i[2],{h:((0==(n=(r=X(t,e,i))-R(t,e,i))?null:r==t?(e-i)/n:r==e?(i-t)/n+2:(t-e)/n+4)+360)%6*60/360,s:0==n?0:n/r,b:r,toString:yt}},e.rgb2hsl=function(t,e,i){var r,n,s,o;return t=(i=bt(t,e,i))[0],e=i[1],i=i[2],r=((n=X(t,e,i))+(s=R(t,e,i)))/2,{h:((0==(o=n-s)?null:n==t?(e-i)/o:n==e?(i-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:mt}},e._path2string=function(){return this.join(",").replace(rt,"$1")},e._preload=function(t,e){var i=k.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,k.doc.body.removeChild(this)},i.onerror=function(){k.doc.body.removeChild(this)},k.doc.body.appendChild(i),i.src=t},e.getRGB=r((function(t){if(!t||(t=E(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:n};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:n};!it[w](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=xt(t));var i,r,s,o,a,h,l=t.match(G);return l?(l[2]&&(s=Z(l[2].substring(5),16),r=Z(l[2].substring(3,5),16),i=Z(l[2].substring(1,3),16)),l[3]&&(s=Z((a=l[3].charAt(3))+a,16),r=Z((a=l[3].charAt(2))+a,16),i=Z((a=l[3].charAt(1))+a,16)),l[4]&&(h=l[4][P](et),i=Q(h[0]),"%"==h[0].slice(-1)&&(i*=2.55),r=Q(h[1]),"%"==h[1].slice(-1)&&(r*=2.55),s=Q(h[2]),"%"==h[2].slice(-1)&&(s*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(o=Q(h[3])),h[3]&&"%"==h[3].slice(-1)&&(o/=100)),l[5]?(h=l[5][P](et),i=Q(h[0]),"%"==h[0].slice(-1)&&(i*=2.55),r=Q(h[1]),"%"==h[1].slice(-1)&&(r*=2.55),s=Q(h[2]),"%"==h[2].slice(-1)&&(s*=2.55),("deg"==h[0].slice(-3)||"°"==h[0].slice(-1))&&(i/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(o=Q(h[3])),h[3]&&"%"==h[3].slice(-1)&&(o/=100),e.hsb2rgb(i,r,s,o)):l[6]?(h=l[6][P](et),i=Q(h[0]),"%"==h[0].slice(-1)&&(i*=2.55),r=Q(h[1]),"%"==h[1].slice(-1)&&(r*=2.55),s=Q(h[2]),"%"==h[2].slice(-1)&&(s*=2.55),("deg"==h[0].slice(-3)||"°"==h[0].slice(-1))&&(i/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(o=Q(h[3])),h[3]&&"%"==h[3].slice(-1)&&(o/=100),e.hsl2rgb(i,r,s,o)):((l={r:i,g:r,b:s,toString:n}).hex="#"+(16777216|s|r<<8|i<<16).toString(16).slice(1),e.is(o,"finite")&&(l.opacity=o),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:n}}),e),e.hsb=r((function(t,i,r){return e.hsb2rgb(t,i,r).hex})),e.hsl=r((function(t,i,r){return e.hsl2rgb(t,i,r).hex})),e.rgb=r((function(t,e,i){function r(t){return t+.5|0}return"#"+(16777216|r(i)|r(e)<<8|r(t)<<16).toString(16).slice(1)})),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=wt(t);if(i.arr)return Bt(i.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[];return e.is(t,V)&&e.is(t[0],V)&&(n=Bt(t)),n.length||E(t).replace(nt,(function(t,e,i){var s=[],o=e.toLowerCase();if(i.replace(ot,(function(t,e){e&&s.push(+e)})),"m"==o&&s.length>2&&(n.push([e][A](s.splice(0,2))),o="l",e="m"==e?"l":"L"),"r"==o)n.push([e][A](s));else for(;s.length>=r[o]&&(n.push([e][A](s.splice(0,r[o]))),r[o]););})),n.toString=e._path2string,i.arr=Bt(n),n},e.parseTransformString=r((function(t){if(!t)return null;var i=[];return e.is(t,V)&&e.is(t[0],V)&&(i=Bt(t)),i.length||E(t).replace(st,(function(t,e,r){var n=[];O.call(e),r.replace(ot,(function(t,e){e&&n.push(+e)})),i.push([e][A](n))})),i.toString=e._path2string,i}));var wt=function(t){var e=wt.ps=wt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var i in e)e[w](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])})),e[t]};e.findDotsAtSegment=function(t,e,i,r,n,s,o,a,h){var l=1-h,c=I(l,3),u=I(l,2),f=h*h,p=f*h,d=c*t+3*u*h*i+3*l*h*h*n+p*o,g=c*e+3*u*h*r+3*l*h*h*s+p*a,x=t+2*h*(i-t)+f*(n-2*i+t),y=e+2*h*(r-e)+f*(s-2*r+e),m=i+2*h*(n-i)+f*(o-2*n+i),v=r+2*h*(s-r)+f*(a-2*s+r),b=l*t+h*i,_=l*e+h*r,w=l*n+h*o,k=l*s+h*a,B=90-180*F.atan2(x-m,y-v)/Y;return(x>m||y=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var r=e.isPointInsideBBox;return r(i,t.x,t.y)||r(i,t.x2,t.y)||r(i,t.x,t.y2)||r(i,t.x2,t.y2)||r(t,i.x,i.y)||r(t,i.x2,i.y)||r(t,i.x,i.y2)||r(t,i.x2,i.y2)||(t.xi.x||i.xt.x)&&(t.yi.y||i.yt.y)},e.pathIntersection=function(t,e){return c(t,e)},e.pathIntersectionNumber=function(t,e){return c(t,e,1)},e.isPointInsidePath=function(t,i,r){var n=e.pathBBox(t);return e.isPointInsideBBox(n,i,r)&&c(t,[["M",i,r],["H",n.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var kt=e.pathBBox=function(t){var e=wt(t);if(e.bbox)return i(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var r,n=0,s=0,o=[],a=[],h=0,l=(t=Pt(t)).length;h1&&(i*=m=F.sqrt(m),n*=m);var v=i*i,b=n*n,_=(o==a?-1:1)*F.sqrt(j((v*b-v*y*y-b*x*x)/(v*y*y+b*x*x))),w=_*i*y/n+(t+h)/2,k=_*-n*x/i+(e+l)/2,B=F.asin(((e-k)/n).toFixed(9)),C=F.asin(((l-k)/n).toFixed(9));(B=tC&&(B-=2*Y),!a&&C>B&&(C-=2*Y)}var S=C-B;if(j(S)>f){var T=C,L=h,M=l;C=B+f*(a&&C>B?1:-1),h=w+i*F.cos(C),l=k+n*F.sin(C),d=Lt(h,l,i,n,s,0,a,L,M,[C,T,w,k])}S=C-B;var E=F.cos(B),z=F.sin(B),N=F.cos(C),O=F.sin(C),X=F.tan(S/4),R=4/3*i*X,I=4/3*n*X,q=[t,e],D=[t+R*z,e-I*E],V=[h+R*O,l-I*N],W=[h,l];if(D[0]=2*q[0]-D[0],D[1]=2*q[1]-D[1],c)return[D,V,W][A](d);for(var G=[],H=0,U=(d=[D,V,W][A](d).join()[P](",")).length;H"1e12"&&(f=.5),j(p)>"1e12"&&(p=.5),f>0&&f<1&&(h=Mt(t,e,i,r,n,s,o,a,f),g.push(h.x),d.push(h.y)),p>0&&p<1&&(h=Mt(t,e,i,r,n,s,o,a,p),g.push(h.x),d.push(h.y)),l=s-2*r+e-(a-2*s+r),u=e-r,f=(-(c=2*(r-e)-2*(s-r))+F.sqrt(c*c-4*l*u))/2/l,p=(-c-F.sqrt(c*c-4*l*u))/2/l,j(f)>"1e12"&&(f=.5),j(p)>"1e12"&&(p=.5),f>0&&f<1&&(h=Mt(t,e,i,r,n,s,o,a,f),g.push(h.x),d.push(h.y)),p>0&&p<1&&(h=Mt(t,e,i,r,n,s,o,a,p),g.push(h.x),d.push(h.y)),{min:{x:R[S](0,g),y:R[S](0,d)},max:{x:X[S](0,g),y:X[S](0,d)}}})),Pt=e._path2curve=r((function(t,e){var i=!e&&wt(t);if(!e&&i.curve)return Bt(i.curve);for(var r=St(t),n=e&&St(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a=function(t,e,i){var r,n;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][A](Lt[S](0,[e.x,e.y][A](t.slice(1))));break;case"S":"C"==i||"S"==i?(r=2*e.x-e.bx,n=2*e.y-e.by):(r=e.x,n=e.y),t=["C",r,n][A](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][A](Tt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][A](Tt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][A](At(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][A](At(e.x,e.y,t[1],e.y));break;case"V":t=["C"][A](At(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][A](At(e.x,e.y,e.X,e.Y))}return t},h=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)c[e]="A",n&&(u[e]="A"),t.splice(e++,0,["C"][A](i.splice(0,6)));t.splice(e,1),g=X(r.length,n&&n.length||0)}},l=function(t,e,i,s,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",s.x,s.y]),i.bx=0,i.by=0,i.x=t[o][1],i.y=t[o][2],g=X(r.length,n&&n.length||0))},c=[],u=[],f="",p="",d=0,g=X(r.length,n&&n.length||0);d.01;)c=a(t,e,i,r,n,s,o,h,f+=(cn){if(i&&!f.start){if(u+=["C"+(c=Qt(o,a,h[1],h[2],h[3],h[4],h[5],h[6],n-p)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],s)return u;f.start=u,u=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,h[5],h[6]].join(),p+=l,o=+h[5],a=+h[6];continue}if(!t&&!i)return{x:(c=Qt(o,a,h[1],h[2],h[3],h[4],h[5],h[6],n-p)).x,y:c.y,alpha:c.alpha}}p+=l,o=+h[5],a=+h[6]}u+=h.shift()+h}return f.end=u,(c=t?p:i?f:e.findDotsAtSegment(o,a,h[0],h[1],h[2],h[3],h[4],h[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},Jt=Zt(1),Kt=Zt(),te=Zt(0,1);e.getTotalLength=Jt,e.getPointAtLength=Kt,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return te(t,e).end;var r=te(t,i,1);return e?te(r,e).end:r},Ht.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Jt(t)},Ht.getPointAtLength=function(t){var e=this.getPath();if(e)return Kt(e,t)},Ht.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},Ht.getSubpath=function(t,i){var r=this.getPath();if(r)return e.getSubpath(r,t,i)};var ee=e.easing_formulas={linear:function(t){return t},"<":function(t){return I(t,1.7)},">":function(t){return I(t,.48)},"<>":function(t){var e=.48-t/1.04,i=F.sqrt(.1734+e*e),r=i-e,n=-i-e,s=I(j(r),1/3)*(r<0?-1:1)+I(j(n),1/3)*(n<0?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:I(2,-10*t)*F.sin(2*Y*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}};ee.easeIn=ee["ease-in"]=ee["<"],ee.easeOut=ee["ease-out"]=ee[">"],ee.easeInOut=ee["ease-in-out"]=ee["<>"],ee["back-in"]=ee.backIn,ee["back-out"]=ee.backOut;var ie=[],re=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ne=function(){for(var i=+new Date,r=0;r1&&!n.next){for(o in f)f[w](o)&&(x[o]=n.totalOrigin[o]);n.el.attr(x),g(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&g(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}ie.length&&re(ne)},se=function(t){return t>255?255:t<0?0:t};Ht.animateWith=function(t,i,r,n,s,o){var a=this;if(a.removed)return o&&o.call(a),a;var h=r instanceof d?r:e.animation(r,n,s,o);g(h,a,h.percents[0],null,a.attr());for(var l=0,c=ie.length;lh&&(h=c)}!t[h+="%"].callback&&(t[h].callback=n)}return new d(t,i)},Ht.animate=function(t,i,r,n){var s=this;if(s.removed)return n&&n.call(s),s;var o=t instanceof d?t:e.animation(t,i,r,n);return g(o,s,o.percents[0],null,s.attr()),s},Ht.setTime=function(t,e){return t&&null!=e&&this.status(t,R(e,t.ms)/t.ms),this},Ht.status=function(t,e){var i,r,n=[],s=0;if(null!=e)return g(t,this,-1,R(e,1)),this;for(i=ie.length;s1)for(var r=0,n=i.length;r.5)-1;h(f-.5,2)+h(p-.5,2)>.25&&(p=s.sqrt(.25-h(f-.5,2))*n+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*n)}return u}))).split(/\s*\-\s*/),"linear"==l){var b=n.shift();if(b=-r(b),isNaN(b))return null;var _=[0,0,s.cos(t.rad(b)),s.sin(t.rad(b))],w=1/(o(a(_[2]),a(_[3]))||1);_[2]*=w,_[3]*=w,_[2]<0&&(_[0]=-_[2],_[2]=0),_[3]<0&&(_[1]=-_[3],_[3]=0)}var k=t._parseDots(n);if(!k)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){v=x(l+"Gradient",{id:c}),e.gradient=v,x(v,"radial"==l?{fx:f,fy:p}:{x1:_[0],y1:_[1],x2:_[2],y2:_[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(v);for(var B=0,C=k.length;B1?z.opacity/100:z.opacity});case"stroke":z=t.getRGB(g),h.setAttribute(d,z.hex),"stroke"==d&&z[e]("opacity")&&x(h,{"stroke-opacity":z.opacity>1?z.opacity/100:z.opacity}),"stroke"==d&&r._.arrows&&("startString"in r._.arrows&&b(r,r._.arrows.startString),"endString"in r._.arrows&&b(r,r._.arrows.endString,1));break;case"gradient":("circle"==r.type||"ellipse"==r.type||"r"!=i(g).charAt())&&y(r,g);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&x(h,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){(N=t._g.doc.getElementById(h.getAttribute("fill").replace(/^url\(#|\)$/g,u)))&&(O=N.getElementsByTagName("stop"),x(O[O.length-1],{"stop-opacity":g}));break}default:"font-size"==d&&(g=n(g,10)+"px");var F=d.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()}));h.style[F]=g,r._.dirty=1,h.setAttribute(d,g)}}B(r,s),h.style.visibility=f},B=function(r,s){if("text"==r.type&&(s[e]("text")||s[e]("font")||s[e]("font-size")||s[e]("x")||s[e]("y"))){var o=r.attrs,a=r.node,h=a.firstChild?n(t._g.doc.defaultView.getComputedStyle(a.firstChild,u).getPropertyValue("font-size"),10):10;if(s[e]("text")){for(o.text=s.text;a.firstChild;)a.removeChild(a.firstChild);for(var l,c=i(s.text).split("\n"),f=[],p=0,d=c.length;p"));var H=W.getBoundingClientRect();m.W=d.w=(H.right-H.left)/100,m.H=d.h=(H.bottom-H.top)/100,m.X=d.x,m.Y=d.y+m.H/2,("x"in h||"y"in h)&&(m.path.v=t.format("m{0},{1}l{2},{1}",s(d.x*v),s(d.y*v),s(d.x*v)+1));for(var U=["x","y","text","font","font-family","font-weight","font-style","font-size"],$=0,Q=U.length;$.25&&(i=n.sqrt(.25-a(e-.5,2))*(2*(i>.5)-1)+.5),l=e+f+i),p}))).split(/\s*\-\s*/),"linear"==h){var c=s.shift();if(c=-r(c),isNaN(c))return null}var u=t._parseDots(s);if(!u)return null;if(e=e.shape||e.node,u.length){e.removeChild(o),o.on=!0,o.method="none",o.color=u[0].color,o.color2=u[u.length-1].color;for(var d=[],g=0,x=u.length;g')}}catch(t){C=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,r=e.height,n=e.width,s=e.x,o=e.y;if(!i)throw new Error("VML container not found.");var a=new t._Paper,h=a.canvas=t._g.doc.createElement("div"),l=h.style;return s=s||0,o=o||0,n=n||512,r=r||342,a.width=n,a.height=r,n==+n&&(n+="px"),r==+r&&(r+="px"),a.coordsize=216e5+f+216e5,a.coordorigin="0 0",a.span=t._g.doc.createElement("span"),a.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",h.appendChild(a.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,r),1==i?(t._g.doc.body.appendChild(h),l.left=s+"px",l.top=o+"px",l.position="absolute"):i.firstChild?i.insertBefore(h,i.firstChild):i.appendChild(h),a.renderfix=function(){},a},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=p,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var E=t.st;for(var P in M)M[e](P)&&!E[e](P)&&(E[P]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(P))}}.apply(e,r))||(t.exports=n)}])},t.exports=r()},277:function(t,e){t.exports={x:0,y:0,"line-width":3,"line-length":50,"text-margin":10,"font-size":14,"font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",class:"flowchart",scale:1,symbols:{start:{},end:{},condition:{},inputoutput:{},operation:{},subroutine:{},parallel:{}}}},278:function(t,e,i){var r=i(126);function n(t,e){var i=t.paper.rect(0,0,0,0,20);(e=e||{}).text=e.text||"Start",r.call(this,t,e,i)}(0,i(124).inherits)(n,r),t.exports=n},279:function(t,e,i){var r=i(126);function n(t,e){var i=t.paper.rect(0,0,0,0,20);(e=e||{}).text=e.text||"End",r.call(this,t,e,i)}(0,i(124).inherits)(n,r),t.exports=n},280:function(t,e,i){var r=i(126);function n(t,e){var i=t.paper.rect(0,0,0,0);e=e||{},r.call(this,t,e,i)}(0,i(124).inherits)(n,r),t.exports=n},281:function(t,e,i){var r=i(126),n=i(124).inherits,s=i(179).drawPath;function o(t,e){e=e||{},r.call(this,t,e),this.textMargin=this.getAttr("text-margin"),this.text.attr({x:3*this.textMargin});var i=this.text.getBBox().width+4*this.textMargin,n=this.text.getBBox().height+2*this.textMargin,o=this.textMargin,a=n/2,h={x:o,y:a},l=[{x:o-this.textMargin,y:n},{x:o-this.textMargin+i,y:n},{x:o-this.textMargin+i+2*this.textMargin,y:0},{x:o-this.textMargin+2*this.textMargin,y:0},{x:o,y:a}],c=s(t,h,l);c.attr({stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),fill:this.getAttr("fill")}),e.link&&c.attr("href",e.link),e.target&&c.attr("target",e.target),e.key&&(c.node.id=e.key),c.node.setAttribute("class",this.getAttr("class")),this.text.attr({y:c.getBBox().height/2}),this.group.push(c),c.insertBefore(this.text),this.initialize()}n(o,r),o.prototype.getLeft=function(){var t=this.getY()+this.group.getBBox().height/2;return{x:this.getX()+this.textMargin,y:t}},o.prototype.getRight=function(){var t=this.getY()+this.group.getBBox().height/2;return{x:this.getX()+this.group.getBBox().width-this.textMargin,y:t}},t.exports=o},282:function(t,e,i){var r=i(126);function n(t,e){var i=t.paper.rect(0,0,0,0);e=e||{},r.call(this,t,e,i),i.attr({width:this.text.getBBox().width+4*this.getAttr("text-margin")}),this.text.attr({x:2*this.getAttr("text-margin")});var n=t.paper.rect(0,0,0,0);n.attr({x:this.getAttr("text-margin"),stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),width:this.text.getBBox().width+2*this.getAttr("text-margin"),height:this.text.getBBox().height+2*this.getAttr("text-margin"),fill:this.getAttr("fill")}),e.key&&(n.node.id=e.key+"i");var s=this.getAttr("font"),o=this.getAttr("font-family"),a=this.getAttr("font-weight");s&&n.attr({font:s}),o&&n.attr({"font-family":o}),a&&n.attr({"font-weight":a}),e.link&&n.attr("href",e.link),e.target&&n.attr("target",e.target),this.group.push(n),n.insertBefore(this.text),this.initialize()}(0,i(124).inherits)(n,r),t.exports=n},283:function(t,e,i){if("undefined"!=typeof jQuery){var r=i(191);(n=jQuery).fn.flowChart=function(t){return this.each((function(){var e=n(this),i=r(e.text());e.html(""),i.drawSVG(this,t)}))}}var n},284:function(t,e,i){i(274);var r=i(191);i(283);var n={parse:r};"undefined"!=typeof window&&(window.flowchart=n),t.exports=n}}]);