You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
446 KiB

3 years ago
/*! For license information please see main.js.LICENSE.txt */
3 years ago
(()=>{var e={792:function(e){e.exports=function(){"use strict";for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e<t?t:e>n?n:e},t={},n=0,a=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n<a.length;n+=1){var r=a[n];t["[object "+r+"]"]=r.toLowerCase()}var i=function(e){return t[Object.prototype.toString.call(e)]||"object"},o=Math.PI,s={clip_rgb:function(t){t._clipped=!1,t._unclipped=t.slice(0);for(var n=0;n<=3;n++)n<3?((t[n]<0||t[n]>255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},limit:e,type:i,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==i(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==i(e[t])?e[t].toLowerCase():null},PI:o,TWOPI:2*o,PITHIRD:o/3,DEG2RAD:o/180,RAD2DEG:180/o},l={format:{},autodetect:[]},c=s.last,d=s.clip_rgb,u=s.type,h=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===u(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var a=c(e),r=!1;if(!a){r=!0,l.sorted||(l.autodetect=l.autodetect.sort((function(e,t){return t.p-e.p})),l.sorted=!0);for(var i=0,o=l.autodetect;i<o.length;i+=1){var s=o[i];if(a=s.test.apply(s,e))break}}if(!l.format[a])throw new Error("unknown format: "+e);var h=l.format[a].apply(null,r?e:e.slice(0,-1));n._rgb=d(h),3===n._rgb.length&&n._rgb.push(1)};h.prototype.toString=function(){return"function"==u(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var f=h,p=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p.Color,[null].concat(e)))};p.Color=f,p.version="2.1.2";var m=p,g=s.unpack,y=Math.max,v=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=g(e,"rgb"),a=n[0],r=n[1],i=n[2],o=1-y(a/=255,y(r/=255,i/=255)),s=o<1?1/(1-o):0;return[(1-a-o)*s,(1-r-o)*s,(1-i-o)*s,o]},b=s.unpack,w=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=b(e,"cmyk"))[0],a=e[1],r=e[2],i=e[3],o=e.length>4?e[4]:1;return 1===i?[0,0,0,o]:[n>=1?0:255*(1-n)*(1-i),a>=1?0:255*(1-a)*(1-i),r>=1?0:255*(1-r)*(1-i),o]},D=s.unpack,x=s.type;f.prototype.cmyk=function(){return v(this._rgb)},m.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(f,[null].concat(e,["cmyk"])))},l.format.cmyk=w,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=D(e,"cmyk"),"array"===x(e)&&4===e.length)return"cmyk"}});var k=s.unpack,E=s.last,C=function(e){return Math.round(100*e)/100},A=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=k(e,"hsla"),a=E(e)||"lsa";return n[0]=C(n[0]||0),n[1]=C(100*n[1])+"%",n[2]=C(100*n[2])+"%","hsla"===a||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,a="hsla"):n.length=3,a+"("+n.join(",")+")"},T=s.unpack,$=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=T(e,"rgba"))[0],a=e[1],r=e[2];n/=255,a/=255,r/=255;var i,o,s=Math.min(n,a,r),l=Math.max(n,a,r),c=(l+s)/2;return l===s?(i=0,o=Number.NaN):i=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?o=(a-r)/(l-s):a==l?o=2+(r-n)/(l-s):r==l&&(o=4+(n-a)/(l-s)),(o*=60)<0&&(o+=360),e.length>3&&void 0!==e[3]?[o,i,c,e[3]]:[o,i,c]},S=s.unpack,M=s.last,q=Math.round,I=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=S(e,"rgba"),a=M(e)||"rgb";return"hsl"==a.substr(0,3)?A($(n),a):(n[0]=q(n[0]),n[1]=q(n[1]),n[2]=q(n[2]),("rgba"===a||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,a="rgba"),a+"("+n.slice(0,"rgb"===a?3:4).join(",")+")")},F=s.unpack,N=Math.round,O=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var a,r,i,o=(t=F(t,"hsl"))[0],s=t[1],l=t[2];if(0===s)a=r=i=255*l;else{var c=[0,0,0],d=[0,0,0],u=l<.5?l*(1+s):l+s-l*s,h=2*l-u,f=o/360;c[0]=f+1/3,c[1]=f,c[2]=f-1/3;for(var p=0;p<3;p++)c[p]<0&&(c[p]+=1),c[p]>1&&(c[p]-=1),6*c[p]<1?d[p]=h+6*(u-h)*c[p]:2*c[p]<1?d[p]=u:3*c[p]<2?d[p]=h+(u-h)*(2/3