var Ur={r:0,V:1,D:2,b:3};function xT(){this.Dt();this.A9=null;}xT.prototype=XE(yY.prototype);xT.prototype.superClass=yY;xT.prototype.constructor=xT;xT.prototype.Dt=yY;function ID(b){var V=new xT();V.A9=QM.K.createElement("contact");V.r=b;V.lm("IPM.Contact");return V;}xT.f7=ID;function jA(b,V){var D=new xT();D.A9=b;D.r=V;return D;}xT.pH=jA;function PB(){return QM.r(this.A9,"display_name","");}xT.prototype.AN=PB;function tw(b){QM.p(this.A9,"display_name",b);}xT.prototype.tJ=tw;function yQ(){return QM.r(this.A9,"display_name_prefix","");}xT.prototype.KA=yQ;function rM(b){QM.p(this.A9,"display_name_prefix",b);}xT.prototype.kM=rM;function K1(){return QM.r(this.A9,"suffix","");}xT.prototype.U1=K1;function Bw(b){QM.p(this.A9,"suffix",b);}xT.prototype.wY=Bw;function fk(){return QM.r(this.A9,"first_name","");}xT.prototype.c6=fk;function aJ(b){QM.p(this.A9,"first_name",b);}xT.prototype.m=aJ;function Bs(){return QM.r(this.A9,"middle_name","");}xT.prototype.LM=Bs;function ji(b){QM.p(this.A9,"middle_name",b);}xT.prototype.HW=ji;function Py(){return QM.r(this.A9,"last_name","");}xT.prototype.jU=Py;function S2(b){QM.p(this.A9,"last_name",b);}xT.prototype.SD=S2;function VQ(){return QM.r(this.A9,"job_title","");}xT.prototype.Oj=VQ;function Yx(b){QM.p(this.A9,"job_title",b);}xT.prototype.KK=Yx;function wO(){return QM.r(this.A9,"company_name","");}xT.prototype.Cs=wO;function Sz(b){QM.p(this.A9,"company_name",b);}xT.prototype.Wa=Sz;function Yo(){return QM.r(this.A9,"file_as","");}xT.prototype.Fe=Yo;function bC(b){QM.p(this.A9,"file_as",b);}xT.prototype.Z2=bC;function cR(){return parseInt(QM.r(this.A9,"file_type"),10);}xT.prototype.M1=cR;function Pz(b){QM.p(this.A9,"file_type",b);}xT.prototype.Hu=Pz;function P1(b){return QM.r(this.A9,"email"+b+"_address","");}xT.prototype.yR=P1;function z7(b,V){QM.p(this.A9,"email"+b+"_address",V);QM.p(this.A9,"email"+b+"_display_name",V);}xT.prototype.g=z7;function AU(b){return QM.r(this.A9,"email"+b+"_address_with_comment","");}xT.prototype.z4=AU;function li(b,V){QM.p(this.A9,"email"+b+"_address_with_comment",V);}xT.prototype.k8=li;function gp(b){return QM.r(this.A9,"email"+b+"_address_type");}xT.prototype.GW=gp;function fE(b,V){QM.p(this.A9,"email"+b+"_address_type",V);}xT.prototype.Ne=fE;function rO(){return QM.r(this.A9,"home_phone_number","");}xT.prototype.nF=rO;function kO(b){QM.p(this.A9,"home_phone_number",b);}xT.prototype.Rc=kO;function Xx(){return QM.r(this.A9,"work_phone_number","");}xT.prototype.v=Xx;function CX(b){QM.p(this.A9,"work_phone_number",b);}xT.prototype.E3=CX;function Pv(){return QM.r(this.A9,"mobile_phone_number","");}xT.prototype.Pb=Pv;function DC(b){QM.p(this.A9,"mobile_phone_number",b);}xT.prototype.wB=DC;function SO(){return QM.r(this.A9,"work_fax_number","");}xT.prototype.VJ=SO;function Y3(b){QM.p(this.A9,"work_fax_number",b);}xT.prototype.qX=Y3;function aF(){return QM.r(this.A9,"home_address_street","");}xT.prototype.JJ=aF;function xI(b){QM.p(this.A9,"home_address_street",b);}xT.prototype.Hm=xI;function bW(){return QM.r(this.A9,"home_address_city","");}xT.prototype.uV=bW;function F8(b){QM.p(this.A9,"home_address_city",b);}xT.prototype.ox=F8;function RH(){return QM.r(this.A9,"home_address_state","");}xT.prototype.bP=RH;function l3(b){QM.p(this.A9,"home_address_state",b);}xT.prototype.Hn=l3;function fC(){return QM.r(this.A9,"home_address_zip","");}xT.prototype.bO=fC;function m6(b){QM.p(this.A9,"home_address_zip",b);}xT.prototype.z8=m6;function nS(){return QM.r(this.A9,"home_address_country","");}xT.prototype.p4=nS;function Ta(b){QM.p(this.A9,"home_address_country",b);}xT.prototype.i0=Ta;function pp(){return QM.r(this.A9,"work_address_street","");}xT.prototype.AH=pp;function Bk(b){QM.p(this.A9,"work_address_street",b);}xT.prototype.Hx=Bk;function yx(){return QM.r(this.A9,"work_address_city","");}xT.prototype.k=yx;function Vo(b){QM.p(this.A9,"work_address_city",b);}xT.prototype.z6=Vo;function rE(){return QM.r(this.A9,"work_address_state","");}xT.prototype.hP=rE;function oh(b){QM.p(this.A9,"work_address_state",b);}xT.prototype.Dl=oh;function ci(){return QM.r(this.A9,"work_address_zip","");}xT.prototype.xH=ci;function o6(b){QM.p(this.A9,"work_address_zip",b);}xT.prototype.rm=o6;function DK(){return QM.r(this.A9,"work_address_country","");}xT.prototype.yA=DK;function f4(b){QM.p(this.A9,"work_address_country",b);}xT.prototype.z=f4;function yv(){return QM.r(this.A9,"other_address_street","");}xT.prototype.d6=yv;function ac(b){QM.p(this.A9,"other_address_street",b);}xT.prototype.T8=ac;function rc(){return QM.r(this.A9,"other_address_city","");}xT.prototype.fG=rc;function VB(b){QM.p(this.A9,"other_address_city",b);}xT.prototype.a4=VB;function Ef(){return QM.r(this.A9,"other_address_state","");}xT.prototype.Yu=Ef;function IR(b){QM.p(this.A9,"other_address_state",b);}xT.prototype.rl=IR;function vf(){return QM.r(this.A9,"other_address_zip","");}xT.prototype.Km=vf;function hf(b){QM.p(this.A9,"other_address_zip",b);}xT.prototype.JZ=hf;function rG(){return QM.r(this.A9,"other_address_country","");}xT.prototype.TQ=rG;function O9(b){QM.p(this.A9,"other_address_country",b);}xT.prototype.cz=O9;function H2(){var b=parseInt(QM.r(this.A9,"selected_mailing_address"),10);if(b==Ur.V||b==Ur.D||b==Ur.b){return b;}else{return Ur.r;}}xT.prototype.J=H2;function Bb(b){QM.p(this.A9,"selected_mailing_address",b);}xT.prototype.Jz=Bb;function na(){return QM.r(this.A9,"web_page_address","");}xT.prototype.ZD=na;function fa(b){QM.p(this.A9,"web_page_address",b);}xT.prototype.Ws=fa;function CI(){return QM.r(this.A9,"im_address","");}xT.prototype.ah=CI;function t3(b){QM.p(this.A9,"im_address",b);}xT.prototype.Hb=t3;function IO(){return QM.r(this.A9,"department","");}xT.prototype.fW=IO;function jE(b){QM.p(this.A9,"department",b);}xT.prototype.yY=jE;function I9(){return QM.r(this.A9,"office_location","");}xT.prototype.U6=I9;function AY(b){QM.p(this.A9,"office_location",b);}xT.prototype.lc=AY;function SP(){return QM.r(this.A9,"profession","");}xT.prototype.T=SP;function uj(b){QM.p(this.A9,"profession",b);}xT.prototype.d8=uj;function Ll(){return QM.r(this.A9,"manager","");}xT.prototype.Fv=Ll;function PN(b){QM.p(this.A9,"manager",b);}xT.prototype.pB=PN;function hg(){return QM.r(this.A9,"assistant","");}xT.prototype.i=hg;function qz(b){QM.p(this.A9,"assistant",b);}xT.prototype.u=qz;function P5(){return QM.r(this.A9,"nickname","");}xT.prototype.te=P5;function ML(b){QM.p(this.A9,"nickname",b);}xT.prototype.ag=ML;function Qb(){return QM.r(this.A9,"spouse","");}xT.prototype.d2=Qb;function MM(b){QM.p(this.A9,"spouse",b);}xT.prototype.v6=MM;function bx(){return BN(QM.r(this.A9,"bday",""));}xT.prototype.Si=bx;function cf(b){if(b==null){var V=QM.S(this.A9,"bday",false);if(V!=null){this.A9.removeChild(V);}}else{QM.p(this.A9,"bday",OC(b));}}xT.prototype.sa=cf;function zR(){return BN(QM.r(this.A9,"anniversary",""));}xT.prototype.ug=zR;function Ve(b){if(b==null){var V=QM.S(this.A9,"anniversary",false);if(V!=null){this.A9.removeChild(V);}}else{QM.p(this.A9,"anniversary",OC(b));}}xT.prototype.fT=Ve;function TA(){return QM.r(this.A9,"description","");}xT.prototype.eJ=TA;function ZO(b){QM.p(this.A9,"description",b);}xT.prototype.uf=ZO;function wf(){var b=new Array();var V=this.KA();var D=this.c6();var r=this.LM();var H=this.jU();var S=this.U1();if(V!=null&&V.strip()!=""){b["PREFIX"]=V.strip()+" ";}else{b["PREFIX"]="";}if(D!=null&&D.strip()!=""){b["FIRST"]=D.strip()+" ";}else{b["FIRST"]="";}if(r!=null&&r.strip()!=""){b["MIDDLE"]=r.strip()+" ";}else{b["MIDDLE"]="";}if(H!=null&&H.strip()!=""){b["LAST"]=H.strip()+" ";}else{b["LAST"]="";}if(S!=null&&S.strip()!=""){b["SUFFIX"]=S.strip()+" ";}else{b["SUFFIX"]="";}return strings.contact_display_name_format.format(b).strip();}xT.prototype.sL=wf;function Yi(){var b=new xT();b.A9=this.A9.cloneNode(true);b.r=this.r;b.l=this.l;return b;}xT.prototype.Pp=Yi;function qs(){return this.A9.getAttribute("uid");}xT.prototype.n=qs;function JW(b){if(b!=null){this.A9.setAttribute("uid",b);}else{this.A9.removeAttribute("uid");}}xT.prototype.O=JW;function Lr(){var b=this.A9.getAttribute("msgid");if(b==null||b.strip()==""){return this.A9.getAttribute("msgID");}else{return b;}}xT.prototype.Z=Lr;function kZ(b){if(b!=null){this.A9.setAttribute("msgid",b);}else{this.A9.removeAttribute("msgid");}}xT.prototype.Fh=kZ;function eT(){var b=QM.S(this.A9,"importance",false);if(b!=null){var V=parseInt(QM.o(b),10);if(!isNaN(V)){if(V==0){return HW.D;}else{if(V==1){return HW.V;}else{if(V==2){return HW.b;}else{return HW.V;}}}}else{return HW.V;}}else{return HW.V;}return (b!=null?parseInt(QM.o(b),10):null);}xT.prototype.y=eT;function N2(){return JZ.V;}xT.prototype.V=N2;function YJ(){return false;}xT.prototype.b=YJ;function nv(){return QM.r(this.A9,"subject","");}xT.prototype.A=nv;function PC(){return nf(this.A());}xT.prototype.h=PC;function HP(b){return QM.p(this.A9,"subject",b);}xT.prototype.e6=HP;function qv(){var b=QM.S(this.A9,"last_modification_time",false);return (b!=null?BN(QM.o(b)):null);}xT.prototype.B=qv;function tp(){var b=this.B();return b!=null?b.getTime():null;}xT.prototype.a=tp;function Qc(){var b=QM.S(this.A9,"message_size",false);return (b!=null?parseInt(QM.o(b),10):null);}xT.prototype.x=Qc;function Xh(){return QM.r(this.A9,"message_class");}xT.prototype.t=Xh;function H8(b){QM.p(this.A9,"message_class",b);}xT.prototype.lm=H8;function MJ(){var b=QM.r(this.A9,"sent_representing_name");var V=QM.r(this.A9,"sent_representing_email_address");return (V!=null?new KC(b,V):null);}xT.prototype.U=MJ;function TT(){var b=this.U();if(b!=null){var V=b.o();var D=b.S();return V!=null?V:D;}else{return "";}}xT.prototype.M=TT;function Lz(){var b=QM.r(this.A9,"sender_name");var V=QM.r(this.A9,"sender_email_address");return (V!=null?new KC(b,V):null);}xT.prototype.w=Lz;function E1(b,V,D,r){if(this.p||!this.l){return ;}var H=this.r;var S=new X2.S(nW("contacts"),b,ps(this,this.bX),ps(this,this.SS));S.b.add("onSuccessFn",V);S.b.add("onErrorFn",D);S.b.add("onDeletedFn",r);S.b.add("no.report.faults",true);var h=S.D("loadBody",ax);var l=QM.K.createElement("contact");l.setAttribute("uid",this.n());l.setAttribute("msgid",this.Z());l.setAttribute("ImapFolderName",H.R());h.h(l);this.p=true;S.V.d();}xT.prototype.q=E1;function xG(b,V){var D=b.D().firstChild;var r=D.firstChild;this.p=false;if(r.getAttribute("deleted")=="true"){this.d=true;var H=this.r;H.I(this);var S=V.item("onDeletedFn");if(S){S(this);}return ;}this.A9=r;this.l=false;var h=V.item("onSuccessFn");if(h){h(this);}}xT.prototype.bX=xG;function c8(b,V){this.p=false;this.P=true;var D=V.item("onErrorFn");if(D){D(this);}}xT.prototype.SS=c8;function ko(b,V,D){if(b==null){b=true;}var r=this.r;var H=new X2.S(nW("contacts"),b,ps(this,this.b7),ps(this,this.ZH));H.b.add("onSuccessFn",V);H.b.add("onErrorFn",D);H.b.add("no.report.faults",true);var S=H.D("save",ax);var h=this.A9.cloneNode(true);h.setAttribute("ImapFolderName",r.R());S.h(h);this.G=true;H.V.d();}xT.prototype.qt=ko;function w6(b,V){var D=b.D().firstChild;var r=D.firstChild;this.A9=r;this.G=false;var H=V.item("onSuccessFn");if(H){H(this);}}xT.prototype.b7=w6;function LN(b,V){this.G=false;var D=V.item("onErrorFn");if(D){D(this);}}xT.prototype.ZH=LN;function Kj(b){if(il(b,xT)){var V=b;return V.Fe();}else{if(il(b,Gp)){var D=b;return D.A();}else{return "";}}}function Bj(b){var V="";if(il(b,xT)){for(var D=1;D<=3;D++){if((V=b.yR(D).strip())!=""){break;}}}return V;}function ux(b){var V;if(il(b,xT)){if((V=b.v().strip())!=""){return V;}if((V=b.nF().strip())!=""){return V;}if((V=b.Pb().strip())!=""){return V;}}return "";}function R3(b){if(il(b,xT)){return b.Cs();}else{return "";}}function MF(b){return Cx(b.AH(),b.k(),b.hP(),b.xH(),b.yA());}function FZ(b){return Cx(b.JJ(),b.uV(),b.bP(),b.bO(),b.p4());}function WD(b){return Cx(b.d6(),b.fG(),b.Yu(),b.Km(),b.TQ());}function Cx(b,V,D,r,H){var S=new Array();if(b!=null&&b.strip()!=""){S["STREETPREFIX"]=strings.postal_address_street_prefix;S["STREETSUFFIX"]=strings.postal_address_street_suffix;S["STREET"]=b.strip();}else{S["STREETPREFIX"]="";S["STREETSUFFIX"]="";S["STREET"]="";}if(V!=null&&V.strip()!=""){S["CITYPREFIX"]=strings.postal_address_city_prefix;S["CITYSUFFIX"]=strings.postal_address_city_suffix;S["CITY"]=V.strip();}else{S["CITYPREFIX"]="";S["CITYSUFFIX"]="";S["CITY"]="";}if(D!=null&&D.strip()!=""){S["STATEPREFIX"]=strings.postal_address_state_prefix;S["STATESUFFIX"]=strings.postal_address_state_suffix;S["STATE"]=D.strip();}else{S["STATEPREFIX"]="";S["STATESUFFIX"]="";S["STATE"]="";}if(r!=null&&r.strip()!=""){S["ZIPPREFIX"]=strings.postal_address_zip_prefix;S["ZIPSUFFIX"]=strings.postal_address_zip_suffix;S["ZIP"]=r.strip();}else{S["ZIPPREFIX"]="";S["ZIPSUFFIX"]="";S["ZIP"]="";}if(H!=null&&H.strip()!=""){S["COUNTRYPREFIX"]=strings.postal_address_country_prefix;S["COUNTRYSUFFIX"]=strings.postal_address_country_suffix;S["COUNTRY"]=H.strip();}else{S["COUNTRYPREFIX"]="";S["COUNTRYSUFFIX"]="";S["COUNTRY"]="";}return strings.postal_address_format.format(S);}function Gz(b,V){var D=V.split(" ");if(D[0]!=null){b.m(D[0]);}if(D[1]!=null&&D[2]!=null){b.HW(D[1]);b.SD(D[2]);}else{if(D[1]!=null){b.SD(D[1]);}}}