var Ow=I.ea(Gw,"AdfDhtmlSelectManyShuttleBasePeer");m("AdfDhtmlSelectManyShuttleBasePeer",Ow);
Ow.C=function(){I.ra(this,D.wb,D.pD,D.Pc,D.Bc);I.hc(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectMany.st);r.bb(AdfRichSelectManyShuttle);I.sb(this,AdfRichSelectManyShuttle.LABEL);I.sb(this,AdfRichSelectOrderShuttle.SELECTION);this.Ct={};this.ar="_adfMove";this.Ct[this.ar]="move";this.$q="_adfMoveall";this.Ct[this.$q]="moveall";this.cr="_adfRemove";this.Ct[this.cr]="remove";this.br="_adfRemoveall";this.Ct[this.br]="removeall";this.TE="_adfTop";this.Ct[this.TE]="move-top";this.UE="_adfUp";this.Ct[this.UE]=
"move-up";this.AE="_adfDown";this.Ct[this.AE]="move-down";this.rE="_adfBottom";this.Ct[this.rE]="move-bottom";this.Lj="p_AFDisabled";this.QE="tabIndex";this.ZBa="href";this.G3a="onclick";this.b5a="return false;";this.Q2a="move";this.O2a="moveall";this.L4a="remove";this.H4a="removeall";this.g7a="move-top";this.Q7a="move-up";this.U_a="move-down";this.PXa="move-bottom";this.jfa="_adfLazy";this.z5a="_adfSelectValues";this.mfa="ldDesc";this.Uga="trDesc";this.Q1="leadUl";this.G2="trailUl";this.h7a="trailItems";
this.i2="reorderDiv";this.xfa="moveDiv";this.Lf="_adfLeadULId";this.me="_adfTrailULId";this.rFa="_adfTrailItems";this.TK="_adfReorderDivId";this.QK="_adfMoveDivId"};m("AdfDhtmlSelectManyShuttleBasePeer.InitSubclass",Ow.C);
Ow.prototype.fd=function(a,b){var d=a.g(),e=q.b,f=I.j(d,Ow.h7a);b.setAttribute(Ow.rFa,f);Ow.h.fd.call(this,a,b);var f=I.j(d,Ow.Q1),g=I.j(d,Ow.G2),h=I.j(d,Ow.i2),d=I.j(d,Ow.xfa);b.setAttribute(Ow.Lf,f);b.setAttribute(Ow.me,g);b.setAttribute(Ow.TK,h);b.setAttribute(Ow.QK,d);u.u(b);b.getAttribute(Ow.jfa)||Pw(this);1!=a.getReadOnly()&&b.setAttribute(Ow.z5a,Qw(this,b));e.S()==q.ia&&(d=this.xg(null,Ow.Lf),f=this.xg(null,Ow.me),d&&e.be(d),f&&e.be(f));if(e.S()==q.ia||e.S()==q.Yc)Rw(this,Ow.Lf),Rw(this,Ow.me)};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.LazyInitialize",{fd:Ow.prototype.fd});Ow.prototype.gh=function(){var a=this.i(),b=this.f(),a=O.da(b,a),a=J.Ee(a);null!=a&&J.va(a)};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.Focus",{gh:Ow.prototype.gh});Ow.prototype.Ta=function(a){var b=a.X();Ow.h.Ta.call(this,a);"LI"==b.tagName&&(a=b.getElementsByTagName("input")[0],"none"!=q.b.getComputedStyle(a).display&&(b=Sw(this.i(),a),this.Pr(b,a,null),a.focus()))};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentFocus",{Ta:Ow.prototype.Ta});Ow.prototype.BV=function(a,b){var d=a.X();if("LABEL"==d.tagName||"LI"==d.tagName)d=d.getElementsByTagName("input")[0];if(d&&"INPUT"==d.tagName&&!d.disabled){var e=this.i(),e=Sw(e,d),f=a.U();this.Pr(e,d,f.shiftKey);b||a.cancel()}};
Ow.prototype.ma=function(a){var b=a.X();if("INPUT"==b.tagName||"LI"==b.tagName){var d=a.U(),e=q.b.na(d),f=this.i(),g=Sw(f,b),h;-1!=g.id.indexOf(Ow.Q1)?h=Ow.Lf:-1!=g.id.indexOf(Ow.G2)&&(h=Ow.me);switch(e){case w.ab:case w.Ra:var l=J.Ee(g);"LI"==l.tagName&&(l=l.getElementsByTagName("input")[0]);(h=e==w.ab?this.FD(null,f,l,!0,h):this.Ho(null,f,l,h))&&h!=l&&(this.Pr(g,h,d.shiftKey),"none"==q.b.getComputedStyle(h).display?h.parentNode.parentNode.focus():h.focus(),d.shiftKey&&Tw(this,b,a));a.cancel();break;
case w.gd:"LI"==b.tagName&&(Tw(this,b,a),a.cancel())}}else if("A"==b.tagName)switch(d=a.U(),e=q.b.na(d),f=this.i(),g=Uw(f,b),e){case w.ab:case w.Ra:case w.ub:case w.vb:var l=J.Ee(g),n,t=w.ab,y=w.Ra,z=!1;1<b.parentNode.parentNode.parentNode.getElementsByTagName("TD").length&&-1==g.id.indexOf(Ow.i2)&&(A.c.Ka().La()?(t=w.vb,y=w.ub):(t=w.ub,y=w.vb));if(e==t)-1!=g.id.indexOf(Ow.i2)?h=Ow.TK:-1!=g.id.indexOf(Ow.xfa)&&(h=Ow.QK),b=f,e=h,u.J(e),h=this.aB(l),null==h?n=l:(f=h.id,n=h,e==Ow.TK?this.ff(f,"move-top")||
this.ff(f,"move-up")?(b=[b.getAttribute(Ow.TE)],n=Vw(this,b,0,h)):this.ff(f,"move-down")?(b=[b.getAttribute(Ow.UE),b.getAttribute(Ow.TE)],n=Vw(this,b,0,h)):this.ff(f,"move-bottom")&&(b=[b.getAttribute(Ow.AE),b.getAttribute(Ow.UE),b.getAttribute(Ow.TE)],n=Vw(this,b,0,h)):e==Ow.QK&&(this.ff(f,"::move")||this.ff(f,"::moveall")?(b=[b.getAttribute(Ow.ar)],n=Vw(this,b,0,h)):this.ff(f,"::remove")?(b=[b.getAttribute(Ow.$q),b.getAttribute(Ow.ar)],n=Vw(this,b,0,h)):this.ff(f,"::removeall")&&(b=[b.getAttribute(Ow.cr),
b.getAttribute(Ow.$q),b.getAttribute(Ow.ar)],n=Vw(this,b,0,h)))),z=!0;else if(e==y){-1!=g.id.indexOf(Ow.i2)?h=Ow.TK:-1!=g.id.indexOf(Ow.xfa)&&(h=Ow.QK);b=f;e=h;u.J(e);h=this.aB(l);if(null==h)n=l;else if(f=h.id,n=h,e==Ow.TK)if(this.ff(f,"move-top"))b=[b.getAttribute(Ow.UE),b.getAttribute(Ow.AE),b.getAttribute(Ow.rE)],n=Vw(this,b,0,h);else if(this.ff(f,"move-up"))b=[b.getAttribute(Ow.AE),b.getAttribute(Ow.rE)],n=Vw(this,b,0,h);else{if(this.ff(f,"move-down")||this.ff(f,"move-bottom"))b=[b.getAttribute(Ow.rE)],
n=Vw(this,b,0,h)}else if(e==Ow.QK)if(this.ff(f,"::move"))b=[b.getAttribute(Ow.$q),b.getAttribute(Ow.cr),b.getAttribute(Ow.br)],n=Vw(this,b,0,h);else if(this.ff(f,"::moveall"))b=[b.getAttribute(Ow.cr),b.getAttribute(Ow.br)],n=Vw(this,b,0,h);else if(this.ff(f,"::remove")||this.ff(f,"::removeall"))b=[b.getAttribute(Ow.br)],n=Vw(this,b,0,h);z=!0}z&&(n&&n!=l&&(this.Pr(g,n,d.shiftKey),n.focus()),a.cancel());break;case w.gd:if("A"==b.tagName){d=q.b;if(l=Ww(this,b))-1==l.toLowerCase().indexOf("-")?Xw(this,
l):(Yw(this,l),Zw(this)),d.preventDefault(a.U()),(g=J.Ee(g))&&J.va(g);a.cancel()}}};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentKeyDown",{ma:Ow.prototype.ma});
Ow.prototype.M=function(a){Ow.h.M.call(this,a);var b=this.f();if(!b.getDisabled()&&a.ec()){var d=a.X(),e=q.b,f=Ww(this,d);if(f)-1==f.toLowerCase().indexOf("-")?Xw(this,f):(Yw(this,f),Zw(this)),e.preventDefault(a.U()),f=this.i(),f=Uw(f,d),(a=J.Ee(f))&&J.va(a);else if(f=this.i(),f=Sw(f,d),C.Nc(f,d)){if(d)if(b=a.U(),e.S()!=q.Yc){if("LABEL"==d.nodeName){a=b.pointerType;""!=a&&void 0!=a&&(b=this.f(),b.setProperty(AdfRichSelectManyShuttle.GR,a));return}}else if(!q.b.sl(b)&&!b.shiftKey&&"LABEL"==d.nodeName)return;
Tw(this,d,a);(a=J.Ee(f))&&J.va(a)}else this.focus(b)}};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentClick",{M:Ow.prototype.M});Ow.prototype.Kq=function(a){if(!this.f().getDisabled()&&a.ec()){var b=a.X();checkbox=this.Wv(b,a);if(this.uR(checkbox)&&!checkbox.disabled&&!$w(this)){a=null;var d=this.i(),b=Sw(d,b).id;"none"==q.b.getComputedStyle(checkbox).display&&(checkbox.checked=!0);-1!=b.indexOf(Ow.Q1)?a="move":-1!=b.indexOf(Ow.G2)&&(a="remove");null!=a&&Xw(this,a)}}};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentDblClick",{Kq:Ow.prototype.Kq});Ow.prototype.cc=function(a,b){Ow.h.cc.call(this,a,b);ax(this,this.i())};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.Validate",{cc:Ow.prototype.cc});
Ow.prototype.Ba=function(a,b,d){u.u(b);u.og(d);if(!$w(this)){boxes=this.kd(a,null,Ow.me);var e=this.xg(null,Ow.Lf);a=this.xg(null,Ow.me);for(var f=a.scrollTop,g=0;g<boxes.length;g++){var h=bx(this,Ow.me,boxes[g].value);e.appendChild(h)}if(d!=E.wD)for(e=0;e<d.length;e++)(h=bx(this,Ow.Lf,d[e]))&&a.appendChild(h);a.scrollTop=f;u.u(b);b.getAttribute(Ow.jfa)||Pw(this);ax(this,b);this.Pr(this.xg(null,Ow.Lf),cx(this,Ow.Lf),!1);this.Pr(this.xg(null,Ow.me),cx(this,Ow.me),!1)}dx(this,!1);b=q.b;if(b.S()==q.ia||
b.S()==q.Yc)Rw(this,Ow.Lf),Rw(this,Ow.me)};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.SetDisplayValue",{Ba:Ow.prototype.Ba});Ow.prototype.Wa=function(a,b){u.u(b);var d=a.getReadOnly(),e=a.getDisabled();if(d||e)return d=O.da(a,b).getAttribute(Gw.cj),eval(d);d=this.U4();e=[];if(d)return e=d.value.split(";"),""!=e?e:null};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetSubmittedValue",{Wa:Ow.prototype.Wa});
Ow.prototype.uk=function(a,b){u.u(b);var d=[],e=this.kd(a,null,Ow.Lf),f;for(f=0;f<e.length;f++)d[f]=new kb,d[f].setValue(e[f].value),d[f].setLabel(O.Go(e[f]).textContent),d[f].VZ(e[f].disabled);for(var e=this.kd(a,null,Ow.me),g=0;g<e.length;g++,f++)d[f]=new kb,d[f].setValue(e[g].value),d[f].setLabel(O.Go(e[g]).textContent),d[f].VZ(e[g].disabled);return d};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetComponentSelectItems",{uk:Ow.prototype.uk});
Ow.prototype.kd=function(a,b,d){u.Bu(b);u.J(d);a=[];var e=[];if(b=this.xg(b,d))e=b.childNodes;for(i=0;i<e.length;i++)1==e[i].nodeType&&(b=e[i].getElementsByTagName("input")[0])&&a.push(b);return a};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetCheckboxes",{kd:Ow.prototype.kd});Ow.prototype.Oa=function(){return ii.jd()};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetInlineEditor",{Oa:Ow.prototype.Oa});Ow.prototype.Yd=function(a,b){return this.xg(b,Ow.me)};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetNoteWindowAlignmentNode",{Yd:Ow.prototype.Yd});Ow.prototype.Wv=function(a,b){var d=Sw(this.i(),a);return C.Nc(d,a)&&0<d.getElementsByTagName("li").length?Ow.h.Wv.call(this,a,b):a};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetCheckboxByEventTarget",{Wv:Ow.prototype.Wv});
function Tw(a,b,d){b=a.Wv(b,d);if(a.uR(b)&&!b.disabled){var e,f,g=q.b,h=a.i(),l;$w(a)||(l=h.getAttribute(Ow.Lf),l=g.getElementById(l));h=h.getAttribute(Ow.me);g=g.getElementById(h);l&&C.Nc(l,b)?f=Ow.mfa:C.Nc(g,b)&&(f=Ow.Uga);f&&(e=ex(a,f));e&&(f=b.parentNode.title,null==f&&(f=""),e.value=f);e=$w(a);var n;f=d.U();l=q.b.getComputedStyle(b);var t;if(q.b.S()==q.Yc)d.Event.jrb==d.Event.Vsb&&(t="mouse"),d.Event.jrb==d.Event.Wsb&&(t="touch");else if(t=f.pointerType,""==t||void 0==t)d=a.f(),t=d.K(AdfRichSelectManyShuttle.GR),
d.setProperty(AdfRichSelectManyShuttle.GR,"");f.shiftKey?b.checked=!0:(d=q.b.rm()[q.zl],"none"!=l.display||q.b.sl(f)||d&&d!=q.Al&&"mouse"!=t||(t=Sw(a.i(),b),fx(a,t),b.checked=!0));a.xi(b);if(e)Zw(a),n=gx(a,Ow.me);else{var y,z,B;t=a.i();b=Sw(t,b);e=a.RF(b);d=e[0];e=e[1];-1!=b.id.indexOf(Ow.Q1)?(n=t.getAttribute(Ow.ar),z=Ow.ar,y=t.getAttribute(Ow.$q),B=Ow.$q):-1!=b.id.indexOf(Ow.G2)&&(n=t.getAttribute(Ow.cr),z=Ow.cr,y=t.getAttribute(Ow.br),B=Ow.br);hx(a,!(0<e),y,B,!0,!0);hx(a,!(0<d),n,z,!0,!0);a.f().getReorderOnly&&
Zw(a);n=gx(a,Ow.Lf);y=gx(a,Ow.me);n=n.concat(y)}d=a.f();d.setProperty(AdfRichSelectManyShuttle.SELECTION,n)}}
Ow.prototype.Owa=function(a,b,d){var e=$w(this),f=q.b;b=this.i();var g;e||(g=b.getAttribute(Ow.Lf),g=f.getElementById(g),fx(this,g),g=this.kd(null,null,Ow.Lf));b=b.getAttribute(Ow.me);f=f.getElementById(b);fx(this,f);f=this.kd(null,null,Ow.me);f=g?g.concat(f):f;for(i=0;i<d.length;i++){g=!1;for(j=0;j<f.length;j++)if(f[j].value==d[i]){g=!0;f[j].disabled||f[j].checked?(d.splice(i,1),i--):(f[j].checked=!0,this.xi(f[j]));break}g||(d.splice(i,1),i--)}e||(d=this.i(),e=q.b,f=d.getAttribute(Ow.Lf),g=e.getElementById(f),
f=d.getAttribute(Ow.me),f=e.getElementById(f),g=this.RF(g),e=g[0],g=g[1],f=this.RF(f),b=f[0],hx(this,!(0<f[1]),d.getAttribute(Ow.br),Ow.br,!0,!0),hx(this,!(0<b),d.getAttribute(Ow.cr),Ow.cr,!0,!0),hx(this,!(0<g),d.getAttribute(Ow.$q),Ow.$q,!0,!0),hx(this,!(0<e),d.getAttribute(Ow.ar),Ow.ar,!0,!0));a.getReorderOnly&&Zw(this)};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.ComponentSelectionChanged",{Owa:Ow.prototype.Owa});
function Zw(a){var b=a.i(),d=a.xg(b,Ow.me),e=a.RF(d)[0],f=!1,g=!1;if(0<e){var h=ix(d),l=d.getElementsByTagName("li").length;if(1==e&&0==h[0])f=!0;else if(1<e&&0==h[0]){for(d=0;h[d]==d;)d++;d==e&&(f=!0)}if(1==e&&h[0]==l-1)g=!0;else if(1<e&&h[h.length-1]==l-1){d=l-1;for(l=1;h[h.length-l]==d;)d--,l++;l>e&&(g=!0)}}hx(a,g||!(0<e),b.getAttribute(Ow.rE),Ow.rE,!1,!1);hx(a,g||!(0<e),b.getAttribute(Ow.AE),Ow.AE,!1,!1);hx(a,f||!(0<e),b.getAttribute(Ow.UE),Ow.UE,!1,!1);hx(a,f||!(0<e),b.getAttribute(Ow.TE),Ow.TE,
!1,!1)}
function hx(a,b,d,e,f,g){u.dc(b);if(d){d=q.b.getElementById(d);var h=C.pa(d);C.qd(b,d,Ow.Lj);d.setAttribute("aria-disabled",b.toString());C.qd(b,d.parentNode,I.lb);h&&(e=a.f().getReorderOnly?"af|selectOrderShuttle::"+Ow.Ct[e]:"af|selectManyShuttle::"+Ow.Ct[e],f&&(f=a.f().getLayout(),e="vertical"==f?e+"-vertical":e+"-horizontal"),b&&(e+="-disabled"),e+="-icon",g&&A.c.Ka().La()&&(e+=":rtl"),C.mz(h,e));b?(d.setAttribute(Ow.QE,"-1"),d.removeAttribute(Ow.ZBa,0)):(b=a.i(),b=Uw(b,d),null!=b&&a.Pr(b,d,!1),
d.setAttribute(Ow.ZBa,"#"),d.setAttribute(Ow.G3a,Ow.b5a))}}k=Ow.prototype;k.RF=function(a,b){u.dc(b);var d=0,e=a.getElementsByTagName("input");for(i=0;i<e.length;i++)e[i]&&!e[i].disabled&&(b?e[i].checked&&d++:d++);return d};k.RF=function(a){var b=0,d=0;a=a.getElementsByTagName("input");for(i=0;i<a.length;i++)a[i]&&!a[i].disabled&&(a[i].checked&&b++,d++);return[b,d]};function fx(a,b){var d=b.getElementsByTagName("input");for(i=0;i<d.length;i++)d[i]&&!d[i].disabled&&(d[i].checked=!1,a.xi(d[i]))}
function jx(a,b){var d=ex(a,b);d&&(d.value="")}function ex(a,b){var d=a.f().g(),d=I.j(d,b);return q.b.getElementById(d)}k.xg=function(a,b){u.Bu(a);u.J(b);var d,e=q.b;d=null==a?this.i().getAttribute(b):a.getAttribute(b);d=e.getElementById(d);var f;if(d&&d.getAttribute("_adfFieldset"))for(d=d.childNodes,i=0;i<d.length;i++)1==d[i].nodeType&&"FIELDSET"==e.Na(d[i])&&(f=d[i]);else f=d;return f};
k.Pr=function(a,b,d){if(a){b&&"none"==q.b.getComputedStyle(b).display&&(b=b.parentNode.parentNode);var e=J.Ee(a);if(e!=b){if(d&&"INPUT"==q.b.Na(b)|"LI"==q.b.Na(b)){d=this.i();var f=this.f(),g=e,h=Ow.Lf;a.id!=d.getAttribute(h)&&(h=Ow.me);e||(g=cx(this,h));a=g;var l=b;"LI"==q.b.Na(g)&&(a=g.getElementsByTagName("input")[0]);"LI"==q.b.Na(b)&&(l=b.getElementsByTagName("input")[0]);this.kK(f,d,a,l,h)}e&&e.setAttribute(Ow.QE,"-1");b.setAttribute(Ow.QE,"0")}}};
function Qw(a,b){u.u(b);var d=[],e=a.kd(null,b,Ow.Lf),f=a.kd(null,b,Ow.me);if(e)for(var g=0;g<e.length;g++)e[g]&&d.push(e[g].value);if(f)for(g=0;g<f.length;g++)f[g]&&d.push(f[g].value);return d.join(";")}function bx(a,b,d){u.J(b);var e=[];b=a.xg(null,b);a=null;b&&(e=b.childNodes);for(i=0;i<e.length;i++)if(1==e[i].nodeType&&(b=e[i].getElementsByTagName("input")[0],b.value&&b.value==d)){a=e[i];break}return a}
function Xw(a,b){var d=-1!=b.indexOf("all"),e=null,f=null,g=Ow.me;if("move"==b||"moveall"==b)e=a.xg(null,Ow.Lf),f=a.xg(null,g);if("remove"==b||"removeall"==b)g=Ow.Lf,e=a.xg(null,Ow.me),f=a.xg(null,g);a.GW(e,f,d);a.f().setProperty(AdfRichSelectManyShuttle.SELECTION,gx(a,g))}
k.GW=function(a,b,d){u.dc(d);a=a.getElementsByTagName("li");for(i=0;i<a.length;i++){var e=a[i].getElementsByTagName("input")[0],f=!1;1==d?e.disabled||(f=!0,e.checked=!1,this.xi(e)):!e.disabled&&e.checked&&(f=!0,e.checked=!1,this.xi(e));1==f&&(e.parentElement.parentElement.setAttribute(Ow.QE,"-1"),b.appendChild(a[i]),--i)}b.scrollTop=b.scrollHeight;dx(this,!0);jx(this,Ow.mfa);jx(this,Ow.Uga)};
function Rw(a,b){var d=a.xg(null,b);if(d)for(var d=d.getElementsByTagName("li"),e=d.length,f=0;f<e;f++)d[f].setAttribute("aria-setsize",e),d[f].setAttribute("aria-posinset",f+1)}function cx(a,b){var d=a.kd(null,null,b);for(i=0;i<d.length;i++)if(d[i]&&!d[i].disabled)return d[i]}function dx(a,b){var d=[],e=a.kd(null,null,Ow.me);for(i=0;i<e.length;i++)e[i]&&d.push(e[i].value);if(e=a.U4())e.value=d.join(";"),b&&a.cc(a.f(),d)}k.U4=function(){return q.b.getElementsByName(this.i().getAttribute(Ow.rFa))[0]};
function ix(a){var b=[];a=a.getElementsByTagName("input");for(i=0;i<a.length;i++){var d=a[i];!d.disabled&&d.checked&&b.push(i)}return b}function gx(a,b){var d=[],e=a.kd(null,null,b);for(i=0;i<e.length;i++)e[i].checked&&!e[i].disabled&&d.push(e[i].value);return d}
function Yw(a,b){u.J(b);var d=a.xg(null,Ow.me),e=ix(d),f=d.getElementsByTagName("li"),g=null;if("move-top"==b){for(j=0;j<e.length;j++){var h=f[e[j]];d.insertBefore(h,f[j])}d.scrollTop=0}else if("move-up"==b){if(1<e.length&&0==e[0])for(h=0;e[0]==h;)E.Ig(e,e[0]),h++;for(j=0;j<e.length;j++){var l=e[j];0<l&&(h=f[l],null==g&&(g=h),d.insertBefore(h,f[l-1]))}C.V$(g)}else if("move-down"==b){if(1<e.length&&(h=f.length,e[e.length-1]==h-1))for(--h;e[e.length-1]==h;)E.Ig(e,e[e.length-1]),h--;for(j=e.length-1;0<=
j;j--)l=e[j],l<f.length&&(h=f[l],l+=2,null==g&&(g=h),l!=f.length?d.insertBefore(h,f[l]):d.appendChild(h));C.V$(g)}else if("move-bottom"==b){for(j=0;j<e.length;j++)h=f[e[j]-j],d.appendChild(h);d.scrollTop=d.scrollHeight}dx(a,!0);jx(a,Ow.mfa);jx(a,Ow.Uga)}function $w(a){a=a.f();return a.getReorderOnly&&a.getReorderOnly()}
function ax(a,b){var d=a.f();if(!d.getDisabled()&&!d.getReadOnly()){var e=a.xg(b,Ow.Lf);if(e){var f=a.xg(b,Ow.me),e=a.RF(e),f=a.RF(f),g=e[0],h=f[0],e=0==e[1];hx(a,0==f[1],b.getAttribute(Ow.br),Ow.br,!0,!0);hx(a,!(0<h),b.getAttribute(Ow.cr),Ow.cr,!0,!0);hx(a,e,b.getAttribute(Ow.$q),Ow.$q,!0,!0);hx(a,!(0<g),b.getAttribute(Ow.ar),Ow.ar,!0,!0)}d.getReorderOnly&&Zw(a)}}
function Ww(a,b){var d=a.aB(b);if(d){d=d.id;if(a.ff(d,"::move"))return"move";if(a.ff(d,"::moveall"))return"moveall";if(a.ff(d,"::remove"))return"remove";if(a.ff(d,"::removeall"))return"removeall";if(a.ff(d,"move-top"))return"move-top";if(a.ff(d,"move-up"))return"move-up";if(a.ff(d,"move-down"))return"move-down";if(a.ff(d,"move-bottom"))return"move-bottom"}}function Sw(a,b){u.u(a);var d=q.b,e=d.getElementById(a.getAttribute(Ow.Lf));C.Nc(e,b)||(e=d.getElementById(a.getAttribute(Ow.me)));return e}
function Uw(a,b){u.u(a);var d=q.b,e=d.getElementById(a.getAttribute(Ow.TK));C.Nc(e,b)||(e=d.getElementById(a.getAttribute(Ow.QK)));return e}function Vw(a,b,d,e){var f=b[d],g=q.b.getElementById(f);return g&&-1==g.className.indexOf(Ow.Lj)?q.b.getElementById(f):d<b.length-1?Vw(a,b,d+1):e}k.aB=function(a){var b=q.b,d=a.getElementsByTagName("A");if(1==d.length)return d[0];for(;a;){if("INPUT"==b.Na(a)||"LABEL"==b.Na(a))return null;if("A"==b.Na(a))return a;a=a.parentNode}};
k.ff=function(a,b){u.J(a);u.J(b);var d=a.length-b.length;return 0>d?!1:a.lastIndexOf(b,d)==d};function Pw(a){var b=a.f().g(),d=I.j(b,Ow.Q2a),e=I.j(b,Ow.O2a),f=I.j(b,Ow.L4a),g=I.j(b,Ow.H4a),h=I.j(b,Ow.g7a),l=I.j(b,Ow.Q7a),n=I.j(b,Ow.U_a),b=I.j(b,Ow.PXa);a=a.i();a.setAttribute(Ow.ar,d);a.setAttribute(Ow.$q,e);a.setAttribute(Ow.cr,f);a.setAttribute(Ow.br,g);a.setAttribute(Ow.TE,h);a.setAttribute(Ow.UE,l);a.setAttribute(Ow.AE,n);a.setAttribute(Ow.rE,b);a.setAttribute(Ow.jfa,"true")};