var Zk=M.U(M,"AdfDhtmlChooseColorBasePeer");v("AdfDhtmlChooseColorBasePeer",Zk);Zk.Rq="lastUsedColor";Zk.Co="colorValue";Zk.prototype.sJ=function(a,b,d){a.setProperty(b,d)};z.a("AdfDhtmlChooseColorBasePeer.prototype.handleUpdateFromInputComponent",{sJ:Zk.prototype.sJ});
Zk.m=function(){z.kb(AdfRichChooseColor);z.kb(AdfRichInputColor);z.kb(AdfUIValue);z.kb($k);this.yW=new TrColorConverter(["#RRGGBB"],l);M.ha(this,I.jb,I.ec,I.qd,ab.ga);M.hb(this,Zk.Co,Zk.Rq,AdfRichChooseColor.DEFAULT_COLOR,AdfRichChooseColor.CUSTOM_COLOR_DATA);M.$b(this,AdfRichChooseColor.CUSTOM_COLOR_DATA,AdfRichChooseColor.COLOR_DATA,AdfRichChooseColor.WIDTH,Zk.Rq,AdfRichChooseColor.DEFAULT_COLOR);this.yM="_adfSw";this.AL="_adfSwBtn";this.cU="_adfClr";this.v6="LucBtn";this.E5="DfcBtn";this.YIa="cstcBtn";
this.C5="ccRow";this.$Ia="ccWrap";this.jF="ccPnl";this.ZIa="tb";this.o7=0;this.Aqa=1;this.yqa=2;this.Cqa=3;this.Bqa=4;this.wH={};this.HW={};this.KH={};this.xOa="stdTbl";this.FXa()};v("AdfDhtmlChooseColorBasePeer.InitSubclass",Zk.m);Zk.gG=function(a){return a==n?n:this.yW.getAsString(a)};Zk.FW=function(a){return a==n?n:this.yW.getAsObject(a)};Zk.e1=function(a){B.s(a);for(var b=a.length,d=0;d<b;d++)if(-1=="0123456789".indexOf(a.charAt(d)))return n;a=parseInt(a);return!isNaN(a)&&0<=a&&255>=a?a:n};
v("AdfDhtmlChooseColorBasePeer.parse0To255",Zk.e1);Zk.Fha=function(a){B.s(a);var b=a;if(6!=a.length)b=n;else for(var d=0;6>d;d++)if(-1=="0123456789ABCDEFabcdef".indexOf(a.charAt(d))){b=n;break}b!=n&&(b=parseInt(a,16));return b};v("AdfDhtmlChooseColorBasePeer.parseHexColor",Zk.Fha);Zk.prototype.q=function(a,b){Zk.f.q.call(this,a,b);var d=al.c0(a.e());d!=n&&d.k().H0(d)};z.a("AdfDhtmlChooseColorBasePeer.prototype.InitDomElement",{q:Zk.prototype.q});
function bl(a){a=a.getAttribute(Zk.yM);return a!=n&&"No Color"!=a?Zk.FW(a):n}Zk.prototype.IK=function(a){a=M.g(a.e(),Zk.v6);if(a=w.b.getElementById(a))return a=a.getAttribute(Zk.cU),Zk.FW(a)};z.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentLastUsedColor",{IK:Zk.prototype.IK});Zk.prototype.HK=function(a){a=M.g(a.e(),Zk.E5);a=w.b.getElementById(a).getAttribute(Zk.cU);return Zk.FW(a)};z.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentDefaultColor",{HK:Zk.prototype.HK});Zk.prototype.JK=function(a){return cl(a).length};
z.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentWidth",{JK:Zk.prototype.JK});function cl(a){var b=M.g(a.e(),Zk.xOa);a=w.b;b=a.getElementById(b);return a.nJ(b)}Zk.prototype.GK=function(a){a=cl(a);for(var b=a.length,d=[],e=n,f=0;f<b;f++)e=dl(a[f]),d=d.concat(e);return d};z.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentColorData",{GK:Zk.prototype.GK});Zk.prototype.cE=function(a){a=M.g(a.e(),Zk.C5);if(a=w.b.getElementById(a))return dl(a)};
z.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentCustomColorData",{cE:Zk.prototype.cE});
Zk.prototype.wK=function(a,b,d){b=M.g(a.e(),Zk.C5);b=w.b.getElementById(b);var e=d,f=b.childNodes,g=f.length,h=n,m=n,q=w.b,s=n,y=0;q.gc(b);e==n&&(e=[]);for(var A=0;A<g;A++)if(h=f[A],"TD"==q.Ga(h))if(m=h.firstChild,s=e[y],y++,H.F(m,"p_AFEmpty"),s!=n){var C=Zk.gG(s);m.setAttribute(Zk.yM,C);m.style.backgroundColor=C;C!=n&&(C=C.substring(1));C+=" / "+s.red+","+s.green+","+s.blue;m.setAttribute("alt",C);m.setAttribute("title",C);H.F(h,"p_AFDisabled")}else H.n(m,"p_AFEmpty");q.wa(b);al.Ev(a,AdfRichChooseColor.CUSTOM_COLOR_DATA,
AdfRichInputColor.CUSTOM_COLOR_DATA,d)};z.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentCustomColorDataChanged",{wK:Zk.prototype.wK});
Zk.prototype.Qja=function(a,b,d,e){var f=a.e(),g=n,h=n;switch(el(f)){case Zk.Aqa:g=Zk.wH[f];h=fl(a,d,p);break;case Zk.yqa:g=fl(a,e,p);h=this.Qo(f);break;case Zk.o7:case Zk.Bqa:g=fl(a,e,l);h=fl(a,d,p);break;case Zk.Cqa:g=Zk.wH[f],h=this.Qo(f)}if(h==n&&d!=n){if(b=this.cE(a,b)){e=b.length;f=n;if(b[e-1]!=n)f=b.slice(),f.splice(0,1),f[e-1]=d;else{f=b.slice();for(i=0;i<e;i++)if(f[i]==n){f[i]=d;break}}al.Ev(a,AdfRichChooseColor.CUSTOM_COLOR_DATA,AdfRichInputColor.CUSTOM_COLOR_DATA,f);a.setProperty(AdfRichChooseColor.CUSTOM_COLOR_DATA,
f)}h=fl(a,d,p)}d=h;g!=d&&(b=this.d().e(),g!=n&&g.parentNode!=n&&H.F(g.parentNode,"p_AFSelected"),Zk.wH[b]=g,d!=n&&H.n(d.parentNode,"p_AFSelected"),Zk.HW[b]=d,Zk.KH[b]=Zk.Bqa);al.Ev(a,Zk.Co,AdfUIValue.VALUE)};z.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentColorValueChanged",{Qja:Zk.prototype.Qja});Zk.prototype.cka=function(a,b,d){if(b=M.g(a.e(),Zk.v6))gl(b,d),al.Ev(a,Zk.Rq,$k.Rq)};z.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentLastUsedColorChanged",{cka:Zk.prototype.cka});
Zk.prototype.Vja=function(a,b,d){a=M.g(a.e(),Zk.E5);gl(a,d)};z.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentDefaultColorChanged",{Vja:Zk.prototype.Vja});
Zk.prototype.C=function(a){var b=a.getSource(),d=a.Q(),e=w.b;if(this.Um!=n)a.cancel();else{var f=d;"TD"==w.b.Ga(d)&&(f=d.firstChild);hl(f)?(d="TD"==e.Ga(d)?d.firstChild:d,e=b.e(),f=this.Qo(e),Zk.wH[e]=f,Zk.HW[e]=d,f=el(e),Zk.KH[e]=f!=Zk.o7?Zk.Cqa:Zk.yqa,d=bl(d),b.setProperty(Zk.Co,d,p,l),b.setProperty(Zk.Rq,d,p,J.Ta),a.cancel(),al.Sy(b,l)):d.getAttribute(Zk.AL)!=n&&(d=d.getAttribute(Zk.AL),d==Zk.v6?(d=b.r(Zk.Rq),b.setProperty(Zk.Co,d,p,l),al.Ev(b,Zk.Co,AdfUIValue.VALUE),al.Sy(b)):d==Zk.E5?(d=b.r(AdfRichChooseColor.DEFAULT_COLOR),
b.setProperty(Zk.Co,d,p,l),al.Sy(b)):d==Zk.YIa&&(d=il(b),e=b.r(Zk.Co),this.Um==n&&(this.Um=new Zk.wb(e,d,this)),e=il(b),d=w.b.getElementById(e),e=M.g(e,Zk.ZIa),w.b.getElementById(e),d.parentNode.removeChild(d),this.fe(b,d,n,Zk.jF),this.Um.Dv(),this.Um.I5a()),a.cancel())}};z.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentClick",{C:Zk.prototype.C});
function il(a){return"old"==F.c.u().ka("af|dialog-tr-button-type")?M.g(a.e(),Zk.jF):"AdfRichPopup"==a.getParent().qh()?a.getParent().getParent().e()+"_"+Zk.jF:a.e()+"_"+Zk.jF}function hl(a){return a&&a.attributes&&a.getAttribute(Zk.yM)!=n}
Zk.prototype.Ak=function(a,b){var d,e;switch(b){case E.Ya:case E.Ja:if(d=b==E.Ya?H.nc(a.parentNode):H.Cb(a.parentNode))e=H.Ub(a),d=H.Tj(d,a.nodeType,e);break;case E.Lb:d=H.Cb(a);!d&&a.parentNode!=n&&(e=H.Cb(a.parentNode))&&(d=H.ca(e));d&&H.ta(d,"p_AFDisabled")&&(d=n);break;case E.Kb:d=H.nc(a),!d&&a.parentNode!=n&&(e=H.nc(a.parentNode))&&(d=H.$l(e))}d&&(a&&a.setAttribute("tabIndex","-1"),d.setAttribute("tabIndex","0"),O.ra(d))};
Zk.prototype.ba=function(a){this.d();var b=w.b,d=a.L(),b=b.ia(d);if(!d.ctrlKey)switch(b){case E.Ya:case E.Ja:case E.Lb:case E.Kb:return d=a.Q(),this.Um!=n?this.Um.Ak(d,b):hl(d.firstChild)&&this.Ak(d,b),a.cancel(),p}};z.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentKeyDown",{ba:Zk.prototype.ba});
Zk.prototype.pa=function(a){var b=this.d(),d=w.b,e=a.L(),d=d.ia(e);if(!e.ctrlKey)switch(d){case E.$a:case E.zd:e=a.Q().firstChild;hl(e)&&(H.n(e,"p_AFSelected"),e=bl(e),b.setProperty(Zk.Co,e,p,l),al.Sy(b,l),a.cancel());break;case E.xh:al.Sy(b,l),a.cancel()}};z.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentKeyUp",{pa:Zk.prototype.pa});
Zk.prototype.Va=function(a,b,d){Zk.f.Va.call(this,a,b);d==Zk.jF&&(b=il(a),b=w.b.getElementById(b),a=M.g(a.e(),Zk.$Ia),w.b.getElementById(a).appendChild(b),this.Um=n)};z.a("AdfDhtmlChooseColorBasePeer.prototype.PopupClosed",{Va:Zk.prototype.Va});Zk.prototype.qf=function(a){var b=this.d();if(a.Xj()==ab.fl){var d=this.Um.m3a(),e=b.e(),f=this.Qo(e);Zk.wH[e]=f;Zk.KH[e]=Zk.Aqa;b.setProperty(Zk.Co,d,p,l);b.setProperty(Zk.Rq,d,p,J.Ta)}a.cancel();this.ob(this.d(),Zk.jF);al.Sy(b)};
z.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentDialog",{qf:Zk.prototype.qf});function fl(a,b,d){b=Zk.gG(b);var e=n;a:{for(var e=cl(a),f=e.length,g=0;g<f;g++)for(var h=H.ca(e[g]);h;){if(!d||H.ta(h,"p_AFSelected")){var m=H.ca(h),q=m.getAttribute(Zk.yM);"No Color"==q&&(q=n);if(q==b){e=m;break a}}h=H.Cb(h)}e=n}if(!e)a:{a=M.g(a.e(),Zk.C5);if(a=w.b.getElementById(a))for(a=H.ca(a);a;){if(!H.ta(a,"p_AFDisabled")&&(d=H.ca(a),d.getAttribute(Zk.yM)==b)){e=d;break a}a=H.Cb(a)}e=n}return e}
function gl(a,b){var d=w.b.getElementById(a);if(d)if(H.F(d,"p_AFEmpty"),b!=n){var e=Zk.gG(b);d.style.backgroundColor=e;d.setAttribute(Zk.cU,e)}else H.n(d,"p_AFEmpty"),d.removeAttribute(Zk.cU)}function dl(a){var b=[];a=a.childNodes;for(var d=a.length,e=n,f=w.b,e=n,g=0,h=0;h<d;h++)e=a[h],"TD"==f.Ga(e)&&(e=e.firstChild,hl(e)?b[g]=bl(e):b[g]=n,g++);return b}Zk.prototype.Qo=function(a){return Zk.HW[a]};function el(a){var b=Zk.KH[a];b||(Zk.KH[a]=b=Zk.o7);return b}
Zk.C8a=function(){Zk.D7=function(){this.Init()};z.l(Zk.D7,z,"AdfDhtmlChooseColorBasePeer._SwatchSelectionHandler");Zk.D7.prototype.Init=function(){Zk.D7.f.Init.call(this);this.wH={};this.HW={};this.KH={}}};
Zk.FXa=function(){Zk.wb=function(a,b,d){this.Init(a,b,d)};z.l(Zk.wb,z,"AdfDhtmlChooseColorBasePeer._CustomPanelHandler");Zk.wb.prototype.Init=function(a,b){Zk.wb.f.Init.call(this);this.xj=b;var d=Zk.gG(a),d=d!=n&&0!=a.alpha?d.substring(1):"3F7B7B",e=Zk.wb;this.PG=M.g(b,e.xKa);this.jG=M.g(b,e.SIa);this.zB=M.g(b,e.kLa);this.Eba=M.g(b,e.jLa);this.QH=M.g(b,e.bPa);this.sTa=M.g(b,e.XIa);this.KZa=M.g(b,e.hNa);this.AX=M.g(b,e.Foa);this.IP=M.g(b,e.pqa);this.lO=M.g(b,e.voa);this.aN=M.g(b,e.Wma);this.Uza=Zk.wb.kl.jBa(16777215);
d=Zk.Fha(d);this.sf=this.JZa=Zk.wb.kl.jBa(d);this.GXa();this.mSa()};Zk.wb.prototype.GXa=function(){var a=w.b,b=a.getElementById(this.jG);this.UIa=this.DG(a,b,"width");this.TIa=this.DG(a,b,"height");this.JL=Math.floor(this.UIa/2);this.jU=Math.floor(this.TIa/2);b=a.getElementById(this.QH);this.x7=this.DG(a,b,"height");b=a.getElementById(this.zB);this.w7=this.DG(a,b,"height");b=a.getElementById(this.PG);this.k6=this.DG(a,b,"width");this.zU=this.DG(a,b,"height")};Zk.wb.da=function(){this.o6a="_afrCrossHairWidth";
this.n6a="_afrCrossHairHeight";this.f7a="_afrThumbHeight";this.g7a="_afrSliderHeight";this.j6a="_afrColorImgWidth";this.k6a="_afrColorImgHeight";this.xKa="hueSatMap";this.A6a="hueSatImg";this.SIa="crossHair";this.kLa="lumMap";this.jLa="lumImg";this.bPa="thumb";this.Foa="hEdit";this.pqa="rEdit";this.voa="gEdit";this.Wma="bEdit";this.hNa="cstPrevSwtch";this.XIa="cstCurSwtch";F.c.u()};Zk.wb.prototype.DG=function(a,b,d){var e=0;b=a.getComputedStyle(b);a=a.$i(b,d);a!=n&&(e=w.ua(a));return e};Zk.wb.prototype.mSa=
function(){var a=this.xj;customHandlerClass=Zk.wb;var b=w.b,d=M.g(a,customHandlerClass.Foa),d=b.getElementById(d),e=this.o(this.zO);b.S(d,"change",e);d=M.g(a,customHandlerClass.pqa);d=b.getElementById(d);e=this.o(this.zO);b.S(d,"change",e);d=M.g(a,customHandlerClass.voa);d=w.b.getElementById(d);e=this.o(this.zO);b.S(d,"change",e);a=M.g(a,customHandlerClass.Wma);d=w.b.getElementById(a);e=this.o(this.zO);b.S(d,"change",e)};Zk.wb.prototype.m3a=function(){return Zk.FW("#"+this.sf.s0())};Zk.wb.prototype.zO=
function(a){targetElementId=w.b.T(a).getAttribute("id");targetElementId==this.AX?this.WZa(a):targetElementId==this.IP?this.c_a(a):targetElementId==this.lO?this.UZa(a):targetElementId==this.aN&&this.OZa(a)};Zk.wb.prototype.I5a=function(){this.HAa(this.KZa,this.JZa)};Zk.wb.prototype.H5a=function(){this.HAa(this.sTa,this.sf)};Zk.wb.prototype.HAa=function(a,b){w.b.getElementById(a).style.backgroundColor="#"+b.s0()};Zk.wb.prototype.Dv=function(a){this.H5a();a!=this.PG&&a!=this.zB&&(this.X1a(),this.Z1a());
a!=this.zB&&this.Y1a();a!=this.AX&&this.CAa();a!=this.IP&&(a!=this.lO&&a!=this.aN)&&(this.FAa(),this.BAa(),this.AAa())};Zk.wb.prototype.JCa=function(a){var b=a.Q(),d=a.L();targetElementId=b.getAttribute("id");if(targetElementId==this.PG||targetElementId==this.jG)this.YZa(d),a.cancel();else if(targetElementId==this.zB||targetElementId==this.Eba||targetElementId==this.QH)this.PZa(d),a.cancel()};Zk.wb.prototype.X1a=function(){var a=this.sf,b=w.b.getElementById(this.jG),d=this.k6;b.style.top=(1-a.GH)*
this.zU-this.jU+"px";F.c.Ma().Oa()?b.style.left=d-a.kB*d/360-this.JL+"px":b.style.left=a.kB*d/360-this.JL+"px"};Zk.wb.prototype.Ak=function(a,b){switch(b){case E.Ya:case E.Ja:case E.Lb:case E.Kb:var d=a.getAttribute("id"),e=w.b.getElementById(d),f=b==E.Lb?1:b==E.Kb?-1:0,g=b==E.Ja?1:b==E.Ya?-1:0;if(d==this.PG||d==this.jG)this.vZa(f,g),O.ra(e);else if(d==this.zB||d==this.Eba||d==this.QH)(b==E.Ya||b==E.Ja)&&this.uZa(g),O.ra(e)}};Zk.wb.prototype.Y1a=function(){var a=this.sf,b=w.b.getElementById(this.Eba);
this.Uza.hS(a.kB,a.GH,0.5);b.style.backgroundColor="#"+this.Uza.s0()};Zk.wb.prototype.Z1a=function(){var a=this.sf;w.b.getElementById(this.QH).style.top=(1-a.cP)*this.w7-this.x7/2+"px"};Zk.wb.prototype.CAa=function(){w.b.getElementById(this.AX).value=this.sf.s0()};Zk.wb.prototype.FAa=function(){w.b.getElementById(this.IP).value=this.sf.KP};Zk.wb.prototype.BAa=function(){w.b.getElementById(this.lO).value=this.sf.uO};Zk.wb.prototype.AAa=function(){w.b.getElementById(this.aN).value=this.sf.cN};Zk.wb.prototype.WZa=
function(a){var b=w.b.getElementById(this.AX),d=Zk.Fha(b.value);d==n?(w.b.va(a),this.Q0a(b.value),O.ra(b),this.CAa()):(this.sf.nEa(d),this.Dv())};Zk.wb.prototype.Bda=function(a){var b=F.c.u();a=TrFastMessageFormatUtils.format(b.V("af_chooseColor.MSG_RGB_INVALID"),a);alert(a)};Zk.wb.prototype.Q0a=function(a){var b=F.c.u();a=TrFastMessageFormatUtils.format(b.V("af_chooseColor.MSG_HEX_INVALID"),a);alert(a)};Zk.wb.prototype.c_a=function(a){var b=w.b.getElementById(this.IP),d=Zk.e1(b.value);d==n?(w.b.va(a),
this.Bda(b.value),O.ra(b),this.FAa()):(this.sf.h5a(d),this.Dv(this.IP))};Zk.wb.prototype.UZa=function(a){var b=w.b.getElementById(this.lO),d=Zk.e1(b.value);d==n?(w.b.va(a),this.Bda(b.value),O.ra(b),this.BAa()):(this.sf.a5a(d),this.Dv(this.lO))};Zk.wb.prototype.OZa=function(a){var b=w.b.getElementById(this.aN),d=Zk.e1(b.value);d==n?(w.b.va(a),this.Bda(b.value),O.ra(b),this.AAa()):(this.sf.Z4a(d),this.Dv(this.aN))};Zk.wb.prototype.YZa=function(a){this.Lxa(a);F.c.Nd(a,this.o(this.XZa));w.fa().va(a)};
Zk.wb.prototype.PZa=function(a){this.Kxa(a);F.c.Nd(a,this.o(this.QZa));w.fa().va(a)};Zk.wb.prototype.Lxa=function(a){var b=w.fa(),d=b.Qb(a);a=w.b.getElementById(this.PG);var e=b.Ub(a),b=d.x-e.x,d=d.y-e.y,f=this.k6,e=this.zU,b=Math.min(b,f),b=Math.max(0,b),d=Math.min(d,this.zU),d=Math.max(0,d),g=w.b.getElementById(this.jG),h=d-this.jU;0==d&&h++;g.style.top=h+"px";h=b-this.JL;0==b&&h++;g.style.left=h+"px";b=Math.round(360*b/f);360==b&&(b=0);this.sf.hS(b,1-d/e,this.sf.cP);this.Dv(a.id)};Zk.wb.prototype.vZa=
function(a,b){var d=w.b.getElementById(this.PG),e=w.b.getElementById(this.jG),f=e.offsetLeft+this.JL+a,g=e.offsetTop+this.jU+b,h=this.k6,m=this.zU,f=Math.min(f,h),f=Math.max(0,f),g=Math.min(g,m),g=Math.max(0,g);e.style.top=g-this.jU+"px";e.style.left=f-this.JL+"px";e=Math.round(360*f/h);360==e&&(e=0);this.sf.hS(e,1-g/m,this.sf.cP);this.Dv(d.id)};Zk.wb.prototype.Kxa=function(a){var b=w.fa(),d=b.Qb(a);a=w.b.getElementById(this.zB);b=b.Ub(a);b=d.y-b.y;d=this.w7;b=Math.min(b,d);b=Math.max(0,b);w.b.getElementById(this.QH).style.top=
b-Math.floor(this.x7/2)+"px";this.sf.hS(this.sf.kB,this.sf.GH,1-b/d);this.Dv(a.id)};Zk.wb.prototype.uZa=function(a){var b=w.b.getElementById(this.zB),d=w.b.getElementById(this.QH),e=this.w7,f=this.x7,g=d.offsetTop+Math.floor(f/2)+a,g=Math.min(g,e),g=Math.max(0,g);a=Math.min(d.offsetTop+a,e-Math.floor(f/2));a=Math.max(-Math.floor(f/2),a);d.style.top=a+"px";this.sf.hS(this.sf.kB,this.sf.GH,1-g/e);this.Dv(b.id)};Zk.wb.prototype.QZa=function(a){this.Kxa(a)};Zk.wb.prototype.XZa=function(a){this.Lxa(a)};
Zk.wb.kl=ca();Zk.wb.kl.jBa=function(a){B.Ea(a,"createInstanceFromRgbTotal: input must be number.");var b=new Zk.wb.kl;b.nEa(a);return b};Zk.wb.kl.prototype.nEa=function(a){var b=Math.floor(a/256);this.KP=Math.floor(b/256);this.uO=b%256;this.cN=a%256;this.LY()};Zk.wb.kl.prototype.hS=function(a,b,d){this.kB=a;this.GH=b;this.cP=d;this.u_a()};Zk.wb.kl.prototype.h5a=function(a){this.KP=a;this.LY()};Zk.wb.kl.prototype.a5a=function(a){this.uO=a;this.LY()};Zk.wb.kl.prototype.Z4a=function(a){this.cN=a;this.LY()};
Zk.wb.kl.prototype.s0=function(){return this.N$(this.KP)+this.N$(this.uO)+this.N$(this.cN)};Zk.wb.kl.prototype.N$=function(a){return"0123456789ABCDEF".charAt(Math.floor(a/16))+"0123456789ABCDEF".charAt(a%16)};Zk.wb.kl.prototype.LY=function(){var a=this.KP/255,b=this.uO/255,d=this.cN/255,e=Math.min(Math.min(a,b),d),f=Math.max(Math.max(a,b),d),g=f-e,h=n,m=n,q=(f+e)/2;0!=f?(m=0==g?0:0.5>=q?g/(f+e):g/(2-f-e),0==g?h=0:(h=60*(a==f?(b-d)/g:b==f?2+(d-a)/g:4+(a-b)/g),0>h&&(h+=360))):h=m=0;this.kB=h;this.GH=
m;this.cP=q};Zk.wb.kl.prototype.u_a=function(){var a=this.kB,b=this.GH,d=this.cP,e=n,f=n,g=n;if(0==b)e=f=g=d;else{var h=n,m=n,q=n,m=n,m=0.5<=d?(1-d)*b:d*b,h=m+d,m=d-m,b=Math.floor(a/60),d=h-m;switch(b){case 0:case 2:case 4:q=(a/60-b)*d+m;break;case 1:case 3:case 5:q=(b+1-a/60)*d+m}switch(b){case 0:e=h;f=q;g=m;break;case 1:e=q;f=h;g=m;break;case 2:e=m;f=h;g=q;break;case 3:e=m;f=q;g=h;break;case 4:e=q;f=m;g=h;break;case 5:e=h,f=m,g=q}}this.KP=Math.round(255*e);this.uO=Math.round(255*f);this.cN=Math.round(255*
g)}};