starchart/web/dist/js/642.6ef406c4.js

2 lines
14 KiB
JavaScript

(self["webpackChunkstarchart"]=self["webpackChunkstarchart"]||[]).push([[642],{1642:function(r,n,e){"use strict";e.d(n,{W:function(){return l},i:function(){return t}});var a=e(778);function t(r){const n=a.hex.hsv(r);return n[0]}function l(r){return a.hex.rgb(r)}},3079:function(r,n,e){var a=e(4784),t={};for(var l in a)a.hasOwnProperty(l)&&(t[a[l]]=l);var o=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in o)if(o.hasOwnProperty(i)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);var u=o[i].channels,h=o[i].labels;delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:u}),Object.defineProperty(o[i],"labels",{value:h})}function s(r,n){return Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2)+Math.pow(r[2]-n[2],2)}o.rgb.hsl=function(r){var n,e,a,t=r[0]/255,l=r[1]/255,o=r[2]/255,i=Math.min(t,l,o),u=Math.max(t,l,o),h=u-i;return u===i?n=0:t===u?n=(l-o)/h:l===u?n=2+(o-t)/h:o===u&&(n=4+(t-l)/h),n=Math.min(60*n,360),n<0&&(n+=360),a=(i+u)/2,e=u===i?0:a<=.5?h/(u+i):h/(2-u-i),[n,100*e,100*a]},o.rgb.hsv=function(r){var n,e,a,t,l,o=r[0]/255,i=r[1]/255,u=r[2]/255,h=Math.max(o,i,u),s=h-Math.min(o,i,u),c=function(r){return(h-r)/6/s+.5};return 0===s?t=l=0:(l=s/h,n=c(o),e=c(i),a=c(u),o===h?t=a-e:i===h?t=1/3+n-a:u===h&&(t=2/3+e-n),t<0?t+=1:t>1&&(t-=1)),[360*t,100*l,100*h]},o.rgb.hwb=function(r){var n=r[0],e=r[1],a=r[2],t=o.rgb.hsl(r)[0],l=1/255*Math.min(n,Math.min(e,a));return a=1-1/255*Math.max(n,Math.max(e,a)),[t,100*l,100*a]},o.rgb.cmyk=function(r){var n,e,a,t,l=r[0]/255,o=r[1]/255,i=r[2]/255;return t=Math.min(1-l,1-o,1-i),n=(1-l-t)/(1-t)||0,e=(1-o-t)/(1-t)||0,a=(1-i-t)/(1-t)||0,[100*n,100*e,100*a,100*t]},o.rgb.keyword=function(r){var n=t[r];if(n)return n;var e,l=1/0;for(var o in a)if(a.hasOwnProperty(o)){var i=a[o],u=s(r,i);u<l&&(l=u,e=o)}return e},o.keyword.rgb=function(r){return a[r]},o.rgb.xyz=function(r){var n=r[0]/255,e=r[1]/255,a=r[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var t=.4124*n+.3576*e+.1805*a,l=.2126*n+.7152*e+.0722*a,o=.0193*n+.1192*e+.9505*a;return[100*t,100*l,100*o]},o.rgb.lab=function(r){var n,e,a,t=o.rgb.xyz(r),l=t[0],i=t[1],u=t[2];return l/=95.047,i/=100,u/=108.883,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,n=116*i-16,e=500*(l-i),a=200*(i-u),[n,e,a]},o.hsl.rgb=function(r){var n,e,a,t,l,o=r[0]/360,i=r[1]/100,u=r[2]/100;if(0===i)return l=255*u,[l,l,l];e=u<.5?u*(1+i):u+i-u*i,n=2*u-e,t=[0,0,0];for(var h=0;h<3;h++)a=o+1/3*-(h-1),a<0&&a++,a>1&&a--,l=6*a<1?n+6*(e-n)*a:2*a<1?e:3*a<2?n+(e-n)*(2/3-a)*6:n,t[h]=255*l;return t},o.hsl.hsv=function(r){var n,e,a=r[0],t=r[1]/100,l=r[2]/100,o=t,i=Math.max(l,.01);return l*=2,t*=l<=1?l:2-l,o*=i<=1?i:2-i,e=(l+t)/2,n=0===l?2*o/(i+o):2*t/(l+t),[a,100*n,100*e]},o.hsv.rgb=function(r){var n=r[0]/60,e=r[1]/100,a=r[2]/100,t=Math.floor(n)%6,l=n-Math.floor(n),o=255*a*(1-e),i=255*a*(1-e*l),u=255*a*(1-e*(1-l));switch(a*=255,t){case 0:return[a,u,o];case 1:return[i,a,o];case 2:return[o,a,u];case 3:return[o,i,a];case 4:return[u,o,a];case 5:return[a,o,i]}},o.hsv.hsl=function(r){var n,e,a,t=r[0],l=r[1]/100,o=r[2]/100,i=Math.max(o,.01);return a=(2-l)*o,n=(2-l)*i,e=l*i,e/=n<=1?n:2-n,e=e||0,a/=2,[t,100*e,100*a]},o.hwb.rgb=function(r){var n,e,a,t,l,o,i,u=r[0]/360,h=r[1]/100,s=r[2]/100,c=h+s;switch(c>1&&(h/=c,s/=c),n=Math.floor(6*u),e=1-s,a=6*u-n,0!==(1&n)&&(a=1-a),t=h+a*(e-h),n){default:case 6:case 0:l=e,o=t,i=h;break;case 1:l=t,o=e,i=h;break;case 2:l=h,o=e,i=t;break;case 3:l=h,o=t,i=e;break;case 4:l=t,o=h,i=e;break;case 5:l=e,o=h,i=t;break}return[255*l,255*o,255*i]},o.cmyk.rgb=function(r){var n,e,a,t=r[0]/100,l=r[1]/100,o=r[2]/100,i=r[3]/100;return n=1-Math.min(1,t*(1-i)+i),e=1-Math.min(1,l*(1-i)+i),a=1-Math.min(1,o*(1-i)+i),[255*n,255*e,255*a]},o.xyz.rgb=function(r){var n,e,a,t=r[0]/100,l=r[1]/100,o=r[2]/100;return n=3.2406*t+-1.5372*l+-.4986*o,e=-.9689*t+1.8758*l+.0415*o,a=.0557*t+-.204*l+1.057*o,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,n=Math.min(Math.max(0,n),1),e=Math.min(Math.max(0,e),1),a=Math.min(Math.max(0,a),1),[255*n,255*e,255*a]},o.xyz.lab=function(r){var n,e,a,t=r[0],l=r[1],o=r[2];return t/=95.047,l/=100,o/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,n=116*l-16,e=500*(t-l),a=200*(l-o),[n,e,a]},o.lab.xyz=function(r){var n,e,a,t=r[0],l=r[1],o=r[2];e=(t+16)/116,n=l/500+e,a=e-o/200;var i=Math.pow(e,3),u=Math.pow(n,3),h=Math.pow(a,3);return e=i>.008856?i:(e-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,a=h>.008856?h:(a-16/116)/7.787,n*=95.047,e*=100,a*=108.883,[n,e,a]},o.lab.lch=function(r){var n,e,a,t=r[0],l=r[1],o=r[2];return n=Math.atan2(o,l),e=360*n/2/Math.PI,e<0&&(e+=360),a=Math.sqrt(l*l+o*o),[t,a,e]},o.lch.lab=function(r){var n,e,a,t=r[0],l=r[1],o=r[2];return a=o/360*2*Math.PI,n=l*Math.cos(a),e=l*Math.sin(a),[t,n,e]},o.rgb.ansi16=function(r){var n=r[0],e=r[1],a=r[2],t=1 in arguments?arguments[1]:o.rgb.hsv(r)[2];if(t=Math.round(t/50),0===t)return 30;var l=30+(Math.round(a/255)<<2|Math.round(e/255)<<1|Math.round(n/255));return 2===t&&(l+=60),l},o.hsv.ansi16=function(r){return o.rgb.ansi16(o.hsv.rgb(r),r[2])},o.rgb.ansi256=function(r){var n=r[0],e=r[1],a=r[2];if(n===e&&e===a)return n<8?16:n>248?231:Math.round((n-8)/247*24)+232;var t=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(a/255*5);return t},o.ansi16.rgb=function(r){var n=r%10;if(0===n||7===n)return r>50&&(n+=3.5),n=n/10.5*255,[n,n,n];var e=.5*(1+~~(r>50)),a=(1&n)*e*255,t=(n>>1&1)*e*255,l=(n>>2&1)*e*255;return[a,t,l]},o.ansi256.rgb=function(r){if(r>=232){var n=10*(r-232)+8;return[n,n,n]}var e;r-=16;var a=Math.floor(r/36)/5*255,t=Math.floor((e=r%36)/6)/5*255,l=e%6/5*255;return[a,t,l]},o.rgb.hex=function(r){var n=((255&Math.round(r[0]))<<16)+((255&Math.round(r[1]))<<8)+(255&Math.round(r[2])),e=n.toString(16).toUpperCase();return"000000".substring(e.length)+e},o.hex.rgb=function(r){var n=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var e=n[0];3===n[0].length&&(e=e.split("").map((function(r){return r+r})).join(""));var a=parseInt(e,16),t=a>>16&255,l=a>>8&255,o=255&a;return[t,l,o]},o.rgb.hcg=function(r){var n,e,a=r[0]/255,t=r[1]/255,l=r[2]/255,o=Math.max(Math.max(a,t),l),i=Math.min(Math.min(a,t),l),u=o-i;return n=u<1?i/(1-u):0,e=u<=0?0:o===a?(t-l)/u%6:o===t?2+(l-a)/u:4+(a-t)/u+4,e/=6,e%=1,[360*e,100*u,100*n]},o.hsl.hcg=function(r){var n=r[1]/100,e=r[2]/100,a=1,t=0;return a=e<.5?2*n*e:2*n*(1-e),a<1&&(t=(e-.5*a)/(1-a)),[r[0],100*a,100*t]},o.hsv.hcg=function(r){var n=r[1]/100,e=r[2]/100,a=n*e,t=0;return a<1&&(t=(e-a)/(1-a)),[r[0],100*a,100*t]},o.hcg.rgb=function(r){var n=r[0]/360,e=r[1]/100,a=r[2]/100;if(0===e)return[255*a,255*a,255*a];var t=[0,0,0],l=n%1*6,o=l%1,i=1-o,u=0;switch(Math.floor(l)){case 0:t[0]=1,t[1]=o,t[2]=0;break;case 1:t[0]=i,t[1]=1,t[2]=0;break;case 2:t[0]=0,t[1]=1,t[2]=o;break;case 3:t[0]=0,t[1]=i,t[2]=1;break;case 4:t[0]=o,t[1]=0,t[2]=1;break;default:t[0]=1,t[1]=0,t[2]=i}return u=(1-e)*a,[255*(e*t[0]+u),255*(e*t[1]+u),255*(e*t[2]+u)]},o.hcg.hsv=function(r){var n=r[1]/100,e=r[2]/100,a=n+e*(1-n),t=0;return a>0&&(t=n/a),[r[0],100*t,100*a]},o.hcg.hsl=function(r){var n=r[1]/100,e=r[2]/100,a=e*(1-n)+.5*n,t=0;return a>0&&a<.5?t=n/(2*a):a>=.5&&a<1&&(t=n/(2*(1-a))),[r[0],100*t,100*a]},o.hcg.hwb=function(r){var n=r[1]/100,e=r[2]/100,a=n+e*(1-n);return[r[0],100*(a-n),100*(1-a)]},o.hwb.hcg=function(r){var n=r[1]/100,e=r[2]/100,a=1-e,t=a-n,l=0;return t<1&&(l=(a-t)/(1-t)),[r[0],100*t,100*l]},o.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]},o.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]},o.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]},o.gray.hsl=o.gray.hsv=function(r){return[0,0,r[0]]},o.gray.hwb=function(r){return[0,100,r[0]]},o.gray.cmyk=function(r){return[0,0,0,r[0]]},o.gray.lab=function(r){return[r[0],0,0]},o.gray.hex=function(r){var n=255&Math.round(r[0]/100*255),e=(n<<16)+(n<<8)+n,a=e.toString(16).toUpperCase();return"000000".substring(a.length)+a},o.rgb.gray=function(r){var n=(r[0]+r[1]+r[2])/3;return[n/255*100]}},778:function(r,n,e){var a=e(3079),t=e(9372),l={},o=Object.keys(a);function i(r){var n=function(n){return void 0===n||null===n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),r(n))};return"conversion"in r&&(n.conversion=r.conversion),n}function u(r){var n=function(n){if(void 0===n||null===n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var e=r(n);if("object"===typeof e)for(var a=e.length,t=0;t<a;t++)e[t]=Math.round(e[t]);return e};return"conversion"in r&&(n.conversion=r.conversion),n}o.forEach((function(r){l[r]={},Object.defineProperty(l[r],"channels",{value:a[r].channels}),Object.defineProperty(l[r],"labels",{value:a[r].labels});var n=t(r),e=Object.keys(n);e.forEach((function(e){var a=n[e];l[r][e]=u(a),l[r][e].raw=i(a)}))})),r.exports=l},9372:function(r,n,e){var a=e(3079);function t(){for(var r={},n=Object.keys(a),e=n.length,t=0;t<e;t++)r[n[t]]={distance:-1,parent:null};return r}function l(r){var n=t(),e=[r];n[r].distance=0;while(e.length)for(var l=e.pop(),o=Object.keys(a[l]),i=o.length,u=0;u<i;u++){var h=o[u],s=n[h];-1===s.distance&&(s.distance=n[l].distance+1,s.parent=l,e.unshift(h))}return n}function o(r,n){return function(e){return n(r(e))}}function i(r,n){var e=[n[r].parent,r],t=a[n[r].parent][r],l=n[r].parent;while(n[l].parent)e.unshift(n[l].parent),t=o(a[n[l].parent][l],t),l=n[l].parent;return t.conversion=e,t}r.exports=function(r){for(var n=l(r),e={},a=Object.keys(n),t=a.length,o=0;o<t;o++){var u=a[o],h=n[u];null!==h.parent&&(e[u]=i(u,n))}return e}},4784:function(r){"use strict";r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}]);
//# sourceMappingURL=642.6ef406c4.js.map