"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("../../utils/main.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e),i=["#5F47A4","#9078C8","#DC74FD","#F695B5","#CB4F4F","#896F65","#F3AE96","#EE7850","#DDAE67","#A6CA72","#62893D","#91C9C4","#38818D","#77B5F1","#3F4C99","#919DA4"],o={0:0,24:12,32:14,40:16,48:20,128:64,200:80},u=Object.entries(o).map((function(e){var t=n.default(e,2),r=t[0],i=t[1];return[Number(r),i]})).sort((function(e,t){return e[0]-t[0]})).map((function(e){var t=n.default(e,2);return{size:t[0],fontSize:t[1]}}));exports.ColorsArray=i,exports.SizeToFontSizeMap=o,exports.getColor=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=Math.abs(t.default.hashCode(e));return i[r%i.length]},exports.getFontSize=function(e){if(o[e])return o[e];var t=u.findIndex((function(t,r,n){var i=t.size;return e>i&&r<n.length-1&&e<n[r+1].size}));if(t<0)return e<u[0].size?u[0].fontSize:u.slice(-1)[0].fontSize;var r=u[t],n=u[t+1],i=(e-r.size)/(n.size-r.size);return r.fontSize+(n.fontSize-r.fontSize)*i};
//# sourceMappingURL=constants.js.map
