if(!_.venn){_.venn=1;(function($){var hQ=function(a){function b(a){a.I(4294967295)}$.Wp.call(this);this.Ia("venn.intersections");this.Ba=a;a={};$.R(a,[["fill",0,8256],["stroke",0,8256],["hatchFill",0,8256],["labels",0,0],["markers",0,0]]);this.ca=new $.Ew(this,a,$.Wk);this.ca.pa("markersFactoryConstructor",$.Jw);this.ca.pa("markersAfterInitCallback",$.Lw);this.ca.pa("labelsFactoryConstructor",$.Gw);this.ca.pa("labelsAfterInitCallback",function(a){$.L(a,this.Fd,this)});a={};$.R(a,[["fill",0,8192],["stroke",0,8192],["hatchFill",0,8192],
["labels",0,0],["markers",0,0]]);this.ya=new $.Ew(this,a,$.ln);this.ya.pa("labelsFactoryConstructor",$.Gw);this.ya.pa("markersFactoryConstructor",$.Jw);this.Da=new $.Ew(this,a,$.mn);this.Da.pa("labelsFactoryConstructor",$.Gw);this.Da.pa("markersFactoryConstructor",$.Jw);this.ya.pa("labelsAfterInitCallback",b);this.ya.pa("markersAfterInitCallback",b);this.Da.pa("labelsAfterInitCallback",b);this.Da.pa("markersAfterInitCallback",b)},afa=function(a,b){var c=0;var d=d||{};var e=d.IG||100;d=d.rma||1E-10;
var f=a(c),h=a(b),k=b-c;if(0<f*h)throw"Initial points must have opposite signs";if(0===f)return c;if(0===h)return b;for(h=0;h<e;++h){k/=2;var l=c+k,m=a(l);0<=m*f&&(c=l);if(Math.abs(k)<d||0===m)return l}return c+k},iQ=function(a){for(var b=Array(a),c=0;c<a;++c)b[c]=0;return b},jQ=function(a,b){return(0,$.Va)(iQ(a),function(){return iQ(b)})},kQ=function(a,b){for(var c=0,d=0;d<a.length;++d)c+=a[d]*b[d];return c},lQ=function(a){return Math.sqrt(kQ(a,a))},mQ=function(a,b){for(var c=0;c<b.length;++c)a[c]=
-1*b[c]},nQ=function(a,b,c,d,e){for(var f=0;f<a.length;++f)a[f]=b*c[f]+d*e[f]},bfa=function(a,b,c,d,e){function f(f,m,q){for(var u=0;16>u;++u)if(e=(f+m)/2,nQ(d.x,1,c.x,e,b),l=d.ze=a(d.x,d.hk),n=kQ(d.hk,b),l>h+r*e*k||l>=q)m=e;else{if(Math.abs(n)<=-t*k)return e;0<=n*(m-f)&&(m=f);f=e;q=l}return 0}var h=c.ze,k=kQ(c.hk,b),l=h,m=h,n=k,q=0;e=e||1;var r=r||1E-6;var t=t||.1;for(var u=0;10>u;++u){nQ(d.x,1,c.x,e,b);l=d.ze=a(d.x,d.hk);n=kQ(d.hk,b);if(l>h+r*e*k||u&&l>=m)return f(q,e,m);if(Math.abs(n)<=-t*k)break;
if(0<=n)return f(e,q,l);m=l;q=e;e*=2}return e},cfa=function(a,b,c){var d={x:b.slice(),ze:0,hk:b.slice()},e={x:b.slice(),ze:0,hk:b.slice()},f=b.slice(),h=1;c=c||{};var k=c.IG||20*b.length;d.ze=a(d.x,d.hk);b=d.hk.slice();mQ(b,d.hk);for(var l=0;l<k;++l){h=bfa(a,b,d,e,h);c.history&&c.history.push({x:d.x.slice(),ze:d.ze,hk:d.hk.slice(),alpha:h});if(h){nQ(f,1,e.hk,-1,d.hk);nQ(b,Math.max(0,kQ(f,e.hk)/kQ(d.hk,d.hk)),b,-1,e.hk);var m=d;d=e;e=m}else mQ(b,d.hk);if(1E-5>=lQ(d.hk))break}c.history&&c.history.push({x:d.x.slice(),
ze:d.ze,hk:d.hk.slice(),alpha:h});return d},oQ=function(a,b,c){function d(a,b){return a.ze-b.ze}function e(a){for(var b=0;b<a.length;b++)w[v][b]=a[b];w[v].ze=a.ze}c=c||{};var f=c.IG||200*b.length,h=c.ima||1.05,k=c.uma||.001,l=c.c0||1E-6,m=c.c0||1E-5,n=void 0!==c.Yfa?c.Yfa:1,q=void 0!==c.E$?c.E$:2,r=void 0!==c.Lfa?c.Lfa:-.5,t=void 0!==c.vga?c.vga:.5,u,v=b.length,w=Array(v+1);w[0]=b;w[0].ze=a(b);for(var x=w[0].id=0;x<v;++x){var y=b.slice();y[x]=y[x]?y[x]*h:k;w[x+1]=y;w[x+1].ze=a(y);w[x+1].id=x+1}h=
b.slice();k=b.slice();y=b.slice();b=b.slice();for(var A=0;A<f;++A){w.sort(d);c.history&&(x=(0,$.Va)(w,function(a){var b=a.slice();b.ze=a.ze;b.id=a.id;return b}),x.sort(function(a,b){return a.id-b.id}),c.history.push({x:w[0].slice(),ze:w[0].ze,qma:x}));for(x=u=0;x<v;++x)u=Math.max(u,Math.abs(w[0][x]-w[1][x]));if(Math.abs(w[0].ze-w[v].ze)<l&&u<m)break;for(x=0;x<v;++x){for(u=h[x]=0;u<v;++u)h[x]+=w[u][x];h[x]/=v}x=w[v];nQ(k,1+n,h,-n,x);k.ze=a(k);if(k.ze<w[0].ze)nQ(b,1+q,h,-q,x),b.ze=a(b),b.ze<k.ze?e(b):
e(k);else if(k.ze>=w[v-1].ze){if(u=!1,k.ze>x.ze?(nQ(y,1+r,h,-r,x),y.ze=a(y),y.ze<x.ze?e(y):u=!0):(nQ(y,1-r*n,h,r*n,x),y.ze=a(y),y.ze<k.ze?e(y):u=!0),u){if(1<=t)break;for(x=1;x<w.length;++x)nQ(w[x],1-t,w[0],t,w[x]),w[x].ze=a(w[x])}}else e(k)}w.sort(d);return{ze:w[0].ze,x:w[0]}},sQ=function(a,b){var c=dfa(a),d=(0,$.Be)(c,function(b){a:{for(var c=0;c<a.length;++c)if(pQ(b,a[c])>a[c].Zb+1E-10){b=!1;break a}b=!0}return b}),e=0,f=0,h=[],k;if(1<d.length){var l=qQ(d);for(k=0;k<d.length;++k){var m=d[k];m.angle=
Math.atan2(m.x-l.x,m.y-l.y)}d.sort(function(a,b){return b.angle-a.angle});l=d[d.length-1];for(k=0;k<d.length;++k){m=d[k];f+=(l.x+m.x)*(m.y-l.y);for(var n={x:(m.x+l.x)/2,y:(m.y+l.y)/2},q=null,r=0;r<m.SL.length;++r)if(-1<l.SL.indexOf(m.SL[r])){var t=a[m.SL[r]],u=Math.atan2(l.x-t.x,l.y-t.y),v=u-Math.atan2(m.x-t.x,m.y-t.y);0>v&&(v+=2*Math.PI);u-=v/2;u=pQ(n,{x:t.x+t.Zb*Math.sin(u),y:t.y+t.Zb*Math.cos(u)});if(null===q||q.width>u)q={Dn:t,width:u,Lh:m,tk:l}}null!==q&&(h.push(q),e+=rQ(q.Dn.Zb,q.width),l=m)}}else{l=
a[0];for(k=1;k<a.length;++k)a[k].Zb<l.Zb&&(l=a[k]);e=!1;for(k=0;k<a.length;++k)if(pQ(a[k],l)>Math.abs(l.Zb-a[k].Zb)){e=!0;break}e?e=f=0:(e=l.Zb*l.Zb*Math.PI,h.push({Dn:l,Lh:{x:l.x,y:l.y+l.Zb},tk:{x:l.x-1E-10,y:l.y+l.Zb},width:2*l.Zb}))}f/=2;b&&(b.fB=e+f,b.Ula=e,b.lma=f,b.eB=h,b.cma=d,b.dma=c);return e+f},dfa=function(a){for(var b=[],c=0;c<a.length;++c)for(var d=c+1;d<a.length;++d)for(var e=tQ(a[c],a[d]),f=0;f<e.length;++f){var h=e[f];h.SL=[c,d];b.push(h)}return b},uQ=function(a,b){var c=Math.sqrt(a*
a-b*b);return b*c+a*a*Math.atan2(b,c)},rQ=function(a,b){return uQ(a,b-a)-uQ(a,-a)},pQ=function(a,b){return Math.sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y))},vQ=function(a,b,c){return c>=a+b?0:c<=Math.abs(a-b)?Math.PI*Math.min(a,b)*Math.min(a,b):rQ(a,a-(c*c-b*b+a*a)/(2*c))+rQ(b,b-(c*c-a*a+b*b)/(2*c))},tQ=function(a,b){var c=pQ(a,b),d=a.Zb,e=b.Zb;if(c>=d+e||c<=Math.abs(d-e))return[];var f=(d*d-e*e+c*c)/(2*c);e=Math.sqrt(d*d-f*f);d=a.x+f*(b.x-a.x)/c;f=a.y+f*(b.y-a.y)/c;var h=e/c*-(b.y-a.y);c=e/c*-(b.x-
a.x);return[{x:d+h,y:f-c},{x:d-h,y:f+c}]},qQ=function(a){for(var b={x:0,y:0},c=0;c<a.length;++c)b.x+=a[c].x,b.y+=a[c].y;b.x/=a.length;b.y/=a.length;return b},gfa=function(a){var b=b||{};b.IG=b.IG||500;var c=b.bma||efa;a=ffa(a);var d=c(a);c=[];var e=[];for(f in d)d.hasOwnProperty(f)&&(c.push(d[f].x),c.push(d[f].y),e.push(f));b=oQ(function(b){for(var c={},f=0;f<e.length;++f){var h=e[f];c[h]={x:b[2*f],y:b[2*f+1],Zb:d[h].Zb}}return wQ(c,a)},c,b).x;for(c=0;c<e.length;++c){var f=e[c];d[f].x=b[2*c];d[f].y=
b[2*c+1]}return d},xQ=function(a,b,c){return Math.min(a,b)*Math.min(a,b)*Math.PI<=c+1E-10?Math.abs(a-b):afa(function(d){return vQ(a,b,d)-c},a+b)},ffa=function(a){a=a.slice();var b=[],c={},d;for(d=0;d<a.length;++d){var e=a[d];if(1==e.Ph.length)b.push(e.Ph[0]);else if(2==e.Ph.length){var f=e.Ph[0];var h=e.Ph[1];c[[f,h]]=!0;c[[h,f]]=!0}}for(d=0;d<b.length;++d)for(f=b[d],e=d+1;e<b.length;++e)h=b[e],[f,h]in c||a.push({Ph:[f,h],size:0,uC:window.NaN});return a},hfa=function(a,b,c){var d=jQ(b.length,b.length),
e=jQ(b.length,b.length);a=(0,$.Be)(a,function(a){return 2==a.Ph.length});(0,$.Va)(a,function(a){var f=c[a.Ph[0]],k=c[a.Ph[1]],l=xQ(Math.sqrt(b[f].size/Math.PI),Math.sqrt(b[k].size/Math.PI),a.size);d[f][k]=d[k][f]=l;l=0;a.size+1E-10>=Math.min(b[f].size,b[k].size)?l=1:1E-10>=a.size&&(l=-1);e[f][k]=e[k][f]=l});return{haa:d,R$:e}},efa=function(a,b){var c=ifa(a);if(8<=a.length){var d=jfa(a,b),e=wQ(d,a),f=wQ(c,a);e+1E-8<f&&(c=d)}return c},jfa=function(a,b){function c(a,b){var c=l,d=0,e;for(e=0;e<b.length;++e)b[e]=
0;for(e=0;e<c.length;++e)for(var f=a[2*e],h=a[2*e+1],k=e+1;k<c.length;++k){var n=a[2*k],q=a[2*k+1],r=c[e][k],t=m[e][k],Q=(n-f)*(n-f)+(q-h)*(q-h),T=Math.sqrt(Q);Q-=r*r;0<t&&T<=r||0>t&&T>=r||(d+=2*Q*Q,b[2*e]+=4*Q*(f-n),b[2*e+1]+=4*Q*(h-q),b[2*k]+=4*Q*(n-f),b[2*k+1]+=4*Q*(q-h))}return d}b=b||{};var d=b.oma||10,e=[],f={},h;for(h=0;h<a.length;++h){var k=a[h];1==k.Ph.length&&(f[k.Ph[0]]=e.length,e.push(k))}h=hfa(a,e,f);var l=h.haa,m=h.R$,n=lQ((0,$.Va)(l,lQ))/l.length;l=(0,$.Va)(l,function(a){return(0,$.Va)(a,
function(a){return a/n})});for(h=0;h<d;++h){f=[];for(k=0;k<2*l.length;k++)f.push(1/(k+1)*Math.abs(Math.sin(h)));f=cfa(c,f,b);if(!q||f.ze<q.ze)var q=f}d=q.x;q={};for(h=0;h<e.length;++h)f=e[h],q[f.Ph[0]]={x:d[2*h]*n,y:d[2*h+1]*n,Zb:Math.sqrt(f.size/Math.PI)};return q},ifa=function(a){function b(a,b){return b.size-a.size}function c(a){return a.set in r}function d(a,b){e[b].x=a.x;e[b].y=a.y;r[b]=!0}for(var e={},f={},h,k=0;k<a.length;++k){var l=a[k];1==l.Ph.length&&(h=l.Ph[0],e[h]={x:1E10,y:1E10,pma:e.length,
size:l.size,Zb:Math.sqrt(l.size/Math.PI)},f[h]=[])}a=(0,$.Be)(a,function(a){return 2==a.Ph.length});for(k=0;k<a.length;++k){l=a[k];var m=$.p(l.weight)?l.weight:1,n=l.Ph[0],q=l.Ph[1];l.size+1E-10>=Math.min(e[n].size,e[q].size)&&(m=0);f[n].push({set:q,size:l.size,weight:m});f[q].push({set:n,size:l.size,weight:m})}l=[];for(h in f)if(f.hasOwnProperty(h)){for(k=m=0;k<f[h].length;++k)m+=f[h][k].size*f[h][k].weight;l.push({set:h,size:m})}l.sort(b);var r={};d({x:0,y:0},l[0].set);for(k=1;k<l.length;++k){m=
l[k].set;var t=(0,$.Be)(f[m],c);h=e[m];t.sort(b);if(0===t.length)throw"ERROR: missing pairwise overlap information";n=[];for(q=0;q<t.length;++q){var u=e[t[q].set],v=xQ(h.Zb,u.Zb,t[q].size);n.push({x:u.x+v,y:u.y});n.push({x:u.x-v,y:u.y});n.push({y:u.y+v,x:u.x});n.push({y:u.y-v,x:u.x});for(var w=q+1;w<t.length;++w){var x=e[t[w].set],y=xQ(h.Zb,x.Zb,t[w].size);x=tQ({x:u.x,y:u.y,Zb:v},{x:x.x,y:x.y,Zb:y});for(y=0;y<x.length;++y)n.push(x[y])}}h=1E50;t=n[0];for(q=0;q<n.length;++q)e[m].x=n[q].x,e[m].y=n[q].y,
u=wQ(e,a),u<h&&(h=u,t=n[q]);d(t,m)}return e},wQ=function(a,b){function c(b){return(0,$.Va)(b,function(b){return a[b]})}for(var d=0,e=0;e<b.length;++e){var f=b[e];if(1!=f.Ph.length){if(2==f.Ph.length){var h=a[f.Ph[0]];var k=a[f.Ph[1]];h=vQ(h.Zb,k.Zb,pQ(h,k))}else h=sQ(c(f.Ph));d+=($.p(f.weight)?f.weight:1)*(h-f.size)*(h-f.size)}}return d},kfa=function(a,b){a.sort(function(a,b){return b.Zb-a.Zb});var c;if(0<a.length){var d=a[0].x,e=a[0].y;for(c=0;c<a.length;++c)a[c].x-=d,a[c].y-=e}if(1<a.length)for(c=
Math.atan2(a[1].x,a[1].y)-b,d=Math.cos(c),e=Math.sin(c),c=0;c<a.length;++c){var f=a[c].x;var h=a[c].y;a[c].x=d*f-e*h;a[c].y=e*f+d*h}if(2<a.length){for(c=Math.atan2(a[2].x,a[2].y)-b;0>c;)c+=2*Math.PI;for(;c>2*Math.PI;)c-=2*Math.PI;if(c>Math.PI)for(d=a[1].y/(1E-10+a[1].x),c=0;c<a.length;++c)e=(a[c].x+d*a[c].y)/(1+d*d),a[c].x=2*e-a[c].x,a[c].y=2*e*d-a[c].y}},lfa=function(a){function b(a){a.parent!==a&&(a.parent=b(a.parent));return a.parent}function c(a,c){b(a).parent=b(c)}a=(0,$.Va)(a,function(a){return a.parent=
a});for(var d=0;d<a.length;++d)for(var e=d+1;e<a.length;++e)pQ(a[d],a[e])+1E-10<a[d].Zb+a[e].Zb&&c(a[e],a[d]);e={};for(d=0;d<a.length;++d){var f=b(a[d]).parent.U1;f in e||(e[f]=[]);e[f].push(a[d])}(0,$.Va)(a,function(a){delete a.parent});a=[];for(f in e)e.hasOwnProperty(f)&&a.push(e[f]);return a},yQ=function(a){function b(b){var c=Math.max.apply(null,(0,$.Va)(a,function(a){return a[b]+a.Zb})),e=Math.min.apply(null,(0,$.Va)(a,function(a){return a[b]-a.Zb}));return{max:c,min:e}}return{eq:b("x"),ys:b("y")}},
mfa=function(a){function b(a,b,c){if(a){var e=a.ab;if(b)b=h.eq.max-e.eq.min+k;else{b=h.eq.max-e.eq.max;var f=(e.eq.max-e.eq.min)/2-(h.eq.max-h.eq.min)/2;0>f&&(b+=f)}c?c=h.ys.max-e.ys.min+k:(c=h.ys.max-e.ys.max,f=(e.ys.max-e.ys.min)/2-(h.ys.max-h.ys.min)/2,0>f&&(c+=f));for(e=0;e<a.length;++e)a[e].x+=b,a[e].y+=c,d.push(a[e])}}var c=Math.PI/2;null===c&&(c=Math.PI/2);var d=[];for(f in a)if(a.hasOwnProperty(f)){var e=a[f];d.push({x:e.x,y:e.y,Zb:e.Zb,U1:f})}var f=lfa(d);for(a=0;a<f.length;++a)kfa(f[a],
c),e=yQ(f[a]),f[a].size=(e.eq.max-e.eq.min)*(e.ys.max-e.ys.min),f[a].ab=e;f.sort(function(a,b){return b.size-a.size});d=f[0];var h=d.ab,k=(h.eq.max-h.eq.min)/50;for(c=1;c<f.length;)b(f[c],!0,!1),b(f[c+1],!1,!0),b(f[c+2],!0,!0),c+=3,h=yQ(d);c={};for(a=0;a<d.length;++a)c[d[a].U1]=d[a];return c},zQ=function(a,b,c){var d=b[0].Zb-pQ(b[0],a),e;for(e=1;e<b.length;++e){var f=b[e].Zb-pQ(b[e],a);f<=d&&(d=f)}for(e=0;e<c.length;++e)f=pQ(c[e],a)-c[e].Zb,f<=d&&(d=f);return d},AQ=function(a,b){var c=[],d;for(d=
0;d<a.length;++d){var e=a[d];c.push({x:e.x,y:e.y});c.push({x:e.x+e.Zb/2,y:e.y});c.push({x:e.x-e.Zb/2,y:e.y});c.push({x:e.x,y:e.y+e.Zb/2});c.push({x:e.x,y:e.y-e.Zb/2})}e=c[0];var f=zQ(c[0],a,b);for(d=1;d<c.length;++d){var h=zQ(c[d],a,b);h>=f&&(e=c[d],f=h)}d=oQ(function(c){return-1*zQ({x:c[0],y:c[1]},a,b)},[e.x,e.y],{IG:500,c0:1E-10}).x;c={x:d[0],y:d[1]};e=!0;for(d=0;d<a.length;++d)if(pQ(c,a[d])>a[d].Zb){e=!1;break}for(d=0;d<b.length;++d)if(pQ(c,b[d])<b[d].Zb){e=!1;break}e||(1==a.length?c={x:a[0].x,
y:a[0].y}:(d={},sQ(a,d),0===d.eB.length?c={x:0,y:-1E3,gaa:!0}:1==d.eB.length?c={x:d.eB[0].Dn.x,y:d.eB[0].Dn.y}:c=b.length?AQ(a,[]):qQ((0,$.Va)(d.eB,function(a){return a.Lh}))));return c},BQ=function(a,b){function c(a){a.I(4294967295)}$.Wv.call(this);this.Ia("venn");this.Md=null;this.data(a||null,b);this.b=[];this.Aa=this.Gl=null;this.g={};this.o=this.D=null;this.state=new $.Cv(this);this.f=null;$.Qs(this,this,this.cg,this.rg,null,this.cg,null,this.dj);var d={};$.R(d,[["fill",16896,1],["hatchFill",
16896,1],["stroke",16896,1],["labels",0,0],["markers",0,0]]);this.ca=new $.Ew(this,d,$.Wk);this.ca.Ia(this.ma);$.V(this,"normal",this.ca);this.ca.pa("labelsAfterInitCallback",$.Kw);this.ca.pa("markersAfterInitCallback",$.Lw);d={};$.R(d,[["fill",16384,1],["hatchFill",16384,1],["stroke",16384,1],["labels",0,0],["markers",0,0]]);this.ya=new $.Ew(this,d,$.ln);$.V(this,"hovered",this.ya);this.Da=new $.Ew(this,d,$.mn);$.V(this,"selected",this.Da);this.ya.pa("markersAfterInitCallback",c);this.Da.pa("markersAfterInitCallback",
c);this.ca.pa("labelsFactoryConstructor",$.Fw);this.ya.pa("labelsFactoryConstructor",$.Gw);this.Da.pa("labelsFactoryConstructor",$.Gw);this.ca.pa("markersFactoryConstructor",$.Iw);this.ya.pa("markersFactoryConstructor",$.Jw);this.Da.pa("markersFactoryConstructor",$.Jw);$.R(this.xa,[["dataSeparator",4096,1]])},CQ=function(a,b){if(!b||b.target!=a.Af()){var c=a.aa().j("tooltip");c.Wc(!0);var d=a.Ec();b&&$.iv(c,b.clientX,b.clientY,d)}},DQ=function(a){if(a.J(16384))for(var b=a.wc(),c=0;c<a.b.length;c++){var d=
a.b[c];b.select(d.uC);d=d.Ph;var e=!1,f=a.Ya(),h=$.Sk("fill",1,!1);if(1==d.length){var k=a.Yb().ic(c);b.j("paletteFill",k);var l=d[0];a.g[l].kma=k;a.g[l].j1=h(a,$.Wk,!0)}else{e=[];f={};for(h=0;h<d.length;h++)l=d[h],k=a.g[l],e.push(k.j1),f[l]=k.j1;b.j("parentColors",e);b.j("parentColorsMap",f);e=!0;f=a.ut().Ya()}d=b.get("normal");d=$.On($.p(d)?d.hatchFill:void 0,b.get("hatchFill"),a.be().ic(c));b.j("hatchFillPaletteFill",d);b.j("isIntersection",e);b.j("paletteMarkerType",a.lf().ic(c));b.j("tooltip",
f)}},EQ=function(a){if(a.length){for(var b,c=0;c<a.length;c++){var d=$.Sb(a[c]);b=b?$.sk(b,d):d}return b||"black"}return"black"},FQ=function(a,b,c){b=b.eB;if(b.length)if(1==b.length)b=b[0].Dn,a.moveTo(b.x+b.Zb+c.left,b.y+c.top).arcTo(b.Zb,b.Zb,0,360);else if(1<b.length){a.moveTo(b[0].tk.x+c.left,b[0].tk.y+c.top);for(var d=0;d<b.length;++d){var e=b[d];a.bf(e.Lh.x+c.left,e.Lh.y+c.top,e.Dn.Zb,e.Dn.Zb,e.width>e.Dn.Zb,!0)}a.close()}},GQ=function(a,b,c){var d=c.j("marker");if(d&&!c.j("isMissing")){var e=
!!c.j("isIntersection"),f=e?a.ut():a,h=a.Ta().Gb();b=$.Uk(b);var k=!!(b&$.ln);b=!!(b&$.mn);var l=c.get("normal");l=$.p(l)?l.marker:void 0;var m=c.get("hovered");m=$.p(m)?m.marker:void 0;var n=c.get("selected");n=$.p(n)?n.marker:void 0;var q=$.On(l,c.get("marker"),{});m=$.On(m,c.get("hoverMarker"));l=$.On(n,c.get("selectMarker"));b?$.Kc(q,l||{}):k&&$.Kc(q,m||{});n=q;m=b?l:k?m:q;f=b?f.selected().Gb():k?f.lb().Gb():f.Ta().Gb();l=b?a.selected().Gb():k?a.lb().Gb():a.Ta().Gb();q=m&&$.p(m.enabled)?m.enabled:
null;var r=f.enabled(),t=!1;null===q?null===r?t=h.enabled():t=r:t=q;t?(h=a.Ta().Gb().F(),k=b?a.selected().Gb().F():k?a.lb().Gb().F():{},a=e?a.ut().Ta().Gb().F():{},b=e?f.F():{},$.Kc(h,k,a,b,n),q=h,$.p(q.type)||(q.type=f.Qa()||l.Qa()||c.j("paletteMarkerType")),$.p(q.fill)||(a=c.j("paletteFill"),e&&(c=c.j("parentColors"),a=EQ(c),a.opacity=1),q.fill=f.Ym()||l.Ym()||a),d.yi(),d.enabled(!0),$.yw(d,f),d.gd(q,m)):($.yw(d,f),d.enabled(!1));d.X()}},HQ=function(a,b){return new BQ(a,b)};$.H(hQ,$.Wp);
$.rp(hQ,["fill","stroke","hatchFill","labels","markers"],"normal");$.g=hQ.prototype;$.g.ra=$.Wp.prototype.ra|274496;$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.ya.K(a),this):this.ya};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};$.g.Fd=function(){this.ua(4096)};$.g.GG=function(){this.Ta().labels().I(4294967295);this.lb().labels().I(4294967295);this.selected().labels().I(4294967295)};$.g.Io=function(){this.ua(262144)};
$.g.Ya=function(a){if(!this.fb){this.fb=new $.Ru(0);var b=this.Ba.Ya();$.V(this,"tooltip",this.fb);this.fb.parent(b);this.fb.za(this.Ba)}return $.p(a)?(this.fb.K(a),this):this.fb};$.g.eg=function(){$.V(this,"normal",this.ca);$.V(this,"hovered",this.ya);$.V(this,"selected",this.Da)};$.g.F=function(){var a=hQ.B.F.call(this);a.normal=this.ca.F();a.hovered=this.ya.F();a.selected=this.Da.F();a.tooltip=this.Ya().F();return a};
$.g.Y=function(a,b){hQ.B.Y.call(this,a,b);this.ca.ja(!!b,a);this.ca.ja(!!b,a.normal);this.ya.ja(!!b,a.hovered);this.Da.ja(!!b,a.selected);this.Ya().ja(!!b,a.tooltip)};$.g.R=function(){$.jd(this.ca,this.ya,this.Da,this.fb);hQ.B.R.call(this);this.fb=this.Da=this.ya=this.ca=null};var IQ=hQ.prototype;IQ.normal=IQ.Ta;IQ.hovered=IQ.lb;IQ.selected=IQ.selected;IQ.tooltip=IQ.Ya;$.H(BQ,$.Wv);$.rp(BQ,["fill","stroke","hatchFill","labels","markers"],"normal");$.g=BQ.prototype;$.g.ra=$.Wv.prototype.ra;$.g.qa=$.Wv.prototype.qa|61440;$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.ya.K(a),this):this.ya};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};$.g.Qa=function(){return"venn"};$.g.Ne=function(){return[this]};$.g.Qj=function(){return!1};$.g.ts=function(){return!0};
$.g.Ck=function(a){var b=this.aa();this.Gl.em(a,b.j("shapes"))};var JQ={};$.dp(JQ,0,"dataSeparator",$.kp);$.S(BQ,JQ);$.g=BQ.prototype;$.g.Cg=function(){return!0};$.g.aa=function(){return this.Md||(this.Md=this.na.aa())};
$.g.Dc=function(a,b,c,d,e,f,h){f=this.aa().j("isIntersection")?this.ut():this;e=0==b?this.ca:1==b?this.ya:this.Da;f=0==b?f.Ta():1==b?f.lb():f.selected();if(h)return e.i(a);h=c.get(0==b?"normal":1==b?"hovered":"selected");a=$.On($.p(h)?h[a]:void 0,c.get($.Xk(b,a)),f.md(a),e.md(a),f.ef(a),e.ef(a));$.p(a)&&(a=d(a));return a};$.g.eh=function(){return this.aa().j("hatchFillPaletteFill")||$.Wb("diagonal-brick")};$.g.oi=function(){var a=this.aa(),b=this.eh();return{index:a.ka(),sourceHatchFill:b,iterator:a}};
$.g.me=function(a){var b=this.aa();a=a||b.j("paletteFill")||this.i("color")||"blue";a={index:b.ka(),sourceColor:a,iterator:b};b.j("isIntersection")&&(a.parentColors=b.j("parentColors"),a.parentColorsMap=b.j("parentColorsMap"));return a};$.g.Yb=function(a){if($.K(a,$.xr))return this.Hc($.xr,a),this;if($.K(a,$.ur))return this.Hc($.ur,a),this;$.D(a)&&"range"==a.type?this.Hc($.xr):($.D(a)||null==this.Aa)&&this.Hc($.ur);return $.p(a)?(this.Aa.K(a),this):this.Aa};
$.g.Hc=function(a,b){if($.K(this.Aa,a))b&&this.Aa.K(b);else{var c=!!this.Aa;$.hd(this.Aa);this.Aa=new a;$.V(this,"palette",this.Aa);b&&this.Aa.K(b);$.L(this.Aa,this.Df,this);c&&this.u(528,1)}};$.g.be=function(a){this.Vc||(this.Vc=new $.vr,$.V(this,"hatchFillPalette",this.Vc),$.L(this.Vc,this.Df,this));return $.p(a)?(this.Vc.K(a),this):this.Vc};$.g.lf=function(a){this.oe||(this.oe=new $.wr,$.V(this,"markerPalette",this.oe),$.L(this.oe,this.Df,this));return $.p(a)?(this.oe.K(a),this):this.oe};
$.g.Df=function(a){$.W(a,2)&&this.u(528,1)};$.g.Fd=function(a){$.W(a,1)&&this.u(8192,1)};$.g.Io=function(a){$.W(a,1)&&this.u(33280,65)};
$.g.Nl=function(a,b){var c=[];if(this.ej())return c;this.mb();DQ(this);for(var d=this.aa().reset(),e;d.advance();)if(!d.j("isMissing")){e=d.ka();var f=d.get("legendItem")||{},h=null;$.E(b)&&(h=this.Ec(),h.b=this.Ad(e),h=b.call(h,h));$.z(h)||(h=String($.p(d.get("name"))?d.get("name"):d.get("x")));var k=$.Sk("fill",1,!1),l=$.Sk("stroke",2,!1),m=$.Sk("hatchFill",3,!1);if(d.j("isIntersection")){var n=d.j("parentColors");n=EQ(n)}h={enabled:!0,meta:{pointIndex:e,pointValue:d.get("value"),series:this},iconType:this.Ta().Gb().enabled()?
d.j("paletteMarkerType"):"square",text:h,iconStroke:d.get("stroke")||l(this,$.Wk,!0),iconFill:d.get("fill")||n||k(this,$.Wk,!0),iconHatchFill:d.get("hatchFill")||m(this,$.Wk,!0)};$.Kc(h,f);h.sourceUid=$.oa(this);h.sourceKey=e;c.push(h)}return c};$.g.Vr=function(){return!0};$.g.Lq=function(a,b){var c=a.ei();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.hn(b.domTarget))c.W=this};$.g.Ep=function(a,b){var c=a.ei();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.hn(b.domTarget))c.W=this};
$.g.Dp=function(a,b){var c=a.ei();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.hn(b.domTarget))c.W=this};$.g.data=function(a,b){if($.p(a)){if(a){var c=a.title||a.caption;c&&this.title(c);a.rows&&(a=a.rows)}this.Vf!==a&&(this.Vf=a,$.hd(this.ed),$.K(a,$.oq)?this.na=this.ed=a.$i():$.K(a,$.yq)?this.na=this.ed=a.Yd():this.na=(this.ed=new $.yq($.B(a)||$.z(a)?a:null,b)).Yd(),$.L(this.na,this.xd,this),this.u(4356,1));return this}return this.na};$.g.xd=function(){this.u(4352,1)};
$.g.wc=function(){return this.Md=this.na.aa()};$.g.aaa=function(a,b){return a.Ph.length-b.Ph.length};$.g.ut=function(a){this.f||(this.f=new hQ(this),this.f.eg(),$.L(this.f,this.Vca,this));return $.p(a)?(this.f.K(a),this):this.f};$.g.Vca=function(a){var b=0;$.W(a,4096)&&(b|=8192);$.W(a,262144)&&(b|=32768);$.W(a,8192)&&(b|=16384);$.W(a,64)&&(b|=512);this.u(b,1)};$.g.Tf=function(a){a=$.X.prototype.Tf.call(this,a);var b=$.hn(a.domTarget);a.pointIndex=$.N(b.index);return a};
$.g.tg=function(a){var b;"pointIndex"in a?b=a.pointIndex:"labelIndex"in a?b=a.labelIndex:"markerIndex"in a&&(b=a.markerIndex);b=$.N(b);a.pointIndex=b;var c=a.type;switch(c){case "mouseout":c="pointmouseout";break;case "mouseover":c="pointmouseover";break;case "mousemove":c="pointmousemove";break;case "mousedown":c="pointmousedown";break;case "mouseup":c="pointmouseup";break;case "click":c="pointclick";break;case "dblclick":c="pointdblclick";break;default:return null}var d=this.data().aa();d.select(b)||
d.reset();return{type:c,actualTarget:a.target,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a,point:this.Ad(b)}};$.g.Ad=function(a){return new $.Vy(this,a)};$.g.ti=function(a,b){if(!this.enabled())return this;if($.B(a)){for(var c=$.Mv(this.state,$.ln),d=0;d<c.length;d++)$.ya(a,c[d])||this.state.xh($.ln,c[d]);$.Kv(this.state,a);$.p(b)&&CQ(this,b)}else $.ea(a)&&(this.Cd(),$.Kv(this.state,a),$.p(b)&&CQ(this,b));return this};$.g.nk=function(){this.enabled()&&this.state.oh($.ln)};
$.g.xj=function(a){$.p(a)?this.ti(a):this.nk();return this};$.g.Cd=function(a){var b;(b=$.Gv(this.state,$.ln))||(b=!!(this.state.uj()&$.ln));if(b&&this.enabled()){var c;$.p(a)?c=a:c=this.state.vc==$.Wk?window.NaN:void 0;this.state.xh($.ln,c)}};$.g.Gj=function(a,b){var c=this.aa();this.Gl.em(a,c.j("shapes"));this.Qd(a,c);GQ(this,a,c);return b};$.g.Ql=$.ia;$.g.zp=$.ia;$.g.vl=function(a){return this.Zc().hoverMode(a)};$.g.kj=function(a){return this.Zc().selectionMode(a)};
$.g.Ai=function(a,b){var c=!(b&&b.shiftKey);$.B(a)?(b||this.Pd(),this.state.oh($.mn,a,c?$.ln:void 0)):$.ea(a)&&this.state.oh($.mn,a,c?$.ln:void 0);CQ(this,b);return this};$.g.Rt=function(){this.enabled()&&this.state.oh($.mn)};$.g.select=function(a){if(!this.enabled())return this;$.p(a)?this.Ai(a):this.Rt();return this};$.g.Pd=function(a){if(this.enabled()){var b;$.p(a)?b=a:b=this.state.vc==$.Wk?window.NaN:void 0;this.state.xh($.mn,b)}};$.g.Cq=function(a){return $.Hv(this.state,a)};
$.g.Ec=function(a){var b=this.aa();if(!this.Td||a)this.Td=new $.$u;this.Td.lg(b).Vi([this.Ad(b.ka()),this]);var c=b.ka();a=0;for(var d=$.Mv(this.state,$.mn),e=0;e<d.length;e++)b.select(d[e]),a+=b.get("value");b.select(c);c=b.get("x");d=$.p(b.get("name"))?b.get("name"):c;b={x:{value:c,type:"string"},value:{value:b.get("value"),type:"number"},index:{value:b.ka(),type:"number"},chart:{value:this,type:""},name:{value:d,type:"string"},isIntersection:{value:!!b.j("isIntersection"),type:"string"},selectedPointsSum:{value:a,
type:"number"}};return $.Lt(this.Td,b)};$.g.QH=function(a){this.aa().j("tooltip").qN(a.clientX,a.clientY)};
$.g.mb=function(){if(this.J(4096)&&!this.ej()){this.u(16384);for(var a=this.wc(),b={},c=[],d,e;a.advance();)if(d=a.get("x"),e=a.ka(),$.B(d))1==d.length&&(b[String(d[0])]=d),c[e]=d;else{d=String(d);var f=this.i("dataSeparator");f=d.split(f);1==f.length&&(b[d]=d);c[e]=f}for(e=0;e<c.length;e++)if((d=c[e])&&1<d.length)for(f=0;f<d.length;f++)if(!(d[f]in b)){a.select(e);a.j("isMissing",!0);break}this.b.length=0;this.g={};this.o=null;a=this.wc();for(b=this.i("dataSeparator");a.advance();)a.j("isMissing")||
(c=a.get("x"),e=Number(a.get("value")),d=a.ka(),e={size:e,uC:d},$.B(c)?(e.Ph=c,1==c.length&&(this.g[c.join(b)]=e)):(c=String(c),d=c.split(b),e.Ph=d,1==d.length&&(this.g[c]=e)),this.b.push(e));$.Pa(this.b,this.aaa);DQ(this);a=gfa(this.b);this.o=mfa(a);this.I(4096)}};
$.g.Ji=function(a){this.mb();var b;this.Gl||(this.Gl=new $.mz(this,[$.KE,$.LE,$.NE],!0),$.hz(this.Gl,this.Ua));if(0<a.width&&0<a.height){if(this.J(4)){this.Gl.Cu();var c=this.o;var d=a.width,e=a.height;var f=[];var h=[];for(var k in c)c.hasOwnProperty(k)&&(h.push(k),f.push(c[k]));k=yQ(f);c=k.eq;k=k.ys;var l=Math.min(e/(k.max-k.min),d/(c.max-c.min));d=(d-(c.max-c.min)*l)/2;var m=(e-(k.max-k.min)*l)/2;e={};for(var n=0;n<f.length;++n){var q=f[n];e[h[n]]={Zb:l*q.Zb,x:d+(q.x-c.min)*l,y:m+(q.y-k.min)*l}}f=
this.b;h=[];c={};k=[];for(var r in e)k.push(r),c[r]=[];for(r=0;r<k.length;r++)for(l=e[k[r]],d=r+1;d<k.length;++d)m=e[k[d]],n=pQ(l,m),n+m.Zb<=l.Zb+1E-10?c[k[d]].push(k[r]):n+l.Zb<=m.Zb+1E-10&&c[k[r]].push(k[d]);for(r=0;r<f.length;++r){k=f[r].Ph;d={};m={};l=f[r].uC;for(n=0;n<k.length;++n){d[k[n]]=!0;q=c[k[n]];for(var t=0;t<q.length;++t)m[q[t]]=!0}n=[];q=[];for(b in e)b in d?n.push(e[b]):b in m||q.push(e[b]);d=AQ(n,q);h[l]=d;d.gaa&&0<f[r].size&&$.Uj(22,null,[String(k)])}this.D=h;for(b=0;b<this.b.length;b++){c=
this.b[b];f=c.uC;h=this.aa();h.select(f);c=c.Ph;h=[];if(1==c.length)r=c[0],h.push(e[r]);else for(k=0;k<c.length;k++)r=c[k],h.push(e[r]);c={};sQ(h,c);f=this.Gl.Sc(this.Cq(f));h=f.hatchFill;r=f.stroke;FQ(f.fill,c,a);FQ(h,c,a);FQ(r,c,a)}this.u(40960);this.I(16384)}if(this.J(8192)){e=this.Ta().labels();e.clear();e.O(this.Ua);for(b=0;b<this.b.length;b++)c=this.b[b],f=c.uC,h=this.aa(),h.select(f),c=this.D[f],r=this.Ec(!0),c={value:{x:a.left+c.x,y:a.top+c.y}},c=e.add(r,c,f),h.j("label",c),this.Qd($.Hv(this.state,
f),h);e.X();this.ut().GG();this.I(8192)}if(this.J(32768)){e=this.Ta().Gb();$.U(e);e.O(this.Ua);e.clear();for(b=0;b<this.b.length;b++)c=this.b[b],f=c.uC,h=this.aa(),h.select(f),c=this.D[f],c={value:{x:a.left+c.x+.5,y:a.top+c.y+.5}},c=e.add(c,f),h.j("marker",c),GQ(this,$.Hv(this.state,f),h);e.da(!1);e.X();a=this.ut();a.Ta().Gb().I(4294967295);a.lb().Gb().I(4294967295);a.selected().Gb().I(4294967295);this.I(32768)}if(this.J(16384)){DQ(this);for(h=this.wc();h.advance();)this.Gl.em(this.Cq(h.ka()),h.j("shapes"));
this.I(16384)}}};
$.g.Qd=function(a,b){var c=b.j("label");if(c&&!b.j("isMissing")){var d=b.j("isIntersection")?this.ut():this;a=$.Uk(a);var e=!!(a&$.ln),f=!!(a&$.mn),h=b.get("normal");h=$.p(h)?h.label:void 0;var k=b.get("hovered");k=$.p(k)?k.label:void 0;var l=b.get("selected");l=$.p(l)?l.label:void 0;h=$.On(h,b.get("label"),null);k=$.On(k,b.get("hoverLabel"),null);l=$.On(l,b.get("selectLabel"),null);l=f?l:e?k:null;k=f?d.selected().labels():e?d.lb().labels():null;var m=d.Ta().labels(),n=f?this.selected().labels():e?
this.lb().labels():null,q=this.Ta().labels(),r=f?d.selected().labels().ma:e?d.lb().labels().ma:null;d=d.Ta().labels().ma;e=f?this.selected().labels().ma:e?this.lb().labels().ma:null;f=this.Ta().labels().ma;var t=l&&$.p(l.enabled)?l.enabled:null,u=h&&$.p(h.enabled)?h.enabled:null,v=k&&null!==k.enabled()?k.enabled():null,w=m&&null!==m.enabled()?m.enabled():null,x=n?n.enabled():null,y=q.enabled(),A=!1;null===t?null===u?null===v?null===w?null===x?A=y:A=x:A=w:A=v:A=u:A=t;A?(c.yi(),c.enabled(!0),c.state("labelOwnSettings",
c.La,0),c.state("pointState",l,1),c.state("pointNormal",h,2),c.state("intersectionsState",k,3),c.state("intersectionsNormal",m,4),c.state("chartState",n,5),c.state("chartNormal",q,6),c.state("intersectionsStateTheme",r,7),c.state("chartStateTheme",e,8),c.state("auto",c.sd,9),c.state("intersectionsNormalTheme",d||null,10),c.state("chartNormalTheme",f||null,11)):c.enabled(!1);c.X()}};$.g.WB=function(){return["x"]};$.g.XB=function(a){return a.get("x")};
$.g.VB=function(a){a=a.get("name");return $.z(a)?a:null};$.g.ej=function(){return!this.aa().Eb()};$.g.F=function(){var a=BQ.B.F.call(this);$.Bp(this,JQ,a,"Venn");a.data=this.data().F();a.normal=this.Ta().F();a.hovered=this.lb().F();a.selected=this.selected().F();a.palette=this.Yb().F();a.hatchFillPalette=this.be().F();a.markerPalette=this.lf().F();a.intersections=this.ut().F();return{chart:a}};
$.g.Y=function(a,b){BQ.B.Y.call(this,a,b);$.tp(this,JQ,a,b);this.data(a.data);this.ca.ja(!!b,a);this.ca.ja(!!b,a.normal);this.ya.ja(!!b,a.hovered);this.Da.ja(!!b,a.selected);this.Yb().ja(!!b,a.palette);this.lf().ja(!!b,a.markerPalette);this.be().ja(!!b,a.hatchFillPalette);this.ut().ja(!!b,a.intersections)};
$.g.R=function(){$.jd(this.ca,this.ya,this.Da,this.Aa,this.Vc,this.oe,this.Gl,this.f,this.ed,this.na);this.ed=this.f=this.Gl=this.oe=this.Vc=this.Aa=this.Da=this.ya=this.ca=null;delete this.na;this.Md=null;BQ.B.R.call(this)};var KQ=BQ.prototype;KQ.data=KQ.data;KQ.getType=KQ.Qa;KQ.intersections=KQ.ut;KQ.normal=KQ.Ta;KQ.hovered=KQ.lb;KQ.selected=KQ.selected;KQ.palette=KQ.Yb;KQ.hatchFillPalette=KQ.be;KQ.markerPalette=KQ.lf;KQ.hover=KQ.xj;KQ.unhover=KQ.Cd;KQ.select=KQ.select;KQ.unselect=KQ.Pd;$.Fo.venn=HQ;$.F("anychart.venn",HQ);}).call(this,$)}
