var H=I.ea(yp,"AdfDhtmlInputFilePeer",!1);m("AdfDhtmlInputFilePeer",H);
H.C=function(){this.AFa="upBtn";this.gL="uplBtn";this.Wo="cnlBtn";this.It="rtBtn";this.aL="stpBtn";this.Xo="delBtn";this.CFa="upVal";this.fL="dlg";this.BFa="dlgCont";this.gCa="if";this.j0a="iff";this.RK="p";this.yea="da";this.MS="icn";this.dCa="icn_ovr";this.D6a="t";this.cEa="r";this.Fea="fn";this.B1="fs";this.IK="fd";this.pA="ff";this.MAa="dc";this.NAa="df";this.Ol="_afrProgressDet";this.Nw="_afrProgressIndet";this.Yfa="_afrProgressItemId";this.SS="maximumFiles";this.d5a="rows";this.Kda="autoHeightRows";
this.DFa="uploadType";this.cha="submit";this.bha="auto";this.O7a="autoIfMultiple";this.P7a="manual";this.Ai="displayMode";this.GK="none";this.FK="dropArea";this.bj="_afrItemId";this.gT="_afrRowUploaded";this.UK="_afrFilename";this.bEa="_afrFilesize";this.mS="_adfFileBtn";this.P_a="dlgAddBtn";this.R_a="dlgUpdBtn";this.Q_a="dlgDelBtn";this.T0a="UPDATE";this.R0a="ADD";this.S0a="DELETE";this.bL="none";this.A2="inline";this.Fga="visible";this.B2="hidden";this.Ft="display";this.vE="visibility";this.r1=
"overflowY";this.j6a="af|inputFile::multiple-upload-drag";this.pT="af|inputFile::multiple-upload-dropzone";this.k2a="_afrFileSize";this.j2a="_afrDiskSpace";this.mF;I.ra(this,D.wb,Za.ua);this.Ep="old"!=A.c.H().qa("af|dialog-tr-button-type");this.Ep=!1};m("AdfDhtmlInputFilePeer.InitSubclass",H.C);
H.prototype.G=function(a,b){H.h.G.call(this,a,b);if(H.wx(a)){var d=q.b,e=A.c.H(),f=a.g(),g=I.j(f,H.RK),h=I.j(f,H.yea),l=I.j(g,H.MS),f=I.j(g,H.dCa),g=d.getElementById(g),h=d.getElementById(h),l=d.getElementById(l),d=d.getElementById(f);l&&(this.gf=l);d&&(this.Ok=d);this.On=g;this.zF=h;this.Vk=[];this.Oj=a.K(H.Kda);this.Oj||(this.Oj=0);this.UX=H.mfb(a);this.wW=a.K(H.SS);this.Ag=a.K(H.d5a);a.getAutoSubmit()&&(a.setProperty("autoSubmit",!1,!1,G.ud),this.YT=!0);this.Dp="undefined"!=typeof File?!0:!1;void 0===
q.b.slice()?this.EL=!1:this.EL=!0;this.Yk="undefined"!=typeof FormData?!0:!1;(this.yu="draggable"in b&&this.Yk&&this.EL?!0:!1)&&!a.getDisabled()&&(this.jja=e.getStyleClass(H.j6a),null!=this.On?(q.b.ba(this.On,"dragenter",this.D(this.iLa)),q.b.ba(this.On,"dragleave",this.D(this.Kka)),q.b.ba(this.On,"dragover",this.D(this.kLa))):null!=this.zF&&(q.b.ba(this.zF,"dragenter",this.D(this.iLa)),q.b.ba(this.zF,"dragleave",this.D(this.Kka)),q.b.ba(this.zF,"dragover",this.D(this.kLa))));A.c.uUa(a,"always");
zp(this,a,b)}this.XIa=!1;this.s4=[]};r.a("AdfDhtmlInputFilePeer.prototype.InitDomElement",{G:H.prototype.G});H.prototype.ya=function(){return!0};r.a("AdfDhtmlInputFilePeer.prototype.needsResizeNotify",{ya:H.prototype.ya});H.prototype.Re=function(a){var b=this.i();H.wx(a)&&zp(this,a,b)};r.a("AdfDhtmlInputFilePeer.prototype.resizeNotify",{Re:H.prototype.Re});H.prototype.Af=function(){};r.a("AdfDhtmlInputFilePeer.prototype.getConvertedValue",{Af:H.prototype.Af});
H.prototype.UO=function(){null==this.GJa&&(this.GJa=new jd(this.f()));return this.GJa};r.a("AdfDhtmlInputFilePeer.prototype.getFileUploadManager",{UO:H.prototype.UO});H.prototype.kc=function(){return this.HJa};r.a("AdfDhtmlInputFilePeer.prototype.getFileUploadUtils",{kc:H.prototype.kc});H.prototype.zc=function(a){return Ap(this)?!1:H.h.zc.call(this,a)};r.a("AdfDhtmlInputFilePeer.prototype.isEmpty",{zc:H.prototype.zc});H.prototype.r$=function(){return 0<this.kc().ry().length?!1:!0};
r.a("AdfDhtmlInputFilePeer.prototype.isUploadQueueEmpty",{r$:H.prototype.r$});H.prototype.s$=function(){for(var a=this.kc().ks(),b=0;b<a.length;b++)if(!a.item(b).$G)return!0;return!1};r.a("AdfDhtmlInputFilePeer.prototype.isUploadResultFailed",{s$:H.prototype.s$});H.prototype.fd=function(a,b){H.h.fd.call(this,a,b);if(a.K(H.Ai)!=H.GK){var d=null;H.wx(a)||(d=O.da(a,b),Ap(this)&&(this.mF=d.cloneNode(!0)),I.ZB(H,d,"change"))}};r.a("AdfDhtmlInputFilePeer.prototype.LazyInitialize",{fd:H.prototype.fd});
H.prototype.Ff=function(){return!0};r.a("AdfDhtmlInputFilePeer.prototype.ComponentValueChanged",{Ff:H.prototype.Ff});H.prototype.gh=function(){var a=Ap(this);null!=a?J.va(a):H.h.gh.call(this)};r.a("AdfDhtmlInputFilePeer.prototype.Focus",{gh:H.prototype.gh});H.prototype.Yd=function(a,b){var d=a.g(),d=I.j(d,H.CFa),d=q.b.getElementById(d);return null!=d?d:H.h.Yd.call(this,a,b)};r.a("AdfDhtmlInputFilePeer.prototype.GetNoteWindowAlignmentNode",{Yd:H.prototype.Yd});
H.prototype.M=function(a){H.h.M.call(this,a);var b=this.f(),d=b.o(),e=q.b,f=A.c;if(!b.getDisabled()&&a.ec()){a=a.U();var g=e.ca(a),h=e.getAttribute(g,H.bj),l=b.g(),n=I.j(l,H.AFa),t=I.j(l,H.gL),y=I.j(l,H.aL);if("LABEL"==e.Na(g))return this.focus(b),e.Ea(a),!0;if(g.id==n){d=I.j(l,H.fL);if(d=e.getElementById(d)){for(d=d.firstChild;d&&1!=d.nodeType;)d=d.nextSibling;if(null!=d&&(this.Vm(),f.Oe(l),0==b.getValid()&&b.setProperty("valid",!0),this.He(b,d,null,H.fL),!this.XIa)){this.XIa=!0;var z=Bp(this);if(z&&
(b=$i.ix(z,$i.Ifa))){var B=this;e.ba(b,D.wb,function(){if(q.b.getElementById(z).getElementsByTagName("input")[0].value){f.Oe(l);var a=B.f();0==a.getValid()&&a.setProperty("valid",!0)}})}}}e.Ea(a);return!0}if(g.id==t)return f.Oe(l),Cp(this,b),e.Ea(a),!0;if(g.id==y)return H.YM(b,H.aL),"auto"!=this.UX&&H.S7(b,H.gL),d.kc().oH(!0),e.Ea(a),!0;if(null!=h){f.Oe(l);var n=H.En(l,h),t=I.j(n,H.Wo),y=I.j(n,H.Xo),F=I.j(n,H.It);if(g.id==t)d.kc().bC(!1);else if(g.id==y){b=e.getElementById(y);if(null!=b&&b.getAttribute("disabled"))return;
b=e.getElementById(n);(g=e.getAttribute(b,H.gT))&&"false"!=g?d.kc().wH(e.getAttribute(b,H.UK)):d.kc().iy(e.getAttribute(b,H.UK))}else g.id!=F||null==this.rM(h)||this.rM(h).$G||(d.kc().Ypa(this.rM(h)),H.lg(b,H.It,h),H.ao(b,H.Xo,h),H.lg(b,H.Wo,h),H.lg(b,H.pA,h),Dp(this,h),d.kc().td()||H.fY(b));e.Ea(a);return!0}null!=g.getAttribute(H.mS)&&(e=g.getAttribute(H.mS),a=this.U4(b))&&(e==H.R_a?a.value=H.T0a:e==H.P_a?a.value=H.R0a:e==H.Q_a&&(a.value=H.S0a))}};
r.a("AdfDhtmlInputFilePeer.prototype.HandleComponentClick",{M:H.prototype.M});function Bp(a){a=a.f().g();return H.Ep?a+"_"+H.BFa:I.j(a,H.BFa)}
H.prototype.eg=function(a){var b=this.f(),d=a.ll(),e=q.b;this.IZ(b,this.QY(b));if(b.getValid()){if(d==Za.Zm){b.g();var d=Bp(this),f=e.getElementById(d).getElementsByTagName("input")[0];if(f.value){var d=I.j(b.g(),H.CFa),d=e.getElementById(d),f=f.value,g=-1;if(0<=(g=f.lastIndexOf("\\"))||0<=(g=f.lastIndexOf("/")))f=f.substr(g+1);"INPUT"==q.b.Na(d)?d.value=f:e.bc(d,f);Ep(this,b,f)}else return}else d==Za.No&&(b=O.da(b,this.i()),d=b.parentNode,d.removeChild(b),d.appendChild(this.mF),e.Ia(this.mF),this.mF=
this.mF.cloneNode(!0));a.cancel();this.Jb(this.f(),H.fL)}};r.a("AdfDhtmlInputFilePeer.prototype.HandleComponentDialog",{eg:H.prototype.eg});H.prototype.Yb=function(a){var b=a.U(),b=q.b.na(b),d=O.da(this.f());A.c.wd==d&&b!==w.tf&&a.cancel();b==w.jb&&(q.b.S()==q.ia?v.l.info("Due to a bug in IE, the enter key press will not invoke the 'Choose File to Upload' dialog."):a.X().click())};r.a("AdfDhtmlInputFilePeer.prototype.HandleComponentKeyPress",{Yb:H.prototype.Yb});
function Fp(a,b){var d=a.f();if(b&&b.files&&1===b.files.length&&b.files[0]instanceof File&&void 0!==b.files[0].size){var e=b.files[0].size;if(!Gp.Rva(d,e,e,function(a){A.c.bo(d.g(),a)}))return!1}return!0}
H.prototype.JJ=function(a,b){var d=q.b,e=q.b.ca(b);a.focus();this.IZ(a,this.QY(a));if(a.getValid())if(H.wx(a))if(this.Yk&&this.Dp){for(var d=e.files,f=0;f<d.length;f++)g=d[f],this.kc().Vr(g);this.WL!=H.GK&&Hp(this.kc(),e)}else this.kc().Vr(e);else{d.S()==q.ia&&(d=Ap(this),f=O.da(a),(null==d?f:d).select());var g=e.value;Fp(this,e)&&Ep(this,a,g)}};r.a("AdfDhtmlInputFilePeer.prototype.HandleDomChange",{JJ:H.prototype.JJ});
H.prototype.oca=function(a,b){var d=q.b,e=b.dataTransfer.files;this.IZ(a,this.QY(a));if(a.getValid()){if(e)for(var f=0;f<e.length;f++){var g=e[f];this.kc().Vr(g)}this.WL!=H.GK&&this.Kka(b);d.Ea(b)}};r.a("AdfDhtmlInputFilePeer.prototype.HandleDomDrop",{oca:H.prototype.oca});H.prototype.nta=function(){if(A.c.tx)return!1;var a=this.kc().ks();if(null!=a)for(var b=0;b<a.length;b++)if(a.item(b).$G)return!0;return this.kc().td()};r.a("AdfDhtmlInputFilePeer.prototype.isDataDirty",{nta:H.prototype.nta});
H.prototype.m$=function(){return H.wx(this.f())};r.a("AdfDhtmlInputFilePeer.prototype.isMultipleUpload",{m$:H.prototype.m$});H.prototype.ob=function(a,b,d){H.h.ob.call(this,a,b);if(d==H.fL){d=a.g();d=I.j(d,H.fL);d=q.b.getElementById(d);var e=Ap(this);J.va(e);d&&d.appendChild(b);H.wx(a)||(a=O.da(a))&&Fp(this,a)}};r.a("AdfDhtmlInputFilePeer.prototype.PopupClosed",{ob:H.prototype.ob});H.prototype.Xq=function(){return!0};r.a("AdfDhtmlInputFilePeer.prototype.VetoBlurValidation",{Xq:H.prototype.Xq});
H.prototype.Ue=function(a){return this.Za(a,H.fL)?!0:H.h.Ue.call(this)};r.a("AdfDhtmlInputFilePeer.prototype.VetoShowNoteWindow",{Ue:H.prototype.Ue});
function zp(a,b,d){var e=q.b,f=b.g();a.HJa||(a.HJa=new Gp(a,b,d));1!=Gp.bW(b)||a.yG||(a.yG=Gp.NKa(b),a.yG.addEventListener(Xb.Hl,a.D(a.Qka)),a.yG.addEventListener(Zb.IR,a.D(a.tgb)));a.WL=b.K(H.Ai);if(a.WL!=H.GK)if(a.WL==H.FK){var g=I.j(f,H.yea),e=e.getElementById(g);Ip(a,b);Jp(a,g,e.offsetWidth,e.offsetHeight)}else{var g=I.j(f,H.RK),h=a.gf.children[0].height;"auto"==a.UX&&H.YM(b,H.gL);H.YM(b,H.aL);for(var l=0;l<a.Oj;l++){var n=H.En(f,l),n=e.getElementById(n);if(null!=n){var t=e.getAttribute(n,H.bj);
null==t&&H.bhb(b,l)}}H.lg(b,H.Nw,null);H.lg(b,H.Wo,null);H.lg(b,H.It,null);H.lg(b,H.IK,null);t=H.En(f,null);n=e.getElementById(t);l=0;0<n.offsetWidth&&(l=n.offsetWidth);!a.Tlb&&0<n.offsetHeight&&(a.Tlb=n.offsetHeight);a.AL||(0<a.Oj?0<n.offsetHeight&&(a.AL=n.offsetHeight*a.Oj):a.AL=0);0<l&&H.Wx(t,H.Ft,H.bL);a.AL&&0<a.AL&&a.AL>h?a.bN=a.AL:0<h&&(a.bN=h);H.Wx(g,H.r1,"scroll");t=a.On.offsetWidth-a.On.clientWidth;if(0<l)0===t?(l=I.j(f,"pane"),a.Hr=e.getElementById(l).offsetWidth):a.Hr=l+t;else if(b.getVisible()&&
(!a.Hr||0==a.Hr||!a.bN)){setTimeout(function(){zp(a,b,d)},1E3);return}H.Wx(g,H.r1,"auto");t=e.getAttribute(a.On,H.bj);a.x9a||(a.kc().addEventListener(jd.Rv,function(b){if(null!=b.Tp()){var d=b.Tp().Bf();b=b.Wp();var e=a.f(),d=Kp(a,d).getAttribute(H.bj),d=A.c.m(H.sV(e,d));null!=d&&d.o().wda(b)}}),a.kc().addEventListener(jd.Ng,function(b){if(b.uj()==jd.ww&&b.se()!=jd.Iba){var d=b.Tp().Bf(),e=b.se()==jd.Aj,f=q.b;b=a.f();var d=Kp(a,d),g=d.getAttribute(H.bj);e?(H.YF(b,H.Ol,g),H.YF(b,H.Nw,g),H.ao(b,H.IK,
g),H.lg(b,H.Wo,g),H.ao(b,H.Xo,g),e=q.b,g=H.yg(b,H.Xo,g),e=e.getElementById(g),null!=e&&(e.setAttribute("disabled","disabled"),a.s4.push(g)),f.setAttribute(d,H.gT,"true"),A.c.RUa(!0)):(H.lg(b,H.Wo,g),H.ao(b,H.It,g),H.YF(b,H.Ol,g),H.ao(b,H.pA,g));H.fY(b)}else b.uj()==jd.nt?(f=b.Tp().Bf(),b=b.se()==jd.Aj,d=a.f(),f=Kp(a,f),b&&H.LOa(d,f)):b.uj()==jd.Mo?Lp(a,b.Tp().Bf(),b.se()==jd.Aj,!0):b.uj()==jd.v0&&Lp(a,b.Tp().Bf(),b.se()==jd.Aj,!1)}),a.kc().addEventListener(jd.Jh,function(d){if(d.nsa()==jd.Ez){var e=
d.Tp();d.uj()==jd.nt?H.LOa(b,Kp(a,e.Bf())):d.uj()==jd.bE&&(null!=d.getMessage()?(d=d.getMessage(),db.fqa(f,b,d)):(d=H.m9a(b,e.Bf(),e.Nra(),e.jl()),a.Vk.push(d)))}}),a.x9a=!0);Ip(a,b);if(null!=t)for(l=0;l<=t;l++)if(n=H.En(f,l),n=e.getElementById(n),H.lg(b,H.Wo,l),H.lg(b,H.It,l),H.YF(b,H.Ol,l),H.lg(b,H.Nw,l),H.lg(b,H.pA,l),g=H.kM(b,H.Xo,l),e.setAttribute(g,H.bj,l),g=e.getAttribute(n,H.UK),h=e.getAttribute(n,H.bEa),a.Vk.push(n),"true"==e.getAttribute(n,H.gT)){n=!0;if(null==h||0>h)n=!1,H.ao(b,H.pA,l),
H.lg(b,H.IK,l),H.lg(b,H.B1,l);H.k3(b,new jd.Mba(l,g,h,null,n))}a.Hr&&0<a.Hr&&Mp(b)}}function Mp(a){var b=q.b,d=A.c.H(),e=a.o();a=a.g();a=I.j(a,H.RK);var f=I.j(a,H.MS),g=b.getElementById(a),f=b.getElementById(f);H.Xx(g,"height:"+e.bN+"px;width:"+e.Hr+"px;overflow-y:hidden");Jp(e,a,e.Hr,e.bN);e.Fla=0<e.Oj?e.Oj:0;e.yu&&C.w(g,d.getStyleClass(H.pT));if(0<Np(e.kc())||!e.yu)f&&f.parentNode&&(f.parentNode.removeChild(f),b.yc(f)),C.O(g,d.getStyleClass(H.pT))}
function Jp(a,b,d,e){var f=q.b,g=I.j(b,H.MS);b=I.j(b,H.dCa);g=f.getElementById(g);b=f.getElementById(b);if(g){var h=g.children[0],l=h.width,h=h.height,n=e/2-h/2,n=0>n?0:n,t=d/2-l/2,t=0>t?0:t;a.WL==H.FK?H.Xx(g,"width:"+l+"px;height:"+h+"px;position:relative;top:"+n+"px;left:"+t+"px"):H.Xx(g,"width:"+l+"px;height:"+h+"px;position:absolute;top:"+n+"px;left:"+t+"px")}b&&(h=b.children[0],l=h.width,h=h.height,n=e/2-h/2,n=0>n?0:n,t=d/2-l/2,t=0>t?0:t,a.WL==H.FK?H.Xx(b,"width:"+l+"px;height:"+h+"px;position:relative;top:"+
n+"px;left:"+t+"px"):H.Xx(b,"width:"+l+"px;height:"+h+"px;position:absolute;top:"+n+"px;left:"+t+"px"),b&&b.parentNode&&(b.parentNode.removeChild(b),f.yc(b)))}function Kp(a,b){var d=q.b;if(a.Vk)for(var e=0;e<a.Vk.length;e++)if(d.getAttribute(a.Vk[e],H.UK)==b)return a.Vk[e];return null}k=H.prototype;k.U4=function(a){a=I.j(a.g(),"hiddendata");return q.b.getElementsByName(a)[0]};function Ap(a){a=a.f().g();a=I.j(a,H.AFa);return q.b.getElementById(a)}
k.rM=function(a){for(var b=this.kc().ks(),d=0;d<b.length;d++)if(b.item(d).jl()==a)return b.item(d);return null};k.iLa=function(a){var b=q.b;if(null!=a&&!this.A4){var d=null==this.On?this.zF:this.On;C.w(d,this.jja);this.Ok&&this.yu&&(this.gf&&this.gf.parentNode&&(this.gf.parentNode.removeChild(this.gf),b.yc(this.gf)),d.appendChild(this.Ok),b.Ia(this.Ok));this.A4=!0}b.Ea(a)};
k.Kka=function(a){var b=q.b;if(null!=a){var d=null==this.On?this.zF:this.On,e=Np(this.kc());C.O(d,this.jja);this.gf&&(0<e?(this.gf.parentNode&&(this.gf.parentNode.removeChild(this.gf),b.yc(this.gf)),this.Ok.parentNode&&(this.Ok.parentNode.removeChild(this.Ok),b.yc(this.Ok))):this.gf&&this.yu&&(d.appendChild(this.gf),b.Ia(this.gf)));this.A4=!1}b.Ea(a)};
k.kLa=function(a){var b=q.b;if(null!=a&&!this.A4){var d=null==this.On?this.zF:this.On;C.w(d,this.jja);this.Ok&&this.yu&&(this.gf&&this.gf.parentNode&&(this.gf.parentNode.removeChild(this.gf),b.yc(this.gf)),d.appendChild(this.Ok),b.Ia(this.Ok));this.A4=!0}b.Ea(a)};function Ep(a,b,d){var e=-1;if(d&&0<=(e=d.lastIndexOf("\\"))||0<=(e=d.lastIndexOf("/")))d=d.substr(e+1);d&&" "==d.charAt(0)?(b.setProperty("valid",!1),db.g8(b.g())):a.cc(b,d)}
k.Qka=function(){this.f().g();var a=this.vU;null!=a&&(this.ON=!0,this.tub(a,!0,!0),Op(this));this.kc().Iva()};k.tgb=function(){zp(this,this.f(),this.i())};function Lp(a,b,d,e){var f=a.f();b=Kp(a,b).getAttribute(H.bj);d?(a.Zna(b),Op(a)):(H.ao(f,H.Xo,b),H.lg(f,H.Wo,b));e&&H.fY(f)}k.Zna=function(a){var b=q.b,d=this.f();0==d.getValid()&&d.setProperty("valid",!0);for(d=0;d<this.Vk.length;d++)if(this.Vk[d].getAttribute(H.bj)==a){this.kc().iy(b.getAttribute(this.Vk[d],H.UK));break}};
function Ip(a,b){var d=b.g(),e=null;if(a.Ooa)e=a.Ooa;else{a.Ooa=[];var e=a.Ooa,f=null;b.K(H.Ai)==H.FK?(f=I.j(d,H.yea),e.dropAreaId=f,e.fallbackInputId=I.j(d,H.j0a)):f=I.j(d,H.RK);b.K(H.Ai)!=H.FK&&(e.inputId=I.j(d,H.gCa));e.dropAreaId=f}a.kc().load(e)}function Dp(a,b){var d=null,d=a.Dp&&a.Yk?H.Ol:H.Nw;H.Pmb(a.f(),d,b)}
function Cp(a,b,d){var e=q.b,f=b.g();if(Np(a.kc())>a.wW&&0<a.wW)db.mY(f,b,"af_inputFile.MSG_UPLOAD_MAXIMUM_FILES_ERROR","af_inputFile.MSG_UPLOAD_MAXIMUM_FILES_ERROR_DETAIL");else{H.YM(b,H.gL);a.ON=!1;for(f=0;f<a.Vk.length;f++){var g=e.getAttribute(a.Vk[f],H.gT);g&&"false"!=g||(g=a.Vk[f].getAttribute(H.bj),Dp(a,g))}H.S7(b,H.aL);null!=d?H.xu(b,d):H.fY(b)}}H.k3=function(a,b){var d=a.o();0==a.getValid()&&a.setProperty("valid",!0);d.rM(b.jl())||d.kc().Zpa(b)};
H.m9a=function(a,b,d,e){var f=q.b,g=A.c.H(),h=a.o(),l=h.R(),n=a.g(),t=H.ZKa(n);h.gf&&h.gf.parentNode&&(h.gf.parentNode.removeChild(h.gf),f.yc(h.gf),C.O(t,g.getStyleClass(H.pT)));h.Ok&&h.Ok.parentNode&&(h.Ok.parentNode.removeChild(h.Ok),f.yc(h.Ok),C.O(t,g.getStyleClass(H.pT)));null==e&&(e=f.getAttribute(t,H.bj),e=null!=e?parseInt(e)+1:0);f.setAttribute(t,H.bj,e);n=H.En(n,e);n=f.getElementById(n);null==n&&(n=H.Dbb(a,e));H.Qmb(a,e);var y=H.kM(a,H.Wo,e),z=H.kM(a,H.Xo,e),B=H.kM(a,H.It,e);f.setAttribute(n,
H.bj,e);f.setAttribute(n,H.UK,b);f.setAttribute(y,H.bj,e);f.setAttribute(z,H.bj,e);f.setAttribute(B,H.bj,e);f.setAttribute(y,"aria-label",g.Z("af_inputFile.LABEL_FILE_CANCEL_BUTTON_ACC",b));f.setAttribute(z,"aria-label",g.Z("af_inputFile.LABEL_FILE_CANCEL_BUTTON_ACC",b));f.setAttribute(B,"aria-label",g.Z("af_inputFile.LABEL_FILE_RETRY_BUTTON_ACC",b));g=H.kM(a,H.Fea,e);y=H.kM(a,H.B1,e);z=l.createElement("a");g.appendChild(z);z.setAttribute("title",b);16<b.length?z.appendChild(l.createTextNode(b.substr(0,
15)+"...")):z.appendChild(l.createTextNode(b));null!=d&&(y.appendChild(l.createTextNode(H.qeb(d))),f.setAttribute(n,H.bEa,d));f.setAttribute(n,H.gT,"false");H.ao(a,H.Xo,e);H.lg(a,H.Wo,e);H.lg(a,H.It,e);H.lg(a,H.IK,e);H.lg(a,H.pA,e);h.Dp&&h.Yk?(H.lg(a,H.Nw,e),h.kc().td()||H.YF(a,H.Ol,e)):(H.lg(a,H.Ol,e),H.ao(a,H.Nw,e),h.kc().td()||H.YF(a,H.Nw,e));a=Np(h.kc())+1;b=n.offsetHeight;d=a*parseInt(b);a>h.Fla&&a<=h.Ag?(d=1==a?parseInt(b):a*parseInt(b),H.Xx(t,"height:"+d+"px;width:"+h.Hr+"px;overflow-y:hidden")):
a>h.Ag&&(d=h.Ag*parseInt(b),H.Xx(t,"height:"+d+"px;width:"+h.Hr+"px;overflow-y:auto;margin-right: 0px;"));return n};
H.Dbb=function(a,b){var d=q.b,e=a.g(),f=H.En(e,null),g=d.getElementById(f),h=H.En(e,b),l=g.cloneNode(g),n=H.yg(a,H.Fea,null),t=H.yg(a,H.B1,null),y=H.yg(a,H.IK,null),z=H.yg(a,H.pA,null),B=H.yg(a,H.Wo,null),F=H.yg(a,H.Xo,null),K=H.yg(a,H.It,null),P=H.yg(a,H.Ol,null),Q=H.yg(a,H.Nw,null);d.setAttribute(g,"id",h);d.setAttribute(g,H.bj,b);var da=H.yg(a,H.Fea,b),ba=H.yg(a,H.B1,b),ta=H.yg(a,H.IK,b),Ha=H.yg(a,H.pA,b),Eb=H.yg(a,H.Wo,b),fb=H.yg(a,H.Xo,b),Ya=H.yg(a,H.It,b),e=e+H.Ol+b,Lb=H.yg(a,H.Nw,b),n=d.getElementById(n),
t=d.getElementById(t),y=d.getElementById(y),Kc=d.getElementById(z),z=d.getElementById(P),Q=d.getElementById(Q),B=d.getElementById(B),F=d.getElementById(F),K=d.getElementById(K);d.setAttribute(n,"id",da);d.setAttribute(t,"id",ba);d.setAttribute(y,"id",ta);d.setAttribute(Kc,"id",Ha);d.setAttribute(B,"id",Eb);d.setAttribute(F,"id",fb);d.setAttribute(K,"id",Ya);d.setAttribute(z,"id",e);d.setAttribute(z,H.Yfa,e);d.setAttribute(Q,"id",Lb);da=I.j(P,Pp.cT);ta=I.j(P,"content");Ha=I.j(e,Pp.cT);ba=I.j(e,"content");
da=d.getElementById(da);d.setAttribute(da,"id",Ha);ta=d.getElementById(ta);d.setAttribute(ta,"id",ba);d=A.c.m(P);P=d.clone(e);P.Init(d.getComponentType(),e);A.c.CZ(P.g(),P);q.b.Ia(z);q.b.Ia(da);q.b.Ia(ta);P.HQ();g.parentNode.appendChild(l);q.b.Ia(l);q.b.Ia(g);H.Wx(f,H.Ft,H.bL);H.Wx(h,H.Ft,null);return g};
H.qeb=function(a){var b=A.c.H(),d=b.Z("af_inputFile.TEXT_FILE_SIZE_GB"),e=b.Z("af_inputFile.TEXT_FILE_SIZE_MB"),f=b.Z("af_inputFile.TEXT_FILE_SIZE_KB"),b=[b.Z("af_inputFile.TEXT_FILE_SIZE_B"),f,e,d],d=null;return 0<a?(e=Math.floor(Math.log(a)/Math.log(1024)),d=3<e?b[3]:b[e],(a/Math.pow(1024,Math.floor(e))).toFixed(2)+" "+d):null!=a?a+" "+b[0]:null};H.kM=function(a,b,d){return q.b.getElementById(this.yg(a,b,d))};H.yg=function(a,b,d){var e=a.g(),e=H.En(e,d),f=null;return f=b!=H.Ol?I.j(e,b):H.sV(a,d)};
H.sV=function(a,b){var d=a.g(),e=q.b,f=a.o().R(),g=null,g=null!=b?f.querySelector("["+H.Yfa+"\x3d'"+d+H.Ol+b+"']"):f.querySelector("["+H.Yfa+"\x3d'"+d+H.Ol+"']");return e.getAttribute(g,"id")};H.mfb=function(a){var b=a.K(H.DFa);a=a.K(H.SS);return H.bha==b||(1>a||1<a)&&H.O7a==b?H.bha:H.cha};H.En=function(a,b){var d=null,d=I.j(a,H.RK),d=I.j(d,H.D6a);return d=null!=b?I.j(d,H.cEa)+b:I.j(d,H.cEa)};H.ZKa=function(a){var b=q.b;a=I.j(a,H.RK);return b.getElementById(a)};
H.YF=function(a,b,d){var e=q.b,f=null,f=b==H.Ol?H.sV(a,d):H.yg(a,b,d);null!=e.getElementById(f)&&H.l7(a,b,d,H.vE,H.B2)};H.Lub=function(a,b){var d=q.b,e=a.g(),e=H.En(e,b);null!=d.getElementById(e)&&H.m7(a,b,H.vE,H.B2)};H.bhb=function(a,b){var d=q.b,e=a.g(),e=H.En(e,b);null!=d.getElementById(e)&&H.Wx(e,H.vE,H.B2)};H.wx=function(a){var b=a.K(H.DFa),d=a.K(H.SS);return(1>d||1<d)&&H.cha!=b||1==d&&(H.bha==b||H.P7a==b)||H.Uhb(a)&&H.cha!=b?!0:!1};H.Uhb=function(a){a=a.K(H.Ai);return a==H.GK||a==H.FK?!0:!1};
H.lg=function(a,b,d){var e=q.b,f=null,f=b==H.Ol?H.sV(a,d):H.yg(a,b,d);null!=e.getElementById(f)&&H.l7(a,b,d,H.Ft,H.bL)};H.Pub=function(a,b){var d=q.b,e=a.g(),e=H.En(e,b);null!=d.getElementById(e)&&H.m7(a,b,H.Ft,H.bL)};H.YM=function(a,b){H.CPa(a,b,H.bL)};
H.LOa=function(a,b){var d=q.b,e=a.o();if(b){var f=b.offsetHeight,g=b.getAttribute(H.bj),g=H.sV(a,g);b.parentNode.removeChild(b);d.yc(b);A.c.nz(g);for(d=0;d<e.Vk.length;d++)if(e.Vk[d]==b){e.Vk.splice(d,1);break}d=H.ZKa(a.g());g=Np(e.kc());if(g>e.Fla||0==e.Fla)f=g*parseInt(f),f>=e.bN?H.Xx(d,"height:"+f+"px;width:"+e.Hr+"px"):H.Xx(d,"height:"+e.bN+"px;width:"+e.Hr+"px");1>g&&(e.gf&&e.yu&&(d.appendChild(e.gf),f=A.c.H(),C.w(d,f.getStyleClass(H.pT))),H.YM(a,H.aL),"auto"!=e.UX&&H.S7(a,H.gL))}};
H.CPa=function(a,b,d){var e=H.Ft;a=a.g();H.Wx(I.j(a,b),e,d)};H.Wx=function(a,b,d){a=q.b.getElementById(a);null==d&&(d="");if(null!=a)switch(b){case H.Ft:a.style.display=d;break;case H.vE:a.style.visibility=d;break;case H.r1:a.style.overflowY=d}};H.Xx=function(a,b){var d=q.b;d.S()==q.ia?a.style.cssText=b:d.setAttribute(a,"style",b)};H.l7=function(a,b,d,e,f){var g=q.b,h=a.g(),h=H.En(h,d);null!=g.getElementById(h)&&H.Wx(this.yg(a,b,d),e,f)};
H.m7=function(a,b,d,e){var f=q.b;a=a.g();b=H.En(a,b);null!=f.getElementById(b)&&H.Wx(b,d,e)};H.Pmb=function(a,b,d){H.l7(a,b,d,H.vE,H.Fga)};H.Qmb=function(a,b){H.m7(a,b,H.vE,H.Fga)};H.ao=function(a,b,d){H.l7(a,b,d,H.Ft,H.A2)};H.cvb=function(a,b){H.m7(a,b,H.Ft,H.A2)};H.S7=function(a,b){H.CPa(a,b,H.A2)};
H.xu=function(a,b){var d=a.o(),e=d.kc().ry();d.gU=!1;if(0<e.length){for(var f=null,g=0;g<e.length;g++)if(e.item(g).Bf()==b){f=e.item(g);break}null!=f&&(e=f.jl(),(g=f.getData())&&d.Yk&&d.Dp&&g.size!=f.Nra()?(H.ao(a,H.pA,e),H.ao(a,H.It,e),H.YF(a,H.Ol,e),H.fY(a)):(d.kc().EI(f.Bf()),H.lg(a,H.Xo,e),H.ao(a,H.Wo,e)))}};
H.fY=function(a){var b=a.o(),d=b.kc().ry(),e=b.kc().ks();b.gU=!1;if(0<d.length)b=d.item(0),H.xu(a,b.Bf());else{"auto"!=b.UX&&H.S7(a,H.gL);H.YM(a,H.aL);for(d=0;d<e.length;d++)if(!e.item(d).$G){var f=e.item(d).jl();H.ao(a,H.Xo,f)}Op(b)}};function Op(a){var b=q.b;for(i=0;i<a.s4.length;i++){var d=b.getElementById(a.s4[i]);null!=d&&d.removeAttribute("disabled")}a.s4=[]}H.prototype.IZ=function(a,b){var d=a.K("validators");a.setProperty("valid",!0);d&&0<d.length&&(A.c.Oe(a.g()),this.dA(a,b))};
r.a("AdfDhtmlInputFilePeer.prototype.preValidate",{IZ:H.prototype.IZ});H.prototype.dA=function(a,b){if(a.getValid()){var d=a.Pb(b);d&&a.getRequired()&&(Qp(a),a.setProperty("valid",!1));if(!d||A.c.gY)if(d=a.K("validators"),null!=d)for(var e=0;e<d.length;e++){var f=d[e];try{f.Xi(b,a.K("label"),a.getConverter())}catch(g){a.setProperty("valid",!1),Rp(a,g.Uvb(),a.getLabel())}}}};r.a("AdfDhtmlInputFilePeer.prototype.ValidateValue",{dA:H.prototype.dA});
H.prototype.QY=function(a){var b=null;H.wx(a)?(a=I.j(a.g(),H.gCa),b=q.b.getElementById(a)):b=O.da(this.f());return b.files||E.wD};r.a("AdfDhtmlInputFilePeer.prototype.getFileList",{QY:H.prototype.QY});H.prototype.Ba=function(){};r.a("AdfDhtmlInputFilePeer.prototype.SetDisplayValue",{Ba:H.prototype.Ba});H.prototype.mH=function(a){var b=new Yg(a);b.Xc(!0);b.I$();a.Hg(b)};r.a("AdfDhtmlInputFilePeer.prototype.autoSubmit",{mH:H.prototype.mH});