Your IP : 18.191.198.245


Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/main/amcharts/3.21/
Upload File :
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/main/amcharts/3.21/funnel.min.js

(function(){var t=window.AmCharts;t.AmSlicedChart=t.Class({inherits:t.AmChart,construct:function(i){this.createEvents("rollOverSlice","rollOutSlice","clickSlice","pullOutSlice","pullInSlice","rightClickSlice");t.AmSlicedChart.base.construct.call(this,i);this.colors="#FF0F00 #FF6600 #FF9E01 #FCD202 #F8FF01 #B0DE09 #04D215 #0D8ECF #0D52D1 #2A0CD0 #8A0CCF #CD0D74 #754DEB #DDDDDD #999999 #333333 #000000 #57032A #CA9726 #990000 #4B0C25".split(" ");this.alpha=1;this.groupPercent=0;this.groupedTitle="Other";this.groupedPulled=!1;this.groupedAlpha=1;this.marginLeft=0;this.marginBottom=this.marginTop=10;this.marginRight=0;this.hoverAlpha=1;this.outlineColor="#FFFFFF";this.outlineAlpha=0;this.outlineThickness=1;this.startAlpha=0;this.startDuration=1;this.startEffect="bounce";this.sequencedAnimation=!0;this.pullOutDuration=1;this.pullOutEffect="bounce";this.pullOnHover=this.pullOutOnlyOne=!1;this.labelsEnabled=!0;this.labelTickColor="#000000";this.labelTickAlpha=.2;this.hideLabelsPercent=0;this.urlTarget="_self";this.autoMarginOffset=10;this.gradientRatio=[];this.maxLabelWidth=200;this.accessibleLabel="[[title]]: [[percents]]% [[value]] [[description]]";t.applyTheme(this,i,"AmSlicedChart")},initChart:function(){t.AmSlicedChart.base.initChart.call(this);this.dataChanged&&(this.parseData(),this.dispatchDataUpdated=!0,this.dataChanged=!1,this.setLegendData(this.chartData));this.drawChart()},handleLegendEvent:function(t){var i=t.type,e=t.dataItem,a=this.legend;if(e.wedge&&e){var s=e.hidden;t=t.event;switch(i){case"clickMarker":s||a.switchable||this.clickSlice(e,t);break;case"clickLabel":s||this.clickSlice(e,t,!1);break;case"rollOverItem":s||this.rollOverSlice(e,!1,t);break;case"rollOutItem":s||this.rollOutSlice(e,t);break;case"hideItem":this.hideSlice(e,t);break;case"showItem":this.showSlice(e,t)}}},invalidateVisibility:function(){this.recalculatePercents();this.initChart();var t=this.legend;t&&t.invalidateSize()},addEventListeners:function(t,i){var e=this;t.mouseover(function(t){e.rollOverSlice(i,!0,t)}).mouseout(function(t){e.rollOutSlice(i,t)}).touchend(function(t){e.rollOverSlice(i,t)}).mouseup(function(t){e.clickSlice(i,t)}).contextmenu(function(t){e.handleRightClick(i,t)})},formatString:function(i,e,a){i=t.formatValue(i,e,["value"],this.nf,"",this.usePrefixes,this.prefixesOfSmallNumbers,this.prefixesOfBigNumbers);var s=this.pf.precision;isNaN(this.tempPrec)||(this.pf.precision=this.tempPrec);i=t.formatValue(i,e,["percents"],this.pf);i=t.massReplace(i,{"[[title]]":e.title,"[[description]]":e.description});this.pf.precision=s;-1!=i.indexOf("[[")&&(i=t.formatDataContextValue(i,e.dataContext));i=a?t.fixNewLines(i):t.fixBrakes(i);return i=t.cleanFromEmpty(i)},startSlices:function(){var t;for(t=0;t<this.chartData.length;t++)0<this.startDuration&&this.sequencedAnimation?this.setStartTO(t):this.startSlice(this.chartData[t])},setStartTO:function(t){var i=this;t=setTimeout(function(){i.startSequenced.call(i)},i.startDuration/i.chartData.length*500*t);i.timeOuts.push(t)},pullSlices:function(t){var i=this.chartData,e;for(e=0;e<i.length;e++){var a=i[e];a.pulled&&this.pullSlice(a,1,t)}},startSequenced:function(){var t=this.chartData,i;for(i=0;i<t.length;i++)if(!t[i].started){this.startSlice(this.chartData[i]);break}},startSlice:function(t){t.started=!0;var i=t.wedge,e=this.startDuration,a=t.labelSet;i&&0<e&&(0<t.alpha&&i.show(),i.translate(t.startX,t.startY),this.animatable.push(i),i.animate({opacity:1,translate:"0,0"},e,this.startEffect));a&&0<e&&(0<t.alpha&&a.show(),a.translate(t.startX,t.startY),a.animate({opacity:1,translate:"0,0"},e,this.startEffect))},showLabels:function(){var t=this.chartData,i;for(i=0;i<t.length;i++){var e=t[i];if(0<e.alpha){var a=e.label;a&&a.show();(e=e.tick)&&e.show()}}},showSlice:function(t){isNaN(t)?t.hidden=!1:this.chartData[t].hidden=!1;this.invalidateVisibility()},hideSlice:function(t){isNaN(t)?t.hidden=!0:this.chartData[t].hidden=!0;this.hideBalloon();this.invalidateVisibility()},rollOverSlice:function(i,e,a){isNaN(i)||(i=this.chartData[i]);clearTimeout(this.hoverInt);if(!i.hidden){this.pullOnHover&&this.pullSlice(i,1);1>this.hoverAlpha&&i.wedge&&i.wedge.attr({opacity:this.hoverAlpha});var s=i.balloonX,h=i.balloonY;i.pulled&&(s+=i.pullX,h+=i.pullY);var l=this.formatString(this.balloonText,i,!0),r=this.balloonFunction;r&&(l=r(i,l));r=t.adjustLuminosity(i.color,-.15);l?this.showBalloon(l,r,e,s,h):this.hideBalloon();0===i.value&&this.hideBalloon();this.fire({type:"rollOverSlice",dataItem:i,chart:this,event:a})}},rollOutSlice:function(t,i){isNaN(t)||(t=this.chartData[t]);t.wedge&&t.wedge.attr({opacity:1});this.hideBalloon();this.fire({type:"rollOutSlice",dataItem:t,chart:this,event:i})},clickSlice:function(i,e,a){this.checkTouchDuration(e)&&(isNaN(i)||(i=this.chartData[i]),i.pulled?this.pullSlice(i,0):this.pullSlice(i,1),t.getURL(i.url,this.urlTarget),a||this.fire({type:"clickSlice",dataItem:i,chart:this,event:e}))},handleRightClick:function(t,i){isNaN(t)||(t=this.chartData[t]);this.fire({type:"rightClickSlice",dataItem:t,chart:this,event:i})},drawTicks:function(){var i=this.chartData,e;for(e=0;e<i.length;e++){var a=i[e];if(a.label&&!a.skipTick){var s=a.ty,s=t.line(this.container,[a.tx0,a.tx,a.tx2],[a.ty0,s,s],this.labelTickColor,this.labelTickAlpha);t.setCN(this,s,this.type+"-tick");t.setCN(this,s,a.className,!0);a.tick=s;a.wedge.push(s);"AmFunnelChart"==this.cname&&s.toBack()}}},initialStart:function(){var t=this,i=t.startDuration,e=setTimeout(function(){t.showLabels.call(t)},1e3*i);t.timeOuts.push(e);t.chartCreated?t.pullSlices(!0):(t.startSlices(),0<i?(i=setTimeout(function(){t.pullSlices.call(t)},1200*i),t.timeOuts.push(i)):t.pullSlices(!0))},pullSlice:function(t,i,e){var a=this.pullOutDuration;!0===e&&(a=0);if(e=t.wedge)0<a?(e.animate({translate:i*t.pullX+","+i*t.pullY},a,this.pullOutEffect),t.labelSet&&t.labelSet.animate({translate:i*t.pullX+","+i*t.pullY},a,this.pullOutEffect)):(t.labelSet&&t.labelSet.translate(i*t.pullX,i*t.pullY),e.translate(i*t.pullX,i*t.pullY));1==i?(t.pulled=!0,this.pullOutOnlyOne&&this.pullInAll(t.index),t={type:"pullOutSlice",dataItem:t,chart:this}):(t.pulled=!1,t={type:"pullInSlice",dataItem:t,chart:this});this.fire(t)},pullInAll:function(t){var i=this.chartData,e;for(e=0;e<this.chartData.length;e++)e!=t&&i[e].pulled&&this.pullSlice(i[e],0)},pullOutAll:function(){var t=this.chartData,i;for(i=0;i<t.length;i++)t[i].pulled||this.pullSlice(t[i],1)},parseData:function(){var i=[];this.chartData=i;var e=this.dataProvider;isNaN(this.pieAlpha)||(this.alpha=this.pieAlpha);if(void 0!==e){var a=e.length,s=0,h,l,r;for(h=0;h<a;h++){l={};var n=e[h];l.dataContext=n;null!==n[this.valueField]&&(l.value=Number(n[this.valueField]));(r=n[this.titleField])||(r="");l.title=r;l.pulled=t.toBoolean(n[this.pulledField],!1);(r=n[this.descriptionField])||(r="");l.description=r;l.labelRadius=Number(n[this.labelRadiusField]);l.switchable=!0;l.className=n[this.classNameField];l.url=n[this.urlField];r=n[this.patternField];!r&&this.patterns&&(r=this.patterns[h]);l.pattern=r;l.visibleInLegend=t.toBoolean(n[this.visibleInLegendField],!0);r=n[this.alphaField];l.alpha=void 0!==r?Number(r):this.alpha;r=n[this.colorField];void 0!==r&&(l.color=r);l.labelColor=t.toColor(n[this.labelColorField]);s+=l.value;l.hidden=!1;i[h]=l}for(h=e=0;h<a;h++)l=i[h],l.percents=l.value/s*100,l.percents<this.groupPercent&&e++;1<e&&(this.groupValue=0,this.removeSmallSlices(),i.push({title:this.groupedTitle,value:this.groupValue,percents:this.groupValue/s*100,pulled:this.groupedPulled,color:this.groupedColor,url:this.groupedUrl,description:this.groupedDescription,alpha:this.groupedAlpha,pattern:this.groupedPattern,className:this.groupedClassName,dataContext:{}}));a=this.baseColor;a||(a=this.pieBaseColor);s=this.brightnessStep;s||(s=this.pieBrightnessStep);for(h=0;h<i.length;h++)a?r=t.adjustLuminosity(a,h*s/100):(r=this.colors[h],void 0===r&&(r=t.randomColor())),void 0===i[h].color&&(i[h].color=r);this.recalculatePercents()}},recalculatePercents:function(){var t=this.chartData,i=0,e,a;for(e=0;e<t.length;e++)a=t[e],!a.hidden&&0<a.value&&(i+=a.value);for(e=0;e<t.length;e++)a=this.chartData[e],a.percents=!a.hidden&&0<a.value?100*a.value/i:0},removeSmallSlices:function(){var t=this.chartData,i;for(i=t.length-1;0<=i;i--)t[i].percents<this.groupPercent&&(this.groupValue+=t[i].value,t.splice(i,1))},animateAgain:function(){var t=this;t.startSlices();for(var i=0;i<t.chartData.length;i++){var e=t.chartData[i];e.started=!1;var a=e.wedge;a&&(a.setAttr("opacity",t.startAlpha),a.translate(e.startX,e.startY));if(a=e.labelSet)a.setAttr("opacity",t.startAlpha),a.translate(e.startX,e.startY)}i=t.startDuration;0<i?(i=setTimeout(function(){t.pullSlices.call(t)},1200*i),t.timeOuts.push(i)):t.pullSlices()},measureMaxLabel:function(){var i=this.chartData,e=0,a;for(a=0;a<i.length;a++){var s=i[a],h=this.formatString(this.labelText,s),l=this.labelFunction;l&&(h=l(s,h));s=t.text(this.container,h,this.color,this.fontFamily,this.fontSize);h=s.getBBox().width;h>e&&(e=h);s.remove()}return e}})})();(function(){var t=window.AmCharts;t.AmFunnelChart=t.Class({inherits:t.AmSlicedChart,construct:function(i){this.type="funnel";t.AmFunnelChart.base.construct.call(this,i);this.cname="AmFunnelChart";this.startX=this.startY=0;this.baseWidth="100%";this.neckHeight=this.neckWidth=0;this.rotate=!1;this.valueRepresents="height";this.pullDistance=30;this.labelPosition="center";this.labelText="[[title]]: [[value]]";this.balloonText="[[title]]: [[value]]\n[[description]]";t.applyTheme(this,i,this.cname)},drawChart:function(){t.AmFunnelChart.base.drawChart.call(this);var i=this.chartData;if(t.ifArray(i))if(0<this.realWidth&&0<this.realHeight){var e=Math.round(this.depth3D*Math.cos(this.angle*Math.PI/180)),a=Math.round(-this.depth3D*Math.sin(this.angle*Math.PI/180)),s=this.container,h=this.startDuration,l=this.rotate,r=this.updateWidth();this.realWidth=r;var n=this.updateHeight();this.realHeight=n;var o=t.toCoordinate,c=o(this.marginLeft,r),u=o(this.marginRight,r),d=o(this.marginTop,n)+this.getTitleHeight(),o=o(this.marginBottom,n);0<e&&0>a&&(this.neckHeight=this.neckWidth=0,l?o-=a/2:d-=a/2);var u=r-c-u,p=t.toCoordinate(this.baseWidth,u),f=t.toCoordinate(this.neckWidth,u),g=n-o-d,m=t.toCoordinate(this.neckHeight,g),v=d+g-m;l&&(d=n-o,v=d-g+m);this.firstSliceY=d;t.VML&&(this.startAlpha=1);for(var b=u/2+c,C=(g-m)/((p-f)/2),S=1,w=p/2,p=(g-m)*(p+f)/2+f*m,D=d,y=0,m=0;m<i.length;m++){var N=i[m],A;if(!0!==N.hidden&&(this.showZeroSlices||0!==N.percents)){var F=[],M=[],k;if("height"==this.valueRepresents)k=g*N.percents/100;else{var x=-p*N.percents/100/2,L=w;k=-1/(2*C);var O=Math.pow(L,2)-4*k*x;0>O&&(O=0);k=(Math.sqrt(O)-L)/(2*k);if(!l&&d>=v||l&&d<=v)k=2*-x/f;else if(!l&&d+k>v||l&&d-k<v)A=l?Math.round(k+(d-k-v)):Math.round(k-(d+k-v)),O=A/C,x=2*(-x-(L-O/2)*A)/f,Infinity!=x&&(k=A+x)}x=w-k/C;L=!1;!l&&d+k>v||l&&d-k<v?(x=f/2,F.push(b-w,b+w,b+x,b+x,b-x,b-x),l?(A=k+(d-k-v),d<v&&(A=0),M.push(d,d,d-A,d-k,d-k,d-A,d)):(A=k-(d+k-v),d>v&&(A=0),M.push(d,d,d+A,d+k,d+k,d+A,d)),L=!0):(F.push(b-w,b+w,b+x,b-x),l?M.push(d,d,d-k,d-k):M.push(d,d,d+k,d+k));A=s.set();0<e&&0>a?(M=x/w,F=-1,l||(F=1),isNaN(S)&&(S=0),F=new t.Cuboid(s,2*w,F*k,e,a*S,N.color,N.alpha,this.outlineThickness,this.outlineColor,this.outlineAlpha,90,0,!1,0,N.pattern,M).set,F.translate(b-w,d-a/2*S),S*=M):F=t.polygon(s,F,M,N.color,N.alpha,this.outlineThickness,this.outlineColor,this.outlineAlpha);t.setCN(this,A,"funnel-item");t.setCN(this,F,"funnel-slice");t.setCN(this,A,N.className,!0);A.push(F);this.graphsSet.push(A);l||A.toBack();N.wedge=A;N.index=m;if(M=this.gradientRatio){var O=[],T;for(T=0;T<M.length;T++)O.push(t.adjustLuminosity(N.color,M[T]));0<O.length&&F.gradient("linearGradient",O);N.pattern&&F.pattern(N.pattern,NaN,this.path)}0<h&&(this.chartCreated||A.setAttr("opacity",this.startAlpha));this.addEventListeners(A,N);N.ty0=l?d-k/2:d+k/2;this.labelsEnabled&&this.labelText&&N.percents>=this.hideLabelsPercent&&(M=this.formatString(this.labelText,N),(F=this.labelFunction)&&(M=F(N,M)),O=N.labelColor,O||(O=this.color),F=this.labelPosition,T="left","center"==F&&(T="middle"),"left"==F&&(T="right"),""!==M&&(M=t.wrappedText(s,M,O,this.fontFamily,this.fontSize,T,!1,this.maxLabelWidth),t.setCN(this,M,"funnel-label"),t.setCN(this,M,N.className,!0),M.node.style.pointerEvents="none",A.push(M),O=b,l?(T=d-k/2,N.ty0=T):(T=d+k/2,N.ty0=T,T<D+y+5&&(T=D+y+5),T>n-o&&(T=n-o)),"right"==F&&(O=u+10+c,N.tx0=b+(w-k/2/C),L&&(N.tx0=b+x)),"left"==F&&(N.tx0=b-(w-k/2/C),L&&(N.tx0=b-x),O=c),N.label=M,N.labelX=O,N.labelY=T,N.labelHeight=M.getBBox().height,M.translate(O,T),w=M.getBBox(),D=t.rect(s,w.width+5,w.height+5,"#ffffff",.005),D.translate(O+w.x,T+w.y),A.push(D),N.hitRect=D,y=M.getBBox().height,D=T));(0===N.alpha||0<h&&!this.chartCreated)&&A.hide();d=l?d-k:d+k;w=x;N.startX=t.toCoordinate(this.startX,r);N.startY=t.toCoordinate(this.startY,n);N.pullX=t.toCoordinate(this.pullDistance,r);N.pullY=0;N.balloonX=b;N.balloonY=N.ty0;this.accessible&&this.accessibleLabel&&(N=this.formatString(this.accessibleLabel,N),this.makeAccessible(A,N));void 0!==this.tabIndex&&A.setAttr("tabindex",this.tabIndex)}}this.arrangeLabels();this.initialStart();(i=this.legend)&&i.invalidateSize()}else this.cleanChart();this.dispDUpd()},arrangeLabels:function(){var t=this.rotate,i;i=t?0:this.realHeight;for(var e=0,a=this.chartData,s=a.length,h,l=0;l<s;l++){h=a[s-l-1];var r=h.label,n=h.labelY,o=h.labelX,c=h.labelHeight,u=n;t?i+e+5>n&&(u=i+e+5):n+c+5>i&&(u=i-5-c);i=u;e=c;r&&(r.translate(o,u),r=r.getBBox(),h.hitRect&&h.hitRect.translate(o+r.x,u+r.y));h.labelY=u;h.tx=o;h.ty=u;h.tx2=o}"center"!=this.labelPosition&&this.drawTicks()}})})();(function(){var t=window.AmCharts;t.Cuboid=t.Class({construct:function(t,i,e,a,s,h,l,r,n,o,c,u,d,p,f,g,m){this.set=t.set();this.container=t;this.h=Math.round(e);this.w=Math.round(i);this.dx=a;this.dy=s;this.colors=h;this.alpha=l;this.bwidth=r;this.bcolor=n;this.balpha=o;this.dashLength=p;this.topRadius=g;this.pattern=f;this.rotate=d;this.bcn=m;d?0>i&&0===c&&(c=180):0>e&&270==c&&(c=90);this.gradientRotation=c;0===a&&0===s&&(this.cornerRadius=u);this.draw()},draw:function(){var i=this.set;i.clear();var e=this.container,a=e.chart,s=this.w,h=this.h,l=this.dx,r=this.dy,n=this.colors,o=this.alpha,c=this.bwidth,u=this.bcolor,d=this.balpha,p=this.gradientRotation,f=this.cornerRadius,g=this.dashLength,m=this.pattern,v=this.topRadius,b=this.bcn,C=n,S=n;"object"==typeof n&&(C=n[0],S=n[n.length-1]);var w,D,y,N,A,F,M,k,x,L=o;m&&(o=0);var O,T,B,R,I=this.rotate;if(0<Math.abs(l)||0<Math.abs(r))if(isNaN(v))M=S,S=t.adjustLuminosity(C,-.2),S=t.adjustLuminosity(C,-.2),w=t.polygon(e,[0,l,s+l,s,0],[0,r,r,0,0],S,o,1,u,0,p),0<d&&(x=t.line(e,[0,l,s+l],[0,r,r],u,d,c,g)),D=t.polygon(e,[0,0,s,s,0],[0,h,h,0,0],S,o,1,u,0,p),D.translate(l,r),0<d&&(y=t.line(e,[l,l],[r,r+h],u,d,c,g)),N=t.polygon(e,[0,0,l,l,0],[0,h,h+r,r,0],S,o,1,u,0,p),A=t.polygon(e,[s,s,s+l,s+l,s],[0,h,h+r,r,0],S,o,1,u,0,p),0<d&&(F=t.line(e,[s,s+l,s+l,s],[0,r,h+r,h],u,d,c,g)),S=t.adjustLuminosity(M,.2),M=t.polygon(e,[0,l,s+l,s,0],[h,h+r,h+r,h,h],S,o,1,u,0,p),0<d&&(k=t.line(e,[0,l,s+l],[h,h+r,h+r],u,d,c,g));else{var P,Y,E;I?(P=h/2,S=l/2,E=h/2,Y=s+l/2,T=Math.abs(h/2),O=Math.abs(l/2)):(S=s/2,P=r/2,Y=s/2,E=h+r/2+1,O=Math.abs(s/2),T=Math.abs(r/2));B=O*v;R=T*v;.1<O&&.1<O&&(w=t.circle(e,O,C,o,c,u,d,!1,T),w.translate(S,P));.1<B&&.1<B&&(M=t.circle(e,B,t.adjustLuminosity(C,.5),o,c,u,d,!1,R),M.translate(Y,E))}o=L;1>Math.abs(h)&&(h=0);1>Math.abs(s)&&(s=0);!isNaN(v)&&(0<Math.abs(l)||0<Math.abs(r))?(n=[C],n={fill:n,stroke:u,"stroke-width":c,"stroke-opacity":d,"fill-opacity":o},I?(o="M0,0 L"+s+","+(h/2-h/2*v),c=" B",0<s&&(c=" A"),t.VML?(o+=c+Math.round(s-B)+","+Math.round(h/2-R)+","+Math.round(s+B)+","+Math.round(h/2+R)+","+s+",0,"+s+","+h,o=o+(" L0,"+h)+(c+Math.round(-O)+","+Math.round(h/2-T)+","+Math.round(O)+","+Math.round(h/2+T)+",0,"+h+",0,0")):(o+="A"+B+","+R+",0,0,0,"+s+","+(h-h/2*(1-v))+"L0,"+h,o+="A"+O+","+T+",0,0,1,0,0"),O=90):(c=s/2-s/2*v,o="M0,0 L"+c+","+h,t.VML?(o="M0,0 L"+c+","+h,c=" B",0>h&&(c=" A"),o+=c+Math.round(s/2-B)+","+Math.round(h-R)+","+Math.round(s/2+B)+","+Math.round(h+R)+",0,"+h+","+s+","+h,o+=" L"+s+",0",o+=c+Math.round(s/2+O)+","+Math.round(T)+","+Math.round(s/2-O)+","+Math.round(-T)+","+s+",0,0,0"):(o+="A"+B+","+R+",0,0,0,"+(s-s/2*(1-v))+","+h+"L"+s+",0",o+="A"+O+","+T+",0,0,1,0,0"),O=180),e=e.path(o).attr(n),e.gradient("linearGradient",[C,t.adjustLuminosity(C,-.3),t.adjustLuminosity(C,-.3),C],O),I?e.translate(l/2,0):e.translate(0,r/2)):e=0===h?t.line(e,[0,s],[0,0],u,d,c,g):0===s?t.line(e,[0,0],[0,h],u,d,c,g):0<f?t.rect(e,s,h,n,o,c,u,d,f,p,g):t.polygon(e,[0,0,s,s,0],[0,h,h,0,0],n,o,c,u,d,p,!1,g);s=isNaN(v)?0>h?[w,x,D,y,N,A,F,M,k,e]:[M,k,D,y,N,A,w,x,F,e]:I?0<s?[w,e,M]:[M,e,w]:0>h?[w,e,M]:[M,e,w];t.setCN(a,e,b+"front");t.setCN(a,D,b+"back");t.setCN(a,M,b+"top");t.setCN(a,w,b+"bottom");t.setCN(a,N,b+"left");t.setCN(a,A,b+"right");for(w=0;w<s.length;w++)if(D=s[w])i.push(D),t.setCN(a,D,b+"element");m&&e.pattern(m,NaN,a.path)},width:function(t){isNaN(t)&&(t=0);this.w=Math.round(t);this.draw()},height:function(t){isNaN(t)&&(t=0);this.h=Math.round(t);this.draw()},animateHeight:function(i,e){var a=this;a.animationFinished=!1;a.easing=e;a.totalFrames=i*t.updateRate;a.rh=a.h;a.frame=0;a.height(1);setTimeout(function(){a.updateHeight.call(a)},1e3/t.updateRate)},updateHeight:function(){var i=this;i.frame++;var e=i.totalFrames;i.frame<=e?(e=i.easing(0,i.frame,1,i.rh-1,e),i.height(e),window.requestAnimationFrame?window.requestAnimationFrame(function(){i.updateHeight.call(i)}):setTimeout(function(){i.updateHeight.call(i)},1e3/t.updateRate)):(i.height(i.rh),i.animationFinished=!0)},animateWidth:function(i,e){var a=this;a.animationFinished=!1;a.easing=e;a.totalFrames=i*t.updateRate;a.rw=a.w;a.frame=0;a.width(1);setTimeout(function(){a.updateWidth.call(a)},1e3/t.updateRate)},updateWidth:function(){var i=this;i.frame++;var e=i.totalFrames;i.frame<=e?(e=i.easing(0,i.frame,1,i.rw-1,e),i.width(e),window.requestAnimationFrame?window.requestAnimationFrame(function(){i.updateWidth.call(i)}):setTimeout(function(){i.updateWidth.call(i)},1e3/t.updateRate)):(i.width(i.rw),i.animationFinished=!0)}})})();
//# sourceMappingURL=funnel.map.js