},vf.toPie=function(a){tf(a,"pie",{withTransform:!0})},vf.toDonut=function(a){tf(a,"donut",{withTransform:!0})},vf.groups=function(a){returnc(a)?wg:(wg=a,$e(),wg)},vf.xgrids=function(a){returna?(Lh=a,$e(),Lh):Lh},vf.xgrids.add=function(a){returna?vf.xgrids(Lh.concat(a)):void0},vf.xgrids.remove=function(a){varb=sf(a);returnvf.xgrids(Lh.filter(b))},vf.ygrids=function(a){returna?(Nh=a,$e(),Nh):Nh},vf.ygrids.add=function(a){returna?vf.ygrids(Nh.concat(a)):void0},vf.ygrids.remove=function(a){varb=sf(a);returnvf.ygrids(Nh.filter(b))},vf.regions=function(a){returnc(a)?ji:(ji=a,$e(),ji)},vf.regions.add=function(a){returnc(a)?ji:(ji=ji.concat(a),$e(),ji)},vf.regions.remove=function(a,c){vare=[].concat(a);returnc=d(c)?c:{},e.forEach(function(a){vard=b(c.duration)?c.duration:0;bj.selectAll("."+a).transition().duration(d).style("fill-opacity",0).remove(),ji=ji.filter(function(b){returnb.classes.indexOf(a)<0})}),ji},vf.data.get=function(a){varb=vf.data.getAsTarget(a);returnd(b)?b.values.map(function(a){returna.value}):void0},vf.data.getAsTarget=function(a){varb=Fc(function(b){returnb.id===a});returnb.length>0?b[0]:void0},vf.data.names=function(a){returnarguments.length?(Object.keys(a).forEach(function(b){ug[b]=a[b]}),pf(Cc(vf.data.targets),{withTransition:!0}),ug):ug},vf.x=function(a){returnarguments.length&&(qc(vf.data.targets,a),$e({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),vf.data.xs},vf.xs=function(a){returnarguments.length&&(rc(vf.data.targets,a),$e({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),vf.data.xs},vf.axis.labels=function(a){arguments.length&&(Object.keys(a).forEach(function(b){bb(b,a[b])}),Db())},vf.axis.max=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(sh=+a.y),b(a.y2)&&(Bh=+a.y2)):sh=Bh=+a,$e())},vf.axis.min=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(th=+a.y),b(a.y2)&&(Ch=+a.y2)):th=Ch=+a,$e())},vf.axis.range=function(a){arguments.length&&("undefined"!=typeofa.max&&vf.axis.max(a.max),"undefined"!=typeofa.min&&vf.axis.min(a.min))},vf.legend.show=function(a){nf(Dc(a)),$e({withLegend:!0})},vf.legend.hide=function(a){of(Dc(a)),$e({withLegend:!0})},vf.resize=function(a){yf=a?a.width:null,zf=a?a.height:null,df({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},vf.destroy=function(){vf.data.targets=void0,vf.data.xs={},hj.html(""),a.onresize=null},"url"ine.data)uf.xhr(e.data.url,function(a,b){varc,d=uf.csv.parseRows(b.response);1===d.length?(c=[{}],d[0].forEach(function(a){c[0][a]=null})):c=uf.csv.parse(b.response),Te(c)});elseif("rows"ine.data)Te(tc(e.data.rows));else{if(!("columns"ine.data))throwError("url or rows or columns is required.");Te(uc(e.data.columns))}returnvf},"function"==typeofa.define&&a.define.amd?a.define("c3",["d3"],e):a.c3=e}(window);