text: /*! Godie007 - 2017-04-28 */
  function toRadians(a){return a*(Math.PI/180)}function calculateArea(a){for(var b=0,c=360/a.length,d=0;d<a.length;d++){var e=a[d],f=a[d+1];d<a.length-1?(e=a[d],f=a[d+1]):(e=a[d],f=a[0]);var g=Math.sqrt(Math.pow(e,2)+Math.pow(f,2)-2*e*f*Math.cos(toRadians(c))),h=(e+f+g)/2;b+=Math.sqrt(h*(h-e)*(h-f)*(h-g))}return b}function calculatePercentage(a,b){var c=calculateAreaTotal(b);return 100-Math.abs((a-c)/c*100)}function calculateAreaTotal(a){for(var b=[],c=0;c<a;c++)b[c]=100;return calculateArea(b)}function calculateLevel(a,b){for(var c,d=0;d<a.ask.length;d++)if(b>=a.ask[d].min&&b<=a.ask[d].max){c=a.ask[d].nivel;break}return c}function calculateEdges(a){for(var b=[],c=[],d=0;d<a.length;d++){b.push(a[d].titulo);var e=Math.abs(parseInt(100*(parseInt($("#ent"+d).val())-a[d].min)/(a[d].max-a[d].min)));c.push(e)}return{labels:b,values:c}}var engine={calculateArea:calculateArea,calculatePercentage:calculatePercentage,calculateLevel:calculateLevel,calculateEdges:calculateEdges,calculateAreaTotal:calculateAreaTotal};"undefined"!=typeof window&&window&&(window.engine=engine),"undefined"!=typeof module&&module&&(module.exports=engine);
  //# sourceMappingURL=engine.min.js.map