"use strict";(self.webpackChunkegret_angular_latest_test=self.webpackChunkegret_angular_latest_test||[]).push([[1562],{11562:(j,b,k)=>{k.d(b,{YG:()=>z});var w=k(54438),y=k(60177);class v{r;g;b;a;constructor(s,e,i,t){this.r=s,this.g=e,this.b=i,this.a=t}}class A{h;s;v;a;constructor(s,e,i,t){this.h=s,this.s=e,this.v=i,this.a=t}}class C{h;s;l;a;constructor(s,e,i,t){this.h=s,this.s=e,this.l=i,this.a=t}}class f{c;m;y;k;a;constructor(s,e,i,t,o=1){this.c=s,this.m=e,this.y=i,this.k=t,this.a=o}}let N=(()=>{class n{active=null;setActive(e){this.active&&this.active!==e&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=e}hsva2hsla(e){const i=e.h,t=e.s,o=e.v,r=e.a;if(0===o)return new C(i,0,0,r);if(0===t&&1===o)return new C(i,1,1,r);{const l=o*(2-t)/2;return new C(i,o*t/(1-Math.abs(2*l-1)),l,r)}}hsla2hsva(e){const i=Math.min(e.h,1),t=Math.min(e.s,1),o=Math.min(e.l,1),r=Math.min(e.a,1);if(0===o)return new A(i,0,0,r);{const l=o+t*(1-Math.abs(2*o-1))/2;return new A(i,2*(l-o)/l,l,r)}}hsvaToRgba(e){let i,t,o;const r=e.h,l=e.s,a=e.v,c=e.a,d=Math.floor(6*r),u=6*r-d,p=a*(1-l),h=a*(1-u*l),g=a*(1-(1-u)*l);switch(d%6){case 0:i=a,t=g,o=p;break;case 1:i=h,t=a,o=p;break;case 2:i=p,t=a,o=g;break;case 3:i=p,t=h,o=a;break;case 4:i=g,t=p,o=a;break;case 5:i=a,t=p,o=h;break;default:i=0,t=0,o=0}return new v(i,t,o,c)}cmykToRgb(e){return new v((1-e.c)*(1-e.k),(1-e.m)*(1-e.k),(1-e.y)*(1-e.k),e.a)}rgbaToCmyk(e){const i=1-Math.max(e.r,e.g,e.b);return 1===i?new f(0,0,0,1,e.a):new f((1-e.r-i)/(1-i),(1-e.g-i)/(1-i),(1-e.b-i)/(1-i),i,e.a)}rgbaToHsva(e){let i,t;const o=Math.min(e.r,1),r=Math.min(e.g,1),l=Math.min(e.b,1),a=Math.min(e.a,1),c=Math.max(o,r,l),d=Math.min(o,r,l),u=c,p=c-d;if(t=0===c?0:p/c,c===d)i=0;else{switch(c){case o:i=(r-l)/p+(r<l?6:0);break;case r:i=(l-o)/p+2;break;case l:i=(o-r)/p+4;break;default:i=0}i/=6}return new A(i,t,u,a)}rgbaToHex(e,i){let t="#"+(16777216|e.r<<16|e.g<<8|e.b).toString(16).substr(1);return i&&(t+=(256|Math.round(255*e.a)).toString(16).substr(1)),t}normalizeCMYK(e){return new f(e.c/100,e.m/100,e.y/100,e.k/100,e.a)}denormalizeCMYK(e){return new f(Math.floor(100*e.c),Math.floor(100*e.m),Math.floor(100*e.y),Math.floor(100*e.k),e.a)}denormalizeRGBA(e){return new v(Math.round(255*e.r),Math.round(255*e.g),Math.round(255*e.b),e.a)}stringToHsva(e="",i=!1){let t=null;e=(e||"").toLowerCase();const o=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(r){return new v(parseInt(r[2],10)/255,parseInt(r[3],10)/255,parseInt(r[4],10)/255,isNaN(parseFloat(r[5]))?1:parseFloat(r[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(r){return new C(parseInt(r[2],10)/360,parseInt(r[3],10)/100,parseInt(r[4],10)/100,isNaN(parseFloat(r[5]))?1:parseFloat(r[5]))}}];o.push(i?{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(r){return new v(parseInt(r[1],16)/255,parseInt(r[2],16)/255,parseInt(r[3],16)/255,parseInt(r[4]||"FF",16)/255)}}:{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(r){return new v(parseInt(r[1],16)/255,parseInt(r[2],16)/255,parseInt(r[3],16)/255,1)}}),o.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(r){return new v(parseInt(r[1]+r[1],16)/255,parseInt(r[2]+r[2],16)/255,parseInt(r[3]+r[3],16)/255,1)}});for(const r in o)if(o.hasOwnProperty(r)){const l=o[r],a=l.re.exec(e),c=a&&l.parse(a);if(c)return c instanceof v?t=this.rgbaToHsva(c):c instanceof C&&(t=this.hsla2hsva(c)),t}return t}outputFormat(e,i,t){switch("auto"===i&&(i=e.a<1?"rgba":"hex"),i){case"hsla":const o=this.hsva2hsla(e),r=new C(Math.round(360*o.h),Math.round(100*o.s),Math.round(100*o.l),Math.round(100*o.a)/100);return e.a<1||"always"===t?"hsla("+r.h+","+r.s+"%,"+r.l+"%,"+r.a+")":"hsl("+r.h+","+r.s+"%,"+r.l+"%)";case"rgba":const l=this.denormalizeRGBA(this.hsvaToRgba(e));return e.a<1||"always"===t?"rgba("+l.r+","+l.g+","+l.b+","+Math.round(100*l.a)/100+")":"rgb("+l.r+","+l.g+","+l.b+")";default:const a="always"===t||"forced"===t;return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(e)),a)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=w.jDH({token:n,factory:n.\u0275fac})}return n})();typeof window<"u"&&window;let z=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=w.$C({type:n});static \u0275inj=w.G2t({providers:[N],imports:[y.MD]})}return n})()}}]);