var iL=null;if(false){iL=new Ge();}function Ge(){this.t=null;this.A=null;this.K=null;this.e=null;this.B=new Array();this.l=false;iL=this;}function Cj(b,V){var D=new X2.S(nW("soapmail"),true,ps(this,this.W),ps(this,this.o));D.D("namespace",ax);var r=D.D("getFolderTree",ax);var H=QM.K.createElement("prefetch");for(var S=0,len=pd.Y.length;S<len;S++){var h=pd.Y[S];var l=QM.K.createElement("folder");QM.N(l,h);H.appendChild(l);}r.h(H);D.b.add("onSuccess",b);D.b.add("onError",V);D.V.d();}Ge.prototype.p=Cj;function RT(b,V){var D=QM.D(b.D(),"namespaceResponse","m");this.t=QM.r(D,"hierarchyDelimiter","/");this._personalNamespacePrefix=QM.r(D,"personalNamespacePrefix","");this.K=QM.r(D,"publicFoldersNamespacePrefix","Public Folders");this.e=QM.r(D,"otherUsersNamespacePrefix","Other Users");var r=QM.D(b.D(),"listFoldersResponse","m");var H=r.firstChild;function S(o,q){for(var e=0,len=o.childNodes.length;e<len;e++){var d=o.childNodes.item(e);var f=d.getAttribute("type");if(f==c6.r&&!uM()){continue;}var N=d.getAttribute("imapName");var p=d.getAttribute("directRef");var B=d.getAttribute("specialFolder");var K=d.getAttribute("serverMessageCount");if(K!=null){K=parseInt(K,10);}var C=d.getAttribute("unreadCount");if(C!=null){C=parseInt(C,10);}var W=d.getAttribute("validity");if(W!=null){W=parseInt(W,10);}var t=d.getAttribute("displayName");var Y=false;if(B==p4.d||B==p4.l){K=0;C=0;}var a;if(f==c6.r){a=new Hr(N,q,B,K,C,W,null,t,p);}else{a=new ZD(N,f,q,B,Y,K,C,W,null,t,p);}if(d.hasChildNodes()){S(d,a);}}}S(H,null);var h=new ZD(strings.specialfolder_outbox,c6.S,null,p4.H,true,0,0);this.l=true;var l=V.item("onSuccess");if(l){l();}}Ge.prototype.W=RT;function Xy(b,V){var D=V.item("onError");if(D){D();}}Ge.prototype.o=Xy;function PY(){return this.t;}Ge.prototype.f=PY;function Or(){return this._personalNamespacePrefix;}Ge.prototype.H=Or;function Fg(){return this.K;}Ge.prototype.x=Fg;function Iv(){return this.e;}Ge.prototype.Y=Iv;function WJ(V){if(V==null){return this.B;}else{var D=this.r();if(D){var r=D.a4();for(var H=0,len=r.length;H<len;H++){var D=r[H];if(D.Y()==V){return D.a4();}}}return null;}}Ge.prototype.b=WJ;function Ow(b,V){var r=this.b(V);if(r){for(var H=0,len=r.length;H<len;H++){var S=r[H];if(S.f()==b){return S;}}}return null;}Ge.prototype.D=Ow;function vI(b){return this.D(p4.S,b);}Ge.prototype.V=vI;function CY(){return this.D(p4.H);}Ge.prototype.q=CY;function u4(b){return this.D(p4.h,b);}Ge.prototype.Z=u4;function UY(b){return this.D(p4.q,b);}Ge.prototype.h=UY;function Sr(b){return this.D(p4.D,b);}Ge.prototype.d=Sr;function qr(b){return this.D(p4.V,b);}Ge.prototype.N=qr;function Ea(b){return this.D(p4.o,b);}Ge.prototype.L=Ea;function AK(){return this.D(p4.d);}Ge.prototype.C=AK;function Rr(){return this.D(p4.l);}Ge.prototype.r=Rr;function Yr(b){var V=this.B;var D=b.split(this.t);for(var r=0,len1=D.length;r<len1;r++){var H=D[r];for(var S=0,len2=V.length;S<len2;S++){var h=V[S];if(h.Y()==H){if(r==len1-1){return h;}else{V=h.a4();break;}}}}return null;}Ge.prototype.I=Yr;function y3(b){var V=new Array();function D(S){var o=S.a4();for(var q=0,len=o.length;q<len;q++){var e=o[q];if(e.B()==c6.r){IZ.b(V,e);}D(e);}}var r=this.b(b);if(r){for(var H=0,len=r.length;H<len;H++){var h=r[H];if(h.B()==c6.r){IZ.b(V,h);}var l=h.f();if(l!=p4.d&&l!=p4.l){D(h);}}}return V;}Ge.prototype.S=y3;function Dn(){var b=new Array();function V(r){var H=r.a4();for(var S=0,len=H.length;S<len;S++){var h=H[S];if(h.B()==c6.r){IZ.b(b,h);}V(h);}}var D=this.r();if(D){V(D);}return b;}Ge.prototype.a=Dn;
