try{
var mE=function(a,b){a.$b+=b?-1:1;0>=a.$b&&a.jg&&(a.$b=0,y$a(a))},ASd=function(a,b){a.Ab.push(b);return a},e1=function(a,b){a.mL.push(b)},KXa=function(a,b){Py(a.Sa,17,b);b&&a.$b&&(a.$b=!1)},Byd=function(a){return null!=w(a,15)?w(a,15):!0},G$a=function(){Ld.call(this)};t(G$a,Ld);var E$a=function(a){this.vb=a};E$a.prototype.b4=function(a,b){return r$a(a)||s$a(a,zg(this.vb.wn(),function(a){return a==b?"":a.getName()}))};var J$a=function(){Ld.call(this)};t(J$a,G$a); var F$a=function(a){A.call(this,"ad");this.bnb=a||"a"};t(F$a,A);var H$a=function(a){a=a.sK();return!(!a||"15"!=a)};H("sy677");
var L$a=function(){Ld.call(this)};t(L$a,Ld);var M$a=function(a){A.call(this,"ed",a)};t(M$a,A);var lE=function(a,b,c){Ld.call(this);this.Sa=a;this.aG=c?Lp(b,c):b;this.YY=ud(this.Sa,"dd",this.N4,!1,this)};t(lE,t$a);lE.prototype.Fc=function(){return D$a(this).length};lE.prototype.Ab=function(a,b){for(var c=D$a(this),d=0;d<c.length;d++)try{a.call(b,c[d])}catch(f){if(f!=Oe)throw f;}};lE.prototype.xp=function(){return sb(D$a(this))};var D$a=function(a){a.hO||(a.hO=[],a.Sa.Ab(function(a){this.aG(a)&&this.hO.push(a)},a));return a.hO};q=lE.prototype;
q.get=function(a){return(a=this.Sa.get(a))&&this.aG(a)?a:null};q.cC=function(a){return(a=this.Sa.cC(a))&&this.aG(a)?a:null};q.vub=e(456);q.Jga=e(458);q.N4=function(){this.hO=null;this.dispatchEvent(new u$a(this))};q.qb=function(){Ad(this.YY);lE.ya.qb.call(this)};
var N$a=function(a,b){Ld.call(this);this.Sa=a;this.initialize(b)};t(N$a,L$a);q=N$a.prototype;q.initialize=function(a){this.Ab=a;this.Sa.Xa();this.dispatchEvent(new M$a(this))};q.getId=function(){return hc(this.Sa)};q.getKey=function(){return ps(this.Sa)};q.j1b=function(a){return rs(this.Sa,a)};q.Ra=function(){var a=this.Ab;return null!=w(a,10)?w(a,10):2};q.xfa=function(){return"15"==this.Sa.sK()};q.dc=function(){var a=this.Ab;return 2==(null!=w(a,11)?w(a,11):1)};q.getName=function(){return this.Ab.getName()};
q.Jd=function(){return this.Ab.Jd()||null};q.Eh=function(){return this.Ab.Eh()||null};var Iyd=function(a){return ia(Byd(a.Ab))&&!Byd(a.Ab)};N$a.prototype.mL=function(){return ia(this.Ab.Os())?this.Ab.Os():null};var O$a=function(a){this.Sa=a};O$a.prototype.Wb=function(a){this.hE=a;return this};O$a.prototype.Ee=function(a){this.$b=a;return this};
O$a.prototype.Hf=function(){ia(this.hE)&&this.Sa.Ab.Wb(this.hE);ia(this.$b)&&this.Sa.Ab.Ee(this.$b);ia(this.mL)&&Py(this.Sa.Ab,14,this.mL);ia(this.Oa)&&Py(this.Sa.Ab,7,this.Oa);ia(this.Ag)&&Py(this.Sa.Ab,13,this.Ag);ia(this.Ab)&&Py(this.Sa.Ab,15,!this.Ab);ia(this.Qb)&&Py(this.Sa.Ab,17,this.Qb);var a=this.Sa;a.dispatchEvent(new M$a(a))};N$a.prototype.Qb=function(){return hc(this.Ab)};
var K$a=function(){hE.call(this)};t(K$a,hE);var cab=os("__new__"),dab=ps(cab);var P$a=function(a,b){hE.call(this);this.Fa=a;this.Fs=b.Se();this.Sa=new N$a(b.Se(),Mk(b));this.Sa.initialize(Mk(b));Q$a(this);this.Vb=ud(this,"dd",this.uh,!1,this)};t(P$a,K$a);var R$a=function(a,b,c,d){var f=iE(a);d||f.LZ();v(b,function(a){var b=a.Ce();S$a(this,b,O(a,Ek,4),c,f)},a);f.Hf();a.uh()},Q$a=function(a){if(H$a(a.Sa.Sa)&&!a.Jd()){var b="";switch(a.getId().sK()||""){case "15":b="People who you don't want to interact with."}(new O$a(a.Sa)).Ee(b).Hf()}};q=P$a.prototype;
q.qb=function(){Ad(this.Vb);P$a.ya.qb.call(this)};q.getId=function(){return this.Sa.getId()};q.getKey=function(){return this.Sa.getKey()};q.Ra=function(){return this.Sa.Ra()};q.xfa=function(){return this.Sa.xfa()};q.getName=function(){return this.Sa.getName()};q.Jd=function(){return this.Sa.Jd()};q.Eh=function(){return this.Sa.Eh()};q.Sna=function(){return Iyd(this.Sa)};
var S$a=function(a,b,c,d,f){if(b&&c)for(var h=0;h<c.length;h++){var k=c[h].Se();if(k&&rs(k,a.Fs))if(w(c[h],4))ASd(f,ts(b));else if(k=d.get(b)){e1(f,k);break}else ts(b),a.getKey()}};P$a.prototype.uh=function(){var a=new O$a(this.Sa),b=this.Fc();a.Oa=b;a.Hf()};P$a.prototype.Ag=function(){var a=new Lk;a.Ym(this.getId());var b=this.Sa.Qb();Lg(a,2,b);return a};
var oE=function(a){Ld.call(this);this.Fa=a;this.Qb=new Ze;this.$b=new Ze;this.Ab=[];this.Sa=new hE;this.Vb=new hE;this.jg=new hE;this.c0=new hE};t(oE,J$a);q=oE.prototype;q.QN="u";q.xA="u";q.Mqa="u";q.xIa="u";q.tGb=!1;q.cda=0;q.S2a=!1;q.qb=function(){for(var a=this.Qb.Rc(),b=0;b<a.length;b++)y(a[b]);y(this.mL);delete this.mL;y(this.Oa);delete this.Oa;oE.ya.qb.call(this)};var pE=function(a,b){a.cda?a.S2a=!0:a.dispatchEvent(new F$a(b))},T$a=function(a){a.cda=Math.max(0,a.cda-1);a.S2a&&(a.S2a=!1,pE(a))};
q=oE.prototype;q.iW=function(){this.mL||(this.mL=new lE(this.Sa,I$a(this.OI,this.pJa),this));return this.mL};q.F4a=e(562);q.wL=function(a,b){this.Oa||(this.Oa=new lE(this.Sa,this.pJa,this));var c,d;b||(c=this.Fa.get(eH),d=c.nua(),c=c.ZJa());return a||b?jg(this.Oa):fq([c,d]).addCallback(function(){return this.Oa},this)};q.pJa=function(a){return!this.v_().cC(a.getKey())};q.Oc=function(a){return this.Sa.cC(a)};q.jr=function(a){return this.Sa.get(a)};
q.Rqa=function(a,b){for(var c=0;c<this.Ab.length;c++)try{a.call(b,this.Ab[c].Sa)}catch(d){if(d!=Oe)throw d;}};var U$a=function(a,b){for(var c=[],d=oa(b)?b:[b],f=0;f<d.length;f++){var h=a.Qb.get(d[f]);h&&c.push(h.Sa)}return c};oE.prototype.wn=function(){return this.Ab};oE.prototype.qi=function(a){a=qa(a)?a:ps(a);return this.Qb.get(a,null)};oE.prototype.xfa=function(a){var b=V$a(this);return!(!b||!b.get(a))};var V$a=function(a){a=a.v_();return 0<a.Fc()?a:null};q=oE.prototype;
q.v_=function(){return this.Qb.get(uVf("15"),null)};q.Dv=function(a){return 0<this.dC(a).length};q.Hta=function(a){return 0<W$a(this,a).length};q.OI=function(a){a=this.dC(a);for(var b=0,c=0;c<a.length;c++)2==a[c].Sa.Ra()&&b++;return 0<b};q.dC=function(a){var b=a.getKey();return this.$b.get(b)||W$a(this,a.getId())};var W$a=function(a,b){var c=ec(a.Qb.Rc(),function(a){return!!a.get(b)}),d=ts(b);a.$b.set(d,c);return c};
oE.prototype.Ag=function(a){a=this.dC(a);for(var b=[],c=0;c<a.length;c++)b.push(a[c].getId());return b};oE.prototype.s_a=function(a){a=this.dC(a);for(var b=[],c=0;c<a.length;c++)b.push(a[c].getKey());return b};oE.prototype.vT=e(145);oE.prototype.c4=function(){return this.uh||(this.uh=new E$a(this))};var X$a=function(a,b){"i"!=a.xA&&(a.cda++,Y$a(a,b.Sa()),Z$a(a,b.Sa()),a.dispatchEvent(new qE(a)),T$a(a))};
oE.prototype.initialize=function(a,b){this.cda++;mE(this.Sa,!1);this.$b.clear();var c=b?2:3;rE(this,a.Ms(),c);Y$a(this,a.Sa(),a.Ms());Z$a(this,a.Sa());mE(this.Sa,!0);this.dispatchEvent(new qE(this));T$a(this)};
var rE=function(a,b,c,d){var f=[];if(!b.length)return f;var h=ws(a.Fa);d=0!=d;for(var k=iE(a.Sa),m=0;m<b.length;m++){var p,u=a.Sa.get(b[m].Ce());if(u){if(p=u,1!=c||!p.uGb()){ASd(k,p.getKey());var z=p,F=b[m],M=F.Ce(),F=F.Lj(),X=z.getId().Xa(),da=M.Xa();if(!X||da){M.Xa()&&(M.Xa(),z.mL.Xa());M.yc()&&(M.yc(),z.mL.yc());z.mL=M;M=z;X=F;F=M.Sa.Cd();z=M.Sa.Pe();X=X.Pe();for(da=0;da<X.length;da++)ia(X[da])&&(z[da]=X[da]);Wa()<M.uh+18E5?Py(M.Sa,9,F):M.uh=Wa()}e1(k,u)}}else p=AB(b[m],h),d&&e1(k,p);f.push(p);
1==c?KXa(p,!0):2==c&&null==w(p.Sa,17)&&(u=b[m].Lj(),KXa(p,!!w(u,17)))}k.Hf();pE(a,void 0);return f},Y$a=function(a,b,c,d){for(var f=0;f<b.length;f++){var h=b[f].Se(),h=ps(h);if(w(b[f],3))aab(a,h);else if(h=a.Qb.get(h)){var k=h;k.Sa.initialize(Mk(b[f]));Q$a(k);c&&R$a(h,c,a.Sa,d)}else bab(a,b[f],c)}},Z$a=function(a,b){for(var c=new kE,d=0;d<b.length;d++){var f=b[d].Se();c.add(ps(f))}for(d=0;d<a.Ab.length;d++)f=a.Ab[d].getKey(),c.contains(f)||aab(a,f)};oE.prototype.YY=e(563);
var aab=function(a,b){var c=a.qi(b);a.Qb.remove(b);pb(a.Ab,function(a){return a.getKey()==b});y(c);a.$b.clear()},bab=function(a,b,c){var d=b.Se(),d=ps(d);if(!ba(a.Qb,d)){b=new P$a(a.Fa,b);c&&R$a(b,c,a.Sa);a.Qb.set(d,b);t:switch(b.Fs.sK()||""){case "5":case "15":case "27":c=!1;break t;default:c=!0}c&&a.Ab.push(b)}},qE=function(a){A.call(this,"$c",a)};t(qE,A);

G("sy677");I();
}catch(e){_DumpException(e)}
try{
var eab=function(a,b,c){var d=ws(a.Fa);(a=a.Sa.get(b.Ce()))?b=a:(b=AB(b,d),e1(c,b));return b},fab=function(a){this.Sa={};if(a)for(var b=0;b<a.length;b++)this.Sa[a[b].sK()]=!0};QD.prototype.Sa=g(386,function(){return w(this,3)});
var gab=function(a,b,c){var d=b.ql(),f=b.$b(),h=b.Sa();mE(a.Sa,!1);b=iE(a.Sa);for(var k=0;k<d.length;k++){var m=eab(a,d[k].Oc(),b),p=c;m.Ab.setData(d[k],h);p?m.Ag=!0:ia(p)&&(m.Ag=!1)}b.Hf();b=iE(a.Sa);if(f)for(k=0;k<f.length;k++)m=eab(a,f[k].Oc(),b),c=f[k].Sa(),d=f[k].Hk(),0==c.length&&d&&(c=[d]),m.Qb=m.Qb.concat(c);b.Hf();mE(a.Sa,!0);pE(a,"s")};H("sy661");
var tE=function(a){return a.get(eH)};
G("sy661");I();
}catch(e){_DumpException(e)}
try{
H("sy484");var Cgd="Tz Xz Wz Sz Rz Vz Uz Qz".split(" "),Dgd="Az Ez Dz zz yz Cz Bz xz".split(" "),LDb=function(a,b,c,d){var f;qa(b)?f=b:f=b.Xa()||b.yc()||b.P9()||ic(b)||b.getUrl();if(f){d=d?d:"";b=f.length;for(var h=0,k=0;k<b;++k){var m=parseInt(f.charAt(k),10);isNaN(m)&&(m=f.charCodeAt(k));h+=m}b=h%=Cgd.length;f=jc(a).createElement("div");t:switch(c){case "HOVERCARD":c=Cgd[b];break t;case "CKPT":c=Dgd[b];break t;default:c=""}f.className=c+" "+d;a.appendChild(f)}};

G("sy484");I();
}catch(e){_DumpException(e)}
try{
var Qyd=function(a,b){A.call(this,"cd");this.J8=a;this.Sa=b};t(Qyd,A);
var Uyd=function(a,b,c){a.dispatchEvent(new Qyd(b,c))},lbb=function(a,b){tb(a.Ab,b);return a},mbb=function(a,b){for(var c=[],d=0;d<b.length;d++)c.push(ts(b[d]));for(d=0;d<a.Ab.length;d++)2==a.Ab[d].Sa.Ra()&&lbb(iE(a.Ab[d]),c).Hf();a.$b.clear();a.mL&&a.mL.N4();pE(a);Uyd(a,[],b)},nbb=function(a,b,c,d){for(var f=[],h=[],k=0;k<b.length;k++)b[k].$b=!d,f.push(b[k].getId()),h.push(b[k].getKey());var k=iE(a.c0),m=iE(a.Sa);d?(lbb(k,h),HN(m,b)):(HN(k,b),lbb(m,h));k.Hf();m.Hf();c?mbb(a,f):pE(a,"f")},obb=function(a,
b,c,d,f){var h=!!d;d=[];var k=new cE;eE(k,h);for(var m=0;m<b.length;m++){var p=h?a.c0.get(b[m]):a.jr(b[m]);p?d.push(p):!f||a.jr(b[m])||a.c0.get(b[m])||dE(k,b[m])}k.Sa.length&&a.Fa.get(eH).XI(k,function(a){nbb(this,a,c,h)},Hx,a);nbb(a,d,c,h)},pbb=function(a,b,c,d,f,h,k){a=new O$a(a.Sa);null!=b&&a.Wb(b);null!=c&&a.Ee(c);null!=d&&(a.mL=d);null!=f&&(a.Ag=f);null!=h&&(a.Ab=h);null!=k&&(a.Qb=k);a.Hf()},qbb=function(a,b){var c=new Lk;c.Ym(a);Lg(c,2,b);return c};
oE.prototype.YY=g(563,function(a){a=new fab(a.Sa());for(var b=0;b<this.Ab.length;b++){var c=this.Ab[b],d=c.Sna(),f=c.getKey(),f=qs(f);d!=!!a.Sa[f.sK()]&&pbb(c,null,null,null,null,!c.Sna(),null)}pE(this);return!0});hE.prototype.Jga=g(459,function(a){var b;try{b=Ti(Gi(a).Sa).getValue("oid")||""}catch(c){}if(!b)return null;a=ss(b);return this.get(a)});lE.prototype.Jga=g(458,function(a){return(a=this.Sa.Jga(a))&&this.aG(a)?a:null});
hE.prototype.vub=g(457,function(a){for(var b=[],c=0;c<a.length;c++){var d=this.get(a[c]);d&&b.push(d)}return b});lE.prototype.vub=g(456,function(a){return ec(this.Sa.vub(a),this.aG,this)});F9a.prototype.Sa=g(387,function(){return O(this,vk,1)});zkc.prototype.vT=g(147,function(a){Py(this,2,a)});ykc.prototype.vT=g(146,function(a){Py(this,2,a)});oE.prototype.vT=g(145,function(){});
var rbb=function(a,b){var c=zg(b,function(a){a=a.Ce();return ts(a)});a.Oa&&a.Oa.N4();a.mL&&a.mL.N4();lbb(iE(a.v_()),c).Hf();a.$b.clear();pE(a)},sbb=function(a,b){for(var c=[],d=[],f=0;f<b.length;f++)b[f].Ce().Xa()&&(c.push(b[f]),d.push(b[f].Ce()));var h=iE(a.Sa),k=!1,c=zg(c,function(a){var b=a.Ce(),c=this.Sa.get(b);c||(c=this.c0.get(b));c||(c=new Ck,tB(c,a.getName()),c=new yB(b,c),e1(h,c),k=!0);return c},a);k?h.Hf():(a.Oa&&a.Oa.N4(),a.mL&&a.mL.N4());obb(a,d,!1,!0);HN(iE(a.v_()),c).Hf();a.$b.clear();
pE(a);Uyd(a,[],d)},tbb=function(a,b,c){for(var d=[],f=0;f<b.length;f++){for(var h=a.qi(b[f]),k=!1,m=h.Jga(a.Fa),p=[],u=0;u<c.length;u++){var z=c[u],F=ts(z);p.push(F);var M=a.Sa.cC(F);M&&(1>=(a.$b.get(F)||W$a(a,z)).length&&d.push(F),1==h.Ra()&&m&&m.uOa(M)&&(aab(a,h.getKey()),k=!0))}k||lbb(iE(h),p).Hf();a.$b.clear()}lbb(iE(a.jg),d).Hf();a.mL&&a.mL.N4();pE(a);Uyd(a,b,c)},ubb=function(a,b){var c=ec(b,function(a){return!a.nj()&&!(!a.Xa()&&!a.yc())});gb(c)||(c=zg(c,function(a){return a.getId()}),c=a.Sa.vub(c),
HN(iE(a.jg),c).Hf())},vbb=function(a,b){var c=zg(b,function(a){return a.getId()});obb(a,c,!1,!0)},wbb=function(a,b,c){b=qbb(b,c);bab(a,b,[]);a.dispatchEvent(new qE(a));pE(a)},xbb=function(a,b,c){var d=ss(ws(a.Fa)),f=b.Ce(),h=b.Lj();b=O(b,Ek,4);Cd(b,function(a){a=a.Se();return!(!a||!rs(a,this.Fs))},a);d&&f&&h&&(d=iE(a),S$a(a,f,b,c,d),d.Hf(),a.uh())},ybb=function(a,b){A.call(this,"bd");this.J8=a;this.Sa=b};t(ybb,A);
var Zyd=function(a,b){Lg(a,1,b)},zbb=function(a,b){Mg(a,1,b)},i6c=function(a,b){a.YY||(a.YY={});a.YY.m=b},ala=function(a){return O(a,Ok,1)},Abb=function(a,b){Mg(a,1,b)},Dbb={"getstarted.InterestTile.AddAllButton":5,NewOrAddToCircleDialog:17,PeopleSuggestTile:18,InterestingSuggestTile:21,"PeopleEditor.DragDrop.find":7,"notification.CircleNotificationComponent":19,"allfriends.Dialog.view-all":14,"getstarted.FriendSuggestions.PeopleGrid":1,"profile.main":11,"getstarted.FriendSuggestions.viewAllLink.PeopleGrid.addAllToCircle":4,
"getstarted.CelebsPreviewDialog.AddAllButton":6,"getstarted.FriendSuggestions.PeopleGrid.addAllToCircle":2,hovercard:20,"allfriends.Dialog.view-in":13,"PeopleEditor.DragDrop.following":8,"PeopleEditor.DragDrop.in":9,"PeopleEditor.DragDrop.circle":10,"getstarted.FriendSuggestions.viewAllLink.PeopleGrid":3,"controls.RelatedPeople.CircleNotificationComponent":15,"profile.emptyStream":12,"controls.RelatedPeople.getstarted.FriendSuggestions.PeopleGrid":16},Cbb,Bbb=function(){if(!Cbb){Cbb=[];for(var a in Dbb)Cbb.push(a);
wb(Cbb,function(a,c){return c.length-a.length})}},Ebb=function(){};Ebb.prototype.Sa=function(){return null};Ebb.prototype.Ab=function(){};Ebb.prototype.mL=function(){};Ebb.prototype.Ha=function(){};var Fbb=function(a,b,c,d){this.Eo=a;this.Ab=b;this.Sa=c;this.scope=d},Jbb=function(a){Ld.call(this);this.xa=a;this.iu=ri(a);this.Sa=new Ebb;this.lp=new ag};t(Jbb,Ld);Jbb.prototype.$b=0;
var Kbb=function(a){var b=new iab;jab(b,a);return b.le()},Lbb=function(a,b,c){for(var d=a.length-1;0<=d;d--){var f=a[d];c?f.jd(c):f.By(b);delete a[d]}},uE=function(a,b,c,d,f,h){c={Jb:Lp(a.zF,a,c,f,b.mL,b.Ab),rb:Lp(a.Xb,a,d,f,b)};b=b.aH;h=new ci(h?a.iu.Ab:a.iu.Sa,c);Cf(h.Ab,""+b);jga(h,"BEST_EFFORT");Rg(h,aha());a.$b++;XXa(h,!1);return h};
Jbb.prototype.Xb=function(a,b,c,d){this.$b--;0>this.$b&&(this.$b=0);if(d.bk)switch(d.bk.getData()){case "TOO_MANY_PEOPLE":a.call(b,"You've reached the maximum number of people that can be in your circles at this time.");return;case "CROSS_DOMAIN_SILO":a.call(b,"Error performing the requested action because of a domain restriction.");return;case "OVER_QUOTA":a.call(b,"You've reached the daily limit for adding to your circles. You can add more tomorrow.");return;case "POLICY_VIOLATION":if(c==Z9a){a.call(b,
"You can't add one or more of these people or pages to your circles.");return}if(c==$9a){c="You can't add one or more of these people or pages to your circles.";d=d.getData("m");oa(d)&&1==d.length&&(d=d[0].Ob())&&(c=(new Z("{VIEWER_GENDER, select, other {{PROFILE_GENDER, select, other {You can't add "+(d+" to circles}}}}"))).format({VIEWER_GENDER:"unknown",PROFILE_GENDER:"other"}));a.call(b,c);return}}a.call(b,c.Sa)};
Jbb.prototype.zF=function(a,b,c,d,f,h,k){"tsg.lf"==c&&"tsg.lac"==h&&a.call(b,new WD(k));c==h&&(this.$b--,0>this.$b&&(this.$b=0),a.call(b,new d(k)))};var vE=function(a,b,c,d,f){d=Lp(function(a,b,c){for(var d=0;d<a.length;d++)this.Sa.mL(a[d]);b(c)},a,f,d);return uE(a,b,c,d,void 0,void 0)},Gbb=function(a,b){this.Fa=a;this.$c=b};t(Gbb,kd);q=Gbb.prototype;q.A0a=!1;q.aPa=!1;q.t3a=!1;q.zxa=6E5;q.Lia=null;q.vIb=!1;q.qb=function(){Ad(this.mL);Ad(this.Ab);this.Go&&ha.clearTimeout(this.Go);Gbb.ya.qb.call(this)};
q.fqd=function(){this.A0a=!0};q.Reb=function(){this.aPa=!0};q.XYb=function(){this.t3a=!0;this.tqb()};q.pqb=function(){this.t3a=!1;this.sKa()};q.sKa=function(){var a;if(a=!this.Go)a=this.Fa.Vc(Ns),a=!(this.t3a||a&&a.mL&&a.mL.Ab);if(a){var b=a=Wa();sa(this.Sa)&&(b=Math.max(b,this.Sa+this.zxa));sa(this.Lia)&&(b=Math.max(b,this.Lia+this.zxa));b=Math.min(b,a+this.zxa);this.Go=ha.setTimeout(Lp(this.WGc,this),b-a)}};q.tqb=function(){this.Go&&(ha.clearTimeout(this.Go),this.Go=null)};
q.WGc=function(){this.Go=null;var a=Wa();this.Sa=a;var b=this.Lia+this.zxa/2;!this.aPa&&this.A0a||!(b<a||a<this.Lia)?this.A0a&&!this.aPa&&this.$c.Sa.Ha("tscr"):(a=this.$c,a.kqb?Xbb(a):Ubb(a,void 0,["autorefresh"]));this.sKa()};var Hbb=function(a){if(!a)return 0;Bbb();for(var b=0;b<Cbb.length;b++){var c=Cbb[b];if(0==a.indexOf(c))return Dbb[c]}return 0},Ibb=function(a){K(this,a,0,-1,[])};t(Ibb,J);q=Ibb.prototype;q.Se=function(){return w(this,1)};q.Ym=function(a){Py(this,1,a)};
q.getName=function(){return w(this,2)};q.Wb=function(a){Py(this,2,a)};q.Jd=function(){return w(this,3)};q.Ee=function(a){Py(this,3,a)};q.setVisible=function(a){Py(this,4,a)};var Mbb=function(a){K(this,a,0,-1,[1])};t(Mbb,J);
var Nbb=function(a){for(var b=0,c=0,d={},f=function(a){return a?d[a]:!1},h=function(a){a&&(d[a]=!0)};b<a.length;){var k=a[b++],m=f(k.Xa())||f(k.yc())||f(ic(k));h(k.Xa());h(k.yc());h(ic(k));m||(a[c++]=k)}a.length=c},Obb=function(a,b,c,d,f,h,k){var m=new Kk;Py(m,10,a);m.Wb(b);Py(m,13,b.toLowerCase());c&&m.Ee(c);ia(d)&&Py(m,7,d);ia(h)&&Py(m,13,h);ia(f)&&Py(m,14,f);ia(k)&&Py(m,15,!k);return m},bzd=function(a,b){b&&b.NWa()&&(Ls(a,"sat",b.NWa()),b.OWa()&&(Ls(a,"sacx",Math.floor(b.OWa())),Ls(a,"sacy",Math.floor(b.eKb()))),
b.LIa()&&(Ls(a,"sasy",Math.floor(b.LIa())),Ls(a,"sasx",Math.floor(b.Gbb()))))},Qbb=function(a){Jbb.call(this,a);this.vb=new oE(a);this.Oa=[];this.mL=[];this.Qb=[];this.jg=[];this.uh=[];this.Ab=new Gbb(a,this)};t(Qbb,Jbb);q=Qbb.prototype;q.g0=null;q.f0=null;q.qZa=500;q.Jda=null;q.kqb=!1;q.NJa=0;q.dIa=!0;q.e1a=!1;q.cU=function(){var a=new ag;switch(this.vb.QN){case "i":a.By(this.vb);break;case "l":this.Oa.push(a);break;case "u":case "f":this.vb.QN="l";this.Oa.push(a);Rbb(this);break;default:a.jd(this.vb)}return a};
var Rbb=function(a){Sbb(a,function(a){X$a(this.vb,a);this.vb.QN="i";Tbb(this)},function(a){this.vb.QN="f";Tbb(this,a)},a)},Sbb=function(a,b,c,d){a=uE(a,J9a,b,c,d);fi(a,"ct",[2]);fi(a,"mc",1);fi(a,"m",0);a.send()},Tbb=function(a,b){var c=a.Oa.length;Lbb(a.Oa,a.vb,b);a.Oa=a.Oa.slice(c)};
Qbb.prototype.$k=function(a){var b=new ag;switch(this.vb.xA){case "i":b.By(this.vb);break;case "l":this.mL.push(b);break;case "u":case "f":"i"!=this.vb.QN&&(this.vb.QN="l");this.vb.xA="l";this.mL.push(b);Ubb(this,a);break;default:b.jd(this.vb)}return b};Qbb.prototype.Ag=function(){return"i"==this.vb.xA?this.vb:null};
var Ubb=function(a,b,c){var d=a.Sa.Sa("lc");Vbb(a,!!b,c||[],function(a){this.vb.initialize(a,!1);this.vb.QN="i";this.vb.xA="i";Wbb(this,d)},function(a){this.vb.vT(a);this.vb.xA="f";Wbb(this,d,a)},a)},Xbb=function(a){var b=a.Sa.Sa("lc");Ybb(a,function(a){var d=this.vb;d.cda++;mE(d.Sa,!1);rE(d,a.Ms(),3);Y$a(d,a.Sa(),a.Ms(),!0);mE(d.Sa,!0);d.dispatchEvent(new qE(d));T$a(d);Wbb(this,b)},function(a){this.vb.vT(a);this.vb.xA="f";Wbb(this,b,a)},a)};
Qbb.prototype.Ur=function(){return"i"==this.vb.xA?this.vb:null};var Wbb=function(a,b,c){ia(c)?a.Sa.mL(b):a.Sa.Ab(b);Tbb(a,c);b=a.mL.length;Lbb(a.mL,a.vb,c);a.mL=a.mL.slice(b);a=a.Ab;a.Lia=Wa();a.aPa=!1;a.vIb||((c=a.Fa.Vc(Ns))&&c.mL&&(a.mL=ud(c.mL,"idle",a.tqb,!1,a),a.Ab=ud(c.mL,"active",a.sKa,!1,a)),a.vIb=!0);a.sKa()};Qbb.prototype.Ko=function(a,b){a(b)};
var Vbb=function(a,b,c,d,f,h){d=Lp(a.Ko,a,Lp(d,h));f=Lp(f,h);a=uE(a,J9a,d,f,void 0,!b);b&&c.push("fg");fi(a,"ct",[2]);fi(a,"m","true");c.length&&fi(a,"tag",c);a.send()},Ybb=function(a,b,c,d){var f=["autorefresh"];b=Lp(a.Ko,a,Lp(b,d));c=Lp(c,d);c=uE(a,K9a,b,c,void 0,!0);fi(c,"t",a.Ab.Lia-15);f.length&&fi(c,"tag",f);c.send()};q=Qbb.prototype;q.ZJa=function(){return jg(this.vb)};
q.nua=function(a){var b=new ag;a&&(this.vb.Mqa="u");switch(this.vb.Mqa){case "i":b.By(this.vb);break;case "l":this.Qb.push(b);break;case "u":case "f":this.vb.Mqa="l";this.Qb.push(b);a=Math.max(this.qZa,this.NJa+30);var c=Lp(this.VLb,this,a),c=uE(this,T9a,c,this.cXc,this,!0);fi(c,"m",a+1);c.send();break;default:b.jd(this.vb)}return b};q.$5a=function(){if(this.vb.tGb)return jg(this.vb);var a=new ag,b=this.qZa,c=uE(this,U9a,wa(this.Cwc,a),wa(this.Bwc,a),this,!0);fi(c,"m",b);c.send();return a};
q.Cwc=function(a,b){this.YY||(this.YY=b.Sa());gab(this.vb,b,!0);this.vb.tGb=!0;a.By(this.vb)};q.Bwc=function(a,b){a.jd(b)};q.BIb=function(a,b,c){var d=new ag;bg(dcb(this,a,0,b,c).addCallback(Lp(this.dBb,this,a,0,d)),d.jd,d);return d};q.dBb=function(a,b,c,d){var f=N(d,QD,1);-1<w(d,2)?setTimeout(Lp(function(){dcb(this,a,b+1).addCallback(Lp(this.dBb,this,a,b+1,c))},this),1E3*w(d,2)):(this.Qb.push(c),this.VLb(0,f))};
q.VLb=function(a,b){this.YY||(this.YY=b.Sa());var c=b.ql(),d=c.length;0<a?d>=a+1?(this.dIa=!0,Mg(b,1,c.slice(0,a)),this.NJa=a):(this.dIa=!1,this.NJa=d):this.NJa=d;gab(this.vb,b);this.vb.Mqa="i";ccb(this)};q.cXc=function(a){this.vb.Mqa="f";ccb(this,a)};var ccb=function(a,b){var c=a.Qb.length;Lbb(a.Qb,a.vb,b);a.Qb=a.Qb.slice(c)},dcb=function(a,b,c,d,f){var h=new ag;a=uE(a,V9a,h.By,h.jd,h);fi(a,"g",b);fi(a,"c",c);d&&fi(a,"vi",d);f&&fi(a,"os",f);a.send();return h};
Qbb.prototype.Op=function(){var a=new ag;switch(this.vb.xIa){case "i":a.By(this.vb.c0);break;case "l":this.jg.push(a);break;case "u":case "f":this.vb.xIa="l";this.jg.push(a);fcb(this,function(a){var c=this.vb;a=a.Ms();var d=[];if(a.length){for(var f=ws(c.Fa),h=iE(c.c0),k=iE(c.Sa),m=!1,p=0;p<a.length;p++){var u=c.Sa.get(a[p].Ce()),z;u?(z=u,m=!0,ASd(k,u.getKey()),e1(h,u)):(z=AB(a[p],f),e1(h,z));z.$b=!0;d.push(z)}h.Hf();m&&k.Hf()}this.vb.xIa="i";ecb(this,this.vb.c0)},function(a){this.vb.xIa="f";ecb(this,
a)},this);break;default:a.jd(this.vb.c0)}return a};var ecb=function(a,b){var c=a.jg.length;Lbb(a.jg,qa(b)?{}:b,qa(b)?b:void 0);a.jg=a.jg.slice(c)},fcb=function(a,b,c,d){a=uE(a,O9a,b,c,d,!0);fi(a,"m",5E3);a.send()};Qbb.prototype.XI=function(a,b,c,d){var f=[];Ye(a.Sa,function(b){return!(b=this.vb.jr(b))||a.mL&&null==w(b.Sa,17)?!1:(f.push(b),!0)},this)?b.call(d,f):(this.dw&&Vf(this.dw),this.uh.push(new Fbb(a,b,c,d)),a.Ab?this.dw=Uf(this.Km,50,this):this.Km())};
Qbb.prototype.Km=function(){var a=this.uh;this.uh=[];for(var b=[],c=0;c<a.length;c++)tb(b,a[c].Eo.Sa);Nbb(b);c=this.e1a||Cd(a,function(a){return a.Eo.mL});a=uE(this,Q9a,Lp(this.Tx,this,a,c),Lp(this.Sx,this,a));Ls(a,"m",Kbb(b));fi(a,"if",c?"true":"false");a.send()};Qbb.prototype.Tx=function(a,b,c){c=ec(c.Ms(),function(a){return(a=a.Lj())&&(a.Ob()||a.Jt()||DXa(a))});b=b?2:3;this.vb.cda++;for(var d=0;d<a.length;d++){var f=a[d],h=gcb(f.Eo.Sa,c),h=rE(this.vb,h,b,f.Eo.Qb);f.Ab.call(f.scope,h)}T$a(this.vb)};
var gcb=function(a,b){for(var c=[],d=0;d<a.length;d++){var f=a[d],h=cb(b,function(a){return vs(a.Ce(),f)?!0:Cd(O(a,yk,2),function(a){return vs(a,f)})});h&&c.push(h)}return c};Qbb.prototype.Sx=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d.Sa.call(d.scope,b)}};var hcb=function(a,b,c,d,f){for(var h=new v$a,k=0;k<b.length;k++)h.add(b[k].Ce(),b[k].Ob()||void 0);f&&(c=Lp(c,f),d=Lp(d,f));b=a.Sa.Sa("bp");c=Lp(a.lvc,a,h,b,c);a=vE(a,g$a,c,d,[b]);Ls(a,"m",fE(h).le());a.send()};q=Qbb.prototype;
q.lvc=function(a,b,c){this.qVb(ala(fE(a)),b);c(new XD)};q.qVb=function(a,b){var c=zg(a,function(a){return a.Ce()});"i"==this.vb.xA&&mbb(this.vb,c);ia(b)?this.Sa.Ab(b,null,c):this.Sa.Ha("bp",null,c);"i"==this.vb.xA&&sbb(this.vb,a)};q.rLc=function(a,b,c,d){var f=zg(ala(fE(a)),function(a){return a.Ce()});this.Sa.Ab(b,null,f);"i"==this.vb.xA&&rbb(this.vb,ala(fE(a)));a=new aE;Py(a,2,d.PO());c(a)};
q.Vpb=function(a){if("i"!=this.vb.xA)return null;for(var b=0;b<a.length;b++)if(this.vb.xfa(a[b]))return this.vb.jr(a[b]).Ob();return null};q.mxb=function(a){return a+" is blocked and cannot be added to another circle until unblocked."};q.w3a=function(a){for(var b=new v$a,c=0;c<a.length;c++)b.add(a[c]);var c=new ag,d=uE(this,n$a,c.By,c.jd,c);c.addCallback(function(b){"i"==this.vb.xA&&obb(this.vb,a,!0,!1,!0);return b},this);fi(d,"i",1);Ls(d,"m",fE(b).le());d.send();return c};
q.sgb=function(a){for(var b=new v$a(!0),c=0;c<a.length;c++)b.add(a[c]);var c=new ag,d=uE(this,o$a,c.By,c.jd,c);c.addCallback(function(b){"i"==this.vb.xA&&obb(this.vb,a,!1,!0,!0);return b},this);fi(d,"i",1);Ls(d,"m",fE(b).le());d.send();return c};q.mB=function(a,b,c){return cg(this.YJ(),function(a){return a.rJ()},b,c).addCallback(a,c)};
q.YJ=function(){if(this.Db){var a=this.Db();a&&(this.g0=a,this.f0=jg(a))}if(!this.f0){var a=new ag,b=uE(this,R9a,a.By,a.jd,a);bg(a.addCallback(function(a){this.g0=a},this),function(){this.f0=null},this);this.f0=a;b.send()}return this.f0.Hn().addCallback(function(){return hc(this.g0)},this)};q.FVc=function(a){czd(this,a,null,ka,ka,void 0)};q.qia=function(a,b,c,d,f){Py(a,7,!1);czd(this,a,b,c,d,f)};
var czd=function(a,b,c,d,f,h){var k=a.g0?hc(a.g0):new C9a;b&&Zyd(k,hc(b));if(c&&eb(c.Sa(),3)){var m=new kic;Py(m,1,!0);Lg(k,2,m)}a=uE(a,S9a,function(a){this.g0=k;d.call(h,a)},Lp(f,h),a);b&&Ls(a,"s",b.le());c&&Ls(a,"l",c.le());a.send()},icb=function(a,b){a.Db=b};q=Qbb.prototype;q.Moc=function(){this.f0=null};q.VO=function(a,b,c,d){d&&(b=Lp(b,d),c=Lp(c,d));b=Lp(this.iyc,this,a,b);c=uE(this,f$a,b,c,d);Ls(c,"m",Kbb(a));c.send()};q.iyc=function(a,b,c){"i"==this.vb.xA&&mbb(this.vb,a);b(c)};
q.nF=function(a,b,c,d){d&&(b=Lp(b,d),c=Lp(c,d));d=Lp(function(a){var c=new ag;this.mL.push(c);Ubb(this);c.addCallback(Lp(b,this,a))},this);c=uE(this,b$a,d,c);Ls(c,"c",a.le());c.send()};q.mqc=function(){var a=new ag;if(this.Vk)return a.By(this.Vk),a;var b=uE(this,W9a,a.By,a.jd,a);a.addCallback(function(a){return this.Vk=a},this);b.send();return a};
q.sfa=function(a,b,c,d){d&&(b=Lp(b,d),c=Lp(c,d));d=this.Sa.Sa("cc",a.$o);var f=a.Bj.length?this.Sa.Sa("acm",a.$o):null,h=Lp(this.v1a,this,a,d,f,b);b=new Mbb;Mg(b,1,a.Bj);c=vE(this,Z9a,h,c,[d,f]);fi(c,"t",a.type);Ls(c,"n",a.name);fi(c,"f",a.Sa?"true":"false");fi(c,"af",ia(a.Sa)?"false":"true");Ls(c,"m",b.le());ia(a.description)&&Ls(c,"d",a.description);fi(c,"as",Hbb(a.$o));Ls(c,"asr",a.$o);c.send()};
q.v1a=function(a,b,c,d,f){var h=f.Se();this.Sa.Ab(b,[h]);0<a.Bj.length&&this.Sa.Ab(c,[h],zg(a.Bj,function(a){return a.Ce()}));b=a.Ab?6==f.Eh():a.Sa;a=Obb(a.type,a.name,a.description,void 0,f.Eh(),w(f,2),b);"i"==this.vb.QN&&wbb(this.vb,h,a);jcb(this,[h],f.Ms());d(f)};
q.HF=function(a,b,c,d,f){var h=a.J8,k=a.Bj;if(Cd(h,function(a){return"15"==a.sK()}))hcb(this,k,b,c,d);else{var m=this.Vpb(zg(a.Bj,function(a){return a.Ce()}));if(m)c.call(d,this.mxb(m));else{d&&(b=Lp(b,d),c=Lp(c,d));d=this.Sa.Sa("acm",a.$o);var p=Lp(this.buc,this,a,d,b);b=new Mbb;Mg(b,1,k);m=new xk;Abb(m,h);h=new xk;Abb(h,[]);c=vE(this,$9a,p,c,[d]);Ls(c,"a",m.le());Ls(c,"m",b.le());Ls(c,"r",h.le());i6c(c,k);null!=this.Jda&&Ls(c,"ad",this.Jda?"true":"false");bzd(c,f);fi(c,"as",Hbb(a.$o));Ls(c,"asr",
a.$o);c.send()}}};q.buc=function(a,b,c,d){var f=a.J8;a=a.Bj;jcb(this,f,d.Ms());var h=w(d,5);null!=h&&(this.Jda=h);this.Sa.Ab(b,f,zg(a,function(a){return a.Ce()}),zg(d.Ms(),function(a){return Rs(a.Lj())?xGb(Rs(a.Lj())):null}));c(d)};
var jcb=function(a,b,c){if(0!=c.length){for(var d=0;d<c.length;d++){for(var f=[],h=0;h<b.length;h++){var k=new Ek;k.Ym(b[h]);Py(k,1,2);f.push(k)}Mg(c[d],4,f)}if("i"==a.vb.xA){a=a.vb;mE(a.Sa,!1);for(d=0;d<b.length;d++){f=a.Qb.get(ps(b[d]));try{mE(f,!1);var m=rE(a,c,3);ubb(a,m);vbb(a,m);for(h=0;h<c.length;h++)xbb(f,c[h],a.Sa)}finally{mE(f,!0)}}a.$b.clear();mE(a.Sa,!0);pE(a);a.dispatchEvent(new ybb(b,c))}}};
Qbb.prototype.yT=function(a,b,c,d,f,h,k){if("15"==a.sK()){k=d;a=new v$a(!0);for(d=0;d<b.length;d++)a.add(b[d]);h&&(k=Lp(k,h),f=Lp(f,h));b=this.Sa.Sa("up");h=Lp(this.rLc,this,a,b,k);b=vE(this,h$a,h,f,[b]);fi(b,"m",fE(a).le());b.send()}else h&&(d=Lp(d,h),f=Lp(f,h)),h=kcb(this,a,b)?"lsc":"rcm",h=this.Sa.Sa(h,c),d=Lp(this.nA,this,a,b,h,d),f=vE(this,a$a,d,f,[h]),bzd(f,k),Ls(f,"c",a.le()),Ls(f,"m",Kbb(b)),f.send()};
Qbb.prototype.nA=function(a,b,c,d,f){"i"==this.vb.xA&&tbb(this.vb,[a],b);this.Sa.Ab(c,[a],b,zg(b,Lp(function(a){return(a=this.vb.jr(a))&&a.Ck()?xGb(Rs(a.Sa)):null},this)));d(f)};var kcb=function(a,b,c){if(1!=fua(b))return!1;var d=ws(a.xa);return Cd(c,function(a){return a.Xa()==d})};q=Qbb.prototype;q.BCb=e(583);
q.FKa=function(a,b,c,d){var f=ia(b.L$)?this.Sa.Sa("ccn"):null,h=ia(b.Sa)?this.Sa.Sa("ccd"):null,k=Lp(this.JDc,this,a,b,f,h,c);c=new Ibb;c.Ym(a.sK());ia(b.L$)&&c.Wb(b.L$);ia(b.Sa)&&c.Ee(b.Sa);ia(b.Ab)&&Py(c,5,b.Ab);ia(void 0)&&Py(c,6,void 0);a=vE(this,c$a,k,d,[f,h]);yYa(a,c);a.send()};
q.JDc=function(a,b,c,d,f,h){ia(b.L$)&&this.Sa.Ab(c,[a]);ia(b.Sa)&&this.Sa.Ab(d,[a]);if("i"==this.vb.QN){c=this.vb;d=b.L$;var k=b.Sa,m=h.Eh(),p=w(h,1);b=b.Ab;a=ps(a);(a=c.Qb.get(a))&&pbb(a,d,k,m,p,b,void 0);c.dispatchEvent(new qE(c));pE(c)}f(h)};q.TTc=function(a,b){var c=new ag,d=uE(this,P9a,c.By,c.jd,c);c.addCallback(this.vb.YY,this.vb);if(a&&0<a.length){var f=new xk;Abb(f,a);Ls(d,"a",f.le())}b&&0<b.length&&(f=new xk,Abb(f,b),Ls(d,"r",f.le()));d.send();return c};
q.Lud=function(){var a=new ag;uE(this,X9a,a.By,a.jd,a).send();return a};q.c6a=function(){if(this.Vb)return jg(this.Vb);var a=new ag;a.addCallback(function(a){for(var c=0;c<a.length;c++)a[c].YY=!0;this.Vb=a},this);uE(this,Y9a,function(b){var c=eE(new cE,!0);b=O(b,yk,1);for(var d=0;d<b.length;d++)dE(c,b[d]);this.XI(c,a.By,a.jd,a)},Lp(a.jd,a),this).send();return a};q.ACb=e(584);
q.Nsb=function(a,b,c,d){d&&(b=Lp(b,d),c=Lp(c,d));d=this.Sa.Sa("dc");b=Lp(this.cyc,this,a,d,b);c=vE(this,e$a,b,c,[d]);Ls(c,"c",a.le());c.send()};q.cyc=function(a,b,c,d){this.Sa.Ab(b,[a]);"i"==this.vb.QN&&(b=this.vb,aab(b,ps(a)),b.mL&&b.mL.N4(),b.dispatchEvent(new qE(b)),pE(b),Uyd(b,[],[]));c(d)};q.zPb=function(a){var b=new ag,c=uE(this,l$a,b.By,b.jd,b);fi(c,"m",a.le());c.send();return b};
q.SOc=function(a,b,c,d){d&&(b=Lp(b,d),c=Lp(c,d));d=this.Sa.Sa("im");b=Lp(this.jCc,this,a,d,b);c=vE(this,m$a,b,c,[d]);Ls(c,"i",a.le());c.send()};q.jCc=function(a,b,c,d){a=zg(a.Sa(),function(a){return ss(null,a)});this.Sa.Ab(b,null,a);c(d)};q.qb=function(){y(this.vb);y(this.Ab);Qbb.ya.qb.call(this)};H("sga");
var wE=function(a){this.zb=a};t(wE,Ebb);var lcb=function(a){this.hv=a};wE.prototype.Sa=function(a,b){var c=ncb(a);if(!c)return null;var d=new zs;mcb(d,b);c=dw(this.zb,{Ub:c,qd:d});return new lcb(c)};wE.prototype.Ab=function(a,b,c,d){a instanceof lcb&&(a=a.hv,mcb(a.Vx.qd,void 0,b,c,d),this.zb.sf(a))};wE.prototype.mL=function(a){a instanceof lcb&&this.zb.uA(a.hv)};var mcb=function(a,b,c,d,f){b&&a.Fm(b);c&&v(c,function(b){j7a(a,b)});if(d)for(b=0;b<d.length;++b)sB(a,d[b],void 0,f&&b<f.length?f[b]:void 0)};
wE.prototype.Ha=function(a,b,c,d,f){if(a=ncb(a)){var h=new zs;mcb(h,d,b,c,f);this.zb.Ha({Ub:a,qd:h})}};var ncb=function(a){switch(a){case "acm":return pab;case "bp":return Rab;case "ccd":return tab;case "ccn":return sab;case "cco":return nab;case "cc":return lab;case "dc":return mab;case "im":return Tab;case "lsc":return oab;case "tscr":return kab;case "rcm":return qab;case "up":return Sab;case "lc":return rab;default:return null}};
var Pbb=function(a){Jbb.call(this,a)};t(Pbb,Jbb);q=Pbb.prototype;q.RRc=function(a){var b=new ag,c=uE(this,L9a,b.By,b.jd,b);fi(c,"o",a.le());c.send();return b};q.APb=function(a,b){var c=new ag,d=uE(this,M9a,c.By,c.jd,c);fi(d,"o",a.le());fi(d,"s",!!b+"");fi(d,"n",1E3);d.send();return c};
q.$Ja=function(a,b,c,d,f,h,k){var m=[],p=new q9a;if(this.Ab){if(v(a,function(a){var b=this.Ab.get(ts(a));b instanceof Error?h.call(k,b.toString()):b&&b.Ah()?p.Sa().push(b):m.push(a)},this),0==m.length){f.call(k,p);return}}else this.Ab=new Yv(20,!0),m=a;k&&(f=Lp(f,k),h=Lp(h,k));f=Lp(this.WCc,this,m,p,f);var u=Lp(this.VCc,this,m,h);f=uE(this,k$a,f,u,this,!0);fi(f,"m",Kbb(a));fi(f,"n",c);fi(f,"sp",d?"true":"false");fi(f,"src",b);f.send()}; q.WCc=function(a,b,c,d){a=d.Sa();v(a,function(a){var b=a.Ah().Ce();this.Ab.set(ts(b),a)},this);zbb(b,b.Sa().concat(a));c(b)};q.VCc=function(a,b,c){v(a,function(a){this.Ab.set(a.toString(),Error(c))},this);b(c)};
Ig({id:mzb,By:function(a){var b=new Pbb(a);if(a=a.Vc(Pt))b.Sa=new wE(a);b.lp.By(void 0);return b}});var ocb=function(a,b){var c=wi(b);xi(c,[Pm.Mtb,Pm.yCa,Pm.Sda]).addCallback(function(){var d=ny(b),d=!!d&&!!d.Lc();a.e1a=d;var d=dq(b),f=d.jc(Ct.Alc);a.kqb=f;f=1E3*d.Bk(Ct.aUc);a.Ab.zxa=f;d.Bk(Ct.dtd);d.Bk(Ct.ctd);d=d.Bk(Ct.roc);a.qZa=d;Zx(c,Pm.Sda)&&(d=b.get(iZa),d=xv(d),a.Jda=d);a.lp.By(void 0)});icb(a,function(){if(Zx(c,Pm.SKa)){var a=c.getData(Pm.SKa);$x(c,Pm.SKa);return new C9a(a)}return null})},pcb=function(a,b){var c=Dh(b);eb(c.Oa,uHa.toString())&&c.Sa(uHa).addCallback(function(){b.get(S8a).Oa(a)})}; Ig({id:eH,By:function(a){var b=new Qbb(a),c=a.Vc(Pt);c&&(b.Sa=new wE(c));ocb(b,a);pcb(b,a);return b}});

G("sga");I();
}catch(e){_DumpException(e)}
try{
var GIe=function(a){return(a=N(a.Sa,Uia,24)||null)&&N(a,Ria,1)},l9e=function(a,b){return 1024<=b&&1315>b},WIe=function(a,b){A.call(this,"hovercardaction");this.action=a;this.data=b||null};t(WIe,A);var OIe={GHd:"sgcp_lof",Rzd:"sgcp_bms",gzd:"sgcp_ams",fzd:"sgcp_amh",kId:"sgcp_mr",YAd:"sgcp_cc",gBd:"sgcp_cu",rEd:"sgcp_fcis",qEd:"sgcp_fcia",Wzd:"sgcp_bu",dPd:"sgcp_uu",Pzd:"sgcp_bc",ZBd:"spcp_du",DONE:"sgcp_d",AQd:"sgcp_wr",CDd:"sgcp_err"},m3f=function(a,b){A.call(this,a,b)};t(m3f,A);H("hc");
var MIe=function(){Ld.call(this);this.Rk=new Hd(this);x(this,this.Rk)};t(MIe,Ld);var XIe=function(a,b,c){b='<div><div class="afa xa'+(a.rrb&&a.$fa?" qj":"")+'">';if(a.rrb)b+=(a.$fa?'<div class="uA">':"")+'<img src="'+R(S(a.rrb))+'" class="oj og" alt="cover photo">'+(a.$fa?"</div>":"")+'<div class="Dk og"></div>';else if(a.aYb){b+='<div dir="ltr">';for(var d=a.aYb,f=d.length,h=0;h<f;h++)b+='<div class="d-k-l"><img src="'+R(S(d[h]))+'" width="48" height="48"></div>';b+='</div><div class="no og"></div>'}else b+='<div class="BI tA og"></div><div class="Dk og"></div>';b+='<div class="mo">'+
Q(nv({qf:a.qf,Va:a.Va,oa:Oz("aYpOjc"),target:"_blank",Da:a.Tv,rj:80,displayName:a.name,pj:!0,Gwa:a.ibb,zr:!a.qf,NRb:!0},0,c));a.rm&&(b=1==a.Sy?b+'<div class="Dj d-k-l" title="Verified local business"></div>':b+'<div class="Dj d-k-l" title="Verified name"></div>');b+=(a.Dia?'<a class="pMgux" href="'+R(S(a.Dia))+'" target="_blank">Teams!</a>':"")+'</div><div class="Zea yA"><div class="zA">'+(a.qf?'<a class="Ug" href="'+R(S(a.qf))+'" oid="'+R(a.Va)+'" target="_blank" hc="off">':"")+'<span class="vF rj">'+
r(a.name)+"</span>"+(a.qf?"</a>":"")+"<nobr/>"+(a.fxa?'<nobr><div class="AA '+R(a.fxa)+' d-k-l" title="'+R(a.Rab)+'"></div></nobr>':"")+"</div>"+(a.Kpa?'<div class="vA">'+r(a.Kpa)+"</div>":"");c=a.details;d=c.length;for(f=0;f<d;f++)h=c[f],b+='<div class="Yea wA" title="'+R(h)+'">'+r(h)+"</div>";b+="</div>"+(a.N2a?'<div class="W6 Sg"><div class="X6 Tg"></div></div>':"");a.OMc&&(b+='<div class="qw wD"></div>',a.Mn&&(a=wA(new Z("{NUM_PEOPLE_IN_COMMON_1,plural,=0{unused plural form}=1{{NUM_PEOPLE_IN_COMMON_2} in common}other{{NUM_PEOPLE_IN_COMMON_2} in common}}"),
{NUM_PEOPLE_IN_COMMON_1:a.Mn,NUM_PEOPLE_IN_COMMON_2:r(a.Mn)}),b+='<div class="xA">'+a+"</div>"));return Y(b+'<div class="AI oA yr Zq"></div><div class="sA og"></div><div class="qA"></div><div class="rA"></div><div class="pA Zq"></div></div>')},YIe=function(){return Y('<div class="Xea"><div class="Qk"></div></div>')},ZIe=function(a){return Y('<div class="pj '+R(a.Zh)+' d-k-l"></div>')};
var R5=function(a,b,c){C.call(this,T(a).Ea());this.xa=a;this.ha=V(a);this.data=b;this.mL=c;this.Ab=this.mL.cA||[];this.Sa=[]};t(R5,C);R5.prototype.Pa=function(){this.Kb(U(this.ha,YIe));this.Qb=this.fb("Qk")};
R5.prototype.Zc=function(){this.Qb&&(v(this.Sa,function(a){a.Ma()}),hb(this.Sa),v(this.Ab,function(a){switch(a){case "chat":$Ie(this,"chat","iw","Hangout");break;case "email":$Ie(this,a,"hw","Send an email");break;case "share":$Ie(this,a,"gw","Send message")}},this),Pn(this.ta().parentNode,"yr",!this.Ab.length),this.dispatchEvent("DL"))};var $Ie=function(a,b,c,d){c=U(a.ha,ZIe,{Zh:c});c=new vp(c,Dp.ia(),a.Ea());a.ib(c,!1);a.Sa.push(c);c.Sn(d);c.Wj(b);c.render(a.Qb)};
R5.prototype.Na=function(){R5.ya.Na.call(this);this.getHandler().Ja(this,"action",this.$b);this.Zc()};R5.prototype.Ib=function(){R5.ya.Ib.call(this);v(this.Sa,function(a){a.setState(2,!1)},this)};R5.prototype.$b=function(a){a=a.target.getValue();this.dispatchEvent(new WIe(a))};
var H2=new Ug("hc");new W(H2,1);new W(H2,2);new W(H2,3);new W(H2,4);new W(H2,5);new W(H2,6);new W(H2,7);var Pgg=new W(H2,8),Qgg=new W(H2,9);var n3f=function(a){C.call(this,a)};t(n3f,C);var o3f=function(a){A.call(this,"EL");this.Va=a};t(o3f,A);var p3f=function(a,b,c){var d=T(a).Ea();C.call(this,d);this.xa=a;this.Mf=qp(a);this.Tb=V(a);this.data=b;this.Sa=c;c.Sa&&(this.ib(c.Sa),x(this,c.Sa));d=b.Sc.getId();(d=c.IPa&&!b.Sc.Oa&&pq(a)&&(d.Xa()||d.yc()))&&c.mL&&(b.Sa=!0);this.Toa=d&&c.Ab?c.Ab(a,b,c):null;x(this,this.Toa)};t(p3f,n3f);q=p3f.prototype;q.Vqa=0;q.Na=function(){p3f.ya.Na.call(this);Ds(this.getHandler(),this.ta(),this.lKc,this);this.Toa&&this.getHandler().Ja(this.Toa,"sgcp_bc",function(){this.Toa&&this.Toa.Nta()&&(this.Vqa=Wa())})};
q.uf=function(a){var b=(new zs).Fm(this.Sa.source||"hovercard");this.Mf.Ha({Ub:a,qd:b})};q.lKc=function(a){var b=a.target;b&&Sn(b,"vF")?this.uf(Pgg):b&&Sn(b,"aYpOjc")&&this.uf(Qgg);(b=Xc(b,function(a){return"A"==a.tagName&&a.getAttribute("oid")},!0))&&!a.mL&&!a.shiftKey&&td(a)&&(this.Vqa=0,b=b.getAttribute("oid"),this.dispatchEvent(new o3f(b))||(a.preventDefault(),a.stopPropagation()))};q.qb=function(){p3f.ya.qb.call(this);y(this.Toa)};
var aJe=function(a,b,c){p3f.call(this,a,b,c)};t(aJe,p3f);
aJe.prototype.Pa=function(){var a=this.data.Sc,b=a.Ob(!0);!this.Sa.yGa||JXa(a)&&!yE(b)||(b=this.Sa.yGa);var c=a.Xa(),d;d=this.data.xfa()?null:(d=N(a.Sa,Uia,24))?0<w(d,3).length?w(d,3):null:null;var f=d,f=f&&f.slice(0,5);d=null;this.data.Mn&&!a.Oa&&(d=this.data.Mn);var h=null;a.m0()&&(h=(new sh(wi(this.xa).getData(1))).nW());var k=this.Tb,m;if(!(m=a.getId().getUrl())){m=this.xa;var p=a.Xa();m=p&&a.nj()?OEc(p,m,void 0):null}m=m&&this.Sa.$b?tf(m,"prsrc",this.Sa.$b):m;var p=this.data.Yr(90),u=!!w(this.data.Sc.Sa,
25),z=!!this.Toa,F;F=this.data;F=F.xfa()?null:(F=N(F.Sc.Sa,Uia,24))?w(F,2)?w(F,2):null:null;var M;(M=!GIe(a))||(M=GIe(a),M=3!=(null!=w(M,1)?w(M,1):1));var X;X=[];X.push(w(a.Sa,22));X.push(w(a.Sa,14)||a.wz());X.push(w(a.Sa,13));X.push(a.Tp());X=ec(X,tg);c=U(k,XIe,{name:b,Va:c,qf:m,Tv:p,ibb:u,OMc:z,rrb:F,aYb:f,$fa:M,details:X,N2a:!!this.Sa.Sa,fxa:this.Sa.VCa&&this.Sa.VCa.Jk,Rab:this.Sa.VCa&&this.Sa.VCa.yg,rm:a.rm(),Sy:a.Sy(),Mn:d,Kpa:h,Dia:this.data.Dia});this.Kb(c);if(d=this.Sa.Qb)if(h=this.fb("AI"))this.ib(d,
!1),d.Pa(),h.appendChild(d.ta());this.Sa.Sa&&this.Sa.Sa.yb(c);(d=this.fb("BI"))&&LDb(d,a.getId(),"HOVERCARD");a=this.fb("vF");d=a.innerHTML.replace(/@/,qma+"@");d=YLa(d,l9e,15);a.innerHTML=d;this.Toa&&(a=this.fb("wD"))&&(d=this.Toa.Sa,this.ib(d,!1),d.render(a));this.Sa.zIndex&&(c.style.zIndex=this.Sa.zIndex)};
var KIe=function(){};KIe.prototype.Sa=!1;KIe.prototype.xfa=function(){return!!this.Ri&&Cd(this.Ri,function(a){a=a.Se();return!!a&&"15"==a.sK()})};KIe.prototype.Yr=function(a){if(this.xfa())return null;var b=w(this.Sc.Sa,25)||"";return b?xf(b,"sz",a+""):this.Sc.Cd()};
var LIe=function(a){this.Fa=a;bg(a.kd(mzb).addCallback(function(a){this.Ab=a},this),mg);pq(a)&&bg($G(a).addCallback(function(a){this.vb=a},this),mg)};LIe.prototype.Qb=function(a,b,c,d,f){b=ss(d,f);if(this.Ab)if(d)this.Ab.$Ja([b],c.source||"oz",7,!0,wa(this.mL,a,b),wa(this.Sa,a,b),this);else{if(this.vb&&(c=this.vb.jr(b))){d=new KIe;d.Sc=c;a(d);return}a(null)}else this.Sa(a,b)};
LIe.prototype.mL=function(a,b,c){if(!this.Fa.isDisposed()){c=c.Sa()[0];var d=c.Ah();if(d){var f="";Ui(this.Fa)&&(f=ws(this.Fa));f=AB(d,f);d=new KIe;d.Sc=f;d.Mn=w(c,3);d.lH=O(c,Ik,2);f=O(c,Lk,4);this.vb&&(b=this.vb.jr(b))&&(f=zg(this.vb.dC(b),function(a){return a.Ag()}));d.Ri=f;d.Ab=!!w(c,7);d.mL=!!w(c,8);d.Dia=w(c,9);a(d)}else this.Sa(a,b)}};LIe.prototype.Sa=function(a,b){if(!this.Fa.isDisposed()){if(this.vb){var c=this.vb.jr(b);if(c){var d=new KIe;d.Sc=c;a(d);return}}a(null)}};
var NIe=function(a,b,c){MIe.call(this);a=this.Sa=new KH(a,c.source?"hovercard."+c.source:"hovercard",b.Sc.getId(),b.Sc.Ob());a.sMa(100);a.tE(200);a.yX(new TI);a.QS(!!c.Oa);a.Ab(b.Sc);b.Sa&&a.pya(!0);a.Nu();this.Rk.Ja(a,Rb(OIe),Lp(this.dispatchEvent,this))};t(NIe,MIe);var PIe=function(a,b,c){return new NIe(a,b,c)};NIe.prototype.Nta=function(){return this.Sa.Nta()};
var n9e=function(a,b,c){R5.call(this,a,b,c);this.Ab=o9e(this);this.Zc()};t(n9e,R5);var o9e=function(a){if(a.mL.cA)return a.mL.cA;if(!a.data.Sc.Xa()||a.data.Sc.Oa||a.data.Sc.Ck())return[];var b=ny(a.xa);if(b&&b.Lc())return[];b=[];a.xa.Vc(ZBe)&&b.push("chat");return b};n9e.prototype.$b=function(a){var b=this.data.Sc.Xa();if(b)switch(a.target.getValue()){case "chat":$Be(this.xa,b);break;case "share":(new PN(this.xa,this.data.Sc)).setVisible(!0),this.xa.get(fz).Sa().setVisible(!1)}};
var W9=function(a,b,c){Tz.call(this,Lp(this.t4c,this),!0,T(a).Ea());this.Fa=a;this.gea=b;this.yja=c;this.mL=Yp(a);this.Ba=new Hd(this);TIe(this);this.QDa=!0;this.iY(500);this.hXa=500;this.className="o-ms-fk"};t(W9,Tz);W9.prototype.qb=function(){W9.ya.qb.call(this);y(this.Ba);delete this.Ba;y(this.Ab);delete this.Ab};
var TIe=function(a){a.Ba.Ja(a,["beforehide","trigger"],a.MVc).Ja(a,"DL",a.Wd).Ja(a,"EL",a.tEc).Ja(a.Ea().La(),"scroll",a.SOb);a.Fa.kd(dv).addCallback(function(a){this.Ba.Ja(a,["ja","ia"],this.SOb)},a)};q=W9.prototype;q.MVc=function(a){var b;if(b=this.Ab)b=this.Ab,b=!!b.Toa&&b.Toa.Nta()||1200>Wa()-b.Vqa;b&&a.preventDefault()};q.SOb=function(){this.dc()&&this.setVisible(!1)};q.t4c=function(a){return a.getAttribute&&"off"!=a.getAttribute("hc")&&(!!a.getAttribute("oid")||!!a.getAttribute("email"))};
q.s4c=function(a,b){a==this.OD()&&(this.lp=null,this.Op=b,this.Xb&&UIe(this,this.OD(),this.Qb))};q.l7=function(a,b,c){this.dc()&&a!=this.OD()&&this.setVisible(!1);W9.ya.l7.call(this,a,b,c)};
q.kva=function(a){if(W9.ya.kva.call(this,a)){this.Xb=!1;this.$b=a.data||new qJd;this.Op=null;a=this.OD();var b=a.getAttribute("oid"),c=a.getAttribute("email");if(!this.$b.source&&this.mL){var d=this.mL.Hd(),d=d&&d.Gc();this.$b.source=d&&"oz."+d.eq().hE}this.$b.source=this.$b.source||"oz";this.$b.Ab=this.yja;var f=this.Jla,d=Math.max(f-500,50),d=Math.min(d,f),f=Lp(this.s4c,this,this.OD());this.lp=Uf(Lp(this.gea.Qb,this.gea,f,a,this.$b,b,c),d);return!0}return!1};
q.L5=function(){W9.ya.L5.call(this);this.lp&&(Vf(this.lp),this.lp=null);this.Xb=!1;delete this.Qb;delete this.$b;delete this.Op};q.tEc=function(){if(!this.dispatchEvent(new m3f("Ut",this.OD())))return!1;this.setVisible(!1);return!0};q.aB=function(a,b){this.lp?(this.Qb=b,this.Xb=!0):UIe(this,a,b)};
var UIe=function(a,b,c){var d=a.Op;if(d&&d.Sc&&JXa(d.Sc)&&b&&b.parentElement){if(a.dc()&&(a.setVisible(!1),a.dc()))return;y(a.Ab);a.$b.Qb=new n9e(a.Fa,a.Op,a.$b);a.Ab=new aJe(a.Fa,a.Op,a.$b);a.Ab.hf(a);a.Ab.Pa();a.tW(a.Ab.ta());W9.ya.aB.call(a,b,c)}};W9.prototype.setVisible=function(a){W9.ya.setVisible.call(this,a);this.dc()==a&&(this.ta().style.opacity=a?1:0,a?this.Ab&&!this.Ab.Nb()&&this.Ab.Na():(this.Ab&&this.Ab.Nb()&&this.Ab.Ib(),this.setPosition(null)))};
var VIe=function(a){this.Fa=a};VIe.prototype.Ab=null;VIe.prototype.Sa=function(){this.Ab||Ie||dfa||Rea||(this.Ab=new W9(this.Fa,new LIe(this.Fa),PIe));return this.Ab};Ig({id:fz,Wa:VIe,multiple:!0});
G("hc");I();
}catch(e){_DumpException(e)}
try{
H("sy412");var jyb=function(){Ld.call(this)};t(jyb,Ld);q=jyb.prototype;q.DN=0;q.zL=0;q.iE=100;q.YH=0;q.KB=1;q.HI=!1;q.gba=!1;var sN=function(a,b){b=uJ(a,b);a.DN!=b&&(a.DN=b+a.YH>a.iE?a.iE-a.YH:b<a.zL?a.zL:b,a.HI||a.gba||a.dispatchEvent("change"))};jyb.prototype.getValue=function(){return uJ(this,this.DN)};
var lyb=function(a,b){b=uJ(a,b);a.YH!=b&&(a.YH=0>b?0:a.DN+b>a.iE?a.iE-a.DN:b,a.HI||a.gba||a.dispatchEvent("change"))},vJ=function(a){var b=a.YH;return null==a.KB?b:Math.round(b/a.KB)*a.KB},kyb=function(a,b){if(a.zL!=b){var c=a.HI;a.HI=!0;a.zL=b;b+a.YH>a.iE&&(a.YH=a.iE-a.zL);b>a.DN&&sN(a,b);b>a.iE&&(a.YH=0,tJ(a,b),sN(a,b));a.HI=c;a.HI||a.gba||a.dispatchEvent("change")}},Eic=function(a){return uJ(a,a.zL)},tJ=function(a,b){b=uJ(a,b);if(a.iE!=b){var c=a.HI;a.HI=!0;a.iE=b;b<a.DN+a.YH&&sN(a,b-a.YH);b<a.zL&&
(a.YH=0,kyb(a,b),sN(a,a.iE));b<a.zL+a.YH&&(a.YH=a.iE-a.zL);a.HI=c;a.HI||a.gba||a.dispatchEvent("change")}},Fic=function(a){return uJ(a,a.iE)},myb=function(a,b){if(a.KB!=b){a.KB=b;var c=a.HI;a.HI=!0;tJ(a,Fic(a));lyb(a,vJ(a));sN(a,a.getValue());a.HI=c;a.HI||a.gba||a.dispatchEvent("change")}},uJ=function(a,b){return null==a.KB?b:a.zL+Math.round((b-a.zL)/a.KB)*a.KB};

G("sy412");I();
}catch(e){_DumpException(e)}
try{
H("sy192");
G("sy192");I();
}catch(e){_DumpException(e)}
try{
H("sy649");var tT=function(a){this.action=a;this.wfv=!1};var hEc=function(){tT.call(this,"cancel")};t(hEc,tT);
G("sy649");I();
}catch(e){_DumpException(e)}
try{
H("sy651");
G("sy651");I();
}catch(e){_DumpException(e)}
try{
sib.prototype.getOption=g(193,function(){return w(this,1)});H("sy669");
G("sy669");I();
}catch(e){_DumpException(e)}
try{
H("sy864");var lQ=function(a){C.call(this,a);this.mL=new jyb;ud(this.mL,"change",this.Oa,!1,this)};t(lQ,C);var pdc={vertical:"la-ba-ih",horizontal:"la-ba-jb"};lQ.prototype.Pa=function(){this.Ab=this.Ea().Pa("div","la-ba-na");var a=pdc[this.Qb];this.Kb(this.Ea().Pa("div",a,this.Ab));ldc(this);mdc(this);odc(this)};lQ.prototype.Na=function(){lQ.ya.Na.call(this);xc&&7>nf&&ud(this.ta(),"resize",this.$b,!1,this);this.$b();var a=this.ta();po(a,"progressbar");qo(a,"live","polite")};
lQ.prototype.Ib=function(){lQ.ya.Ib.call(this);kdc(this)};var kdc=function(a){xc&&7>nf&&zd(a.ta(),"resize",a.$b,!1,a)};lQ.prototype.ra=function(a){lQ.ya.ra.call(this,a);Qn(this.ta(),pdc[this.Qb]);a=nc(null,"la-ba-na",this.ta())[0];a||(a=this.Ea().Pa("div","la-ba-na"),this.ta().appendChild(a));this.Ab=a};lQ.prototype.getValue=function(){return this.mL.getValue()};lQ.prototype.Sa=function(a){sN(this.mL,a);this.ta()&&ldc(this)};
var ldc=function(a){var b=a.ta();qo(b,"valuenow",a.getValue())},EQd=function(a){kyb(a.mL,0);a.ta()&&mdc(a)},mdc=function(a){var b=a.ta();qo(b,"valuemin",Eic(a.mL))},ndc=function(a,b){tJ(a.mL,b);a.ta()&&odc(a)},odc=function(a){var b=a.ta();qo(b,"valuemax",Fic(a.mL))};lQ.prototype.Qb="horizontal";lQ.prototype.Oa=function(){this.$b();this.dispatchEvent("change")};
lQ.prototype.$b=function(){if(this.Ab){var a=Eic(this.mL),b=Fic(this.mL),a=(this.getValue()-a)/(b-a),b=Math.round(100*a);"vertical"==this.Qb?xc&&7>nf?(this.Ab.style.top=0,this.Ab.style.height="100%",b=this.Ab.offsetHeight,a=Math.round(a*b),this.Ab.style.top=b-a+"px",this.Ab.style.height=a+"px"):(this.Ab.style.top=100-b+"%",this.Ab.style.height=b+"%"):this.Ab.style.width=b+"%"}};lQ.prototype.qb=function(){kdc(this);lQ.ya.qb.call(this);this.Ab=null;this.mL.Ma()};

G("sy864");I();
}catch(e){_DumpException(e)}
try{
H("sy874");var XEa=function(a){this.Sa=a};XEa.prototype.W_=function(a){return 1023==a&&this.Sa!=a?!1:!!(this.Sa&a)};
G("sy874");I();
}catch(e){_DumpException(e)}
try{
H("sy877");var BM=function(a,b,c){vp.call(this,a,b||Dp.ia(),c)};t(BM,vp);uo("d-td-c",function(){return new BM(null)});
G("sy877");I();
}catch(e){_DumpException(e)}
try{
H("sy413");var Ncg=function(a,b,c,d,f){A.call(this,a,b);this.Gp=c;this.response=d||null;this.wbb=f||null};t(Ncg,A);
G("sy413");I();
}catch(e){_DumpException(e)}
try{
H("sy648");var BMc=function(a){for(;a;){if(1==a.nodeType){var b=vgb(a);if("auto"==b||"scroll"==b)return a}a=a.parentNode}return null};
G("sy648");I();
}catch(e){_DumpException(e)}
try{
var xg=function(a,b){return a.Ab[b]},wg=function(a){return a.Sa},FQd=function(a){switch(a){case "all":case "docs-images":case "docs-images-and-videos":case "docs-videos":case "documents":case "drawings":case "folders":case "forms":case "pdfs":case "presentations":case "sites":case "spreadsheets":case "tables":return!0}return!1},Tyf=function(a){switch(a){case "docs":case "DoclistBlob":case "doc":case "drawing":case "drive":case "drive-select":case "form":case "freebird":case "kix":case "pres":case "punch":case "ritz":case "spread":return!0; default:return!1}};H("sy868");
var My=null;var JEa=function(a){kd.call(this);this.Sa=new Ze;this.Ab=a};t(JEa,kd);JEa.prototype.set=function(a,b){this.Sa.set(a,b)};JEa.prototype.Hf=function(a,b){var c=this.Sa.get(a)||this.Ab;if(c)return c.apply(void 0,Array.prototype.slice.call(arguments,1))};JEa.prototype.qb=function(){JEa.ya.qb.call(this);this.Sa.clear();this.Ab=this.Sa=null};
var Qw=function(a){kd.call(this);this.Qb=(this.Ab=null!=a&&null!=a.response)?a.response:null;this.YY=!!a.error;this.jg=a.errorMessage;this.Ag=a.errorCode;this.Fs=KEa++;this.mL=[]};t(Qw,kd);var KEa=0;q=Qw.prototype;q.getError=function(){return this.YY};q.Ug=function(){return this.Ag};q.getId=function(){return this.Fs};q.Ae=function(){return this.mL};q.qb=function(){Qw.ya.qb.call(this);this.mL=[]};var Tw=new JEa(function(a){return new Qw(a)}),$S=function(a,b){Tw.set(a,b)};
var QEa=function(a){this.mL=a.actionCategory;this.Sa=a.url;(a=a.supportedMimeTypes)&&new df(a)};QEa.prototype.Eh=function(){return this.mL};QEa.prototype.getUrl=function(){return this.Sa};var REa=function(a){this.Ab=a.r};var Uw=function(a,b,c,d,f){this.mL=a;this.Qf=b;this.Xg=c;this.Ab=!!d;this.dh=f},iKa=RegExp("{size}","g"),jKa=RegExp("/{size}/","g"),kKa=RegExp("={size}","g");q=Uw.prototype;q.getUrl=function(){return this.mL};q.wc=function(){return this.Qf};q.Ic=function(){return this.Xg};q.Ra=function(){return this.dh};
q.Qs=function(a,b,c,d){var f=this.getUrl();if(!ia(a))return b=f.replace(jKa,"/"),b=b.replace(kKa,""),b.replace(iKa,"");if(a instanceof Kb)return a&&2<=ha.devicePixelRatio&&!d&&(a=new Kb(2*a.width,2*a.height)),f.replace(iKa,"h"+a.height+"-w"+a.width+(b&&b.length?"-"+b.join("-"):""));a&&2<=ha.devicePixelRatio&&!d&&(a*=2);return f.replace(iKa,(c||"s")+a+(b&&b.length?"-"+b.join("-"):""))};q.ifa=e(612);q.ll=e(613);
var uAf=function(a,b,c){if(!My.mL)throw Error("Oc");Uw.call(this,a,b,c,!0);this.Sa=Jf(a)};t(uAf,Uw);uAf.prototype.Qs=function(a,b,c,d){Hf(this.Sa,"access_token",My.mL);if(a){var f=0,h=0,k=0;a instanceof Kb?(f=a.width,h=a.height):"h"==c?h=a:"w"==c?f=a:k=a;!d&&2<=ha.devicePixelRatio&&(f*=2,h*=2,k*=2);k&&(k=Math.min(k,2048),Hf(this.Sa,"size",k));h&&(h=Math.min(h,2048),Hf(this.Sa,"height",h));f&&(f=Math.min(f,2048),Hf(this.Sa,"width",f));b&&eb(b,"p")&&Hf(this.Sa,"crop",!0)}return this.Sa.toString()}; uAf.prototype.ifa=e(611);
var SEa=function(a){this.Fs=a.id;this.hE=a.name};SEa.prototype.getId=function(){return this.Fs};SEa.prototype.getName=function(){return this.hE};var TEa=function(a,b,c){this.Ab=a;this.Sa=b;this.Ed=c};TEa.prototype.getUrl=function(){return this.Ab};TEa.prototype.tf=function(){return this.Ed};var UEa=function(a,b,c,d,f){this.Qb=a;this.Sa=b;this.Ab=d;this.mL=f},ljc=function(a){var b=a.cid,c=a.d,d=a.ar;a=a.s;var f;if(a){f=[];for(var h=0;h<a.length;h++){var k=a[h];f.push(new TEa(k.u,k.f,new Kb(k.w,k.h)))}}if(b||c||f)return new UEa(b,c,0,f,d)};UEa.prototype.QD=function(){return this.Ab};UEa.prototype.zKa=function(a){a&&(this.Qb=a.Qb||this.Qb,this.Sa=a.Sa||this.Sa,this.$b=a.$b,this.Ab=a.QD()||this.Ab,this.mL=a.mL||this.mL)};
var Vw=function(a){kd.call(this);this.Sa=a.serviceId;this.Vb=a.sourceId||"0";this.$b=a.id;this.iu=a.url;this.lp=a.embedUrl;this.dh=a.type;this.Ag=a.mimeType;this.hE=a.name;this.Op=VEa(this,a.thumbs);this.TVa=VEa(this,a.childThumbs);this.Zta=a.lastEditedUtc||null;var b={},c=a.actions;if(c)for(var d=0;d<c.length;d++){var f=new QEa(c[d]);b[f.Eh()]=f}this.Sx=b;b=null;(c=a.owners)&&c.length&&(b=zg(c,function(a){return new SEa(a)}));this.Qja=b;this.Vk=null;this.Oa=a.nChildren;this.Ko=a.description||"";
this.zi=a.parent;this.dw=(b=a.imageData)?new REa(b):null;this.Km=(b=a.videoData)&&ljc(b)||null;this.uh=a.kansasVersionInfo;this.Ab=a.sortIndex||0;this.mL=a.sizeBytes;this.Db=!!a.isNew;this.YY=a.attrs||{}};t(Vw,kd);
var WEa=function(a){return a?zg(a,function(a){return new Vw(a)}):[]},Mcg=function(a){return zg(a,function(a){var c={};c.serviceId=a.p2a();c.sourceId=a.d9a();c.id=a.Qe();c.url=a.getUrl();c.embedUrl=a.MJ();c.type=a.Ra();c.name=a.getName();c.parent=a.vt();c=new Vw(c);c.setAttribute("visibility",a.getAttribute("visibility"));a=Mcg(a.$n());c.jg=a;return c})},VEa=function(a,b){if(!b)return null;var c=[];if(My.mL&&Tyf(a.Sa))for(var d=0;d<b.length;d++){var f=b[d];c.push(new uAf(f.u,f.w,f.h))}else for(d=0;d<
b.length;d++)f=b[d],c.push(new Uw(f.u,f.w,f.h,f.r,f.t));return c};Vw.prototype.Fs=null;Vw.prototype.jg=null;var HLg=function(a,b,c){return qa(c)&&-1!=c.indexOf(".")?c:Na(a,".",b,".",c)};q=Vw.prototype;q.getId=function(){return this.Fs||(this.Fs=HLg(this.Sa,this.Vb,this.Qe()))};q.Ra=function(){return this.dh};q.hd=function(a){this.dh=a};q.rI=function(){return this.Ag};q.Qe=function(){return this.$b};q.getUrl=function(){return this.iu};q.MJ=function(){return this.lp};q.getName=function(){return this.hE};
q.Wb=function(a){this.hE=a};q.getIcon=function(){var a=this.getAttribute("ico");return a?a:"application/vnd.google-apps.calendar"==this.Ag?"//ssl.gstatic.com/docs/picker/images/icon_calendar_small-v1.gif":"//ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"};q.Yh=function(){return this.Op};q.ZE=function(a){this.Op=a};q.Tm=function(){return this.Oa};q.Jd=function(){return this.Ko};q.Ee=function(a){this.Ko=a};q.vt=function(){return this.zi};q.getImageData=function(){return this.dw};
q.getVideoData=function(){return this.Km};q.Kn=function(){return this.Db};q.zJ=function(a){this.Db=a};q.getAttribute=function(a){return this.YY[a]};q.setAttribute=function(a,b){this.YY[a]=b};
q.zKa=function(a){this.Sa=a.Sa||this.Sa;this.Vb=a.Vb||this.Vb;this.$b=a.Qe()||this.$b;this.iu=a.getUrl()||this.iu;this.lp=a.MJ()||this.lp;this.dh=a.Ra()||this.dh;this.Ag=a.rI()||this.Ag;this.hE=a.getName()||this.hE;this.Op=a.Yh()||this.Op;this.TVa=a.TVa||this.TVa;this.Zta=a.Zta||this.Zta;if(a.Qb||this.Qb)this.Qb=a.Qb||this.Qb;Zb(this.Sx,a.Sx);this.Qja=a.Qja||this.Qja;var b=a.getAttribute("shu");!a.Vk&&ua(b)&&(a.Vk=new SEa(b));this.Vk=a.Vk||this.Vk;this.Oa=ia(a.Tm())?a.Tm():this.Oa;this.Ko=a.Jd()||
this.Ko;this.zi=a.vt()||this.zi;this.dw=a.getImageData()||this.dw;this.Km=a.getVideoData()||this.Km;this.uh=a.uh||this.uh;this.mL=ia(a.mL)?a.mL:this.mL;this.Db=a.Kn();Zb(this.YY,a.YY);this.jg=a.jg||this.jg;if(a.Ii||this.Ii)this.Ii=a.Ii||this.Ii};q.toString=function(){return this.getName()};q.qb=function(){Vw.ya.qb.call(this);delete this.YY};
var GQd=function(a){Qw.call(this,a);this.Ab&&(this.mL=WEa(this.Qb.docs||[]))};t(GQd,Qw);$S(3,function(a){return new GQd(a)});var Mw=function(){kd.call(this);this.Fs=Nw++};t(Mw,kd);Mw.prototype.Qb=null;Mw.prototype.$b=!1;var Nw=0,gKa=null,hKa=null;q=Mw.prototype;q.PD=pg(new Af("stat"));q.Dga=e(616);q.getId=function(){return this.Fs};q.Sq=function(){return 9};q.xv=function(){return 100};q.xE=function(){return new Ze};q.getContent=function(){return this.Iwa().toString()};q.N_a=function(){return null}; q.Iwa=function(){var a=new Ff,b=this.xE();b&&Ve(b,function(b,c){a.set(c,b)});(b=gKa)&&a.set("token",b);a.set("version",4);if(b=hKa)for(var c in b)a.set(c,b[c]);return a};q.aD=e(618);q.ora=e(621);var Pw=function(a,b,c){null!=c&&void 0!=c&&a.set(b,c)};
var u3=function(a,b,c){Mw.call(this);this.Ag=a;this.Oa=b;this.mL=c};t(u3,Mw);u3.prototype.PD=pg(new Af("fetch"));u3.prototype.Sq=function(){return 3};u3.prototype.getOptions=function(){return this.mL};u3.prototype.xE=function(){var a=new Ze;Pw(a,"ids",Rf(this.Oa));Pw(a,"service",this.Ag);Pw(a,"options",Rf(this.mL));return a};
var Kw=function(){};la(Kw);Kw.prototype.U3b=0;Kw.prototype.W3b=0;Kw.prototype.eWa=0;Kw.prototype.lva=function(){this.Ba.Ma()};var PEa=function(a){Mw.call(this);this.jg=a.start||0;this.kN=a.sort||3;this.yH=void 0==a.desc||!!a.desc;this.lp=a.query||a.q;this.Ag=a.cursor;this.Oa=a.continuationToken||"";this.gea=a.queryNameOnly};t(PEa,Mw);q=PEa.prototype;q.Oo=function(){return this.jg};q.setStart=function(a){this.jg=a};q.getQuery=function(){return this.lp};q.Dfa=e(623);q.getCursor=e(627);q.Xh=function(){return this.Oa};q.Tva=e(628); q.xE=function(){var a=new Ze;Pw(a,"start",this.jg);Pw(a,"numResults",50);Pw(a,"sort",this.kN);Pw(a,"desc",this.yH);Pw(a,"q",this.lp);Pw(a,"qNameOnly",this.gea);Pw(a,"cursor",this.Ag);this.Oa&&Pw(a,"cToken",this.Oa);return a};q.ora=e(620);
var vRd=function(a){Qw.call(this,a);this.Ab&&(this.mL=WEa(this.Qb.docs||[]))};t(vRd,Qw);$S(5,function(a){return new vRd(a)});var K3=function(a,b,c,d){Mw.call(this);this.Ag=a;this.jg=b;this.Oa=c;this.mL=d};t(K3,Mw);q=K3.prototype;q.PD=pg(new Af("mutate"));q.Sq=function(){return 5};q.getOptions=function(){return this.mL};q.xE=function(){var a=new Ze;Pw(a,"ids",Rf(this.Oa));Pw(a,"service",this.jg);Pw(a,"operation",this.Ag);Pw(a,"options",Rf(this.mL));return a};q.ora=e(619);
var Ww=function(a){Qw.call(this,a);this.Ab&&(a=this.Qb,this.mL=WEa(a.docs||[]),this.Oa=a.cursor,this.Sa=a.cToken)};t(Ww,Qw);Ww.prototype.yW=e(630);Ww.prototype.getCursor=e(626);Ww.prototype.Xh=function(){return this.Sa};Ww.prototype.$b=e(631);$S(10,function(a){return new Ww(a)});
var Xw=function(a){Qw.call(this,a);a=this.Qb||{};this.mL=WEa(a.docs||[]);this.Sa=a.cursor};t(Xw,Qw);Xw.prototype.yW=e(629);Xw.prototype.getCursor=e(625);$S(13,function(a){return new Xw(a)});var Yw=function(a,b,c,d,f){Mw.call(this);this.Sa=a;"c"==a&&(this.$b=!0);this.Oa=b;this.mL=c;this.Ag=0;this.Ab=d||new XEa(1023);this.nA=!!f};t(Yw,Mw);q=Yw.prototype;q.PD=pg(new Af("ppl"));q.Sq=function(){return 13};q.getQuery=function(){return this.Oa};q.getParent=function(){return this.mL};q.xE=function(){var a=new Ze;Pw(a,"d",this.Sa);Pw(a,"q",this.Oa);Pw(a,"p",this.mL);return a};q.Oo=function(){return this.Ag};q.setStart=function(a){this.Ag=a};q.getCursor=e(624);q.Dfa=e(622);
var Zw=function(a){PEa.call(this,a);this.lN=a.mimeTypes;this.zF=a.mine;this.uh=a.parent;this.Db=a.email;var b={};b.opts=a;this.Tx=b};t(Zw,PEa);Zw.prototype.PD=pg(new Af("vr"));Zw.prototype.Sq=function(){return 10};var eFa=function(a,b){var c=a.Tx.opts;if(!c)return b||{};c=Xb(c);if(b)for(var d in b)c[d]=b[d];return c};q=Zw.prototype;q.clone=function(a){return new Zw(eFa(this,a))};q.le=function(){return Rf(this.Tx)};q.getParent=function(){return this.uh};q.yc=function(){return this.Db}; q.xE=function(){var a=Zw.ya.xE.call(this);Pw(a,"mimeTypes",this.lN);Pw(a,"parent",this.uh);Pw(a,"email",this.Db);Pw(a,"mine",this.zF);return a};
var $w=function(a){Zw.call(this,a);this.Vb=a.service;this.dh=a.type;this.Vk=a.username;this.mL=a.options};t($w,Zw);$w.prototype.PD=pg(new Af("pvr"));$w.prototype.xE=function(){var a=$w.ya.xE.call(this);Pw(a,"service",this.Vb);Pw(a,"type",this.dh);this.Vk&&Pw(a,"userName",this.Vk);Pw(a,"options",Rf(this.mL));return a};$w.prototype.Ra=function(){return this.dh};$w.prototype.getOptions=function(){return this.mL};var oZd=function(a,b,c){a.mL||(a.mL={});c?a.mL[b]=c:delete a.mL[b]};
var s3=function(a,b){C.call(this,b);this.Sa=a};t(s3,C);s3.prototype.getContext=function(){return this.Sa};s3.prototype.ra=function(a){s3.ya.ra.call(this,a);a.id&&this.Dc(a.id)};var t3=function(a,b){s3.call(this,a,b);this.getHandler().Ja(a.Qb,"visibility",this.r2a)};t(t3,s3);q=t3.prototype;q.g3=!1;q.xw=function(){return this.g3};q.setActive=function(a){this.g3!=a&&(this.g3=a,this.Nb()&&this.setVisible(a))};q.setVisible=function(a){On(this.ta(),a)};q.Di=function(){return!1};q.vB=function(){};q.zq=e(633);q.hJ=e(636);q.kt=function(){return!1};q.r2a=function(a){a.data.visible&&this.xw()&&this.kt()};q.cka=e(637);q.p_a=ka;
var HQd=function(a,b){Mw.call(this);this.Oa=a;this.mL=b};t(HQd,Mw);HQd.prototype.PD=pg(new Af("pick"));HQd.prototype.Sq=function(){return 6};HQd.prototype.xE=function(){var a=new Ze;Pw(a,"docs",Rf(this.Oa));this.mL&&Pw(a,"viewToken",Rf(this.mL.le()));return a};
var QQd=function(a,b){Mw.call(this);this.mL=a;this.Oa=b};t(QQd,Mw);QQd.prototype.PD=pg(new Af("imageuploadstats"));QQd.prototype.Sq=function(){return 11};QQd.prototype.xE=function(){var a=QQd.ya.xE.call(this);Pw(a,"mechanism",this.mL);Pw(a,"data",Rf(zg(this.Oa,function(a){return a.le()})));return a};
var IQd=function(){kd.call(this);var a={},b=new JQd(function(a){var b=a.Tf(),f=a.getPath();if("youtube.com"==b||"www.youtube.com"==b||"m.youtube.com"==b){if("/"==f||"/watch"==f)return a.Pg("v")}else if("youtu.be"==b&&ya(f,"/"))return f.substr(1)},(ya(window.location.href,"https")?"https":"http")+"://www.youtube.com/v/{$VIDEO_ID}?fs=1");a["www.youtube.com"]=b;a["youtube.com"]=b;a["m.youtube.com"]=b;a["youtu.be"]=b;b=new JQd(function(a){var b=a.Tf();if("https"==a.Au()&&"/video/video.php"==a.getPath()&&
("www.facebook.com"==b||"facebook.com"==b))return a.Pg("v")},"https://www.facebook.com/v/{$VIDEO_ID}");a["www.facebook.com"]=b;a["facebook.com"]=b;b=new JQd(function(a){var b=a.getPath(),f=a.Tf();if("https"==a.Au()&&ya(b,"/")&&("www.vimeo.com"==f||"vimeo.com"==f)&&(a=b.split("/")[1],!isNaN(parseInt(a,10))))return a},"https://vimeo.com/moogaloop.swf?clip_id={$VIDEO_ID}");a["www.vimeo.com"]=b;a["vimeo.com"]=b;a["video.google.com"]=new JQd(function(a){if("http"==a.Au()&&"/videoplay"==a.getPath()&&"video.google.com"==
a.Tf())return a.Pg("docid")},"http://video.google.com/googleplayer.swf?docid={$VIDEO_ID}&fs=true");b=new JQd(function(a){var b=a.getPath(),f=a.Tf();if("http"==a.Au()&&("www.metacafe.com"==f||"metacafe.com"==f)&&ya(b,"/watch/"))return"/"==b[b.length-1]?b.substr(7,b.length-7-1):b.substr(7)},"http://www.metacafe.com/fplayer/{$VIDEO_ID}.swf");a["www.metacafe.com"]=b;a["metacafe.com"]=b;this.Sa=a};t(IQd,kd);la(IQd); var xVd=function(a,b,c){return(a=a.Sa[c])&&!!a.Sa(b)},KQd=function(a,b){try{var c=Jf(b);return a.Sa["www.youtube.com"].Sa(c)}catch(d){}},JQd=function(a,b){this.Sa=a;this.Ab=b};
var LQd=function(a){this.Op=ya(window.location.href,"https");var b=new Ze;a=(a.responseData||{}).results||[];var c=MQd(this,a,b),d={},f=d.response={};f.docs=c;a.length&&(f.cursor=a.length);Ww.call(this,d);a=this.Ae();for(c=0;c<a.length;c++)(d=b.get(a[c].Qe()))&&a[c].ZE(d)};t(LQd,Ww);
var MQd=function(a,b,c){var d=[];v(b,function(a){var b={};b.name=a.titleNoFormatting;b.description=a.content;b.serviceId="search-api";var k;k=a.originalContextUrl||a.unescapedUrl||a.url||a.postUrl;k=k.match("^https?://www.google.com/url")?Jf(k).Pg("q"):k;b.url=k;k=Jf(k);b.id=KQd(IQd.ia(),k)||va(b).toString();switch(a.GsearchResultClass){case "GblogSearch":b.type="url";k={};k.vu=a.blogUrl;b.attrs=k;b.lastEditedUtc=a.blogUrl;break;case "GbookSearch":b.type="book";b.id=k.Pg("id");k={};k.au=a.authors;
k.pc=a.pageCount;k.py=a.publishedYear;b.attrs=k;c.set(b.id,NQd(this,a));break;case "GimageSearch":b.type="photo";k=a.titleNoFormatting;var m=a.contentNoFormatting;0==k.indexOf("http://")&&m?(b.name=m,b.description=void 0):(b.name=k,b.description=m);b.id=a.imageId||b.id;b.mimeType="image/jpeg";c.set(b.id,NQd(this,a));break;case "GvideoSearch":b.type="video";m=ada(Jf(a.playUrl),"autoPlay").toString().replace(/&autoplay=\d+/,"");this.Op&&(ya(m,"http://www.youtube.com/v/")||ya(m,"http://youtube.googleapis.com/v/"))&&
(m=m.replace(/^http:\/\//,"https://"));b.embedUrl=m;b.mimeType="application/x-shockwave-flash";b.lastEditedUtc=a.published;var m={},p=a.duration;p&&"null"!=p&&(m.d=p);b.videoData=m;xVd(IQd.ia(),k,"www.youtube.com")&&(m.ar="16:9");c.set(b.id,NQd(this,a));break;case "GwebSearch":b.type="url",k={},k.vu=a.visibleUrl,b.attrs=k}d.push(b)},a);return d},NQd=function(a,b){var c=b.tbUrl,d=c.match(/^(http(?:s)?:\/\/[0-9]+\.gvt[0-9]+\.com\/vi\/[^\/]+\/).*/)||c.match(/^(http(?:s)?:\/\/img\.youtube\.com\/vi\/[^\/]+\/).*/);
if(d)return c=d[1],a.Op&&(c=Bf(Jf(c),"https").Zy("ytimg.googleusercontent.com").toString()),[new Uw(c+"default.jpg",120,90),new Uw(c+"hqdefault.jpg",480,360)];d=[];d.push(new Uw(c,parseInt(b.tbWidth,10),parseInt(b.tbHeight,10)));"GimageSearch"==b.GsearchResultClass&&d.push(new Uw(b.unescapedUrl,parseInt(b.width,10),parseInt(b.height,10)));return d};$S(7,function(a){return new LQd(a)});
var v3=function(a,b){Zw.call(this,b);this.Sx=a;var c=b.site;c&&/[^a-zA-Z0-9\.]/.test(c)&&(c=null);this.YY=c;this.Op=b.inUrl;this.Xb=b.license;this.Ko=b.imgsz;this.Vb=b.cse;this.mL=b.cseLabel;this.Vk=b.imgcolor;this.Km=b.imgc;this.dw=b.imgtype;this.iu=b.safe||"active"};t(v3,Zw);q=v3.prototype;q.PD=pg(Cf((new Af).Zy("ajax.googleapis.com"),"/ajax/services/search/"));q.Sq=function(){return 7};q.Dga=e(615);
q.Iwa=function(){var a=new Ff,b=v3.ya.Iwa.call(this);b.get("hl")&&a.set("hl",b.get("hl"));(b=this.xE())&&Ve(b,function(b,d){a.set(d,b)});return a};
q.xE=function(){var a=new li(this.getQuery());this.YY&&a.fc(" site:"+this.YY);this.Op&&a.fc(" inurl:"+this.Op);this.mL&&a.fc(" more:"+this.mL);var b=new Ze;b.set("q",a.toString());b.set("v","1.0");b.set("key","internal-onepick");b.set("start",this.Oo());b.set("rsz","large");this.Vk&&b.set("imgcolor",this.Vk);this.Km&&b.set("imgc",this.Km);this.dw&&b.set("imgtype",this.dw);this.Ko&&b.set("imgsz",this.Ko);this.iu&&b.set("safe",this.iu);this.Vb&&b.set("cx",this.Vb);var c;switch(this.Xb){case "r":c="(cc_publicdomain|cc_attribute|cc_sharealike|cc_noncommercial|cc_nonderived)";
break;case "cr":c="(cc_publicdomain|cc_attribute|cc_sharealike|cc_nonderived).-(cc_noncommercial)";break;case "rwm":c="(cc_publicdomain|cc_attribute|cc_sharealike|cc_noncommercial).-(cc_nonderived)";break;case "crwm":c="(cc_publicdomain|cc_attribute|cc_sharealike).-(cc_noncommercial|cc_nonderived)"}c&&b.set("as_rights",c);return b};q.clone=function(a){return new v3(this.Sx,eFa(this,a))};
var w3=function(a,b,c){kd.call(this);this.Sa=a;this.oh=b;this.mL=c||{}},jRd;t(w3,kd);
var jJe=["application/vnd.oasis.opendocument.graphics","image/vnd.adobe.photoshop","image/x-photoshop","application/illustrator","application/vnd.google-apps.drawing"],kJe=["application/vnd.google-apps.form","application/vnd.google-apps.freebird"],BJe=["image/jpeg","image/gif","image/png","image/tiff","image/bmp"],SKe=["application/pdf"],TKe="application/mspowerpoint application/vnd.ms-powerpoint application/vnd.oasis.opendocument.presentation application/vnd.openxmlformats-officedocument.presentationml.presentation application/vnd.google-apps.presentation application/vnd.google-apps.punch".split(" "),UKe=
["application/vnd.google-apps.script"],eLe=["application/vnd.google-apps.sites"],pLe="application/msexcel application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.oasis.opendocument.spreadsheet application/vnd.google-apps.spreadsheet application/vnd.google-apps.ritz application/vnd.google-apps.form".split(" "),ELe=["application/vnd.google-apps.fusiontable"],FLe="text/plain application/msword application/vnd.ms-word application/vnd.oasis.opendocument.text application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.google-apps.document application/vnd.google-apps.kix".split(" "),
KLe="application/vnd.google-apps.video video/3gpp video/3gpp2 video/avi video/flv video/mp2t video/mp4 video/mp4v-es video/mpeg video/ogg video/quicktime video/webm video/x-flv video/x-m4v video/x-ms-asf video/x-ms-wm video/x-ms-wmv video/x-ms-wvx video/x-msvideo video/x-quicktime video/vnd.mts".split(" "),mjc=["flat","highlights","mediacollection"];w3.prototype.Qb=null;w3.prototype.Ab=null;
var r0d=!1,nhg=!1,psg=!1,DHg=!1,OQd=function(a){var b=a.getOption("query");return"upload"==a.Sa&&("cultural"==b||"localphotos"==b||"photo"==b||"photos"==b||"profile"==b||"videos"==b||"youtubebanner"==b)},NAg=function(a){var b=a.getOption("ownedByMe"),c=a.getOption("parent");return FQd(a.Sa)&&ra(b)&&!b&&!c&&!a.getQuery()};
w3.prototype.or=function(){var a=this.Qb;if(a)return a;t:{var b=this.getOption("ids");if(b&&FQd(this.Sa))a=new u3("docs",b.split(","),{});else{var b={},a={service:"docs",query:this.getQuery(),options:b},c=this.getOption("ownedByMe");c?b.ownedByMe=!0:0==c&&(b.ownedByMe=!1);a.mine=jRd?0:0==jRd?1:2;psg&&(b.edbe=!0);var c=this.getOption("parent"),d="EVERYTHING",f=!1,h=[];switch(this.Sa){case "docs-images":case "docs-images-and-videos":case "docs-videos":if("docs-images"==this.Sa||"docs-images-and-videos"==
this.Sa)h=h.concat(BJe);if("docs-videos"==this.Sa||"docs-images-and-videos"==this.Sa)h=h.concat(KLe);"docs-videos"==this.Sa&&(f=!0);if(!this.getQuery()&&!NAg(this)){b.sortKey=8;b.ascending=!0;break}case "all":d="NOT_COLLECTION";break;case "documents":h=FLe;break;case "drawings":h=jJe;break;case "folders":c||(h=["application/vnd.google-apps.folder"]);break;case "forms":h=kJe;break;case "pdfs":h=SKe;break;case "presentations":h=TKe;break;case "scripts":h=UKe;break;case "sites":h=eLe;break;case "spreadsheets":h=
pLe;break;case "tables":h=ELe;break;default:a=null;break t}var k=this.getOption("mimeTypes");k&&k&&qa(k)&&(k=k.split(","));var m=[];h.length&&k&&k.length?m=(new df(h)).M4(k).Rc():m=k||h;this.getOption("includeFolders")&&!f&&(d="EVERYTHING",m.length&&!eb(m,"application/vnd.google-apps.folder")&&(m=m.concat(["application/vnd.google-apps.folder"])),b.notInFolder=!0);this.getOption("starred")&&(b.starred=!0);(f=this.getOption("containingCosmoId"))&&(b.containingCosmoId=f);m.length&&(b.mimeTypes=m.join(","),
d="EVERYTHING");a.type=d;c&&(a.parent=c);if(c=this.getOption("sortKey"))b.sortKey=c,8==c||7==c?b.ascending=!0:delete b.ascending;c=this.getOption("ff");ra(c)||(c=nhg);c&&(b.ff=c);a=new $w(a)}}if(!a)switch(b=this.getQuery(),c=this.Ra(),this.Sa){case "blog-search":a=new v3("blogs",{query:b,safe:this.getOption("safe"),site:this.getOption("site")});break;case "book-search":a=new v3("books",{query:b});break;case "calendars":b={service:"calendar"};jRd&&(b.mine=0);a=new $w(b);break;case "contacts":a={service:"contacts"};
c=this.getOption("parent");b?a.query=b:c&&(a.parent=c);a=new $w(a);break;case "events":a={service:"party",type:"events"};a=new $w(a);break;case "et":a={service:"party",type:"themes"};(b=this.getOption("category")||this.Ra())&&(a.options={category:b});a=new $w(a);break;case "fonts":a={options:{sortOrder:this.getOption("sortOrder")||"p"},service:"fonts",type:this.Ra()};b&&(a.query=b);a=new $w(a);break;case "groups":a={service:"groups"};(c=this.getOption("parent"))&&(a.parent=c);a=new $w(a);break;case "image-search":if("getty"==
c){a=PQd(this);break}a=DHg?BJg(this):CJg(this);break;case "my-maps":a=new $w({service:"mapshop"});break;case "maps-pro":a=new $w({type:this.Ra(),service:"mapspro"});break;case "circle":(c=this.getOption("parent"))&&"hem"!=this.getOption("mode")&&(a=new Yw("p",void 0,c));break;case "people":switch(this.Ra()){case "all":a="a";break;case "circles":a="c";break;case "frequent":a="f";break;case "gmail":a=this.getQuery()?"p":"g";break;case "selected":a=this.getQuery()?"p":"s";break;default:a="p"}c=this.getOption("peopleFilter");
a=new Yw(a,b||void 0,this.getOption("parent"),c?new XEa(c):void 0,!!this.getOption("noEmailInput"));break;case "photos":case "photo-albums":case "video-albums":case "photo-tagging":a=PQd(this);break;case "photo-curation":this.getOption("parent")&&!this.getOption("che")&&(a=PQd(this));break;case "play-edu":a=new $w({type:c,query:b,service:"play-edu"});break;case "recently-picked":a=new $w({service:"recent"});break;case "video-search":a=new v3("video",{site:this.getOption("site"),query:b});break;case "videos":this.getOption("rdv")&&
"uploaded"==c?a=vxg(this,"your_videos"):(b={},a=new $w({service:"picasa",parent:this.getOption("parent"),safe:this.getOption("safe"),type:"videos-"+(c||"uploaded"),options:b}),ia(this.getOption("visibilityFilter"))&&(b.visibilityFilter=this.getOption("visibilityFilter")));break;case "web":a=DHg?BJg(this):CJg(this);break;case "youtube":a=b?new $w({service:"youtube",query:b}):new $w({service:"youtube"})}return this.Qb=a};
var PQd=function(a){var b=a.Ra();if("moment"==b){var c=new $w({parent:a.getOption("parent"),query:a.getQuery(),service:"stories",type:b});a.getOption("allowedItemTypes")&&oZd(c,"allowedItemTypes",a.getOption("allowedItemTypes"));return c}c=!!a.getOption("rdv");if(eb(mjc,b))return vxg(a,"flat"==b?"your_photos":b);if(c&&"videos-uploaded"==b)return vxg(a,"your_videos");var d=a.getOption("ids");if(d)return c={},(b=a.getOption("username"))&&(c.username=b),"photo-albums"==a.Sa&&(c.type="album"),new u3("picasa",
d.split(","),c);c={};d=c.options={};switch(a.Sa){case "photo-tagging":b="faces";a.getOption("eid")&&(d.eid=a.getOption("eid"));break;case "photo-curation":b="tpp"}var f=a.getQuery();c.service="picasa";c.type=b;c.username=a.getOption("username");d.excludeLabels=a.getOption("excludeLabels");"localalbum"==b&&(d.localAlbum=a.getOption("localalbum"),d.localUser=a.getOption("localuser"));var h=a.getOption("parent");f?c.query=f:(h&&(c.parent=h),a.getOption("allowedItemTypes")?d.allowedItemTypes=a.getOption("allowedItemTypes"):
h&&"video-albums"==a.Sa&&(d.allowedItemTypes="video"));"photo-albums"==a.Sa&&(d.snippets="12");if("ofuser"==b||"photo-tagging"==a.Sa)b=a.getOption("userId"),null!=b&&(d.userId=b);(b=a.getOption("shapeType"))&&(d.shapeType=b);a.getOption("excludeEvAlbums")&&(d.excludeEvAlbums=!0);ia(a.getOption("visibilityFilter"))&&(d.visibilityFilter=a.getOption("visibilityFilter"));return new $w(c)},vxg=function(a,b){var c={query:a.getQuery(),service:"media",type:b},d=a.getOption("ownedByMe");if(jRd||d)c.mine=0;
c=new $w(c);a.getOption("allowedItemTypes")?oZd(c,"allowedItemTypes",a.getOption("allowedItemTypes")):"your_photos"!=b&&oZd(c,"allowedItemTypes","photo");a.getOption("saih")&&oZd(c,"showAll","true");r0d&&oZd(c,"enableSizeEstimation","true");if(d=a.getOption("parent"))c.uh=d,c.Qb=null;(d=a.getOption("ipl"))&&oZd(c,"ipl",d);(d=a.getOption("username"))&&oZd(c,"username",d);(d=a.getOption("userId"))&&oZd(c,"userId",d);return c},BJg=function(a){var b={service:"web"};switch(a.Sa){case "web":var c=new li(a.getQuery());
a.getOption("site")&&c.fc(" site:"+a.getOption("site"));a.getOption("inUrl")&&c.fc(" inurl:"+a.getOption("inUrl"));a.getOption("cseLabel")&&c.fc(" more:"+a.getOption("cseLabel"));var d={};IHg(a,d,"cse","cse");IHg(a,d,"safe","safe");b.query=c.toString();b.options=d;break;case "image-search":b.type="photo","life"==a.Ra()?b.query=a.getQuery()+" source:life":(b.query=a.getQuery(),b.options=EHg(a))}return new $w(b)},CJg=function(a){switch(a.Sa){case "image-search":if("life"==a.Ra())return a=a.getQuery()+
" source:life",new v3("images",{query:a});var b=EHg(a);b.query=a.getQuery();return new v3("images",b);default:return new v3("web",{site:a.getOption("site"),cse:a.getOption("cse"),cseLabel:a.getOption("cseLabel"),inUrl:a.getOption("inUrl"),safe:a.getOption("safe"),query:a.getQuery()})}},EHg=function(a){var b={};IHg(a,b,"imgsz","imgsz");IHg(a,b,"license","license");IHg(a,b,"site","site");IHg(a,b,"imgc","imgc");IHg(a,b,"imgcolor","imgcolor");IHg(a,b,"imgtype","imgtype");IHg(a,b,"safe","safe");return b};
q=w3.prototype;q.Ra=function(){return this.getOption("type")};
q.getName=function(){if(this.oh)return this.oh;if("all"==this.Sa||"docs-images"==this.Sa||"docs-images-and-videos"==this.Sa||"docs-videos"==this.Sa){var a=this.getOption("ownedByMe");if(!0===a)return"My Drive";if(!1===a)return nhg?"Incoming":"Shared with me"}a=this.Ra();switch(this.Sa){case "blog-search":return"Blog search";case "book-search":return"Book search";case "calendars":return"Calendars";case "circle":return this.getOption("parent")?"Edit your circle":"Create a circle";case "contacts":return"Contacts";
case "create-event":return"Create";case "crop":return"Photo crop";case "all":return"Google Drive";case "docs-images":return"Images";case "docs-images-and-videos":return"Images and videos";case "docs-videos":return"Videos";case "documents":return"Documents";case "drawings":return"Drawings";case "events":return"Events";case "folders":return"Folders";case "fonts":return"Fonts";case "forms":return"Forms";case "groups":return"Groups";case "icon":return"homepage"==a?"No background":"Icon";case "image-search":return this.getOption("comboTypes")?
"Image search":"life"==a?"LIFE Photo Archive":"getty"==a?"Stock photos":"Google Image Search";case "maps":return"Maps";case "my-maps":return"My Maps";case "maps-pro":return"Maps Engine Lite";case "pdfs":return"PDFs";case "people":switch(this.Ra()){case "circles":return"Circles";default:return"People"}case "photo-caption":return"Add text to photo";case "photo-curation":return"Organize photos";case "photo-tagging":return"Tag people";case "photos":return"banner"==a?"Cover photos":"featured"==a?"Featured photos":
"getty"==a?"Stock photos":"camerasync"==a?"Photos from phone":"flat"==a?"Your photos":"ofuser"==a?"Photos of you":"uploaded"==a?"Uploaded photos":"Your photos";case "photo-albums":return"Photo albums";case "play-edu":return"Play for Education";case "presentations":return"Presentations";case "profile":return"np"==a?"No photo":"Profile photo";case "quota":return"Quota";case "recently-picked":return"Previously selected";case "scripts":return"Scripts";case "spreadsheets":return"Spreadsheets";case "sites":return"Sites";
case "tables":return"Tables";case "photo-upload":case "upload":var b;return"photo-upload"==this.Sa||(b=OQd(this))&&"videos"!=this.getQuery()&&"cultural"!=this.getQuery()?"Upload photos":b&&"cultural"!=this.getQuery()?"Upload videos":"Upload";case "video-search":return"Video search";case "video-albums":return"Albums";case "videos":return"camerasync"==a?"Videos from phone":"Videos";case "webcam":switch(this.Ra()){case "standard":return"Take a snapshot";case "video":return"Record a video";default:return"Web camera"}case "web":return"Web search";
case "url":return"URL";case "youtube":return"Your YouTube videos";case "youtube-banner-preview":return"YouTube banner preview"}return""};q.getTitle=function(){return this.oh};q.getOptions=function(){return this.mL};q.getOption=function(a){return this.mL[a]};
q.equals=function(a){return!!a&&a.Sa==this.Sa&&this.getQuery()==a.getQuery()&&Qb(this.getOptions())==Qb(a.getOptions())&&this.getOption("parent")==a.getOption("parent")&&this.Ra()==a.Ra()&&this.getOption("id")==a.getOption("id")&&this.getOption("ownedByMe")==a.getOption("ownedByMe")};q.clone=function(){var a=new w3(this.Sa,this.oh,Xb(this.mL));a.Ab=this.Ab;return a};q.getQuery=function(){return this.getOption("query")};q.setOptions=function(a){this.mL=a;this.Qb=null};
var BN=function(a,b,c){a.mL[b]=c;a.Qb=null},IHg=function(a,b,c,d){a=a.getOption(d);ia(a)&&(b[c]=a)};w3.prototype.le=function(){return[this.Sa,this.oh,this.mL]};w3.prototype.qb=function(){w3.ya.qb.call(this);delete this.Sa;delete this.oh;delete this.mL};
var x3=function(){kd.call(this)};t(x3,ug);x3.prototype.uj=Hx;x3.prototype.K9=Hx;var y3=function(a,b,c,d,f,h){t3.call(this,a,h);this.Nma=b;this.ima=c;this.Ye=d;this.nA=f;My.Bo()&&("left"==f?f="right":"right"==f&&(f="left"));this.Sx=f;this.mN=[];this.lp=[];this.Db=this.Ab=null;this.Pha=!0;this.Ed=null;this.yH="0"};t(y3,t3);y3.prototype.cb=function(){return this.Db};
y3.prototype.Pa=function(){var a=this.Ea(),b=this.Ab=a.Pa("div",{className:function(a){switch(a){case "top":return"a-be-Zb";case "bottom":return"a-be-Qe";case "left":return"a-be-ya";case "right":return"a-be-Ja"}return""}(this.nA)+" "+this.ima}),c=this.Db=a.Pa("div",{className:"a-be-B "+this.Ye});v(this.lp,function(a){a.Pa();c.appendChild(a.ta())});var d="bottom"==this.nA||"right"==this.nA,a=a.Pa("div",{className:"a-be-Cc "+this.Nma},d?c:b,d?b:c);this.Kb(a)};y3.prototype.Na=function(){this.Bgb();y3.ya.Na.call(this)};
var TQd=function(a,b){a.ib(b);a.mN.push(b)};q=y3.prototype;q.removeChild=function(a,b){var c=y3.ya.removeChild.call(this,a,b);mb(this.lp,a);return c};q.qRc=e(639);q.setSize=function(a){this.Ed=a;this.Nb()&&this.Bgb()};q.tf=function(){return this.Ed};
q.Bgb=function(){var a=this.Ed,b=this.Sx,c="top"==b||"bottom"==b,d=xc&&!Gf(7),f=this.Ab,h=ye(f);if(isNaN(h.top))Uf(Lp(this.Bgb,this),200);else{h=c?h.top+h.bottom:h.left+h.right;if(0<a||this.getContext().rd().mL&&0==a){var k=(d?a+h:a)+"px";c?f.style.height=k:f.style.width=k}else 0==a&&Pd(f,"padding",0);k=0;a&&(k=a+h,d||(a=de(f),k+=c?a.top+a.bottom:a.left+a.right));this.yH=k+="px";d?Pd(this.ta(),"padding-"+b,k):Pd(this.Db,b,k)}};q.qb=function(){y3.ya.qb.call(this);this.lp=this.mN=null};
var PAg=function(a,b){s3.call(this,a,b);this.Ab=null;this.mL=OAg(a.rd())};t(PAg,s3);PAg.prototype.Pa=function(){if(this.mL){var a=this.Ea(),b=a.Pa("div","a-yC",a.Pa("span","a-n-JX"));this.Kb(b);this.Ab=new BM("Learn more",OF.ia(),a);this.ib(this.Ab,!0)}else PAg.ya.Pa.call(this)};PAg.prototype.Na=function(){PAg.ya.Na.call(this);this.Ab&&this.getHandler().Ja(this.Ab,"action",this.Qb)};PAg.prototype.getUrl=function(){return this.mL};PAg.prototype.Qb=function(){this.mL&&rp(this.mL,{target:"_blank"})};
var OAg=function(a){a=a.fBa;var b="&hl="+My.Sa;if(!isNaN(parseInt(a,10)))return"https://www.google.com/support/websearch/bin/answer.py?answer="+a+b;if(qa(a)){var c=/\/support\/\w+\?p=\w+$/;if(c.test(a))return"https://www.google.com"+a+b;c=/^[a-z]+\/\?p=[a-z_]+$/;if(c.test(a))return"https://support.google.com/"+a+b}return null};
var A3=function(a,b){lQ.call(this,b);this.Ag=xc&&!wZb?"a-la-ba-Hd":a};t(A3,lQ);A3.prototype.Na=function(){A3.ya.Na.call(this);Qn(this.ta(),this.Ag);po(this.ta(),"status")};A3.prototype.Pa=function(){A3.ya.Pa.call(this);var a=this.ta();a&&(a.removeAttribute("aria-valuenow"),qo(a,"atomic",!0),qo(a,"live","polite"),ey(a,"Progress Started"))}; A3.prototype.Sa=function(a){A3.ya.Sa.call(this,a);var b=this.ta();if(b)switch(b.removeAttribute("aria-valuenow"),qo(b,"atomic",!0),qo(b,"live","polite"),a){case 0:ey(b,"Progress Started");break;case 100:ey(b,"Progress Completed")}};
var UV=function(a){this.Sa=void 0;this.Ab=a};t(UV,Go);UV.prototype.Pa=function(a){return a.Ea().Pa("div",this.ZGa(a))};UV.prototype.E$=function(a){UV.ya.E$.call(this,a);a=a.mL.wu();if(!this.Ab){a[0].TE(2);for(var b=1;b<a.length-1;++b)a[b].TE(3);a[a.length-1].TE(1)}};UV.prototype.Pc=function(){return"a-ULu6Y"};
var RW=function(a,b,c,d){Ho.call(this,"horizontal",d||new UV,c);Io(this,!1);this.gUa=!0;this.mL=new hz;v(a,this.Sa,this);b?t0d(this,b):GQe(this,this.mL.Sa[0])};t(RW,Ho);RW.prototype.Na=function(){RW.ya.Na.call(this);this.getHandler().Ja(this.mL,"select",Lp(this.dispatchEvent,this,"change"))};RW.prototype.Sa=function(a){a.Bm(8,!0);EI(this.mL,a);this.getHandler().Ja(a,"action",this.Ab);this.ib(a,!0)};
var GQe=function(a,b){a.mL.jn(b);var c=a.fL,d=a.mL.wu();if(c.Ab){for(var f,c=0;c<d.length;c++){var h=d[c];h.setVisible(!h.Sf());h.Sf()||(f=h)}f.zt(!0)}},t0d=function(a,b){var c=cb(a.mL.wu(),function(a){return b==a.getValue()},a);c&&GQe(a,c)};RW.prototype.Ab=function(a){GQe(this,a.target)};
var B3=function(a,b,c,d){y3.call(this,a,"a-Za-Cc","a-Za-Bb","a-Za-B","bottom",d);this.Pt=VQd(this,this.getContext().rd().Hwa(),!0);x(this,this.Pt);this.Maa=b;this.Qb=this.kN();x(this,this.Qb);this.Op=new C;TQd(this,this.Op);this.$b=null;this.zF=c;this.yja=this.Be=this.Ko=this.Vb=this.mL=this.Xb=this.Km=this.Oa=null;this.Vk=new PAg(a,d);x(this,this.Vk);a.rd().Pma&&a.mL.addCallback(Lp(function(a){ia(a.kcc)&&WQd(this,a.kcc,a.jcc)},this));this.getHandler().Ja(this.getContext().We(),"ui",this.update)};
t(B3,y3);var kRd=0;B3.prototype.kN=function(){return VQd(this,"Cancel")};
var VQd=function(a,b,c){return c?St(a.getContext().rd().Hwa(),a.Ea()):new Ot(b,a.Ea())},WQd=function(a,b,c,d){var f=a.Ea();a.Oa?(f.hb(a.Km),f.appendChild(a.Km,cd(f,b))):(a.Km=f.Pa("td","a-Za-lm-Ws",cd(f,b)),a.Oa=f.Pa("table",d?d:"a-Za-lm",f.Pa("tbody",null,f.Pa("tr",null,a.Km))),a.Ab&&(f.Hy(a.Oa,a.Ab.lastChild),a.dVa()));b=a.Km.getElementsByTagName("a");if(b.length&&c){c=Hua(c);if(!a.Xb){var h=a.Xb=new gD(f);h.setContent(c);h.Fg(b[0]);h.IA(!1);h.setPosition(2,0);h.render(a.getContext().rd().fG());
Qn(h.ta(),"a-Za-lm-ni");a.getHandler().Ja(b[0],"mousedown",function(a){h.setVisible(!0);a.stopPropagation();a.preventDefault()})}a.Xb.setContent(c)}};q=B3.prototype;
q.dVa=function(){Uf(function(){if(this.Oa){var a=xe(this.Ab).width,b=this.Tc("a-Za-zu-sc");v(b,function(b){var c=Ae(b);c&&(a-=c.right?c.right:0,a-=c.left?c.left:0);(b=xe(b))&&b.width&&(a-=b.width)});0<a&&Pd(this.Oa,"max-width",a+"px")}if(this.mL){this.Ea();var b=zy(this.Ab).height,c=ze(this.mL).height;b>c?Pd(this.mL,"margin-top",(b-c)/2+"px"):Pd(this.mL,"margin-top","0px")}},0,this)};
q.Pa=function(){B3.ya.Pa.call(this);var a=this.Ea(),b=this.Ab,c=this.Op;c.Pa();b.appendChild(a.Pa("div","a-Za-zu-sc",c.ta()));c=this.Op.ta();this.Pt.render(c);this.Pt.ta().id="picker:ap:"+kRd++;this.Pt.ta().setAttribute("guidedhelpid","ghid-psc");this.Qb&&(this.Qb.render(c),this.Qb.ta().id="picker:ap:"+kRd++,On(this.Qb.ta(),!this.Dma));this.$b&&(this.$b.Pa(),b.appendChild(this.$b.ta()));this.Vb&&(c=a.Pa("div","a-Za-v-c-zu-sc"),b.appendChild(c),this.Vb.render(c),this.Vb.ta().id="picker:ap:"+kRd++,
Qn(this.Vb.ta(),"a-Za-v-c"));this.Vk.getUrl()&&(this.Vk.Pa(),TQd(this,this.Vk),b.appendChild(this.Vk.ta()));(c=this.getContext().rd().Nma)&&b.appendChild(a.Pa("div","a-Za-Sja",a.createTextNode(c)));this.mL=a.Pa("div","a-Za-lm-wa");On(this.mL,!1);po(this.mL,"status");qo(this.mL,"live","polite");b.appendChild(this.mL);this.Oa&&(b.appendChild(this.Oa),this.dVa());this.update();this.setSize(xc?72:69)};q.setActive=function(a,b){B3.ya.setActive.call(this,a,b);this.$b&&this.$b.setActive(a,b)};
q.Na=function(){B3.ya.Na.call(this);var a=this.getHandler();a.Ja(this.Pt,"action",this.GDb);this.Qb&&a.Ja(this.Qb,"action",this.Fvc);a.Ja(this.Ea().getWindow(),"resize",this.dVa)};q.focus=function(){try{return this.iu||!this.Qb?this.Pt.ta().focus():this.Qb.ta().focus(),!0}catch(a){return!1}};q.GDb=function(){this.Maa?this.Maa():this.getContext().Ab.b2b()};q.Fvc=function(){this.zF?this.zF():this.getContext().Ab.oD()};q.qh=function(a){this.iu=a;this.Nb()&&this.update()};
q.update=function(){var a=this.getContext(),b=a.We().Aia();this.o9=this.o9||b;this.Pt.Ta(this.iu&&(!b||a.rd().Be));this.iu?this.Pt.$b("a-Qb-e-D6"):moa(this.Pt,"a-Qb-e-D6");this.Vb&&(a=this.o9&&!b,On(this.Vb.ta(),a),this.Vb.ta().style.visibility=a?"":"hidden");this.Oa&&On(this.Oa,!b);this.V2b()};
q.V2b=function(){var a=this.Ea(),b=this.getContext().We(),c=b.Aia(),d=this.Ko;if(!c||this.Mma)d&&(On(d,!1),d.style.visibility="hidden");else{var c=this.Be,f=this.yja;if(!d){var h;this.Ab.appendChild(d=this.Ko=a.Pa("div","a-Za-v-Qd",c=this.Be=a.Pa("div","a-Za-v-Qd-E"),h=a.Pa("div","d-k-l")));f=this.yja=new A3("a-la-ba",a);EQd(f);ndc(f,100);f.Sa(0);f.yb(h);On(d,!1);h=oe(this.Op.ta()).width;Pd(this.Ko,My.Bo()?"right":"left",h+30+"px")}h=b.Qb;var k=b.hW();h="Uploading "+((h<k?h+1:h)+(" of "+k));a.hb(c); a.appendChild(c,cd(a,h+"&nbsp;&nbsp;&nbsp;"));f.Sa(100*b.BGa());On(d,!0);d.style.visibility=""}};
var C3=function(a,b,c,d){yo.call(this,null,c,d);this.Sa=a;this.o9=b;this.Bm(16,!0);Co(this,16,!0)};t(C3,yo);q=C3.prototype;q.La=function(){return this.o9};q.getContext=function(){return this.Sa};q.Na=function(){C3.ya.Na.call(this);this.getHandler().Ja(this.ta(),"dblclick",this.Vva)};q.update=function(){this.Sa.od.La(this.o9.getId())&&this.xZ(this.o9.getId())};q.xZ=function(a){this.o9=this.Sa.od.La(a)};q.Vva=function(){this.dispatchEvent("dblclick")};q.vHa=ka;

G("sy868");I();
}catch(e){_DumpException(e)}
try{
Wf.prototype.RK=g(3,function(){return this.jg});H("sy876");var BEa=function(a,b){kd.call(this);this.jg=a||0;this.mL=b||10;if(this.jg>this.mL)throw Error("Gc");this.Sa=new Rh;this.Ab=new df;this.sV=0;this.Oa=null;this.iCa()};t(BEa,kd);BEa.prototype.wy=function(){var a=Wa();if(!(null!=this.Oa&&a-this.Oa<this.sV)){for(var b;0<this.Sa.Fc()&&(b=oo(this.Sa),!this.K7a(b));)this.iCa();!b&&this.Fc()<this.mL&&(b=this.$b());b&&(this.Oa=a,this.Ab.add(b));return b}};BEa.prototype.MTa=function(a){this.Ab.remove(a);this.K7a(a)&&this.Fc()<this.mL?Sh(this.Sa,a):CEa(a)};
BEa.prototype.iCa=function(){for(var a=this.Sa;this.Fc()<this.jg;)Sh(a,this.$b());for(;this.Fc()>this.mL&&0<this.Sa.Fc();)CEa(oo(a))};BEa.prototype.$b=function(){return{}};var CEa=function(a){if("function"==typeof a.Ma)a.Ma();else for(var b in a)a[b]=null};q=BEa.prototype;q.K7a=function(a){return"function"==typeof a.cgc?a.cgc():!0};q.contains=function(a){return this.Sa.contains(a)||this.Ab.contains(a)};q.Fc=function(){return this.Sa.Fc()+this.Ab.Fc()}; q.isEmpty=function(){return this.Sa.isEmpty()&&this.Ab.isEmpty()};q.qb=function(){BEa.ya.qb.call(this);if(0<this.Ab.Fc())throw Error("Hc");delete this.Ab;for(var a=this.Sa;!a.isEmpty();)CEa(oo(a));delete this.Sa};
var Lw=function(a,b){this.Ag=void 0;this.Qb=new nza;BEa.call(this,a,b)};t(Lw,BEa);q=Lw.prototype;q.wy=function(a,b){if(!a){var c=Lw.ya.wy.call(this);c&&this.sV&&(this.Ag=ha.setTimeout(Lp(this.NHa,this),this.sV));return c}Hv(this.Qb,ia(b)?b:100,a);this.NHa()};q.NHa=function(){for(var a=this.Qb;0<a.Fc();){var b=this.wy();if(b)a.remove().apply(this,[b]);else break}};q.MTa=function(a){Lw.ya.MTa.call(this,a);this.NHa()};q.iCa=function(){Lw.ya.iCa.call(this);this.NHa()}; q.qb=function(){Lw.ya.qb.call(this);ha.clearTimeout(this.Ag);this.Qb.clear();this.Qb=null};
var DEa=function(a,b,c){Lw.call(this,b,c);this.YY=a};t(DEa,Lw);DEa.prototype.$b=function(){var a=new Wf,b=this.YY;b&&b.forEach(function(b,d){a.lp.set(d,b)});return a};DEa.prototype.K7a=function(a){return!a.isDisposed()&&!a.Ad()};var EEa=function(a,b,c,d,f){Ld.call(this);this.mL=ia(a)?a:1;this.Qb=ia(f)?Math.max(0,f):0;this.Ab=new DEa(b,c,d);this.Sa=new Ze;this.Ba=new Hd(this)};t(EEa,Ld);var GEa="ready complete success error abort timeout".split(" ");EEa.prototype.send=function(a,b,c,d,f,h,k,m,p){if(this.Sa.get(a))throw Error("Ic");b=new IEa(b,Lp(this.$b,this,a),c,d,f,k,ia(m)?m:this.mL,p);this.Sa.set(a,b);a=Lp(this.Oa,this,a);this.Ab.wy(a,h);return b};
EEa.prototype.abort=function(a,b){var c=this.Sa.get(a);if(c){var d=c.AAa;c.kmb=!0;b&&(d&&(this.Ba.nb(d,GEa,c.HRa),yd(d,"ready",function(){var a=this.Ab;a.Ab.remove(d)&&a.MTa(d)},!1,this)),this.Sa.remove(a));d&&d.abort()}};EEa.prototype.Oa=function(a,b){var c=this.Sa.get(a);c&&!c.AAa?(this.Ba.Ja(b,GEa,c.HRa),b.mL=Math.max(0,this.Qb),b.jg=c.RK(),c.AAa=b,this.dispatchEvent(new HEa("ready",this,a,b)),sjc(this,a,b),c.kmb&&b.abort()):(c=this.Ab,c.Ab.remove(b)&&c.MTa(b))};
EEa.prototype.$b=function(a,b){var c=b.target;switch(b.type){case "ready":sjc(this,a,c);break;case "complete":t:{var d=this.Sa.get(a);if(7==c.D_()||c.ns()||d.HCa>d.L0a)if(this.dispatchEvent(new HEa("complete",this,a,c)),d&&(d.Gqb=!0,d.rWa)){c=d.rWa.call(c,b);break t}c=null}return c;case "success":this.dispatchEvent(new HEa("success",this,a,c));break;case "timeout":case "error":d=this.Sa.get(a);d.HCa>d.L0a&&this.dispatchEvent(new HEa("error",this,a,c));break;case "abort":this.dispatchEvent(new HEa("abort",
this,a,c))}return null};var sjc=function(a,b,c){var d=a.Sa.get(b);!d||d.Gqb||d.HCa>d.L0a?(d&&(a.Ba.nb(c,GEa,d.HRa),a.Sa.remove(b)),a=a.Ab,a.Ab.remove(c)&&a.MTa(c)):(d.HCa++,c.send(d.getUrl(),d.qGa(),d.getContent(),d.N_a()))};EEa.prototype.qb=function(){EEa.ya.qb.call(this);this.Ab.Ma();this.Ab=null;this.Ba.Ma();this.Ba=null;this.Sa.clear();this.Sa=null};var HEa=function(a,b,c,d){A.call(this,a,b);this.id=c;this.AAa=d};t(HEa,A);
var IEa=function(a,b,c,d,f,h,k,m){this.$b=a;this.mL=c||"GET";this.Sa=d;this.Ab=f||null;this.L0a=ia(k)?k:1;this.HCa=0;this.kmb=this.Gqb=!1;this.HRa=b;this.rWa=h;this.Qb=m||"";this.AAa=null};q=IEa.prototype;q.getUrl=function(){return this.$b};q.qGa=function(){return this.mL};q.getContent=function(){return this.Sa};q.N_a=function(){return this.Ab};q.RK=function(){return this.Qb};

G("sy876");I();
}catch(e){_DumpException(e)}
try{
var z3=function(a,b){a.ib(b);a.lp.push(b)};H("sy875");var YEa=function(a){Mw.call(this);this.mL=a};t(YEa,Mw);YEa.prototype.PD=pg(new Af("stat"));YEa.prototype.Dga=e(614);YEa.prototype.Sq=function(){return 8};YEa.prototype.aD=e(617);var RQd=function(a){Qw.call(this,a);this.Sa=a.response&&a.response.displayname};t(RQd,Qw);RQd.prototype.Ob=function(){return this.Sa};$S(20,function(a){return new RQd(a)});var SQd=function(){Mw.call(this)};t(SQd,Mw);SQd.prototype.PD=pg(new Af("displayname"));SQd.prototype.Sq=function(){return 20};var Glg=function(a,b){A.call(this,"fm",a);this.Sa=b||0};t(Glg,A);var E3=function(a,b,c,d){C3.call(this,a,b,c,d);this.lp=!1};t(E3,C3);q=E3.prototype;q.Na=function(){E3.ya.Na.call(this);this.getHandler().Ja(ahb(this),"key",this.Dnb)};q.Oz=e(640);q.y6a=e(641);q.TGb=e(642);q.Dnb=function(a){switch(a.keyCode){case 38:case 40:case 37:case 39:return this.hT(a),!0;case 32:return this.Dha(a),!0;case 27:if(!this.Kmb(a))return a.preventDefault(),a.stopPropagation(),!0;break;case 13:if(!this.S$(a))return a.preventDefault(),a.stopPropagation(),!0}return!1};
q.hT=function(a){this.dispatchEvent(new Glg(this,a.keyCode));a.preventDefault();a.stopPropagation()};q.Dha=function(a){this.isEnabled()&&Q3b(this);a.preventDefault()};q.Kmb=function(){return!0};q.S$=function(){return xo(this,64)?(this.hm(!0),this.hm(!1),!1):!0};var Q3b=function(a){if(xo(a,16)){var b=a.getContext();b.Sa.HP(a.La().getId(),b.rd().$b?"cb":"cl")}};E3.prototype.xt=function(a){return 13!=a.keyCode?E3.ya.xt.call(this,a):!1};
var F3=function(a){this.Vk=a;this.uh=null};t(F3,vo);F3.prototype.h_=function(){return!1};F3.prototype.Pc=function(){return this.Vk};F3.prototype.tq=function(a){F3.ya.tq.call(this,a);xo(a,16)&&qo(a.ta(),"checked",!1)};F3.prototype.uI=function(){return"option"};

G("sy875");I();
}catch(e){_DumpException(e)}
try{
H("sy692");var kR=function(a){C.call(this,a)};t(kR,C);kR.prototype.Yg=null;kR.prototype.ra=function(a){kR.ya.ra.call(this,a);lke(this)};kR.prototype.Pa=function(){this.Kb(this.Ea().Pa("input",{type:"text"}));lke(this)};var lke=function(a){a.Sa();a.Yg=new rw(a.ta());ud(a.Yg,"input",a.Sa,!1,a)};kR.prototype.Sa=function(){var a=this.ta(),b=this.getValue();switch(Xla(b)){case 1:a.dir="ltr";break;case -1:a.dir="rtl";break;default:a.removeAttribute("dir")}};
kR.prototype.xm=function(){var a=this.ta().dir;""==a&&(a=null);return a};var EX=function(a,b){var c=a.ta();null!=c.value?c.value=b:Rc(c,b);a.Sa()};kR.prototype.getValue=function(){var a=this.ta();return null!=a.value?a.value:Vc(a)};kR.prototype.qb=function(){this.Yg&&(Bd(this.Yg),this.Yg.Ma(),this.Yg=null,kR.ya.qb.call(this))};

G("sy692");I();
}catch(e){_DumpException(e)}
try{
H("sy891");var SGd=function(){Ld.call(this);this.Sb="none"};t(SGd,Ld);SGd.prototype.setState=function(a){this.Sb!=a&&(this.Sb=a,this.dispatchEvent("change"))};SGd.prototype.getState=function(){return this.Sb};var TGd=function(a,b){C.call(this,b);this.Sa="#fff";this.Ed=0;this.Ab=a};t(TGd,C);q=TGd.prototype;q.setSize=function(a){this.Ed=a};q.Pa=function(){TGd.ya.Pa.call(this);var a=this.Ea();this.$b=a.Pa("DIV");this.Qb=a.Pa("DIV","b-b4-m");var b=["b-b4"];1==this.Ed&&b.push("b-b4-ib");this.Kb(a.Pa("DIV",b,this.$b,this.Qb))};q.cb=function(){return this.$b};q.Na=function(){TGd.ya.Na.call(this);this.getHandler().Ja(this.Ab,"change",this.TXb)};
q.TXb=function(){if(!this.mL||this.mL.complete){this.hb(!0);var a,b=a=this.Sa,c=2,d=this.mL;d&&(a=d.NT,b=d.YY,c=(d.direction+1)%4);var d=this.Ab.getState(),f,h;switch(d){case "loading":h=LHd[c];f=h[0];h=h[1];break;case "none":h=f=this.Sa;break;case "offline":f="#999",h="#777"}a=new WGd(d,c,f,a,a,b,f,h,this.Ed,this.Ea());UGd(this,a);y(this.mL);this.mL=a;VGd(this)}};
var UGd=function(a,b){a.ib(b,!0);a.getHandler().yj(b,"qh",a.pN);Uf(Lp(function(a){this.Nb()&&(a.play(),Uf(Lp(function(){!this.isDisposed()&&this.Nb()&&this.U6&&!this.complete&&this.pN()},a),500,a))},a,b),0)};TGd.prototype.pN=function(a){a=a.target;var b=this.Ab.getState();b==a.state&&"loading"!=b||this.TXb();VGd(this)};
var VGd=function(a){a.Qb.style.opacity="offline"==a.Ab.getState()?1:0},LHd={0:["#00B15F","#008948"],1:["#3C78F8","#2159bd"],2:["#FA2424","#9e1212"],3:["#FFD34B","#dea11a"]},WGd=function(a,b,c,d,f,h,k,m,p,u){C.call(this,u);this.state=a;this.complete=!1;this.direction=b;this.Vk=c;this.Vb=d;this.Bma=f;this.Km=h;this.NT=k;this.YY=m;this.$b=1==p?16:19};t(WGd,C);
WGd.prototype.Pa=function(){WGd.ya.Pa.call(this);var a=this.ta(),b=this.Ea();Qn(a,"b-b4-Wb-LO");var c=b.Pa("DIV","b-b4-os"),d=b.Pa("DIV","b-b4-os");b.uv(a,c,d);var f=b.Pa("DIV","b-b4-Wb");b.appendChild(c,f);Pd(f,"backgroundColor",this.Vk);var h=b.Pa("DIV","b-b4-Wb");b.appendChild(d,h);Pd(h,"backgroundColor",this.Vb);var a=b.Pa("DIV","b-b4-Wb"),k=b.Pa("DIV","b-b4-Wb");b.appendChild(c,a);b.appendChild(d,k);Pd(a,"backgroundColor",this.Bma);Pd(k,"backgroundColor",this.YY);this.Ab=a;this.Sa=k;this.Oa=
f;this.Ag=h;this.mL=c;this.Qb=d;d=this.direction;b=this.$b+"px";c=Math.ceil(this.$b/2)+"px";f="-"+c;switch(d){case 1:Pd(this.mL,{left:0,top:0});Pd(this.Qb,{left:c,top:0});Pd(this.Ab,{left:0,top:0});Pd(this.Sa,{width:0,left:0});Pd(this.Oa,{left:0,top:0});Pd(this.Ag,{left:f});break;case 3:Pd(this.mL,{left:c,top:0});Pd(this.Qb,{left:0,top:0});Pd(this.Ab,{left:f,top:0});Pd(this.Sa,{width:0,left:c});Pd(this.Oa,{left:f,top:0});break;case 0:Pd(this.mL,{left:0,top:c});Pd(this.Qb,{left:0,top:0});Pd(this.Ab,
{left:0,top:f});Pd(this.Sa,{top:c,height:0});Pd(this.Oa,{left:0,top:f});break;case 2:Pd(this.mL,{left:0,top:0}),Pd(this.Qb,{left:0,top:c}),Pd(this.Ab,{left:0,top:0}),Pd(this.Sa,{left:0,height:0}),Pd(this.Oa,{left:0,top:0}),Pd(this.Ag,{top:f})}d=this.direction;b=0==d||2==d?{width:b,height:c}:{width:c,height:b};Pd(this.mL,b);Pd(this.Qb,b);Qn(a,"b-b4-LO");Qn(k,"b-b4-LO-j0")};
WGd.prototype.play=function(){wd&&oe(this.ta());this.U6=!0;Pd(this.Ab,"backgroundColor",this.Km);Pd(this.Sa,"backgroundColor",this.NT);var a=this.direction,b=this.$b+"px",c=Math.ceil(this.$b/2)+"px",d="-"+c;switch(a){case 1:Pd(this.Ab,{width:0,left:c});Pd(this.Sa,{left:d,width:b});break;case 3:Pd(this.Ab,{width:0,left:0});Pd(this.Sa,{width:b,left:0});break;case 0:Pd(this.Ab,{top:0,height:0});Pd(this.Sa,{top:0,height:b});break;case 2:Pd(this.Ab,{top:c,height:0}),Pd(this.Sa,{top:d,height:b})}XGd(this, this.Sa,this.pN)};var XGd=function(a,b,c){var d=!1;a.getHandler().yj(b,["webkitTransitionEnd","transitionend"],function(){d||(d=!0,c.call(a))})};WGd.prototype.pN=function(){this.complete=!0;this.dispatchEvent("qh");On(this.Ag,!1)};

G("sy891");I();
}catch(e){_DumpException(e)}
try{
var m4=function(a,b){kd.call(this);this.options=a;this.QB=b;this.Sa=b.od;this.config=b.rd();this.Oa=b.mL;this.mL=b.Mh};t(m4,kd);m4.prototype.hp=e(638);m4.prototype.reset=function(){};Ww.prototype.yW=g(630,function(){return void 0!=this.Oa});Xw.prototype.yW=g(629,function(){return void 0!=this.Sa});PEa.prototype.Tva=g(628,function(a){this.Oa=a||""});PEa.prototype.getCursor=g(627,function(){return this.Ag});Ww.prototype.getCursor=g(626,function(){return this.Oa});Xw.prototype.getCursor=g(625,function(){return this.Sa}); Yw.prototype.getCursor=g(624,function(){return this.jg});PEa.prototype.Dfa=g(623,function(a){this.Ag=a});Yw.prototype.Dfa=g(622,function(a){this.jg=a});var Njc=function(a){var b=[];He(a,function(a){b.push(a.getId())});return b};H("sy890");
var n4=function(a,b,c){t3.call(this,a,c);this.tb=(this.Ab=b)?a.od.Rd(b):a.od.EHb();this.Maa=Lp(this.r6c,this);this.Ko=[];this.kN=[];this.getHandler().Ja(a.Sa,"si",this.qid);this.KBa=!1;this.mN=!0;this.yH=this.cSa=!1;this.o9=null};t(n4,t3);q=n4.prototype;q.Rd=function(){return this.tb};q.Na=function(){n4.ya.Na.call(this);if(!this.KBa){this.KBa=!0;var a=this.tb;a&&a.addListener(this.Maa);this.mN&&this.RD()}};q.bC=function(a){var b=this.getContext().rd().iTa;return ec(a,function(a){return!b.contains(a.Qe())})};
q.gR=function(){this.getContext().od.xk(53)};q.I$b=function(){this.gR();this.getContext().od.xk(51)};q.meb=ka;q.iRa=ka;q.vB=function(a){!this.yH&&this.tb&&(a&&(this.tb.gVa(),this.tb.fVa()),this.tb.Hi()||this.RD())};
q.RD=function(a){var b=this.Ab;if(b&&!this.yH){var c=this.tb;c.Hi()&&!c.yW()?this.iO(a):(b.setStart&&(b=c.Hi()&&c.yW()?c.getCursor():"",parseInt(b,10)?this.Ab.setStart(parseInt(b,10)):this.Ab.setStart(0),this.Ab.Dfa(b),this.Ab.Tva&&(c=c.Hi()&&c.IHb()?c.Xh():"",this.Ab.Tva(c))),this.yH=!0,this.xw()&&this.meb(!0),c=Lp(this.iO,this,a),a=Lp(this.pab,this,a),this.getContext().od.Vd(this.Ab,c,a,!0))}};
q.iO=function(a){if(this.xw()){this.Zc(a);if(this.isDisposed())return;this.getContext().Ab.gY()}else this.cSa=!0;this.yH=!1;this.meb(!1)};q.pab=function(a){this.yH=!1;this.meb(!1);this.Fma(a);!this.isDisposed()&&this.getContext().Ab.gY()};q.Fma=function(a){this.iO(a)};q.setActive=function(a,b){n4.ya.setActive.call(this,a,b);if(this.xw()){var c=this.tb;c&&c.gVa();c&&!c.Hi()?this.vB():this.cSa?this.Zc(!0):this.dispatchEvent("change");this.yH&&this.meb(!0)}else this.meb(!1)};
q.Zc=function(a){this.cSa=!1;var b=this.o9;null!==b&&(Vf(b),this.o9=null);var b=this.bC(this.tb.Ae()),c=this.Ko,d=c.length,f=!a&&0<d&&d<=b.length&&Ye(b,function(a,b){return!!(b>=d||a.getId()==c[b].getId()||a.getAttribute("oid")==c[b].getId())});this.kN.length&&$Sd(this);this.Ko=b;f?(a=b.slice(d),a.length?this.Hr(a):this.vBb()):(a||b.length)&&this.Ik(b);b.length||(this.tb.Hi()?f||!this.tb.IHb()&&!this.tb.yW()?this.gR():this.vBb():this.I$b());this.kN=[];this.dispatchEvent("change")};q.vBb=ka;
var $Sd=function(a){var b=a.kN;vb(b);v(b,function(a){Cd(this.Ko,function(b){return b.getId()==a})&&this.zbb(a)},a);a.kN=[]};q=n4.prototype;q.zq=e(632);q.hJ=e(635);q.r6c=function(a,b,c){var d=zg(this.Ko,function(a){return a.getId()});this.kN=rb(this.kN,ec(c,function(a){return eb(d,a)},this));this.xw()?!b.length||a.length||c.length?null===this.o9&&(this.o9=Uf(Lp(this.Zc,this,!1),0,this)):v(b,function(a){this.jOa(a);pb(this.Ko,function(b){return b.getId()==a})},this):this.cSa=!0};
q.qid=function(a){v(a.ur,this.iRa,this)};q.Eca=function(a){this.Ab=a;this.yH=!1;this.tb.removeListener(this.Maa);this.tb=this.getContext().od.Rd(a);this.tb.addListener(this.Maa)};q.qb=function(){n4.ya.qb.call(this);var a=this.tb;a&&a.removeListener(this.Maa);this.Ab=this.tb=null;delete this.Maa;delete this.Ko;null!==this.o9&&Vf(this.o9)};

G("sy890");I();
}catch(e){_DumpException(e)}
try{
H("sy97");var ncd=function(a,b){if(xc&&!Tf(9)){ocd||(ocd=new Ze);this.Sa=ocd.get(a);this.Sa||(b?this.Sa=document.getElementById(b):(this.Sa=document.createElement("userdata"),this.Sa.addBehavior("#default#userData"),document.body.appendChild(this.Sa)),ocd.set(a,this.Sa));this.Ab=a;try{this.Sa.load(this.Ab)}catch(c){this.Sa=null}}};t(ncd,wAa);var qcd={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},ocd=null;ncd.prototype.Sa=null;ncd.prototype.Ab=null;
var pcd=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return qcd[a]})};q=ncd.prototype;q.isAvailable=function(){return!!this.Sa};q.set=function(a,b){this.Sa.setAttribute(pcd(a),b);rcd(this)};q.get=function(a){a=this.Sa.getAttribute(pcd(a));if(!qa(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};q.remove=function(a){this.Sa.removeAttribute(pcd(a));rcd(this)};q.Fc=function(){return scd(this).attributes.length};
q.fw=function(a){var b=0,c=scd(this).attributes,d=new Me;d.next=function(){if(b>=c.length)throw Oe;var d=c[b++];if(a)return decodeURIComponent(d.nodeName.replace(/\./g,"%")).substr(1);d=d.nodeValue;if(!qa(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};q.clear=function(){for(var a=scd(this),b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);rcd(this)}; var rcd=function(a){try{a.Sa.save(a.Ab)}catch(b){throw"Storage mechanism: Quota exceeded";}},scd=function(a){return a.Sa.XMLDocument.documentElement};
var tcd=function(a,b){this.kha=a;this.C$=b+"::"};t(tcd,wAa);q=tcd.prototype;q.kha=null;q.C$="";q.set=function(a,b){this.kha.set(this.C$+a,b)};q.get=function(a){return this.kha.get(this.C$+a)};q.remove=function(a){this.kha.remove(this.C$+a)};q.fw=function(a){var b=this.kha.fw(!0),c=this,d=new Me;d.next=function(){for(var d=b.next();d.substr(0,c.C$.length)!=c.C$;)d=b.next();return a?d.substr(c.C$.length):c.kha.get(d)};return d};
var eVb=function(a){var b;(b=ucd(a))||(a=new ncd(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);return b},ucd=function(a){var b=new zAa;return b.isAvailable()?a?new tcd(b,a):b:null};
G("sy97");I();
}catch(e){_DumpException(e)}
try{
H("sy822");var uOa=function(a){return(a=a.exec(fa))?a[1]:""},vOa=function(){if(pOa)return uOa(/Firefox\/([0-9.]+)/);if(xc||gc)return nf;if(Zq)return uOa(/Chrome\/([0-9.]+)/);if(kr)return uOa(/Version\/([0-9.]+)/);if(rOa||sOa){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(fa))return a[1]+"."+a[2]}else{if(tOa)return(a=uOa(/Android\s+([0-9.]+)/))?a:uOa(/Version\/([0-9.]+)/);if(qOa)return uOa(/Camino\/([0-9.]+)/)}return""}();

G("sy822");I();
}catch(e){_DumpException(e)}
try{
var Lb=function(a){return Math.max(a.width,a.height)},UEc=function(a){var b="";ia(!1)||(b="B");return nma(a,qHa,b,void 0)};H("sy861");var yY=function(a){this.o5=a};yY.prototype.set=function(a,b){ia(b)?this.o5.set(a,Rf(b)):this.o5.remove(a)};yY.prototype.get=function(a){var b;try{b=this.o5.get(a)}catch(c){return}if(null!==b)try{return Nf(b)}catch(d){throw"Storage: Invalid value was encountered";}};yY.prototype.remove=function(a){this.o5.remove(a)};
var BY=function(a){this.o5=a};t(BY,yY);var Acd=function(a){this.data=a},Bcd=function(a){return!ia(a)||a instanceof Acd?a:new Acd(a)},Ccd=function(a){a=a.data;if(!ia(a))throw"Storage: Invalid value was encountered";return a};BY.prototype.set=function(a,b){BY.ya.set.call(this,a,Bcd(b))};BY.prototype.p$=function(a){a=BY.ya.get.call(this,a);if(!ia(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};BY.prototype.get=function(a){return(a=this.p$(a))?Ccd(a):void 0};
var CY=function(a){this.o5=a};t(CY,BY);var Dcd=function(a){var b=a.creation;a=a.expiration;return!!a&&a<Wa()||!!b&&b>Wa()};CY.prototype.set=function(a,b,c){if(b=Bcd(b)){if(c){if(c<Wa()){CY.prototype.remove.call(this,a);return}b.expiration=c}b.creation=Wa()}CY.ya.set.call(this,a,b)};CY.prototype.p$=function(a,b){var c=CY.ya.p$.call(this,a);if(c)if(!b&&Dcd(c))CY.prototype.remove.call(this,a);else return c};
var Ecd=function(a){this.o5=a};t(Ecd,CY);
var s0e=function(a,b,c){var d=[];Pe(b,function(a){var b;try{b=Ecd.prototype.p$.call(this,a,!0)}catch(k){if("Storage: Invalid value was encountered"==k){c&&d.push(a);return}throw k;}if(!ia(b))d.push(a);else if(Dcd(b))d.push(a);else if(c)try{Ccd(b)}catch(m){if("Storage: Invalid value was encountered"==m)d.push(a);else throw m;}},a);return d},t0e=function(a,b,c){b=s0e(a,b,c);v(b,function(a){Ecd.prototype.remove.call(this,a)},a)},Fcd=function(a,b){t0e(a,a.o5.fw(!0),b)};

G("sy861");I();
}catch(e){_DumpException(e)}
try{
var M3=function(a){return a.Ii};H("sy872");var N3=function(a,b){A.call(this,"QE");this.Ab=a;this.Sa=b};t(N3,A);N3.prototype.La=function(){return this.Ab};var O3=function(a,b,c,d){E3.call(this,a,b,c,d);this.Db=this.ona=null};t(O3,E3);var wRd={canceled:"a-v-e-Ama","default":"a-v-e-Ba",error:"a-v-e-wa",running:"a-v-e-E1",scheduled:"a-v-e-fN",success:"a-v-e-eu"};O3.prototype.Na=function(){O3.ya.Na.call(this);this.Db&&this.Db.Na()};var F9f=function(a){return a.Db||(a.Db=new A3("a-la-ba",a.Ea()))};
O3.prototype.update=function(){O3.ya.update.call(this);var a=this.La(),b=this.ona;if((a=(a=a.Ii)&&a.getState())&&b!=a){var c=this.Qb;b&&c.eO(this,wRd[b],!1);c.eO(this,wRd[a],!0);this.ona=a;"error"==a&&(this.Ld(!1),this.Bm(16,!1),this.zt(!1),this.Bm(32,!1),this.Db.Sa(0))}this.Db&&(a=(b=M3(this.La()))&&b.tf())&&(b=Math.round(100*b.dNa/a),isNaN(b)||this.Db.Sa(b))};

G("sy872");I();
}catch(e){_DumpException(e)}
try{
H("sy869");var G3=function(a,b,c,d){y3.call(this,a,"a-kd-Cc","a-kd-Bb","a-kd-B","top",d);this.Bc=b;this.mL=c};t(G3,y3);q=G3.prototype;
q.Pa=function(){G3.ya.Pa.call(this);for(var a=this.Ea(),b,c=a.Pa("table",{"class":"a-kd-wf",cellSpacing:"0",cellPadding:"0"},a.Pa("tbody",null,b=a.Pa("tr"))),d=[],f=this.getContext().od,h=this.Bc.Ab;h;){var k=h.getName(),m=h.getOption("parent");m&&(m=f.La(m))&&(k=m.getName());d.unshift([k,h]);h=h.Ab}d.push([this.mL.getName(),null]);f=d.pop();for(h=0;h<d.length;h++){var p=d[h],k=b,m=p[0],p=p[1],u=0==h,z=h==d.length-1,F=this.Ea(),u=F.Pa("td","a-kd-Ng"+(u?" a-kd-l0-Ng":"")+(p?" a-kd-Dq":""),m);u.Y6a=
p;z&&(this.Qb=u);Sc(u,!!p);ey(u,"Switch to folder "+m);po(u,"link");k.appendChild(u);k.appendChild(F.Pa("td","a-kd-kE"+(z?" a-kd-ln-kE":""),F.Pa("div","a-kd-v7 d-k-l"),F.Pa("div","a-kd-uma d-k-l")))}a=a.Pa("td",{"class":"a-kd-Hp"},f[0]);ey(a,"Selected folder "+f[0]);Sc(a,!0);b.appendChild(a);this.Ab.appendChild(c);this.setSize(40)};q.Na=function(){G3.ya.Na.call(this);this.getHandler().Ja(this.Ab,"keydown",this.pvc).Ja(this.Ab,"click",this.VAb)};
q.focus=function(){return this.Qb?(this.Qb.focus(),!0):!1};q.VAb=function(a){(a=a.target.Y6a)&&this.getContext().Mh.On(a)};q.pvc=function(a){if(32==a.keyCode||13==a.keyCode)this.VAb(a),a.preventDefault(),a.stopPropagation()};q.qb=function(){G3.ya.qb.call(this);delete this.Bc;delete this.mL};

G("sy869");I();
}catch(e){_DumpException(e)}
try{
var SSd=function(a,b){var c=BMc(a),d=bca(a,c);ao.call(this,[0,c.scrollTop],[0,d.y],b||200,co);this.Sa=c};t(SSd,ao);SSd.prototype.vk=function(){SSd.ya.vk.call(this);this.Sa.scrollTop=this.coords[1]};
var sRd=function(a,b){var c=a.Qf,d=a.Xg,f;b instanceof Kb?f=b:(b=b||512,f=new Kb(b,b));var h=c/d;c>d?(c=Math.min(f.width,c),d=Math.ceil(c/h),d>f.height&&(d=f.height,c=Math.ceil(d*h))):(d=Math.min(f.height,d),c=Math.ceil(d*h),c>f.width&&(c=f.width,d=Math.ceil(c/h)));return new Kb(c,d)},tRd=function(a){if(!a.Qf||!a.Xg)return new Uw(a.mL,a.Qf,a.Xg,!1,a.dh);var b=new Kb(a.Qf,a.Xg);if(2048<a.Qf||2048<a.Xg)b=b.Cr(new Kb(2048,2048));return new Uw(a.mL,Math.ceil(b.width),Math.ceil(b.height),!1,a.dh)};
E3.prototype.TGb=g(642,function(){return this.lp});E3.prototype.y6a=g(641,function(){this.lp=!1});E3.prototype.Oz=g(640,function(){this.lp=!0});y3.prototype.qRc=g(639,function(a){On(this.Ab,a)});t3.prototype.zq=g(633,function(){return new df});n4.prototype.zq=g(632,function(){return new df(zg(this.Ko,function(a){return a.getId()}))});
Mw.prototype.ora=g(621,function(){var a=this.Dga(),b=this.Iwa();Df(a,b);b.remove("token");b.remove("version");b.remove("tzo");b.remove("tzfp");var c=hKa;if(c)for(var d in c)b.remove(d);return a});PEa.prototype.ora=g(620,function(){var a=PEa.ya.ora.call(this),b=a.Sa;b.remove("start");b.remove("numResults");b.remove("cursor");b.remove("cToken");return a});K3.prototype.ora=g(619,function(){var a=K3.ya.ora.call(this);Hf(a,"requestid",this.getId());return a});
Mw.prototype.aD=g(618,function(){this.Qb||(this.Qb=this.ora().toString());return this.Qb});YEa.prototype.aD=g(617,function(){return YEa.ya.aD.call(this)+"/"+this.getId()});Mw.prototype.Dga=g(616,function(){var a=this.PD().clone(),b=My,c=b.Qb;c&&Cf(a,c+a.getPath());Hf(a,"hl",b.Sa);b.Ab&&Hf(a,"native",1);(b=b.mL)&&Hf(a,"oauth_token",b);return a});v3.prototype.Dga=g(615,function(){var a=this.PD().clone();Cf(a,Na(a.getPath(),this.Sx));return a});
YEa.prototype.Dga=g(614,function(){var a=YEa.ya.Dga.call(this);v(this.mL,function(b){a.Sa.add("stat",b)});return a});
Uw.prototype.ll=g(613,function(a,b,c){var d=this.Qf,f=this.Xg,h=this.dh;if(this.Ab){if(a instanceof Kb)return new Uw(this.Qs(a,b,void 0,c),d,f,!1,h);2048<a&&(a=2048);if(b&&b.length)return new Uw(this.Qs(a,b,void 0,c),a,a,!1,h);if(!d||!f)return new Uw(this.Qs(a,b,void 0,c),void 0,void 0,!1,h);if(!ia(a)||0<a)b=sRd(this,a),d=b.width,f=b.height;return new Uw(this.Qs(a,void 0,void 0,c),d,f,!1,h)}return tRd(this)});
var bTd=function(a){a.uh||(a.uh=new fn(My.Bo()));return a.uh},TSd=function(a){a.dispatchEvent(new Glg(a));(new SSd(a.ta())).play()},nEg=function(a,b,c,d){if(b&&c)switch(a.Ea().uq(a.mL,c),Sx(a.mL,["a-Za-lm-wa","a-Za-lm-Ec"]),d){case 1:Qn(a.mL,"a-Za-lm-Ec");break;default:Qn(a.mL,"a-Za-lm-wa")}On(a.mL,b);c=!b;a.Oa&&On(a.Oa,c);a.$b&&a.$b.$b(c);a.Vk.ta()&&On(a.Vk.ta(),c);b&&a.dVa()},oEg=function(a,b){a.$b=b;TQd(a,a.$b)},N3e=function(a,b){var c=a.Ea();c.Ep(c=c.Pa("span"),a.Qb.ta());b.render(c)},cTd=function(a,
b){var c=a.ta();c&&Pn(c,"a-be-Bd",!b);a.Ab&&a.Pha!=b&&(a.Pha=b,a.qRc(b),c=b?a.yH:0,xc&&!Gf(7)?Pd(a.ta(),"padding-"+a.Sx,c):Pd(a.Db,a.Sx,c))},dTd=function(a){switch(a.Sa){case "blog-search":return"No results found.";case "book-search":return"No books found.";case "calendars":return"No calendars found.";case "contacts":return a.getQuery()?"No contacts matched your search.":"No contacts found.";case "all":case "documents":return a.getQuery()?"No items matched your search.":0==a.getOption("ownedByMe")?
"No one's shared any files with you yet!":"No documents.";case "docs-images":return"No images.";case "docs-images-and-videos":return"No images or videos.";case "docs-videos":return"No videos.";case "drawings":return"No drawings.";case "events":return"No events found.";case "folders":return a.getOption("parent")?"No items in this folder.":"No folders.";case "fonts":return"No fonts found.";case "forms":return"No forms.";case "groups":return a.getOption("parent")?"No contacts in this group. Please ensure that you are allowed to view group members.":
"No groups found.";case "image-search":return"No images found.";case "maps":case "my-maps":case "maps-pro":return"No maps found.";case "pdfs":return"No PDFs.";case "circle":case "people":switch(a.Ra()){case "circles":return"No circles found.";default:return a.getOption("parent")?a.getOption("peopleFilter")?"No matching people found in this circle.":"There's no one in this circle.":"No people found."}case "photos":case "photo-albums":case "photo-curation":return a.getQuery()||a.Ra()||a.getOption("parent")?
"No photos.":"No photo albums.";case "play-edu":return"No Play for Education content.";case "presentations":return"No presentations.";case "recently-picked":return"You haven't recently picked anything!";case "scripts":return"No scripts.";case "spreadsheets":return"No spreadsheets.";case "sites":return"No sites.";case "tables":return"No tables.";case "video-search":case "videos":case "video-albums":case "youtube":return"No videos found.";case "web":return"No results found.";default:return"No items matched your criteria."}},
l4f=function(a,b){na(a.getOption(b))&&(delete a.mL[b],a.Qb=null)},o4=function(a,b){a.Qb=null;BN(a,"query",b)},E1e=function(a){return"people"==a.Sa||"fonts"==a.Sa},I2d=function(a,b){a.Oa=b},oTf=function(a){a=a.Ag;return"application/chromium-bookmark-folder"==a||"application/chromium-root-folder"==a||"application/vnd.google-apps.folder"==a||"application/vnd.google-apps.photoalbum"==a||"application/vnd.google-apps.rollupphotoalbum"==a},uma=function(a,b){var c=Hua(b);return I7a(lea(a,null,c,void 0))},
Ag=function(a,b,c,d,f,h,k){var m=a.Ab[b];m.fh()?(b=new $da(c,d),k?b.Hf(a.Ag):window.setTimeout(Lp(b.Hf,b),0)):iea(a,b)?(bea(m.Ab,c,d),h&&(kea(a,b),yg(a))):(bea(m.Ab,c,d),f||(h&&kea(a,b),jea(a,[b])))},LEa=function(a,b,c,d,f,h,k){A.call(this,a,b);this.Gp=c;this.response=d;this.wbb=f;this.Sa=k};t(LEa,Ncg);
var tUd=function(a,b){window.gapi&&window.gapi.load?window.gapi.load(a,{callback:b}):Uf(Lp(tUd,void 0,a,b),100)},vUd,Rw=function(){Ld.call(this);this.cM=!1;this.Vk=0;this.Ag=new Ze;this.YY=new Ze;this.uh=new Ze;this.Ba=new Hd(this);this.zF=new Sf(6E4);this.Ba.Ja(this.zF,"tick",this.gea)};t(Rw,Ld);Rw.prototype.Oa=e(486);Rw.prototype.initialize=function(){this.cM=!0;for(var a=this.uh,b=a.Rc(),c=0;c<b.length;c++)this.Yy(b[c]);a.clear();this.zF.start()};
Rw.prototype.Yy=function(a){this.cM?(this.YY.set(a.getId(),a),this.Ko(a),this.Vk++):this.uh.set(a.getId(),a)};var MEa=function(a,b){var c=a.YY,d=c.get(b);d&&(a.dispatchEvent(new LEa("ready",a,d)),c.remove(b),a.Ag.set(b,d))},Sw=function(a,b,c){var d=a.Ag,f=d.get(b);f&&(d.remove(b),b=Tw.Hf(f.Sq(),c),a.dispatchEvent(new LEa("success",a,f,b||void 0,c)))};Rw.prototype.Sx=function(){return 45};Rw.prototype.gea=function(){this.Vk>this.Sx()&&window.location.reload(!0);this.Vk=0};
Rw.prototype.qb=function(){this.YY.clear();this.YY=null;this.Ag.clear();this.Ag=null;this.uh.clear();this.uh=null;this.Ba.Ma();this.Ba=null;Rw.ya.qb.call(this)};
var uUd=function(a,b){if(!vUd){var c=wc("script");c.src="https://apis.google.com/js/api.js";c.type="text/javascript";c.async=!0;document.body.appendChild(c);vUd=!0}tUd(a,b)},xUd={X5b:"all",HCd:"docs-images",ICd:"docs-images-and-videos",JCd:"docs-videos",LCd:"documents",WCd:"drawings",vEd:"folders",CEd:"forms",IJd:"pdfs",WKd:"presentations",mMd:"scripts",$Md:"sites",CNd:"spreadsheets",FOd:"tables",TBd:"crop",XFd:"image-search",qKd:"photo-albums",rKd:"photo-caption",sKd:"photo-curation",AKd:"photo-upload",
yKd:"photo-tagging",zna:"photos",pQd:"webcam",JQd:"youtube-banner-preview",eQd:"video-search",Bbc:"videos",VDb:"video-albums",Ona:"youtube",$7b:"maps",ZHd:"maps-pro",tId:"my-maps",CIRCLE:"circle",$Ra:"contacts",Zda:"people",God:"groups",sD:"events",VDd:"et",I4b:"attachments",Xzd:"blog-search",aAd:"book-search",nAd:"calendars",H6b:"fonts",QFd:"icon",uyb:"play-edu",Jbd:"promo",qBa:"profile",tLd:"recently-picked",GPd:"upload",URL:"url",uQd:"web",QBd:"create-event",oLd:"quota"},wUd=function(a,b,c){a=
a.split("/");var d=a[0];return Tb(xUd,d)?(c=c||{},c.query=a[1]?Ka(a[1]):c.query,new w3(d,b,c)):null},p4=function(a,b){if(qa(a)){var c=a;a=vc("img");a.src=c;le(a,21,21)}Qn(a,"b-c-W");c=[];c.push(a);if(b){var d=vc("span","b-c-ka",b);c.push(d)}return c};H("sy882");
var QSd=function(a,b){Mw.call(this);this.mL=a;this.Oa=b};t(QSd,Mw);QSd.prototype.PD=pg(new Af("setuserpref"));QSd.prototype.Sq=function(){return 16};QSd.prototype.xE=function(){var a=new Ze;a.set("key",this.mL);a.set("value",this.Oa);return a};var yUd=function(a,b,c){a=nc(a,b,c);return 0<a.length?a[0]:null};var q4=function(a,b){C.call(this,b);this.Sa=a};t(q4,C);q4.prototype.getContext=function(){return this.Sa};q4.prototype.Pa=function(){var a=this.Ea(),b,c=a.Pa("table",null,a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td",null,this.Ab()),a.Pa("td",null,b=a.Pa("span","a-zb-E"))))),d=this.getMessage();Lc(d)?b.appendChild(d):a.appendChild(b,cd(a,d));a=a.Pa("table","a-zb-wf",a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td",{align:"center"},c))));this.Kb(a)}; q4.prototype.setActive=function(){var a=this.ta();On(a,!0);if(a=yUd("a",void 0,a))try{a.focus()}catch(b){}};
var Xee=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Very few items selected. Please select more.}male{Very few items selected. Please select more.}other{Very few items selected. Please select more.}}"),{VIEWER_GENDER:c.Aa});return P(a+c)};
var D3=function(){this.Sa=void 0};t(D3,Go);la(D3);D3.prototype.Pc=function(){return"a-Lc"};D3.prototype.Pa=function(a){a=a.Ea();return a.Pa("div",this.Pc()+"-B",a.Pa("span"))};D3.prototype.cb=function(a){return a.firstChild};D3.prototype.mL=function(){return"listbox"};
var k4=function(a,b,c){Ho.call(this,a,b||D3.ia(),c);this.gUa=!0;Io(this,!1);this.mmb=!1;this.Sa=-1;this.Qb=null};t(k4,Ho);var USd=function(a,b){a.Qb=b;var c=b.ta();a.$b=he(c,a.ta()).x;a.Oa=a.$b+c.offsetWidth/2};k4.prototype.Zj=function(a,b,c){k4.ya.Zj.call(this,a,b,c);if(a instanceof C3&&(a.vHa(this.Af(a)),b<Ge(this)-1))for(c=b+1;c<Ge(this);c++){var d=this.Oh(c);d instanceof C3&&d.vHa(c)}xo(a,32)&&(a=a.jh(),-1==this.Sa?(this.Sa=b,a.tabIndex=0):(b<=this.Sa&&this.Sa++,a.tabIndex=-1))};
k4.prototype.removeChild=function(a,b){var c=qa(a)?this.Ge(a):a,d=0;if(c){var f=this.Af(c);if(c instanceof C3&&f<Ge(this)-1)for(c=f+1;c<Ge(this);c++)d=this.Oh(c),d instanceof C3&&d.vHa(c-1);f==this.Sa?((d=VSd(this,f,!0))||(d=VSd(this,f,!1)),d?(l4(this,d,!1),0<d&&this.Sa--):this.Sa=-1):f<this.Sa&&this.Sa--}return k4.ya.removeChild.call(this,a,b)};k4.prototype.Na=function(){k4.ya.Na.call(this);this.getHandler().Ja(this,"fm",this.Ab)};
k4.prototype.Ab=function(a){var b=a.target;switch(a.Sa){case 0:a=this.Af(b);var c=this.Sa;a==c&&b.j0()||l4(this,a-c,!0);break;case 38:if("vertical"==this.tI)l4(this,-1,!1);else{t:{b=this.Af(b);if(-1!=b&&(a=WSd(this,b),0!=a&&(c=VSd(this,a,!1)))){c=a+c;a=WSd(this,c);b=YSd(this,a,c)-b;break t}b=0}b&&l4(this,b,!1)}break;case 40:if("vertical"==this.tI)l4(this,1,!1);else{t:{b=this.Af(b);if(-1!=b&&(a=XSd(this,b),a!=Ge(this)-1&&(c=VSd(this,a,!0)))){c=a+c;a=XSd(this,c);b=YSd(this,c,a)-b;break t}b=0}b&&l4(this,
b,!1)}break;case 37:"horizontal"==this.tI&&l4(this,VSd(this,b,My.Bo()),!0);break;case 39:"horizontal"==this.tI&&l4(this,VSd(this,b,!My.Bo()),!0)}};
var VSd=function(a,b,c){b="number"==typeof b?b:a.Af(b);var d=c?Ge(a):-1;c=c?1:-1;for(var f=b+c;f!=d;f+=c){var h=a.Oh(f);if(h.isEnabled()&&xo(h,32))return f-b}return 0},WSd=function(a,b){for(var c=a.Oh(b).ta(),c=ie(c).y,d=b-1;0<=d;d--){var f=a.Oh(d);if(f.isEnabled()&&(f=f.ta(),ie(f).y+f.offsetHeight<=c))return d+1}return 0},XSd=function(a,b){for(var c=Ge(a),d=a.Oh(b).ta(),d=ie(d).y+d.offsetHeight,f=b+1;f<c;f++){var h=a.Oh(f);if(h.isEnabled()&&(h=h.ta(),ie(h).y>=d))return f-1}return c-1},YSd=function(a,
b,c){var d=ie(a.ta()),f=Number.MAX_VALUE,h=b,k;t:{if(0<=a.Af(a.Qb)&&(k=a.Qb.ta(),he(k,a.ta()).x==a.$b)){k=a.Oa;break t}(k=a.Oh(a.Sa))&&USd(a,k);k=a.Oa}for(;b<=c;b++){var m=a.Oh(b);if(m.isEnabled())if(m=m.ta(),m=ie(m).x-d.x+m.offsetWidth/2,m=Math.abs(k-m),m<f)f=m,h=b;else if(m>f)break}return h},l4=function(a,b,c){try{if(!Oc(a.ta(),yba(a.Ea().La())))return}catch(d){return}var f=a.Sa;if(0<=f){var h=f+b;if(b=a.Oh(h)){a.Sa=h;f=a.Oh(f);f=f.Qb.jh(f);Sc(f,!1);f=b.Qb.jh(b);Sc(f,!0);try{f.focus(),c&&USd(a, b)}catch(k){}}}};k4.prototype.kt=function(){var a=this.Oh(this.Sa);if(a){a=a.Qb.jh(a);try{return a.focus(),!0}catch(b){}}return!1};
var ZUd=new gn("EEEE, "+vz.vna+", HH:mm a"),$Ud=new gn("EEEE, "+vz.vna+", HH:mm a "+vz.fmb),aVd=new gn(2),FUd=new gn(3),h2e=new gn(1),DUd=new gn(7),EUd=new gn(vz.Yda),r4=function(a,b,c){return a?b.format(a,c):""},BUd=function(a){if(a){var b=new bn;b.setTime(a);return b}return null},CUd=function(a){var b=BUd(a);return 432E5>Wa()-a?r4(b,DUd):dma(b)?r4(b,EUd):r4(b,FUd)};
var Fcf=function(a,b){var c=a.getOption("mode"),d=b.rd().zF,f=!1;b.mL.addCallback(function(a){f=!a.M_b.jc("dl")});return"grid"==c||null==c&&!d&&("docs-images"==a.Sa||"docs-images-and-videos"==a.Sa)||null==c&&d&&f},I1e=function(a){var b=wUd(a).getName();switch(a){case "all":b="All file types"}return b},J1e=function(a,b){for(var c=b||a.Sa,d=new w3(c,a.getTitle(),Xb(a.getOptions())),f=d,h=a.Ab;h;)var k=new w3(c,h.getTitle(),Xb(h.getOptions())),f=f.Ab=k,h=h.Ab;return d},$6e=function(a){switch(a){case 10:return"Last edited by me";
case 3:return"Last modified";case 2:return"Last opened by me";case 8:return"Name";case 5:return"Relevance";case 9:return"Share date"}return""},K1e=function(a){a=a.rI();return"application/vnd.google-apps.folder"==a?"Folder":eb(BJe,a)?"Image":eb(KLe,a)?"Video":eb(FLe,a)?"Document":eb(TKe,a)?"Presentation":eb(pLe,a)?"Spreadsheet":eb(jJe,a)?"Drawing":eb(SKe,a)?"PDF":eb(kJe,a)?"Form":eb(ELe,a)?"Table":eb(eLe,a)?"Site":eb(UKe,a)?"Script":""},Llg=function(a){if(a.getOption("sortKey"))return a.getOption("sortKey");
if(a.getQuery())return 5;if(NAg(a))return 9;switch(a.Sa){case "all":case "documents":case "drawings":case "folders":case "forms":case "pdfs":case "presentations":case "sites":case "spreadsheets":case "tables":return 3;case "docs-images":case "docs-images-and-videos":case "docs-videos":return 8;default:return 3}};
var C7e=function(a,b,c,d){Bp.call(this,d);this.Sa=a;this.Bc=b;this.$b=Llg(b);this.Qb=c;this.Ab=null};t(C7e,Bp);C7e.prototype.Pa=function(){C7e.ya.Pa.call(this);for(var a=this.Bc.getQuery()?[3,5]:NAg(this.Bc)?[3,10,2,8,9]:[3,10,2,8],b=0;b<a.length;b++){var c=a[b],d=new yp($6e(a[b]),c);c==this.$b&&(d.Bm(8,!0),d.qj(!0));this.ib(d,!0);8==c&&(this.Ab=d,sMe(this,this.Qb))}Qn(this.ta(),"a-Qa-r");Qn(this.ta(),"a-Bpn8Yb-Qa-r")};
C7e.prototype.Na=function(){C7e.ya.Na.call(this);this.getHandler().Ja(this,"action",this.Oa)};var sMe=function(a,b){a.Qb=b;a.Ab&&(a.Ab.setVisible(!b),a.Ab.Ta(!b))};C7e.prototype.Oa=function(a){var b=this.Bc.clone();BN(b,"sortKey",a.target.kc());this.Sa.Mh.On(b)};
var M1e=function(a,b,c,d,f){C.call(this,f);this.Bc=a;this.Sa=b;this.Qb=c;this.mL=!!d;this.Ab=null};t(M1e,C);M1e.prototype.Pa=function(){M1e.ya.Pa.call(this);var a=this.ta();a.id=Ce(Be.ia());var b=this.Ea();Qn(a,"a-Dv-za");var c=I1e(this.Bc.Sa);b.appendChild(a,b.Pa("div","a-Dv-za-ka",c));ey(a,"Filter by "+(c+" on"));this.mL&&(this.Ab=new yo(b.Pa("div","a-n-ab-z-wt-jf")),this.Ab.$b("a-Dv-za-Yd"),this.ib(this.Ab,!0),po(this.Ab.ta(),"button"),a="Remove filter: "+c,ey(this.Ab.ta(),a))}; M1e.prototype.Na=function(){M1e.ya.Na.call(this);this.Ab&&this.getHandler().Ja(this.Ab,"action",this.$b)};M1e.prototype.$b=function(){var a=J1e(this.Bc,"all");o4(a,this.Qb.value);BN(a,"docTypesDropDown",!0);this.Sa.Mh.On(a)};
var u4=function(a,b,c){ow.call(this,c);this.Sa=a;this.Qb=b};t(u4,ow);
u4.prototype.Pa=function(){u4.ya.Pa.call(this);var a=new yp("File type");this.ib(a,!0);a.Bm(2,!1);a.Bm(4,!1);Qn(a.ta(),"a-Qa-A-Nb");E3a(a.ta());a=this.Sa.rd().Km?"all folders documents spreadsheets presentations pdfs docs-images docs-videos".split(" "):"all folders drawings docs-images pdfs presentations spreadsheets forms documents docs-videos tables".split(" ");v(a,function(a){var c=I1e(a);a=new yp(c,a);this.ib(a,!0)},this);this.Ab=!0;Qn(this.ta(),"a-Qa-r");Qn(this.ta(),"a-cka-Qa-r")}; u4.prototype.Na=function(){u4.ya.Na.call(this);this.getHandler().Ja(this,"action",this.$b)};u4.prototype.$b=function(a){a=J1e(this.Sa.Mh.FH,a.target.kc());o4(a,this.Qb.value);BN(a,"docTypesDropDown",!0);this.Sa.Mh.On(a)};
var AUd=function(a,b){q4.call(this,a,b)};t(AUd,q4);AUd.prototype.getMessage=function(){var a=this.Ea(),b=this.getContext().rd().lN();return a.Pa("div",void 0,a.Pa("div","a-zb-O",b?"Share photos from Google Drive on Google+":"Goodbye attachments. Hello Google Drive."),a.Pa("div","a-zb-E",b?"Google Drive is the single place to keep all your files so you can access them from anywhere, any device.  Once you have photos in Google Drive, you can instantly share them with your circles here.":"With Google Drive, you never have to send another email attachment again.  Just share a link to any file you store in Google Drive.  That way everyone has access to the same file, same version - automatically."))}; AUd.prototype.Ab=function(){return this.Ea().Pa("img",{"class":"a-zb-Cd",width:"64",height:"64",src:"//ssl.gstatic.com/docs/picker/images/db07825265y.png"})};
var GUd=function(a,b){C.call(this,b);this.Bc=a};t(GUd,C);var HUd=function(a){if("getty"==a.Bc.Ra())return"Results shown are available for personal or commercial use only in Google Drive, and may not be independently redistributed or sold.";switch(a.Bc.getOption("license")){case "r":return"Results shown are labeled for reuse.";case "cr":return"Results shown are labeled commercial for reuse.";case "rwm":return"Results shown are labeled for reuse with modification.";case "crwm":return"Results shown are labeled for commercial reuse with modification."}return null};
GUd.prototype.Pa=function(){GUd.ya.Pa.call(this);var a=this.Ea(),b=Ce(Be.ia()),c=this.Bc.getOption("learnmoreurl")||"https://support.google.com/drive/?p=docs_image_search&hl="+My.Sa;this.Kb(a.Pa("div","a-pka",a.Pa("label",{id:b},a.createTextNode(HUd(this)+" ")),a=a.Pa("a",{target:"_blank",href:c},"Learn more")));qo(a,"labelledby",b)};
var s4=function(a){F3.call(this,"a-Hb-e");this.Vb=a};t(s4,F3);
s4.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=c.Pa("tr","a-Hb-e-cy");Pn(d,"a-Hb-e-ak",!xo(a,16)&&!xo(a,64));Sc(d,!0);var f=c.Pa("td","a-Hb-e-P-xd a-Hb-e-xd");if(xo(a,16)){var h=new nD(void 0,c);h.Bm(32,!1);h.render(f);a.Xb(h);Sc(h.ta(),!1);Qn(d,"a-Hb-e-cy-lE-P")}a=c.Pa("td","a-Hb-e-m-xd a-Hb-e-xd");(h=b.getIcon())?(h=c.Pa("img",{"class":"a-Hb-e-m-W",src:h}),a.appendChild(c.Pa("span","a-Hb-e-m",h))):a.appendChild(c.createTextNode("\u00a0"));ey(a,K1e(b));var h=c.Pa("td","a-Hb-e-kb-xd a-Hb-e-xd",
cd(c,uma(bTd(this),b.getName()||"")+"\u00a0")),k=c.Pa("td","a-Hb-e-oka-xd a-Hb-e-xd");(b=b.Zta)?c.uq(k,CUd(b)):c.appendChild(k,cd(c,"&ndash;"));c.uv(d,f,a,h,k);return d};s4.prototype.setState=function(a,b,c){s4.ya.setState.call(this,a,b,c);if(16==b){var d=a.Uma;d&&Uf(function(){d.Ld(c)})}};s4.prototype.mL=ka;
s4.prototype.Op=function(a){var b=a.ta(),c=a.La();a=a.Ea();if(c.getName()){var d=a.fb("a-Hb-e-kb-xd",b);a.fb("a-Hb-e-cy");d&&(a.hb(d),a.appendChild(d,cd(a,uma(bTd(this),c.getName()||"")+"\u00a0")))}var d=a.fb("a-Hb-e-oka-xd",b),f=c.Zta;f?a.uq(d,CUd(f)):d&&(a.hb(d),a.appendChild(d,cd(a,"&ndash;")));(b=a.fb("a-Hb-e-m-xd",b))&&ey(b,K1e(c))};
var t4=function(a,b,c,d){E3.call(this,a,b,c,d);this.Uma=null};t(t4,E3);t4.prototype.Um=function(a){!xo(this,64)||!this.isEnabled()||this.Uma&&"b-P-Tb"==a.target.className?t4.ya.Um.call(this,a):(this.hm(!0),this.hm(!1))};t4.prototype.Xb=function(a){this.Uma=a};t4.prototype.xZ=function(a){t4.ya.xZ.call(this,a);this.Qb.Op(this)};
var L3=function(){this.Sa=void 0};t(L3,D3);L3.prototype.Pa=function(a){a=a.Ea();return a.Pa("table",this.Pc()+"-B a-SX-wf",a.Pa("tbody"))};var V0d=function(a){C.call(this,a);this.Sa=new SGd;x(this,this.Sa);this.Ab=new TGd(this.Sa,a);x(this,this.Ab)};t(V0d,C);V0d.prototype.Pa=function(){V0d.ya.Pa.call(this);var a=this.mL=this.Ea().Pa("div","a-iu");this.Sa.setState("none");this.Ab.render(a);this.ta().appendChild(this.mL);On(this.mL,!1);ey(this.mL,"Loading data");po(this.ta(),"status");qo(this.ta(),"live","polite")};V0d.prototype.setVisible=function(a){this.Sa.setState(a?"loading":"none");On(this.mL,a)};
var IUd=function(a,b,c){s3.call(this,b,c);this.Oa=a;this.FJa=this.mBa=null;this.Ab=""};t(IUd,s3);var QUd="red orange yellow green teal blue purple pink white gray black brown".split(" ");IUd.prototype.Pa=function(){var a=this.Ea().Pa("div","a-mz");JUd(this,a);KUd(this,a);this.Kb(a)};
var JUd=function(a,b){var c=a.Ea(),d=a.mBa=new Bp(c),f=function(a,b){d.ib(new yp(b,a,c),!0)};f("","Any type");f("face","Face");f("photo","Photo");f("clipart","Clip art");f("lineart","Line drawing");f=c.Pa("div","a-r-Z");c.appendChild(c.La().body,f);d.render(f);f=a.FJa=new Fp("Any type",d,Hp.ia());f.U4=!0;f.render(b);f=f.ta();c.Ab(f,{title:"Image filter"});Qn(f,"a-mz-Foa-c")},KUd=function(a,b){var c=a.Ea(),d=function(a,b){var d=c.Pa("div","a-mz-Go d-k-l",c.Pa("div",a));po(d,"button");qo(d,"label",
b);qo(d,"selected",!1);return d},f=function(a,b){return d({"class":"a-mz-Go-aa "+b,title:a},a)};b.appendChild(f("Full color","a-n-MA-Ed-B6"));b.appendChild(f("Monochrome","a-n-MA-E6"));f=function(a,b){return d({"class":"a-mz-Go-aa",title:a,style:"background-color: "+b},a)};b.appendChild(f("Red","#c00"));b.appendChild(f("Orange","#fb940b"));b.appendChild(f("Yellow","yellow"));b.appendChild(f("Green","#0c0"));b.appendChild(f("Teal","#03c0c6"));b.appendChild(f("Blue","blue"));b.appendChild(f("Purple",
"#762ca7"));b.appendChild(f("Pink","#ff98bf"));b.appendChild(f("White","white"));b.appendChild(f("Gray","#999"));b.appendChild(f("Black","black"));b.appendChild(f("Brown","#885418"))};q=IUd.prototype;
q.eb=function(a){var b=this.ta().childNodes,c;c=a.getOption("imgtype");for(var d=this.mBa,f,h=Ge(d);0<h&&(f=d.Oh(--h),f.kc()!=c););c=f;this.Ab=c.kc();this.FJa.setContent(c.Cg());c=1;d=a.getOption("imgcolor");"mono"==a.getOption("imgc")?c=2:d&&(c=fb(QUd,d)+3);for(a=1;a<b.length;a++)d=a==c,qo(b[a],"selected",d),NUd(b[a],d),Sc(b[a],d)};
q.Na=function(){s3.ya.Na.call(this);var a=this.getHandler(),b=this.ta();a.Ja(this.mBa,"action",this.AZc);a.Ja(b,"mouseover",this.sQd);a.Ja(b,"mouseout",this.kjd);a.Ja(b,"mouseup",this.$b);a.Ja(b,"keypress",this.Qb);a.Ja(b,"keydown",this.mL)};q.AZc=function(a){var b=this.Ab;this.Ab=a=a.target.kc();b!=a&&PUd(this)};q.sQd=function(a){LUd(a,!0)};q.kjd=function(a){LUd(a,!1)};var LUd=function(a,b){var c=MUd(a);!c||a.relatedTarget&&Oc(c,a.relatedTarget)||"true"==zUd(c,"selected")||NUd(c,b)};
IUd.prototype.$b=function(a){(a=MUd(a))&&OUd(this,a)};var OUd=function(a,b){for(var c=a.ta().childNodes,d=!1,f=1;f<c.length;f++){var h=c[f],k=h==b,m="true"==zUd(h,"selected");k!=m&&(qo(h,"selected",k),NUd(h,k),Sc(h,k),d=!0)}d&&PUd(a)},MUd=function(a){return Sn(a.target,"a-mz-Go-aa")?a.target.parentNode:Sn(a.target,"a-mz-Go")?a.target:null};IUd.prototype.Qb=function(a){var b=MUd(a);return b?13==a.keyCode||32==a.keyCode?(OUd(this,b),a.cancelBubble=!0,a.returnValue=!1):!0:!0};
IUd.prototype.mL=function(a){var b=a.keyCode;if(37==b||39==b){var c=MUd(a);if(c){var b=37==b,d=My.Bo();(b=b^d?c.previousSibling:c.nextSibling)&&Sn(b,"a-mz-Go")&&(Sc(b,!0),b.focus(),Sc(c,!1));a.preventDefault();a.stopPropagation()}}};
var NUd=function(a,b){a.style.opacity=b?1:.5;a.style.filter=b?"alpha(opacity=100)":"alpha(opacity=50)"},PUd=function(a){var b=a.ta().childNodes,c=null,d=null;if("true"!=zUd(b[1],"selected"))if("true"==zUd(b[2],"selected"))c="mono";else for(var f=3;f<b.length;f++)if("true"==zUd(b[f],"selected")){d=QUd[f-3];break}a.Oa(a.Ab,c,d)};
var x4=function(a,b,c){C.call(this,c);this.Sa=a;this.Bc=b;this.Ko=new kR;this.ib(this.Ko);this.Vb=!b.getQuery()||"image-search"!=b.Sa||b.Ra()&&"gis"!=b.Ra()?null:new IUd(Lp(this.Op,this),a,c);this.Qb=this.$b=this.Ab=this.Vk=this.Km=null;this.YY=!0;this.Oa=this.mL=this.Ag=null};t(x4,C);
var RUd=function(a){return"blog-search"==a.Bc.Sa||"book-search"==a.Bc.Sa||"image-search"==a.Bc.Sa||"video-search"==a.Bc.Sa||"web"==a.Bc.Sa},Q1e=function(a){a=a.Bc;return!!a.getOption("docTypesDropDown")||!a.getOption("mimeTypes")&&"all"==a.Sa},SUd=function(a,b){a.Ea();var c=a.Bc,d=c.getOption("site"),f=c.getOption("comboTypes");f&&qa(f)&&(f=f.split(","));d=TUd(a,c.Ra(),d);if("image-search"!=c.Sa||!f||2>f.length)return d;Qn(b,"a-pb-lv");a.Qb=new Fp(d,null,Hp.ia());a.Qb.Exa=!0;v(f,function(a){var b=
new yp(TUd(this,a));b.$b("a-pb-A");this.Qb.dg(b);this.getHandler().Ja(b,"action",function(){var b=c.clone();BN(b,"type",a);this.Sa.Sa.lJ();this.Sa.Mh.On(b)})},a);a.Qb.$b("a-pb-lv-Qa");a.Qb.Pa();return a.Qb.ta()},TUd=function(a,b,c){var d="a-n-gq-Cd",f="Google search images";switch(b){case "getty":d="a-pb-HB-D";f="Stock images";break;case "life":d="a-n-hq-J-cq",f="Life images"}c&&-1!=c.indexOf("youtube.com")&&(d="a-n-tb",f=void 0);a=a.Ea().Pa("span",d+" d-k-l a-pb-N-sc");"getty"==b&&Rc(a,"Stock");
f&&ey(a,f);return a};x4.prototype.lp=function(a){this.Vk=wg(xg(E.ia(),"opd")).mL(this.Sa,Lp(this.mjd,this),this.Bc,My.Bo(),this.Km,a);this.Vk.OUa(this.Ab)};var S1e=function(a){qo(a,"autocomplete","list");qo(a,"haspopup",!0)};
x4.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-pb"+(RUd(this)?" a-pb-Cd":""));this.Kb(b);var c=this.Bc,d=c.getQuery(),d=this.Ab=a.Pa("input",{type:"text","class":"a-pb-N-z b-hb",value:d?d:""});qo(d,"label","Search terms");var f=new Ot(p4("//ssl.gstatic.com/docs/picker/images/search-black.png"),a);f.Pa();f.zF=!0;f.Sn("Search");this.$b=f;var h=null;RUd(this)?(h=SUd(this,b),h=a.Pa("div","a-pb-N-Cd",h,d,f.ta())):Q1e(this)?(Pn(d,"a-pb-C6-g3",!0),h=a.Pa("div","a-pb-N-Cd",d),this.mL=Ejc(a.Pa("div",
"a-n-ia-En-Rf-Ev"),a),this.mL.render(h),Pn(this.mL.ta(),"a-y-r-c",!0),Fw(this.mL.ta(),"Advanced Search options"),qo(this.mL.ta(),"haspopup",!0),this.Ag=new u4(this.Sa,d),this.ib(this.Ag,!1),pw(this.Ag,this.mL.ta(),7,6),this.Ag.render(this.Sa.rd().fG()),h.appendChild(f.ta())):h=a.Pa("div","a-pb-N",d,f.ta());b.appendChild(h);FQd(this.Bc.Sa)&&"all"!=this.Bc.Sa&&(this.Oa=new M1e(this.Bc,this.Sa,d,Q1e(this),a),this.ib(this.Oa,!1),this.Oa.Pa(),f=this.Oa.ta(),Dc(f,d),qo(d,"describedby",f.id));switch(c.Sa){case "all":case "documents":case "drawings":case "folders":case "forms":case "pdfs":case "presentations":case "spreadsheets":d.setAttribute("autocomplete",
"off");S1e(d);Ag(E.ia(),"opd",Lp(this.lp,this,!1));break;case "image-search":var k=!1;this.Sa.mL.addCallback(function(a){k=a.e$a});k&&na(c.getOption("containingCosmoId"))&&(d.setAttribute("autocomplete","off"),S1e(d),Ag(E.ia(),"opd",Lp(this.lp,this,k)))}(f=this.Vb)&&f.render(b);c.getOption("license")&&(new GUd(c,a)).render(b);this.Ko.yb(d)};
x4.prototype.Na=function(){x4.ya.Na.call(this);this.$b.Na();this.Qb&&this.Qb.Na();var a=this.getHandler();a.Ja(this.$b,"action",this.cUb).Ja(this.Ab,"keypress",this.njd).Ja(this.Ab,"focus",Lp(function(){this.dispatchEvent("Fk")},this)).Ja(this.Ab,"blur",Lp(function(){this.dispatchEvent("Gk")},this));this.mL&&a.Ja(this.mL,"action",this.Db);this.Oa&&T1e(this);var b=new rw(this.Ab);x(this,b);a.Ja(b,"input",this.ZIc)};x4.prototype.Db=function(){this.Ag.rz(this.mL.ta(),7,6)};
var T1e=function(a){var b=My.Bo();Pd(a.Ab,"width","");Pd(a.Ab,b?"padding-right":"padding-left","");var c=ze(a.Ab).width,d=ye(a.Ab),d=b?d.right:d.left,f=xe(a.Oa.ta()).width;me(a.Ab,c>f?c-f:0);Pd(a.Ab,b?"padding-right":"padding-left",f+d+"px")};q=x4.prototype;q.isEmpty=function(){return!this.Ab.value};q.ZIc=function(){var a=Ia(this.Ab.value),b=this.$b,c=b.getStyle();a&&2!=c?b.zf(2):a||0==c||(b.zf(0),b.setContent(p4("//ssl.gstatic.com/docs/picker/images/search-black.png")));this.dispatchEvent(new VUd(a))};
q.njd=function(a){if(13==a.keyCode)return E1e(this.Bc)||this.cUb(),a.preventDefault(),a.stopPropagation(),!1};q.cUb=function(){var a=Ia(this.Ab.value);a!=(this.Bc.getQuery()||"")&&(this.Ab.value="",a?(this.$b.zf(0),this.$b.setContent(p4("//ssl.gstatic.com/docs/picker/images/search-black.png")),UUd(this,a)):this.Op(null,null,null))};q.mjd=function(){UUd(this,Ia(this.Ab.value))};var UUd=function(a,b){var c=a.Bc.clone();o4(c,b);l4f(c,"sortKey");a.YY&&a.Sa.Sa.lJ();a.Sa.Mh.On(c)};
x4.prototype.Op=function(a,b,c){var d=this.Bc.clone();o4(d,Ia(this.Ab.value));l4f(d,"sortKey");BN(d,"imgtype",a);BN(d,"imgc",b);BN(d,"imgcolor",c);this.Sa.Sa.lJ();this.Sa.Mh.On(d)};x4.prototype.setActive=function(a){a&&Ia(this.Ab.value)!=this.Bc.getQuery()&&(this.Ab.value=this.Bc.getQuery()||"",this.dispatchEvent(new VUd(Ia(this.Ab.value))))};x4.prototype.focus=function(){try{return this.Ab.focus(),!0}catch(a){return!1}}; x4.prototype.qb=function(){y(this.Bc);y(this.Vk);y(this.Ab);y(this.$b);y(this.Vb);y(this.Qb);x4.ya.qb.call(this)};var VUd=function(a){A.call(this,"Pk");this.Sa=a};t(VUd,A);VUd.prototype.Ns=function(){return this.Sa};
var MLe=function(a,b){if(ia(b)){switch(b){case 3:return"Too many items selected. Please deselect one or more.";case 5:return"Maximum file size exceeded. Please deselect one or more.";case 4:return"Maximum file size exceeded.";case 1:return"Invalid file type selected.";case 2:return JC(a.ef(),Xee)}return"An error occurred. Please try again."}return""},Lxg=function(a){var b=a.rd(),c=b.nA,d=b.o9,b=b.iu,f=[];a=a.Sa;var h=a.fjb();b&&a.Vjb()>b&&f.push(5);c&&h>c&&f.push(3);d&&h<d&&f.push(2);return f};
var Mlg=function(a,b,c){s3.call(this,a,c);this.Bc=b;this.mL=new x4(a,b,c);x(this,this.mL);this.$b=this.Qb=this.Ab=null};t(Mlg,s3);
Mlg.prototype.Pa=function(){var a=this.Ea().Pa("div","a-F");this.Kb(a);this.mL.Km=a;this.ib(this.mL,!0);this.getContext().rd().zF&&FQd(this.Bc.Sa)&&"docs-videos"!=this.Bc.Sa&&!this.Bc.getOption("mode")&&(a=Fcf(this.Bc,this.getContext())?"grid":"list",this.Ab=new RW([t9e(this,"List view","list","a-n-Hb-Ra"),t9e(this,"Grid view","grid","a-n-Te-Ra")],a,this.Ea(),new UV(!0)),x(this,this.Ab),this.ib(this.Ab,!0),Qn(this.Ab.ta(),"a-gc-Ra-kI"));a=this.getContext().rd();a.Km&&a.yH&&FQd(this.Bc.Sa)&&(a=this.Ea(),
this.$b=new C7e(this.getContext(),this.Bc,!1,a),x(this,this.$b),this.$b.render(this.ta()),this.Qb=new Fp(a.Pa("div","a-n-Bpn8Yb a-Ye-r-c-B"),this.$b,Hp.ia(),a),x(this,this.Qb),this.ib(this.Qb,!0),Fw(this.Qb.ta(),"Sort options"),Pn(this.Qb.ta(),"a-Ye-r-c",!0),this.Ab&&Qn(this.Ab.ta(),"a-gc-Ra-kI-lE-gc-Bpn8Yb"))};Mlg.prototype.Na=function(){Mlg.ya.Na.call(this);this.Ab&&this.getHandler().Ja(this.Ab,"change",Lp(this.Oa,this))};Mlg.prototype.Oa=function(){var a="grid"==this.Ab.mL.$e().getValue();this.getContext().mL.addCallback(function(b){b.M_b.mL(!a)})};
var t9e=function(a,b,c,d){a=a.Ea();d=a.Pa("div",{"class":d+" a-gc-Ra-kI-c"},"\u00a0");d=new Ot([d],a);d.Wj(c);d.xg(1);d.Pa();d.zF=!0;d.Sn(b);return d};Mlg.prototype.setActive=function(a,b){this.mL.setActive(a,b);this.Ab&&t0d(this.Ab,Fcf(this.Bc,this.getContext())?"grid":"list")};Mlg.prototype.focus=function(){return this.mL.focus()};
var y4=function(a,b,c,d,f){n4.call(this,a,b.or(),f);this.Bc=b.clone();var h;h=this.Bc;if("photos"==h.Sa){var k=h.Ra();h="getty"==k?!0:!k&&!h.getOption("parent")&&!h.getOption("ids")}else h=h.getOption("ids")?!1:"blog-search"==h.Sa||"book-search"==h.Sa||"all"==h.Sa||"docs-images"==h.Sa||"docs-images-and-videos"==h.Sa||"docs-videos"==h.Sa||"documents"==h.Sa||"drawings"==h.Sa||"folders"==h.Sa||"forms"==h.Sa||"image-search"==h.Sa||"pdfs"==h.Sa||"people"==h.Sa||"presentations"==h.Sa||"spreadsheets"==h.Sa||
"sites"==h.Sa||"tables"==h.Sa||"video-search"==h.Sa||"video-albums"==h.Sa||"web"==h.Sa;(this.Ag=h?new Mlg(a,b,f):null)&&this.ib(this.Ag);this.Pha=this.Brb(d,c,f);this.Mna={};this.$b=new TC(this.x6a,400,this);this.sFa=this.Vk=this.Sx=this.YY=this.ona=this.mL=null;this.Dma="";this.qSa=this.iu=!1;this.ana=null};t(y4,n4);
y4.prototype.Pa=function(){var a=this.Ea(),b=this.Pha;b.Pa();this.mL||this.Ysa();var b=a.Pa("div","a-B-Z",b.ta()),c=a.Pa("div","a-B a-Lc",b);this.Kb(c);if(c=this.Ag)c.Pa(),a.Ep(c.ta(),b);this.setVisible(this.xw())};y4.prototype.Ysa=function(){this.mL=new V0d(this.Ea());x(this,this.mL);this.mL.Pa()};
y4.prototype.Na=function(){this.Vk=this.Vk||BMc(this.ta());y4.ya.Na.call(this);this.mL&&this.ta().parentNode.appendChild(this.mL.ta());E1e(this.Bc)&&(this.sFa=new Un(this.$yb,200,this),this.Ag&&WUd(this,this.Ag.mL));var a=this.Pha;a.Na();this.getHandler().Ja(a,["check","uncheck"],this.m2a).Ja(a,"open",this.DAa).Ja(a,"dblclick",this.cD);this.Vk&&this.getHandler().Ja(this.Vk,"scroll",Lp(this.$b.Il,this.$b))};
var WUd=function(a,b){a.getHandler().Ja(b,"Pk",function(a){((this.Dma=a.Ns())||this.Bc.getQuery())&&this.Dma!=this.Bc.getQuery()&&(this.qSa=!0,this.sFa.start())})};q=y4.prototype;q.Ib=function(){y4.ya.Ib.call(this);this.Pha.Ib()};q.Gya=function(){var a=this.Ea();try{if(this.Ag&&a.contains(this.Ag.ta(),yba(a.Sa)))return!1}catch(b){}return!0};
q.kt=function(){var a=this.Bc;return this.Gya()?!this.Ag||a.getQuery()||"web"!=a.Sa&&"blog-search"!=a.Sa&&"book-search"!=a.Sa&&"image-search"!=a.Sa&&"video-search"!=a.Sa?this.iu=this.getContainer().kt():(this.iu=!0,Uf(function(){this.Ag.focus()},0,this),!0):this.iu=!0};q.setActive=function(a,b){y4.ya.setActive.call(this,a,b);this.Ag&&this.Ag.setActive(a,b);a&&(this.qSa&&(this.Dma="",this.$yb()),this.qSa=!1)};
q.setVisible=function(a){var b=this.ta();b.style.top=a?"":"-10000px";b.style.left=a?"":"-10000px";b.style.right=a?"":"9500px";this.Ag&&(b=this.Ag.mL,a&&b.Vb&&b.Vb.eb(b.Bc));xc&&Gf("7")};q.Gf=function(){return this.Bc};q.Brb=function(a,b,c){return new k4(a,b||D3.ia(),c)};q.getContainer=function(){return this.Pha};q.gJ=function(){return this.Mna};q.KYa=function(a){this.Mna=a};
q.Ik=function(a){this.Sx&&(Fc(this.Sx),delete this.Sx);this.ana&&(this.removeChild(this.ana,!0),delete this.ana);for(var b=this.gJ(),c={},d,f=0;f<a.length;f++)d=a[f].getId(),c[d]=b[d],c[d]&&c[d].y6a&&c[d].y6a(),delete b[d];this.KYa(c);U1e(this,b);this.Uga(a)};var U1e=function(a,b){var c=a.getContainer();Pb(b,function(a){a&&a.Ma&&(c.removeChild(a,!0),a.Ma())})};q=y4.prototype;q.Uga=function(a){this.getContainer().hb(!0);this.ta().scrollTop=0;this.Hr(a)};
q.zbb=function(a){var b=x5(this,a),c=this.getContext().Sa;if(b){var d=b.La();if(this.Rd().vC(a))b.update();else for(var f=this.bC(this.Rd().Ae()),h=0;h<f.length;h++){var k=f[h];if(k.getAttribute("oid")==d.getId()){Wb(this.gJ(),a);k.getId()in this.gJ()?(this.getContainer().removeChild(b,!0),b&&b.Ma&&b.Ma()):(Saa(this.gJ(),k.getId(),b),b.xZ(k.getId()),this.PX(b)&&b.Oz&&b.Oz(),b.update());c.Sf(d.getId())&&(c.WT([d.getId()],!1),c.WT([k.getId()],!0));break}}}};
q.Hr=function(a){var b=this.getContext(),c=b.Sa,d=this.gJ();v(a,function(a){var h=a.getId(),k=d[h]=d[h]||this.ED(a);oTf(a)||b.rd().gea(a.rI())||k.Bm(16,!1);this.Zba(k);k.Ld(c.Sf(h))},this);b.rd().kN("received")&&b.Ab.Sl(a,"received");this.lKa();this.iu||this.kt();a=Ge(this.getContainer());(0==a||this.PX(this.getContainer().Oh(a-1))&&this.Rd().yW())&&Uf(this.RD,0,this);this.dispatchEvent("dataAppended")};q.vB=function(a){y4.ya.vB.call(this,a);Z1e(this)};q.Zba=function(a){this.getContainer().ib(a,!a.Nb())};
q.jOa=function(a){var b=x5(this,a);b&&(this.Pha.removeChild(b,!0),b.Ma(),delete this.gJ()[a],this.lKa())};q.meb=function(a){this.mL&&this.mL.setVisible(a)};q.iO=function(a){y4.ya.iO.call(this,a);Z1e(this)};var Z1e=function(a){if(a.xw()&&a.getContext().rd().Op&&a.Rd()&&a.Rd().Hi()){var b=a.Gf().getOption("maxPrefetchCollections")||0;if(!(0>=b))for(var c=a.bC(a.Rd().Ae()),d=a.getContext().od,f=0,h=0;h<c.length&&f<b;h++)if(oTf(c[h])){f++;var k=$1e(a,c[h]).or();d.Rd(k).Qb||d.Vd(k,ka,ka,!0)}}};
y4.prototype.ED=function(a){var b=this.ona;b||(b=this.ona=new s4(this.getContext().rd().$b));b=new t4(this.getContext(),a,b,this.Ea());oTf(a)&&"recently-picked"!=this.Bc.Sa&&(b.Bm(64,!0),b.Bm(16,!1),Bo(b,64));return b};
y4.prototype.gR=function(){this.lp(dTd(this.Bc));if(("all"==this.Bc.Sa||"docs-images"==this.Bc.Sa||"docs-images-and-videos"==this.Bc.Sa||"docs-videos"==this.Bc.Sa)&&iWa(this.Bc.getOptions(),function(a,c){return"ownedByMe"==c?!1!==a:"includeFolders"==c?!0:null==a})){var a=this.getContext();a.mL.addCallback(Lp(function(b){b.Kkc&&this.ib(this.ana=new AUd(a,this.Ea()),!0)},this))}y4.ya.gR.call(this)};
y4.prototype.lp=function(a){var b=this.Ea();this.Sx||(this.getContainer().cb().appendChild(this.Sx=b.Pa("tr",null,b.Pa("td",null,this.YY=b.Pa("div","a-Lc-nc")))),po(this.YY,"status"),qo(this.YY,"live","assertive"));qa(a)?b.uq(this.YY,a):(b.hb(this.YY),this.YY.appendChild(a))};y4.prototype.iRa=function(a){var b=x5(this,a);b&&b.Ld(this.getContext().Sa.Sf(a))};var x5=function(a,b){return a.gJ()[b]};
y4.prototype.m2a=function(a){var b=a.target.La(),c=this.getContext(),b=b.getId(),d=c.Sa;if(d.Sf(b)!=("check"==a.type)){if(!d.HP(b,c.rd().$b?"cb":"cl"))return!1;(a=x5(this,b))&&TSd(a)}return!0};y4.prototype.DAa=function(a){a=a.target.La();a=$1e(this,a);this.getContext().Mh.On(a)};
var $1e=function(a,b){var c=a.Bc.clone();BN(c,"parent",b.getId());o4(c,null);c.Ab=a.Bc;"application/vnd.google-apps.rollupphotoalbum"==b.rI()?BN(c,"mode","rollupAlbum"):"rollupAlbum"==c.getOption("mode")&&BN(c,"mode",void 0);return c};q=y4.prototype;q.cD=function(a){a=a.target;if(xo(a,16)&&a.isEnabled()){a=a.La();var b=this.getContext(),c=b.Sa;c.Sf(a.getId())&&c.lJ();c.HP(a.getId(),"cl")&&(c=Lxg(b),gb(c)&&b.Ab.Sl([a]))}};
q.lKa=function(a){a=a||1;5<a||(this.Vk&&!this.Vk.offsetHeight?Uf(Lp(this.lKa,this,a+1),20):this.x6a())};q.x6a=function(){for(var a=this.getContainer(),b=Ge(a),c=this.Vna();c<b;c++){var d=a.Oh(c);d&&this.PX(d)&&d.Oz&&d.TGb&&!d.lp&&(d.Oz(),c==b-1&&this.RD())}};
q.Vna=function(){if(!this.Vk)return 0;for(var a=this.Vk,b=a.scrollTop+a.offsetHeight,c=this.getContainer(),d=0,f=Ge(c)-1;d<f;){var h=d+f>>1,k=c.Oh(h),k=k.ta();if(k.offsetTop+k.offsetHeight<a.scrollTop)d=h+1;else if(k.offsetTop>b)f=h-1;else{for(k=c.Oh(h-1);0<h&&k&&this.PX(k);)h--,k=c.Oh(h-1);return h}}return 0};
q.PX=function(a){if(!this.xw())return!1;if(!this.Vk)return!0;var b=this.Vk,c=b.scrollTop-b.offsetHeight,b=b.scrollTop+2*b.offsetHeight;a=a.ta();return a.offsetTop<b&&a.offsetTop+a.offsetHeight>=c};q.$yb=function(){o4(this.Bc,this.Dma);this.Eca(this.Bc.or());this.getContext().Mh.jUb(this.getContext().Mh.Hd(),this.Bc);this.RD(!0)};q.r2a=function(a){a.data.visible&&this.xw()&&(this.iu=!1);y4.ya.r2a.call(this,a);Z1e(this)};q.qb=function(){y4.ya.qb.call(this);this.Bc.Ma();this.Pha.Ma();this.ona=null};

G("sy882");I();
}catch(e){_DumpException(e)}
try{
H("sy885");var cVd=function(a,b,c){y3.call(this,a,"a-Cq-Cc","a-Cq-Bb","a-Cq-B","top",c);this.mL=b};t(cVd,y3);cVd.prototype.Pa=function(){cVd.ya.Pa.call(this);var a=this.Ab,b=this.Ea();a.appendChild(b.Pa("div","a-Cq",this.mL));this.setSize(20)};var dVd=function(a,b){return new cVd(a,"Upload problems?  We're doing maintenance, but things should be back to normal soon.",b)};
var z4=function(a,b,c,d){B3.call(this,a,b,c,d);this.YY=null};t(z4,B3);z4.prototype.Pa=function(){z4.ya.Pa.call(this);var a=this.Ea(),b=this.YY=a.Pa("table","a-Za-tS-E",a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td","a-Za-tS-E-Ws","Only select images that you have confirmed that you have the license to use."))));a.Hy(b,this.Ab.lastChild)};z4.prototype.update=function(){z4.ya.update.call(this);var a=this.YY;if(a){var b=this.getContext().We();On(a,!b.Aia())}}; z4.prototype.qb=function(){z4.ya.qb.call(this);this.YY=null};

G("sy885");I();
}catch(e){_DumpException(e)}
try{
KHb.prototype.file=g(312,function(){var a=new ag;this.mL.file(function(b){a.By(b)},Lp(function(b){a.jd(new Qbd(b,"getting file for "+this.Sa.fullPath))},this));return a});Wf.prototype.sra=g(12,function(){return qa(this.Qb)?this.Qb:String(this.Qb)});Wf.prototype.getAllResponseHeaders=g(11,function(){return this.Sa&&this.rl()?this.Sa.getAllResponseHeaders():""});yBb.prototype.getAllResponseHeaders=g(10,function(){return"content-type: "+this.Sa.contentType});
var $cd={DEFAULT:"default",E7b:"inqueue",vLd:"recovery",mac:"start",aTa:"transfer",nlb:"success",ERROR:"error",W8b:"partial-error",CANCEL:"cancel"},vMg=function(a){var b=new yKa;b.Sa=a;return b},gcd=function(a){switch(a){case "abort":return"Canceled";case "networkerror":return"Lost connection to server";case "ioerror":return"Unable to read file";case "securityerror":return"Security error";case "serverrejected":return"Server rejected";case "serverinvalidresponse":return"Server returned invalid response"; default:return"Unexpected error"}},hcd=function(a){switch(a){case 6:case 9:case 8:case 1:return"networkerror";case 2:return"ioerror";case 7:return"abort";case 5:return"exception";case 0:return"noerror";default:return"unknownerror"}};H("sy860");
for(var yMg=Array(256),zMg=0;256>zMg;zMg++)yMg[zMg]=Math.pow(zMg/255,1.6);var AMg=Array(24576),vU;for(vU=-8192;0>vU;++vU)AMg[8192+vU]=0;for(var BMg=1/8191;8191>=vU;++vU){var XMg=Math.pow(BMg*vU,.625);AMg[8192+vU]=1<=XMg?255:Math.round(255*XMg)}for(;16384>vU;++vU)AMg[8192+vU]=255;
var wcd=function(a){this.Qb=a;this.Sa={};this.mL={};this.Ab=null;this.Ba=new Hd;x(this,this.Ba);if(a=eVb("google-upload"))if(this.Ab=new yY(a))try{if(this.Sa=this.Ab.get("stats"))if(this.Sa instanceof Object)for(var b in this.Sa)if(this.Sa[b]instanceof Object){var c=this.Sa[b],d;for(d in c)c[d].t7||delete c[d]}else delete this.Sa[b];else this.Sa={};this.Sa?this.Ab.remove("stats"):this.Sa={}}catch(f){this.Sa={}}};t(wcd,kd);
var xcd=function(){this.t7=[];this.$ka=null},ycd=function(a,b,c,d,f,h){b&&c&&(d={time:h||Wa(),type:d},f&&(d.details=f),a.Sa[b]||(a.Sa[b]={}),a.Sa[b][c]||(a.Sa[b][c]=new xcd),a.Sa[b][c].t7.push(d))};
wcd.prototype.report=function(){if(!Ub(this.Sa))for(var a in this.Sa)if(!Ub(this.Sa[a])){var b=this.Sa[a],c=[],d=[],f=void 0;for(f in b)b[f].t7&&0<b[f].t7.length&&c.push({upload_id:f,events:b[f].t7,client_version:this.Qb}),b[f].$ka&&d.push(b[f].$ka);b={};0<c.length&&(b.upload_events=c);0<d.length&&(b.related_uploads=d);c=Rf(b);this.mL[a]=this.Sa[a];this.Sa[a]={};d=new Wf;this.Ba.Ja(d,"success",Lp(this.Oa,this,a));this.Ba.Ja(d,"error",Lp(this.$b,this,a));d.send(a,"POST",c)}};
var zcd=function(a,b){for(var c in b)a[c]?(a[c].t7=a[c].t7.concat(b[c].t7),b[c].$ka&&(a[c].$ka=b[c].$ka)):a[c]=b[c]};wcd.prototype.Oa=function(a){this.mL[a]={}};wcd.prototype.$b=function(a){zcd(this.mL[a],this.Sa[a]);this.Sa[a]=this.mL[a];this.mL[a]={}};wcd.prototype.clear=function(){this.Ab&&this.Ab.set("stats",{})};
var tY=function(a,b,c){A.call(this,a,c);this.file=b};t(tY,A);var Ybd=function(a,b,c){tY.call(this,"uploadmessagechanged",a,c);this.message=b};t(Ybd,tY);var Jcd=function(a){this.file=a};q=Jcd.prototype;q.yB=null;q.yR=null;q.xxa=null;q.UU=null;q.BPc=!1;q.state="default";var zY=function(a){Ld.call(this);this.Qb=a;this.Oa=this.Ag="";this.Ba=new Hd(this)};t(zY,Ld);q=zY.prototype;q.dispatchEvent=function(a){try{return zY.ya.dispatchEvent.call(this,a)}catch(b){}};q.getFile=function(){return this.Qb};q.Lq=function(){return this.Oa};q.send=function(a){this.Ag=a;this.mL(a)};q.yS=e(599);q.aQ=e(600);q.tWa=function(){throw Error("fg");};q.getHandler=function(){return this.Ba};q.qb=function(){zY.ya.qb.call(this);y(this.Ba)};
var Lcd=function(a,b){Ld.call(this);this.Ab=a.file;this.jg=a.yR;this.Qb=b;this.Oa=this.mL=this.Ag=this.$b=null;this.Sa=!1};t(Lcd,Ld);
Lcd.prototype.start=function(){if(!this.Sa){this.Sa=!0;var a=new Wf;ud(a,"complete",Lp(function(){if(this.Sa){if(308==a.getStatus()){var b=a.getResponseHeader("Range");this.$b=a.getResponseHeader("X-Range-MD5")||null;var c=a.Lq(),d=null,f=null;try{d=Qf(c).sessionStatus,f=d.externalFieldTransfers[0].formPostInfo||d.externalFieldTransfers[0].putInfo}catch(h){}if(b&&this.$b&&d&&f&&(b=/^bytes=(\d+)-(\d+)$/.exec(b))&&(this.Ag=Number(b[1]),this.mL=Number(b[2])+1,0==this.Ag&&0<this.mL)){this.jg.tWa(this.mL,
Lp(function(a){this.Sa&&(this.Oa=a,this.Oa==this.$b?(this.Ab.UYa(f.url||this.Qb),this.Ab.JYa(f.cross_domain_url),this.Ab.bxa(this.mL),this.Ab.oxa(d.upload_id||wf(this.Qb,"upload_id")),this.Ab.gxa(d.correlation_id),this.Sa=!1,this.dispatchEvent("success")):(this.Sa=!1,this.dispatchEvent("error_hashing")))},this));this.dispatchEvent("hashing");return}}this.Sa=!1;this.dispatchEvent("error_querying")}},this));a.send(this.Qb,"POST","",{"X-HTTP-Method-Override":"PUT","Content-Range":"bytes */"+this.Ab.dp}); this.dispatchEvent("querying")}};Lcd.prototype.cancel=function(){this.Sa=!1;this.dispatchEvent("canceled")};
var Mcd=function(a,b){Ld.call(this);this.mL=a;this.Sb="INITIALIZING";this.Ab=this.Qb=this.$b=null;this.Oa=b;this.Ba=new Hd(this)};t(Mcd,Ld);q=Mcd.prototype;q.gob=!1;q.getFile=function(){return this.mL};q.setState=function(a){this.Sb=a};q.getState=function(){return this.Sb};q.dG=function(){return this.Qb};
q.start=function(a){var b=Lp(this.Ag,this),c=Lp(this.Sa,this),d=new Wf;d.Vb=!0;this.Ba.Ja(d,"success",b).Ja(d,"error",c);var b={protocolVersion:"0.8",createSessionRequest:{fields:[]}},c=this.getFile(),f=b.createSessionRequest,h={external:{name:"file",filename:c.uaa()}},k;switch(this.Oa){case 0:k="formPost";break;case 1:k="put";break;default:k="formPost"}h.external[k]={};k=c.dp;null==k||c.e4a||(h.external.size=k);f.fields.push(h);Qcd(b,c.Oi());try{c={};Zb(c,this.getFile().jg);Zb(c,Ncd(this.Ab));var m=
Rf(b);d.send(a,"POST",m,c)}catch(p){throw p;}};var Ncd=function(a){var b={};b["X-GUploader-Client-Info"]="mechanism="+a+"; clientVersion=80845498";return b};
Mcd.prototype.Ag=function(a){try{var b=Qf(a.target.Lq());if(void 0!=b.sessionStatus){var c=b.sessionStatus,d;switch(this.Oa){case 0:d="formPostInfo";break;case 1:d="putInfo";break;default:d="formPostInfo"}this.setState(c.state);var f=c.upload_id,h=c.correlation_id,k=c.externalFieldTransfers[0],m=k[d].url;this.gob&&(m=Bf(Jf(m),"").Zy("").toString());var p=k[d].cross_domain_url,u=k.content_type,z=this.getFile();z.UYa(m);z.JYa(p);z.oxa(f);z.gxa(h);z.M6a(u);z.dNb(a.target.getResponseHeader("X-GUploader-Stats-URL"));
z.TMb(a.target.getAllResponseHeaders());this.dispatchEvent("startsuccess",a.target)}else if(void 0!=b.errorMessage){var F=b.errorMessage,f=F.upload_id,z=this.getFile();z.oxa(f);Pcd(this,F);this.Sa(a,"serverrejected")}else this.Sa(a,"serverinvalidresponse")}catch(M){this.Sa(a,"serverinvalidresponse")}};
var Ocd=function(a,b){var c=Qf(b);void 0!=c.sessionStatus?(a.setState(c.sessionStatus.state),Pcd(a,c.sessionStatus)):void 0!=c.errorMessage&&(a.setState("FAILED"),Pcd(a,c.errorMessage))},Pcd=function(a,b){var c=b.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"];a.$b=c.completionInfo.status;a.Qb=c.completionInfo.customerSpecificInfo};Mcd.prototype.Sa=function(a,b,c){this.setState("FAILED");b||(b=hcd(a.target.D_()),c=a.target.sra());this.mL.fq(b,c);this.dispatchEvent("starterror",a.target)};
Mcd.prototype.dispatchEvent=function(a,b){qa(a)?a=new Rcd(a,this,b):a.Gp=b;try{return Mcd.ya.dispatchEvent.call(this,a)}catch(c){}};var Qcd=function(a,b){Ve(b,function(b,d){a.createSessionRequest.fields.push({inlined:{name:d,content:b,contentType:"text/plain"}})})};Mcd.prototype.toString=function(){return"Session(state:"+this.getState()+")"};Mcd.prototype.qb=function(){Mcd.ya.qb.call(this);y(this.Ba)};var Rcd=function(a,b,c){A.call(this,a,b);this.Gp=c||null};t(Rcd,A);
var EY=function(){Ld.call(this);this.Sa=[];this.jg=new Ze;this.nA={};this.Km={};this.Xb={};this.Ag=new Rh;this.Ba=new Hd(this);x(this,this.Ba);this.$b=new wcd("80845498");x(this,this.$b);try{this.Ba.Ja(window,"unload",this.zMc)}catch(a){}this.$b.report()};t(EY,Ld);q=EY.prototype;q.d8=!0;q.pCa=!1;q.jmd=wa(function(){return jg(!0)});q.h8="";q.Jpa=0;q.H6a=1;q.p8=!0;q.kX=!0;q.onb=!1;q.doa=!1;q.roa=!1;var Scd=function(a,b){a.H6a=Math.max(1,b);Tcd(a)};q=EY.prototype;q.L1=e(601);q.cya=e(602);
q.getHandler=function(){return this.Ba};q.dispatchEvent=function(a){try{return EY.ya.dispatchEvent.call(this,a)}catch(b){}};q.getFile=function(a){return(a=this.jg.get(a))?a.file:null};var GY=function(a,b){var c=a.jg.get(b.getId());c||(c=a.QWa(b),a.jg.set(b.getId(),c));return c};q=EY.prototype;q.O$=function(a){this.Ag.contains(a)||this.zx(a)||"default"!=HY(this,a)||("undefined"!=typeof xY&&a instanceof xY||Sh(this.Ag,a),IY(this,a,"inqueue"),Tcd(this))};q.zx=function(a){return GY(this,a).yB};
q.Qda=function(a,b){switch(HY(this,a)){case "success":case "error":case "cancel":return}var c=GY(this,a).yR,d=this.zx(a),f=GY(this,a).xxa,h=Wa(),k=b||!1;d&&this.Ba.nb(d,"startsuccess",this.zMb,!1,this);c&&(c.abort(),GY(this,a).yR=null,k||(c=a.i8)&&(new Wf).send(c,"DELETE"));f&&(f.cancel(),GY(this,a).xxa=null);this.Ag.remove(a);Xcd(this,a,"cancel");Ycd(this,a,h);GY(this,a).yB=null;a.fq("abort",void 0);IY(this,a,"cancel");if("undefined"!=typeof xY&&a instanceof xY)for(f=a.S2,h=0;h<f.length;h++)this.Qda(f[h],
k)};q.hW=function(){return this.Sa.length};q.tca=function(a){if(!a.cQ())return!1;var b=GY(this,a);y(b.yB);b.yB=null;y(b.yR);b.yR=null;y(b.xxa);b.xxa=null;b.state="default";a.L6a();this.O$(a);return!0};var Zcd=function(a){v(sb(a.Sa),function(a){switch(HY(this,a)){case "default":case "success":case "partial-error":case "error":case "cancel":this.Tu(a)}},a)};
EY.prototype.dE=function(a){var b=a||!1;v(sb(this.Sa),function(a){switch(HY(this,a)){case "default":case "inqueue":this.Qda(a,b)}},this);v(sb(this.Sa),function(a){this.Qda(a,b)},this)};
var IY=function(a,b,c){var d=HY(a,b);if(c!=d&&Tb($cd,c)){GY(a,b).state=c;b.GMb(a.jra()&&!("undefined"!=typeof xY&&b instanceof xY)&&("error"==c||"cancel"==c));var f="";if("error"==c||"cancel"==c)f=gcd(b.D_());a.dispatchEvent(new Ybd(b,f));a.dispatchEvent(new tY("uploadstatechanged",b));add(d)&&!add(c)&&(b.CYa(void 0),a.Jpa--,a.QKa())}},HY=function(a,b){return GY(a,b).state};q=EY.prototype;q.reset=function(){v(sb(this.Sa),this.Tu,this)};q.$$=function(){return this.Ag.isEmpty()&&0==this.Jpa};
q.o4a=e(603);q.JI=function(){return!1};q.Jaa=e(604);q.d5a=e(605);q.VNa=e(607);q.Lt=function(){return sb(this.Sa)};q.Tu=function(a){this.Qda(a);this.jg.remove(a.getId());mb(this.Sa,a);this.dispatchEvent(new tY("fileremoved",a))};q.Lr=function(){};q.VM=function(){};q.lza=function(){return!1};q.W4a=e(609);var add=function(a){return eb(["recovery","start","transfer"],a)};q=EY.prototype;q.sxa=e(608);q.QWa=function(a){return new Jcd(a)};
q.QKa=function(){this.$$()&&this.dispatchEvent("allfilescompleted");if(!(this.Jpa>=this.H6a||this.Ag.isEmpty())){if(Ea(this.h8))throw Error("hg");var a=oo(this.Ag);if(!("undefined"!=typeof xY&&a instanceof xY)){this.Jpa++;if(this.Qb){var b=this.h8+":"+a.Eaa(),c=null,d=null;try{d=(c=this.Qb.p$(b))?Ccd(c):void 0}catch(f){}if(c&&qa(d)){var h=d;if(b=wf(d,"upload_id")){cg(this.jmd(b),function(b){b?bdd(this,a,h):this.yD(a)},function(){this.yD(a)},this);return}}}this.yD(a)}}};
q.yD=function(a){var b=new Mcd(a,this.z0a());b.Ab=this.poa();this.roa&&(b.gob=!0);this.Ba.Ja(b,"startsuccess",this.zMb).Ja(b,"starterror",this.WYc);GY(this,a).yB=b;var c=a.c2();c&&b.setState("OPEN");this.dispatchEvent(new tY("filesessioncreated",a,this));c?A0e(this,a,c):(b.start(this.h8),IY(this,a,"start"))};q.W8=function(a){return new zY(a)};
q.j8a=function(a){a=a.target;var b=a.getFile(),c=this.zx(b),d=Wa();try{Ocd(c,a.Lq());var f=c.getState(),h=c.$b;"FINALIZED"!=f||"SUCCESS"!=h&&"QUEUED"!=h?(b.fq("serverrejected",void 0),IY(this,b,"error")):IY(this,b,"success")}catch(k){b.fq("serverinvalidresponse",void 0),IY(this,b,"error")}this.Qb&&(this.Qb.remove(this.h8+":"+b.Eaa()),this.Qb instanceof Ecd&&"success"==HY(this,b)&&Fcd(this.Qb));Xcd(this,b,"success");Ycd(this,b,d)};q.LTa=e(610);q.jra=function(){return!1};q.z0a=function(){return 0};
q.zMc=function(){Zcd(this);for(var a=0;a<this.Sa.length;a++){var b=this.Sa[a];b&&b.Yla&&b.Cu()&&ycd(this.$b,b.Yla,b.Cu(),"unload","",Wa())}t:if(a=this.$b,a.Ab){b=null;try{b=a.Ab.get("stats")}catch(c){break t}b||(b={});for(var d in a.mL){var f=b[d]||{};zcd(f,a.mL[d]);b[d]=f}for(d in a.Sa)f=b[d]||{},zcd(f,a.Sa[d]),b[d]=f;a.Ab.set("stats",b);a.mL={};a.Sa={}}};
var Tcd=function(a){for(;!(a.Jpa>=a.H6a||a.Ag.isEmpty());)a.QKa()},bdd=function(a,b,c){var d=GY(a,b);d.yR||(d.yR=a.W8(b));c=new Lcd(d,c);a.Ba.Ja(c,"success",Lp(a.yD,a,b)).Ja(c,"error_querying",Lp(a.yD,a,b)).Ja(c,"error_hashing",Lp(a.yD,a,b)).Ja(c,"hashing",function(){a.dispatchEvent(new tY("filehashingstarted",b,a))});d.xxa=c;c.start();IY(a,b,"recovery")},A0e=function(a,b,c){if("abort"!=b.D_()){if(a.Qb){var d=a.h8+":"+b.Eaa();try{a.Qb.set(d,b.i8,Wa()+864E6)}catch(f){}}d=GY(a,b);d.yR||(d.yR=a.W8(b));
d=d.yR;IY(a,b,"transfer");a.Ba.Ja(d,"success",a.j8a).Ja(d,"error",a.FZc).Ja(d,"progress",a.Uec).Ja(d,"backoff",a.EZc);if(!a.Km[b.getId()]){var h=b.Cu(),k=[];a.Xb[h]=Wa();for(var m=0;m<a.Sa.length;m++){var p=a.Sa[m];p&&!a.Km[p.getId()]&&(a.Km[p.getId()]=h,k.push(p))}a.nA[h]=k}Xcd(a,b,"select",""+(b.dob||""),b.Ag);Xcd(a,b,"start");a.dispatchEvent(new tY("fileiocreated",b,a));d.send(c)}},Xcd=function(a,b,c,d,f){f=f||Wa();var h=b.Yla;b=b.Cu();h&&b&&(ycd(a.$b,h,b,c,d,f),a.$b.report())},Ycd=function(a,
b,c){var d=a.Km[b.getId()];if(d){var f=a.nA[d];if(!(2>f.length||f[f.length-1]!=b)){b=f[0].Yla;var h=0;if(b){var k=[],m;for(m in f)null!=f[m]&&null!=f[m].Cu()&&(k.push(f[m].Cu()),h+=f[m].dp);f=a.$b;c=parseInt(c-a.Xb[d],10);d=h;!k||1>=k.length||(h=k[0],k={upload_id:k},c&&(k.latency_ms=c),d&&(k.total_size=d),f.Sa[b]||(f.Sa[b]={}),f.Sa[b][h]||(f.Sa[b][h]=new xcd),f.Sa[b][h].$ka=k);a.$b.report()}}}};q=EY.prototype;
q.zMb=function(a){a=a.target.getFile();var b=a.c2();if(b)A0e(this,a,b);else throw Error("ig`"+a);};q.WYc=function(a){a=a.target.getFile();IY(this,a,"error")};q.Uec=function(a){a=a.target.getFile();this.dispatchEvent(new tY("uploadprogress",a))};q.FZc=function(a){a=a.target;var b=a.getFile(),c=Wa(),d=this.zx(b);try{Ocd(d,a.Lq())}catch(f){}IY(this,b,"error");Xcd(this,b,"error",b.F5a,Wa());Ycd(this,b,c);this.Qb&&this.Qb.remove(this.h8+":"+b.Eaa())}; q.EZc=function(a){a=a.target.getFile();this.dispatchEvent(new tY("uploadbackoff",a))};
var jdd,YMg=S4a("static/uploaderapi.swf");jdd=vMg(Ylg(YMg));var idd=new Ze;var QY=function(){};QY.prototype.mL=90;QY.prototype.Ab=!0;QY.prototype.tf=function(){return this.Ed};QY.prototype.setSize=function(a,b){if(this.Sa)throw Error();this.Ed=sa(a)?new Kb(a,b||a):a;return this};
G("sy860");I();
}catch(e){_DumpException(e)}
try{
H("sy865");
G("sy865");I();
}catch(e){_DumpException(e)}
try{
H("sy424");var nK=function(a,b,c,d,f){function h(a){a&&(a.tabIndex=0,po(a,"tab"),Qn(a,"d-Jd-Nb"),a&&k.YY.Ja(a,"click",k.Km),a&&k.Ag.Ja(a,"keydown",k.Ko))}Ld.call(this);this.Kf=f||jc();this.Ab=this.Kf.ta(a)||null;this.$b=this.Kf.ta(d||null);this.Qb=(this.jg=ta(b)?b:null)||!b?null:this.Kf.ta(b);this.mL=1==c;this.Ag=new Hd(this);this.YY=new Hd(this);var k=this;h(this.Ab);h(this.$b);this.uba(this.mL)};t(nK,Ld);q=nK.prototype;q.Xnb=!0;q.itb=!0;q.qb=function(){nK.ya.qb.call(this);y(this.Ag);y(this.YY)};q.cb=function(){return this.Qb};
q.expand=function(){this.uba(!0)};q.collapse=function(){this.uba(!1)};q.uba=function(a){this.Qb?On(this.Qb,a):a&&this.jg&&(this.Qb=this.jg());this.Qb&&Qn(this.Qb,"d-Jd-B");this.$b?(On(this.Ab,!a),On(this.$b,a)):SHb(this,a);this.mL=a;this.dispatchEvent(new THb("toggle",this,this.mL))};q.Zk=function(){return this.mL};var SHb=function(a,b){a.Ab&&(Pn(a.Ab,"d-Jd-gu",b),Pn(a.Ab,"d-Jd-Fl",!b),qo(a.Ab,"expanded",b))};
nK.prototype.Ko=function(a){if(13==a.keyCode||32==a.keyCode)this.uba(!this.mL),this.dispatchEvent(new A("action",this)),a.preventDefault(),a.stopPropagation()};nK.prototype.Km=function(){this.uba(!this.mL);this.dispatchEvent(new A("action",this))};var THb=function(a,b,c){A.call(this,a,b);this.cga=c};t(THb,A);

G("sy424");I();
}catch(e){_DumpException(e)}
try{
H("sy654");
G("sy654");I();
}catch(e){_DumpException(e)}
try{
H("sy650");
G("sy650");I();
}catch(e){_DumpException(e)}
try{
H("sy657");
G("sy657");I();
}catch(e){_DumpException(e)}
try{
H("sy666");
G("sy666");I();
}catch(e){_DumpException(e)}
try{
H("sy667");
G("sy667");I();
}catch(e){_DumpException(e)}
try{
H("sy668");
G("sy668");I();
}catch(e){_DumpException(e)}
try{
var Dkg=function(a,b){var c={},d;for(d in b)c[d]=lh(a,b[d]);return c};H("sy815");var mCc=function(a,b){kd.call(this);this.Fp=a;this.Bb=b;this.Sa=new Un(Lp(this.vsc,this),0,this)};t(mCc,kd);q=mCc.prototype;q.Ura=0;q.vcb=0;q.qb=function(){this.Sa.Ma();delete this.Fp;delete this.Bb;mCc.ya.qb.call(this)};q.start=function(a,b){this.stop();var c=b||0;this.Ura=Math.max(a||0,0);this.vcb=0>c?-1:Wa()+c;this.Sa.start(0>c?this.Ura:Math.min(this.Ura,c))};q.stop=function(){this.Sa.stop()};q.Ad=function(){return this.Sa.Ad()}; q.vsc=function(){if(!this.Fp.call(this.Bb))if(0>this.vcb)this.Sa.start(this.Ura);else{var a=this.vcb-Wa();0>=a||this.Sa.start(Math.min(this.Ura,a))}};

G("sy815");I();
}catch(e){_DumpException(e)}
try{
H("sy878");var e0=function(){};t(e0,Eo);la(e0);e0.prototype.Pa=function(a){return a.Ea().Pa("div",this.qr(a).join(" ")+" d-k-l","\u00a0")};e0.prototype.yb=function(a,b){b=e0.ya.yb.call(this,a,b);Qn(b,"d-k-l");return b};e0.prototype.Pc=function(){return"d-F-dd"};var f0=function(){this.Sa="toolbar"};t(f0,Go);la(f0);f0.prototype.hra=function(a){return"HR"==a.tagName?new Fo(e0.ia()):f0.ya.hra.call(this,a)};f0.prototype.Pc=function(){return"d-F"};f0.prototype.Fxb=function(){return"horizontal"};var std=function(a,b,c){Ho.call(this,b,a||f0.ia(),c)};t(std,Ho);std.prototype.$Ga=function(a){std.ya.$Ga.call(this,a);this.VS||yoa(this)};var ttd=function(){};t(ttd,Dp);la(ttd);ttd.prototype.Pc=function(){return"d-F-c"};var utd=function(a,b,c){vp.call(this,a,b||ttd.ia(),c)};t(utd,vp);uo("d-F-c",function(){return new utd(null)});
G("sy878");I();
}catch(e){_DumpException(e)}
try{
H("sy871");var zid=new Kb(480,360),ykd=new Kb(320,240);var Q3=function(){F3.call(this,"a-J-e")};t(Q3,F3);la(Q3);
Q3.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d,f;c.Ii?f=b.Pa("div","a-J-e-Tc"):(f=b.Pa("div","a-J-e-cj"),xc&&!Gf(9)||qe(f,0));le(f,new Kb(360,270));var h,k,m,p,u,z=b.Pa("div",this.qr(a).join(" ")+" d-k-l",b.Pa("div","d-k-l a-Ca-v-e-B",h=b.Pa("div","a-n-ab-z-ib-zf"),u=b.Pa("div","a-Ca-zc",b.Pa("img","a-Ca-zc-W")),m=b.Pa("div","a-J-e-qa",b.Pa("div",{"class":"a-J-e-qa-B",id:"imageContent"+va(a)},f)),d=b.Pa("div","a-J-e-Qe-Hj"),b.Pa("div","a-fy-lz-nb",k=b.Pa("video","a-fy-Ca"),p=b.Pa("div","a-a4-nb",
b.Pa("div","a-a4","preview")))));Qn(m,"a-Ca-lz");c=m.appendChild(b.Pa("div","a-Ca-v-kj",b.Pa("div","a-Ca-kj-E",b.createTextNode("Processing video...")),b.Pa("div","a-Ca-v-sf",b.createTextNode(c.getName())),b.Pa("div","a-Ca-v-Hd d-k-l")));On(c,!1);On(u,!1);On(h,!1);Qn(z,"Ca-v-z");a.Gdb(f);h=F9f(a);h.Pa();f.appendChild(h.ta());d.appendChild(b.Pa("div",{id:a.yw().getId(),"class":"a-J-e-jc"}));k.canPlayType&&!xc?qe(z,0):(On(k,!1),On(p,!1));return z};
Q3.prototype.tq=function(a){Q3.ya.tq.call(this,a);var b=a.La(),c=a.yw();c.yb(a.Ea().ta(c.getId()));b=b.Jd()||"";c.setContent(b);c.ta().title=b;yRd(a)};var xRd=function(a,b,c){(a=a.Ea().fb("a-D-v-sf",a.ta()))&&le(a,b,c)};Q3.prototype.$ca=e(643);
Q3.prototype.setSize=function(a,b,c){var d=a.Oa,f=a.ta();le(a.ta(),b,c);d&&d.ta()&&le(d.ta(),b,c);var h=a.Ea();v("a-fy-Ca a-J-e-Tc a-Ca-v-kj a-Ca-v-e-B a-D-v-qa a-Ca-zc-W".split(" "),function(a){(a=h.fb(a,f))&&le(a,b,c)});(d=h.fb("a-v-sf-aa",f))&&me(d,b);(d=h.fb("a-Ca-v-sf",f))&&me(d,b);xRd(a,b,c);yRd(a);Pd(h.fb("a-J-e-jc",f),"top",c+"px")}; var yRd=function(a){var b=a.yw().ta();if(b){var c=oe(a.ta());b.style.top=c.height+"px";My.Bo()?b.style.right="0":b.style.left="0";c=a.Ea();b=c.fb("a-J-e-jc",a.ta());a=oe(c.fb("a-J-e-qa",a.ta()));b.style.top=a.height+"px"}};
var CRd=0<=Xa(OJ,"9.0.0");var ARd=["transform","WebkitTransform","msTransform","OTransform","MozTransform"],zRd=function(a,b){if(!(a&&b&&a.parentNode&&b.parentNode)||1!=a.parentNode.nodeType||1!=b.parentNode.nodeType)return new Nd(0,0,0,0);var c=zy(a),d=ie(a),f=ie(b),h=R3(a,!0,!1);if(90==h||270==h)if(h=c.height,c.height=c.width,c.width=h,wd&&!Gf("12")){var h=Math.round(c.width/2),k=Math.round(c.height/2);d.x=d.x+k-h;d.y=d.y-k+h}d=new Gb(d.x-f.x,d.y-f.y);f=b.clientWidth;My.Bo()&&(d.x=f-d.x-c.width);104>c.width&&(d.x+104>f&&
(d.x=d.x+c.width-104),d.x-=(104-c.width)/2,c.width=104);return new Nd(d.x,d.y,c.width,c.height)},R3=function(a,b,c){var d,f=!1;v(ARd,function(b){d||c&&"MozTransform"==b||(d=a.style[b])});d||b||(d=a.style.filter,f=!0);if(d&&(b=d.search("rotat"),0<=b)){b=d.substr(b);var h=b.search("[)]"),f=f?90:1,f=b.substr(0,h).replace(/\D/g,"")*f;return BRd(f)}return 0},S3=function(a){var b=BMc(a);if(b){var c=zRd(a,b);a=Ae(a);c.height+=a.top+a.bottom;c.top+c.height>b.offsetHeight&&(b.scrollTop+=c.top+c.height-b.offsetHeight+
5);0>c.top&&(b.scrollTop+=c.top)}},ERd=function(a,b){if(xc&&!Gf(9))a.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.floor(b/90)+")";else{var c="rotate("+b+"deg)";v(ARd,function(b){a.style[b]=c})}},BRd=function(a){0>a?a+=360:360<=a&&(a-=360);return a};

G("sy871");I();
}catch(e){_DumpException(e)}
try{
H("sy873");var VRd="https:"==window.location.protocol,URd=function(a){return Fu(a)?VRd?a.replace(/^http:/i,"https:"):a:!VRd&&za(Zpa(a),".gstatic.com")||ya(a,"https://googledrive.com/thumb/")?a:"//images-onepick-opensocial.googleusercontent.com/gadgets/proxy?container=onepick&gadget=a&rewriteMime=image%2F*&url="+Ja(a)},WRd=function(a){a=Cu(a);a=Du(a,288);var b=a.lastIndexOf("/");if(0>b)return"";var c=a.lastIndexOf("/",b-1);return 0>c?"":a.substring(0,c+1)+"{size}"+a.substring(b)},XRd=function(a,b){var c=a&&a.vt(); return!!c&&YRd(b.od.La(c))},YRd=function(a){a=a&&a.getAttribute("la");return!!a&&eb(a,"profile_photos.active")},ZRd=function(a,b,c){var d=new w3("youtube-banner-preview");d.Ab=b;BN(d,"id",a.getId());c.Mh.On(d)};

G("sy873");I();
}catch(e){_DumpException(e)}
try{
H("sy881");var X3=function(){this.An=new Cx;this.Sa={};this.Ab={}};la(X3);X3.prototype.load=function(a,b,c){Ub(this.Sa)&&ud(this.An,["load","error"],this.mL,!1,this);var d=Ce(Be.ia());this.Sa[d]=b;this.Ab[d]=c;Dx(this.An,d,a);xc&&!Gf("9")?Uf(Lp(this.An.start,this.An)):this.An.start();return d};X3.prototype.mL=function(a){var b=a.target.id;if("load"==a.type)this.Sa[b](a);else{var c=this.Ab[b];c&&c(a)}PFa(this.An,b);delete this.Sa[b];delete this.Ab[b];Ub(this.Sa)&&zd(this.An,["load","error"],this.mL,!1,this)};

G("sy881");I();
}catch(e){_DumpException(e)}
try{
var pVd=[void 0,"ownerOnly","limited","extendedCircles","domainPublic","public","allPersonalCircles"],xXd=["32-c","64-c","72-c","400","default"],pTf=function(a){var b=a;0<a.length&&(b=a.substr(0,0)+a.substr(1,a.length-0-1));return b},rXd=function(a){kd.call(this);this.Sa=a};t(rXd,kd);rXd.prototype.Ab=e(647);
var NLe=function(a,b){var c=[];if(b[0]&&b[0].Ab)for(var d={},f=a.Sa.rd().Dma||xXd,h=0;h<f.length;h++){var k=f[h],m;if("default"==k)m=b[0].ll(void 0,void 0,!0);else if("orig"==k)m=b[0].ll(0,void 0,!0);else{var p,u,z;m=[];for(var k=k.split("-"),F=0;F<k.length;F++){var M=k[F],X=parseInt(M,10);X?p=X:ya(M,"h")&&1<M.length?u=parseInt(pTf(M),10):ya(M,"w")&&1<M.length?z=parseInt(pTf(M),10):m.push(M)}var da;z&&u?da=new Kb(z,u):p&&(da=p);m=b[0].ll(da,m,!0)}F=m.wc()+"x"+m.Ic();if(a.Sa.rd().Dma||!d[F])k={},k.url= m.getUrl(),k.width=m.wc(),k.height=m.Ic(),c.push(k),d[F]=!0}else for(h=0;h<b.length;h++)k={},m=b[h],d=m.getUrl(),d&&ya(d,"data:")||(k.url=m.getUrl(),k.width=m.wc(),k.height=m.Ic(),c.push(k));return c};H("sy883");
var fVd=function(a,b,c){y3.call(this,a,"a-Av-Cc","a-Av-Bb","a-Av-B","bottom",c);this.Qb=b};t(fVd,y3);fVd.prototype.Pa=function(){fVd.ya.Pa.call(this);var a=this.Ea(),b=this.Ab,c=Ce(Be.ia());b.appendChild(a.Pa("div",void 0,this.Oa=a.Pa("div",{"class":"a-Av-mA",id:c},a.createTextNode("The image you highlighted was found by Google Image Search on this page:")),a.Pa("div","a-Av-mA",this.mL=a.Pa("a",{href:"#",target:"_blank"}))));qo(this.mL,"labelledby",c);this.setSize(0)};
fVd.prototype.Na=function(){fVd.ya.Na.call(this);this.getHandler().Ja(this.getContext().Sa,"si",this.$b)};var j2e=function(a){a.Ea();var b=a.getContext().Sa.Ua(),b=b&&b.length?a.getContext().od.La(b[0]):null;"getty"==a.Qb.Gf().getOption("type")&&(b=null);if(b){var c=a.mL,d=b.getUrl();La(d);c.href=d;Rc(c,d);ey(a.Oa,"The image you highlighted was found by Google Image Search on this page: "+d)}On(a.Ab,!!b);a.setSize(b?29:0)};fVd.prototype.setActive=function(a,b){fVd.ya.setActive.call(this,a,b);a&&j2e(this)}; fVd.prototype.$b=function(){this.Qb.xw()&&j2e(this)};
var gVd=function(a,b){y3.call(this,a,"a-PH-Cc","a-PH-Bb","a-PH-B","top",b)};t(gVd,y3);gVd.prototype.Pa=function(){gVd.ya.Pa.call(this);var a="These images are also available to view and share in "+('<a href="https://picasaweb.google.com/home?hl='+My.Sa+'" target="_blank">Picasa Web Albums</a>, Google\'s free photo hosting service.'),b=this.Ea(),a=b.Pa("div","a-PH-E",cd(b,a));this.Ab.appendChild(a);this.setSize(42)};
var B4=function(a,b,c,d){B3.call(this,a,b,c,d);this.Ag=null};t(B4,B3);B4.prototype.Pa=function(){B4.ya.Pa.call(this);var a=this.Ea(),b=this.Ag=a.Pa("div","d-k-l a-Za-Xm-nc");qe(this.Ag,0);a.Hy(b,this.Ab.lastChild);a=new $w({service:"party",type:"audience",options:{evid:this.getContext().rd().Tx,maxSize:22}});b=this.getContext().od.Rd(a);b.Hi()&&b.tf()?iVd(this,b.Ae(),!1):this.getContext().od.Vd(a,Lp(function(a){iVd(this,a.Ae(),!0)},this),ka,!0)};
var hVd=function(a,b,c){b="public"==b?"Photos will be visible to anyone (public on the web).":"wide"==b?"Photos will be shared with a wide audience.":(new Z("{audienceCount, plural, =0 {Photos will be shared with all event guests} =1 {Photos will be shared with {startTag}one person{endTag}.}other {Photos will be shared with {startTag}{audienceCount} people{endTag}.}}")).format({audienceCount:c,startTag:'<span class="a-Xm-Yr-s">',endTag:"</span>"});return cd(a.Ea(),b)},iVd=function(a,b,c){var d=b[0];
a.Ag.appendChild(hVd(a,d.getAttribute("visibility"),d.Tm()));c?(new bF(a.Ag,218)).play():qe(a.Ag,1);if(c=a.Ea().fb("a-Xm-Yr-s",a.Ag)){var f=new gD(a.Ea());x(a,f);f.setPosition(2);iD(f,!0);f.render(a.getContext().rd().fG());f.setContent(jVd(a,b.slice(1),d.Tm()));Qn(f.ta(),"a-Xm-id-b-i");f.Fg(c);Jd(a.getHandler(),c,vw,Lp(f.setVisible,f,!0))}},jVd=function(a,b,c){a=a.Ea();for(var d=Math.min(b.length,22),f=(c-=d)?(new Z("{moreCount, plural, =0 {unused plural form}=1 {+ 1 more}other {+ {moreCount} more}}")).format({moreCount:c}):
void 0,f=a.Pa("div","a-Za-Xm-id",a.Pa("div","a-Za-Xm-id-O","Visible to:"),c=a.Pa("div"),f),h=0;h<d;h++){var k=b[h],m=a.Pa("img",{src:k.Yh()[0].Qs(24,["c"]),"class":"a-Za-Xm-id-W"});m.setAttribute("oid",k.Qe());c.appendChild(k.getUrl()?a.Pa("a",{href:k.getUrl(),target:"_blank"},m):m)}return f};B4.prototype.update=function(){B4.ya.update.call(this);this.Ag&&On(this.Ag,!this.getContext().We().Aia())};B4.prototype.qb=function(){B4.ya.qb.call(this);this.Ag=null};
var kVd=function(a,b,c){y3.call(this,a,"a-qe-N-Cc","a-qe-N-Bb","a-qe-N-B","bottom",c);this.Ag=b;this.$b=new kR;this.ib(this.$b);this.Qb=null;this.mL=!1;this.Yg=null};t(kVd,y3);kVd.prototype.Pa=function(){kVd.ya.Pa.call(this);var a=this.Ea(),b=this.Ab;b.appendChild(a.Pa("div","a-qe-N-E",this.Ag||"Or paste a web address here:"));b.appendChild(a.Pa("div",null,this.Qb=a.Pa("input",{type:"text","class":"a-qe-N-z"})));this.setSize(46);this.$b.yb(this.Qb)};
kVd.prototype.Na=function(){kVd.ya.Na.call(this);this.Yg=new rw(this.Qb);this.getHandler().Ja(this.Yg,"input",this.Oa)};var l2e=function(a,b){var c=a.Qb;c.value!=b&&(c.value=b);a.mL=0<b.length;Pn(c,"a-qe-N-z-L",a.mL);a.mL||c.blur()};kVd.prototype.Oa=function(){var a=this.getContext(),b=this.Qb,c=b.value;this.getContext().$b.Sa(c);!this.mL&&0<c.length?(a.Sa.lJ(),this.mL=!0,this.dispatchEvent(new lVd)):this.mL&&0==c.length&&(this.mL=!1,this.dispatchEvent(new lVd));Pn(b,"a-qe-N-z-L",this.mL)}; var lVd=function(){A.call(this,"ZE")};t(lVd,A);
var C4=function(a,b,c,d,f){t3.call(this,a,f);this.Bc=b;this.Ig=c;var h=null;My.Ag&&"photos"==b.Sa&&b.getOption("upload")&&(h=dVd(a,f),z3(h,c),c=h);this.Vk=h;h=null;eb(d,"bi")&&(h=new gVd(a,f),z3(h,c),c=h);this.Ag=h;var h=a.rd(),k=null,m=b.getOption("parent"),p=b.getOption("hideBc")||eb(d,"dbbimv");m&&!b.getQuery()&&!p&&(m=a.od.La(m))&&(k=new G3(a,b,m,f),z3(k,c),c=k);this.Qb=k;b=null;eb(d,"at")&&(b=new fVd(a,this,f),z3(b,c),c=b);this.Oa=b;d=null;h.Mma&&(d=new kVd(a,void 0,f),z3(d,c),c=d);this.mL=d;
f=this.zab();z3(f,c);this.ib(f);this.Ab=f;qr(this.getHandler().Ja(a.Sa,"si",this.Aab),this.Ig,"change",this.Aab,!1,this)};t(C4,t3);q=C4.prototype;q.j2a=function(){this.Ab.getContext().Ab.b2b()};q.zab=function(){var a=this.getContext(),b=this.Ea(),c=Lp(this.j2a,this),d=a.rd().Tx;return"image-search"!=this.Bc.Sa||this.Bc.getOption("type")&&"gis"!=this.Bc.getOption("type")?"photos"==this.Bc.Sa&&d?new B4(a,c,void 0,b):new B3(a,c,void 0,b):new z4(a,c,void 0,b)};q.Pa=function(){this.Ab.Pa();this.Kb(this.Ab.ta())};
q.Na=function(){C4.ya.Na.call(this);var a=this.mL;a&&this.getHandler().Ja(a,"ZE",this.Aab);this.getHandler().Ja(this.getContext().Sa,"ti",this.C5)};q.setVisible=function(a){var b=this.ta();b.style.top=a?"":"-10000px";b.style.left=a?"":"-10000px";b.style.right=a?"":"9500px"};q.Gf=function(){return this.Bc};q.zq=function(){return this.Ig.zq()};q.hJ=e(634);
q.setActive=function(a,b){C4.ya.setActive.call(this,a,b);var c=function(c){c&&c.setActive(a,b)};c(this.Ig);c(this.Oa);c(this.Vk);c(this.Qb);c(this.mL);c(this.Ab);a&&(this.mL&&l2e(this.mL,this.getContext().$b.getValue()),this.C5(),xc&&"video-search"==this.Bc.Sa&&0==Xa(nf,"7")&&Uf(function(){Pd(this.ta(),"zoom","1")},0,this))};q.vB=function(a){this.Ig.vB(a)};q.Aab=function(a){if(this.xw()){var b=this.getContext().$b,c=this.mL;c&&"si"==a.type&&E5d(this)&&(l2e(c,""),b.Sa(""));this.C5()}};
q.C5=function(){var a=this.$b(),a=E5d(this)&&a||!!this.getContext().$b.getValue(),b=this.Ab;b.qh(a);b.$b&&b.$b.Oa()};var E5d=function(a){var b=a.zq();a=a.getContext().Sa.Ua(!0);return Cd(a,b.contains,b)};C4.prototype.$b=function(){var a=Lxg(this.getContext()),b;gb(a)||(b=a[0]);nEg(this.Ab,!!b,MLe(this.getContext(),b),0);return!b};C4.prototype.qb=function(){C4.ya.qb.call(this);delete this.Ab;delete this.Oa;delete this.Ag;delete this.Qb;delete this.Ig;delete this.mL}; C4.prototype.kt=function(){var a=this.Ig.kt();!a&&this.Qb&&(a=this.Qb.focus());a||this.Ab.focus();return!0};

G("sy883");I();
}catch(e){_DumpException(e)}
try{
H("sy899");var I4e=function(a,b){kd.call(this);this.xb=a;this.Kf=b;this.Bb=new Hd(this);x(this,this.Bb);this.mL=new Sf(24);x(this,this.mL);this.Sa=0;this.Ab=null};t(I4e,kd);q=I4e.prototype;q.ta=function(){return this.xb};q.stop=function(){this.mL.stop();this.Bb.removeAll();this.Ab=null};q.start=function(){qr(qr(this.Bb,this.xb,["touchmove","mousemove"],this.ZHb,void 0,this),this.mL,"tick",this.YHb,void 0,this);this.mL.start()};
q.YHb=function(){if(!this.isDisposed()){if(this.Ab){var a=fd(this.Kf).y+this.Ab.y,b=pe(this.xb),c=a-b.top,a=b.top+b.height-a,b=0;-48<c&&48>c?b=-1.2:-48<a&&48>a&&(b=1.2);this.Sa=0==this.Sa?b:0>this.Sa?this.Sa*-b:this.Sa*b;this.Sa=Math.max(Math.min(this.Sa,96),-96)}this.xb.scrollTop+=this.Sa}};q.ZHb=function(a){this.isDisposed()||(this.Ab=new Gb(a.clientX,a.clientY))};
var lW=function(a){C.call(this,a);this.Oa=!1;this.Sa=null;this.Ag=new TC(this.fPb,50,this);x(this,this.Ag);this.YY=new TC(this.gPb,250,this);x(this,this.YY);this.Vb=this.Ab=this.$b=this.mL=this.Td=this.Qb=null};t(lW,C);lW.prototype.Pa=function(){lW.ya.Pa.call(this);this.ra(this.ta())};lW.prototype.ra=function(){var a=this.ta();Qn(a,"j-D-yNa");On(a,!1)};lW.prototype.Na=function(){lW.ya.Na.call(this);var a=this.Ea().La();this.getHandler().Ja(a,"mousedown",this.mud)};
var J4e=function(a){var b=Od(a.Td.GHa());Vd(a.ta(),Math.max(a.Ab.left-b.left,0)+"px",Math.max(a.Ab.top-b.top,0)+"px");var c=0;a.Ab.left<b.left?c=b.left-a.Ab.left:a.Ab.left+a.Ab.width>b.right&&(c=a.Ab.left+a.Ab.width-b.right);le(a.ta(),a.Ab.width-c+"px",a.Ab.height-Math.max(b.top-a.Ab.top,0)+"px")},K4e=function(a){if(a.Sa){var b=fd(a.Kf);return new Gb(a.Sa.scrollLeft+b.x,a.Sa.scrollTop+b.y)}return fd(a.Ea())};q=lW.prototype;
q.mud=function(a){if(this.Td.Eqa(a.target)&&td(a)){this.Oa&&L4e(this);var b=K4e(this);this.mL=new Gb(a.clientX+b.x,a.clientY+b.y);this.$b=this.mL.clone();this.Oa=!0;b=this.Ea().La();this.getHandler().Ja(b,"mousemove",this.W0b).Ja(b,"mouseup",this.Y0b).Ja(b,"mouseout",this.Vk);this.Ab=new Nd(this.mL.x,this.mL.y,0,0);this.Td.lya(!0,!!a.shiftKey);J4e(this);this.ta();On(this.ta(),!0);"IMG"==a.target.nodeName&&a.preventDefault()}};q.W0b=function(a){this.Qb=a;this.Ag.Il()};
q.fPb=function(){if(this.Qb){var a=this.Qb,b=this.Ea().getWindow(),c=$c(this.Ea()).height,c=50-Math.min(c-a.clientY,a.clientY);0<c&&(50>a.clientY?b.scrollBy(0,-Math.sqrt(c)):b.scrollBy(0,Math.sqrt(c)));a=K4e(this);this.$b=new Gb(this.Qb.clientX+a.x,this.Qb.clientY+a.y);this.Vb=this.Ab;this.Ab=ugb(new Nd(this.mL.x,this.mL.y,1,1),new Nd(this.$b.x,this.$b.y,1,1));J4e(this);this.YY.Il()}};q.gPb=function(){this.Td.Yia(this.Ab,this.Vb)};q.Y0b=function(){L4e(this)};
var L4e=function(a){a.Ag.stop();a.YY.stop();a.Oa=!1;a.Td.lya(!1);var b=a.Ea().La();a.getHandler().nb(b,"mousemove",a.W0b).nb(b,"mouseup",a.Y0b).nb(b,"mouseout",a.Vk);On(a.ta(),!1)};lW.prototype.Vk=function(a){var b=this.Ea().La();a.target==b&&L4e(this)};

G("sy899");I();
}catch(e){_DumpException(e)}
try{
H("sy902");var D_d=function(a){Qw.call(this,a);this.Ab&&(this.Sa=a.response.st)};t(D_d,Qw);$S(17,function(a){return new D_d(a)});var E_d=function(){Mw.call(this)};t(E_d,Mw);E_d.prototype.PD=pg(new Af("photoquota"));E_d.prototype.Sq=function(){return 17};var pwg=function(a,b){s3.call(this,a,b)};t(pwg,s3);pwg.prototype.setActive=ka;pwg.prototype.$b=ka;pwg.prototype.Oa=ka;var XX=function(a,b,c){s3.call(this,a,c);this.Ab=this.Qb();this.ib(this.Ab);this.mL=null;this.Ag=b};t(XX,pwg);XX.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-Za-QYEU7c-Foa-zu-sc");this.Kb(b);this.mL=a.Pa("div","a-Za-QYEU7c-ka",this.Ag);b.appendChild(this.mL);this.Ab.render(b)};XX.prototype.Na=function(){XX.ya.Na.call(this);this.getHandler().Ja(this.Ab,"change",this.YY)};XX.prototype.YY=function(){var a="attach"==this.Ab.mL.$e().getValue();this.getContext().Sa.Eyb(a)};
XX.prototype.Qb=function(){return new RW([tEg(this,"Inline","inline","a-WNq8W-k-cb"),tEg(this,"As attachment","attach","a-WNq8W-eyIFUe-ltEGzf")],"inline",this.Ea())};var tEg=function(a,b,c,d){a=a.Ea();d=a.Pa("div",d+" a-Za-Dy4iJc-m","\u00a0");b=a.Pa("div","a-Za-Dy4iJc-E",b);b=new Ot([d,b],a);b.Wj(c);b.Pa();return b};XX.prototype.setActive=function(){var a=this.getContext().Sa,b=a.uYb();null!=b||a.Eyb(!1);t0d(this.Ab,b?"attach":"inline")};XX.prototype.$b=function(a){this.mL&&On(this.mL,a)}; XX.prototype.isEnabled=function(){return this.Ab.isEnabled()};XX.prototype.Ta=function(a){this.Ab.Ta(a)};
var F_d=function(a){return"https://www.google.com/settings/u/{authuser}/storage/?hl={locale}".replace("{authuser}",a.rd().Ko||"0").replace("{locale}",My.Sa)};var G_d=function(a,b){C.call(this,b);this.Sa=a};t(G_d,C);G_d.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-gpa");this.Ab?a.appendChild(b,cd(a,this.Ab)):On(b,!1);this.Kb(b)};
G_d.prototype.display=function(a,b){var c=this.Ea(),d=void 0;if("r"==a&&b)d="Photos you're uploading will be resized to "+(b.pixels+(' pixels. <a href="'+(F_d(this.Sa)+'" target="_blank">Upgrade storage</a>')));else if("v"==a)d="Your video has finished uploading and you can attach it now.  You will be able to watch it once it has finished processing.";else if("s"==a)var f=this.Sa.rd(),d=f.Db,f=f.Oa,d=d&&f?1>=f.width||1>=d.width?"You can only select images between "+(f.height+(" and "+(d.height+" pixels tall."))):
1>=f.height||1>=d.height?"You can only select images between "+(f.width+(" and "+(d.width+" pixels wide."))):"You can only select images between "+(f.width+("x"+(f.height+(" and "+(d.width+("x"+(d.height+" pixels in size."))))))):d?"You can only select images less than "+(d.width+(" by "+(d.height+" pixels in size."))):1>=f.width?"You can only select images at least "+(f.height+" pixels tall."):1>=f.height?"You can only select images at least "+(f.width+" pixels wide."):"You can only select images at least "+
(f.width+(" by "+(f.height+" pixels in size.")));else"p"==a&&(d="By selecting a photo from another user you represent that you have the photo owner's permission to use the photo as your profile photo.");(this.Ab=d)&&this.Nb()&&(f=this.ta(),c.hb(f),c.appendChild(f,cd(c,d)),On(f,!0))};G_d.prototype.Oe=function(){this.Ab=void 0;this.Nb()&&On(this.ta(),!1)};

G("sy902");I();
}catch(e){_DumpException(e)}
try{
H("sy863");var hZ=function(){this.Sa=void 0;if(xc&&0==Xa(nf,"6"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(a){}};t(hZ,Go);la(hZ);hZ.prototype.VWa=function(){return!1};hZ.prototype.E$=function(a){hZ.ya.E$.call(this,a);we(a.ta(),!1,wd)};hZ.prototype.Pc=function(){return"v-ff"};
var bZ=function(){};t(bZ,vo);la(bZ);bZ.prototype.Pc=function(){return"v-t2a"};bZ.prototype.h_=function(a){return"div"==a.tagName.toLowerCase()};bZ.prototype.yb=function(a,b){Sed(this,a,b);return bZ.ya.yb.call(this,a,b)};bZ.prototype.Pa=function(a){var b=this.Pc(),b=a.Ea().Pa("div",{"class":b+"-Z"});Sed(this,a,b);return b};var Sed=function(a,b,c){var d=b.Ea();a=a.Pc();c.appendChild(d.Pa("div",{"class":a+"-XIa",id:Ted(b).getId()}));c.appendChild(d.Pa("div",{"class":a+"-lia",id:Ued(b).getId()}))}; bZ.prototype.tq=function(a){var b=[Ted(a),Ued(a)],c=a.Ea();v(b,function(a){a.yb(c.ta(a.getId()))});bZ.ya.tq.call(this,a)};bZ.prototype.cb=function(a){return nc("div",this.Pc()+"-lia",a)[0]||null};bZ.prototype.tJa=function(){return!1};
var Ved=function(a,b,c,d,f,h){yo.call(this,null,c||bZ.ia(),f);this.Sa=new Ze;this.yH=a;this.Db=b;this.Pha=d||Wed||(Wed=new cZ(!0));this.Oa=new Ze;h&&Xed(this,b)};t(Ved,yo);
var Ted=function(a){if(!a.Ab){a.Ab=new Yed(a.yH,a.Db,null,Zed||(Zed=new dZ(!0)),a.Ea());var b=a.getHandler();b.Ja(a.Ab,"removeclicked",function(){this.dispatchEvent("removeclicked")});b.Ja(a.Ab,"cancelclicked",function(){this.dispatchEvent("cancelclicked")})}return a.Ab},$ed=function(a){a.Ko||(a.Ko=new vp(null,wp.ia(),a.Ea()));return a.Ko},Ued=function(a){a.o9||(a.o9=new yo("",void 0,a.Ea()));return a.o9};
Ved.prototype.Na=function(){Ved.ya.Na.call(this);var a=this.Ea(),b=a.Pa("div",{id:$ed(this).getId()},"Details"),a=Zc(a,"div","",this.ta()),c=ZY(Ted(this)).getId(),a=cb(a,function(a){return a.getAttribute("id")==c});Dc(b,a);$ed(this).yb(b);afd(this,$ed(this),Lp(this.Maa,this))};Ved.prototype.Maa=function(){Xed(this,this.Db);var a=this.Db;this.Xo(a);Ted(this).eD(a);bfd(this,a);$ed(this).setVisible(!1)};
Ved.prototype.fn=function(a){if(a.target!=this.ta()){var b=a.target.id;ba(this.Oa,b)&&this.Oa.get(b)(a)}return Ved.ya.fn.call(this,a)};var afd=function(a,b,c){a.Oa.set(b.getId(),c)},bfd=function(a,b){for(var c=b.S2,d=0;d<c.length;d++){var f=c[d];if("undefined"!=typeof xY&&f instanceof xY)bfd(a,f);else{var h=a.Sa.get(f.getId());h&&h.eD(f)}}};Ved.prototype.getValue=function(){return this.kc()};Ved.prototype.Vw=function(a){return Ted(this).Vw(a)};
var Xed=function(a,b){for(var c=b.S2,d=0;d<c.length;d++){var f=c[d];if("undefined"!=typeof xY&&f instanceof xY)Xed(a,f);else{var h=a;if(ba(h.Sa,f.getId()))h.Sa.get(f.getId());else{var k=new cfd(null,h.Pha,h.Ea()),m=HY(h.yH,f);k.Vw(m);h.ib(k,!0);k.eD(f);h.Sa.set(f.getId(),k)}}}};Ved.prototype.Bq=function(a){Ted(this).Bq(a)};
var TY=function(a){this.Sa=a||!1};t(TY,vo);var Ped=null,UY=function(a){return a.Sa?"div":"td"};q=TY.prototype;q.Pa=function(a){var b=this.qr(a),b=a.Ea().Pa(this.Sa?"div":"tr",b?{"class":b.join(" ")}:null);this.lK(a,b);return b};q.lK=function(){};q.h_=function(a){return a.tagName.toLowerCase()==(this.Sa?"div":"tr")};q.yb=function(a,b){this.lK(a,b);return TY.ya.yb.call(this,a,b)};
q.bGa=function(a){switch(a){case "default":return"v-Xg-Ba";case "inqueue":return"v-Xg-C5";case "start":return"v-Xg-Vb";case "transfer":return"v-Xg-v";case "pause":return"v-Xg-Qdb";case "backoff":return"v-Xg-Z9";case "success":return"v-Xg-mv";case "error":return"v-Xg-wa";case "cancel":return"v-Xg-xe";default:return"hza"}};q.tq=function(a){TY.ya.tq.call(this,a);we(a.ta(),!1,wd);a.Bq("");ZY(a).setVisible(!1);$Y(a).setVisible(!1)};q.tJa=function(){return!1};q.E6=function(){};
q.vm=function(a){var b=a.getMessage();a=aZ(a);b?(a.setContent(" ("+b+")"),a.setVisible(!0)):(a.setContent(""),a.setVisible(!1))};q.Vw=function(a,b,c){moa(a,this.bGa(b));a.$b(this.bGa(c));YY(a).setVisible("default"==c||"inqueue"==c);ZY(a).setVisible("start"==c||"transfer"==c||"backoff"==c);b=a.getValue();$Y(a).setVisible(b.cQ())};
var Oed=function(a){var b,c;1073741824<=a?(a/=1073741824,c="GB"):1048576<=a?(a/=1048576,c="MB"):1024<=a?(a/=1024,c="KB"):c="B";b=Math.max(0,(b||3)-(""+Math.floor(a)).length);b=Math.pow(10,b);return Math.round(a*b)/b+" "+c};TY.prototype.Pc=function(){return"v-We"};
var VY=function(a,b,c){yo.call(this,a,b||Ped||(Ped=new TY),c);this.Ab=new Ze;ooa(this,!0)};t(VY,yo);VY.prototype.dispatchEvent=function(a){try{return VY.ya.dispatchEvent.call(this,a)}catch(b){}};var ufd={DEFAULT:"default",E7b:"inqueue",mac:"start",aTa:"transfer",PAUSE:"pause",Jzd:"backoff",nlb:"success",W8b:"partial-error",ERROR:"error",CANCEL:"cancel"};q=VY.prototype;q.lZ="default";q.v0b=null;q.pKb=null;q.lob=null;q.job=null;q.hob=null;q.FXb=null;q.iob=null;q.Anb=null;q.KUa="";q.sUa=null;
var Qed=function(a){return a.v0b||(a.v0b=new yo("",void 0,a.Ea()))},WY=function(a){return a.pKb||(a.pKb=new yo("",void 0,a.Ea()))},XY=function(a){return a.lob||(a.lob=new yo("",void 0,a.Ea()))},YY=function(a){return a.job||(a.job=new vp(null,wp.ia(),a.Ea()))},ZY=function(a){return a.hob||(a.hob=new vp(null,wp.ia(),a.Ea()))},$Y=function(a){return a.FXb||(a.FXb=new vp(null,wp.ia(),a.Ea()))},aZ=function(a){return a.iob||(a.iob=new yo("",void 0,a.Ea()))};q=VY.prototype;
q.yw=function(){return this.Anb||(this.Anb=new yo("",void 0,this.Ea()))};q.eD=function(a){this.Xo(a);this.vm()};q.getValue=function(){return this.kc()};q.vm=function(){this.Qb.vm(this)};q.Vw=function(a){if(a!=this.lZ){if(Tb(ufd,a)){var b=this.lZ;this.lZ=a;this.Qb.Vw(this,b,a);return!0}throw Error("vg`"+a);}return!1};q.getMessage=function(){return this.KUa};q.Bq=function(a){a!=this.KUa&&(this.KUa=a,this.vm())};q.kob=function(){};q.E6=function(a,b){this.Qb.E6(this,a,b)};
q.cPa=function(a){a!=this.sUa&&(this.sUa=a,this.vm())};q.fn=function(a){if(a.target!=this.ta()){var b=a.target.id;ba(this.Ab,b)&&this.Ab.get(b)(a)}return VY.ya.fn.call(this,a)};q.Na=function(){VY.ya.Na.call(this);this.ta().id=lh(this,"file");this.Qb.Vw(this,this.lZ,this.lZ);var a=YY(this),b=Lp(this.eHc,this);this.Ab.set(a.getId(),b);a=ZY(this);b=Lp(this.Cvc,this);this.Ab.set(a.getId(),b);a=$Y(this);b=Lp(this.$Hc,this);this.Ab.set(a.getId(),b)};q.eHc=function(){this.dispatchEvent("removeclicked")}; q.Cvc=function(){this.dispatchEvent("cancelclicked")};q.$Hc=function(){this.dispatchEvent("retryclicked")};uo("v-We",function(){return new VY(null)});
var eZ=function(a){this.Sa=a||!1};t(eZ,TY);var dfd=null;
eZ.prototype.lK=function(a,b){var c=a.Ea(),d=this.Pc(),f=d+"-L7";this.Sa&&(f=d+"-ep");f=[c.Pa(UY(this),{"class":f+" "+(d+"-Qd")},c.Pa("div",{"class":d+"-Qd g-v-j3",id:Qed(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-kb")},c.Pa("span",{id:WY(a).getId()}),c.Pa("span",{id:aZ(a).getId(),"class":d+"-nc"})),c.Pa(UY(this),{"class":f+" "+(d+"-im")},c.Pa("span",{id:XY(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-la")},c.Pa("div",{id:gZ(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-wC")},c.Pa("div",
{id:$Y(a).getId(),"class":d+"-uf"},"Retry"),c.Pa("div",{id:YY(a).getId(),"class":d+"-Ce"},"Remove"),c.Pa("div",{id:ZY(a).getId(),"class":d+"-xe"},"Cancel"))];this.Sa&&f.push(c.Pa("div",{"class":d+"-da"}));v(f,function(a){b.appendChild(a)})};eZ.prototype.tq=function(a){var b=[Qed(a),WY(a),XY(a),gZ(a),aZ(a),YY(a),ZY(a),$Y(a)],c=a.Ea();v(b,function(a){a.yb(c.ta(a.getId()))});eZ.ya.tq.call(this,a)};
eZ.prototype.vm=function(a){eZ.ya.vm.call(this,a);var b=a.getValue();b&&(WY(a).Lb(b.getName()),O0e(dfd||(dfd=new eZ),a))};var O0e=function(a,b){var c=b.getValue();if(c){var d=0,f=c.dp,c=c.PB;null==f?XY(b).Lb(Oed(c)):(d=eb(["success","partial-error","error","cancel"],b.lZ)?Oed(f):Oed(c)+" / "+Oed(f),XY(b).Lb(d),d=Math.round(c/f*100));b instanceof fZ&&gZ(b).Sa(d)}};eZ.prototype.Vw=function(a,b,c){eZ.ya.Vw.call(this,a,b,c);"error"==c&&moa($Y(a),this.Pc()+"-Bd");O0e(0,a)};
var dZ=function(a){this.Sa=a||!1};t(dZ,eZ);var efd=null,Zed=null;dZ.prototype.bGa=function(a){switch(a){case "default":return"v-Xg-Ba-rz";case "inqueue":return"v-Xg-C5-rz";case "start":return"v-Xg-Vb-rz";case "transfer":return"v-Xg-v-rz";case "partial-error":return"v-Xg-Pdb-wa-rz";case "success":return"v-Xg-mv-rz";case "backoff":return"v-Xg-Z9-rz";default:return dZ.ya.bGa.call(this,a)}};
dZ.prototype.lK=function(a,b){var c=a.Ea(),d=this.Pc(),f=d+"-ep",f=[c.Pa(UY(this),{"class":f+" "+(d+"-Qd")},c.Pa("div",{"class":d+"-Qd g-v-j3",id:Qed(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-kb")},c.Pa("span",{id:WY(a).getId()}),c.Pa("span",{id:ffd(a).getId(),"class":d+"-w2a"}),c.Pa("span",{id:aZ(a).getId(),"class":d+"-nc"})),c.Pa(UY(this),{"class":f+" "+(d+"-im")},c.Pa("span",{id:XY(a).getId()})),c.Pa(UY(this),{"class":f+" "+(d+"-la")},c.Pa("div",{id:gZ(a).getId()})),c.Pa(UY(this),{"class":f+
" "+(d+"-wC")},c.Pa("div",{id:$Y(a).getId()},"Retry"),c.Pa("div",{id:YY(a).getId()},"Remove"),c.Pa("div",{id:ZY(a).getId()},"Cancel"))];this.Sa&&f.push(c.Pa("div",{"class":d+"-da"}));v(f,function(a){b.appendChild(a)})};dZ.prototype.tq=function(a){var b=ffd(a);b.yb(a.Ea().ta(b.getId()));dZ.ya.tq.call(this,a)};dZ.prototype.vm=function(a){eZ.ya.vm.call(this,a);var b=a.getValue();b&&(WY(a).Lb(b.getName()),O0e(dfd||(dfd=new eZ),a),b=gfd(a),a=ffd(a),a.setContent(b?b:""),a.setVisible(!!b))};
var fZ=function(a,b,c){VY.call(this,a,b||dfd||(dfd=new eZ),c)};t(fZ,VY);fZ.prototype.Pha=null;var gZ=function(a){return a.Pha||(a.Pha=new lQ(a.Ea()))};var Yed=function(a,b,c,d,f){fZ.call(this,c,d||efd||(efd=new dZ),f);this.Db=a;this.Sa=b;this.yH=new Ze;this.o9=new Ze;this.Ko=this.Oa=0};t(Yed,fZ);var ffd=function(a){return a.yja||(a.yja=new yo("",void 0,a.Ea()))},gfd=function(a){switch(a.lZ){case "default":case "success":case "cancel":case "error":return"("+(a.Sa.Qb+" files)");case "partial-error":return"("+(a.Oa-a.Ko+(" succeeded, "+(a.Ko+" failed)")));case "inqueue":case "start":case "transfer":return"("+(a.Oa+(" of "+(a.Sa.Qb+")")));default:return null}}; Yed.prototype.kob=function(a,b){this.o9.set(a,b)};
var iZ=function(){hZ.call(this)};t(iZ,hZ);la(iZ);iZ.prototype.Pa=function(a){var b=a.Ea(),c=this.Pc();return b.Pa("div",{"class":c},b.Pa("div",{"class":c+"-aa"},b.Pa("div",{"class":c+"-We-Hb"},b.Pa("table",{"class":c+"-wf"},b.Pa("tbody"))),b.Pa("div",{"class":c+"-QX",id:tfd(a).getId()})))};iZ.prototype.cb=function(a){return nc("tbody",null,a)[0]};iZ.prototype.E$=function(a){iZ.ya.E$.call(this,a);var b=tfd(a);b.yb(a.Ea().ta(b.getId()))};
var jZ=function(a){this.Sa=a||!1};t(jZ,eZ);var jfd=null;jZ.prototype.lK=function(a,b){var c=a.Ea();jZ.ya.lK.call(this,a,b);var d=c.Pa("span",{"class":this.Pc()+"-RX",id:kfd(a).getId()}),f=Zc(c,"span","",b),c=cb(f,function(b){return b.getAttribute("id")==WY(a).getId()}),f=cb(f,function(b){return b.getAttribute("id")==XY(a).getId()});Ac(d,c);On(c,!1);On(f,!1)};jZ.prototype.tq=function(a){var b=kfd(a);b.yb(a.Ea().ta(b.getId()));jZ.ya.tq.call(this,a)}; jZ.prototype.Vw=function(a,b,c){jZ.ya.Vw.call(this,a,b,c);switch(c){case "start":On(kfd(a).ta(),!1),On(WY(a).ta(),!0),On(XY(a).ta(),!0)}};
var ifd=function(a,b,c,d){fZ.call(this,b,c||jfd||(jfd=new jZ),d);this.Maa=a};t(ifd,fZ);ifd.prototype.o9=null;var kfd=function(a){return a.o9||(a.o9=new C(a.Ea()))};ifd.prototype.Mqc=function(){return Zc(this.Kf,"form",null,kfd(this).ta())[0]};ifd.prototype.mI=function(){return Zc(this.Kf,"input",null,kfd(this).ta())[0]};ifd.prototype.eD=function(a){ifd.ya.eD.call(this,a);this.Maa.mla(kfd(this).ta(),this.getValue());a=this.getHandler();var b=this.mI(),c=Lp(this.ima,this);a.Ja(b,"change",function(){Uf(c)})}; ifd.prototype.ima=function(){this.Nb()&&(this.vm(),this.dispatchEvent("change"))};
var mfd=function(a,b,c){fZ.call(this,a,b,c)};t(mfd,fZ);var cZ=function(a){this.Sa=a||!1};t(cZ,eZ);var ofd=null,Wed=null;cZ.prototype.lK=function(a,b){var c=a.Ea();cZ.ya.lK.call(this,a,b);var d=c.Pa("div",{id:pfd(a).getId()},"Pause"),f=c.Pa("div",{id:qfd(a).getId()},"Resume"),c=Zc(c,"div","",b),h=ZY(a).getId(),c=cb(c,function(a){return a.getAttribute("id")==h});Ac(d,c);Dc(f,d)};cZ.prototype.tq=function(a){var b=a.Ea();v([pfd(a),qfd(a)],function(a){a.yb(b.ta(a.getId()))});pfd(a).setVisible(!1);qfd(a).setVisible(!1);cZ.ya.tq.call(this,a)}; cZ.prototype.Vw=function(a,b,c){cZ.ya.Vw.call(this,a,b,c)};
var cfd=function(a,b,c){fZ.call(this,a,b||ofd||(ofd=new cZ),c)};t(cfd,fZ);cfd.prototype.o9=null;cfd.prototype.Maa=null;var pfd=function(a){return a.o9||(a.o9=new vp(null,wp.ia(),a.Ea()))},qfd=function(a){return a.Maa||(a.Maa=new vp(null,wp.ia(),a.Ea()))};cfd.prototype.Na=function(){cfd.ya.Na.call(this);var a=pfd(this),b=Lp(this.ima,this);this.Ab.set(a.getId(),b);a=qfd(this);b=Lp(this.Mma,this);this.Ab.set(a.getId(),b)};cfd.prototype.ima=function(){this.dispatchEvent("pauseclicked")}; cfd.prototype.Mma=function(){this.dispatchEvent("resumeclicked")};
var rfd=function(a,b,c,d,f,h){Ho.call(this,null,b||iZ.ia(),d);this.Qb=new Ze;if(f)this.Ab=f;else if("undefined"!=typeof Hdd&&a instanceof Hdd)this.Ab=function(b,c,f){return"undefined"!=typeof xY&&b instanceof xY?f instanceof bZ?new Ved(a,b,f,c,d):new Yed(a,b,null,f,d):new cfd(null,c,d)};else if("undefined"!=typeof KY&&a instanceof KY)this.Ab=function(a,b){return new mfd(null,b,d)};else if("undefined"!=typeof RY&&a instanceof RY)this.Ab=function(b,c,f){return"undefined"!=typeof xY&&b instanceof xY?
f instanceof bZ?new Ved(a,b,f,c,d):new Yed(a,b,null,f,d):new mfd(null,c,d)};else if("undefined"!=typeof NY&&a instanceof NY)this.Ab=a.Bia?function(a,b){return new fZ(null,b,d)}:function(b,c){return new ifd(a,null,c,d)};else if(a instanceof EY)this.Ab=function(a,b){return new VY(null,b,d)};else throw Error("wg");this.Sa=a;this.Oa=c||null;this.YY=h||null;Io(this,!1);b=this.getHandler();b.Ja(this.Sa,"fileadded",function(a){a=a.file;var b=this.Ab(a,this.Oa,this.YY);b.Xo(a);this.ib(b,!0);b.eD(a);this.Qb.set(a.getId(),
b);var c=this.getHandler();c.Ja(b,"removeclicked",this.Vk);c.Ja(b,"cancelclicked",this.Vb);c.Ja(b,"retryclicked",this.Km);b=b.Qb;b.tJa()&&this.Sa.lza(a,b.Sx(),b.iu(),90,!1);sfd(this)});b.Ja(this.Sa,"fileremoved",function(a){a=a.file;var b=kZ(this,a);b&&this.removeChild(b,!0);this.Qb.remove(a.getId());sfd(this)});b.Ja(this.Sa,"uploadstatechanged",this.Op);b.Ja(this.Sa,"uploadprogress",this.Ag);b.Ja(this.Sa,"uploadmessagechanged",this.lp);b.Ja(this.Sa,"filepreviewready",this.Ko)};t(rfd,Ho);
rfd.prototype.$b=null;rfd.prototype.mha=ka;var tfd=function(a){return a.$b||(a.$b=new yo("",void 0,a.Ea()))};rfd.prototype.Ag=function(a){a=a.file;var b=kZ(this,a.Ab);if(b){var c=b.Sa,d=b.yH.get(a.getId(),0),f=a.PB;b.yH.set(a.getId(),f);c.bxa(c.PB+(f-d));O0e(0,b)}(a=kZ(this,a))&&O0e(0,a)};rfd.prototype.lp=function(a){var b=a.file,c=kZ(this,b);c?c.Bq(a.message):""!=a.message&&"cancel"!=GY(this.Sa,b).state&&(c=kZ(this,b.Ab))&&c.kob(b,a.message)};
rfd.prototype.Ko=function(a){var b=kZ(this,a.file);b&&b.E6(a.Ab,a.Sa)};
rfd.prototype.Op=function(a){var b=a.file;a=HY(this.Sa,b);var c=kZ(this,b);c&&c.Vw(a);if(b=kZ(this,b.Ab)){switch(a){case "inqueue":case "start":case "transfer":b.Vw(a);break;case "success":b.Oa++;break;case "cancel":b.lZ!=a&&b.Vw(a);break;case "error":b.Oa++,b.Ko++}b.Oa>=b.Sa.Qb&&(0==b.Ko?(b.Vw("success"),IY(b.Db,b.Sa,"success")):b.Ko==b.Oa?(b.Vw("error"),IY(b.Db,b.Sa,"error")):(b.Vw("partial-error"),IY(b.Db,b.Sa,"partial-error")));b.vm()}};
var kZ=function(a,b){if(!b)return null;var c=qa(b)?b:b.getId();return a.Qb.get(c)};rfd.prototype.Lt=function(){var a=[];He(this,function(b){a.push(b.getValue())});return a};var sfd=function(a){if("undefined"!=typeof NY&&a.Sa instanceof NY&&!a.Sa.Bia){var b=Ge(a);b&&YY(a.Oh(0)).eO(a.fL.Pc()+"-hidden",1==b)}};rfd.prototype.Vk=function(a){a=a.target.getValue();this.Sa.Tu(a)};rfd.prototype.Vb=function(a){this.Sa.Qda(a.target.getValue())};rfd.prototype.Km=function(a){this.Sa.tca(a.target.getValue())};

G("sy863");I();
}catch(e){_DumpException(e)}
try{
H("sy880");var kX=function(a,b){C.call(this,b);this.Ab=a};t(kX,C);kX.prototype.dh="info";kX.prototype.mL=!1;var b3c={info:"b-Ff-ee",error:"b-Ff-wa",warning:"b-Ff-Ec",promo:"b-Ff-zb"};q=kX.prototype;q.Ra=function(){return this.dh};q.hd=function(a){this.cb()&&Tn(this.ta(),b3c[this.dh],b3c[a]);this.dh=a};q.setContent=function(a){this.Ab=a;if(a=this.ta()){var b=this.Ea();b.hb(a);b.uv(a,this.Ab)}};q.dc=function(){var a=this.ta();return null!=a&&Sn(a,"b-Ff-Pi")};q.setVisible=function(a){Pn(this.ta(),"b-Ff-Pi",a)};
var Xhg=function(a,b){a.mL=b;var c=a.ta();c&&Pn(c,"b-Ff-bb",a.mL)};kX.prototype.Pa=function(){this.Kb(this.Ea().Pa("div","b-Ff"));var a=this.ta();a&&(qo(a,"live","assertive"),qo(a,"atomic","true"));this.setContent(this.Ab);Xhg(this,this.mL);this.hd(this.dh)};

G("sy880");I();
}catch(e){_DumpException(e)}
try{
var UKd=/^data:image\/(?:bmp|gif|jpe?g|png|tiff|webp);base64,[a-z0-9+\/]+=*$/i;H("sy728");var tH=function(a,b,c){pH.call(this,a,b,c)};t(tH,pH);tH.prototype.jg=-1;tH.prototype.Zha=function(){var a=tH.ya.Zha.call(this);Pqb(this);return a};tH.prototype.rIa=function(){var a=tH.ya.rIa.call(this);Pqb(this);return a};tH.prototype.oo=function(a,b){tH.ya.oo.call(this,a,b);Pqb(this)};var Pqb=function(a){if(a.jg!=a.Qb){a.jg=a.Qb;var b=qH(a,a.jg);-1!=b&&a.dispatchEvent({type:"hilite",row:a.Sa[b]})}};
var Lqb=function(a,b,c){kd.call(this);this.mL=a;this.Qb=!b;this.Ab=new Wf(c)};t(Lqb,kd);q=Lqb.prototype;q.fAb=void 0;q.$0a=null;q.setContent=function(a){this.fAb=a};q.spb=function(a,b,c,d){a=new Af(a);Hf(a,"token",b);Hf(a,"max_matches",String(c));Hf(a,"use_similar",String(Number(d)));return a.toString()};q.PZb=function(){return!0};var Mqb=function(a){var b=[];if(a)try{b=Qf(a)}catch(c){}return b};Lqb.prototype.T3b=function(a,b,c){b(a,Mqb(c.target.Lq()))};
Lqb.prototype.nM=function(a,b,c,d){this.PZb(this.mL,a,b,this.Qb,d)&&(b=this.spb(this.mL,a,b,this.Qb,d))&&(a=Lp(this.T3b,this,a,c),this.Ab.Ad()&&this.Ab.abort(),this.$0a&&Ad(this.$0a),this.$0a=yd(this.Ab,"success",a),this.Ab.send(b,"GET",this.fAb,null))};Lqb.prototype.qb=function(){this.Ab.Ma();Lqb.ya.qb.call(this)};
var Nqb=function(a){Lqb.call(this,"/complete/search");this.Ag=a+"-2";this.Oa=!1;this.$b="";this.nn=null};t(Nqb,Lqb);q=Nqb.prototype;q.R$a=20;q.J3a=!1;q.spb=function(a,b,c){this.R$a=c;a=new Af(a);Hf(a,"q",b);Hf(a,"hl","en-US");Hf(a,"ds","cse");Hf(a,"client","partner");Hf(a,"hjson","t");Hf(a,"partnerid",this.Ag+"+qptype:3");return a.toString()};q.PZb=function(){return!0};
q.T3b=function(a,b,c){var d=Mqb(c.target.Lq());if(d){c=[];for(var f=d[1],h=this.R$a<f.length?this.R$a:f.length,k=0;k<h;++k)c.push(f[k][2]);f={};d=d[0];d=this.J3a&&d?[new Oqb("",d,"","",!0)]:[];h=0;for(k=c.length;h<k;++h){var m,p=c[h];m=p.a.replace("/","/");var u=p.b,z=p.c,p=p.d.replace("/","/");m=new Oqb(m,u,z,p);m.id in f||(f[m.id]=!0,m&&d.push(m))}this.Sa=d;this.$b=a;this.Oa&&null!=this.nn&&(this.nn(this.Sa,this.$b),this.Oa=!1);return b(a,this.Sa)}};
q.nM=function(a,b,c,d){this.J3a&&this.Sa&&a&&0<this.Sa.length&&this.Sa[0].Sa&&(this.Sa[0].name=a,c(a,this.Sa));Nqb.ya.nM.call(this,a,b,c,d)};q.jY=function(a){this.nn=a};var Oqb=function(a,b,c,d,f){this.id=a;this.name=b;this.pEa=c;this.Rh=d;this.Sa=!!f};Oqb.prototype.toString=function(){return Ga(this.name)};
var Qqb=function(a){var b=Y,c;a.Rh?(c=String(a.Rh),c=UKd.test(c)?c:"data:image/gif;base64,zSoyz",c='<img class="o-ld-z5" src="'+R(S(Jp(c)))+'" />'):c='<div class="o-ld-z5 o-ld-hka"></div>';return b('<div class="V-x6">'+c+'<div class="o-ld-A5">'+Dn(r(a.name))+"</div>"+(a.pEa?'<div class="Eja">'+Dn(r(a.pEa))+"</div>":"")+'<div style="clear: both"></div></div>')},Rqb=function(a){var b="",c='Search for "'+(Dn(r(a.query))+'"'),b=b+('<div class="V-x6'+(a.className?" "+R(a.className):"")+'"><div class="o-ld-A5">'+ c+"</div></div>");return Y(b)};
var Sqb=function(a){this.ha=V(a)};Sqb.prototype.Sa=null;Sqb.prototype.UX=function(a,b,c){a=a.data;b=a.pEa;a.Sa?Vv(this.ha,c,Rqb,{query:a.name,className:this.Sa}):Vv(this.ha,c,Qqb,{name:a.name,Rh:0<a.Rh.length?a.Rh:void 0,pEa:b})};var uH=function(a,b,c,d,f){var h=T(a).Ea();C.call(this,h);b=b||"entities";this.Yg=new rH(null,null,f||!1);this.mL=new Sqb(a);this.Ab=new sH(c||h.La().body,this.mL);this.Ab.Ag=!0;this.Ab.className="o-ld-Su-ld-Uj";this.Sa=new Nqb(b);x(this,this.Sa);this.Oa=new tH(this.Sa,this.Ab,this.Yg);this.Oa.O_=d||10;x(this,this.Oa)};t(uH,C);q=uH.prototype;q.Pa=function(){this.ra(this.Ea().Pa("input"))};q.Di=function(a){return"INPUT"==a.nodeName||"TEXTAREA"==a.nodeName};
q.ra=function(a){uH.ya.ra.call(this,a);Qn(a,"o-ld");this.Yg.YY(a);this.Yg.Sa=this.Oa};q.Na=function(){uH.ya.Na.call(this);var a=this.getHandler();a.Ja(this.Oa,"hilite",this.vBc);a.Ja(this.Oa,"update",this.dhd)};q.vBc=function(a){this.dispatchEvent({type:"hilite",row:a.row})};q.dhd=function(a){this.dispatchEvent({type:"select",row:a.row})};q.jY=function(a){this.Sa.jY(a)};q.Wd=function(){this.Oa.mL.Wd()};

G("sy728");I();
}catch(e){_DumpException(e)}
try{
H("sy425");var dIc=function(a,b,c,d){d=d||jc();var f=d.Pa("div",{style:"overflow:hidden"});b=d.ta(b);b.parentNode.replaceChild(f,b);f.appendChild(b);this.Oa=f;this.Sa=null;nK.call(this,a,b,c,void 0,d);a=this.Zk();this.Oa.style.display=a?"":"none";SHb(this,a)};t(dIc,nK);dIc.prototype.uh=co;
dIc.prototype.uba=function(a){if(this.Zk()!=a||this.Sa){"none"==this.Oa.style.display&&(this.Oa.style.display="");var b=this.cb().offsetHeight,c=0;this.Sa?(a=this.Zk(),Bd(this.Sa),this.Sa.stop(!1),c=parseInt(this.cb().style.marginTop,10),c=b-Math.abs(c)):c=a?0:b;SHb(this,a);this.Sa=new ao([0,c],[0,a?b:0],500,this.uh);ud(this.Sa,["begin","animate","end"],this.Vb,!1,this);ud(this.Sa,"end",Lp(this.Vk,this,a));this.Sa.play(!1)}};
dIc.prototype.Vb=function(a){var b=this.cb();b.style.marginTop=a.y-b.offsetHeight+"px"};dIc.prototype.Vk=function(a){a&&(this.cb().style.marginTop="0");Bd(this.Sa);this.mL=a;this.Sa=null;a||(this.Oa.style.display="none");this.dispatchEvent(new THb("toggle",this,a))};

G("sy425");I();
}catch(e){_DumpException(e)}
try{
bB.prototype.W6=g(485,function(a){this.Sa.excludeLabels=a.join(",");return this});Jw.prototype.qLa=g(484,function(a){this.Sa.parent=a;return this});bB.prototype.qLa=g(483,function(a){bB.ya.qLa.call(this,a);return this});jN.prototype.qLa=g(482,function(a){jN.ya.qLa.call(this,a);return this});f0b.prototype.qLa=g(481,function(a){f0b.ya.qLa.call(this,a);return this});Jw.prototype.lG=g(480,function(a,b){var c=this.Sa.data||{};c[a]=b;this.Sa.data=c;return this});
bB.prototype.lG=g(479,function(a,b){bB.ya.lG.call(this,a,b);return this});jN.prototype.lG=g(478,function(a,b){jN.ya.lG.call(this,a,b);return this});f0b.prototype.lG=g(477,function(a,b){f0b.ya.lG.call(this,a,b);return this});Jw.prototype.vR=g(476,function(a){this.Sa.hideBc=a?"true":null;return this});bB.prototype.vR=g(475,function(a){bB.ya.vR.call(this,a);return this});jN.prototype.vR=g(474,function(a){jN.ya.vR.call(this,a);return this});f0b.prototype.vR=g(473,function(a){f0b.ya.vR.call(this,a);return this});
jza.prototype.Sa=g(255,function(a){var b=new sh(wi(this.Fa).getData(1));rp(th(b)+"/"+a.target.getAttribute("oid"),{target:"_blank"});return!1});jza.prototype.Ab=g(254,function(a){if(iq(a.ka(),fz)){var b=a.ka().kd(fz);b.addCallback(function(b){b=b&&b.Sa();switch(a.type){case "eu":b&&(this.mL|=b.Jla,b.iY(1200),this.Ba.Ja(b,"Ut",this.Sa));break;case "zu":b&&(b.setVisible(!1),b.iY(this.mL),this.Ba.nb(b,"Ut",this.Sa))}},this);bg(b,mg)}});
var NMc=function(a,b){a.Sa.selectAlbumLabel=b;return a},OMc=function(a){a.Sa.selectAlbum=!0;return a},PMc=function(a){a.Sa.excludeEvAlbums=!0;return a},mRf=function(a,b){a.Sa.allowedItemTypes=b.join(",");return a},TMc=function(a,b){var c=a.Fa,d=wi(c);Ei(d,[1]).addCallback(function(){var a=d.getData(1),a=new sh(a),h=w(a,2),k=dq(c);this.Ba.Ja(b,["eu","zu"],this.Ab);var m=new Ze,p=bb(m.ii(),function(a,b){k.jc(b)&&a.push(m.get(b));return a},[]),u=ny(c);b.ppd(h).lud(xh(a)).$Ob(k.jc(Ct.Ova)).VOb(p).XOb(k.Bk(Ct.Rva)||
null).ePb(OBa(u)).Km(!!u&&u.Lc()&&1==Yeb(u));c.kd(wMb).addCallback(Lp(b.KMc,b,wMb))},a)},YA=function(a,b,c){this.Ab=a;this.mL=b;this.Sa=c||""};YA.prototype.Au=function(){return this.Ab};YA.prototype.getValue=function(){return this.mL};YA.prototype.lm=function(){return this.Sa};var UMc=function(){Jw.call(this,"profile")};t(UMc,Jw);q=UMc.prototype;q.hd=function(a){this.Sa.type=a;return this};q.wla=function(a){this.Sa.id=a;return this};q.Fi=function(a){UMc.ya.Fi.call(this,a);return this};
q.vR=function(a){UMc.ya.vR.call(this,a);return this};q.lG=function(a,b){UMc.ya.lG.call(this,a,b);return this};q.qLa=function(a){UMc.ya.qLa.call(this,a);return this};var dUc=function(){Jw.call(this,"photo-curation")};t(dUc,Jw);dUc.prototype.Ui=function(a){this.Sa.parent=a;return this};var fme=function(a,b){a.Sa.albumTitle=b;return a};dUc.prototype.UE=function(a){this.Sa.coverPhotoId=a;return this};var gme=function(a,b){a.Sa.eata=b;return a},hme=function(a){a.Sa.mode="t";return a};q=dUc.prototype;
q.setSize=function(a){this.Sa.thumbnailSize=a;return this};q.Fi=function(a){dUc.ya.Fi.call(this,a);return this};q.vR=function(a){dUc.ya.vR.call(this,a);return this};q.lG=function(a,b){dUc.ya.lG.call(this,a,b);return this};q.qLa=function(a){dUc.ya.qLa.call(this,a);return this};var dNc=function(){Jw.call(this,"photo-albums")};t(dNc,Jw);var ime=function(){var a=(new dNc).hd("uploadablealbums");a.Sa.allowNewAlbum=!0;return a},Dmd=function(a){var b=new dNc;b.Sa.ids=a.join(",");return b};q=dNc.prototype;
q.hd=function(a){this.Sa.type=a;return this};q.W6=function(a){this.Sa.excludeLabels=a;return this};q.Fi=function(a){dNc.ya.Fi.call(this,a);return this};q.vR=function(a){dNc.ya.vR.call(this,a);return this};q.lG=function(a,b){dNc.ya.lG.call(this,a,b);return this};q.qLa=function(a){dNc.ya.qLa.call(this,a);return this};var YMc=function(){Jw.call(this,"people")};t(YMc,Jw);q=YMc.prototype;q.hd=function(a){this.Sa.type=a;return this};q.Fi=function(a){YMc.ya.Fi.call(this,a);return this};
q.vR=function(a){YMc.ya.vR.call(this,a);return this};q.lG=function(a,b){YMc.ya.lG.call(this,a,b);return this};q.qLa=function(a){YMc.ya.qLa.call(this,a);return this};var eUc=function(a){this.Sa=a};eUc.prototype.toString=function(){var a={};a.ucid=this.Sa;return Rf(a)};var WMc=function(){Jw.call(this,"video-search")};t(WMc,Jw);var ttg=function(a){a.Sa.site="youtube.com";return a};WMc.prototype.Fi=function(a){WMc.ya.Fi.call(this,a);return this};WMc.prototype.vR=function(a){WMc.ya.vR.call(this,a);return this};
WMc.prototype.lG=function(a,b){WMc.ya.lG.call(this,a,b);return this};WMc.prototype.qLa=function(a){WMc.ya.qLa.call(this,a);return this};var XMc=function(){Jw.call(this,"image-search")};t(XMc,Jw);XMc.prototype.hd=function(a){this.Sa.type=a;return this};var CWf=function(a){a.Sa.license="crwm";return a};XMc.prototype.setSize=function(a){this.Sa.imgsz=a;return this};var hag=function(a,b){a.Sa.learnmoreurl=b;return a};XMc.prototype.Fi=function(a){XMc.ya.Fi.call(this,a);return this};
XMc.prototype.vR=function(a){XMc.ya.vR.call(this,a);return this};XMc.prototype.lG=function(a,b){XMc.ya.lG.call(this,a,b);return this};XMc.prototype.qLa=function(a){XMc.ya.qLa.call(this,a);return this};var ZMc=function(a,b){A.call(this,b);this.Fa=a};t(ZMc,A);ZMc.prototype.ka=function(){return this.Fa};H("sy647");
var Amg=function(a,b){this.Sa=[];this.Ab=b;for(var c=!0,d=a.length-1;0<=d;d--){var f=a[d]|0;c&&f==b||(this.Sa[d]=f,c=!1)}},Lmg={},Mmg=function(a){if(-128<=a&&128>a){var b=Lmg[a];if(b)return b}b=new Amg([a|0],0>a?-1:0);-128<=a&&128>a&&(Lmg[a]=b);return b},Eqg=function(a){if(isNaN(a)||!isFinite(a))return Log;if(0>a)return p2(Eqg(-a));for(var b=[],c=1,d=0;a>=c;d++)b[d]=a/c|0,c*=4294967296;return new Amg(b,0)},vrg=function(a,b){if(0==a.length)throw Error("me");var c=b||10;if(2>c||36<c)throw Error("ne`"+
c);if("-"==a.charAt(0))return p2(vrg(a.substring(1),c));if(0<=a.indexOf("-"))throw Error("xe");for(var d=Eqg(Math.pow(c,8)),f=Log,h=0;h<a.length;h+=8){var k=Math.min(8,a.length-h),m=parseInt(a.substring(h,h+k),c);8>k?(k=Eqg(Math.pow(c,k)),f=wrg(f,k).add(Eqg(m))):(f=wrg(f,d),f=f.add(Eqg(m)))}return f},Log=Mmg(0),Nrg=Mmg(1),Qrg=Mmg(16777216),usg=function(a){if(-1==a.Ab)return-usg(p2(a));for(var b=0,c=1,d=0;d<a.Sa.length;d++)var f=kwg(a,d),b=b+(0<=f?f:4294967296+f)*c,c=4294967296*c;return b};
Amg.prototype.toString=function(a){a=a||10;if(2>a||36<a)throw Error("ne`"+a);if(rwg(this))return"0";if(-1==this.Ab)return"-"+p2(this).toString(a);for(var b=Eqg(Math.pow(a,6)),c=this,d="";;){var f=Zyg(c,b),h=wrg(f,b),c=c.add(p2(h)),h=(0<c.Sa.length?c.Sa[0]:c.Ab).toString(a),c=f;if(rwg(c))return h+d;for(;6>h.length;)h="0"+h;d=""+h+d}};var kwg=function(a,b){return 0>b?0:b<a.Sa.length?a.Sa[b]:a.Ab},rwg=function(a){if(0!=a.Ab)return!1;for(var b=0;b<a.Sa.length;b++)if(0!=a.Sa[b])return!1;return!0};
Amg.prototype.equals=function(a){if(this.Ab!=a.Ab)return!1;for(var b=Math.max(this.Sa.length,a.Sa.length),c=0;c<b;c++)if(kwg(this,c)!=kwg(a,c))return!1;return!0};var $yg=function(a,b){var c=a.add(p2(b));return-1==c.Ab?-1:rwg(c)?0:1},p2=function(a){for(var b=a.Sa.length,c=[],d=0;d<b;d++)c[d]=~a.Sa[d];return(new Amg(c,~a.Ab)).add(Nrg)};
Amg.prototype.add=function(a){for(var b=Math.max(this.Sa.length,a.Sa.length),c=[],d=0,f=0;f<=b;f++){var h=d+(kwg(this,f)&65535)+(kwg(a,f)&65535),k=(h>>>16)+(kwg(this,f)>>>16)+(kwg(a,f)>>>16),d=k>>>16,h=h&65535,k=k&65535;c[f]=k<<16|h}return new Amg(c,c[c.length-1]&-2147483648?-1:0)};
var wrg=function(a,b){if(rwg(a)||rwg(b))return Log;if(-1==a.Ab)return-1==b.Ab?wrg(p2(a),p2(b)):p2(wrg(p2(a),b));if(-1==b.Ab)return p2(wrg(a,p2(b)));if(0>$yg(a,Qrg)&&0>$yg(b,Qrg))return Eqg(usg(a)*usg(b));for(var c=a.Sa.length+b.Sa.length,d=[],f=0;f<2*c;f++)d[f]=0;for(f=0;f<a.Sa.length;f++)for(var h=0;h<b.Sa.length;h++){var k=kwg(a,f)>>>16,m=kwg(a,f)&65535,p=kwg(b,h)>>>16,u=kwg(b,h)&65535;d[2*f+2*h]+=m*u;azg(d,2*f+2*h);d[2*f+2*h+1]+=k*u;azg(d,2*f+2*h+1);d[2*f+2*h+1]+=m*p;azg(d,2*f+2*h+1);d[2*f+2*h+
2]+=k*p;azg(d,2*f+2*h+2)}for(f=0;f<c;f++)d[f]=d[2*f+1]<<16|d[2*f];for(f=c;f<2*c;f++)d[f]=0;return new Amg(d,0)},azg=function(a,b){for(;(a[b]&65535)!=a[b];)a[b+1]+=a[b]>>>16,a[b]&=65535},Zyg=function(a,b){if(rwg(b))throw Error("pe");if(rwg(a))return Log;if(-1==a.Ab)return-1==b.Ab?Zyg(p2(a),p2(b)):p2(Zyg(p2(a),b));if(-1==b.Ab)return p2(Zyg(a,p2(b)));for(var c=Log,d=a;0<=$yg(d,b);){for(var f=Math.max(1,Math.floor(usg(d)/usg(b))),h=Math.ceil(Math.log(f)/Math.LN2),h=48>=h?1:Math.pow(2,h-48),k=Eqg(f),m= wrg(k,b);-1==m.Ab||0<$yg(m,d);)f-=h,k=Eqg(f),m=wrg(k,b);rwg(k)&&(k=Nrg);c=c.add(k);d=d.add(p2(m))}return c};
var sNc=function(a,b){tT.call(this,"set-drive-options");this.appId=a;this.appOrigin=b};t(sNc,tT);var tNc=function(a){tT.call(this,"visibility");this.visible=a};t(tNc,tT);var jme=function(){this.Sa=null;this.Ab=[]};jme.prototype.addCallback=function(a,b){if("onready"!==a)throw Error("Bl`"+a);var c=function(a){a.register("_ready",b,ja("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))};this.Sa?c(this.Sa):this.Ab.push(c)};var kme=function(a,b){a.Sa=b;v(a.Ab,function(a){a(b)});a.sendCommand=Lp(a.mL,a)};jme.prototype.mL=function(a){this.Sa.send("sendCommand",a,void 0,ja("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))};
var PNc=function(a){this.Sa=a;this.Ab=[];a.sendCommand||a.addCallback("onready",Lp(this.mL,this))};PNc.prototype.mL=function(){var a=this.Sa.sendCommand;if(!a)throw Error("hf");var b=this.Ab;v(b,function(b){a(b)});hb(b)};PNc.prototype.kM=function(a){var b=this.Sa.sendCommand;b?b(a):this.Ab.push(a)};PNc.prototype.setVisible=function(a){NNc(this.Sa).setVisible(a)};
var bzg=function(a){K(this,a,0,-1,[8])};t(bzg,J);bzg.prototype.wp=function(){return w(this,8)};var iNc=function(){Jw.call(this,"blog-search")};t(iNc,Jw);iNc.prototype.Fi=function(a){iNc.ya.Fi.call(this,a);return this};iNc.prototype.vR=function(a){iNc.ya.vR.call(this,a);return this};iNc.prototype.lG=function(a,b){iNc.ya.lG.call(this,a,b);return this};iNc.prototype.qLa=function(a){iNc.ya.qLa.call(this,a);return this};
var $Mc=function(){Jw.call(this,"crop")};t($Mc,Jw);$Mc.prototype.Dc=function(a){this.Sa.id=a;return this};var vig=function(a){a.Sa.service="picasa";return a};q=$Mc.prototype;q.Yc=function(a){this.Sa.url=a;return this};q.Fi=function(a){$Mc.ya.Fi.call(this,a);return this};q.vR=function(a){$Mc.ya.vR.call(this,a);return this};q.lG=function(a,b){$Mc.ya.lG.call(this,a,b);return this};q.qLa=function(a){$Mc.ya.qLa.call(this,a);return this};
var aNc=function(a){Jw.call(this,a||"all")};t(aNc,Jw);aNc.prototype.At=function(a){this.Sa.mode=a;return this};var bNc=function(){var a=new aNc("docs-images-and-videos");ia(!0)?a.Sa.ownedByMe=!0:delete a.Sa.ownedByMe;return a},cNc=function(a){a.Sa.includeFolders=!0;return a};q=aNc.prototype;q.Fi=function(a){aNc.ya.Fi.call(this,a);return this};q.vR=function(a){aNc.ya.vR.call(this,a);return this};q.lG=function(a,b){aNc.ya.lG.call(this,a,b);return this};q.qLa=function(a){aNc.ya.qLa.call(this,a);return this}; q.TX=function(a){this.Sa.items=a;return this};
var wU=function(){Jw.call(this,"et")};t(wU,Jw);var xU=function(a,b){a.Sa.category=b;return a};wU.prototype.Fi=function(a){wU.ya.Fi.call(this,a);return this};wU.prototype.vR=function(a){wU.ya.vR.call(this,a);return this};wU.prototype.lG=function(a,b){wU.ya.lG.call(this,a,b);return this};wU.prototype.qLa=function(a){wU.ya.qLa.call(this,a);return this};
var jNc=function(){Jw.call(this,"maps")};t(jNc,Jw);q=jNc.prototype;q.At=function(a){this.Sa.mode=a;return this};q.setZoom=function(a){this.Sa.zoom=a;return this};q.Fi=function(a){jNc.ya.Fi.call(this,a);return this};q.vR=function(a){jNc.ya.vR.call(this,a);return this};q.lG=function(a,b){jNc.ya.lG.call(this,a,b);return this};q.qLa=function(a){jNc.ya.qLa.call(this,a);return this};
var eNc=function(){Jw.call(this,"photo-caption")};t(eNc,Jw);var lme=function(a){var b=new eNc;b.Sa.ids=a;return b};eNc.prototype.Fi=function(a){eNc.ya.Fi.call(this,a);return this};eNc.prototype.vR=function(a){eNc.ya.vR.call(this,a);return this};eNc.prototype.lG=function(a,b){eNc.ya.lG.call(this,a,b);return this};eNc.prototype.qLa=function(a){eNc.ya.qLa.call(this,a);return this};
var fNc=function(){Jw.call(this,"photos");this.Sa.mode="edit"};t(fNc,Jw);fNc.prototype.qLa=function(a){this.Sa.parent=a;return this};var Gnd=function(a,b){a.Sa.ids=b.join(",");return a},mme=function(a){a.Sa.pd=!1;return a};fNc.prototype.Fi=function(a){fNc.ya.Fi.call(this,a);return this};fNc.prototype.vR=function(a){fNc.ya.vR.call(this,a);return this};fNc.prototype.lG=function(a,b){fNc.ya.lG.call(this,a,b);return this};
var kNc=function(){Jw.call(this,"url")};t(kNc,Jw);var vtg=function(a){a.Sa.site="youtube.com";return a};q=kNc.prototype;q.hd=function(a){this.Sa.type=a;return this};q.Fi=function(a){kNc.ya.Fi.call(this,a);return this};q.vR=function(a){kNc.ya.vR.call(this,a);return this};q.lG=function(a,b){kNc.ya.lG.call(this,a,b);return this};q.qLa=function(a){kNc.ya.qLa.call(this,a);return this};
var lNc=function(){Jw.call(this,"web")};t(lNc,Jw);lNc.prototype.Fi=function(a){lNc.ya.Fi.call(this,a);return this};lNc.prototype.vR=function(a){lNc.ya.vR.call(this,a);return this};lNc.prototype.lG=function(a,b){lNc.ya.lG.call(this,a,b);return this};lNc.prototype.qLa=function(a){lNc.ya.qLa.call(this,a);return this};
var czg=function(a){K(this,a,0,-1,[])};t(czg,J);q=czg.prototype;q.wc=function(){return w(this,2)};q.xg=function(a){Py(this,2,a)};q.Ic=function(){return w(this,3)};q.nm=function(a){Py(this,3,a)};q.rI=function(){return w(this,6)};var yU=function(a){this.Ab=qa(a)?new Jw(a):a;this.Sa=[];this.mL={}},mNc=function(a){switch(a){case "blog-search":return new iNc;case "image-search":return new XMc;case "maps":return new jNc;case "photos":return new bB;case "url":return new kNc;case "video-search":return new WMc;case "web":return new lNc}return new Jw(a)};yU.prototype.jf=function(a){this.Sa.push(qa(a)?mNc(a):a);return this};
var nNc=function(a){return"("+zg(a.Sa,function(a){return a.toString()}).join(",")+")"},oNc=function(a){a=Paa(a.mL,function(a){return null!==a});return(a=Ub(a)?null:a)?Rf(QWa(a,function(a){return a.toString()})):""};yU.prototype.toString=function(){if(this.Ab){var a=["{root:",this.Ab.toString(),",items:",nNc(this)],b=oNc(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return nNc(this)};
var nme=function(a){var b=zg(a.Sa,function(a){return a instanceof yU?nme(a):a.Pe()});return a.Ab?{root:a.Ab.Pe(),items:b,options:a.getOptions()}:b},pNc=function(a,b){for(var c=a.Sa,d=0;d<c.length;d++){var f=c[d];if(f instanceof yU&&pNc(f,b)||f instanceof Jw&&f.getId()==b)return!0}return!1};yU.prototype.Po=function(a,b){b=b||[];for(var c=this.Sa,d=0;d<c.length;d++){var f=c[d];f instanceof yU?f.Po(a,b):f.getId()==a&&b.push(f)}return b};yU.prototype.getOptions=function(){return Xb(this.mL)};
var qNc=function(a){this.mL=a||"https://docs.google.com/picker";this.Vba=new yU};q=qNc.prototype;q.Vba=null;q.wb=null;q.jf=function(a){this.Vba.jf(a);return this};q.Ea=function(){return this.wb};q.Po=function(a){return this.Vba.Po(a)};q.yTb=function(a){return pNc(this.Vba,a)};var rNc=function(a){return a.setTitle("")};qNc.prototype.jY=function(a){this.nn=a;return this};qNc.prototype.fCa=function(){return this};
var uNc=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},wNc=null,vNc=function(a,b){var c=b&&b.getWindow()||window;if(uNc(b))a();else if(wNc)wNc.push(a);else var d=wNc=[a],f=c.setInterval(function(){if(uNc(b)){c.clearInterval(f);for(var a=0;a<d.length;a++)d[a]();wNc=null}},100)};
var BNc,zNc=function(a,b){var c=rc(a),d=c.width-80,c=c.height-40;b&&(d-=b.left?b.left:0,d-=b.right?b.right:0,c-=b.top?b.top:0,c-=b.bottom?b.bottom:0);return new Kb(0<d?d:0,0<c?c:0)},ANc=function(a,b,c){b?(b=Math.max(566,Math.min(1051,b)),c||(a=rc(a),c=.85*a.height),a=Math.max(350,Math.min(650,c))):(a=rc(a),b=.618*a.width,a=b<a.height?Math.round(Math.max(350,Math.min(650,.85*b))):Math.round(Math.max(350,Math.min(650,.85*a.height))),b=Math.round(a/.618));return new Kb(b,a)};
var URb=function(a){qNc.call(this,a)};t(URb,qNc);var CMc=function(a,b){this.Kf=a||new kc;this.Ab=Lp(this.Qb,this);this.Sa=Lp(this.$b,this);this.mL=!!b};t(CMc,kd);q=CMc.prototype;q.xia=!1;q.xb=null;q.kD=null;q.sU=null;q.zya=null;q.cb=function(){this.render();return this.zya};
var DMc=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)},lgf=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)},FMc=function(a){a.kD&&(lgf(a.kD,"scroll",a.Sa),lgf(a.kD,GMc(a),a.Sa))},GMc=function(a){return"undefined"!=typeof a.Kf.getWindow().Ab?"DOMMouseScroll":"mousewheel"};
CMc.prototype.render=function(){if(!this.xb){var a=this.Kf;this.sU=a.Pa("iframe",{frameborder:0,style:"border:0;left:0;position:absolute;top:0;vertical-align:bottom;z-index:1101",src:'javascript:""'});On(this.sU,!1);qe(this.sU,0);this.kD=a.Pa("div",{style:"background:#fff;display:none;left:0;position:absolute;top:0;z-index:1101"});On(this.kD,!1);qe(this.kD,.5);var a=this.Kf,b=this.xb=a.Pa("div",{style:"background:#fff;border:1px solid #bebebe;box-shadow:rgba(0,0,0,.2) 0 4px 16px;height:auto;overflow:hidden;position:absolute;width:auto;z-index:1101;-moz-box-shadow:rgba(0,0,0,.2) 0 4px 16px;-webkit-box-shadow:rgba(0,0,0,.2) 0 4px 16px",
name:"dialog"},this.zya=a.Pa("div"));b.setAttribute("role","dialog");b.rvc="dialog";this.xb.style.visibility="hidden";Vd(this.xb,-1E4,-1E4);a=a.La().body;a.appendChild(this.sU);a.appendChild(this.kD);a.appendChild(this.xb)}};
CMc.prototype.setVisible=function(a){a!=this.xia&&(this.xb||this.render(),a?(IMc(this),DMc(this.Kf.getWindow(),"resize",this.Ab),this.kD&&(DMc(this.kD,"scroll",this.Sa),DMc(this.kD,GMc(this),this.Sa))):(lgf(this.Kf.getWindow(),"resize",this.Ab),FMc(this)),On(this.sU,a),On(this.kD,a),a?JMc(this):(this.xb.style.visibility="hidden",Vd(this.xb,-1E4,-1E4)),(this.xia=a)&&"hidden"==this.xb.style.visibility&&(this.xb.style.visibility="visible"),a?this.focus():this.mL&&this.Ma())};CMc.prototype.dc=function(){return this.xia};
CMc.prototype.focus=function(){try{this.xb.focus()}catch(a){}};var IMc=function(a){On(a.sU,!1);On(a.kD,!1);var b=a.Kf.La(),c=rc(sc(b)||window),d=Math.max(b.body.scrollWidth,c.width),b=Math.max(b.body.scrollHeight,c.height);On(a.sU,!0);le(a.sU,d,b);On(a.kD,!0);le(a.kD,d,b)};CMc.prototype.Qb=function(){IMc(this);JMc(this)};CMc.prototype.$b=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0};
var JMc=function(a){var b=a.xb,c=zy(b),d=a.Kf;a=fd(d);var f=rc(d.getWindow()),d=Math.max(a.x+(f.width-c.width)/2,0),c=Math.max(a.y+(f.height-c.height)/2,0);Vd(b,d,c)};CMc.prototype.setSize=function(a,b){le(this.zya,a,b);JMc(this)};CMc.prototype.qb=function(){this.xia&&(lgf(this.Kf.getWindow(),"resize",this.Ab),FMc(this));this.xb&&(Fc(this.xb),this.xb=null);this.kD&&(Fc(this.kD),this.kD=null);this.sU&&(Fc(this.sU),this.sU=null)};
var MNc=function(a){this.Kf=a};MNc.prototype.initialize=function(){var a=this.Kf.getWindow(),b=a.iframes||a.parent.iframes;if(b&&b.setHandler){var c={};c.onOpen=Lp(this.mL,this);c.onClose=Lp(this.Ab,this);b.setHandler("onepick",c)}(a=(a.gapi||a.parent.gapi||{}).iframes)&&a.registerStyle("onepick",Lp(this.Sa,this))};
var NNc=function(a){a=a.getOpenParams().onepick_dialog;if(!a)throw Error("ff");return a},xne=function(a,b){var c=new CMc(a.Kf,b.disposeOnHide);b.onepick_dialog=c;c.render();var d=ANc(a.Kf.getWindow(),b.width,b.height);c.setSize(d.width,d.height);c.setVisible(!0);return c},ooe=function(){return{style:"border:0;height:100%;overflow:hidden",allowtransparency:"true"}};MNc.prototype.mL=function(a){var b=a.getOpenParams(),b=xne(this,b);a.openInto(b.cb(),ooe())}; MNc.prototype.Sa=function(a){var b=xne(this,a);a.where=b.cb();a.attributes=ooe();a.onClose=Lp(function(a){a.setVisible(!1)},this,b)};MNc.prototype.Ab=function(a){NNc(a).setVisible(!1)};
var ome=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Add}male{Add}other{Add}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},pme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Add album}male{Add album}other{Add album}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},sme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Add text to photo}male{Add text to photo}other{Add text to photo}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},tme=function(){return Y("Add video")},vme=function(){return Y("Albums")},
wme=function(){return Y("Auto Backup")},xme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Browse people}male{Browse people}other{Browse people}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Cme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Copy}male{Copy}other{Copy}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Fme=function(){return Y("Done")},Hme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Enter a URL}male{Enter a URL}other{Enter a URL}}"),{VIEWER_GENDER:c.Aa});
return Y(a+c)},Ime=function(){return Y("Gallery")},Jme=function(){return Y("Google Drive")},Dag=function(){return Y("Google Image Search")},Kme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Move}male{Move}other{Move}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Mme=function(){return Y("Photos")},Nme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Publish}male{Publish}other{Publish}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Ome=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Record video}male{Record video}other{Record video}}"),
{VIEWER_GENDER:c.Aa});return Y(a+c)},Qme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Select}male{Select}other{Select}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Rme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Select a theme}male{Select a theme}other{Select a theme}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Sme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Select contact photo}male{Select contact photo}other{Select contact photo}}"),{VIEWER_GENDER:c.Aa});
return Y(a+c)},Tme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Select cover photo}male{Select cover photo}other{Select cover photo}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Ume=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Select profile photo}male{Select profile photo}other{Select profile photo}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Vme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Set as profile photo}male{Set as profile photo}other{Set as profile photo}}"),
{VIEWER_GENDER:c.Aa});return Y(a+c)},Wme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Set as community photo}male{Set as community photo}other{Set as community photo}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},Xme=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Set as theme}male{Set as theme}other{Set as theme}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},bne=function(){return Y("Birthday")},cne=function(){return Y("Food and dining")},dne=function(){return Y("Party")},ene=function(){return Y("Just kids")},
fne=function(){return Y("Wedding")},gne=function(){return Y("Night out")},hne=function(){return Y("Sports and games")},ine=function(){return Y("Travel")},jne=function(){return Y("Other")},kne=function(){return Y("Seasonal")},lne=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Upload}male{Upload}other{Upload}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},mne=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Upload from computer}male{Upload from computer}other{Upload from computer}}"),
{VIEWER_GENDER:c.Aa});return Y(a+c)},nne=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Upload video}male{Upload video}other{Upload video}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},pne=function(){return Y("YouTube Videos")},qne=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Your YouTube videos}male{Your YouTube videos}other{Your YouTube videos}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)},vne=function(a,b,c){return Y(Q(rn("sk","")(null,null,c)))},KTd=function(a,b,c){a="";c= wA(new Z("{VIEWER_GENDER,select,female{Photos tagged of your business}male{Photos tagged of your business}other{Photos tagged of your business}}"),{VIEWER_GENDER:c.Aa});return Y(a+c)};
var xNc=function(a,b){var c=new PG(a);x(b,c);b.Ja(c,"mousewheel",Lp(yNc,void 0,a)).Ja(a,"scroll",Lp(yNc,void 0,a))},yNc=function(a,b){var c=BMc(b.target);if(!c||!Oc(a,c)||c.scrollHeight==c.clientHeight||0<b.deltaY&&1>=Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))||0>b.deltaY&&0==c.scrollTop)b.preventDefault(),b.stopPropagation()};
var WRb=function(a,b,c){jx.call(this,a,b,c)};t(WRb,jx);var AU=function(a,b,c,d,f){jx.call(this,"a G-q",!0,c);this.Sa=Ta();this.Ab=Ta();this.Yc(a);this.Vk=d;this.Vb=f;ia(void 0)?c=void 0:ia(d)||ia(f)?c=!0:(c=Jf(a).Pg("hostId"),BNc||(BNc=new df("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),c=!BNc.contains(c));this.$b=c;b&&(Jf(a).Pg("hostId"),b=this.Ea(),uNc(b)||(b=b||jc(document),c=b.createElement("script"),c.src="//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick",
c.type="text/javascript",b.La().body.appendChild(c)));b=null;c=a.indexOf("/picker?");-1<c?b=a.substring(0,c+8-1):za(a,"/picker")&&(b=a);b&&CNc(this,b+"/resources/rpc_relay.html");this.ep=!1;this.Qd(null)};t(AU,WRb);q=AU.prototype;q.H1="";q.ska=null;q.XUa=!1;q.nn=ka;q.Na=function(){AU.ya.Na.call(this);xNc(this.hg(),this.getHandler())};
q.render=function(a){AU.ya.render.call(this,a);a=this.H1;this.ska=this.Kf.Pa("iframe",{id:this.Sa,name:this.Sa,"class":"a-Bb",src:roe(this),onload:Lp(this.Oa,this),frameBorder:"0"});this.cb().appendChild(this.ska);Sc(this.ska,!0);Qn(this.ta(),"picker-dialog");this.ska.src=a;soe(this,Lp(function(a){a.setAuthToken(this.Sa,this.Ab)},this));(a=Jf(this.H1).Pg("title"))&&this.setTitle(a)};var roe=function(a){return xc&&Gf("7")&&ya(a.H1,"https")?"https://about:blank":'javascript:""'};
AU.prototype.Oa=function(){var a=this.Ea().getWindow();this.ska.src==roe(this)?this.getHandler().Ja(a,"keydown",this.Qb):this.getHandler().nb(a,"keydown",this.Qb)};AU.prototype.Qb=function(a){27==a.keyCode&&(this.setVisible(!1),this.nn({action:"cancel"}))};var soe=function(a,b){var c=a.Ea();vNc(function(){b(c.getWindow().gadgets.rpc)},c)};AU.prototype.Yc=function(a){this.H1=Hf(Hf(new Af(a),"rpctoken",this.Ab),"rpcService",this.Sa).toString();this.ska&&(this.ska.src=a)};
AU.prototype.jY=function(a){this.nn=a;soe(this,Lp(function(a){a.register(this.Sa,Lp(this.YY,this))},this))};AU.prototype.YY=function(a){var b=a.action;"loaded"==b&&(this.XUa=!0,toe(this),px(this,!1));"picked"!=b&&"cancel"!=b||this.setVisible(!1);this.nn(a)};var toe=function(a){a.mL&&a.kM(new sNc(a.mL,window.location.protocol+"//"+window.location.host))},CNc=function(a,b){soe(a,Lp(function(a){a.setRelayUrl(this.Sa,b)},a))};q=AU.prototype;
q.kM=function(a){soe(this,Lp(function(b){b.call(this.Sa,"picker",null,a)},this))};q.FQa=function(){var a=this.Ea().La(),a=sc(a)||window;if("true"==Jf(this.H1).Pg("shadeDialog"))var b=Ae(lF(this)),a=zNc(a,b);else a=ANc(a,this.Vk,this.Vb);le(this.cb(),a);this.Wd()};
q.Wd=function(){if("true"==Jf(this.H1).Pg("shadeDialog")){var a=oe(this.ta()),b=rc(this.Ea().getWindow()),a=Math.floor(b.width/2-a.width/2);if(b=Ae(lF(this))){var c;c=0+(b.left?b.left:0);c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=0<a?a:0;b=fd(this.Ea()).y;Vd(this.ta(),a,b)}else AU.ya.Wd.call(this)};
q.setVisible=function(a){if(a!=this.dc()&&this.$b){var b=this.Ea().La(),b=sc(b)||window;a?(this.FQa(),this.getHandler().Ja(b,"resize",this.FQa)):this.getHandler().nb(b,"resize",this.FQa)}AU.ya.setVisible.call(this,a);this.kM(new tNc(a))};q.focus=function(){AU.ya.focus.call(this);if(this.ska)try{this.ska.focus()}catch(a){}};
var ONc=function(){kd.call(this)};t(ONc,kd);la(ONc);
ONc.prototype.Sa=function(a,b){var c=b.type;if("album"==c){var c=La(b.name||""),d=La(b.description||""),f=b.url,h;h=qC(c)?null:qC(void 0)?c:c+" by undefined";var c=[new YA("http://google.com/profiles/media/provider","picasa")],k;ia(void 0)&&(k=new YA("http://google.com/profiles/media/additional_metadata",(void 0).toString(),"album_summary_type"),c.push(k));d=new yv(f||void 0,h||void 0,d||void 0,"text/html","document");d.Ab=c;return d}var m=b.id,p=b.serviceId,u=b.url,z=La(b.name||""),F=La(b.description||
""),M=b.thumbnails;if(!M||!M.length)return null;f=M[M.length-1];h=new Kb(f.width,f.height);k=h.clone();h.Cr(a);var X=f.url,da=X,f=[];"search-api"==p||"youtube"==p?(d="youtube",k=new Uya(m,z,F)):("picasa"==p&&(d="picasa",X=Cu(M[0].url),da=Du(X,a.width,!1)),b.id&&b.parentId&&f.push(new YA("http://google.com/profiles/media/onepick_media_id","albumid="+b.parentId+"&photoid="+b.id)),m=new yv(u,F,z),m.Sa=new Bv(X,0,k),k=m);"video"==c?k.hd("application/x-shockwave-flash").mL="video":k.hd("image/jpeg").mL= "image";c=new Av(da,h);f.push(new YA("http://google.com/profiles/media/provider",d));d=k.ZE([c,c]);d.Ab=f;return d};
var INc=function(a){qNc.call(this,a);this.Ab=new Af(this.mL);JNc(this,"gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.n5(a);this.Qb=[]};t(INc,URb);q=INc.prototype;q.rab=!1;q.Ry=function(a,b){this.Qb.push([a,b||{}]);return this};
q.Le=function(){this.Ab.Pg("relayUrl")||KNc(this,Cf(Ef(Df(Jf(window.location.href),void 0),""),"/favicon.ico").toString());if(Boolean(this.Ab.Pg("minimal")))throw Error("Cl");var a=new AU(this.cNa().toString(),!0,this.Ea(),this.Oa,this.$b);a.ud(this.rab);a.mL=this.Ag;a.XUa&&toe(a);a.jY(this.nn);return a};q.Gk=function(a){Hf(this.Ab,a,"true");return this};q.bNa=function(){return this.rab};q.Ic=function(){return this.$b};q.Cra=function(){return this.Ab.Pg("protocol")};q.getTitle=function(){return this.Ab.Pg("title")};
q.wc=function(){return this.Oa};q.FYb=function(a){Hf(this.Ab,"apt",a);return this};q.zTb=function(a){Hf(this.Ab,"actions",a.join(","));return this};q.ATb=function(a){Hf(this.Ab,"authuser",a);return this};q.yla=function(a){Hf(this.Ab,"cropMode",a);return this};q.ud=function(a){this.rab=a;return this};q.BTb=function(a){Hf(this.Ab,"eventId",a);return this};q.m5=function(a){Hf(this.Ab,"maxItems",a);return this};q.myb=function(a){Hf(this.Ab,"minItems",a);return this};
q.CTb=function(a){Hf(this.Ab,"excludeIds",a.join(","));return this};q.LUa=function(a){Hf(this.Ab,"e",a.join(","));return this};q.Frc=function(a){Hf(this.Ab,"fdtm",a);return this};q.uM=function(a){Hf(this.Ab,"groupId",a);return this};q.v$a=function(a){Hf(this.Ab,"hostId",a);return this};q.n5=function(a){a&&Hf(this.Ab,"origin",a);return this};q.aZb=function(a){a instanceof Jw?Hf(this.Ab,"view",a.toString()):Hf(this.Ab,"view",a);return this};q.DTb=function(a){Hf(this.Ab,"hl",a);return this};
q.Wba=function(a,b){Hf(this.Ab,"minSize",a+"x"+b);return this};var JNc=function(a,b){Hf(a.Ab,"protocol",b);return a},KNc=function(a,b){Hf(a.Ab,"relayUrl",b);return a};q=INc.prototype;q.xs=function(a){Hf(this.Ab,"selectButtonLabel",a);return this};q.setSize=function(a,b){this.Oa=a;this.$b=b;return this};q.kY=function(a){Hf(this.Ab,"thumbs",a);return this};q.Hdb=function(a){Hf(this.Ab,"uploadButton",a.toString());return this};q.Xba=function(a){Hf(this.Ab,"uploadToAlbumId",a);return this};
q.setTitle=function(a){Hf(this.Ab,"title",a);return this};q.fYa=function(a){Hf(this.Ab,"actionPaneText",a);return this};q.NUa=function(a){Hf(this.Ab,"vg",a?a.charAt(0):void 0);return this};q.cNa=function(){this.Qb.length&&Hf(this.Ab,"pp",Rf(this.Qb));return Hf(this.Ab,"nav",nNc(this.Vba)).clone()};
var QNc=function(a){Ld.call(this);this.Fa=a;this.Kf=T(a).Ea();this.ha=V(a);this.Ab=Ti(Gi(a).Sa);this.Vb=[];this.YY="";this.Sa=null;this.Vk=!1;this.mL=this.Qb=null;this.Ag=!1;this.Oa=this.$b=null};t(QNc,Ld);QNc.prototype.ka=function(){return this.Fa};
QNc.prototype.open=function(a,b,c,d,f,h,k){this.dispatchEvent(new ZMc(this.Fa,"eu"));d||this.YFb();a.v$a(c);(c=(new Ff(window.location.search.substring(1))).get("claimedOrigin"))&&a.n5(c);c={style:"onepick",disposeOnHide:a.bNa(),height:a.Ic(),width:a.wc()};b=Lp(this.ttb,this,b);d=null;h&&(d=this.Kf.La().body);(ia(k)?k:Gic(this.Kf.getWindow().location.href))?a=uoe(this,a,d,c,b):(h=d,k=this.Kf.getWindow(),k=k.iframes||k.parent.iframes,h&&(c.container=h),a=k.open(a.cNa().toString(),c,{},{message:b},
b));if(a)return new PNc(a);throw Error("jf");};var uoe=function(a,b,c,d,f){a=a.Kf.getWindow();var h=(a.gapi||a.parent.gapi||{}).iframes;d.url=b.cNa().toString();d.messageHandlers={message:f};d.messageHandlersFilter=h.CROSS_ORIGIN_IFRAMES_FILTER;c?d.where=c:d.relayOpen=-1;b=h.getContext();var k=new jme;b.open(d,function(a){a.registerWasClosed(f,h.CROSS_ORIGIN_IFRAMES_FILTER);kme(k,a)});return k};q=QNc.prototype;
q.ttb=function(a,b){var c=b.action;"picked"!=c&&"cancel"!=c||this.dispatchEvent(new ZMc(this.Fa,"zu"));a(b)};q.Ea=function(){return this.Kf};q.YFb=function(){this.Qb||(this.Qb=new MNc(this.Kf),this.Qb.initialize())};q.ppd=function(a){0>a.indexOf("//")&&(a="//"+a);this.YY=a;return this};q.VOb=function(a){this.Vb=a;return this};q.KMc=function(){};q.ePb=function(a){this.Db=a;return this};q.lud=function(a){this.Sa=a;return this};q.XOb=function(a){this.mL=a;return this};q.$Ob=function(a){this.Vk=a;return this};
q.Hqc=function(){return this.Sm().setTitle(NX(this,Rme)).xs(NX(this,Xme)).kY("default").Wba(1200,300).setSize(747).yla("f").Ry("cropphoto").Gk("odv").jf(xU((new wU).Fi(NX(this,kne)),"seasonal")).jf(xU((new wU).Fi(NX(this,bne)),"birthday")).jf(xU((new wU).Fi(NX(this,cne)),"dinner")).jf(xU((new wU).Fi(NX(this,dne)),"party")).jf(xU((new wU).Fi(NX(this,ene)),"children")).jf(xU((new wU).Fi(NX(this,fne)),"wedding")).jf(xU((new wU).Fi(NX(this,gne)),"nightlife")).jf(xU((new wU).Fi(NX(this,hne)),"sport")).jf(xU((new wU).Fi(NX(this,
ine)),"travel")).jf(xU((new wU).Fi(NX(this,jne)),"other")).jf((new bB).W6(["profile_photos"])).jf((new jN("photo")).Fi(NX(this,lne)).lG("albumless","true").lG("photos_only","true"))};q.mHa=function(a,b){var c={};c.mode=b?"ctpac":"ctpam";c.ids=a.join(",");return this.Sm().jf(ime()).Gk("navHidden").xs(NX(this,b?Cme:Kme)).Ry("ctpa",c)};
q.o_b=function(a,b){var c=rNc(this.Sm().Gk("horizNav").Gk("shadeDialog").xs(NX(this,ome)).kY("default").ud(!0).Ry("polls",a&&{albumId:a})),d=(new jN("photo")).Fi(NX(this,lne));a?d.lG("album_id",a):d.lG("album_mode","temporary");c.jf(d);var f=(new bB).Fi(NX(this,Mme)).hd("flat");c.jf(f);var h=mRf((new bB).Fi(NX(this,vme)),["photo","video"]);c.jf(h);var k=Hf(new Af("http://support.google.com/plus?p=polls#imagesearch"),"hl","en-US".replace("-","_"));this.Sa&&Hf(k,"authuser",this.Sa);k=hag(CWf((new XMc).Fi(NX(this,
Dag))),k.toString());c.jf(k);(d=cb([d,f,h,k],function(a){return a.lm()==b}))&&c.aZb(d);return c};var wig=function(a,b,c){b=vig((new $Mc).Dc(b).qLa(c));return a.Sm().xs(NX(a,Fme)).jf(b).Gk("navHidden").ud(!0)};q=QNc.prototype;q.Rcd=function(a,b,c){a=rNc(wig(this,b,a).yla("f")).Ry("polls",{photoId:b,albumId:a});c&&a.Wba(c.width,c.height);return a};
q.zGa=function(a,b,c,d){a=vig((new $Mc).Dc(a).qLa(b));c&&(a.Sa.coords=[c.top,c.right,c.bottom,c.left].join());d&&(a.Sa.userId=d);return this.Sm().setTitle(NX(this,Ume)).xs(NX(this,Vme)).kY("default").jf(a).Gk("navHidden").Gk("profilePhoto")};
q.Gyb=function(){var a=this.Sm().setTitle("").xs(NX(this,Tme)).kY("default").Ry("profileBanner").Wba(480,270).yla("f").Gk("horizNav").Gk("shadeDialog");a.jf((new bB).Fi(NX(this,Ime)).hd("bannergallery"));a.jf((new jN("photo")).Fi(NX(this,lne)).lG("auto_create_album","profile_photos.draft"));a.jf((new bB).Fi(NX(this,vme)).W6(["profile_photos"]));a.jf((new bB).hd("banner"));return a};
q.f0a=function(a,b){var c=this.Sm().setTitle("").xs(NX(this,Vme)).kY("default").Wba(250,250).Gk("horizNav").Gk("shadeDialog");if(a){var d={};d.sqid=a;c.xs(NX(this,Wme)).yla("gpsq").Ry("sqprofile",d)}else c.Gk("profilePhoto");c.jf((new jN("profile")).Fi(NX(this,lne)));d=(new bB).Fi(NX(this,vme));if(this.Ag&&null!=this.Oa&&null!=this.$b){var f=d.hd("localalbum");f.Sa.localalbum=this.$b;f.Sa.localuser=this.Oa}c.jf(d);a||(d=(new bB).hd("ofuser"),this.Ag&&d.Fi(NX(this,KTd)),c.jf(d));b||SNc(c);return c};
q.Xab=function(){var a=this.Sm().setTitle("").xs(NX(this,vne)).kY("default").Wba(480,160).yla("f").Ry("cropphoto").Gk("horizNav").Gk("shadeDialog");a.jf((new jN("photo")).Fi(NX(this,lne)).lG("album_mode","temporary"));a.jf((new bB).Fi(NX(this,vme)).lG("album_mode","temporary"));return a};q.vqc=function(){return this.Sm().setTitle(NX(this,Sme)).xs(NX(this,Qme)).kY("96-c").Wba(96,96).Gk("simpleUploadEnabled").jf(new bB).jf((new jN("photos")).lG("albumless","true").Fi(NX(this,lne))).jf((new UMc).hd("np")).Ry("cropphoto").yla("f")};
var RNc=function(){return 0>fa.indexOf("CrOS")&&0<=Xa(OJ,"10.1")},SNc=function(a){RNc()&&a.jf(new f0b("profile","photos"))};QNc.prototype.dw=function(a,b){return TNc(this,a,b).jf(hme(fme((new dUc).Fi(NX(this,lne)),b)).lG("album_mode","temporary")).jf((new bB).Fi(NX(this,Mme)).hd("flat")).jf(NMc(OMc(PMc((new bB).Fi(NX(this,vme))).W6(["camera_sync","profile_photos","profiles_scrapbook"])),NX(this,pme))).jf(cNc(bNc().Fi(NX(this,Jme)))).setTitle("").m5(this.mL).xs(NX(this,ome)).Gk("multiselectEnabled").Gk("horizNav").Gk("shadeDialog").Ry("album")};
QNc.prototype.Op=function(a,b,c){return TNc(this,b,c).Gk("navHidden").jf(mme(Gnd(new fNc,a).vR(!0)))};QNc.prototype.Ko=function(a,b,c){return TNc(this,b,c).Gk("navHidden").jf(Dmd(a)).Ry("album")};var TNc=function(a,b,c){var d="Add photos to "+c,f={};f.evid=b;f.albumName=c;return a.Sm().BTb(b).setTitle(d).xs(NX(a,Fme)).Gk("multiselectEnabled").Ry("ipfd").Ry("atec",f).Ry("bulkTag")};q=QNc.prototype;
q.ocd=function(a,b,c,d,f,h,k,m){d="Upload public photos of "+d;k?(b=new jN("photos"),c="geopix",a={cid:k,photoProvider:m}):(k=new czg,m=new bzg,Lg(k,5,m),m=N(k,bzg,5),Py(m,1,b),Py(m,2,c),b=vrg(a.split(":")[1],16).toString(10),Py(k,13,b),b=(new jN("dragonflyphotos")).lG("photo_metadata",k.le()),f&&b.lG("upload_source",f),c="sptm",a={featureId:a,shareTarget:h,photoSource:f});b.lG("streamid","updates");f=b;VNc(this)&&(h=this.Ab.getValue("oid"),f.lG("owner_name",Ga(h)));d=this.Sm().kY("default").jf(b).jf(new bB).Ry(c,
a).setTitle(d).Gk("multiselectEnabled").xs(NX(this,Nme)).FYb("sp");this.Ab&&this.Ab.getValue("vie")||d.jf((new bB).Fi(NX(this,wme)).hd("camerasync"));return d};q.Sm=function(){var a="//"+window.location.host+"/resources/rpc_relay.html",a=JNc(KNc(new INc(this.YY),a),"iframes"),b=new Af(this.Ea().La().URL);(b=b.Pg("origin")||b.Pg("parent"))&&a.n5(b);UNc(this,a);return a};
q.YHa=function(a,b,c,d,f,h){b=fme(new dUc,b);b.Sa.ifp=c;c=hme(gme(b.setSize(d),!!f));c.Sa.mtp=h;a?c.Ui(a):c.lG("album_mode","temporary");h=rNc(this.Sm().jf(c).xs(NX(this,ome))).Gk("multiselectEnabled").Gk("navHidden").Gk("shadeDialog").m5(this.mL).ud(!0);a?h.Xba(a).xs(NX(this,Fme)):h.Ry("bulkTag").Frc(5E3);return h};
q.fZb=function(a,b,c,d){b=this.Sm().ud(!0).myb(b).setTitle(c||"").xs(NX(this,Fme)).Gk("navHidden").Gk("shadeDialog");a=(new bB).hd("moment").qLa(a);d?mRf(a,["photo"]):b.Gk("multiselectEnabled");b.jf(a);return b};
q.jHa=function(a,b,c,d,f){var h={};h.includeAllDocs=!!d;h.eata=!!d;h.mtp=f;h.finalizeAlbum=!d;h.albumName=b;b=rNc(this.Sm()).m5(this.mL).ud(!0).xs(NX(this,ome)).Gk("multiselectEnabled").Gk("horizNav").Gk("shadeDialog").Hdb(new eUc("photos"));this.Ab&&this.Ab.getValue("vie")||!1===c||b.jf((new bB).Fi(NX(this,Mme)).hd("flat"));b.jf((new bB).Fi(NX(this,vme))).jf(cNc(bNc().Fi(NX(this,Jme))));c=new dUc;c.Sa.che=!0;c=c.Fi(NX(this,mne));c.Sa.upload=!0;c=hme(gme(c.Ui(a),!!d));c.Sa.mtp=f;d?b.jf(c):jb(b.Vba.Sa,
qa(c)?mNc(c):c,0);b.Ry("ipfd").Ry("photosharing");d&&b.Ry("photocuration",h).Ry("bulkTag");a&&b.Xba(a);return b};q.Nrc=function(){var a=rNc(this.Sm().xs(NX(this,tme)).jf(ttg((new WMc).Fi(NX(this,pne)))).jf(vtg((new kNc).Fi(NX(this,Hme)).hd("video")))).Gk("horizNav");VNc(this)||a.jf((new Jw("youtube")).Fi(NX(this,qne)));RNc()&&a.jf((new f0b("video","photos")).lG("streamid","updates").Fi(NX(this,Ome)));a.jf((new jN("videos")).Fi(NX(this,nne)));return a};
q.Cyb=function(a){return this.Sm().setTitle(NX(this,sme)).Gk("navHidden").jf(lme(a))};q.yra=function(a,b,c,d,f){var h=new YMc;h.Sa.peopleFilter=a?a.Sa:void 0;h.Sa.hfpl=!!d;h.Sa.noEmailInput=!!b;h.Sa.selectNone=!!c;f&&h.qLa(f);return this.Sm().setTitle(NX(this,xme)).xs(NX(this,Fme)).Gk("multiselectEnabled").jf(h)};q.mbb=function(a){var b=(new jNc).At("point");a&&(b.Sa.center=[w(a,1),w(a,2)],b.Sa.placemark=[w(a,1),w(a,2)],b.setZoom(13));return this.Sm().jf(b).Gk("navHidden")};
var UNc=function(a,b){b.zTb(["loaded"]).LUa(a.Vb).DTb("en-US".replace("-","_")).NUa(a.Db).kY("orig").Gk("showroomNav").Gk("driveSortHidden");null===a.Sa||b.ATb(a.Sa);b.Gk("shapeSuggestions");b.Gk("faceRecoPromo");a.Vk&&b.Gk("pcpfe");if(VNc(a)){var c=a.Ab.getValue("oid");b.uM(Ga(c))}};QNc.prototype.jg=function(a,b){if(a&&"picked"==a.action){var c=a.docs;if(0<c.length&&(c=c[0].thumbnails,0<c.length))return c[b?c.length-1:0].url}};
QNc.prototype.lp=function(a){var b=m1c,c=ONc.ia();return zg(a,Lp(c.Sa,c,b))};var VNc=function(a){if(!a.Ab)return!1;var b=a.Ab.getValue("oid");a=a.Ab.getValue("aid");return!!b&&!!a&&b!=a};QNc.prototype.Km=function(a,b,c){this.Ag=a;this.Oa=b||null;this.$b=c||null};var NX=function(a,b){return a.ha.render(b,void 0)};

G("sy647");I();
}catch(e){_DumpException(e)}
try{
H("sy813");var rWd=function(a){kd.call(this);this.wb=a||jc();this.Sa={}};t(rWd,kd);rWd.prototype.qb=function(){Pb(this.Sa,this.wb.removeNode,this.wb);this.wb=this.Sa=null;rWd.ya.qb.call(this)};var A1e=function(a,b){var c=a.Sa[b];c&&(a.wb.removeNode(c),delete a.Sa[b]);c=a.wb.createElement("div");c.style.position="absolute";c.style.top="-1000px";c.style.height="1px";c.style.overflow="hidden";qo(c,"live",b);qo(c,"atomic","true");a.wb.La().body.appendChild(c);return a.Sa[b]=c};

G("sy813");I();
}catch(e){_DumpException(e)}
try{
H("sy889");var e4=function(a,b,c){C.call(this,c);this.Ab=b||ohg;this.Oa=a instanceof y7a?a:cl(a,null)};t(e4,C);var RSd={};q=e4.prototype;q.Zd=!1;q.qsa=!1;q.pCb=M7a;q.b5=!0;q.eEa=-1;q.qb=function(){e4.ya.qb.call(this);this.Qb&&(this.Qb.removeNode(this),this.Qb=null);this.Kb(null)};
q.IIa=function(){var a=this.ta();if(a){var b=ESd(this);b&&!b.id&&(b.id=this.getId()+".label");po(a,"treeitem");qo(a,"selected",!1);qo(a,"expanded",!1);qo(a,"level",this.f4());b&&qo(a,"labelledby",b.id);(a=this.iHa())&&po(a,"presentation");(a=this.gGa())&&po(a,"presentation");if(a=g4(this))if(po(a,"group"),a.hasChildNodes())for(a=Ge(this),b=1;b<=a;b++){var c=this.Oh(b-1).ta();qo(c,"setsize",a);qo(c,"posinset",b)}}};
q.Pa=function(){var a,b=this.Ea();a=this.Yqa();var b=b.Sa,c=b.createElement("div");xc?(oNa(c,ydg(Bdg("br"),a)),c.removeChild(c.firstChild)):oNa(c,a);a=IUa(b,c);this.Kb(a)};q.Na=function(){e4.ya.Na.call(this);RSd[this.getId()]=this;this.IIa()};q.Ib=function(){e4.ya.Ib.call(this);delete RSd[this.getId()]};
q.Zj=function(a,b){var c=this.Oh(b-1),d=this.Oh(b);e4.ya.Zj.call(this,a,b);a.mL=c;a.gea=d;c?c.gea=a:this.Km=a;d?d.mL=a:this.Op=a;var f=this.jx();f&&FSd(a,f);wSd(a,this.f4()+1);if(this.ta()&&(this.Fda(),this.WA())){f=g4(this);a.ta()||a.Pa();var h=a.ta(),k=d&&d.ta();f.insertBefore(h,k);this.Nb()&&a.Na();d||(c?c.Fda():(On(f,!0),this.bX(this.WA())))}};q.add=function(a,b){a.getParent()&&a.getParent().removeChild(a);this.Zj(a,b?this.Af(b):Ge(this));return a};
q.removeChild=function(a){var b=this.jx(),c=b?b.$e():null;if(c==a||a.contains(c))b.hasFocus()?(this.select(),Uf(this.sZc,10,this)):this.select();e4.ya.removeChild.call(this,a);this.Op==a&&(this.Op=a.mL);this.Km==a&&(this.Km=a.gea);a.mL&&(a.mL.gea=a.gea);a.gea&&(a.gea.mL=a.mL);c=!a.gea;a.Qb=null;a.eEa=-1;if(b&&(b.removeNode(this),this.Nb())){b=g4(this);if(a.Nb()){var d=a.ta();b.removeChild(d);a.Ib()}c&&(c=this.Oh(Ge(this)-1))&&c.Fda();Fe(this)||(b.style.display="none",this.Fda(),this.iHa().className=
this.Zqa())}return a};q.remove=e4.prototype.removeChild;q.sZc=function(){this.select()};q.f4=function(){var a=this.eEa;0>a&&(a=(a=this.getParent())?a.f4()+1:0,wSd(this,a));return a};var wSd=function(a,b){if(b!=a.eEa){a.eEa=b;var c=f4(a);if(c){var d=s2e(a)+"px";ph(a)?c.style.paddingRight=d:c.style.paddingLeft=d}He(a,function(a){wSd(a,b+1)})}};e4.prototype.contains=function(a){for(;a;){if(a==this)return!0;a=a.getParent()}return!1};var $lg=function(a){var b=[];He(a,function(a){b.push(a)});return b};
e4.prototype.Sf=function(){return this.Zd};e4.prototype.select=function(){var a=this.jx();a&&a.jn(this)};var xSd=function(a,b){if(a.Zd!=b){a.Zd=b;ySd(a);var c=a.ta();c&&(qo(c,"selected",b),b&&(c=a.jx().ta(),qo(c,"activedescendant",a.getId())))}};q=e4.prototype;q.WA=function(){return this.qsa};
q.bX=function(a){var b=a!=this.qsa;if(!b||this.dispatchEvent(a?"beforeexpand":"beforecollapse")){var c;this.qsa=a;c=this.jx();var d=this.ta();if(Fe(this)){if(!a&&c&&this.contains(c.$e())&&this.select(),d){if(c=g4(this))if(On(c,a),a&&this.Nb()&&!c.hasChildNodes()){var f=[];He(this,function(a){f.push(a.Yqa())});oNa(c,ydg(f));He(this,function(a){a.Na()})}this.Fda()}}else(c=g4(this))&&On(c,!1);d&&(this.iHa().className=this.Zqa(),qo(d,"expanded",a));b&&this.dispatchEvent(a?"expand":"collapse")}};
q.expand=function(){this.bX(!0)};q.collapse=function(){this.bX(!1)};q.jcb=function(){var a=this.getParent();a&&(a.bX(!0),a.jcb())};q.Yqa=function(){var a=this.jx(),b=!a.Pya||a==this.getParent()&&!a.Wya?this.Ab.bsb:this.Ab.asb,a=this.WA()&&Fe(this),b={"class":b,style:Ipg(this)},c=[];a&&He(this,function(a){c.push(a.Yqa())});a=Bdg("div",b,c);return Bdg("div",{"class":this.Ab.dXa,id:this.getId()},[this.jBb(),a])};var s2e=function(a){return Math.max(0,(a.f4()-1)*a.Ab.FIa)};
e4.prototype.jBb=function(){var a={};a["padding-"+(ph(this)?"right":"left")]=s2e(this)+"px";var a={"class":this.u4(),style:a},b=[this.O0a(),Mdg(this),Ndg(this)];return Bdg("div",a,b)};e4.prototype.u4=function(){var a;a=this.Sf()?" "+this.Ab.Mic:"";return this.Ab.Nic+a};var Ndg=function(a){var b=Bdg("span",{"class":a.Ab.eXa,title:null},a.Oa);return ydg(b,Bdg("span",{},a.pCb))},Mdg=function(a){return Bdg("span",{style:{display:"inline-block"},"class":a.Zqa()})};
e4.prototype.O0a=function(){return Bdg("span",{type:"expand",style:{display:"inline-block"},"class":DSd(this)})};
var DSd=function(a){var b=a.jx(),b=!b.Pya||b==a.getParent()&&!b.Wya,c=a.Ab,d=new li;d.fc(c.wfa," ",c.Eic," ");if(Fe(a)){var f=0;a.b5&&(f=a.WA()?2:1);b||(f=a.gea?f+8:f+4);switch(f){case 1:d.fc(c.hsb);break;case 2:d.fc(c.gsb);break;case 4:d.fc(c.fsb);break;case 5:d.fc(c.Gic);break;case 6:d.fc(c.Fic);break;case 8:d.fc(c.isb);break;case 9:d.fc(c.Iic);break;case 10:d.fc(c.Hic);break;default:d.fc(c.KDa)}}else b?d.fc(c.KDa):a.gea?d.fc(c.isb):d.fc(c.fsb);return d.toString()},Ipg=function(a){var b=a.WA()&&
Fe(a);return Zlg({"background-position":amg(a),display:b?null:"none"})},amg=function(a){return(a.gea?(a.f4()-1)*a.Ab.FIa:"-100")+"px 0"};e4.prototype.ta=function(){var a=e4.ya.ta.call(this);a||(a=this.Ea().ta(this.getId()),this.Kb(a));return a};var f4=function(a){return(a=a.ta())?a.firstChild:null};e4.prototype.gGa=function(){var a=f4(this);return a?a.firstChild:null};e4.prototype.iHa=function(){var a=f4(this);return a?a.childNodes[1]:null};
var ESd=function(a){return(a=f4(a))&&a.lastChild?a.lastChild.previousSibling:null},g4=function(a){return(a=a.ta())?a.lastChild:null};e4.prototype.Iq=function(){return this.Sx};e4.prototype.Lo=function(a){DGg(this,Hua(a))};e4.prototype.xd=function(){return si(I7a(this.Oa))};var DGg=function(a,b){a.Oa=b;var c=ESd(a);c&&oNa(c,b);(c=a.jx())&&c.qdb(a)};e4.prototype.IK=function(){return I7a(this.Oa)};var ySd=function(a){var b=f4(a);b&&(b.className=a.u4())};q=e4.prototype;
q.Fda=function(){var a=this.gGa();a&&(a.className=DSd(this));if(a=g4(this))a.style.backgroundPosition=amg(this)};q.yda=function(a){"expand"==a.target.getAttribute("type")&&Fe(this)?this.b5&&this.bX(!this.WA()):(this.select(),ySd(this))};q.xtc=Hba;q.$7a=function(a){"expand"==a.target.getAttribute("type")&&Fe(this)||this.b5&&this.bX(!this.WA())};q.Fga=function(){return this.WA()&&Fe(this)?this.Oh(Ge(this)-1).Fga():this};
q.tGa=function(){if(Fe(this)&&this.WA())return this.Oh(0);for(var a=this,b;a!=this.jx();){b=a.gea;if(null!=b)return b;a=a.getParent()}return null};q.xGa=function(){var a=this.mL;if(null!=a)return a.Fga();var a=this.getParent(),b=this.jx();return!b.S1&&a==b||this==b?null:a};q.hB=e4.prototype.kc;q.rd=function(){return this.Ab};
var FSd=function(a,b){a.Qb!=b&&(a.Qb=b,b.qdb(a),He(a,function(a){FSd(a,b)}))},ohg={FIa:19,Kic:"d-rb-Cc d-rb-sc",Jic:"d-rb-Ge-Cc",dXa:"d-rb-sc",asb:"d-rb-aka",bsb:"d-rb-aka-BVa",Nic:"d-rb-fd",eXa:"d-rb-sc-ka",wfa:"d-rb-m",Eic:"d-rb-bg-m",hsb:"d-rb-bg-m-Bk",gsb:"d-rb-bg-m-Ema",Iic:"d-rb-bg-m-Coa",Hic:"d-rb-bg-m-Boa",Gic:"d-rb-bg-m-Dma",Fic:"d-rb-bg-m-Cma",isb:"d-rb-bg-m-N1a",fsb:"d-rb-bg-m-wVa",KDa:"d-rb-bg-m-wr",jsb:"d-rb-gu-pk-m",dsb:"d-rb-Fl-pk-m",LDa:"d-rb-We-m",ksb:"d-rb-gu-pk-m",esb:"d-rb-Fl-pk-m", Mic:"L"};
var h4=function(a,b,c){e4.call(this,a,b,c)};t(h4,e4);h4.prototype.jx=function(){if(this.Qb)return this.Qb;var a=this.getParent();return a&&(a=a.jx())?(FSd(this,a),a):null};h4.prototype.Zqa=function(){var a=this.WA(),b=this.lp;if(a&&b)return b;b=this.Iq();if(!a&&b)return b;b=this.rd();if(Fe(this)){if(a&&b.jsb)return b.wfa+" "+b.jsb;if(!a&&b.dsb)return b.wfa+" "+b.dsb}else if(b.LDa)return b.wfa+" "+b.LDa;return""};
var GSd=function(a){this.Sa=void 0;this.Et={};if(a){var b=sca(a);a=Ue(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])}};GSd.prototype.set=function(a,b){HSd(this,a,b,!1)};GSd.prototype.add=function(a,b){HSd(this,a,b,!0)};var HSd=function(a,b,c,d){for(var f=0;f<b.length;f++){var h=b.charAt(f);a.Et[h]||(a.Et[h]=new GSd);a=a.Et[h]}if(d&&void 0!==a.Sa)throw Error("yh`"+b);a.Sa=c};
GSd.prototype.get=function(a){t:{for(var b=this,c=0;c<a.length;c++)if(b=b.Et[a.charAt(c)],!b){a=void 0;break t}a=b}return a?a.Sa:void 0};GSd.prototype.Rc=function(){var a=[];ISd(this,a);return a};var ISd=function(a,b){void 0!==a.Sa&&b.push(a.Sa);for(var c in a.Et)ISd(a.Et[c],b)};GSd.prototype.ii=function(a){var b=[];if(a){for(var c=this,d=0;d<a.length;d++){var f=a.charAt(d);if(!c.Et[f])return[];c=c.Et[f]}JSd(c,a,b)}else JSd(this,"",b);return b};
var JSd=function(a,b,c){void 0!==a.Sa&&c.push(b);for(var d in a.Et)JSd(a.Et[d],b+d,c)};q=GSd.prototype;q.YN=function(a){if(this.Sa===a)return!0;for(var b in this.Et)if(this.Et[b].YN(a))return!0;return!1};q.clear=function(){this.Et={};this.Sa=void 0};q.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var f=a.charAt(d);if(!b.Et[f])throw Error("zh`"+a);c.push([b,f]);b=b.Et[f]}a=b.Sa;for(delete b.Sa;0<c.length;)if(f=c.pop(),b=f[0],f=f[1],b.Et[f].isEmpty())delete b.Et[f];else break;return a}; q.clone=function(){return new GSd(this)};q.Fc=function(){return rca(this.Rc())};q.isEmpty=function(){return void 0===this.Sa&&Ub(this.Et)};
var KSd=function(){this.Sa=new GSd};q=KSd.prototype;q.fS="";q.F6a=null;q.mKa=null;q.uua=0;q.fja=0;var LSd=function(a,b){var c=!1,d=a.Sa.ii(b);d&&d.length&&(a.fja=0,a.uua=0,c=a.Sa.get(d[0]),c=MSd(a,c))&&(a.F6a=d);return c},MSd=function(a,b){var c;b&&(a.fja<b.length&&(c=b[a.fja],a.mKa=b),c&&(c.jcb(),c.select()));return!!c};KSd.prototype.clear=function(){this.fS=""};
var i4=function(a,b,c){e4.call(this,a,b,c);this.qsa=!0;xSd(this,!0);this.Sa=this;this.Sza=new KSd;if(xc)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(d){}};t(i4,e4);q=i4.prototype;q.d1a=null;q.QQ=null;q.BZa=!1;q.Pya=!0;q.S1=!0;q.Wya=!0;q.jx=function(){return this};q.f4=function(){return 0};q.jcb=function(){};q.ztc=function(){this.BZa=!0;Qn(this.ta(),"eb");this.Sa&&this.Sa.select()};q.ytc=function(){this.BZa=!1;Rn(this.ta(),"eb")};q.hasFocus=function(){return this.BZa};
q.WA=function(){return!this.S1||i4.ya.WA.call(this)};q.bX=function(a){this.S1?i4.ya.bX.call(this,a):this.qsa=a};q.O0a=function(){return M7a};q.iHa=function(){var a=f4(this);return a?a.firstChild:null};q.gGa=function(){return null};q.Fda=function(){};q.u4=function(){return i4.ya.u4.call(this)+(this.S1?"":" "+this.rd().Jic)};q.Zqa=function(){var a=this.WA(),b=this.lp;if(a&&b)return b;b=this.Iq();if(!a&&b)return b;b=this.rd();return a&&b.ksb?b.wfa+" "+b.ksb:!a&&b.esb?b.wfa+" "+b.esb:""};
q.jn=function(a){if(this.Sa!=a){var b=!1;this.Sa&&(b=null==this.Sa,xSd(this.Sa,!1));if(this.Sa=a)xSd(a,!0),b&&a.select();this.dispatchEvent("change")}};q.$e=function(){return this.Sa};var NSd=function(a){if(0!=a.S1){a.S1=!1;if(a.Nb()){var b=f4(a);b&&(b.className=a.u4())}a.$e()==a&&a.Oh(0)&&a.jn(a.Oh(0))}};q=i4.prototype;q.IIa=function(){i4.ya.IIa.call(this);var a=this.ta();po(a,"tree");qo(a,"labelledby",ESd(this).id)};
q.Na=function(){i4.ya.Na.call(this);var a=this.ta();a.className=this.rd().Kic;a.setAttribute("hideFocus","true");a=this.ta();a.tabIndex=0;var b=this.d1a=new ro(a),c=this.QQ=new hx(a);this.getHandler().Ja(c,"focusout",this.ytc).Ja(c,"focusin",this.ztc).Ja(b,"key",this.Qo).Ja(a,"mousedown",this.c1a).Ja(a,"click",this.c1a).Ja(a,"dblclick",this.c1a);this.IIa()};q.Ib=function(){i4.ya.Ib.call(this);this.d1a.Ma();this.d1a=null;this.QQ.Ma();this.QQ=null};
q.c1a=function(a){var b;t:{b=null;for(var c=a.target;null!=c;){if(b=RSd[c.id])break t;if(c==this.ta())break;c=c.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.yda(a);break;case "click":b.xtc(a);break;case "dblclick":b.$7a(a)}};
q.Qo=function(a){var b=!1,b=this.Sza,c=!1;switch(a.keyCode){case 40:case 38:if(a.ctrlKey){var c=40==a.keyCode?1:-1,d=b.F6a;if(d){var f=null,h=!1;if(b.mKa){var k=b.fja+c;0<=k&&k<b.mKa.length?(b.fja=k,f=b.mKa):h=!0}f||(k=b.uua+c,0<=k&&k<d.length&&(b.uua=k),d.length>b.uua&&(f=b.Sa.get(d[b.uua])),f&&f.length&&h&&(b.fja=-1==c?f.length-1:0));MSd(b,f)&&(b.F6a=d)}c=!0}break;case 8:d=b.fS.length-1;c=!0;0<d?(b.fS=b.fS.substring(0,d),LSd(b,b.fS)):0==d?b.fS="":c=!1;break;case 27:b.fS="",c=!0}if(!(b=c)&&(b=this.Sa)){b=
this.Sa;c=!0;switch(a.keyCode){case 39:if(a.altKey)break;Fe(b)&&(b.WA()?b.Oh(0).select():b.bX(!0));break;case 37:if(a.altKey)break;Fe(b)&&b.WA()&&b.b5?b.bX(!1):(d=b.getParent(),f=b.jx(),d&&(f.S1||d!=f)&&d.select());break;case 40:(d=b.tGa())&&d.select();break;case 38:(d=b.xGa())&&d.select();break;default:c=!1}c&&(a.preventDefault(),(f=b.jx())&&f.Sza.clear());b=c}b||(b=this.Sza,c=!1,a.ctrlKey||a.altKey||(d=String.fromCharCode(a.charCode||a.keyCode).toLowerCase(),(1==d.length&&" "<=d&&"~">=d||"\u0080"<=
d&&"\ufffd">=d)&&(" "!=d||b.fS)&&(b.fS+=d,c=LSd(b,b.fS))),b=c);b&&a.preventDefault();return b};q.qdb=function(a){var b=this.Sza,c=a.xd();if(c&&!Ea(Ga(c))){var c=c.toLowerCase(),d=b.Sa.get(c);d?d.push(a):b.Sa.set(c,[a])}};q.removeNode=function(a){var b=this.Sza,c=a.xd();if(c&&!Ea(Ga(c))){var c=c.toLowerCase(),d=b.Sa.get(c);d&&(mb(d,a),d.length&&b.Sa.remove(c))}};

G("sy889");I();
}catch(e){_DumpException(e)}
try{
H("sy886");var bVd=function(a,b,c,d){C3.call(this,a,b,c,d)};t(bVd,C3);bVd.prototype.Na=function(){bVd.ya.Na.call(this);var a=this.Qb.jg(this);this.getHandler().Ja(a,"mouseover",Lp(this.Ab,this,!0)).Ja(a,"mouseout",Lp(this.Ab,this,!1))};bVd.prototype.Ab=function(a,b){qe(b.target,a?.8:.5)};

G("sy886");I();
}catch(e){_DumpException(e)}
try{
H("sy892");var mVd=function(a,b,c,d,f,h){h=h||{};b={type:"application/x-shockwave-flash",id:b,width:d,height:f};xc?h.movie=a:b.data=a;a=mc(c);c=jc(a);if(xc&&Gf("9")){d=new li("<object ");for(var k in b)d.fc(La(k),'="',La(b[k]),'" ');d.fc(">");for(k in h)d.fc('<param name="',La(k),'" value="',La(h[k]),'">');d.fc("</object>");k=c.Pa("div");c.appendChild(a,k);k.outerHTML=d.toString()}else{b=c.Pa("object",b);for(k in h)c.appendChild(b,c.Pa("param",{name:k,value:h[k]}));c.appendChild(a,b)}},nVd=function(a,b){var c= b.ta(a);xc&&ea?(On(c,!1),(new mCc(Lp(oVd,void 0,c,b))).start(50,1E4)):b.removeNode(c)},oVd=function(a,b){return 4==a.readyState?(Pb(a,function(b){try{ta(a[b])&&(a[b]=null)}catch(d){}}),b.removeNode(a),!0):!1};

G("sy892");I();
}catch(e){_DumpException(e)}
try{
E.prototype.dw=g(158,function(a,b){var c=this.Ab[a];c.fh()?b.By(this.Ag):(hea(this,a,c,!1,b),iea(this,a)||jea(this,[a]))});var eVd=function(a,b){var c=new ag;window.setTimeout(Lp(a.dw,a,b,c),0)},Iaa=function(a,b){for(var c=0;c<a.length;c++)a[c]={index:c,value:a[c]};var d=b||yb;wb(a,function(a,b){return d(a.value,b.value)||a.index-b.index});for(c=0;c<a.length;c++)a[c]=a[c].value};H("sy893");
var A4=function(a,b,c,d){y4.call(this,a,b,void 0,void 0,d);this.mN=!1;this.message=c};t(A4,y4);A4.prototype.Pa=function(){A4.ya.Pa.call(this);this.lp(this.message)};A4.prototype.Na=function(){A4.ya.Na.call(this);Qn(this.ta(),"a-qka")};A4.prototype.vB=function(){};

G("sy893");I();
}catch(e){_DumpException(e)}
try{
var AHc=function(a){a.Ck()?(a=Rs(a.Sa),a=w(a,2)):a=null;return a},P7b=function(a){a=a||{};return Y("<span>"+Dn(r(a.match))+"</span>")};H("sy756");var XO=function(a,b,c,d,f,h,k,m,p,u){kd.call(this);this.mL=new YO(Q7b(a,b,c,u||(d?"es-people-picker":f?"es-invite":"es-sharebox-search"),"es_profiles",h,m),p);x(this,this.mL);this.Ab=new YO(Q7b(a,b,c,"es-plusprefix","",h,m),p);x(this,this.Ab);a=new Af(a);Hf(a,"news","t");Hf(a,"fresh","o");Hf(a,"hl","en-US");Hf(a,"types","f");Hf(a,"nolabels","t");Hf(a,"nav","f");Hf(a,"ids","f");Hf(a,"hjson","t");Hf(a,"spell","t");Hf(a,"client","sparks");this.Sa=new YO(a,p);x(this,this.Sa);this.Qb=!!k};t(XO,kd);
var U7b={wF:"a",Ana:"b",sna:"c",DQ:"d",yBa:"e",vF:"f",hN:"g",kna:"h",g9b:"i",Nna:"j",pSa:"k",c8b:"l",N2b:"r",AHa:"s"},V7b={wF:"a",Ana:"b",sna:"c",DQ:"d",yBa:"e",vF:"f",hN:"g",L9b:"h",JSa:"i",kna:"j",Nac:"k",hna:"l",Nna:"m",pSa:"n",c8b:"o"};
XO.prototype.vx=function(a,b,c){var d;d="+"!=a.charAt(0)?S7b(this.mL,a,b):S7b(this.Ab,"+"+a,b);b=this.Qb?S7b(this.Sa,a,b):jg([]);bg(fq([d,b]).addCallback(function(b){var d=zg(b[0],Lp(this.Oa,this,a),this),d=a4c(d);b=zg(b[1],Lp(this.$b,this,a),this);d=ec(rb(d,b),na);c(a,d)},this),function(){c(a,[])})};
var a4c=function(a){var b=[],c={};v(a,function(a){if(a){var f=a.Oc(),h=f&&f.getId()&&f.getId().P9();if(h){var k=c[h],m=sa(k)&&b[k]&&b[k].Oc();if(!m||!m.nj()&&f.nj())f=c[h]=sa(k)?k:b.length,b[f]=a}else b.push(a)}});return b};
XO.prototype.Oa=function(a,b){var c;if(!b[3])return null;var d=b[1],f;switch(d){case 44:f=U7b;break;case 45:f=V7b;break;default:return hh(Error("je`"+d)),null}c=b[3];c[f.hna]||(c[f.hna]=b[0]);"0"==c[f.wF]&&delete c[f.wF];var h=c[f.N2b],k=c[f.AHa];if(null==h&&!k&&!c[f.wF]&&!c[f.vF])return c=Error("qd`"+Rf(b)),hh(c),null;var m;m=c[f.wF]||c[f.vF]?ss(c[f.wF],c[f.vF]):new yk;var p=new Ck;Py(p,8,null!=h);Py(p,18,[h]);m.wla(h);Py(m,6,k);k=c[f.Ana];!k&&h&&(k="//ssl.gstatic.com/s2/oz/images/sge/grey_silhouette.png");
Py(p,9,k);h=si(c[f.hna]);tB(p,h);Py(p,11,"1"==c[f.kna]);Py(p,12,c[f.sna]);"student"==c[f.yBa]?Py(p,13,c[f.DQ]):Py(p,14,c[f.DQ]);Py(p,17,!!c[f.hN]);45==d&&(d=new Dk,c[f.JSa]&&Py(d,5,c[f.JSa]),Lg(p,19,d));Py(p,30,!!c[f.pSa]&&"1"==c[f.pSa]);4==c[f.Nna]&&Py(p,21,!0);c=new yB(m,p);f=eb(b[2],39);c.Nea=f?"p":"g";return new aN(a,c)};XO.prototype.$b=function(a,b,c){a=b[0];if(!a)return null;a=si(a);c=0==c;b=Y("Searches").toString();return MYb(new aN(a,null,null,P7b,!1),c,b)};
var Q7b=function(a,b,c,d,f,h,k){a=new Af(a);Hf(a,"client",d);"es-sharebox-search"!=d&&"es-people-picker"!=d&&"es-webmentions"!=d&&(Hf(a,"ds",f),Hf(a,"partnerid","es-profiles"));Hf(a,"tok",b());Hf(a,"authuser",c);Hf(a,"xhr","t");h&&Hf(a,"dtok",h);k&&Hf(a,"sugexp",k);return a},YO=function(a,b){kd.call(this);this.Ag=a;this.Qb=b||250;this.mL=new Wf};t(YO,kd);YO.prototype.Ab="";YO.prototype.$b=0;YO.prototype.Sa=null;YO.prototype.Oa=0;
var R7b=function(a){a.mL.Ad()&&a.mL.abort();null!=a.Sa&&(Ad(a.Sa),a.Sa=null)},S7b=function(a,b,c,d){a.Ab=b;ia(d)||(a.$b=0);a.Oa=c;b=new ag;d=d||a.Qb;R7b(a);Uf(Lp(a.YY,a,a.Ab,b),d);return b};YO.prototype.YY=function(a,b){if(a!=this.Ab)b.cancel();else{R7b(this);this.$b++;this.Sa=yd(this.mL,["success","error","timeout"],Lp(this.jg,this,this.Ab,b));var c=Hf(this.Ag.clone(),"q",PYb(this.Ab));this.mL.send(c,"GET")}};
YO.prototype.jg=function(a,b,c){if("success"!=c.type)b.jl||b.By([]);else if(a==this.Ab){a=c.target.Lq();try{var d=Qf(a),f=d[2];this.Qb=parseInt(f.p,10)||this.Qb;if(ia(f.l)&&5>this.$b){var h=this.Qb*Math.min(this.$b,3);eg(S7b(this,this.Ab,this.Oa,h),b)}else b.By(d[1])}catch(k){Qda("le`"+a,k),b.By([])}}};YO.prototype.qb=function(){this.mL.Ma();this.Sa&&(Ad(this.Sa),this.Sa=null);YO.ya.qb.call(this)};

G("sy756");I();
}catch(e){_DumpException(e)}
try{
H("sy894");var n8b=function(a){var b="";a='Add "'+(Dn(r(a.rxa))+'" by email.');return Y(b+a)},o8b=function(){return Y("Or add a new person by email address.")},p8b=function(){return Y("Please enter a valid email address.")},q8b=function(){return Y("Find by name or email.")},r8b=function(){return Y("No matching people found.")},s8b=function(){return Y("Enter an email address instead.")};
var ZO=function(){};ZO.prototype.Sa=function(a,b){a=PYb(a);var c,d;if(yE(a)){t:{c=Ia(a.toLowerCase());for(d=0;d<b.length;d++){var f=b[d].Oc();if(f&&f.yc().toLowerCase()==c){c=!0;break t}}c=!1}if(c)return[];c=n8b;d=!1}else if(0<b.length)c=o8b,d=!0;else if(Ea(Ga(a)))c=q8b,d=!0;else if(0<=a.indexOf("@"))c=p8b,d=!0;else return c=new aN(a,null,null,r8b,!0),d=new aN(a,null,null,s8b,!0),MYb(d,!0),[c,d];return[new aN(a,null,null,c,d)]};

G("sy894");I();
}catch(e){_DumpException(e)}
try{
H("sy421");var rJ=function(){Wn.call(this);this.Sa=[]};t(rJ,Wn);rJ.prototype.add=function(a){eb(this.Sa,a)||(this.Sa.push(a),ud(a,"finish",this.mL,!1,this))};rJ.prototype.remove=function(a){mb(this.Sa,a)&&zd(a,"finish",this.mL,!1,this)};rJ.prototype.qb=function(){v(this.Sa,function(a){a.Ma()});this.Sa.length=0;rJ.ya.qb.call(this)};var sJ=function(){rJ.call(this);this.Ab=0};t(sJ,rJ);
sJ.prototype.play=function(a){if(0==this.Sa.length)return!1;if(a||0==this.Sb)this.Ab=0,this.Mv();else if(this.rB())return!1;this.VH("play");-1==this.Sb&&this.VH("resume");var b=-1==this.Sb&&!a;this.startTime=Wa();this.endTime=null;this.Sb=1;v(this.Sa,function(c){b&&-1!=c.Sb||c.play(a)});return!0};sJ.prototype.pause=function(){this.rB()&&(v(this.Sa,function(a){a.rB()&&a.pause()}),this.Sb=-1,this.VH("pause"))}; sJ.prototype.stop=function(a){v(this.Sa,function(b){0==b.Sb||b.stop(a)});this.Sb=0;this.endTime=Wa();this.iva();this.Pj()};sJ.prototype.mL=function(){this.Ab++;this.Ab==this.Sa.length&&(this.endTime=Wa(),this.Sb=0,this.YQ(),this.Pj())};

G("sy421");I();
}catch(e){_DumpException(e)}
try{
H("sy697");var mR=function(a){kd.call(this);this.Sa=a;this.Ba=new Hd(this);this.Ba.Ja(a,"highlight",this.wXc);this.Ba.Ja(a,"enter",this.SWc);this.Ba.Ja(a,"aftershow",this.IMb);this.Ba.Ja(a,"hide",this.Ysc);Sjc(this,!0)};t(mR,kd);q=mR.prototype;q.$ta=null;q.Gcb=null;q.VW=!1;q.SWc=function(a){this.VW?a.preventDefault():this.$ta=a.target};q.wXc=function(){Sjc(this)};q.IMb=function(){null!=this.Gcb?(this.Sa.ta().scrollTop=this.Gcb,Sjc(this,!1)):Sjc(this,!0)};
q.Ysc=function(a){a.target==this.Sa&&(this.$ta=null,this.Gcb=this.Sa.ta().scrollTop)};var Sjc=function(a,b){var c=Jo(a.Sa);if(a.Sa.dc()&&c&&c!=a.$ta){var d=a.Sa.ta();fe(c.ta(),d,b);Tjc(a);a.$ta=null}},Tjc=function(a){a.VW=!0;Uf(function(){this.VW=!1},0,a)};mR.prototype.qb=function(){mR.ya.qb.call(this);this.Ba.Ma();this.$ta=null};

G("sy697");I();
}catch(e){_DumpException(e)}
try{
var G2d=function(a){!a.Qb&&a.getAttribute("tpp")&&(a.Qb=new yr(Qf(a.getAttribute("tpp"))));return a.Qb};H("sy870");var T3=function(a,b){var c=b;c||(c=a?jc(a):jc());C.call(this,c);this.wb=c;this.Sa=null;a&&this.yN(a)};t(T3,C);q=T3.prototype;q.yN=function(a){this.Sa&&this.Owa();this.Sa=a};q.Owa=function(){this.Sa=null};q.Ea=function(){return this.wb};q.pT=ka;q.jL=ka;q.cJa=Gx;q.reset=ka;
var FRd=function(a,b,c){A.call(this,"Di",c);this.Ab=b;this.Sa=a};t(FRd,A);FRd.prototype.Cg=function(){return this.Ab};var HRd=function(){f0.call(this)};t(HRd,f0);la(HRd);HRd.prototype.Pa=function(a){var b=a.Ea();a=b.Pa("div",this.ZGa(a).join(" "));var c=b.Pa("div","a-ga-F-Ab-OG-Ta");a.appendChild(c);b=b.Pa("div","a-ga-F-Ab-Z");a.appendChild(b);a.container=b;return a};HRd.prototype.cb=function(a){return a.container};HRd.prototype.Pc=function(){return"a-ga-F-Ab"};
var IRd=function(){f0.call(this)};t(IRd,f0);la(IRd);IRd.prototype.Pc=function(){return"a-ga-F"};var U3=function(a,b,c){A.call(this,"Ei",c);this.Ab=a;this.Sa=b};t(U3,A);var NRd=function(a,b,c){A.call(this,"Fi",c);this.Ab=a;this.Sa=b};t(NRd,A);var V3=function(a,b){T3.call(this,a,b);this.Ba=new Hd(this);x(this,this.Ba);this.Ab=new Sf(10);this.Ba.Ja(this.Ab,"tick",this.Njd)};t(V3,T3);q=V3.prototype;q.Cab=!0;q.xH=0;q.rO=0;q.yN=function(a){V3.ya.yN.call(this,a);this.xH=this.rO=a=R3(a,!1,!1)};q.Owa=function(){var a=this.Sa;R3(a,!1,!1);this.Ab.enabled&&(ERd(a,this.xH),this.Ab.stop(),this.dispatchEvent(new U3(this.rO,this.xH)));V3.ya.Owa.call(this)};q.cJa=function(){return xc&&Gf("6")||gc&&Gf("10.5")||xd&&Gf("525")||wd&&Gf("1.9.1")};
q.pT=function(a){V3.ya.pT.call(this,a);if(!this.Ab.enabled){var b=0,c=R3(this.Sa,!1,!1);"editbar-rotate-left"==a?(this.Cab=!0,b=c-90):(b=c+90,this.Cab=!1);this.xH=BRd(b);xc&&!Gf(9)?(this.rO=c,ERd(this.Sa,this.xH),a=new U3(this.rO,this.xH),this.dispatchEvent(a)):(this.rO=c,a=new NRd(this.rO,this.xH),this.dispatchEvent(a),this.Ab.start())}};q.jL=function(a){V3.ya.jL.call(this,a);a.setAttribute("r",this.xH/90)}; q.Njd=function(){var a=this.Sa,b=R3(a,!1,!1)+(this.Cab?-5:5),b=BRd(b);ERd(a,b);b==this.xH&&(this.Ab.stop(),this.dispatchEvent(new U3(this.rO,b)))};q.reset=function(){ERd(this.Sa,0);this.xH=this.rO=0};
var ORd=function(a,b,c){std.call(this,c?HRd.ia():IRd.ia(),b?"vertical":"horizontal",a);this.Ab=!!c;this.$b=My.Bo();this.Qb=new df};t(ORd,std);var TRd=new Kb(25,22),Jlg=function(a,b,c){if(c.cJa()&&!a.Ge(b)){var d=a.Ag(b);a.ib(d,!0);d.Dc(b);d.setVisible(a.dc());d.Ta(!0);a.getHandler().Ja(d,"action",Lp(c.pT,c,b));a.Qb.add(c)}};
ORd.prototype.Ag=function(a){var b,c,d;switch(a){case "editbar-delete":b="Delete";c=this.Ab?"a-n-F-Zc-Gj":"a-n-F-ji-Gj";d="a-n-m-D-Ah-Zc";break;case "editbar-rotate-left":b="Rotate left";c=this.Ab?"a-n-F-Zc-hc-gk":"a-n-F-ji-hc-gk";d="a-n-m-hc-ya-Zc";break;case "editbar-rotate-right":b="Rotate right",c=this.Ab?"a-n-F-Zc-hc-hk":"a-n-F-ji-hc-hk",d="a-n-m-hc-Ja-Zc"}a=this.Ea();c=new utd(a.Pa("div","u2a",a.Pa("div",c,void 0),a.Pa("div",d,void 0)),void 0,a);c.Sn(b);return c};
var QRd=function(a){var b=new V3(a.Sa,a.Ea());Jlg(a,"editbar-rotate-left",b);Jlg(a,"editbar-rotate-right",b);a.getHandler().Ja(b,"Fi",a.Oa);a.getHandler().Ja(b,"Ei",a.Oa)};ORd.prototype.yN=function(a,b){this.Sa!=a&&(this.Sa&&RRd(this),this.Sa=a,Pe(this.Qb.Rc(),function(b){b.yN(a)},this),He(this,function(a){var d=a.getId();a.setVisible(!("editbar-rotate-left"==d||"editbar-rotate-right"==d)||b)},this),this.getHandler().Ja(this.Sa,"load",this.resize),this.resize(),this.setVisible(!0))};
var RRd=function(a){a.Sa&&a.getHandler().nb(a.Sa,"load",a.resize);He(a,function(a){a.setVisible(!1)},a);a.Sa=void 0;a.setVisible(!1)};ORd.prototype.Na=function(){ORd.ya.Na.call(this);Qn(this.ta(),"a-ga-F");this.$b?this.cb().align="left":this.cb().align="right"};ORd.prototype.jL=function(a){Pe(this.Qb.Rc(),function(b){b.jL(a)},this)};ORd.prototype.Oa=function(a){switch(a.type){case "Ei":this.setVisible(!0);this.resize();break;case "TE":case "Fi":this.setVisible(!1)}this.dispatchEvent(a)};
ORd.prototype.resize=function(){this.ta()&&("horizontal"==this.tI?le(this.ta(),SRd(this).width,TRd.height):me(this.ta(),TRd.width),this.Wd())};var SRd=function(a){var b;(b=a.Ea().Rm(a.Sa,"a-J-e-hh"))||(b=a.Sa);return zRd(b,a.ta().parentNode)};
ORd.prototype.Wd=function(){var a=this.ta(),b=zy(a),c=SRd(this);"horizontal"==this.tI?(this.$b?a.style.right=c.left+"px":a.style.left=c.left+"px",a.style.top=this.Ab?c.top+c.height-b.height+"px":c.top+c.height+"px"):(a.style.top=c.top+"px",this.$b?a.style.right=c.left+c.width+"px":a.style.left=c.left+c.width+"px")};ORd.prototype.wc=function(){return TRd.width};ORd.prototype.reset=function(){Pe(this.Qb.Rc(),function(a){a.reset()},this);this.resize()};
var W3=function(a,b){C.call(this,b);this.$b=new kR;this.ib(this.$b);this.Oa=a};t(W3,C);q=W3.prototype;q.dc=!0;q.OL="";
q.Pa=function(){W3.ya.Pa.call(this);var a=this.ta(),b=this.Ea();Qn(a,"a-ga-ha");var c=b.Pa("div","a-ga-ha-ni"),a=this.mL=b.Pa("input",{id:"captionInputBox"+va(this),"class":"a-ga-ha-N b-hb",maxlength:1E3});b.appendChild(c,b.Pa("span",void 0,a));a.style.MozUserSelect="text";var d=b.Pa("div",{"class":"a-ga-ha-jaa"},"Press Enter to apply or Esc to cancel");b.appendChild(c,d);b=this.Ec=new gD(b);this.ib(b,!1);iD(b,!0);b.IA(!1);b.setPosition(1);b.Qb.push("a-ha-i");this.Oa&&b.render(this.Oa);b.setContent(c);
b=this.ta();c=this.Ea();this.Ab=c.Pa("div",{"class":"a-ga-ha-Th"});c.appendChild(b,this.Ab);this.$b.yb(a)};q.Aoa=e(644);q.yN=function(a,b){this.Lb(b);this.Qb=a;this.resize();Uf(function(){On(this.Ab,!0)},0,this)};q.h9=e(645);q.qb=function(){W3.ya.qb.call(this)};
q.Na=function(){W3.ya.Na.call(this);this.setVisible(!1);this.getHandler().Ja(this.mL,"keydown",this.Qo).Ja(this.mL,"blur",wa(this.setVisible,!1)).Ja(this.Ab,"mouseup",this.P$).Ja(this.ta(),"mouseout",Lp(this.hNa,this,!1)).Ja(this.ta(),"mouseover",Lp(this.hNa,this,!0)).Ja(this.ta(),"blur",Lp(this.hNa,this,!1)).Ja(this.ta(),"focus",Lp(this.hNa,this,!0))};q.P$=function(){this.Ec.Fg(this.Qb);this.setVisible(!0)};q.hNa=function(a){Pn(this.ta(),"a-ga-ha-u",a)};
q.Qo=function(a){13==a.keyCode?(this.setVisible(!1),a.stopPropagation(),a.preventDefault()):27==a.keyCode&&(this.mL.value=this.OL,this.setVisible(!1),a.stopPropagation(),a.preventDefault())};q.kJa=e(646);
q.resize=function(){if(this.Qb){var a=this.ta(),b=zRd(this.Qb,this.ta().parentNode),c=this.Ea().Rm(this.Qb,"a-J-e-qa");c&&(c=zRd(c,this.ta().parentNode),b.width=c.width-12,b.left=c.left+6);b.width=Math.max(b.width,this.Ag);me(a,b.width);a.style.top=b.top+b.height+"px";My.Bo()?a.style.right=b.left+"px":a.style.left=b.left+"px"}};q.Lb=function(a){this.OL=a;this.mL.value=a;b1e(this)};
q.setVisible=function(a){if(a!=this.dc){this.dc=a;this.Ec.setVisible(a);if(a)this.mL.focus(),this.mL.select();else{var b=Ia(this.mL.value);b!=this.OL&&(this.Sa&&("function"==typeof this.Sa.cPa?this.Sa.cPa(b):"function"==typeof this.Sa.yw&&this.Sa.yw().setContent(b)),this.OL=b,b1e(this),this.dispatchEvent(new FRd(this.Sa,b)))}this.Qb?On(this.Ab,!a):On(this.Ab,!1)}}; var b1e=function(a){var b=a.Ea(),c=a.Ab;""==a.OL?(a.Ea(),Rc(c,"Add Caption"),a.Ab.style.width="auto",a.Ag=zy(c).width,a.Ab.style.width="100%"):(b.hb(c),b.appendChild(c,cd(b,La(a.OL))))};

G("sy870");I();
}catch(e){_DumpException(e)}
try{
H("sy897");
G("sy897");I();
}catch(e){_DumpException(e)}
try{
var N_d=function(a){var b=a.ta();if(b&&!("undefined"!=typeof d5&&a instanceof d5))for(var b=b.getElementsByTagName("img"),c=0;c<b.length;c++)if(ve(b[c]))return b[c];if("function"==typeof a.xna){if(a.xna()&&(b=a.Ea().fb("a-Tq-v-lR",a.ta()))&&ve(b))return b}else{b=a.Ea().fb("a-Ca-lz",a.ta());a=a.Ea().fb("a-fy-Ca",a.ta());if(b&&ve(b))return b;if(a&&ve(a))return a}return null},rRd=[5,18,34,35,22,37],O_d=function(a,b){if(!a.Qf||!a.Xg)return new Kb(b,b);var c=b,d=b/a.Xg*a.Qf,f=Math.min(3*b,2048);d>f&&(f/=
d,c*=f,d*=f);return new Kb(d,c)},Med=function(a){var b=a.ta(),c=a.Qf,d=a.Xg;c&&d?le(b,c,d):(b.style.height="auto",b.style.width="auto");var f=a.voa;if(f.match(/^data:/)&&xc&&0>Xa(nf,"8")){c=a.Ea();b=a.ta();d=a.Nwb;if(!d){a.clear();var h="uploader_image_frame_"+a.getId(),d=c.Pa("iframe",{src:'javascript:"<html><body></body></html>"',name:h,id:h,"class":"v-zc-Bb",frameBorder:"0",scrolling:"no",allowtransparency:"true"}),f=c.Pa("div",null,d);b.appendChild(f)}var f=a.Qf,k=a.Xg;f&&k&&le(d,f+20,k+15);Pd(d,
"margin","-15px -10px 0");a=a.voa.replace(/^data:.*?,/,"");a=c.Pa("form",{method:"post",action:"//uploaded-thumbnails.googleusercontent.com/processimage"},c.Pa("input",{type:"hidden",name:"image",value:a}));b.appendChild(a);a.target=h;a.submit()}else(h=a.C3a)?h.src=f:(a.clear(),h=a.C3a=a.Ea().Pa("img",{src:f,"class":"ff-na-W",alt:""}),b.appendChild(h)),c&&d&&le(h,c,d),xc&&Gf(7)&&(b.style.height="auto",b.style.width="auto")};
Q3.prototype.$ca=g(643,function(a,b){var c=a.Ea().fb("a-Ca-v-kj",a.ta());c&&On(c,b)});Uw.prototype.ifa=g(612,function(a,b){if(this.Ab){a=Math.min(a,2048);b=Math.min(b,2048);var c;c=2<=ha.devicePixelRatio?this.getUrl().replace(iKa,"w"+2*a+"-h"+2*b+"-p"):this.getUrl().replace(iKa,"w"+a+"-h"+b+"-p");return new Uw(c,a,b)}return tRd(this)});uAf.prototype.ifa=g(611,function(a,b){var c=this.Qs(new Kb(a,b),["p"]);return new Uw(c,a,b)});er.prototype.Jca=g(57,function(a){Lg(this,23,a)});
rj.prototype.Jca=g(56,function(a){Lg(this,1,a)});Tl.prototype.Jca=g(55,function(a){Lg(this,2,a)});
var P_d=function(a){return pVd[a]},oig=function(a){return!!a.getOption("hito")},a1e={E6b:5,xJb:6,ZKb:48,ENb:40,BNb:33,G6b:34,F6b:35,AMb:120,nLb:121,M5c:13,h6c:17,M6c:36,Ccc:49,Fcc:50,nac:51,Zfc:7,HGc:117,p8b:18,eEc:78,jEc:59,uDc:89,Czc:191,o8b:22,jDc:86,kyc:187,q8b:37,Hrc:189,TFc:38,Oic:152,Cjc:153,fkc:154,mkc:155,okc:156,xkc:157,ykc:158,apc:173,epc:174,hpc:175,zpc:176,Bpc:177,Spc:178,Aqc:179,PBc:104,ZBc:105,ICc:106,TCc:107,hDc:115,Etc:181,Evc:182,Tvc:183,oxc:184,Uxc:185,Gmc:108,Jmc:109,Kmc:110,Qnc:111,
$nc:112,mHc:52,hEc:79,AGc:60,iDc:53,nDc:87,Akc:54,nGc:55,PGc:119,QHc:81,iEc:193,UIc:239,aIc:240,oIc:241,psc:70,JBc:71,aoc:72,pBc:73,DHc:82,DGc:83,vDc:84,clc:85},S_d=function(a,b,c){b=Math.min(Math.ceil(b),2048);return a.Ab?c&&0<c.length?new Uw(a.Qs(b,c),b,b,!1,a.dh):a.Qf&&a.Xg?(b=O_d(a,b),new Uw(a.Qs(Math.floor(b.height),void 0,"h"),Math.ceil(b.width),Math.ceil(b.height),!1,a.dh)):new Uw(a.Qs(b,void 0,"h"),void 0,void 0,!1,a.dh):tRd(a)},Led=function(a){C.call(this,a)};t(Led,C);q=Led.prototype;
q.voa=null;q.Qf=null;q.Xg=null;q.C3a=null;q.Nwb=null;q.Na=function(){Led.ya.Na.call(this);this.voa&&Med(this)};q.Ic=function(){return this.Xg};q.wc=function(){return this.Qf};q.Jca=function(a,b,c){a!=this.voa&&(this.voa=a,this.Qf=b||null,this.Xg=c||null,this.Nb()&&Med(this))};q.clear=function(){zc(this.ta());this.Nwb=this.C3a=null};
var nRd={allowFullScreen:"true",allowScriptAccess:"always",bgcolor:"#fff",scale:"noScale",wmode:"opaque"},xgf={OK:0,ADe:1,f$b:10,DDe:14,yDe:15,CDe:16},H3=function(a){C.call(this,a);this.Ab=!0};t(H3,C);H3.prototype.Na=function(){H3.ya.Na.call(this);this.YY&&mRd(this);this.getHandler().Ja(this.ta(),"mousedown",this.Oa,!0)};H3.prototype.Sa=function(a){zc(this.ta());this.$b=a;this.Nb()&&mRd(this)};H3.prototype.Jca=function(a){this.mL=a};
var mRd=function(a){var b=a.Ea().Pa("embed",{height:"100%",src:"//www.youtube.com/get_player?enablejsapi=1",type:"application/x-shockwave-flash",width:"100%"});Pb(nRd,function(a,d){b.setAttribute(d,a)});b.setAttribute("FlashVars",oRd(a,a.$b));a.ta().appendChild(b)};H3.prototype.Oa=function(a){a.target&&"EMBED"==a.target.tagName&&a.stopPropagation()};
var pRd=function(a){var b=a.tf();b||(b=5==a.Sa?ykd:zid);return a.Sa+"/"+b.width+"x"+b.height+"/7/0/0"},oRd=function(a,b){var c=[],d=[],f=ec(b,function(a){return Tb(a1e,a.Sa)&&!!a.getUrl()});cb(f,function(a){return 5!=a.Sa&&18!=a.Sa})&&pb(f,function(a){return 18==a.Sa});wb(f,function(a,b){return fb(rRd,a.Sa)-fb(rRd,b.Sa)});for(var h=0;h<f.length;++h){var k=f[h];c.push(pRd(k));d.push(k.Sa+"|"+Ka(k.getUrl()).replace(/,/g,"%2C"))}c=Ja(c.reverse().join(","));d=Ja(d.reverse().join(","));d="fs=1&hl="+My.Sa+
"&autoplay="+(a.Ab?"1":"0")+"&ps=picasaweb&fmt_list="+c+"&fmt_stream_map="+d+"&auth_timeout=86400000000&playerapiid=uniquePlayerId&video_id=picasacid&t=1&vq=large";a.mL&&(d+="&endscreen_module=https://s.ytimg.com/swf/yt/endscreen.swf&thumbnail_num_shards=1&iurlsd="+a.mL);xc&&!Gf("7")&&(d+="&avoidgeturl=true");return d};H3.prototype.Qb=e(648);var c5=function(a,b){C.call(this,b);this.Ab=a;this.mL=this.Qb=this.Sa=null};t(c5,C);
c5.prototype.Pa=function(){var a=this.Ea(),b=this.Ab.getName();this.Qb=a.Pa("div","a-n-J-v-xe");this.mL=a.Pa("div","a-n-v-uf",a.Pa("div","a-D-v-uf-E","Retry"));this.Sa=a.Pa("div","a-D-wa-E");var c;this.Kb(a.Pa("div","XY-Tc",a.Pa("div","a-D-v-qa",c=a.Pa("span","a-n-J-m"),a.Pa("div","a-D-v-sf",a.Pa("div",{"class":"a-v-sf-aa",title:b},b,a.Pa("div","a-D-v-Tc-m")))),a.Pa("div","a-n-v-wa"),this.Sa,a.Pa("div","a-D-v-Hj",this.mL,this.Qb)));On(this.Sa,!1);On(this.mL,!1);a=this.Ab.Ra();"file"!=a&&"document"!=
a||Pd(c,"visibility","hidden")};c5.prototype.Na=function(){c5.ya.Na.call(this);this.getHandler().Ja(this.Qb,"click",Lp(this.$b,this)).Ja(this.mL,"click",Lp(this.Oa,this)).Ja(this.ta(),"mouseover",Lp(On,void 0,this.Sa,!0)).Ja(this.ta(),"mouseout",Lp(On,void 0,this.Sa,!1))};c5.prototype.Oa=function(){this.dispatchEvent(new N3(this.Ab,"t"))};c5.prototype.$b=function(){Sn(this.ta(),"Lb-v-z-wa")?this.dispatchEvent(new N3(this.Ab,"r")):this.dispatchEvent(new N3(this.Ab,"c"))};
var I_d=function(a,b){var c=a.Ea(),d=b.Sa,f=b.dG()?b.dG().status:null;f&&"QUOTA_EXCEEDED"!=f&&"ERR_ALBUM_LIMIT"!=f&&"ERR_PHOTO_PER_ALBUM_LIMIT"!=f&&"IMAGE_TOO_BIG"!=f&&"INSUFFICIENT_PERMISSION"!=f&&"NOT_IMAGE"!=f&&"BAD_IMAGE"!=f&&"INVALID_REQUEST"!=f&&!Tb(xgf,f)&&On(a.mL,!0);a.ta().className="Lb-v-z-wa";d="Upload failed: "+('<div class="a-D-wa-VL">'+La(d)+"</div>");c.hb(a.Sa);c.appendChild(a.Sa,cd(c,d))};H("sy900");
var h5=function(a,b,c){E3.call(this,a,b,i5.ia(),c);a=a.Mh.FH;switch(a.Sa){case "photos":this.Bm(64,!0);b=!!a.getOption("selectAlbum");this.Bm(8,b);this.Bm(16,b);break;case "photo-albums":this.Bm(8,!0);this.Bm(16,!0);b=!!a.getOption("enableAlbumNavigation");this.Bm(64,b);break;default:this.Bm(8,!1),this.Bm(16,!1),this.Bm(64,!0)}Bo(this,64);this.cSa=!(a&&a.getOption("hideAa"))};t(h5,E3);h5.prototype.Gna=function(){return this.cSa};
h5.prototype.vHa=function(a){this.Ea();var b=this.La().getName()||"",c=this.fb("a-Da-e-O");ey(c,a+1+(": "+b))};h5.prototype.Vva=function(a){xo(this,64)?(m7e(this),a.preventDefault(),a.stopPropagation()):h5.ya.Vva.call(this,a)};h5.prototype.Um=function(a){xo(this,8)?h5.ya.Um.call(this,a):xo(this,64)&&(m7e(this),a.preventDefault(),a.stopPropagation())};
var m7e=function(a){var b=a.La(),c=b.getAttribute("la")||[];eb(c,"camera_sync")?(b=new w3("photos",void 0,{parent:b.getId(),type:"camerasync"}),a=a.getContext().Mh,b.Ab=a.FH,a.On(b)):(a.hm(!0),a.hm(!1),Pn(a.ta(),"a-Da-e-M",!1),Pn(a.ta(),"a-Da-e-eb",!1))};h5.prototype.Oz=function(){h5.ya.Oz.call(this);x0d(this)};h5.prototype.update=function(){h5.ya.update.call(this);this.lp&&x0d(this)};
var x0d=function(a){var b=a.La().Yh();b&&b.length&&X3.ia().load(b[0].ifa(163,110).getUrl(),Lp(function(a){var b=this.Qb;b&&b instanceof i5&&(a=a.target.src,b=this.ta(),b=pc("a-Da-e-na",b),this.La(),b.src=a,ey(b,"Album"),xc&&!Gf(9)||(new bF(b,450)).play())},a))};
var i5=function(a){F3.call(this,a||"a-Da-e")};t(i5,F3);la(i5);
i5.prototype.Pa=function(a){var b=a.Ea().Pa("div",this.qr(a).join(" ")+" d-k-l"),c=a.Ea(),d=a.La(),f=c.Pa("img","a-Da-e-na"),h=c.Pa("div","a-Da-e-jA",f),k=c.Pa("div","a-Da-e-Da-ma");c.appendChild(b,k);c.appendChild(k,h);var m=d.getName()||"",m=c.Pa("div","a-Da-e-O",m);c.appendChild(k,m);xo(a,8)&&c.pC(h,c.Pa("div","a-Da-e-r2a",c.Pa("div","a-n-dc-Tb-X"),c.Pa("div","a-n-dc-Tb-L")),1);h=d.getAttribute("la")||[];eb(h,"photos_from_posts")||eb(h,"camera_sync")||c.appendChild(k,c.Pa("div","a-Da-e-J-Gg",(new Z("{NUMCHILDREN, plural, =1 {1 photo}other {{NUMCHILDREN} photos}}")).format({NUMCHILDREN:d.Tm()})));
a.Gna&&!a.cSa||c.appendChild(k,c.Pa("div","a-Da-e-mI",c.Pa("span",n7e(a),void 0)));xc&&!Gf(9)||qe(f,0);return b};var n7e=function(a){a=a.La();switch(P_d(a.getAttribute("aa"))){case "public":return"a-n-yc-uc-ib-hg";case "domainPublic":return"a-n-yc-uc-ib-md-hg";case "extendedCircles":return"a-n-yc-uc-ib-de-uo";case "allPersonalCircles":return"a-n-yc-uc-ib-ns";case "limited":return"a-n-yc-uc-ib-ns";case "ownerOnly":return"a-n-yc-uc-ib-By-Ay"}return""};
var z7e=function(a){var b;b='<table class="a-zb-wf"><tbody><tr><td align="center"><table><tbody><tr><td><div class="a-n-xC a-zb-Cd"></div></td><td>You don\'t have any photos yet! <br />';""!=a.eAa&&(a="Click <b>"+(r(a.eAa)+"</b> on the left to start uploading, sharing and organizing your photos on Google+."),b+=a);return b+"</td></tr></tbody></table></td></tr></tbody></table>"};
var j5=function(a,b,c){y4.call(this,a,b,void 0,"horizontal",c);this.Zma=new lW(this.Ea());this.ib(this.Zma);this.qna=[]};t(j5,y4);q=j5.prototype;q.nHa=function(){return this.ta()};q.Na=function(){j5.ya.Na.call(this);this.nA=new I4e(this.nHa(),this.Ea())};q.Pa=function(){j5.ya.Pa.call(this);this.Zma.Td=this;var a=this.ta();this.Zma.Sa=a;this.Zma.render(this.ta());if(kr){var a=this.Ea(),b=this.getContainer().cb().parentNode;b.appendChild(a.Pa("br"));b.appendChild(a.Pa("br"))}};
q.Hr=function(a){j5.ya.Hr.call(this,a);this.fBa=null};q.lya=function(a,b){a?(b?this.qna=this.getContext().Sa.Ua():(this.getContext().Sa.lJ(),this.qna=[]),this.nA.start()):this.nA.stop();Pn(this.ta(),"a-S1-R1",a)};q.GHa=function(){this.fBa||(this.fBa=pe(this.ta()));return this.fBa};q.Yia=function(){this.getContext().Sa.WT(this.qna,!0)};q.Eqa=Fx;
var k5=function(a,b,c){j5.call(this,a,b,c)};t(k5,j5);k5.prototype.ED=function(a){return new h5(this.getContext(),a,this.Ea())};k5.prototype.Pa=function(){k5.ya.Pa.call(this);Qn(this.ta(),"a-J7")};k5.prototype.bC=function(a){a=k5.ya.bC.call(this,a);return ec(a,function(a){return 0!=a.Tm()&&!!a.Yh()&&!!a.Yh().length})}; k5.prototype.gR=function(){if("photos"!=this.Gf().Sa)k5.ya.gR.call(this);else{var a={},b=this.getContext(),c=b.rd().dTa;oa(c)?(c=new w3(c[0],c[1],c[2]),a.eAa=c.getName()):a.eAa="";this.lp(U(b.ef(),z7e,a))}};
var Nlg=function(a,b,c){a=a||{};b="";a=wA(new Z("{VIEWER_GENDER,select,female{ No photos found.{START_BREAK}Photo Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2} computer{END_LINK}, then enable Auto Backup to see your photos here.}male{ No photos found.{START_BREAK}Photo Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2} computer{END_LINK}, then enable Auto Backup to see your photos here.}other{ No photos found.{START_BREAK}Photo Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2} computer{END_LINK}, then enable Auto Backup to see your photos here.}}"),
{VIEWER_GENDER:c.Aa,START_BREAK:"<br>",START_LINK_1:'<a href="'+a.M2c+'" target="_blank">',END_LINK:"</a>",START_LINK_2:'<a href="'+a.L2c+'" target="_blank">'});return P(b+a)},Olg=function(a,b,c){a=a||{};b="";a=wA(new Z("{VIEWER_GENDER,select,female{ No videos found.{START_BREAK}Video Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2}computer{END_LINK}, then enable Auto Backup to see your videos here.}male{ No videos found.{START_BREAK}Video Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2}computer{END_LINK}, then enable Auto Backup to see your videos here.}other{ No videos found.{START_BREAK}Video Auto Backup is a part of Google+ for mobile devices as well as Mac OS & Windows.{START_BREAK}Download the app on your {START_LINK_1}mobile device{END_LINK} and {START_LINK_2}computer{END_LINK}, then enable Auto Backup to see your videos here.}}"), {VIEWER_GENDER:c.Aa,START_BREAK:"<br>",START_LINK_1:'<a href="'+a.M2c+'" target="_blank">',END_LINK:"</a>",START_LINK_2:'<a href="'+a.L2c+'" target="_blank">'});return P(b+a)};
var C_d=function(a,b,c){q4.call(this,a,c);this.zl=b};t(C_d,q4);C_d.prototype.getMessage=function(){var a={M2c:"http://google.com/intl/"+My.Sa+"/mobile/+/",L2c:"https://support.google.com/picasa/answer/4392268?hl="+My.Sa};return JC(this.getContext().ef(),"v"==this.zl?Olg:Nlg,a)};C_d.prototype.Ab=function(){return this.Ea().Pa("div",["a-n-xC","a-zb-Cd"])};
var m5=function(a,b,c){F3.call(this,this.Pc());this.Sa=a||120;this.Km=b;this.Vb=c};t(m5,F3);var G1d=0,J0d=null;q=m5.prototype;q.fN=function(a,b){var c=[];this.Km&&c.push("c");b&&"video"==b&&c.push("no");return S_d(a,this.Sa,c)};q.Uaa=function(a){return(a=a&&this.fN(a[0]))?O_d(a,this.Sa):new Kb(this.Sa,this.Sa)};
q.Pa=function(a){var b=a.La(),c=a.Ea(),d,f,h;b.Ii?h=c.Pa("div",this.Pc()+"-Tc"):(h=c.Pa("div",this.Pc()+"-cj"),qe(h,0));le(h,this.Uaa(b.Yh()));f=c.Pa("div",{id:"picker:pcp:"+G1d++,"class":this.Pc()+"-qa"},c.Pa("div",{"class":this.Pc()+"-qa-B",id:"imageContent"+va(a)},h),d=c.Pa("div",this.Pc()+"-Qe-Hj"));var k=c.Pa("div",this.qr(a).join(" ")+" d-k-l",c.Pa("div",this.Pc()+"-sd d-k-l",f)),m=f.appendChild(c.Pa("div","a-Ca-kj-z",c.Pa("div","a-Ca-e-na-wf",c.createTextNode("Processing video...")),c.Pa("div",
"a-Ca-sf",c.createTextNode(b.getName())),c.Pa("div","a-Ca-Hd d-k-l")));On(m,!1);m=f.appendChild(c.Pa("div","a-n-Ca-vk-Ab a-Ca-vk-m"));On(m,!1);0<=Xa(OJ,"9.0.0")&&Pd(m,"cursor","pointer");Qn(k,"Lb-v-z");a.Gdb(h);this.Vb?d.appendChild(c.Pa("div",{id:a.yw().getId(),"class":this.Pc()+"-jc"})):(c=b.Jd(),Ea(Ga(c))&&(c=b.getName()),Ea(Ga(c))||(k.title=c));b.Ii&&(h.className=this.Pc()+"-ii",a=F9f(a),a.Pa(),f.appendChild(a.ta()));return k};
q.tq=function(a){m5.ya.tq.call(this,a);var b=a.La();if(this.Vb){var c=a.yw();c.yb(a.Ea().ta(c.getId()));b=b.Jd()||"";c.setContent(b);c.ta().title=b}this.l0(a)};q.h_=function(){return!1};q.Pc=function(){return"a-J-e"};
var F0d=function(a){var b=a.yw().ta();b&&(a=N_d(a))&&(a=zy(a.parentNode),b.style.top=a.height+"px",My.Bo()?b.style.right="0px":b.style.left="0px")},G0d=function(a,b){var c=b.Be||(b.Be=new Led(b.Ea())),c=new Kb(c.wc(),c.Ic());if(c.width&&c.height){var d=new Gb(0,0),f=new Kb(c.width,c.height),h=N_d(b);if(h){var k=R3(h,!1,!1);if(90==k||270==k)if(k=f.width/f.height,f.height=a.Sa,f.width=Math.round(f.height/k),k=Math.min(3*f.height,1600),f.width>k&&(k/=f.width,f.height*=k,f.width*=k),c.width=f.height,
c.height=f.width,k=R3(h,!0,!0),90==k||270==k)d.y+=Math.floor((f.height-c.height)/2),d.x+=Math.floor((f.width-c.width)/2);k=de(h);f.width+=k.left+k.right;f.height+=k.top+k.bottom;le(h.parentNode,f);le(h,c);h.style.top=d.y+"px";My.Bo()?h.style.right=d.x+"px":h.style.left=d.x+"px";F0d(b)}}};q=m5.prototype;q.upa=ka;
q.l0=function(a){var b=a.La(),c=b.Yh(),c=c&&this.fN(c[0],b.Ra());if(a.lp&&(c?(this.E6(a,URd(c.getUrl()),c.wc(),c.Ic()),F0d(a)):(c=yUd("div",this.Pc()+"-cj",a.ta()))&&qe(c,1),c=b.Jd()||b.getName(),this.Vb&&c)){var d=a.Ea().Tc(this.Pc()+"-jc")[0];""==Uc(d)&&Rc(d,c)}(b=b.Ii)&&On(F9f(a).ta(),!0);b&&"error"==b.getState()&&a.yZ();this.eO(a,this.Pc()+"-ak",!xo(a,16))};
q.E6=function(a,b,c,d){c&&d&&(d=this.Uaa(a.La().Yh()),c=d.width,d=d.height);var f=a.Be||(a.Be=new Led(a.Ea()));if(!f.Nb()){var h=this.lO(a);a.Ea().hb(h);(new bF(h,450)).play();f.yb(h)}f.Jca(b,c,d)};q.lO=function(a){return Zc(a.Ea(),"div",this.Pc()+"-qa-B",a.ta())[0]};q.jh=function(a){return this.lO(a)};
q.$ca=function(a,b){if(b){var c=a.Ea().fb(this.Pc()+"-ii",a.ta());c&&On(c,!1);Qn(a.Ea().fb(this.Pc()+"-qa",a.ta()),"a-kj-Ca");On(a.Ea().fb("a-Ca-kj-z",a.ta()),!0)}else On(a.Ea().fb("a-Ca-kj-z",a.ta()),!1),me(a.Ea().fb(this.Pc()+"-qa",a.ta()),"auto"),ne(a.Ea().fb(this.Pc()+"-qa",a.ta()),120)};q.Sxa=function(a,b){var c=a.Ea().fb("a-n-Ca-vk-Ab",a.ta());c&&On(c,b)};
var n5=function(a,b,c,d,f){O3.call(this,a,b,c||J0d||(J0d=new m5),d);ooa(this,!0);this.Ko=!ia(f)||f?new c5(this.La(),d):null;this.Oa=null;this.Pha="";this.yH=0;this.Be=this.Maa=null};t(n5,O3);n5.prototype.Gdb=function(a){this.Maa=a};n5.prototype.Oz=function(){n5.ya.Oz.call(this);this.update()};n5.prototype.yw=function(){var a=this.Oa;a||(a=this.Oa=new yo(""),a.Bm(32,!1));return a};
n5.prototype.update=function(){n5.ya.update.call(this);var a;var b=this.getContext();a=b.rd();var c=this.La();a=a.YY&&XRd(c,b)?!0:(b=c.Ii)&&"success"!=b.getState()||a.YY&&"photo"!=c.Ra()||!a.gea(c.rI())?!1:L0d(a.Db,a.Oa,c);Tv(this,16)||this.Bm(16,a);this.setState(32,Tv(this,32)&&a);Tv(this,32)||this.Bm(32,a);a=this.La();b=a.Yh();c=this.Qb;b=b&&c.fN(b[0]);"video"==a.Ra()&&"picasa"==a.Sa?(b&&a.getVideoData()&&c.Sxa(this,!0),b&&a.getVideoData()?(c.$ca(this,!1),K0d(this,b)):c.$ca(this,!0)):b?(K0d(this,
b),"video"==a.Ra()&&c.Sxa(this,!0)):c.l0(this);this.Oa&&""==this.Oa.getContent()&&this.Oa.setContent(a.Jd())};var K0d=function(a,b){var c=N_d(a);a.yH=c?R3(c,!1,!1):0;c=b.getUrl();c=URd(c);a.Pha=X3.ia().load(c,Lp(a.Nid,a))};q=n5.prototype;
q.Nid=function(a){if(!this.isDisposed()&&a.target.id==this.Pha){var b=N_d(this);if(b){if(R3(b,!1,!1)!=this.yH)return;ERd(b,0)}!(b=this.La().Yh())||!b.length||b[0].wc()&&b[0].Ic()||(b[0]=b[0]instanceof uAf?new uAf(b[0].getUrl(),a.target.width,a.target.height):new Uw(b[0].getUrl(),a.target.width,a.target.height,b[0].Ab,b[0].Ra()),this.La().ZE(b));this.Qb.l0(this,0!=this.yH);G0d(this.Qb,this)}};
q.Na=function(){n5.ya.Na.call(this);this.Ko&&(this.Ko.Nb()||this.Ko.render(this.Maa),this.getHandler().Ja(this.Ko,"QE",this.Oid))};q.Oid=function(a){this.dispatchEvent(a)};q.yZ=function(){this.Ko&&I_d(this.Ko,M3(this.La()))};q.Ib=function(){n5.ya.Ib.call(this);this.Oa&&this.Oa.Ib()};var L0d=function(a,b,c){if(!a&&!b)return!0;c=c.Yh();if(!c||!c.length)return!1;c=c[c.length-1];var d=c.wc(),f=c.Ic();if(!a||c.Ab||d<=a.width&&f<=a.height)if(!b||d>=b.width&&f>=b.height)return!0;return!1};
n5.prototype.E6=function(a,b,c){this.Qb.E6(this,a,b,c)};n5.prototype.Um=function(a){if(0<=Xa(OJ,"9.0.0")&&Sn(a.target,"a-n-Ca-vk-Ab")){var b=new H3;b.Pa();var c=new gD(this.Ea());iD(c,!0);c.Fg(this.ta());c.IA(!0);c.setPosition(1,2,void 0,35);c.ib(b);c.render(this.getContext().rd().fG());c.setContent(b.ta());b.Sa(this.La().getVideoData().QD());le(b.ta(),280,210);vbg(this,c);c.setVisible(!0);Qn(c.ta(),"a-Ca-i");n5.ya.Um.call(this,a)}else"A"!=a.target.tagName&&n5.ya.Um.call(this,a)}; var vbg=function(a,b){a.getHandler().yj(b,"hide",function(){b.Ma()})};
var o5=function(a,b,c,d){j5.call(this,a,b,c);this.Km=d||J0d||(J0d=new m5);this.Db=new G_d(a,c);this.ib(this.Db);this.Xb=!1;this.Vb=null};t(o5,j5);q=o5.prototype;q.ED=function(a){a=new n5(this.getContext(),a,this.Km,this.Ea());oig(this.Gf())&&a.Bm(255,!1);this.getHandler().Ja(a,"QE",this.Zid);return a};q.Pa=function(){o5.ya.Pa.call(this);var a=this.Pc();Qn(this.ta(),a);"edit"==this.Gf().getOption("mode")&&Qn(this.ta(),a+"-ga");this.Db.render(this.ta())};q.Pc=function(){return"a-Vg"};q.Zid=function(a){this.dispatchEvent(a)};
q.bC=function(a){var b=this.getContext().rd(),c=b.Db,b=b.Oa,d=this.Gf();!c&&!b||"image-search"!=d.Sa&&"featured"!=d.Ra()||(a=ec(a,wa(L0d,c,b)));return o5.ya.bC.call(this,a)};q.Hr=function(a){o5.ya.Hr.call(this,a);var b=this.getContext().rd(),c=b.Db,d=b.Oa;if(c||d)Ye(a,wa(L0d,c,d))||this.Db.display("s");a=this.Gf();b.YY&&"photos"==a.Sa&&"ofuser"==a.Ra()&&this.Db.display("p")};
q.m2a=function(a){var b=a.target,c=b.La(),d=this.getContext().rd();if("check"==a.type&&d.jg&&xo(b,16)){if("ytcb"==d.jg)return ZRd(c,this.Gf(),this.getContext()),!1;if(!P0d(this))return d.YY&&"picasa"==c.Sa?N0d(this,b):O0d(this,c),!1}return o5.ya.m2a.call(this,a)};
var N0d=function(a,b){if(!a.Xb){a.Xb=!0;Uf(Lp(b.Ld,b,!1));var c=a.getContext();c.Sa.lJ();var d={label:"profile_photos.draft"},f=b.La(),h=f.Qja;h&&(d.srcOwnerId=h[0].getId());c.Mh.dya(!0);c.od.Vd(new K3("copy","picasa",[f.getId()],d),Lp(function(a){c.Mh.dya(!1);a=a.Ae()[0];O0d(this,a)},a),Lp(a.yja,a),!0)}};o5.prototype.yja=function(){alert("There was an error while preparing your selected profile photo.  Please try again.");this.getContext().Mh.dya(!1)};
var O0d=function(a,b){var c=new w3("crop");BN(c,"id",b.Qe());BN(c,"service",b.Sa);var d=a.Gf();c.Ab=d;(d=b.vt())&&BN(c,"parent",d.split(".").pop());P0d(a)&&BN(c,"mode","none");a.getContext().Mh.On(c);a.Xb=!1};o5.prototype.cD=function(a){this.getContext().rd().jg||oig(this.Gf())||o5.ya.cD.call(this,a)};var P0d=function(a){var b=a.Gf(),c=b.getOption("parent");return c&&YRd(a.getContext().od.La(c))?!0:"streamid"==b.Ra()&&"profile_photos"==b.getQuery()};
o5.prototype.Eqa=function(a){var b=this.fb("a-Lc-B");return this.getContext().rd().$b&&this.xw()&&"IMG"!=a.tagName&&(b==a||Oc(b,a))&&!Sn(a,"a-nf-e-lf")};o5.prototype.Yia=function(a,b){if(a&&!this.isDisposed()){var c=this.ta().scrollTop,d=[],f=[];He(this.getContainer(),function(b){if(b instanceof n5){var k=pe(b.ta());k.top+=c;Vba(a,k)?d.push(b.La().getId()):f.push(b.La().getId())}},this);this.getContext().Sa.WT(f,!1);this.getContext().Sa.WT(d,!0);o5.ya.Yia.call(this,a,b)}};
o5.prototype.Ik=function(a){this.Vb&&(this.removeChild(this.Vb,!0),this.Vb=null);o5.ya.Ik.call(this,a)};o5.prototype.gR=function(){var a=this.Gf().getOption("type");"camerasync"==a?(this.Vb=new C_d(this.getContext(),"p",this.Ea()),x(this,this.Vb)):"videos-camerasync"==a&&(this.Vb=new C_d(this.getContext(),"v",this.Ea()),x(this,this.Vb));this.Vb?this.ib(this.Vb,!0):o5.ya.gR.call(this)};
var e8e=function(a,b,c){this.Qb=a||a8e;m5.call(this,this.Qb.height,b,c)};t(e8e,m5);la(e8e);var a8e=new Kb(140,140);q=e8e.prototype;q.Pa=function(a){a=a.Ea();a=a.Pa("div",this.Pc()+"-nb",a.Pa("div",this.Pc()+"-sd",a.Pa("div",[this.Pc()+"-lf","a-n-dc-Tb-X"]),a.Pa("img",this.Pc()+"-zc")));le(a,this.Qb.width+10,this.Qb.height+10);return a};q.Pc=function(){return"a-nf-e"};q.lO=function(a){return a.fb(this.Pc()+"-sd")};q.jh=function(a){return a.ta()};
q.upa=function(a,b){var c=b.fb(this.Pc()+"-lf");c&&(Pn(c,"a-n-dc-Tb-L",a),Pn(c,"a-n-dc-Tb-X",!a))};q.fN=function(a){var b;b=a.wc()&&a.Ic()?(new Kb(a.wc(),a.Ic())).Cr(this.Qb).floor():this.Qb;return a.ifa(b.width,b.height)};q.Uaa=function(){return new Kb(this.Qb.width+18,this.Qb.height+48)};
q.l0=function(a){var b=a.Ea(),c=a.fb(this.Pc()+"-zc"),d=a.La(),f=this.ryb(d);f&&(c.src=f.getUrl());d=d.getName()||d.Jd();d=si(d);d=cd(b,d);b=b.tD(d);c.title=b;c.alt=b;var b=this.lO(a),h=d=this.Qb;f&&f.wc()<=d.width&&f.Ic()<=d.height?h=new Kb(f.wc(),f.Ic()):f&&(h=sRd(f,d));le(b,h);le(c,h);this.zDa(b.parentElement,b);qe(b,1);this.eO(a,this.Pc()+"-ak",!xo(a,16))};q.ryb=function(a){return(a=a.Yh())&&this.fN(a[0])}; q.zDa=function(a,b){var c=ze(a),d=xe(b),f=My.Bo(),h=Math.round((c.width-d.width)/2);f?b.style.right=h+"px":b.style.left=h+"px";b.style.top=Math.round((c.height-d.height)/2)+"px"};q.Sxa=ka;q.$ca=ka;
var Z3=function(a,b,c,d){o5.call(this,a,b,c,d||e8e.ia())};t(Z3,o5);Z3.prototype.Pa=function(){Z3.ya.Pa.call(this)};Z3.prototype.Pc=function(){return"a-Ho"};Z3.prototype.ED=function(a){return new n5(this.getContext(),a,this.Km,this.Ea(),!1)};Z3.prototype.m2a=function(a){var b=Z3.ya.m2a.call(this,a),c=x5(this,a.target.La().getId());b&&c&&this.Km.upa("check"==a.type,c);return b};

G("sy900");I();
}catch(e){_DumpException(e)}
try{
Nr.prototype.Q9=g(216,function(){return null!=w(this,5)?w(this,5):1});RWb.prototype.Q9=g(215,function(){return null!=w(this,3)?w(this,3):0});
var I1d=function(a){a.getHandler().nb(a.getContext().We(),"ui",a.update);a.Ko&&On(a.Ko,!1);a.Mma=!0},D2e=function(a,b,c,d){var f={};f.id=a;f.name=c||"";f.serviceId="localphotos";f.sourceId="0";f.mimeType="application/vnd.google-apps.photo";f.type="photo";f.lastEditedUtc=Wa();a=new Vw(f);b&&a.ZE([new Uw(b,void 0,void 0,!0)]);a.setAttribute("ilpp",!!d);return a},vag=function(a){return(new Z("{filesCount, plural, =0 {unused plural form}=1 {Selected file [{file}] is not supported for upload.}other {Selected files [{files}] are not supported for upload.}}")).format({filesCount:a.length,
files:Baa(a.toString(),30,!0),file:a[0]})},M1d=function(a,b,c){this.Fs=a;this.Ed=c};q=M1d.prototype;q.Sb="default";q.dNa=0;q.KTb=null;q.getId=function(){return this.Fs};q.tf=function(){return this.Ed};q.setSize=function(a){this.Ed=a};q.getState=function(){return this.Sb};q.setState=function(a){this.Sb=a};q.dG=function(){return this.KTb};
var L1d=function(a){return eb(["success","error","cancel"],a)},z2d={Upd:"blogger",$zd:"books",mib:"calendar",$Ra:"contacts",rTb:"gready",dSb:"cportal",NFc:"cultural",X5b:"docs",PCd:"photo",DSb:"dragonflyphotos",ISb:"drive",KSb:"drive-select",H6b:"fonts",WDd:"et",WEd:"geodiscussion",God:"groups",KHd:"localphotos",$7b:"maps",fUb:"mapshop",YHd:"mapspro",dId:"media",Y8b:"party",zna:"picasa",CKd:"places",uyb:"play-edu",aVb:"relatedcontent",rTc:"stories",Ona:"youtube",ird:"web",Zda:"people",nMd:"search-api", URL:"url",sLd:"recent",NBd:"cosmo",GCd:"DoclistBlob",KCd:"doc",VCd:"drawing",AEd:"form",ivd:"freebird",lHd:"kix",VKd:"pres",fLd:"punch",Xqd:"ritz",BNd:"spread"};H("sy901");
var F5=function(a,b,c,d,f){Ld.call(this);this.Sa=a;a.We().Qcc(this);this.Oa=a.F2a(b);this.Bc=c;this.Ab=d;this.tb=f;this.mL={};this.Vb={};(b=My.mL)&&(this.Vb.Authorization="Bearer "+b);this.jg=new TC(Lp(function(){this.Sa.Ab.Sl(this.Ae(),"uploadProgress")},this),2E3);this.Bb=new Hd(this);this.Ab.addCallback(function(b){this.Bb.Ja(b,"filedownsamplingstarted",this.jAc).Ja(b,"filedownsamplingcompleted",this.iAc).Ja(b,"fileremoved",this.pjd).Ja(b,"filesselected",this.uIb).Ja(b,"uploadstatechanged",this.C2a).Ja(b,
"uploadprogress",this.qjd).Ja(b,"uploadmessagechanged",this.B2a).Ja(b,"filepreviewready",this.nAc).Ja(b,"allfilescompleted",this.tIb).Ja(a.Qb,"cancel-upload",this.Mvc)},this)};t(F5,Ld);var g2d={"default":"default",inqueue:"scheduled",start:"running",success:"success",error:"error",cancel:"canceled"};q=F5.prototype;q.getContext=function(){return this.Sa};q.Gf=function(){return this.Bc};q.getHandler=function(){return this.Bb};q.La=function(a){return this.getContext().od.La(this.mL[a])};
q.Ae=function(){var a=this.getContext().od;return zg(Rb(this.mL),function(b){return a.La(b)})};
var G5=function(a){return ec(a.Ae(),function(a){a=a.Ii&&a.Ii.getState();return!a||"error"!=a&&"canceled"!=a?!0:!1})},H5=function(a,b){var c=a.getContext().od;return N2a(a.mL,Lp(function(a){a=c.La(a);return b==(a.Ii&&a.Ii.getState())},a))},$1d=function(a){return 0==a.indexOf("image/")?"photo":0==a.indexOf("video/")?"video":"document"},a2d=function(a,b){var c=a.mL[b];c&&(a.tb&&a.tb.dL([c]),delete a.mL[b])},b2d=function(a){return!!a.Bc.getOption("notifications")};
F5.prototype.kda=function(){this.getContext().od.xk(34);this.Ab.addCallback(function(a){var b=[],c=[];v(a.Lt(),function(d){"default"==HY(a,d)&&(b.push(d),c.push(this.La(d.getId())))},this);v(b,function(a){a.Oi().gz(this.Aga(a));a.jxa(this.Vb)},this);v(c,function(a){a.Ii.setState("scheduled")});b2d(this)&&this.Sa.Ab.Sl(c,"uploadScheduled");wb(b,function(a,b){return yb(a.getName(),b.getName())});v(b,function(b){a.O$(b)})},this)};
F5.prototype.Aga=function(a){var b=Xb(this.Oa.getMetadata()||{});Zb(b,this.Bc.getOption("data")||{});b=Paa(b,function(a,b,f){return null!=f[b]&&!ya(b,"closure_uid")});b.title=a.getName();b.addtime=String(Wa());return b};var c2d=function(a,b){a.Ab.addCallback(function(a){var d=a.getFile(b);d&&a.Qda(d)},a)};q=F5.prototype;q.dE=function(a){this.Ab.addCallback(function(b){b.dE();a&&v(b.Lt(),function(a){"success"!=HY(b,a)&&b.Tu(a)})},this)};q.Mvc=function(a){(a=a.data.id)?c2d(this,a):this.dE()};
q.jAc=function(a){a=this.La(a.file.getId()).getId();this.Sa.We().Ywd(a)};q.iAc=function(a){var b=this.La(a.file.getId()),c=b.getId();a=a.file.dp;b.Ii.setSize(a||void 0);this.Sa.We().Xwd(c,a)};q.pjd=function(a){var b=a.file;a=b.getId();var c=this.La(a);a2d(this,a);wag(this,[]);this.Ab.addCallback(function(a){a=HY(a,b);"default"!=a&&(a=L1d(a),this.Sa.We().$wd(c.getId(),a))},this)};q.uIb=function(a){d2d(this,a.files)};
var d2d=function(a,b){if(b&&b.length)if(wag(a,b)){var c=[];v(b,function(a){var b=a.getId(),h={};h.name=a.getName();h.serviceId=this.Oa.Oa;h.id=String(va(h));h.lastEditedUtc=Wa();h.isNew=!0;h.description=a["p-pc"];h.sizeBytes=a.dp||void 0;h.mimeType=a.rI()||a.Q9()||void 0;h=new Vw(h);a=new M1d(a.getId(),a.getName(),a.dp||void 0);h.Ii=a;this.mL[b]=h.getId();c.push(h)},a);a.dispatchEvent(new e2d("Bk",c));a.tb&&a.tb.QK(c);a.Sa.od.Xp(c)}else v(b,function(a){c2d(this,a.getId())},a)},wag=function(a,b){var c=
!0,d,f,h,k=G5(a),m=a.Sa.rd().iu,p=a.Sa.rd().xna,u=a.Sa.rd().nA,z=a.Sa.rd().o9,F=k.length+b.length;if(m||p){var M=0,X=0;v(k,function(a){a&&a.mL&&(M+=a.mL)},a);v(b,function(a){a=a.dp;M+=a||0;a&&a>X&&(X=a)},a);m&&M>m&&(a.Sa.rd().Vk?f=1:(c=!1,d=5));p&&X>p&&(c=!1,d=4)}if(u&&F>u)t:switch(c=!1,d=3,jpb(a)){case "photo":h="Try again with fewer photos. Uploads up to "+(u+" photos are allowed.");break t;case "video":h="Try again with fewer videos. Uploads up to "+(u+" videos are allowed.");break t;default:h=
"Try again with fewer items. Uploads up to "+(u+" items are allowed.")}z&&F<z&&(c=!1,d=2,h=JC(a.Sa.ef(),Xee));var da=new df;if(k=a.Gf().getOption("mimeTypes")){var Aa=k.split(",");v(b,function(a){a.rI()&&eb(Aa,a.rI())||da.add(a.getName())},a);da.isEmpty()||(c=!1,d=1,h=vag(da.Rc()))}a.dispatchEvent(new Zfe(a.Sa,c,d,h,f));return c},jpb=function(a){return(a=a.Oa.Ab)&&1==a.length?a[0]:null};F5.prototype.C2a=function(a){f2d(this,a.file)};
var f2d=function(a,b){a.Ab.addCallback(function(a){var d=b.getId(),f=this.La(d),h=HY(a,b),k=g2d[h];if(k&&f){var m=f.Ii,p=m.getState();m.setState(k);"success"===k&&(m.dNa=b.PB);if(L1d(h)){"default"!=p&&(f.hd($1d(b.Q9()||"")),this.Sa.We().Wwd(f.getId()));if("success"==h){if(h=a.zx(b).dG())a=f.getId(),f=this.E9(f,h),f.setAttribute("oid",a),h=this.Sa.od,h.$Ua(a,f),(a=f.vt())&&(a=h.La(a))&&ia(a.Tm())&&I2d(a,a.Tm()+1),b.gxa(f.getId()),this.mL[d]=f.getId();var u=this.Sa.Sa;this.Sa.rd().$b&&Uf(function(){u.isDisposed()||
u.Sf(f.getId())||u.HP(f.getId(),"cb")});this.getContext().od.xk(35)}else"error"==h&&this.getContext().od.xk(32);this.dispatchEvent(new h2d("ql",f))}else"inqueue"==h?this.Sa.We().Xgb(f.getId(),b.dp,i2d(a)):"start"==h&&(this.Sa.We().c3b(f.getId()),this.dispatchEvent(new h2d("$k",f)));b2d(this)&&"default"!=k&&"scheduled"!=k&&this.Sa.Ab.Sl([f],"uploadStateChange");j2d(this,f)}},a)};q=F5.prototype;q.E9=function(a,b){a.Ii.Ab=b.contentId||b.photo_id;var c=a.Ii.tf()||0;a.mL=c;return a};
q.qjd=function(a){var b=a.file;if(a=this.La(b.getId())){var c=b.PB,b=b.dp;a.Ii.dNa=c;j2d(this,a);b&&this.Sa.We().Zwd(a.getId(),c,b);b2d(this)&&this.jg.Il()}};q.B2a=function(a){this.Ab.addCallback(function(b){var c=a.file,d=this.La(c.getId());if(d){var f=d.Ii;f.Sa=a.message;b=b.zx(c);f.KTb=b&&b.dG()||null;j2d(this,d)}},this)};q.nAc=function(a){var b=this.La(a.file.getId());if(b){var c=b.Yh();c&&c.length||(b.ZE([new Uw(a.Ab,a.Sa&&a.Sa.resultWidth,a.Sa&&a.Sa.resultHeight)]),j2d(this,b))}};
q.tIb=function(){var a=G5(this);wb(a,function(a,b){return a.Ab-b.Ab});var b=this.Sa.Sa;v(a,function(a){b.Fca(a.getId(),!1);b.Fca(a.getId(),!0)});this.getContext().od.xk(33)};var j2d=function(a,b){a.Sa.od.Xp([b])};F5.prototype.reset=function(){this.mL={}};F5.prototype.qb=function(){F5.ya.qb.call(this);delete this.Oa;delete this.mL;this.jg.Ma();delete this.jg;this.Bb.Ma();delete this.Bb};
var i2d=function(a){return"undefined"!=typeof KY&&a instanceof KY?"flash":"undefined"!=typeof NY&&a instanceof NY?"html_form":"undefined"!=typeof RY&&a instanceof RY?"xhr":"other"},h2d=function(a,b){A.call(this,a);this.Sa=b};t(h2d,A);var e2d=function(a,b){A.call(this,a);this.Sa=b};t(e2d,A);var Zfe=function(a,b,c,d,f){A.call(this,"om");this.Ab=b;this.YY=c;this.Sa=f;this.Vb=d?d:MLe(a,this.YY)};t(Zfe,A);
var xag=function(a,b,c,d,f){F5.call(this,a,b,c,d,f);this.YY=UJ(a.ka())};t(xag,F5);xag.prototype.E9=function(a,b){xag.ya.E9.call(this,a,b);if(b.url){var c=this.YY.getImageUrl(b.url,new kB(120,120));a.ZE([new Uw(c)])}a.Wb(b.title||"");a.Ii.Ab=b.assetId;return a};
var k2d=function(a,b,c,d,f){F5.call(this,a,b,c,d,f)};t(k2d,F5);k2d.prototype.Aga=function(a){a=k2d.ya.Aga.call(this,a);var b=this.Ag;b&&(a.parentId=b);b=this.YY;void 0!==b&&(a.gdConvert=b?"true":"false");a.protocol="4";return a};
k2d.prototype.E9=function(a,b){k2d.ya.E9.call(this,a,b);var c=a.Ii,d={},f;t:{f=Qf(b.actions||"[]");for(var h=0;h<f.length;h++){var k=f[h];if("open"==k.actionCategory){f=k.url;break t}}f=void 0}d.url=f;d.id=b.id;f=b.serviceId;d.serviceId="photo"!=f&&Tb(z2d,f)?f:"docs";d.sourceId="0";d.mimeType=b.mimeType;d.name=b.name;d.type=$1d(b.mimeType);d.description=b.description;d.lastEditedUtc=parseInt(b.lastEditedUtc,10);d.isNew=!0;if(f=b.thumb)f=Qf(f),f.r=!0,d.thumbs=[f];a=new Vw(d);a.Ii=c;var m;(c=b.blobRevisions)&& (m=Qf(c));m&&!gb(m)&&(m=m[0].downloadUrl)&&a.setAttribute("downloadUrl",m);return a};
var l2d=function(a,b,c,d){F5.call(this,a,b,c,d)};t(l2d,F5);l2d.prototype.E9=function(a,b){a.$b=b.id;a.Fs=null;a.Sa="photo";a.setAttribute("dw",b.width);a.setAttribute("dh",b.height);a.ZE([new Uw("",b.width,b.height,!1)]);return a};var m2d=function(a,b,c,d,f){this.Sa=a;this.jg=b;this.mL=c;this.YY=d;this.Oa=f||Gx;this.Ba=new Hd(this);this.$b=new TC(this.J4a,218,this);this.Ab=[];a=jc(this.mL);this.Ab.push(this.mL.appendChild(a.Pa("div","a-Db-ri-Zb")));this.Ab.push(this.mL.appendChild(a.Pa("div","a-Db-ri-ya")));this.Ab.push(this.mL.appendChild(a.Pa("div","a-Db-ri-Ja")));this.Ab.push(this.mL.appendChild(a.Pa("div","a-Db-ri-Qe")));this.Qb=a.Pa("div","a-Db-p",a.Pa("div","a-Db-p-aa",this.YY));for(a=0;a<this.Ab.length;a++)On(this.Ab[a],
!1);On(this.Qb,!1);this.mL.insertBefore(this.Qb,this.mL.firstChild)};t(m2d,kd);q=m2d.prototype;q.$fb=!0;q.Ja=function(a){var b=this.mL;a?this.Ba.Ja(b,"dragenter",this.uka).Ja(b,"dragover",this.uka).Ja(b,"dragleave",this.uka).Ja(b,"drop",this.OTb):this.Ba.nb(b,"dragenter",this.uka).nb(b,"dragover",this.uka).nb(b,"dragleave",this.uka).nb(b,"drop",this.OTb)};q.uka=function(a){this.Oa(a)&&(a.Ak().dataTransfer.dropEffect=wd?"move":"copy",this.Ag=a.type,this.$b.Il(),a.preventDefault())};
q.J4a=function(){switch(this.Ag){case "dragenter":case "dragover":if(!ve(this.Ab[0]))for(var a=0;a<this.Ab.length;a++)(new dF(this.Ab[a],218)).play();this.$fb&&!ve(this.Qb)&&(new dF(this.Qb,218)).play();Qn(this.mL,"a-Db-X");break;case "dragleave":case "drop":if(ve(this.Ab[0]))for(a=0;a<this.Ab.length;a++)(new cF(this.Ab[a],218)).play();this.$fb&&ve(this.Qb)&&(new cF(this.Qb,218)).play();Rn(this.mL,"a-Db-X")}}; q.OTb=function(a){this.Ag="drop";this.J4a();this.$b.stop();this.Oa(a)&&(this.jg.Db(a),this.Sa.od.xk(36));a.preventDefault()};q.qb=function(){y(this.Ba);this.Ba=null;y(this.$b);this.$b=null};
var F6e=function(a){return a=""+('<div id="'+r(a.$Tc)+'" class="a-Mi-Fi-ba"></div><table id="'+r(a.l3)+'" cellpadding="0" cellspacing="0" class="a-D-v-ec-Ng"><tr><td class="a-D-v-ec-xd"><table id="'+r(a.FEa)+'" cellpadding="0" cellspacing="0" class="a-D-v-ec"><tbody><tr><td><div class="a-D-v-Bg-Gva">'+yn(a.ZXa)+'</div><div class="a-D-v-Bg-JCa">'+yn(a.YXa)+'</div><div id="'+r(a.UOa)+'"></div></td></tr></tbody></table><div id="'+r(a.jld)+'" style="display:none" class="b-xm a-Mi-la-Ng"><div class="a-Mi-jm">Uploading...</div></div></td></tr></table><div class="a-D-v-Bd-c"><button id="'+ r(a.B6)+'" style="display:none"></button></div>')};
var E2e=function(a,b,c,d,f){F5.call(this,a,b,c,d,f)};t(E2e,F5);E2e.prototype.Aga=function(a){a=E2e.ya.Aga.call(this,a);var b=this.getContext().rd();b.Ag&&(a.client=b.Ag);return a};E2e.prototype.E9=function(a,b){E2e.ya.E9.call(this,a,b);var c=D2e(b.photoid,b.url,a.getName());c.Ii=a.Ii;c.zJ(!0);return c};E2e.prototype.B2a=function(a){this.Ab.addCallback(function(b){"Server rejected"==a.message&&(b=(b=b.zx(a.file))&&b.dG(),a.message=Hcf(b&&Number(b.status))||a.message);E2e.ya.B2a.call(this,a)},this)}; var Hcf=function(a){switch(a){case 10:return"Quota exceeded";case 14:case 15:return"Bad image";case 16:return"Image too big";default:return null}};
var QAg=function(a,b,c,d,f){F5.call(this,a,b,c,d,f)};t(QAg,F5);QAg.prototype.Aga=function(a){a=QAg.ya.Aga.call(this,a);var b=this.getContext().rd(),c=b.nk(),b=b.ik();c?a.effective_id=c:b&&(a.entity_type="2",a.effective_id=b);return a};QAg.prototype.E9=function(a,b){QAg.ya.E9.call(this,a,b);var c={};c.id=b.photo_id;c.isNew=!0;c.parent=b.albumid;var d={},f=d.r=b.rotation;c.imageData=d;a.zKa(new Vw(c));var c=b.image_url,d=b.width,h=b.height;if(c){if(1==f||3==f)f=d,d=h,h=f;a.ZE([new Uw(WRd(c),d,h,!0)])}return a};
var I5=function(a,b,c){t3.call(this,a,c);this.Xd=b;this.Qr=a.F2a(this.YK());(this.cj=this.p1(c))&&this.ib(this.cj);var d=null;My.Ag&&OQd(b)&&(d=dVd(a,c),this.ib(d));this.Maa=d;b=new G_d(a,c);this.ib(b);this.ana=b;this.getHandler().Ja(a.Ab,"reset",Lp(this.reset,this,0))};t(I5,t3);q=I5.prototype;q.XM=null;q.Pf=null;q.e6=null;q.bQ=null;q.iga=null;var J5=function(a,b){a.rK&&(a.rK.$fb=b)};I5.prototype.YK=function(){return this.Xd.getQuery()};
I5.prototype.p1=function(a){a=new B3(this.getContext(),Lp(this.XD,this),Lp(this.iL,this),a);a.Pt.setContent("Upload");a.qh(!1);return a};I5.prototype.zF=function(){return this.getContext().rd().$b};
var K5=function(a,b){var c=a.YK();c||"picasa"!=a.Qr.Oa||(c="photo");switch(c){case "docs":c=new k2d(a.getContext(),c,a.Xd,a.Ab,b);a.Xd.getOption("enableUploadConversion")&&(c.YY=!0);break;case "drawings":case "forms":case "document":case "presentation":case "spreadsheet":c=new l2d(a.getContext(),c,a.Xd,a.Ab);break;case "photo":case "photos":case "profile":case "videos":case "youtubebanner":c=new (wg(xg(E.ia(),"oppu")).Ab())(a.getContext(),c,a.Xd,a.Ab,b);break;case "localphotos":c=new E2e(a.getContext(),
c,a.Xd,a.Ab,b);break;case "cultural":c=new xag(a.getContext(),c,a.Xd,a.Ab,b);break;case "dragonflyphotos":c=new QAg(a.getContext(),c,a.Xd,a.Ab,b);break;default:c=new F5(a.getContext(),c,a.Xd,a.Ab,b)}return c};q=I5.prototype;q.Pa=function(){var a=this.cj;a.Pa();var b=this.oT();a.cb().appendChild(b);var c=this.Maa;c&&(c.Pa(),c.cb().appendChild(b),c.ta());this.Kb(a.ta())};q.setActive=function(a,b){I5.ya.setActive.call(this,a,b);this.cj.setActive(a,b);this.Maa&&this.Maa.setActive(a,b);this.rK&&this.rK.Ja(a)};
q.Na=function(){I5.ya.Na.call(this);this.OW();this.Ab.addCallback(function(a){if(a){var b=this.Xd.getOption("mimeTypes");b&&a.mI&&(a.mI().accept=b.split(","));this.getHandler().Ja(a,"fileremoved",this.yha,!1,this).Ja(a,"filesselected",this.S_,!1,this).Ja(a,"allfilescompleted",this.hS,!1,this).Ja(this.getContext().Mh,"ri",this.qnb,!1,this);b=this.getContext().rd().fG();a.JI()&&(this.rK=new m2d(this.getContext(),a,b,"Drop your files to upload here.",Lp(this.b6a,this)),this.rK.Ja(this.xw()))}},this);
this.getHandler().Ja(this.Pf,"om",this.a8b)};q.b6a=function(a){return!this.zF()&&(a=(a=a.Ak().dataTransfer)&&a.files)&&1<a.length?(this.M1a(),!1):!0};q.M1a=ka;q.yha=function(){W6e(this)};q.S_=function(a,b){!1!==b&&this.cj.qh(!0)};var W6e=function(a){a.Pf.Ab.addCallback(function(a){a=a.Lt();Cd(a,function(a){return""!=a.getPath()})||this.cj.qh(!1)},a)};q=I5.prototype;q.hS=function(){this.WC()};q.ihb=function(){return!0};
q.start=function(){this.bQ.disabled=!0;this.cj.qh(!1);this.Ab.addCallback(function(a){"undefined"!=typeof NY&&a instanceof NY&&a.Q7a();this.Pf.kda();this.ihb()&&a.VM(this.bQ)},this)};q.WC=function(){var a=G5(this.Pf);a.length?this.getContext().Ab.Sl(a):this.getContext().Ab.oD()};q.XD=function(){this.start()};q.iL=function(){this.Pf&&this.Pf.dE();this.getContext().Ab.oD()};q.qnb=function(){this.Pf&&(H5(this.Pf,"running")||H5(this.Pf,"scheduled"))&&this.Pf.dE()};
q.a8b=function(a){var b=a.Ab;this.cj.qh(b);nEg(this.cj,!b,a.Vb,0)};q.reset=function(a){if(a)Uf(Lp(this.reset,this,0),a,this);else if(this.Ab||this.Pf)this.Ab.addCallback(function(a){a.reset();this.ihb()&&a.Lr(this.bQ)},this),this.bQ.disabled=!1,this.cj.qh(!1),nEg(this.cj,!1),this.Pf.reset(),this.ana.Oe(),this.getContext().Mh.Cca(!0),this.lWa(!1)};q.lWa=function(a){Pn(this.e6,"a-Fl",a)}; q.qb=function(){I5.ya.qb.call(this);delete this.Qr;this.Pf&&(this.Pf.Ma(),delete this.Pf);this.rK&&(this.rK.Ma(),delete this.rK);delete this.cj;delete this.bQ};q.kt=function(){return this.cj.focus()};
var M5=function(a,b,c){I5.call(this,a,b,c);this.YY=new Un(this.start,500,this);x(this,this.YY);this.Oa={};this.Qb={Sib:Ce(Be.ia()),Zaa:Ce(Be.ia()),rBa:Ce(Be.ia()),Wkb:Ce(Be.ia())}};t(M5,I5);M5.prototype.p1=function(a){var b=this.getContext(),c=new B3(b,Lp(this.XD,this),Lp(this.iL,this),a);I1d(c);c.qh(!1);b.rd().Vk&&oEg(c,new XX(b,"Insert images",a));return c};
var X6e=function(a,b){b.l3=lh(a,"upload-container");b.B6=lh(a,"select-files-btn");b.FEa=a.Qb.Sib;b.UOa=a.Qb.Wkb;b.jld=a.Qb.rBa;b.$Tc=a.Qb.Zaa;b.ZXa=a.Qr.q5;b.YXa=a.Qr.mL};q=M5.prototype;q.oT=function(){X6e(this,this.Oa);var a=this.Ea(),b=a.Pa("div","a-B a-v a-Mi",Uo(this.getContext().ef(),this.kVa(),this.Oa));this.$b=new A3("a-b-xu-xm",a);x(this,this.$b);EQd(this.$b);ndc(this.$b,100);this.$b.Sa(0);this.Lh=new kX("",a);x(this,this.Lh);this.Lh.hd("error");return b};q.kVa=function(){return F6e};
q.OW=function(){var a=this.Ea();this.e6=a.ta(this.Oa.l3);this.iA=St(this.Qr.Sa,a);this.iA.render(a.ta(this.Qb.Wkb));this.bQ=a=a.ta(this.Oa.B6);this.Ab=this.getContext().We().Oa(this.YK(),a);this.Pf=K5(this)};
q.Na=function(){M5.ya.Na.call(this);this.Ab.addCallback(function(a){a.Lr(this.iA,!0);a.JI()?(Qn(this.e6,"a-Db-Bg-Cl"),J5(this,!1)):Qn(this.e6,"a-Db-Bg-H2a")},this);Qn(this.ta(),"a-v-c-Fg");this.getHandler().Ja(this.getContext().We(),"ui",this.Km).Ja(this.Pf,"Bk",this.Vk);this.Vb=this.Ea().ta(this.Qb.Sib);var a=this.Ea(),b=a.ta(this.Qb.rBa),c=a.Pa("div","d-k-l");a.appendChild(b,c);this.$b.yb(c);this.Lh.render(a.ta(this.Qb.Zaa));this.getHandler().Ja(this.Lh.ta(),"click",this.wid);this.Lh.setVisible(!1)};
q.wid=function(a){Sn(a.target,"a-Yd")&&(this.Lh.setVisible(!1),this.kt())};q.setActive=function(a,b){M5.ya.setActive.call(this,a,b);a&&this.reset()};q.kt=function(){if(this.iA)try{return this.iA.ta().focus(),this.iA.zt(!0),!0}catch(a){}return!1};q.lWa=function(){};
q.hS=function(){var a=this.Pf.Ae()[0],b=this.Qr.Ab;if("success"!=a.Ii.getState())this.reset(),s2d(this,this.Qr.Ag);else if(pa(b)&&!eb(b,a.Ra()))this.reset(),s2d(this,"The file you uploaded is not the right type.  Please upload a different file."),"picasa"==a.Sa&&t2d(this,[a.getId()]);else{t:{if((b=a.Yh())&&b.length){var b=$a(b),c=this.getContext().rd().Oa;if(c){b=b.wc()>=c.width&&b.Ic()>=c.height;break t}}b=!0}b?(this.$b.Sa(100),b=this.getContext().rd(),b.jg?"ytcb"==b.jg?ZRd(a,this.Xd,this.getContext()):
(b=this.getContext(),c=new w3("crop"),BN(c,"id",a.Qe()),BN(c,"parent",a.vt().split(".").pop()),BN(c,"service",a.Sa),c.Ab=this.Xd,b.Mh.On(c)):this.WC()):(this.reset(),b=this.getContext().rd().Oa,s2d(this,"The photo you uploaded is too small!  It must be at least "+(b.width+(" pixels wide and "+(b.height+" pixels tall.")))),t2d(this,[a.getId()]))}};
var s2d=function(a,b){var c=a.Ea(),d=c.Pa("a",{href:"javascript:void","class":"a-Yd a-s"},"Dismiss"),f=Ce(Be.ia()),h="An error occurred. Please try again.";b&&(h=cd(c,b+" "));h=c.Pa("span",{id:f},h);qo(d,"describedby",f);a.Lh.setContent(h);c.appendChild(a.Lh.ta(),d);if(c=a.fb("a-Mi-Fi-ba"))ey(c,h.textContent),po(c,"alert"),qo(c,"live","assertive"),qo(c,"atomic",!0);a.Lh.setVisible(!0);try{d.focus()}catch(k){}},t2d=function(a,b){a.getContext().od.Vd(new K3("delete","picasa",b,{}),Lp(function(){},a),
Lp(function(){},a))};M5.prototype.S_=function(){};M5.prototype.Vk=function(){u2d(this,!1);this.Lh.setVisible(!1);On(this.Ea().ta(this.Qb.rBa),!0);this.YY.start()};M5.prototype.Km=function(){var a=this.getContext().We().BGa();0<a&&this.$b.Sa(100*a)};M5.prototype.iL=function(){this.getContext().Ab.oD()};var u2d=function(a,b){var c=a.Vb;b?(TB(a.ta(),"a-v-c-Bd","a-v-c-Fg"),Pd(c,"position","relative"),Pd(c,My.Bo()?"right":"left","0")):(TB(a.ta(),"a-v-c-Fg","a-v-c-Bd"),Pd(c,My.Bo()?"right":"left","-10000px"))};
M5.prototype.M1a=function(){this.reset();s2d(this,this.Qr.Qb)};M5.prototype.reset=function(a){M5.ya.reset.call(this,a);a||(u2d(this,!0),this.Lh.setVisible(!1),On(this.Ea().ta(this.Qb.rBa),!1),this.$b.Sa(0))};M5.prototype.qb=function(){M5.ya.qb.call(this);delete this.Oa};M5.prototype.xna=e(649);

G("sy901");I();
}catch(e){_DumpException(e)}
try{
H("sy904");new Ze("camera_sync",2,"profile_photos",1,"profiles_scrapbook",4,"updates",0);var BVc=new Ze(2,function(){return P("Photos from Auto Backup")},1,UFa,4,VFa,0,function(){return P("Photos from posts")}),DVc=new Ze(5,WFa,4,XFa,3,YFa,6,ZFa,2,$Fa,1,aGa);
G("sy904");I();
}catch(e){_DumpException(e)}
try{
var Gcd=function(){this.Sb=[];this.Ab=this.Sa=0},Icd=function(a,b,c,d){if(!(0<b.length))throw Error("gg");var f=new Ov;f.update(Mv(c));f.update(b);f.update(a.Lcb);a=new Gcd;var f=f.FD(),h;h||(h=f.length);b=a.Sb;for(c=0;256>c;++c)b[c]=c;var k=0;for(c=0;256>c;++c){var k=k+b[c]+f[c%h]&255,m=b[c];b[c]=b[k];b[k]=m}a.Sa=0;a.Ab=0;h=a.Sa;f=a.Ab;b=a.Sb;for(c=0;1536>c;++c)h=h+1&255,f=f+b[h]&255,k=b[h],b[h]=b[f],b[f]=k;a.Sa=h;a.Ab=f;d=Mv(d);var p;p||(p=d.length);h=a.Sa;f=a.Ab;b=a.Sb;for(c=0;c<p;++c)h=h+1&255,
f=f+b[h]&255,k=b[h],b[h]=b[f],b[f]=k,d[c]^=b[b[h]+b[f]&255];a.Sa=h;a.Ab=f;if(8192>d.length)p=String.fromCharCode.apply(null,d);else for(p="",a=0;a<d.length;a+=8192)p+=String.fromCharCode.apply(null,ub(d,a,a+8192));return p},Hcd=function(a,b){var c=new Ov;c.update(Mv(b));c.update(a.Lcb);return Yza(c.FD(),!0)},AY=function(a,b){a.Qb.bxa(b);a.dispatchEvent("progress")};q=EY.prototype;q.LTa=g(610,function(a){this.p8&&this.sxa(a)});q.W4a=g(609,function(){return!1});
q.sxa=g(608,function(a){this.O$(a);if("undefined"!=typeof xY&&a instanceof xY){a=a.S2;for(var b=0;b<a.length;b++)this.sxa(a[b])}});q.d5a=g(605,function(){return!1});q.Jaa=g(604,function(){return!1});q.o4a=g(603,function(){return!1});q.cya=g(602,function(a){this.onb=a});q.L1=g(601,function(a){this.kX=a});zY.prototype.aQ=g(600,function(a,b){this.Qb.fq(a,qa(b)?b:b.message);this.dispatchEvent("error")});
zY.prototype.yS=g(599,function(a){this.Oa=a||"";var b;try{b=Qf(this.Oa)}catch(c){this.aQ("serverinvalidresponse","Invalid response from server.");return}void 0!=b.sessionStatus?(null!=this.Qb.dp&&AY(this,this.Qb.dp),this.dispatchEvent("success")):void 0!=b.errorMessage?this.aQ("serverrejected","Server rejected upload."):this.aQ("serverinvalidresponse","Invalid response from server.")});
var B0e=function(a){return a.tagName?a:a.ta()},JY=function(a,b){a.Sa.push(b);a.jg.get(b.getId())||a.jg.set(b.getId(),a.QWa(b));a.dispatchEvent(new tY("fileadded",b));a.LTa(b)},Ucd=function(a){return a.onb&&a.o4a()},DY=function(a,b){this.o5=a;this.Lcb=Mv(b);this.vqb=new oda};t(DY,Ecd);q=DY.prototype;q.Lcb=null;q.vqb=null;
q.set=function(a,b,c){if(ia(b)){for(var d=[],f=0;8>f;++f)d[f]=Math.floor(256*Math.random());b=new Acd(Icd(this,d,a,this.vqb.le(b)));b.salt=d;DY.ya.set.call(this,Hcd(this,a),b,c)}else DY.prototype.remove.call(this,a)};q.p$=function(a,b){var c=DY.ya.p$.call(this,Hcd(this,a),b);if(c){var d=Ccd(c),f=c.salt;if(!qa(d)||!oa(f)||!f.length)throw"Storage: Invalid value was encountered";d=Icd(this,f,a,d);try{c.data=Nf(d)}catch(h){throw"Storage: The value could not be decrypted";}return c}};
q.remove=function(a){DY.ya.remove.call(this,Hcd(this,a))};
var ged=function(a,b,c,d){d=d?1:0;a[b+3-3*d]=c&255;a[b+2-d]=c>>8&255;a[b+1+d]=c>>16&255;a[b+3*d]=c>>24&255},eed=function(a,b,c){c=c?1:0;return(a[b+3*c]<<24)+(a[b+1+c]<<16)+(a[b+2-c]<<8)+a[b+3-3*c]},fed=function(a,b,c){c=c?1:0;return(a[b+c]<<8)+a[b+1-c]},ndd=0,MY,ded=function(a){var b=[];if(2>a.byteLength||255!=a[0]||216!=a[1])return[];for(var c=2;c<a.byteLength;){var d=a[c++];if(255!=d)return[];var d=a[c++],f=(a[c]<<8)+a[c+1];switch(d){case 225:var h=a[c+8];b.push({WSc:d,offset:c-2,length:f+2,vPc:69==
a[c+2]&&120==a[c+3]&&105==a[c+4]&&102==a[c+5]&&0==a[c+6]&&0==a[c+7]&&h==a[c+9]&&(73==h||77==h)&&42==fed(a,c+10,73==h)});break;case 236:b.push({WSc:d,offset:c-2,length:f+2});break;case 218:return b;case 216:return[];case 217:return[]}c+=f}return b},Vbd=function(){Ld.call(this);this.Sa=new FileReader;this.Sa.onloadstart=Lp(this.fha,this);this.Sa.onprogress=Lp(this.fha,this);this.Sa.onload=Lp(this.fha,this);this.Sa.onabort=Lp(this.fha,this);this.Sa.onerror=Lp(this.fha,this);this.Sa.onloadend=Lp(this.fha,
this)};t(Vbd,Ld);q=Vbd.prototype;q.abort=function(){try{this.Sa.abort()}catch(a){throw new Qbd(a,"aborting read");}};q.YA=function(){return this.Sa.result};q.getError=function(){return this.Sa.error&&new Qbd(this.Sa.error,"reading file")};q.fha=function(a){this.dispatchEvent(new Rbd(a,this))};q.qb=function(){Vbd.ya.qb.call(this);delete this.Sa};
var Ubd=function(a){var b=new ag;a.Ja("loadend",wa(function(a,b){var f=b.YA(),h=b.getError();null==f||h?a.jd(h):a.By(f);b.Ma()},b,a));return b},Zbd=0,Sbd=function(a){if(!a)return a;ea&&(a=a.replace(/\\/g,"/"));za(a,"/")&&(a=a.substring(0,a.length-1));return a},Gdd=function(a){if(!navigator.plugins||!navigator.plugins.length)return!1;for(var b=0;b<navigator.plugins.length;++b){var c=navigator.plugins[b].description;if(-1!=c.search(/^Java Switchable Plug-in (Cocoa)/)){if(0<=Xa("1.5.0",a))return!0}else if(-1!=
c.search(/^Java/)&&ea&&0<=Xa("1.5.0",a))return!0}return Xa("1.5.0",a)?!0:!1},Fdd=function(a){if(!navigator.mimeTypes)return!1;for(var b=/^application\/x-java-applet\x3Bversion=(1\.8|1\.7|1\.6|1\.5|1\.4\.2)$/,c=0;c<navigator.mimeTypes.length;++c){var d=navigator.mimeTypes[c].type.match(b);if(null!=d&&0<=Xa(d[1],a))return!0}return!1},Edd=function(a){if(!ActiveXObject)return!1;try{return null!=new ActiveXObject("JavaWebStart.isInstalled."+a+".0")}catch(b){return!1}},med=0,hed=function(a,b){A.call(this,
a);this.Sa=b};t(hed,A);hed.prototype.getItem=function(){return this.Sa};
var pdd=function(a,b){var c=jc(a);Ve(b,function(b,f){var h=c.Pa("input",{type:"hidden",name:f,value:b});a.appendChild(h)})},odd={},ced=function(a,b,c,d,f){var h=new Uint8Array(a);a=ded(h);if(0==a.length)return null;var k=0;v(a,function(a){k+=a.length});var m=0,p=new Uint8Array(k);v(a,function(a){p.set(h.subarray(a.offset,a.offset+a.length),m);if(a.vPc){for(var k,F=73==p[m+10],M=eed(p,m+14,F)+10,X=2+M,M=X+12*fed(p,M,F);X<M;X+=12){var da=fed(p,X,F);switch(da){case 256:ged(p,X+8,d,F);break;case 257:ged(p,
X+8,f,F);break;case 282:case 283:var Aa=eed(p,X+8,F)+10,Fa=p,Ua=Aa,Va=F;da=eed(p,Aa,F)/eed(p,Aa+4,F)*(282==da?d/b:f/c);if(osa(da))da=[da,1];else{for(var Aa=0>da,da=Math.abs(da),Ma=1,Ya=1,Eb=0,Ob=0,bc=void 0;1E7>=Ob*(bc=Math.floor(da))+Ya;){var Fb=Ma*bc+Eb,Eb=Ma,Ma=Fb,Fb=Ob*bc+Ya,Ya=Ob,Ob=Fb,bc=da-bc;if(1E-6>bc)break;da=1/bc;if(2147483647<bc)break}da=[Aa?-Ma:Ma,Ob]}ged(Fa,Ua,da[0],Va);ged(Fa,Ua+4,da[1],Va);break;case 34665:k=eed(p,X+8,F)+10}}if(k)for(F=73==p[m+10],X=2+k,k=X+12*fed(p,k,F);X<k;X+=12)switch(fed(p,
X,F)){case 40962:ged(p,X+8,d,F);break;case 40963:ged(p,X+8,f,F)}}m+=a.length});return p},n_e=function(){};n_e.prototype.Sa=function(a,b){var c=b.getContext("2d");c.drawImage(a,0,0,b.width,b.height);if(Zq&&0<=Xa(vOa,18)){for(var d=!1,f=0;100>f;f++){var h;try{h=c.getImageData(Kaa(b.width),Kaa(b.height),1,1).data}catch(k){break}if(h&&(0!=h[0]||0!=h[1]||0!=h[2])){d=!0;break}}c=d}else c=!0;return c?jg():Oda(Error("pj"))};
var kcd=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}},jcd=function(a){var b=new Vbd,c=Ubd(b);
b.Sa.readAsArrayBuffer(a);return c},cYa=function(a,b,c){ia(c)||(c=a.size);return a.webkitSlice?a.webkitSlice(b,c):a.mozSlice?a.mozSlice(b,c):a.slice?wd&&!Gf("13.0")||xd&&!Gf("537.1")?(0>b&&(b+=a.size),0>b&&(b=0),0>c&&(c+=a.size),c<b&&(c=b),a.slice(b,c-b)):a.slice(b,c):null},wY=function(a,b,c,d,f,h){Ld.call(this);this.Fs=Zbd++;this.Ag=Wa();this.mL=Sbd(a)||"";this.dp=null!=b?b:null;this.Oa=new Ze;this.$b=Sbd(c);this.Sa=d;this.Ab=null;this.jg={};new Ze;this.uh=h||null};t(wY,Ld);q=wY.prototype;q.PB=0;
q.HUa="noerror";q.F5a="";q.i8=null;q.Yla=null;q.Epa=null;q.toa=null;q.Zka=null;q.GUa=null;q.e4a=!1;q.dob=0;q.Uoa=!1;q.L6a=function(){this.PB=0;this.HUa="noerror";this.F5a="";this.GUa=this.Zka=this.toa=this.Epa=this.Yla=this.i8=null;this.dob++};q.getId=function(){return String(this.Fs)};var $bd=function(a){return a.Sa};q=wY.prototype;q.getName=function(){var a=this.uaa();return this.$b?this.$b+"/"+a:a};q.getExtension=function(){var a=this.getName(),b=a.lastIndexOf(".");return 0>b?null:a.substr(b+1)};
q.Eaa=function(){if(!this.dp)return null;var a=new Ov;a.update(Mv(this.mL+"|"+this.dp));return Wbd(a.FD())};q.uaa=function(){return this.mL.split("/").pop()};q.getPath=function(){return this.mL};q.bxa=function(a){this.PB=a};q.fq=function(a,b){this.HUa=a;this.F5a=b||""};q.D_=function(){return this.HUa};q.Oi=function(){return this.Oa};q.UYa=function(a){this.i8=a};q.dNb=function(a){this.Yla=a};q.JYa=function(a){this.Epa=a};q.c2=function(){return this.Epa?this.Epa:this.i8};
q.oxa=function(a){this.toa=a};q.Cu=function(){return this.toa};q.gxa=function(a){this.Zka=a};q.M6a=function(a){this.GUa=a};q.Q9=function(){return this.GUa};q.jxa=function(a){this.jg=a};q.TMb=function(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],f=d.indexOf(":");0>f||(b[d.substring(0,f)]=d.substring(f+2,d.length))}new Ze(b)};q.CYa=function(a){if(this.YY=a)this.dp=a.size};q.GMb=function(a){this.Uoa=a};q.cQ=function(){return this.Uoa};
q.toString=function(){return["File(id:",this.Fs,", path:",this.mL,", relativeDirectoryPath:",this.$b,", selectionId:",this.Sa,", bytesTransferred:",this.PB,", bytesTotal:",this.dp,")"].join("")};q.rI=function(){return this.uh};var Mdd=function(){this.Sa=-1;this.Sa=64;this.Ab=Array(4);this.$b=Array(this.Sa);this.Qb=this.mL=0;this.reset()};t(Mdd,eAa);Mdd.prototype.reset=function(){this.Ab[0]=1732584193;this.Ab[1]=4023233417;this.Ab[2]=2562383102;this.Ab[3]=271733878;this.Qb=this.mL=0};
var Ndd=function(a,b,c){c||(c=0);var d=Array(16);if(qa(b))for(var f=0;16>f;++f)d[f]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(f=0;16>f;++f)d[f]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.Ab[0];c=a.Ab[1];var f=a.Ab[2],h=a.Ab[3],k=0,k=b+(h^c&(f^h))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[1]+3905402710&4294967295;h=b+(k<<12&4294967295|k>>>20);k=f+(c^h&(b^c))+d[2]+606105819&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+
(b^f&(h^b))+d[3]+3250441966&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(h^c&(f^h))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[5]+1200080426&4294967295;h=b+(k<<12&4294967295|k>>>20);k=f+(c^h&(b^c))+d[6]+2821735955&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+(b^f&(h^b))+d[7]+4249261313&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(h^c&(f^h))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[9]+2336552879&4294967295;h=b+(k<<12&4294967295|k>>>
20);k=f+(c^h&(b^c))+d[10]+4294925233&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+(b^f&(h^b))+d[11]+2304563134&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(h^c&(f^h))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=h+(f^b&(c^f))+d[13]+4254626195&4294967295;h=b+(k<<12&4294967295|k>>>20);k=f+(c^h&(b^c))+d[14]+2792965006&4294967295;f=h+(k<<17&4294967295|k>>>15);k=c+(b^f&(h^b))+d[15]+1236535329&4294967295;c=f+(k<<22&4294967295|k>>>10);k=b+(f^h&(c^f))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|
k>>>27);k=h+(c^f&(b^c))+d[6]+3225465664&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[11]+643717713&4294967295;f=h+(k<<14&4294967295|k>>>18);k=c+(h^b&(f^h))+d[0]+3921069994&4294967295;c=f+(k<<20&4294967295|k>>>12);k=b+(f^h&(c^f))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=h+(c^f&(b^c))+d[10]+38016083&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[15]+3634488961&4294967295;f=h+(k<<14&4294967295|k>>>18);k=c+(h^b&(f^h))+d[4]+3889429448&4294967295;c=f+(k<<20&4294967295|
k>>>12);k=b+(f^h&(c^f))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=h+(c^f&(b^c))+d[14]+3275163606&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[3]+4107603335&4294967295;f=h+(k<<14&4294967295|k>>>18);k=c+(h^b&(f^h))+d[8]+1163531501&4294967295;c=f+(k<<20&4294967295|k>>>12);k=b+(f^h&(c^f))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=h+(c^f&(b^c))+d[2]+4243563512&4294967295;h=b+(k<<9&4294967295|k>>>23);k=f+(b^c&(h^b))+d[7]+1735328473&4294967295;f=h+(k<<14&4294967295|
k>>>18);k=c+(h^b&(f^h))+d[12]+2368359562&4294967295;c=f+(k<<20&4294967295|k>>>12);k=b+(c^f^h)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[8]+2272392833&4294967295;h=b+(k<<11&4294967295|k>>>21);k=f+(h^b^c)+d[11]+1839030562&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[14]+4259657740&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(c^f^h)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[4]+1272893353&4294967295;h=b+(k<<11&4294967295|k>>>21);k=f+(h^
b^c)+d[7]+4139469664&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[10]+3200236656&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(c^f^h)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[0]+3936430074&4294967295;h=b+(k<<11&4294967295|k>>>21);k=f+(h^b^c)+d[3]+3572445317&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[6]+76029189&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(c^f^h)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=h+(b^c^f)+d[12]+3873151461&4294967295;
h=b+(k<<11&4294967295|k>>>21);k=f+(h^b^c)+d[15]+530742520&4294967295;f=h+(k<<16&4294967295|k>>>16);k=c+(f^h^b)+d[2]+3299628645&4294967295;c=f+(k<<23&4294967295|k>>>9);k=b+(f^(c|~h))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[7]+1126891415&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[14]+2878612391&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[5]+4237533241&4294967295;c=f+(k<<21&4294967295|k>>>11);k=b+(f^(c|~h))+d[12]+1700485571&4294967295;b=c+
(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[3]+2399980690&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[10]+4293915773&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[1]+2240044497&4294967295;c=f+(k<<21&4294967295|k>>>11);k=b+(f^(c|~h))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[15]+4264355552&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[6]+2734768916&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[13]+1309151649&4294967295;
c=f+(k<<21&4294967295|k>>>11);k=b+(f^(c|~h))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=h+(c^(b|~f))+d[11]+3174756917&4294967295;h=b+(k<<10&4294967295|k>>>22);k=f+(b^(h|~c))+d[2]+718787259&4294967295;f=h+(k<<15&4294967295|k>>>17);k=c+(h^(f|~b))+d[9]+3951481745&4294967295;a.Ab[0]=a.Ab[0]+b&4294967295;a.Ab[1]=a.Ab[1]+(f+(k<<21&4294967295|k>>>11))&4294967295;a.Ab[2]=a.Ab[2]+f&4294967295;a.Ab[3]=a.Ab[3]+h&4294967295};
Mdd.prototype.update=function(a,b){ia(b)||(b=a.length);for(var c=b-this.Sa,d=this.$b,f=this.mL,h=0;h<b;){if(0==f)for(;h<=c;)Ndd(this,a,h),h+=this.Sa;if(qa(a))for(;h<b;){if(d[f++]=a.charCodeAt(h++),f==this.Sa){Ndd(this,d);f=0;break}}else for(;h<b;)if(d[f++]=a[h++],f==this.Sa){Ndd(this,d);f=0;break}}this.mL=f;this.Qb+=b};
Mdd.prototype.FD=function(){var a=Array((56>this.mL?this.Sa:2*this.Sa)-this.mL);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.Qb,b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.Ab[b]>>>d&255;return a};var Kdd=function(a,b){Ld.call(this);this.$b=a;this.Oa=this.mL=null;this.Ab=0;this.Ag=b||5E6;this.Sa=null};t(Kdd,Ld);
Kdd.prototype.hash=function(a){this.abort();this.$b.reset();this.mL=a;this.Oa=null;this.Ab=0;this.dispatchEvent("started");Ldd(this)};Kdd.prototype.abort=function(){this.Sa&&(this.Sa.abort(),this.Sa=null);this.mL&&(this.mL=null,this.dispatchEvent("abort"))};
var Ldd=function(a){if(a.Ab<a.mL.size)if(Infinity<=a.Ab)a.dispatchEvent("throttled");else{a.Sa=new FileReader;a.Sa.onload=Lp(a.jg,a);a.Sa.onerror=Lp(a.Qb,a);var b=Math.min(Infinity,a.mL.size),b=Math.min(b-a.Ab,a.Ag),c=cYa(a.mL,a.Ab,a.Ab+b);c&&c.size==b?a.Sa.readAsArrayBuffer?a.Sa.readAsArrayBuffer(c):a.Sa.readAsBinaryString?a.Sa.readAsBinaryString(c):a.Qb():a.Qb()}else a.Oa=a.$b.FD(),a.mL=null,a.dispatchEvent("complete")};
Kdd.prototype.jg=function(){var a=null;this.Sa.result instanceof Array||qa(this.Sa.result)?a=this.Sa.result:ha.ArrayBuffer&&ha.Uint8Array&&this.Sa.result instanceof ArrayBuffer&&(a=new Uint8Array(this.Sa.result));a?(this.$b.update(a),this.Ab+=a.length,this.Sa=null,this.dispatchEvent("progress"),Ldd(this)):this.Qb()};Kdd.prototype.Qb=function(){this.mL=this.Sa=null;this.dispatchEvent("error")};var OY=function(){Wf.call(this);this.Ba=new Hd(this)};t(OY,Wf);
OY.prototype.Ko=function(){var a=OY.ya.Ko.call(this);this.Ba.Ja(a.upload,"progress",this.dispatchEvent);return a};OY.prototype.qb=function(){OY.ya.qb.call(this);y(this.Ba)};var Odd=function(a){zY.call(this,a);this.Gp=null;this.Vk=0;this.Sb="default";this.Sa=null;this.YY=!1;this.$b=null};t(Odd,zY);Odd.prototype.abort=function(){C0e(this);this.Sb="default"};var C0e=function(a){Qdd(a);a.Gp&&(a.Gp.abort(),a.Gp=null)};
Odd.prototype.mL=function(a){var b=new Ze;b.set("X-HTTP-Method-Override","PUT");b.set("Content-Type","application/octet-stream");b.set("X-GUploader-No-308","yes");var c=this.getFile().dp,d=this.getFile().PB,f=Math.min(d+104857600,c)-1,h=c?new QG(d,f):null;d<=f&&(0==d&&f==c-1||b.set("Content-Range","bytes "+d+"-"+f+"/"+c));this.Yy(a,b,h);this.Sb="transfer"};Odd.prototype.pause=function(){if("default"==this.Sb)throw Error("lg");C0e(this);this.Sb="paused"};
var PLd=function(a,b,c){Qdd(a);a.$b=Uf(function(){this.$b=null;b.call(this)},c,a)},Qdd=function(a){null!=a.$b&&(Vf(a.$b),a.$b=null)};Odd.prototype.Vb=function(){this.Gp=new Wf;this.getHandler().Ja(this.Gp,"readystatechange",this.Km);this.Sb="query";this.Gp.send(this.getFile().i8,"POST","",{"X-HTTP-Method-Override":"PUT","Content-Range":"bytes */"+this.getFile().dp})};
Odd.prototype.Km=function(){switch(Zf(this.Gp)){case 1:case 2:case 3:case 0:break;case 4:this.uh();break;default:this.aQ("exception","Unknown request state")}};
Odd.prototype.uh=function(){var a=this.Gp.Lq();this.Oa=a;var b=Vdd(this),c=Fda(this.Gp);switch(b){case 308:t:{a=!1;if(b=this.Gp.getResponseHeader("Range")||null)(c=/^bytes=(\d+)-(\d+)$/.exec(b))||this.aQ("serverinvalidresponse","Illegal Range header: "+b),b=Number(c[2]),b>=this.Vk&&(this.Sa=null,a=!0),this.Vk=b+1,AY(this,b+1);else if("query"==this.Sb)this.Vk=0,AY(this,0);else{this.Vb();break t}a?this.mL(this.Ag):Udd(this,Lp(this.mL,this,this.Ag))}break;case 200:this.yS(a);break;case 408:case 500:case 502:case 503:case 504:this.YY?
Sdd(this):this.aQ("networkerror",c);break;default:this.aQ("networkerror",c)}};var Sdd=function(a){switch(a.Sb){case "transfer":a.Vb();break;case "query":Udd(a,Lp(a.Vb,a));break;default:a.aQ("exception","Illegal state while handling retryable error")}},Udd=function(a,b){null==a.Sa?(a.Sa=5E3,a.dispatchEvent("backoff")):(a.Sa*=2,6E4<=a.Sa&&(a.Sa=6E4));PLd(a,b,a.Sa)};Odd.prototype.yS=function(a){Odd.ya.yS.call(this,a);this.Sb="default";this.Sa=null};
Odd.prototype.aQ=function(a,b){Odd.ya.aQ.call(this,a,b);this.Sb="default";this.Sa=null};
var Vdd=function(a){var b;try{b=a.Gp.getResponseHeader("X-HTTP-Status-Code-Override")||null}catch(c){b=null}b=parseInt(b,10);return isFinite(b)?b:a.Gp.getStatus()},Ddd=function(){if(xc){if(Edd("1.7.0"))return"1.7.0";if(Edd("1.6.0"))return"1.6.0";if(Edd("1.5.0"))return"1.5.0";if(Edd("1.4.2"))return"1.4.2"}else if(wd||gc||xd){var a;t:{for(a=0;a<navigator.mimeTypes.length;++a){var b=navigator.mimeTypes[a].type.match(/^application\/x-java-applet;jpi-version=(.*)$/);if(null!=b){a=b[1];break t}}a=null}if(null!=
a)return a;if(Fdd("1.7"))return"1.7.0";if(Fdd("1.6"))return"1.6.0";if(Fdd("1.5"))return"1.5.0";if(Fdd("1.4.2"))return"1.4.2";if(xd){if(Gdd("1.7.0"))return"1.7.0";if(Gdd("1.6"))return"1.6.0";if(Gdd("1.5"))return"1.5.0";if(Gdd("1.4.2"))return"1.4.2"}}return null},led=function(a,b){Ld.call(this);this.Qb=a;this.Ab=b;this.Fs=med++};t(led,Ld);q=led.prototype;q.Wpa=!1;
q.start=function(){this.dispatchEvent(new hed("Rl",this));var a=this.mL=document.createElement("img");a.onload=Lp(this.Fub,this);a.onerror=Lp(this.Vec,this);a.src=TYc(this.Qb)};q.Fub=function(){bg(ned(this),this.Zxa,this).addCallback(this.Ptb,this)};q.Ptb=function(){if(this.Ab.Ab&&this.Wpa){var a=jcd(this.Qb);a.addCallback(function(a){var c;try{var d=this.tf();this.$b=(c=ced(a,this.mL.width,this.mL.height,d.width,d.height))?c:void 0}catch(f){}this.Zxa()},this);bg(a,this.Zxa,this)}else this.Zxa()};
q.Vec=function(){this.dispatchEvent(new hed("Tl",this))};q.Zxa=function(){this.Qb=null;this.dispatchEvent(new hed("Sl",this))};
var ned=function(a){var b=new Kb(a.mL.width,a.mL.height);a.Ab.Ed&&!Mb(b,a.Ab.tf())&&(b.Cr(a.Ab.tf()).round(),a.Wpa=!0);if(a.Ab.Sa){var c=(0,a.Ab.Sa)(b);a.Wpa=!Naa(c,b);b=c}var d=document.createElement("canvas");d.width=b.width;d.height=b.height;c=(new n_e).Sa(a.mL,d);c.addCallback(function(){this.Sa=d.toDataURL("image/jpeg",this.Ab.mL/100);this.Ed=b},a);bg(c,function(){this.Wpa=!1},a);return c};led.prototype.tf=function(){return this.Ed};
var D0e=function(a){if(a.Sa&&"data:"==a.Sa.substr(0,5)){var b=a.Sa.indexOf(",");if(0<b){var c=a.Sa.substr(5,b-5).split(";"),b=a.Sa.substr(b+1);"base64"===c[c.length-1]&&(b=window.atob(b));try{var d;t:{var c=b,f=a.$b,b=a=0,h;if(f){for(h=0;h<c.length;){var k=c.charCodeAt(h++);if(255!=k)break;k=c.charCodeAt(h++);if(216==k)a=b=h;else if(224==k)a=b=h+=((c.charCodeAt(h)&255)<<8)+(c.charCodeAt(h+1)&255);else{225==k&&(a=h-2,b=h+((c.charCodeAt(h)&255)<<8)+(c.charCodeAt(h+1)&255));break}}if(0==a){d=null;break t}}var m=
f?f.length:0,p=new Uint8Array(c.length+m);h=0;var u;for(u=0;u<a;u++,h++)p[h]=c.charCodeAt(u)&255;for(u=0;u<m;u++,h++)p[h]=f[u]&255;for(u=b;u<c.length;u++,h++)p[h]=c.charCodeAt(u)&255;d=icd(p.buffer)}return d}catch(z){}}}return null};led.prototype.qb=function(){var a=this.mL,b=a.src;a.onload=a.onerror=null;Tbd().revokeObjectURL(b);delete this.Ab;delete this.mL;delete this.Sa;delete this.$b};var ked,mdd=function(){Ld.call(this);this.hE="closure_frame"+ndd++;this.mL=[];odd[this.hE]=this};t(mdd,Ld);
q=mdd.prototype;q.Du=null;q.bB=null;q.maa=null;q.tUc=0;q.rG=!1;q.m2=!1;q.VGa=!1;q.LJa=null;q.z$=0;q.laa=null;
q.send=function(a,b,c,d){if(this.rG)throw Error("kg");a=new Af(a);b=b?b.toUpperCase():"GET";c&&$ca(a);MY||(MY=vc("form"),MY.acceptCharset="utf-8",c=MY.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(MY));this.Du=MY;"GET"==b&&pdd(this.Du,a.Sa);d&&pdd(this.Du,d);this.Du.action=a.toString();this.Du.method=b;rdd(this);E0e(this)};
var qdd=function(a,b,c){if(a.rG)throw Error("kg");c=new Af(c||b.action);a.Du=b;a.Du.action=c.toString();rdd(a)};q=mdd.prototype;q.abort=function(a){if(this.rG){var b=BEe(this);Bd(b);this.VGa=this.rG=this.m2=!1;this.z$=a||7;this.dispatchEvent("abort");tdd(this)}};q.qb=function(){this.rG&&this.abort();mdd.ya.qb.call(this);this.bB&&udd(this);E0e(this);this.Du=null;delete this.Oa;this.LJa=this.Du=null;this.z$=0;delete odd[this.hE]};q.rl=function(){return this.m2};q.ns=function(){return this.VGa};
q.Ad=function(){return this.rG};q.Lq=function(){return this.LJa};q.GGa=function(){return Nf(this.LJa)};q.j0a=function(){return this.bB?wdd(this):null};q.D_=function(){return this.z$};q.sra=function(){return kcd(this.z$)};
var rdd=function(a){a.rG=!0;a.m2=!1;a.z$=0;a.maa=a.hE+"_"+(a.tUc++).toString(36);var b={name:a.maa,id:a.maa};xc&&7>nf&&(b.src='javascript:""');a.bB=jc(a.Du).Pa("iframe",b);b=a.bB.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";xd?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");if(xc&&!Gf("11")){a.Du.target=a.maa||"";jc(a.Du).La().body.appendChild(a.bB);ud(a.bB,"readystatechange",a.Qb,!1,a);try{a.Ab=!1,a.Du.submit()}catch(c){zd(a.bB,"readystatechange",
a.Qb,!1,a),F0e(a,1)}}else{jc(a.Du).La().body.appendChild(a.bB);var b=a.maa+"_inner",d=Pc(a.bB),f="<body><iframe id="+b+" name="+b+"></iframe>";document.baseURI&&(f='<head><base href="'+La(document.baseURI)+'"></head>'+f);gc?d.documentElement.innerHTML=f:d.write(f);ud(d.getElementById(b),"load",a.Sa,!1,a);for(var h=a.Du.getElementsByTagName("textarea"),f=0,k=h.length;f<k;f++){var m=h[f].value;Vc(h[f])!=m&&(Rc(h[f],m),h[f].value=m)}h=d.importNode(a.Du,!0);h.target=b;h.action=a.Du.action;d.body.appendChild(h);
for(var m=a.Du.getElementsByTagName("select"),p=h.getElementsByTagName("select"),f=0,k=m.length;f<k;f++)for(var u=m[f].getElementsByTagName("option"),z=p[f].getElementsByTagName("option"),F=0,M=u.length;F<M;F++)z[F].selected=u[F].selected;m=a.Du.getElementsByTagName("input");p=h.getElementsByTagName("input");f=0;for(k=m.length;f<k;f++)if("file"==m[f].type&&m[f].value!=p[f].value){a.Du.target=b;h=a.Du;break}try{a.Ab=!1,h.submit(),d.close(),wd&&Uf(a.Ag,250,a)}catch(X){zd(d.getElementById(b),"load",
a.Sa,!1,a),d.close(),F0e(a,2)}}};mdd.prototype.Qb=function(){if("complete"==this.bB.readyState){zd(this.bB,"readystatechange",this.Qb,!1,this);var a;try{if(a=Pc(this.bB),xc&&"about:blank"==a.location&&!navigator.onLine){F0e(this,9);return}}catch(b){F0e(this,1);return}sdd(this,a)}};mdd.prototype.Sa=function(){if(!gc||"about:blank"!=wdd(this).location){zd(BEe(this),"load",this.Sa,!1,this);try{sdd(this,wdd(this))}catch(a){F0e(this,1)}}};
var sdd=function(a,b){a.m2=!0;a.rG=!1;var c;try{var d=b.body;a.LJa=d.textContent||d.innerText}catch(f){c=1}c||"function"!=typeof a.Oa||(d=a.Oa(b))&&(c=4);c?F0e(a,c):(a.VGa=!0,a.z$=0,a.dispatchEvent("complete"),a.dispatchEvent("success"),tdd(a))},F0e=function(a,b){a.Ab||(a.VGa=!1,a.rG=!1,a.m2=!0,a.z$=b,a.dispatchEvent("complete"),a.dispatchEvent("error"),tdd(a),a.Ab=!0)},tdd=function(a){udd(a);E0e(a);a.Du=null;a.dispatchEvent("ready")},udd=function(a){var b=a.bB;b&&(b.onreadystatechange=null,b.onload=
null,b.onerror=null,a.mL.push(b));a.laa&&(Vf(a.laa),a.laa=null);wd||gc?a.laa=Uf(a.$b,2E3,a):a.$b();a.bB=null;a.maa=null};mdd.prototype.$b=function(){this.laa&&(Vf(this.laa),this.laa=null);for(;0!=this.mL.length;){var a=this.mL.pop();Fc(a)}};var E0e=function(a){a.Du&&a.Du==MY&&zc(a.Du)},wdd=function(a){return a.bB?Pc(BEe(a)):null},BEe=function(a){return a.bB?xc&&!Gf("11")?a.bB:Pc(a.bB).getElementById(a.maa+"_inner"):null};
mdd.prototype.Ag=function(){if(this.rG){var a=wdd(this);a&&!Gba(a,"documentUri")?(zd(BEe(this),"load",this.Sa,!1,this),navigator.onLine?F0e(this,3):F0e(this,9)):Uf(this.Ag,250,this)}};
var DMg=function(a,b,c){var d=function(a,b,c){for(var d in b)for(var p=d.toLowerCase(),u=0;u<a.length;u++){var z=a[u];if(p==z)throw Error("xd`"+z+"`"+c+"`"+d+"`"+b[d]);}};d(a,b,"attribute");d(a,c,"param")},EMg=function(a,b){var c={},d;for(d in a)c[d]=a[d];for(d in b){var f=d.toLowerCase();f in a&&delete c[f];c[d]=b[d]}f=[];for(d in c)f.push(tNa("param",{name:d,value:c[d]}));return f},FMg=function(a,b){var c={},d={},f;for(f in a)d[f]=a[f];for(f in c)d[f]=c[f];for(f in b){var h=f.toLowerCase();if(h in
a)throw Error("wd`"+h+"`"+f+"`"+b[f]);h in c&&delete d[h];d[f]=b[f]}return d},CMg=["classid","data","movie","type","typemustmatch"],xY=function(a,b,c,d,f){wY.call(this,a,b,c,d);this.Qb=f;this.S2=[];this.Yub={};this.Vb=[]};t(xY,wY);
var lcd=function(a,b){"."==b.uaa()?a.Vb.push(b):(a.S2.push(b),a.Yub[b.uaa()]=a.S2.length-1)},mcd=function(a){for(var b=0,c=0,d=a.S2,f=0;f<d.length;f++){var h=d[f];if("undefined"!=typeof xY&&h instanceof xY){var k=h;mcd(k);b+=k.Qb}else b+=1;c+=h.dp}a.dp=c;a.Qb=b},PY=function(a,b){Odd.call(this,a);this.jg=b;this.Ab=null};t(PY,Odd);
PY.prototype.Yy=function(a,b,c){this.Gp=new OY;var d=c?c.start:0;this.getHandler().Ja(this.Gp,"readystatechange",this.Km).Ja(this.Gp,"progress",function(a){AY(this,d+a.Ak().loaded)});var f=this.jg;c&&(f=cYa(this.jg,c.start,c.end+1));this.Gp.send(a,"POST",f,b)};PY.prototype.uh=function(){0==Vdd(this)?this.YY?Sdd(this):this.aQ("networkerror","network error"):PY.ya.uh.call(this)};PY.prototype.abort=function(){this.Ab&&this.Ab.abort();PY.ya.abort.call(this)};
PY.prototype.tWa=function(a,b){var c=new Mdd;this.Ab=new Kdd(c);var d=this;ud(this.Ab,"complete",function(){var a=d.Ab.Oa;d.Ab=null;b(Wbd(a))});c=cYa(this.jg,0,a);this.Ab.hash(c)};var Wdd=function(a,b){zY.call(this,a);this.Sa=b};t(Wdd,zY);Wdd.prototype.Ab=null;
Wdd.prototype.mL=function(a){var b=new OY;this.Ab=b;this.getHandler().Ja(b,"success",function(){this.yS(b.Lq())}).Ja(b,"error",function(){this.aQ(hcd(b.D_()),b.sra())}).Ja(b,"progress",function(a){AY(this,a.Ak().loaded)});b.send(a,"POST",this.Sa,{"Content-Type":this.Sa.type||"application/octet-stream"})};Wdd.prototype.abort=function(){this.Ab.abort()};var Ked=1,Cdd=function(a,b){zY.call(this,a);this.Sa=b;this.$b=!1;this.Ab=null};t(Cdd,zY);
Cdd.prototype.abort=function(){this.$b&&(this.Sa.abortUpload($bd(this.getFile())),window.clearInterval(this.Ab))};Cdd.prototype.mL=function(a){switch(String(this.Sa.startUpload(a,$bd(this.getFile()),5242880))){case "SUCCESS":this.Ab=window.setInterval(Lp(Cdd.prototype.jg,this),50);this.$b=!0;break;case "INVALID_URL":this.aQ("exception","A Url with an invalid domain was detected: "+a);break;case "UNKNOWN_ERROR":case "MISSING_SELECTION":this.aQ("exception","There was a client error with the upload.")}};
Cdd.prototype.jg=function(){var a=this.getFile(),b=Nf(this.Sa.getProgress(a.Sa));b||(window.clearTimeout(this.Ab),this.aQ("exception","Unable to obtain file upload progress from java plugin."),this.Sa.freeResources(a.Sa));var c=b.state,d=b.bytesTransfered;b.bytesTotal&&(a.dp=b.bytesTotal);switch(c){case "COMPLETE":window.clearTimeout(this.Ab);AY(this,d);this.yS(this.Sa.readServerResponse(a.Sa));this.Sa.freeResources(a.Sa);break;case "IN_PROGRESS":AY(this,d);break;case "CLIENT_ERROR":window.clearTimeout(this.Ab),
this.aQ("exception","There was a client error with the upload."),this.Sa.freeResources(a.Sa)}};var jed=function(){if(!ia(ked)){ked=!1;try{if(fYa()&&document.createElement("canvas").getContext)return Tbd().revokeObjectURL(""),ked=!0}catch(a){}}return ked},ied=function(){kd.call(this);this.Ab=0;this.Sa=new Rh;this.Ba=new Hd(this);x(this,this.Ba)};t(ied,kd);ied.prototype.start=function(a,b){var c=new led(a,b);Sh(this.Sa,c);v_e(this);return c};
var v_e=function(a){if(!a.Sa.isEmpty()&&1>a.Ab){var b=oo(a.Sa);a.Ba.Ja(b,["Rl","Sl","Tl"],a.mL);a.Ab++;Uf(Lp(b.start,b),0)}};ied.prototype.mL=function(a){if("Sl"==a.type||"Tl"==a.type)this.Ab--,this.Ba.removeAll(),Uf(function(){a.getItem().Ma();v_e(this)},0,this)};var ydd=function(a,b,c){zY.call(this,a);this.Vk=b;this.Sa=this.Ab=null;this.uoa=c||0;this.jg=this.YY=0};t(ydd,zY);ydd.prototype.abort=function(){this.Ab.abort()};
ydd.prototype.mL=function(a){var b=new mdd;this.Ab=b;this.getHandler().Ja(b,"success",this.Vb).Ja(b,"error",function(b){var d;var f=window.location.href;d=HZ(1,a);var h=Zpa(a),k=Hca(a);if(d||h||k){var m=HZ(1,f),p=Zpa(f),f=Hca(f);d=m||p||f?d==m&&h==p&&k==f:!0}else d=!0;d?this.uh(b):zdd(this,Lp(this.Vb,this),Lp(this.uh,this))});qdd(b,this.Vk,a);Uf(this.$b,5E3,this);this.jg=(new Date).getTime()};
ydd.prototype.Vb=function(a){try{var b=a.target.Lq(),c=(b&&Qf(b)).sessionStatus;if(c){var d=c.externalFieldTransfers[0],f=this.getFile();null==f.dp&&(f.dp=d.bytesTotal,f.e4a=!1)}}catch(h){}this.yS(a.target.Lq()||"")};ydd.prototype.uh=function(a){this.aQ(hcd(a.target.D_()),a.target.sra())};var zdd=function(a,b,c){var d=new Wf;a.getHandler().Ja(d,"success",b).Ja(d,"error",c);try{var f=a.getFile().i8;d.send(f,"GET")}catch(h){}};
ydd.prototype.$b=function(){this.Ab.Ad()&&zdd(this,Lp(this.Ko,this),Lp(this.Km,this))};
ydd.prototype.Ko=function(a){if(this.Ab.Ad()){try{var b=Qf(a.target.Lq()).sessionStatus.externalFieldTransfers[0],c=b.bytesTransferred,d=this.getFile();if(null==d.dp)if(0<b.bytesTotal)d.dp=b.bytesTotal,d.e4a=!0;else{Uf(this.$b,15E3,this);return}var f=d.dp;null!=this.Sa&&this.Sa.stop(!1);var h=(new Date).getTime();if(0<this.YY||0==this.uoa)this.uoa=Math.round((c-this.YY)/(h-this.jg));this.YY=c;this.jg=h;a=15500;var k=d.PB,m=Math.round(c+a*this.uoa);m>f&&(m=f,a=Math.round((f-c)/this.uoa)+500);this.Sa=
new ao([k],[m],a,eo);this.getHandler().Ja(this.Sa,"animate",Lp(function(a){AY(this,Math.round(a.x))},this));this.Sa.play()}catch(p){}this.Ab.Ad()&&Uf(this.$b,15E3,this)}};ydd.prototype.Km=function(){this.Ab.Ad()&&Uf(this.$b,15E3,this)};ydd.prototype.qb=function(){ydd.ya.qb.call(this);y(this.Sa)};var hdd=function(a){idd.get(a)(a)},gdd=1,cdd=function(a,b,c){zY.call(this,a);this.$b=b;this.Sa=c;this.Ab=!1};t(cdd,zY);cdd.prototype.abort=function(){this.Ab&&ta(this.Sa.cancelUpload)&&this.Sa.cancelUpload(this.$b.id)};
cdd.prototype.mL=function(a){this.Sa.startUpload(this.$b.id,a);this.Ab=!0};var zN=function(a,b){this.nn=b;this.$b=[];this.Oa=[];this.Ab=[];this.mL=this.Sa=0;this.Qb=!1;for(var c=0;c<a.length;c++){var d=a[c];if("file"==d.kind){var f=d.webkitGetAsEntry();f.isFile?this.$b.push(d.getAsFile()):(this.Ab.push(f),this.Oa.push(qwe(f)))}}};zN.prototype.start=function(){this.Qb=!1;lwe(this)};zN.prototype.stop=function(){this.Qb=!0};
var lwe=function(a){if(!a.Qb){for(;1>a.Sa&&0<a.Ab.length;){a.Sa++;var b=a.Ab.shift().createReader();b.readEntries(Lp(a.jg,a,b),Lp(a.Ag,a))}Sze(a)}};zN.prototype.jg=function(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.isFile?(this.mL++,d.file(Lp(this.uh,this,d.fullPath),Lp(this.YY,this))):(this.Ab.push(d),this.Oa.push(qwe(d)))}0==b.length||this.Qb?(this.Sa--,lwe(this)):a.readEntries(Lp(this.jg,this,a),Lp(this.Ag,this))};var qwe=function(a){a=a.fullPath;za(a,"/")||(a+="/");return hJe(a)};
zN.prototype.Ag=function(){this.Sa--;lwe(this)};zN.prototype.uh=function(a,b){this.mL--;a=hJe(a);b.relativePath=a;this.$b.push(b);Sze(this)};var hJe=function(a){a&&ya(a,"/")&&(a=a.substring(1));return a};zN.prototype.YY=function(){this.mL--;Sze(this)};
var Sze=function(a){0==a.Sa&&0==a.mL&&0==a.Ab.length&&a.nn(a.$b,a.Oa)},Xdd=function(a){if(0==a.length)return null;for(var b={},c=[],d=[],f=0;f<a.length;f++){var h=a[f],k=h.getPath(),m=k.substring(0,k.indexOf("/"));if(0==m.length)d.push(h);else{var p=b[m];p||(p=new xY(m),b[m]=p,c.push(p));k=k.substring(0,k.lastIndexOf("/"));h.$b=Sbd(k);h.Ab=p;for(var k=k.split("/"),m=p,u=1;u<k.length;u++){var z=k[u],F;F=m.Yub[z];F=void 0!=F?m.S2[F]:null;F||(F=new xY(z,void 0,k.slice(0,u).join("/")),F.Ab=p,lcd(m,F));
m=F}lcd(m,h)}}for(f=0;f<c.length;f++)mcd(c[f]);return c.concat(d)},Kcd=function(a){this.file=a};t(Kcd,Jcd);Kcd.prototype.Sa=null;Kcd.prototype.Ab="";var uY=function(a,b,c){A.call(this,a,c);this.XM=b};t(uY,A);var Xbd=function(a,b,c,d){tY.call(this,"filepreviewready",a,d);this.Ab=b;this.Sa=c||null};t(Xbd,tY);var vY=function(a,b,c){A.call(this,a,c);this.files=b};t(vY,A);
var RY=function(a,b){EY.call(this);this.Ab=new Ze;this.dw=new Ze;this.Vb=new df;this.Vk=wa(this.KQ,!1);this.YY=new ied;x(this,this.YY);this.lp=a||!1;this.mL=b||!1};t(RY,EY);RY.prototype.Oa=!1;RY.prototype.L1=function(a){RY.ya.L1.call(this,a);this.Ab.forEach(function(a){a&&(this.kX?a.multiple="true":a.removeAttribute("multiple"))},this)};RY.prototype.cya=function(a){RY.ya.cya.call(this,a);this.Ab.forEach(function(a){a&&(Ucd(this)?a.webkitdirectory="true":a.removeAttribute("webkitdirectory"))},this)};
RY.prototype.Db=function(a){this.dispatchEvent(new A("filesscanstarted"));var b=a.Ak().dataTransfer,c=b&&b.items,d=b&&b.files,f=this,h=[],k=[];if(c&&c[0]&&c[0].webkitGetAsEntry)(new zN(c,function(a,b){for(var c=0;c<a.length;c++){var d=a[c];0!=(d.size||d.fileSize)?f.kX||1!=h.length?h.push(d):k.push(d):k.push(d)}CGg(f,h,void 0,!0,b)})).start();else if("undefined"==typeof FileReader)G0e(this,a);else if(d&&d.length)for(a=0;a<d.length;a++){var b=d[a],m=function(){h.length+k.length==d.length&&CGg(f,h,void 0,
!0)},c=new Vbd;this.getHandler().Ja(c,["progress","load","error"],function(a){return function(b){var c=b.target;Bd(c);"error"==b.type?k.push(a):("progress"==b.type&&c.abort(),0!=(a.size||a.fileSize)?f.kX||1!=h.length?h.push(a):k.push(a):k.push(a));m()}}(b));try{c.Sa.readAsBinaryString(b)}catch(p){try{c.Sa.readAsArrayBuffer(b)}catch(u){k.push(b),m()}}}};
var CGg=function(a,b,c,d,f){if(gb(b))c||a.dispatchEvent(new A("filesscanfinished"));else{a.Oa&&Zcd(a);var h=zg(b,function(a){var b=Ucd(this)?a.webkitRelativePath||a.relativePath||a.name:a.name||a.fileName;return new wY(b,a.size||a.fileSize,void 0,void 0,a.lastModifiedDate&&a.lastModifiedDate.getTime(),a.type)},a);f&&Ucd(a)&&v(f,function(a){h.push(new wY(a+"."))});v(h,function(a,c){var f=GY(this,a);f.UU=b[c];d&&(f.BPc=!0)},a);Ucd(a)&&(h=Xdd(h));a.doa&&wb(h,function(a,b){return MZa(a.getName(),b.getName())});
if(!c&&(a.dispatchEvent(new A("filesscanfinished")),!a.dispatchEvent(new vY("filesselected",h))))return;v(h,function(a){JY(this,a)},a);c||a.dispatchEvent(new vY("allfilesadded",h))}};q=RY.prototype;q.mI=function(){return this.Ab.Rc()[0]};q.Sk=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderinstalling",this));ted(this,a,this.lp,this.mL)};q.qoa=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderuninstalling",this));this.VM(a)};
q.poa=function(){return this.Jaa()?"scotty xhr resumable":"scotty xhr non-resumable"};q.o4a=function(){return void 0!=(this.Ab.Rc()[0]||vc("input",{type:"file"})).webkitdirectory};q.Jaa=function(){return!!File.prototype.slice||!!File.prototype.webkitSlice&&!Ie||!!File.prototype.mozSlice};q.d5a=function(){return this.Jaa()};q.JI=function(){return wd?Gf("1.9.2"):xd?!(kr&&ea):xc?Gf(10):!1};q.W8=function(a){var b=a.YY||GY(this,a).UU;return this.Jaa()?(a=new PY(a,b),a.YY=!0,a):new Wdd(a,b)};
q.KQ=function(a){this.d8&&(this.Oa=a||this.Oa,this.Ab.Rc()[0].click())};q.Lr=function(a,b){ted(this,a,!0,b)};q.VM=function(a){var b=va(B0e(a));ta(this.nY)&&this.nY()?(this.getHandler().nb(a,a.tagName?"click":"action",this.Vk),this.Vb.remove(b)):(a=this.Ab.get(b))&&On(a.parentNode,!1);this.Ab.remove(b)};
q.yD=function(a){var b=Lp(RY.ya.yD,this,a),c=this.uh?this.uh(a):this.Op;if(jed()&&c&&51200<=a.dp){var d=GY(this,a).UU,c=this.YY.start(d,c);this.getHandler().Ja(c,["Rl","Sl","Tl"],Lp(this.iu,this,a,b))}else b()};q.lza=function(a,b,c,d){b=(new QY).setSize(new Kb(b,c));b.Ab=!1;d&&(b.mL=d);d=GY(this,a).UU;d=this.YY.start(d,b);this.getHandler().Ja(d,["Rl","Sl","Tl"],Lp(this.Sx,this,a));return!0};q.W4a=function(a){return jed()&&"default"==HY(this,a)&&20971520>a.dp};q.jra=function(){return!0};
q.qb=function(){RY.ya.qb.call(this);Vf(this.Ko)};q.z0a=function(){return this.Jaa()?1:0};q.nY=function(){return xd||xc&&Gf(10)||wd&&Gf(12)};
var sed=function(a,b,c){b=mc(b);a.dw.set(va(b),b);var d={},f=null,h=jc(b);if(ta(a.nY)&&a.nY()&&!a.Ab.Rc()[0])d={type:"file",style:"height:0;visibility:hidden;position:absolute"},f=h.Pa("input",d),h.Hy(f,b);else{Qn(b,"uploader-overlay-visible");var k=zy(b),d={type:"file",style:"opacity:0;font-size:"+k.height+"px;height:"+k.height+"px;position:absolute;right:0px;top:0px",tabIndex:c?-1:0},f=h.Pa("input",d);c=h.Pa("div",{style:"overflow:hidden;width:"+k.width+"px;height:"+k.height+"px"},f);h.Hy(c,b);
Pd(c,"position","absolute");Pd(b.parentNode,"position","relative");Vd(c,Wd(b))}f&&(a.Ab.set(va(b),f),a.getHandler().Ja(f,"change",function(){this.dispatchEvent(new A("filesscanstarted"));CGg(this,f.files);f.value=""}))},G0e=function(a,b){var c=b.Ak().dataTransfer,c=c&&c.files,d=[],f=[];if(c)for(var h=0;h<c.length;h++){var k=c[h];0!=(k.size||k.fileSize)&&(""==k.type?/\.flv$/.test(k.name||k.fileName):1)&&(a.kX||0==d.length)?d.push(k):f.push(k)}CGg(a,d,void 0,!0)},ted=function(a,b,c,d){var f=B0e(b),
h=va(f);if(ta(a.nY)&&a.nY()&&(!a.Vb.contains(h)&&c&&(a.getHandler().Ja(b,b.tagName?"click":"action",a.Vk),a.Vb.add(h)),a.Ab.Rc()[0]))return;(b=a.Ab.get(h))?On(b.parentNode,!0):a.Ko=Uf(function(){sed(this,f,d);this.L1(this.kX);this.cya(Ucd(this));this.dispatchEvent(new uY("uploaderready",this))},void 0,a)};
RY.prototype.iu=function(a,b,c){var d=c.getItem();switch(c.type){case "Rl":this.dispatchEvent(new tY("filedownsamplingstarted",a));break;case "Sl":case "Tl":"Sl"==c.type&&(d.Wpa&&a.CYa(D0e(d)),this.dispatchEvent(new tY("filedownsamplingcompleted",a))),ued(this,d),b()}};var ued=function(a,b){a.getHandler().nb(b,["Rl","Sl","Tl"])};
RY.prototype.Sx=function(a,b){switch(b.type){case "Sl":var c=b.getItem();ued(this,c);var d=c.tf();this.dispatchEvent(new Xbd(a,c.Sa,{resultWidth:d.width,resultHeight:d.height}));break;case "Tl":ued(this,b.getItem()),this.dispatchEvent(new tY("filepreviewerror",a))}};var Hdd=function(a,b){EY.call(this);this.Vb=a;this.Ko=b||"en_US";this.Ab=null;this.Oa=!1;this.mL=null;this.Vk=!1;this.YY=0;this.lp=!pda;this.cya(!0)};t(Hdd,EY);q=Hdd.prototype;
q.Sk=function(){this.dispatchEvent(new uY("uploaderinstalling",this));var a="JAVA_UPLOADER_"+Ked++,b=jc(document.body),a=b.Pa("applet",{id:a,archive:this.Vb,code:"com.google.uploader.service.client.applet.UploaderApplet",width:"1",height:"1",style:"position: absolute; top: -1px; left: -1px;"});b.appendChild(document.body,a);this.Ab=a;this.dispatchEvent(new uY("appletinsertedindom",this));this.mL=window.setInterval(Lp(function(){var a=!1;try{this.Ab&&this.Ab.isActive()?(this.Vk=this.Ab.isLoaded())?
(this.dispatchEvent(new uY("uploaderready",this)),window.clearTimeout(this.mL)):a=!0:this.YY++}catch(b){this.YY++}a?(this.dispatchEvent(new uY("uploaderwithoutpermission",this)),window.clearTimeout(this.mL)):10<=this.YY&&(this.dispatchEvent(new uY("appletfailedtoload",this)),window.clearTimeout(this.mL))},this),50)};q.qoa=function(){this.dispatchEvent(new uY("uploaderuninstalling",this));Fc(this.Ab)};
q.KQ=function(a){this.Oa=a||this.Oa;this.Vk&&this.d8&&(this.d8=!1,Pd(this.Ab,{top:"50%",left:"50%"}),window.setTimeout(Lp(function(){this.Ab.setLocale(this.Ko);var a=this.Ab.selectFiles("Upload","Select",this.kX,[],Ucd(this),this.lp);Pd(this.Ab,{top:"-1px",left:"-1px"});l_e(this,a);this.d8=!0},this),50))};q.Tu=function(a){Hdd.ya.Tu.call(this,a);this.Ab.freeResources(a.Sa)};q.poa=function(){return"scotty java"};q.Jaa=function(){return!0};q.o4a=function(){return!0};q.VNa=e(606);
q.W8=function(a){return new Cdd(a,this.Ab)};q.z0a=function(){return 1};
var l_e=function(a,b){a.dispatchEvent(new A("filesscanstarted"));a.Oa&&Zcd(a);var c=Nf(b),c=zg(c,Lp(function(a){var b=Jdd(a);b instanceof xY&&Idd(this,a.c,b,b);return b},a));a.dispatchEvent(new A("filesscanfinished"));a.dispatchEvent(new vY("filesselected",c))&&(v(c,function(a){JY(this,a)},a),a.dispatchEvent(new vY("allfilesadded",c)))},Idd=function(a,b,c,d){for(var f=0;f<b.length;f++){var h=b[f],k=Jdd(h);k.Ab=d;k instanceof xY&&((h=h.c)?Idd(a,h,k,d):(h=k.getName()+"/",h=new wY(h+".",0,h),lcd(k,h)));
lcd(c,k)}},Jdd=function(a){var b=a.r;return null!=a.f?new xY(a.n,a.s,b,a.i,a.f):new wY(a.n,a.s,b,a.i)},NY=function(a){EY.call(this);this.Oa=new Ze;this.YY=new Ze;this.Ab=new Ze;this.Vb=new Ze;this.mL=a||!1};t(NY,EY);q=NY.prototype;q.sia=!1;q.fob=0;q.Bia=!1;
q.mla=function(a,b){var c=jc(a),d=c.Pa("input",{type:"file",name:"Filedata",size:20,"class":"ff-v-N"}),c=c.Pa("form",{method:"POST",enctype:"multipart/form-data",encoding:"multipart/form-data"},d);a.appendChild(c);this.Oa.set(b.getId(),c);this.getHandler().Ja(d,"change",function(a){a=Bdd(a.target.value);b.mL=Sbd(a);this.dispatchEvent(new A("filesscanstarted"));a=Wa();b.Ag=a;this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",[b]))&&(this.p8&&this.sxa(b),this.kX&&
!Cd(this.Sa,this.A4a,this)&&this.KQ(!1),this.dispatchEvent(new vY("allfilesadded",[b])))})};q.Q7a=function(){v(sb(this.Sa),function(a){this.A4a(a)&&this.Tu(a)},this)};q.Sk=function(a){a&&(this.Bia=!0);this.dispatchEvent(new uY("uploaderinstalling",this));a&&Add(this,a,this.mL);this.sia=!0;this.dispatchEvent(new uY("uploaderready",this));a||Uf(function(){this.KQ(!1)},1,this)};q.qoa=function(a){this.dispatchEvent(new uY("uploaderuninstalling",this));a&&(a=this.Ab.get(va(a)))&&On(a,!1)};q.poa=function(){return"scotty html form"};
q.Lt=function(){var a=NY.ya.Lt.call(this);return ec(a,function(a){return!this.A4a(a)},this)};q.Lr=function(a){a=B0e(a);var b=this.Ab.get(va(a));b?On(b,!0):Add(this,a)};q.VM=function(a){a=va(B0e(a));(a=this.Ab.get(a))&&On(a,!1)};q.j8a=function(a){this.fob=a.target.uoa;NY.ya.j8a.call(this,a)};q.KQ=function(a){this.d8&&!this.Bia&&(a?Zcd(this):JY(this,new wY))};q.Tu=function(a){NY.ya.Tu.call(this,a);this.Oa.remove(a.getId());0!=this.Sa.length||this.Bia||this.KQ(!1)};q.jra=function(){return!0};
q.LTa=function(a){this.Bia&&NY.ya.LTa.call(this,a)};q.W8=function(a){var b=this.Oa.get(a.getId());return new ydd(a,b,this.fob)};q.A4a=function(a){return""==a.getPath()};
var Add=function(a,b,c){var d=va(b);a.Vb.set(d,b);var f=jc(b);Qn(b,"uploader-overlay-visible");var h=zy(b);c={type:"file",name:"Filedata",size:20,"class":"ff-v-N",style:["opacity:0;filter:alpha(opacity=0)","font-size:"+h.height+"px","height:"+h.height+"px","position:absolute",ce(b)?"left:0px":"right:0px","top:0px"].join(";"),tabIndex:c?-1:0};c=f.Pa("input",c);var k=f.Pa("form",{method:"POST",enctype:"multipart/form-data",encoding:"multipart/form-data"},c);a.YY.set(d,k);var m=a.Ab.get(d);m||(m=f.Pa("div",
{style:"overflow:hidden;width:"+h.width+"px;height:"+h.height+"px"}),a.Ab.set(d,m),f.Hy(m,b),Pd(m,"position","absolute"),b.parentNode&&Pd(b.parentNode,"position","relative"),Vd(m,Wd(b)));f.uv(m,k);a.getHandler().Ja(c,"change",function(a){a=Bdd(a.target.value);this.dispatchEvent(new A("filesscanstarted"));a=new wY(a);var c=this.YY.get(d);this.Oa.set(a.getId(),c);le(c.childNodes[0],0,0);Add(this,b);this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",[a]))&&(JY(this,
a),this.dispatchEvent(new vY("allfilesadded",[a])))})},Bdd=function(a){a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12));return a},KY=function(){EY.call(this);this.Vk=new Ze;this.lp=new Ze;this.Tx=new Ze;this.Sx=new Ze;this.dw=new Ze;this.mL=new df;this.Oa=new df;this.Vb=[]};t(KY,EY);KY.prototype.Ab="";KY.prototype.Ko=!1;KY.prototype.iu=!1;KY.prototype.L1=function(a){KY.ya.L1.call(this,a);a=this.iZb;v(this.dw.ii(),a,this)};var LY=function(a,b){return J0e(a,b).ta(b||a.Ab)};q=KY.prototype;
q.Sk=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderinstalling",this));fdd(this,a)};q.qoa=function(a){if(!a)throw Error("jg");this.dispatchEvent(new uY("uploaderuninstalling",this));this.VM(a)};q.poa=function(){return"scotty flash"};q.QWa=function(a){return new Kcd(a)};q.lza=function(a,b,c,d,f){var h=edd(this,a);return this.W4a(a)?(this.mL.add(a.getId()),a=GY(this,a).Sa.id,h.startPreview(a,{id:"preview",width:b,height:c,quality:d||90,allowCropping:f||!1}),!0):!1};
q.W4a=function(a){return 0<=Xa(OJ,"10")&&!this.mL.contains(a.getId())&&!eb(["inqueue","recovery","start","transfer"],HY(this,a))};q.KQ=function(a){this.Ko=a||this.Ko;ba(this.dw,this.Ab)&&this.d8&&LY(this,this.Ab).browse(this.kX,ldd())};q.Lr=function(a){fdd(this,a)};q.VM=function(a){a=B0e(a);var b=va(a),c=this.lp.get(b);c&&c!=this.Ab&&(this.$$()?J0e(this,c).removeNode(LY(this,c||this.Ab).parentNode):this.Vb.push(c),this.lp.remove(b),this.Vk.remove(a))};
q.QKa=function(){KY.ya.QKa.call(this);if(this.$$()){for(var a=0;a<this.Vb.length;a++)J0e(this,this.Vb[a]).removeNode(LY(this,this.Vb[a]||this.Ab).parentNode);this.Vb=[]}};q.Qda=function(a,b){this.Oa.remove(a.getId());KY.ya.Qda.call(this,a,b)};q.O$=function(a){this.mL.contains(a.getId())?this.Oa.add(a.getId()):KY.ya.O$.call(this,a)};
q.yD=function(a){if(!this.mL.contains(a.getId())){var b=this.uh?this.uh(a):this.Op;if(b){this.dispatchEvent(new tY("filedownsamplingstarted",a));var c=edd(this,a);c.setMaxPixelDimension(Math.min(b.tf().width,b.tf().height));c.setMinImageByteCountForRescale(51200);c.resizeImage(GY(this,a).Sa.id,a.c2())}else KY.ya.yD.call(this,a)}};q.W8=function(a){var b=GY(this,a).Sa;a=new cdd(a,b,edd(this,a));this.Tx.set(b.id,a);return a};q.$$=function(){return this.Oa.isEmpty()&&KY.ya.$$.call(this)};
q.iZb=function(a){LY(this,a).setMultiSelect(this.kX)};
var edd=function(a,b){var c=GY(a,b).Ab;return LY(a,c)},J0e=function(a,b){var c=a.Vk.get(b||a.Ab);return jc(c)},fdd=function(a,b){var c=B0e(b),d="FLASH_UPLOADER_"+gdd++;a.Vk.set(d,c);a.lp.set(va(c),d);var f=J0e(a,d);a.Ab||(a.Ab=d,f.getWindow().onUploaderApiReady=hdd);idd.set(d,Lp(a.WLb,a));Qn(c,"uploader-overlay-visible");var h=zy(c),k=f.Pa("div",{"class":"upload-uploader-flash-content"});f.Hy(k,c);Pd(k,"position","absolute");Pd(k,"visibility","visible");c.parentNode&&Pd(c.parentNode,"position","relative");
Vd(k,Wd(c));f={allowscriptaccess:"always",allownetworking:"all",wmode:a.iu?"window":"transparent",flashvars:"apiId="+d+(a.YY?"&"+a.YY:"")};c=jdd;h={id:d,width:h.width,height:h.height};d=J0e(a,d).ta(k);xc?(DMg(CMg,h,f),k=EMg({allownetworking:"none",allowscriptaccess:"never",movie:c},f),c=FMg({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},h)):(DMg(CMg,h,f),k=EMg({allownetworking:"none",allowscriptaccess:"never"},f),c=FMg({data:c,type:"application/x-shockwave-flash",typemustmatch:""},h));k=tNa("object",
c,k);oNa(d,k);a.dispatchEvent(new uY("appletinsertedindom",a))};q=KY.prototype;
q.WLb=function(a){var b=J0e(this,a),c=LY(this,a);if(c.addListener){this.dw.set(a,!0);var d=a+"flashFileSelection",b=b.getWindow();b[d]=Lp(this.zrb,this);c.addListener("onSelected",d);d=a+"flashMouseEvent";b[d]=Lp(this.fXc,this);c.addListener("onMouseOver",d);c.addListener("onMouseOut",d);c.addListener("onMouseClick",d);d=a+"flashToFileIo";b[d]=Lp(this.Ioc,this);c.addListener("onOpen",d);c.addListener("onProgress",d);c.addListener("onCompleteData",d);c.addListener("onHttpError",d);c.addListener("onSecurityError",
d);c.addListener("onIoError",d);d=a+"flashImageEvent";b[d]=Lp(this.CXc,this);c.addListener("onPreviewReady",d);c.addListener("onResizeReady",d);c.addListener("onLoadError",d);this.iZb(a);LY(this,a).setAllowedFileTypes(ldd());c=this.d8;a=LY(this,a);a.setAllowAddingFiles(c);Pn(a,"uploader-overlay-hidden",!c);this.dispatchEvent(new uY("uploaderready",this))}else Uf(Lp(this.WLb,this,a))};
q.zrb=function(a){this.dispatchEvent(new A("filesscanstarted"));var b=a.apiId;LY(this,b);this.Ko&&Zcd(this);var c=a.files;this.doa&&wb(c,function(a,b){return MZa(a.name,b.name)});a=zg(c,function(a){return new wY(a.name,a.size,void 0,void 0)});v(a,function(a,f){var h=GY(this,a);h.Ab=b;h.Sa=c[f];this.Sx.set(c[f].id,a)},this);this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",a))&&(v(a,function(a){JY(this,a)},this),this.dispatchEvent(new vY("allfilesadded",a)))};
q.CXc=function(a){var b=this.Sx.get(a.file);switch(a.type){case "onPreviewReady":this.mL.remove(b.getId());this.dispatchEvent(new Xbd(b,"data:image/jpg;base64,"+a.data,a.version));this.Oa.contains(b.getId())&&(this.Oa.remove(b.getId()),this.O$(b));break;case "onResizeReady":b.dp=a.fileSize;this.dispatchEvent(new tY("filedownsamplingcompleted",b));KY.ya.yD.call(this,b);break;case "onLoadError":this.mL.contains(b.getId())?(this.mL.remove(b.getId()),this.dispatchEvent(new tY("filepreviewerror",b)),this.Oa.contains(b.getId())&&
(this.Oa.remove(b.getId()),this.O$(b))):(this.dispatchEvent(new tY("filedownsamplingcompleted",b)),KY.ya.yD.call(this,b))}};q.Ioc=function(a){var b=this.Tx.get(a.file);switch(a.type){case "onProgress":AY(b,a.bytesLoaded);break;case "onCompleteData":b.yS(a.data);break;case "onHttpError":b.aQ("networkerror","HTTP Error "+a.code);break;case "onSecurityError":b.aQ("securityerror",a.error);break;case "onIoError":b.aQ("ioerror","An error occured while reading the file.")}};
q.fXc=function(a){var b;switch(a.type){case "onMouseOver":b="flashmouseover";break;case "onMouseOut":b="flashmouseout";break;case "onMouseClick":b="flashmouseclick"}a=this.Vk.get(a.apiId);this.dispatchEvent({type:b,sourceOverlay:a})};var ldd=function(){if(oa(null)&&null.length)return[{description:"Allowed files",extension:"*"+null.join(";*")}]};H("sy862");
var wed=function(a,b){zY.call(this,a);this.Sa=b};t(wed,zY);wed.prototype.mL=function(a){this.Sa.HintedUpload($bd(this.getFile()),a,this.getFile().PB)};wed.prototype.abort=function(){this.Sa.Abort($bd(this.getFile()))};wed.prototype.tWa=function(a,b){this.Sa.ComputeMd5($bd(this.getFile()),a,b)};
var M0e=function(){if("undefined"==typeof ActiveXObject)return null;try{return(new ActiveXObject("AgControl.AgControl")).IsVersionSupported("3.0")}catch(a){return null}};var aNg=["data","source","type","typemustmatch"];var xed=function(a,b){EY.call(this);this.Fs=b||"silverlightObject";var c;a instanceof yKa?c=a:(c=Bia(a),c=PKa(c),c=vMg(c));this.YY=c;this.Ab=this.mL=null;this.Oa=new Ze;yed||(yed=new Ze)};t(xed,EY);var yed=null;q=xed.prototype;
q.Sk=function(){var a=yed;if(ba(a,this.Fs))throw Error("og");this.dispatchEvent(new uY("uploaderinstalling",this));var b={id:this.Fs,width:128,height:32},c=document,d=jc(c.body);ha.silverlightOnLoad=Bed;ha.silverlightOnError=Ded;var f=d.Pa("div");Pd(f,{position:"absolute",top:"-32px",left:"-128px",width:128,height:32});d.appendChild(c.body,f);var c=this.YY,h={onload:"silverlightOnLoad",onerror:"silverlightOnError"};DMg(aNg,b,h);c=EMg({source:c},h);h=S4a("data:application/x-silverlight-2,");h={data:vMg(Ylg(h)),
type:"application/x-silverlight-2",typemustmatch:""};b=FMg(h,b);b=tNa("object",b,c);oNa(f,b);this.dispatchEvent(new uY("appletinsertedindom",this));this.mL=d.ta(this.Fs);a.set(this.Fs,this)};q.qoa=function(){var a=yed;this.dispatchEvent(new uY("uploaderuninstalling",this));Fc(this.mL);a.remove(this.Fs)};q.poa=function(){return"scotty silverlight"};q.Jaa=function(){return!0};q.d5a=function(){return!0};
q.KQ=function(){if(yid(this)){var a=this.Ab.Browse();if(a&&a.length){this.dispatchEvent(new A("filesscanstarted"));for(var b=[],c=0;c<a.length;++c){var d=a[c];b[c]=new wY(d.FileName,Number(d.SizeBytesAsString),"",d.FileId)}this.dispatchEvent(new A("filesscanfinished"));this.dispatchEvent(new vY("filesselected",b));v(b,function(a){JY(this,a)},this);this.dispatchEvent(new vY("allfilesadded",b))}}};q.Tu=function(a){var b=a.Sa;xed.ya.Tu.call(this,a);this.Ab.Discard(b);this.Oa.remove(b)};
q.W8=function(a){if(!this.Ab)throw Error("pg");var b=new wed(a,this.Ab);this.Oa.set(a.Sa,b);return b};
var yid=function(a){if(a.Ab)return!0;var b=a.mL.Content;if(!b)return a.dispatchEvent(new uY("appletfailedtoinitialize",a)),!1;try{a.Ab=b.Uploader}catch(c){}if(!a.Ab)return a.dispatchEvent(new uY("appletfailedtoinitialize",a)),!1;a.Ab.OnStateUpdate=Ced;a.dispatchEvent(new uY("uploaderready",a));return!0},zed=function(a,b){a.Ab||a.dispatchEvent(new uY("appletfailedtoload",a));v(a.Sa,function(a){"transfer"==HY(this,a)&&GY(this,a).yR.aQ("exception",b)},a)},Aed=function(a){var b=yed;try{var c=a.Id;if(c)return b.get(c)}catch(d){}try{var f=
a.GetHost();return b.get(f.id)}catch(h){}throw Error("qg");},Bed=function(a){(a=Aed(a))&&yid(a)},Ced=function(a,b){var c=Aed(a).Oa.get(b.FileId);switch(b.StatusAsString){case "UPLOADING":case "RECOVERABLE_ERROR":case "SEVERE_ERROR":var d=b.UploadedBytesAsString;d&&AY(c,Number(d));break;case "SUCCEEDED":c.yS(b.ResponseString);break;case "FAILED":var d=b.LastErrorAsString,f="unknownerror";switch(d){case "NETWORK_ERROR":f="networkerror";break;case "IO_ERROR":f="ioerror";break;case "RESOURCE_ERROR":f=
"exception";break;case "SECURITY_ERROR":f="securityerror";break;case "SERVER_REJECTED":f="serverrejected";break;case "INVALID_RESPONSE":case "SERVER_ERROR":f="serverinvalidresponse";break;case "UNKNOWN_ERROR":f="unknownerror"}c.aQ(f,d)}},Ded=function(a,b){var c=b.errorMessage||b.Message||"",d=null;if(a)try{d=Aed(a)}catch(f){}d?zed(d,c):v(yed.Rc(),function(a){zed(a,c)})};
var SY=function(a,b,c,d){Ld.call(this);if(Ea(Ga(a)))throw Error("rg");this.uh=a;this.Ab=[];this.Sa=null;this.Qb=void 0;this.jg=c?!0:!1;0<=fa.indexOf("Firefox/2.")&&bda(window.location,a).Au();!sGa.Sa().upload||wd&&!Gf("1.9.2")||this.Ab.push("XHR");if(a=d)a=M0e(),ra(a)||(a=navigator.plugins?(a=navigator.plugins["Silverlight Plug-In"])?a.description:"":null,a=qa(a)?3<=parseInt(a,10):!1);a&&this.Ab.push("Silverlight");b&&(!navigator.javaEnabled()||Zq&&!ea||kr&&ea||gc?b=!1:(b=Ddd(),b=!!b&&0<=Xa(b,"1.5.0_0")));
b&&this.Ab.push("JAVA");wZb&&(!pda&&0<=Xa(OJ,"10")||0<=Xa(OJ,"11"))&&this.Ab.push("FLASH");this.Ab.push("HTML_FORM")};t(SY,Ld);
var Eed=function(a,b,c){if(!b)throw Error("sg");oa(b)||(b=[b]);if(gb(b))throw Error("tg");v(b,function(a){if(!Tb(Fed,a))throw Error("ug`"+a);},a);var d;c?d=ec(b,function(a){return eb(this.Ab,a)},a):d=ec(a.Ab,function(a){return eb(b,a)});if(gb(d))throw new Ged;a.Ab=d},Hed=function(a,b,c,d,f){a.Km=b;a.Vk=c;a.YY=d;ia(f)&&(a.jg=f)},Ied=function(a,b){var c=null,d=a.Ab[0];switch(d){case "JAVA":a.Sa=new Hdd(a.Vb,a.dw);break;case "XHR":a.Sa=new RY(a.Oa,a.mL);c=a.Ag;break;case "Silverlight":a.Sa=new xed(a.Db);
break;case "FLASH":a.Vk&&(c=a.Vk,c instanceof yKa?jdd=c:(c=PKa(Bia(c)),jdd=vMg(c)));a.Sa=new KY;a.YY&&(a.Sa.YY=a.YY);a.Sa.iu=a.jg;c=a.Km;break;case "HTML_FORM":a.Sa=new NY(a.mL);c=a.$b;break;default:a.Sa=null}if(!a.Sa)return b&&b(null),null;a.Sa.hf(a);c=mc(c);b&&(a.Qb=b,ud(a.Sa,["appletfailedtoload","uploaderwithoutpermission","applettimedout","appletfailedtoinitialize"],Lp(a.Ko,a,d,c)),ud(a.Sa,"uploaderready",Lp(a.Op,a,d,c)));a.Sa.Sk(c);a.Sa.h8=a.uh;ra(a.pCa)&&(a.Sa.pCa=a.pCa);if(a.lp&&(d=a.Sa,c=
a.lp,d.pCa&&d.d5a())){var f=eVb("google-upload-recovery");f&&(d.Qb=new DY(f,c))}return b?null:a.Sa};SY.prototype.Op=function(a,b,c){c.XM==this.Sa&&this.Qb&&(this.Qb(this.Sa),this.Qb=void 0)};SY.prototype.Ko=function(a,b,c){c.XM==this.Sa&&(this.Sa.qoa(b),mb(this.Ab,a),Ied(this,this.Qb))};var Fed={TGd:"JAVA",D6b:"FLASH",MFd:"HTML_FORM",FQd:"XHR",YMd:"Silverlight"},Ged=function(){};t(Ged,Error);Da("apps.uploader.showDebugWindow",function(){null.Ta(!0)},void 0);

G("sy862");I();
}catch(e){_DumpException(e)}
try{
H("sy905");var Fpd=new Kb(2048,2048),Epd=function(a){if(2<=Lb(a)/Math.min(a.width,a.height)){if(3145728<a.MUa()){var b=Math.sqrt(3145728/a.MUa()),c=1>a.height*b?1:Math.floor(a.height*b),b=1>a.width*b?1:Math.floor(a.width*b);return a.clone().Cr(new Kb(b,c)).round()}}else if(!Mb(a,Fpd))return a.clone().Cr(Fpd).round();return a};
var I2e=function(a,b,c,d){kd.call(this);this.$b=a;this.Kf=b||jc();this.Oa=!!c;this.Ag=!!d;this.mL=new gv(1);IVa(this.mL,1);this.mL.Ab=1;this.Qb=new ag;J2e(this);this.Qb.addCallback(function(a){K2e(this,a.Sa)},this);this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(a,"filesselected",this.uh).Ja(a,"uploadstatechanged",this.Vb)};t(I2e,kd);
var q1={p7:"user/enable_original_resolution_uploads",Iua:"/quota/limit",Fua:"/quota/current",E8:"user/original_resolution_uploads_quota_warning"},K2e=function(a,b){var c=a.$b;if(b||!a.Ag){if(c.uh)throw Error();c.Op=void 0}else{var d=new QY;if("undefined"!=typeof RY&&c instanceof RY){if(d.Ed)throw Error();d.Sa=Epd;a.Xya()}else d.setSize(2048);if(c.uh)throw Error();c.Op=d}},J2e=function(a){a.a3a(Rb(q1),Lp(function(a){a=new M2e(a);this.Ab=a.vbb;this.Qb.By(a)},a))};
I2e.prototype.uh=function(a){this.Qb.addCallback(function(b){b.Sa&&this.Ab>b.XNa-52428800&&N2e(this,b);b.Sa||v(a.files,function(a){HY(this.$b,a);a.Oi().set("use_upload_size_pref","true")},this)},this)};
I2e.prototype.Vb=function(a){this.Qb.addCallback(function(b){if("success"==HY(this.$b,a.file)&&b.Sa&&(this.Ab+=a.file.dp,!this.Oa))if(this.Ab>b.XNa-52428800)N2e(this,b);else if(this.Ab>b.XNa-1073741824&&b.Ab!=b.XNa&&(b.Ab=b.XNa,b.Sa)){var c=C9e(this),d,f=this.mL.format(b.vbb/1073741824),h=this.mL.format(b.XNa/1073741824);d="";f="You chose to upload your photos at full size, but you are getting close to using all of your storage space. You are using "+(r(f)+(" GB of your "+(r(h)+" GB available space.<p>Would you like to turn off full size uploads?</p>")));
d=Y(d+f);r7a(c,d.Yqa());c.Qd(zFa());c.setVisible(!0);this.Bb.yj(c,"dialogselect",Lp(this.YY,this,b))}},this)};var N2e=function(a,b){b.Sa=!1;K2e(a,!1);var c="You chose to upload your photos at full size, but your storage space is now full.  You have "+(a.mL.format(b.XNa/1073741824)+" GB of storage space.  You can continue to upload photos and videos, but they will no longer be stored at full size."),d=C9e(a);r7a(d,Hua(c));d.Qd(yFa());d.setVisible(!0);a.Bb.yj(d,"dialogselect",Lp(a.jg,a,b))};
I2e.prototype.jg=function(){this.qMa({"user/enable_original_resolution_uploads":"false"})};I2e.prototype.YY=function(a,b){if("yes"==b.key){a.Sa=!1;K2e(this,!1);var c={"user/enable_original_resolution_uploads":"false"};c["user/original_resolution_uploads_quota_warning"]=a.XNa.toString();this.qMa(c)}else c={},c["user/original_resolution_uploads_quota_warning"]=a.XNa.toString(),this.qMa(c)};
var C9e=function(a){a=new jx(void 0,void 0,a.Kf);a.setTitle("Upload my photos at full size");a.cb().style.fontSize="13px";a.cb().style.maxWidth="450px";a.ta().style.zIndex=2201;a.hg().style.zIndex=2200;return a};I2e.prototype.Xya=function(){return!1};
var M2e=function(a){this.Sa="true"==a["user/enable_original_resolution_uploads"];this.XNa=a["/quota/limit"]?Faa(a["/quota/limit"]):void 0;this.vbb=a["/quota/current"]?Faa(a["/quota/current"]):void 0;this.Ab=a["user/original_resolution_uploads_quota_warning"]?Faa(a["user/original_resolution_uploads_quota_warning"]):void 0};

G("sy905");I();
}catch(e){_DumpException(e)}
try{
var uEg=function(a){var b=a.rd().iu,c=a.Sa,d=c.Ua(),f=a.od,h;v(d,function(a){a=f.La(a);var b=a.Ra();a.getAttribute("rd")&&(h=3);if("document"==b||"folder"==b)h=2});a=c.Vjb();b&&a>b&&(h=1);return h},VFg=function(a){if(ia(a))switch(a){case 2:return"Google Docs, Sheets and Slides documents will be shared via a link.";case 3:return"The owner of one or more of the selected files disabled downloading. All attachments will be shared via a Drive link.";case 1:return"Because you selected more than 25 MB to attach to this email, the selected attachments will be shared via a Drive link."}return""}; H("sy906");
var vEg=function(a,b,c){XX.call(this,a,b,c)};t(vEg,XX);vEg.prototype.Oa=function(){this.Ta(!uEg(this.getContext()));this.isEnabled()||t0d(this.Ab,"inline")};vEg.prototype.Qb=function(){return new RW([tEg(this,"Drive link","inline","a-WNq8W-gc-Cd-jf"),tEg(this,"Attachment","attach","a-WNq8W-eyIFUe-ltEGzf")],"inline",this.Ea())};

G("sy906");I();
}catch(e){_DumpException(e)}
try{
H("sy907");var a5c=["transform","WebkitTransform","msTransform","OTransform","MozTransform"],$4c=function(a){var b=cb(a5c,function(b){return!!a.style[b]});return b?a.style[b]:""},b5c=function(a,b){v(a5c,function(c){a.style[c]=b})},tX=function(a){var b=$4c(a),c=!1;b||(b=a.style.filter,c=!0);return b&&(a=b.search("rotat"),0<=a)?(b=b.substr(a),a=b.search("[)]"),c=c?90:1,b.substr(0,a).replace(/[^-0-9]/g,"")*c):0},c5c=function(a,b){if(xc&&!Gf(9)){b=Math.floor(b/90)%4;0>b&&(b+=4);var c=Qd(a,"filter"),c=c.replace(/progid:DXImageTransform.Microsoft.BasicImage\([^)]+\)/i,
""),c=Ia(c);a.style.filter=Ia(c+(" progid:DXImageTransform.Microsoft.BasicImage(rotation="+b+")"))}else c=$4c(a),c=Ia(c.replace(/rotate\([^)]+\)/i,"")),c=Ia(c+(" rotate("+b+"deg)")),b5c(a,c)},d5c=function(a,b,c){var d=tX(a),f=zy(a);0!=d%180&&(d=f.width,f.width=f.height,f.height=d);b=Xb(f).Cr(b).width/f.width;f=zy(a);xc&&!Gf(9)?(c=d=0,0==tX(a)%180?(d=f.width-Math.floor(f.width*b),c=f.height-Math.floor(f.height*b)):(d=Math.floor((f.height*b-f.width)/2),c=Math.floor(f.width*b)-f.height),c=""+c+"px",
Pd(a,"margin-left",""+d+"px"),Pd(a,"margin-top",c),c=Qd(a,"filter")||"",c=c.replace(/progid:DXImageTransform.Microsoft.Matrix\([^)]+\)/i,""),c=Ia(c),c=Ia("progid:DXImageTransform.Microsoft.Matrix(M11="+b+",M22="+b+",sizingMethod='auto expand') "+c),Pd(a,"filter",c)):(d=$4c(a),d=Ia(d.replace(/scale\([^)]+\)/i,"")),d+=" scale("+b+","+b+")",c&&1>b&&(d=Ia(d.replace(/translate\([^)]+\)/i,"")),c=0-Math.floor(f.height*(1-b)/2),d=" translate(0px,"+c+"px) "+d),d=Ia(d),b5c(a,d))};
var pZ=function(a,b){A.call(this,a);this.data=b||new qZ};t(pZ,A);var qZ=function(){this.Ab=this.tag=this.ue=null;this.index=0;this.Qb=this.mL=this.$b=this.Sa=!1},rZ=function(){};
G("sy907");I();
}catch(e){_DumpException(e)}
try{
var vfd=function(a){return w(a,9)};H("sy909");var wfd=function(a,b,c){a="";b=wA(new Z("{VIEWER_GENDER,select,male{Adding this tag will notify the person you have tagged. They will be able to view the photo and the related album.}female{Adding this tag will notify the person you have tagged. They will be able to view the photo and the related album.}other{Adding this tag will notify the person you have tagged. They will be able to view the photo and the related album.}}"),{VIEWER_GENDER:c.Aa});var d=wA(new Z("{VIEWER_GENDER,select,male{Learn more}female{Learn more}other{Learn more}}"), {VIEWER_GENDER:c.Aa});a+='<div class="j-D-Ua-uc-Fi">'+b+' <a href="http://support.google.com/plus/?p=lightbox_nametag&hl='+vn(c.locale)+'" target="_blank">'+d+"</a></div>";return Y(a)};
var Bfd=function(a){this.Sa=a?a.Sa:0;this.Ab=a?a.Ab:0;this.radius=a?a.radius:0};Bfd.prototype.clone=function(){var a=new Bfd;a.Sa=this.Sa;a.Ab=this.Ab;a.radius=this.radius;return a};Bfd.prototype.scale=function(a){this.Sa*=a;this.Ab*=a;this.radius*=a};Bfd.prototype.setBounds=function(a,b,c){this.Sa=a;this.Ab=b;this.radius=c};
var xfd=function(a){this.mL=a;this.Sa={};this.Ab={}},zfd=1,lZ=function(a,b){if(!b)return null;var c=a.mL(b),d=yfd(b)||zfd++;c.jmb=b.jmb=d;a.Sa[d]=c;a.Ab[d]=b;return c},Afd=function(a,b){if(!b)return null;var c=yfd(b),d=c&&a.Sa[c];d&&(delete a.Sa[c],delete a.Ab[c]);return d};xfd.prototype.removeAll=function(a){Pb(this.Sa,function(b){a&&a.removeChild(b,!0);y(b)},this);Pb(this.Ab,function(a){y(a)},this);this.Sa={};this.Ab={}}; var mZ=function(a,b){return b?a.Sa[yfd(b)]:null},yfd=function(a){return a.jmb||(ta(a.getId)?a.getId():null)};
var nZ=function(a){this.Sa=a||null;this.Ab=new Bfd;if(a){var b=N(a,Ir,4);a=this.Ab;var c=Lr(b).wP(),d=Lr(b).XEa(),f=Mr(b).wP(),b=Mr(b).XEa(),c=new Md(d,f,b,c),d=Math.max(c.right-c.left,c.bottom-c.top)/2;a.radius=d;c=new Gb((c.right+c.left)/2,(c.bottom+c.top)/2);d=c.y;a.Sa=c.x;a.Ab=d}this.iF=null};q=nZ.prototype;q.getId=function(){return this.Sa?this.Sa.getId():""};q.getName=function(){return this.Ah()&&this.Ah().Ob()};
q.Ah=function(){if(this.Sa&&!Dfd(this)){var a=this.Sa.Vg();if(a)return a;if((a=this.Sa.ql())&&0<a.length)return a[0]}return null};q.getShape=function(){return this.Sa};q.Voa=function(){var a=null!==this.Sa&&this.Sa.getStatus();return 2!=a&&5!=a&&!Dfd(this)};q.Un=function(){return!!this.Sa&&0==this.Sa.getStatus()};q.zRa=function(){return this.Un()&&!(!this.getShape()||!vfd(this.getShape()))};q.B3b=function(){var a;(a=!this.getShape())||(a=this.getShape(),a=!w(a,13));return!a};
q.Y4=function(){return!!this.Sa&&(!!w(this.Sa,8)||!!vfd(this.Sa))};q.nP=function(){return!!this.Sa&&3==this.Sa.getStatus()};var Dfd=function(a){return!((null!==a.Sa&&a.Sa.Vg()&&a.Sa.Vg().Ob()||0<a.Sa.ql().length&&a.Sa.ql()[0].Ob())&&4!=a.Sa.getStatus())};

G("sy909");I();
}catch(e){_DumpException(e)}
try{
yB.prototype.oP=g(389,function(){return this.Ab.Efb});
var vH=function(a,b,c,d,f,h,k,m,p,u,z,F,M){var X=new hs;Py(X,8,a);sa(b)&&Py(X,1,b);sa(c)&&Py(X,2,c);qa(k)&&Py(X,3,k);sa(m)&&Py(X,6,m);sa(p)&&Py(X,7,p);u&&(a=xs(u),Lg(X,4,a));if(z){a=O(X,fs,5);for(b=0;b<z.length;b++)c=ys(z[b]),a.push(c);Mg(X,5,a)}sa(d)&&Py(X,11,d);sa(f)&&Py(X,15,f);qa(h)&&Py(X,10,h);if(F){var da=O(X,fs,13);v(F,function(a){a=ys(a);da.push(a)});Mg(X,13,da)}sa(M)&&Py(X,14,M);return X},jze=function(a,b){var c=new hs;Py(c,3,a);sa(b)&&Py(c,2,b);return c},FJ=function(a){K(this,a,0,-1,[1])}; t(FJ,J);FJ.prototype.Se=function(){return N(this,vk,2)};FJ.prototype.Ym=function(a){Lg(this,2,a)};H("sy730");
var izb=function(a){var b=a.Oc();a=b.Ce();Ea(Ga(a.yc()))&&Py(a,1,void 0);b=b.Lj();return new yB(a,b)},GJ=function(a,b,c,d,f,h){var k=new ls;Mg(k,4,d);if(qa(f)||sa(h))d=new ks,qa(f)&&Py(d,2,f),sa(h)&&Py(d,1,h),Lg(k,6,d);f=new zs;NSa(f,k);f.Fm(c);qp(a).Ha({Ub:b,qd:f})},jzb=function(a,b,c){var d=new is;Mg(d,5,[a]);Lg(d,6,b);c&&Mg(d,4,[c]);return d};

G("sy730");I();
}catch(e){_DumpException(e)}
try{
H("sy740");
G("sy740");I();
}catch(e){_DumpException(e)}
try{
H("sy858");
G("sy858");I();
}catch(e){_DumpException(e)}
try{
H("sy859");var X3f=new W(ry,23),b4f=new W(ry,24),t6f=new W(ry,25),x6f=new W(ry,26),J7f=new W(ry,199),K7f=new W(ry,200);
G("sy859");I();
}catch(e){_DumpException(e)}
try{
H("sy879");var c1e=function(a){C.call(this,a)};t(c1e,C);var Q2=function(a){A.call(this,"UE",a)};t(Q2,A);Q2.prototype.top=null;Q2.prototype.right=null;Q2.prototype.bottom=null;Q2.prototype.left=null;var d1e=function(a,b,c,d,f,h){C.call(this,h);this.Qf=Math.max(0,Math.round(a));this.Xg=Math.max(0,Math.round(b));this.Sa=new Kb(Math.max(0,Math.min(this.Qf,Math.round(d.width))),Math.max(0,Math.min(this.Xg,Math.round(d.height))));this.Ba=new Hd(this);a=Math.max(0,Math.min(this.Qf,Math.round(c.left)));b=Math.max(a,Math.min(this.Qf,Math.round(c.right)));d=Math.max(0,Math.min(this.Xg,Math.round(c.top)));c=Math.max(d,Math.min(this.Xg,Math.round(c.bottom)));this.mL=new Md(d,b,c,a);this.$b=!0;this.Ag=f;
this.Ab=[];this.Qb=[]};t(d1e,C);var R2=function(a,b){a.Ab.push(b);a.ib(b);a.Ba.Ja(b,"UE",Lp(a.IVb,a))},e1e=function(a,b){a.Qb.push(b);a.ib(b)};q=d1e.prototype;q.wc=function(){return this.Qf};q.Ic=function(){return this.Xg};q.Pa=function(){var a=this.Ea(),b=a.Pa("div");this.Kb(b);He(this,function(c){c.Pa();a.appendChild(b,c.ta())})};
q.Na=function(){d1e.ya.Na.call(this);for(var a=this.Ba,b=this.Ab,c=0;c<b.length;c++)a.Ja(b[c].I7(),"end",Lp(this.H2b,this));a=new Q2;b=this.mL;a.top=b.top;a.right=b.right;a.bottom=b.bottom;a.left=b.left;this.IVb(a);this.$b=!0;this.H2b()};q.H2b=function(){for(var a=this.mL,b=this.Ab,c=0;c<b.length;c++)b[c].Dgb(a.top,a.right,a.bottom,a.left)};
q.IVb=function(a){var b=this.mL,c=null!==a.top?a.top:b.top,d=null!==a.right?a.right:b.right,f=null!==a.bottom?a.bottom:b.bottom,h=null!==a.left?a.left:b.left;if(this.Ag){var k,m,p,u=this.Sa.height/this.Sa.width;p=(this.Sa.width*(f-c)-this.Sa.height*(d-h))/(this.Sa.width+this.Sa.height);k=m=Math.round(p);p!=Math.round(p)&&--k;null!==a.bottom&&a.bottom-m>this.Xg?(p=f-m-this.Xg-1,m+=p,k-=Math.round(p/u)):null!==a.top&&0>a.top+m&&(p=c+m,m-=p,k+=Math.round(p/u));null!==a.right&&a.right+k>this.Qf?(p=d+
k-this.Qf-1,k-=p,m+=Math.round(p*u)):null!==a.left&&0>a.left-k&&(p=h-k,k+=p,m-=Math.round(p*u));null!==a.bottom?f-=m:null!==a.top&&(c+=m);null!==a.right?d+=k:null!==a.left&&(h-=k)}if(b.top!=c||b.right!=d||b.bottom!=f||b.left!=h)this.$b=!1,b.top=c,b.right=d,b.bottom=f,b.left=h;v(this.Ab,function(a){a.setPosition(c,d,f,h)});v(this.Qb,function(a){a.setPosition(c,d,f,h)});a.stopPropagation()};
var f1e=function(a){var b=a.mL;if(!a.Ab.length)return{top:0,right:1,bottom:1,left:0};var c=a.Qf;a=a.Xg;return{top:Math.max(0,b.top/a),right:Math.min(1,b.right/c),bottom:Math.min(1,b.bottom/a),left:Math.max(0,b.left/c)}};d1e.prototype.qb=function(){d1e.ya.qb.call(this);delete this.Ab;delete this.Qb;this.Ba.Ma();this.Ba=null};
var U2=function(a,b){C.call(this,b);this.Ab=a;this.Sa=new Gb;var c=xc&&!Gf("9")?100:10;this.mL=new Sf(c);this.getHandler().Ja(this.mL,"tick",this.z1a)};t(U2,c1e);q=U2.prototype;q.R$=ka;q.Na=function(){U2.ya.Na.call(this);var a=this.I7();a.uFb=!0;a.Ab=Lp(this.rPb,this);this.getHandler().Ja(a,"end",Lp(this.z1a,this));this.getHandler().Ja(this.Ab.ta(),["touchend","mouseup","click"],Lp(a.Qb,a))};q.rPb=function(a,b){this.Sa.x=a;this.Sa.y=b;this.mL.enabled||this.mL.start()}; q.z1a=function(){this.mL.enabled&&(this.mL.stop(),this.R$())};q.qb=function(){U2.ya.qb.call(this);var a=this.I7();a.Ab=ka;this.getHandler().nb(a,"end",Lp(this.z1a,this));this.getHandler().nb(this.Ab.ta(),["touchend","mouseup","click"],Lp(a.Qb,a))};
var V2=function(a,b,c,d){U2.call(this,a,d);this.Qb=b;this.$b=c};t(V2,U2);q=V2.prototype;q.Bf=null;q.Pa=function(){var a=this.Ea(),a=a.Pa("div","a-Ofa",a.Pa("div","a-B5"));a.style.cursor=this.Qb+"-resize";this.Kb(a)};q.Na=function(){var a=this.Ab.wc(),b=this.Ab.Ic(),c=this.$b?Math.max(a,b):0,a=new Nd(-15-c,-15-c,a+2*c,b+2*c);this.Bf=new bx(this.ta(),void 0,a);V2.ya.Na.call(this)};q.I7=function(){return this.Bf};
q.R$=function(){V2.ya.R$.call(this);this.Sa.x+=15;this.Sa.y+=15;var a=this.Qb,b=new Q2(this);b.top="nw"==a||"ne"==a?this.Sa.y:null;b.right="ne"==a||"se"==a?this.Sa.x:null;b.bottom="se"==a||"sw"==a?this.Sa.y:null;b.left="sw"==a||"nw"==a?this.Sa.x:null;this.dispatchEvent(b)};q.setPosition=function(a,b,c,d){if(this.Nb())switch(this.ta(),this.Qb){case "ne":g1e(this,b);h1e(this,a);break;case "se":g1e(this,b);h1e(this,c);break;case "sw":g1e(this,d);h1e(this,c);break;case "nw":g1e(this,d),h1e(this,a)}};
q.Dgb=function(a,b,c,d){var f=this.Ab.Sa,h=this.Ab.wc(),k=this.Ab.Ic(),m=this.Bf.$b,p=this.$b?Math.max(h,k):0;switch(this.Qb){case "ne":m.height=c-f.height+p;m.left=d-15+f.width;m.width=h-d-f.width+2*p;break;case "se":m.top=a-15+f.height;m.height=k-a-f.height+2*p;m.left=d-15+f.width;m.width=h-d-f.width+2*p;break;case "sw":m.top=a-15+f.height;m.height=k-a-f.height+2*p;m.width=b-f.width+p;break;case "nw":m.height=c-f.height+p,m.width=b-f.width+p}}; var g1e=function(a,b){a.ta().style.left=b-15+"px"},h1e=function(a,b){a.ta().style.top=b-15+"px"};V2.prototype.qb=function(){V2.ya.qb.call(this);this.Bf.Ma();this.Bf=null};
var j3=function(a,b,c){U2.call(this,a,c);this.Qb=b};t(j3,U2);q=j3.prototype;q.mAb=null;q.Bf=null;q.Pa=function(){var a=this.Ea(),a=a.Pa("div","a-Pfa",this.mAb=a.Pa("div","a-B5"));a.style.cursor=this.Qb+"-resize";this.Kb(a)};q.Na=function(){var a=new Nd(-6,-6,this.Ab.wc(),this.Ab.Ic());this.Bf=new bx(this.ta(),void 0,a);j3.ya.Na.call(this)};q.I7=function(){return this.Bf};
q.R$=function(){j3.ya.R$.call(this);var a=this.Qb,b=new Q2(this);b.top="n"==a?this.Sa.y+6:null;b.right="e"==a?this.Sa.x+6:null;b.bottom="s"==a?this.Sa.y+6:null;b.left="w"==a?this.Sa.x+6:null;this.dispatchEvent(b)};
q.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.Qb;this.ta();var h=this.mAb;"n"==f?(i1e(this,d),j1e(this,a),h.style.width=b-d+"px"):"e"==f?(i1e(this,b),j1e(this,a),h.style.height=c-a+"px"):"s"==f?(i1e(this,d),j1e(this,c),h.style.width=b-d+"px"):"w"==f&&(i1e(this,d),j1e(this,a),h.style.height=c-a+"px")}};
q.Dgb=function(a,b,c,d){var f=this.Bf.$b,h=this.Qb,k=this.Ab.Sa;"n"==h?f.height=c-k.height:"e"==h?(f.left=d-6+k.width,f.width=this.Ab.wc()-d-k.width):"s"==h?(f.top=a-6+k.height,f.height=this.Ab.Ic()-a-k.height):"w"==h&&(f.width=b-k.width)};var i1e=function(a,b){a.ta().style.left=b-6+"px"},j1e=function(a,b){a.ta().style.top=b-6+"px"};j3.prototype.qb=function(){j3.ya.qb.call(this);this.Bf.Ma();this.Bf=null};
var k1e=function(a,b){U2.call(this,a,b)};t(k1e,U2);q=k1e.prototype;q.Bf=null;q.eub=null;q.dub=null;q.Pa=function(){var a=this.Ea().Pa("div","a-xva");this.Kb(a)};q.Na=function(){this.Bf=new bx(this.ta(),void 0,new Nd(0,0,0,0));k1e.ya.Na.call(this)};q.I7=function(){return this.Bf};q.R$=function(){k1e.ya.R$.call(this);var a=new Q2(this);a.left=Math.max(0,this.Sa.x);a.top=Math.max(0,this.Sa.y);a.right=a.left+this.eub;a.bottom=a.top+this.dub;this.dispatchEvent(a)};
q.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.ta();f.style.top=a+"px";f.style.left=d+"px";f.style.width=b-d+"px";f.style.height=c-a+"px"}};q.Dgb=function(a,b,c,d){b=this.eub=b-d;a=this.dub=c-a;c=this.Bf.$b;c.height=this.Ab.Ic()-a;c.width=this.Ab.wc()-b};q.qb=function(){k1e.ya.qb.call(this);this.Bf.Ma();this.Bf=null};
var l1e=function(a,b,c){C.call(this,c);this.Qf=a;this.Xg=b;this.Sa=[]};t(l1e,c1e);l1e.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div");this.Kb(b);for(var c=0;4>c;c++){var d=a.Pa("div","a-Nsa");this.Sa.push(d);b.appendChild(d)}a=this.Sa;b=a[0];b.style.width=this.Qf+"px";b.style.top="0";b.style.left="0";b=a[2];b.style.left="0";b.style.width=this.Qf+"px";a[3].style.left="0"};
l1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.Sa;f[0].style.height=a+"px";var h=f[1];h.style.top=a+"px";h.style.left=b+"px";h.style.width=Math.max(this.Qf-b,0)+"px";h.style.height=c-a+"px";b=f[2];b.style.top=c+"px";b.style.height=Math.max(this.Xg-c,0)+"px";f=f[3];f.style.top=a+"px";f.style.width=d+"px";f.style.height=c-a+"px"}};

G("sy879");I();
}catch(e){_DumpException(e)}
try{
var P4=function(a,b,c){null!=c&&(a[b]=c)},qVd=function(a){function b(a){var k=g4(a);if(k){var m=!d||c==a.getParent()&&!f?a.rd().bsb:a.rd().asb;k.className=m;if(k=a.gGa())k.className=DSd(a)}He(a,b)}var c=a,d=c.Pya,f=c.Wya;b(a)},wXd=function(a,b){if(!Tyf(b.Sa)||!My.mL){var c=b.Yh();return c&&NLe(a,c)}},k3e=function(a,b){P4(b,"video_cid",a.Qb);P4(b,"duration",a.Sa);P4(b,"aspectRatio",a.mL)},vXd=function(a,b,c){c.uploadId=b.getId();c.uploadState=b.getState();P4(c,"contentId",b.Ab);a.Sa.rd().y5a&&(a=b.dG())&&
(c.uploadMetadata=a)},tXd=function(a,b){var c=a.Sa;return b?"kix"==c?"doc":"punch"==c?"pres":"ritz"==c?"spread":c:c},uXd=function(a,b){var c=a.rI();return b?"application/vnd.google-apps.kix"==c?"application/vnd.google-apps.document":"application/vnd.google-apps.punch"==c?"application/vnd.google-apps.presentation":"application/vnd.google-apps.ritz"==c?"application/vnd.google-apps.spreadsheet":"application/vnd.google-apps.freebird"==c?"application/vnd.google-apps.form":c:c};
rXd.prototype.Ab=g(647,function(a){var b={},c=My.Oa;b.id=a.Qe();b.serviceId=tXd(a,c);b.mimeType=uXd(a,c);b.name=a.getName();P4(b,"type",a.Ra());P4(b,"lastEditedUtc",a.Zta);if(c=a.getIcon())c=(new Af(window.location.href)).resolve(new Af(c)),b.iconUrl=c.toString();P4(b,"description",a.Jd());P4(b,"url",a.getUrl());"picasa"==a.Sa&&"video"==a.Ra()||P4(b,"embedUrl",a.MJ());P4(b,"downloadUrl",a.getAttribute("downloadUrl"));P4(b,"blobId",a.getAttribute("blobId"));P4(b,"thumbnails",wXd(this,a));P4(b,"driveSuccess",
a.getAttribute("ds"));P4(b,"driveError",a.getAttribute("de"));P4(b,"kansasVersionInfo",a.uh);P4(b,"crop",a.getAttribute("c"));P4(b,"email",a.getAttribute("email"));P4(b,"id",a.getAttribute("cid"));P4(b,"sizeBytes",a.mL);(c=a.getImageData())&&(b.rotation=c.Ab);(c=a.Ii)&&vXd(this,c,b);(c=a.getVideoData())&&k3e(c,b);(c=a.vt())&&(b.parentId=c.substring(c.lastIndexOf(".")+1));c=a.getAttribute("aa");null!=c&&(b.audience=pVd[c]);P4(b,"coverPhotoId",a.getAttribute("cpid"));P4(b,"latitude",a.getAttribute("lat"));
P4(b,"longitude",a.getAttribute("lng"));P4(b,"version",a.getAttribute("v"));(c=a.jg)&&(b.children=zg(c,this.Ab,this));P4(b,"numChildren",a.Tm());a.Kn()&&(b.isNew=!0);if((c=a.getAttribute("si"))&&c.length){var d=[];v(c,function(a){a=this.Sa.od.La(a);var b={};b.name=a.getAttribute("tdn");b.email=a.getAttribute("te");b.userId=a.getAttribute("tuid");d.push(b)},this);b.people=d}P4(b,"numTagged",a.getAttribute("nft"));P4(b,"numUntagged",a.getAttribute("nfu"));P4(b,"isLocalProfilePhoto",a.getAttribute("ilpp"));
P4(b,"markedForRemoval",a.getAttribute("mfr"));P4(b,"visibility",a.getAttribute("visibility"));P4(b,"mediaKey",a.getAttribute("mediaKey"));return b});m4.prototype.hp=g(638,function(a,b,c){this.By=b;this.jd=c});t3.prototype.cka=g(637,function(a,b,c,d){d()});t3.prototype.hJ=g(636,function(){return-1});n4.prototype.hJ=g(635,function(a){return fb(this.Ko,a)});C4.prototype.hJ=g(634,function(a){return this.Ig.hJ(a)});Ww.prototype.$b=g(631,function(){return!!this.Sa});Rw.prototype.Oa=g(486,function(){return!1});
var rVd=function(a){0!=a.Wya&&(a.Wya=!1,a.Nb()&&qVd(a))},sVd=function(a){0!=a.Pya&&(a.Pya=!1,a.Nb()&&qVd(a))},sXd=function(a,b,c){c(zg(b,a.Ab,a))},NEa=function(a,b,c,d){c=a.Ag;var f=c.get(b);if(f)for(c.remove(b),b=oa(f)?f:[f],c=0;c<b.length;c++)a.dispatchEvent(new LEa("error",a,b[c],void 0,void 0,0,d))},W2d={1:"a-n-gq-D-r9oPif"},tVd=function(a){var b=[a.Sa];Pb(a.mL,function(a,d){void 0!=a&&b.push(d+"="+a)});return b.join("/")},vVd=function(a){var b=new li(a.Sa);a=a.getQuery();Ea(Ga(a))||b.fc("/",
Ja(a));return b.toString()},wVd=function(a,b,c){if(c=a=a.Sa[c])c=(b=a.Sa(b))?a.Ab.replace("{$VIDEO_ID}",b):void 0;return c||void 0},yVd=function(){var a=Kw.ia();a.Ba=new Hd(a);Jd(a.Ba,window,vw,function(){this.eWa++});or(a.Ba,window,"unload",a.lva,!1,a)},eib=function(a){return"root"==a.$b||!!a.getAttribute("isr")},M9f=function(){return Y('<div><iframe onload="this.poolLocked=false"></iframe></div>')},Gcf=function(a,b){A.call(this,"prefUpdate",b);this.key=a};t(Gcf,A);
var MMc=function(a,b,c,d){this.QB=a;this.By=b;this.Fkd=c||Gx;this.d2b=d||0},ZSd=0,ZEa=function(a){kd.call(this);this.YY=a||0;this.Ab={};this.Sa=[];this.Ag=!1;this.Oa="0";this.$b="";this.jg=[];this.uh=this.Qb=0};t(ZEa,kd);q=ZEa.prototype;q.vC=function(a){return!!this.Ab[a]};q.Ae=function(){return sb(this.Sa)};q.La=function(a){return this.vC(a)?this.Ab[a]:null};q.tf=function(){return this.Sa.length};q.gVa=function(){this.uh=Wa()};
q.QK=function(a){var b=[],c=[],d=[],f=this.Ab,h=this.Sa,k=[],m={};v(a,function(a){var b=a.getId(),c=m[b];void 0!==c?k[c]=a:(m[b]=k.length,k.push(a))});a=k;if(this.Hi())v(a,function(a){var c=a.getId(),k=f[c];f[c]=a;k?(h[fb(h,k)]=a,d.push(c)):(h.push(a),b.push(c))});else{var p=f;this.Ab=f={};this.Sa=h=[];v(a,function(a){var c=a.getId();f[c]=a;h.push(a);p[c]?(delete p[c],d.push(c)):b.push(c)});Pb(p,function(a,b){c.push(b)});this.Ag=!0;this.Qb=Wa()}Iaa(this.Sa,this.mL);Wa();bFa(this,b,c,d)};
q.dL=function(a){var b=[],c=this.Ab,d=this.Sa;v(a,function(a){var h=c[a];h&&(delete c[a],mb(d,h),b.push(a))});Wa();bFa(this,[],b,[])};q.Hi=function(){return this.Ag&&(!this.YY||this.uh-this.Qb<this.YY)};q.fVa=function(a){if(a||!this.YY)this.Ag=!1};q.yW=function(){return void 0!=this.Oa};q.getCursor=function(){return this.Oa};q.Sva=function(a){this.Oa=a};q.IHb=function(){return!!this.$b};q.Xh=function(){return this.$b};var v2e=function(a,b){a.$b=b||""};ZEa.prototype.addListener=function(a){this.jg.push(a)};
ZEa.prototype.removeListener=function(a){mb(this.jg,a)};var bFa=function(a,b,c,d){v(a.jg,function(a){a(b,c,d)})};ZEa.prototype.mL=function(a,b){return a.Ab-b.Ab};ZEa.prototype.Vb=function(a){a?this.mL=a:delete this.mL;Iaa(this.Sa,this.mL)};var QVd=function(a){this.Sa=a.hl;this.Ab=!!a["native"];this.mL=a.oAuthToken;this.Ag=a.pimm;this.$b=a.relayUrl;this.YY=a.rpcService;this.jg=a.rpcToken;this.uh=a.rpcUrl;this.Vb=Nx(this.Sa);this.Oa=(new Boolean(a.thirdParty)).valueOf();this.Qb=a.uriPrefix||"picker/"};
QVd.prototype.Bo=function(){return this.Vb};var CVd=function(a,b,c,d,f){this.Sa={};this.Sa.ob=a;this.Sa.ub=b;this.Sa.mp=c||0;this.Sa.pt=d||0;this.Sa.ut=f};CVd.prototype.le=function(){return Xb(this.Sa)};var BVd=function(a,b){this.tZ=this.Ab=a;this.o5=b||"other"};BVd.prototype.Sa=0;
var z2e=function(a){switch(a){case "atec":case "blogger":case "caa":case "cpaa":case "contactPhoto":case "copyphoto":case "ctpa":case "cropphoto":case "geopix":case "ipfd":case "sptm":case "mtp":case "album":case "photocuration":case "photosharing":case "polls":case "profileBanner":case "profile":case "sqprofile":return"opp";case "bulkTag":return"opt";case "drivepreopen":case "changeDrivePermissions":return"opd";case "circle":return"oppe";case "ctpf":case "dow":return"opmd"}},zVd=function(){kd.call(this);
this.Sa=[]};t(zVd,kd);var AVd=function(a,b){Uf(function(){for(var c=null,d=a.Sa.length-1;0<=d;d--){var f=a.Sa[d];if(f&&!f.OUb)if(f.parentNode.removeChild(f),xc)a.Sa[d]=null,a.Sa.splice(d,1);else{f.OUb=!0;c=f;break}}c||(c=mn(M9f),d=c.getElementsByTagName("IFRAME")[0],d.style.visibility="hidden",d.style.width=d.style.height="0px",d.style.border="0px",d.style.position="absolute",d.OUb=!0,a.Sa[a.Sa.length]=d,c.removeChild(d),c=d);c.src=b;document.body.appendChild(c)},0)};
zVd.prototype.clear=function(){for(var a=0;a<this.Sa.length;a++)this.Sa[a].onload=null,this.Sa[a]=null;this.Sa.length=0};zVd.prototype.qb=function(){zVd.ya.qb.call(this);this.clear();this.Sa=null};var AXd=function(a,b){Ld.call(this);this.Sa=a;this.Ab=b};t(AXd,Ld);AXd.prototype.get=function(a){return this.Ab[a]};AXd.prototype.set=function(a,b,c,d){this.Ab[a]=b;this.Sa.od.Vd(new QSd(a,b),Lp(function(){c&&c()},this),Lp(function(){d&&d()},this));this.dispatchEvent(new Gcf(a,this))};
AXd.prototype.jc=function(a){a=this.Ab[a];if("true"==a)return!0;if("false"==a)return!1};AXd.prototype.mL=function(a){this.set("dl",String(a),void 0,void 0)};var LMc=function(a,b,c){this.By=a;this.jd=b;this.Sa=c},OEa=function(a){Rw.call(this);this.Ab=a;a=new Ze;a.set("Content-control","no-cache");a.set("X-Same-Domain","explorer");a=new EEa(0,a,0,4,2E4);this.Ba.Ja(a,["ready","success","error"],this.mL);this.Sa=a};t(OEa,Rw);OEa.prototype.Oa=Gx;
OEa.prototype.Ko=function(a){Kw.ia().U3b++;var b=a.Dga();Hf(b,"hostId",this.Ab.Ag);this.Sa.send(a.getId()+"",b.toString(),"POST",a.getContent(),a.N_a(),a.xv())};OEa.prototype.mL=function(a){var b=Za(a.id),c=a.AAa;switch(a.type){case "ready":MEa(this,b);break;case "success":t:{var d;try{var f=c.Lq();0==f.indexOf("&&&START&&&")&&(f=f.substring(11));d=Qf(f)}catch(h){NEa(this,b);break t}ua(d)?Sw(this,b,d):NEa(this,b)}break;case "error":Kw.ia().W3b++,NEa(this,b,c.getStatus(),c)}};
OEa.prototype.qb=function(){this.Sa&&(this.Sa.Sa.Fc()?this.Ba.yj(this.Sa,["success","error"],function(){Uf(this.qb,0,this)}):(OEa.ya.qb.call(this),this.Sa.Ma(),this.Sa=null))};var C2e=function(a){kd.call(this);this.Qb=a;this.Sa=[];this.Ab=new TC(this.mL,15E3,this)};t(C2e,kd);C2e.prototype.add=function(a){this.Sa.push(a);this.Ab.Il()};var O2e=function(a){a.Ab.stop();a.mL()};C2e.prototype.mL=function(){this.Sa.length&&(this.Qb.Vd(new YEa(this.Sa),ka,ka),hb(this.Sa))};
var ax=function(a){kd.call(this);this.$b=a;this.Sa=new Ze;this.mL=100;this.Qb=this.Ab=0;this.Go=null};t(ax,kd);q=ax.prototype;q.Vd=function(a,b,c,d,f){b=new MMc(b,c,d,f);ba(this.Sa,a)?ib(this.Sa.get(a),b):this.Sa.set(a,[b]);this.rPa()};q.rPa=function(){var a=this.Ab;this.Ab=Wa();if(null===this.Go){var b;b=this.mL;var a=4E3<this.Ab-a,c=Wa()-5E3;a||this.Qb<c?(this.Qb=Wa(),b=100):b=50*b;this.mL=b;this.Go=Uf(this.FTb,this.mL,this)}};
q.FTb=function(){this.Go=null;this.$b.Vd(new u3("picasa",this.Sa.ii(),{includeProtoPhoto:"true",includeFaceData:"true"}),Lp(this.xDb,this),Lp(this.rPa,this))};q.xDb=function(a){this.isDisposed()||(v(a.Ae(),function(a){for(var c=this.Sa.get(a.Qe(),[]),d=0;d<c.length;){var f=c[d];if(!f.QB.isDisposed())if(f.Fkd.call(f.QB,a)){f.By.call(f.QB,a);nb(c,d);continue}else if(60>f.d2b)f.d2b++;else{nb(c,d);continue}d++}c.length||this.Sa.remove(a.Qe())},this),this.Sa.Fc()&&this.rPa())};
q.qb=function(){ax.ya.qb.call(this);null===this.Go||Vf(this.Go)};var cFa=function(a){kd.call(this);this.mL=a;this.Ab={};this.Sa={}};t(cFa,kd);cFa.prototype.La=function(a){return this.Ab[a]};
var zRa=function(a,b){var c=a.Ab;v(b,function(a){var b;b=c[a.getId()];b=null!=b&&a.getId()==b.getId()&&null!=a.Zta&&null!=b.Zta?a.Zta>=b.Zta?!0:!1:void 0;0!=b&&(c[a.getId()]?c[a.getId()].zKa(a):c[a.getId()]=a)});Pb(a.Sa,function(a){if(a.Hi()){var c=ec(b,function(b){return a.vC(b.getId())});c.length&&(c=zg(c,function(a){return this.La(a.getId())},this),a.QK(c))}},a)},eTd=function(a,b,c){a.Ab[c.getId()]=c;Pb(a.Sa,function(a){if(a.Hi()&&a.vC(b)){for(var f=0;f<a.Sa.length;f++)a.Sa[f].getId()==b&&(a.Sa[f]=
c);Wb(a.Ab,b);a.Ab[c.getId()]=c;bFa(a,[],[],[b])}})};cFa.prototype.Ae=function(){return Rb(this.Ab)};cFa.prototype.Rd=function(a){a=a.aD();var b=this.Sa[a];b||(b=this.Sa[a]=new ZEa(this.mL.mL?18E4:0));return b};
var dFa=function(a,b){Pb(a.Sa,function(a){a.fVa(b)})},V2e={"application/vnd.google-apps.document":["application/vnd.google-apps.kix"],"application/vnd.google-apps.form":["application/vnd.google-apps.freebird"],"application/vnd.google-apps.presentation":["application/vnd.google-apps.punch"],"application/vnd.google-apps.spreadsheet":["application/vnd.google-apps.ritz"]},PVd=function(a){this.Ab=a.at;this.Qb=a.det;this.q5=a.dzt;this.mL=a.dzat;this.jg=a.mechanisms;this.YY=a.metadata;this.Sa=a.selectLabel;
this.Oa=a.serviceId;this.Ag=a.uet;this.uh=a.url};PVd.prototype.$b=function(){return this.jg||["XHR","HTML_FORM"]};PVd.prototype.getMetadata=function(){return this.YY};PVd.prototype.getUrl=function(){return this.uh};
var heg=function(a){if(a instanceof Qw)return a;var b={};b.error=a.getError();b.errorMessage=a.Mrb();b.errorCode=a.Mrb();var b=new Qw(b),c=Mcg(a.Ae());b.mL=c;a=a.qhc();b.Ab=a;return b},SVd=function(a){Ld.call(this);this.Sa=a;this.jg=[];this.Ab=new Yv;this.Ag={};this.YY=[];this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(a.Ab,"reset",Lp(this.Gsd,this))};t(SVd,Ld);SVd.prototype.Qb=0;SVd.prototype.$b=0;SVd.prototype.mL=0;
SVd.prototype.Oa=function(a,b){var c=this.Ag[a];c?c.addCallback(function(a){a.Lr(b)},this):c=this.Ag[a]=TVd(this,a,b);return c};var TVd=function(a,b,c){var d=a.Ag[b]=new ag,f=b3e(a.Sa.rd(),b);f?(f.Lr(c),d.By(f)):(Ag(E.ia(),"opu",Lp(function(){eg(wg(xg(E.ia(),"opu")).Sa(b,this.Sa,c),d)},a)),d.addCallback(function(a){x(this,a);this.YY.push(a)},a));return d};q=SVd.prototype;q.Gsd=function(){this.isDisposed()||(v(this.YY,function(a){a.reset()},this),this.dE())};q.Aia=function(){return this.hW()!=this.Qb};
q.hW=function(){return this.Ab.Fc()};q.BGa=function(){return this.mL?this.$b/this.mL:0};q.Ywd=function(a){this.Ab.get(a).mL=Wa()};q.Xwd=function(a,b){var c=this.Ab.get(a);c.tZ=b||c.Ab;this.mL+=c.tZ-c.Ab;var d=Wa();c.Qb=d-(c.mL||d)};q.Xgb=function(a,b,c){b=b||1E6;this.Ab.set(a,new BVd(b,c));this.mL+=b;this.dispatchEvent("ui")};q.c3b=function(a){this.Ab.get(a).Oa=Wa()};
q.$wd=function(a,b){b&&this.Qb--;var c=sdb(this.Ab,a);this.$b-=c.Sa;this.mL-=c.tZ;this.Ab.remove(a);(c=this.hW())&&this.dispatchEvent("ui");this.Qb==c&&(WVd(this),VVd(this))};q.Wwd=function(a){this.Qb++;if(a=this.Ab.get(a)){this.$b=this.$b-a.Sa+a.tZ;a.Sa=a.tZ;a.tZ<a.Ab&&(a.$b=2048);var b=Wa();a.Ag=b-(a.Oa||b)}this.dispatchEvent("ui");this.Qb==this.hW()&&(WVd(this),VVd(this))};q.Zwd=function(a,b,c){a=this.Ab.get(a);this.$b=this.$b-a.Sa+b;this.mL=this.mL-a.tZ+c;a.Sa=b;a.tZ=c;this.dispatchEvent("ui")};
q.Qcc=function(a){this.jg.push(a)};q.dE=function(){v(this.jg,function(a){a.dE(!0)});VVd(this)};var VVd=function(a){a.Qb=0;a.$b=0;a.mL=0;a.Ab.clear();a.dispatchEvent("ui")},WVd=function(a){var b=[],c,d=a.Sa.od;a.Ab.forEach(function(a,h){var k=d.La(h);k&&"photo"==k.Ra()&&(c=a.o5,b.push(new CVd(a.Ab,a.tZ,a.$b,a.Qb,a.Ag)))},a);b.length&&Uf(function(){d.Vd(new QQd(c,b),ka,ka)},0,a)},DVd=function(a,b){A.call(this,"si");this.selected=a;this.ur=b};t(DVd,A);
var KVd=function(a,b){var c=new ag,d;null!=a[0]&&(d=z2e(a[0]));if(null!=d&&null!=a[1]){var f=E.ia();Ag(f,d,function(){c.By(f.Ab[d].Sa.K9(a[0],a[1],b))})}else c.jd("Postprocessor not found: "+a[0]);return c},EVd=function(a){kd.call(this);this.cM=!1;this.Ab=[];this.mL=a;this.Sa=Gic();uUd(this.Sa?"gapi.iframes:gapi.iframes.style.common":"iframes",Lp(this.Qb,this))};t(EVd,kd);
EVd.prototype.Qb=function(){var a={getHealthc:function(){return"ok"}};yVd();a.getVarc=function(){var a=Kw.ia();return{xc:a.U3b,xec:a.W3b,click:a.eWa}};var b=this.mL;a.sendCommand=Lp(b.Sa,b);if(this.Sa){var b=My,c,d;b.$b&&(d=Jf(b.$b))&&d.Au()&&(c=d.Au()+"://"+d.Tf(),c=ja("gapi.iframes.makeWhiteListIframesFilter")([c]));ja("gapi.iframes.getContext")().ready({},a,void 0,c)}else window.iframes.ready({},a);this.cM=!0;v(this.Ab,function(a){a()})};
EVd.prototype.call=function(a){if(this.cM){var b=a.action;"picked"==b||"cancel"==b?this.Sa?ja("gapi.iframes.getContext")().closeSelf(a):window.iframes.close(a):(b=this.Sa?Lp(this.$b,this):window.iframer.message,ta(b)&&b(a))}else this.Ab.push(Lp(this.call,this,a))};EVd.prototype.$b=function(a){var b=ja("gapi.iframes.getContext")(),c=ja("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER");b.addOnOpenerHandler(function(b){b.send("message",a,void 0,c)},c)};EVd.prototype.qb=function(){EVd.ya.qb.call(this);delete this.Ab};
var FVd=function(){kd.call(this);var a=My;this.$b=a.YY||"picker";this.Sa=a.$b;this.Qb=a.jg||"";this.Ab=new zVd};t(FVd,kd);FVd.prototype.mL=0;FVd.prototype.call=function(a){this.Qb&&(a.rpctoken=this.Qb);if(this.Sa){var b=[a];b.unshift("");b.unshift(null);b.unshift(this.$b);b.unshift("parent");a=4095-this.Sa.length;a=parseInt(a/3,10);var b=GVd(b),c=parseInt(b.length/a,10);0<b.length%a&&(c+=1);for(var d=0;d<c;d++)AVd(this.Ab,this.Sa+"#"+GVd(["parent",this.mL,c,d,b.substr(d*a,a),!1]));this.mL++}};
var GVd=function(a){for(var b=[],c=0;c<a.length;c++){var d=Rf(a[c]);b.push(encodeURIComponent(d))}return b.join("&")};FVd.prototype.qb=function(){FVd.ya.qb.call(this);this.Ab.Ma();this.Ab=null};var D4=function(a,b){kd.call(this);this.mL=a;this.cM=!1;this.Sa=[];HVd(this,b)};t(D4,kd);D4.prototype.Ab="";
var HVd=function(a,b){var c=My,d=c.uh;d||(d=!c.Oa&&b?b.replace(/[^a-z0-9]/gi,""):"onepick",d=kaa("//www-%s-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=%s",d,d));c=wc("script");c.src=d;c.type="text/javascript";document.body.appendChild(c);var f=window.setInterval(Lp(function(){try{window.gadgets&&window.gadgets.rpc&&window.gadgets.config.get("rpc")&&(window.clearInterval(f),Akd(this))}catch(a){}},a),100)},Akd=function(a){var b=My;a.Ab=b.YY||"picker";window.gadgets.rpc.setRelayUrl("..",
b.$b);(b=b.jg)&&window.gadgets.rpc.setAuthToken("..",b);b=a.mL;window.gadgets.rpc.register("picker",Lp(b.Sa,b));a.cM=!0;v(a.Sa,function(a){a()})},IVd=function(a,b){a.cM?b():a.Sa.push(b)};D4.prototype.call=function(a){IVd(this,Lp(function(){window.gadgets.rpc.call("..",this.Ab,null,a)},this))};D4.prototype.qb=function(){D4.ya.qb.call(this);delete this.Sa};var JVd=function(a,b){A.call(this,a);this.data=b};t(JVd,A);var LVd=function(a){A.call(this,"ni");this.Sa=a};t(LVd,A);
var MVd=function(a){A.call(this,"qi");this.visible=a};t(MVd,A);var NVd=function(a){A.call(this,"pi");this.OGa=a};t(NVd,A);var OVd=function(a,b,c){A.call(this,a,c);this.Xd=b};t(OVd,A);
var CXd="opl opr opdr oppe oppu opp opt opu opv opm opmd".split(" "),XXd={CANCEL:"cancel",tAd:"cancel-upload",h4a:"refresh",zMd:"select-contacts",AMd:"select-fonts",BMd:"select-people",HMd:"set-album-sort-order",IMd:"set-drive-options",SHc:"set-max-items",THc:"set-max-size-bytes",HVb:"set-title",JMd:"set-upload-album-id",KMd:"set-view",KVb:"set-view-options",lQd:"visibility"},ygf=function(a){if(null==a)return null;var b=a.Tf();return"drive.google.com"==b||"docs.google.com"==b?(b=a.getPath(),"/open"==
b&&a.Pg("id")?a.Pg("id"):(a=b.match(/\/file\/d\/([\w|\d]+)\/(edit|preview|view)/))?a[1]:null):null},Tmg=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{Close}male{Close}other{Close}}"),{VIEWER_GENDER:a.Aa});return P(b+a)},Umg=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{Back}male{Back}other{Back}}"),{VIEWER_GENDER:a.Aa});return P(b+a)},yXd=function(a,b){this.kcc=b.apn;this.jcc=b.apnl;this.Sa=b.buildLabel;this.Kkc=b.dpm;this.Ab=b.email;this.rsc=b.gdn;this.nPc=b.dip;this.kod=
b.rig;this.xhd=b.pdt;this.yhd=b.pt;this.sod=b.rupioUrl;this.Qb=zXd(b.sis);this.Bc=b.token;this.d3b=b.uriParams;this.M_b=new AXd(a,b.pref||{});this.txd=b.upp;this.mL=b.userId;this.Xxd=zXd(b.wcs);this.Yxd=zXd(b.wcvs);this.e$a=!!b.cac},zXd=function(a){return(My.Qb+a).replace("picker/picker","picker")};yXd.prototype.l_a=function(){return this.Sa};yXd.prototype.yc=function(){return this.Ab};yXd.prototype.Gf=function(){return this.Bc};yXd.prototype.getUserId=function(){return this.mL};
var E4=function(a,b,c,d,f,h,k,m,p,u,z,F,M,X){kd.call(this);this.Sa=a;this.Ag=z;this.Mh=d;this.Ab=b;this.$b=c;this.Qb=f;this.od=h;this.jg=k;this.uh=m;this.mL=p;this.YY=u;this.Fa=M;this.Vb=null;this.Vk=X};t(E4,kd);q=E4.prototype;q.rd=function(){return this.Ag};q.F2a=function(a){return this.jg[a]};q.We=function(){this.Oa||(this.Oa=new SVd(this));return this.Oa};q.ef=function(){return V(this.Fa)};q.ka=function(){return this.Fa};
q.qb=function(){E4.ya.qb.call(this);y(this.Sa);delete this.Sa;y(this.Ag);delete this.Ag;y(this.Mh);delete this.Mh;y(this.Ab);delete this.Ab;y(this.$b);delete this.$b;y(this.Qb);delete this.Qb;y(this.YY);delete this.YY;y(this.od);delete this.od;y(this.jg);delete this.jg;y(this.Oa);delete this.Oa;delete this.mL};var jWd=function(){kd.call(this)};t(jWd,kd);jWd.prototype.Ab="";jWd.prototype.Sa=function(a){this.Ab=a};jWd.prototype.getValue=function(){return this.Ab};var RVd=function(a){this.Ab=a};
RVd.prototype.addCallback=function(a){this.Sa||(this.Sa=new ag,this.Ab.Vd(new SQd,Lp(function(a){this.Sa.By(a.Ob())},this),Hx));this.Sa.addCallback(a)};var fFa=function(a){kd.call(this);this.Vk=a;this.Ab=new cFa(a);x(this,this.Ab);this.Ba=new Hd(this);x(this,this.Ba);this.mL=new Ze;this.$b=[];this.YY=new OEa(a);this.Qb(this.YY);this.Ag=new ax(this);x(this,this.Ag);this.Oa=new C2e(this);x(this,this.Oa)};t(fFa,kd);fFa.prototype.Qb=function(a){this.$b.push(a);this.Ba.Ja(a,["success","error"],this.uh)};
fFa.prototype.Vd=function(a,b,c,d){if(!this.isDisposed())if(a instanceof Yw&&!this.Vb)Ag(E.ia(),"oppe",Lp(function(){this.isDisposed()||(wg(xg(E.ia(),"oppe")).d$(this.Sa),this.Vb=!0,this.Vd(a,b,c,d))},this));else{var f=new LMc(b,c,!!d),h=a.aD(),k=this.mL.get(h);k?k.push(f):(this.mL.set(h,[f]),KMc(this,a))}};fFa.prototype.jg=function(a,b,c,d){this.Ag.Vd(a,b,c,d)};
var KMc=function(a,b){for(var c=a.$b,d=c.length-1;0<=d;d--)if(c[d].Oa(b)){a.Vk.mL&&b instanceof $w&&(b.Vb="drive-select");c[d].Yy(b);return}throw Error("ze");};
fFa.prototype.uh=function(a){if(!this.isDisposed()){var b=a.type,c=a.Gp,d=a.response&&heg(a.response),f=c.aD(),h=this.mL.get(f);if(h){"success"==b&&d.Ab&&d.Ae?(b=Cd(h,function(a){return a.Sa}),(a=d.Ae())&&b&&(0==a.length&&jug(this,c),this.Xp(a),b=d.yW&&d.yW()?d.getCursor():void 0,this.Rd(c).Sva(b),b=d.$b&&d.$b()?d.Xh():void 0,v2e(this.Rd(c),b),this.Rd(c).QK(zg(a,function(a){return this.La(a.getId())},this)))):"success"==b&&d&&!d.Ab?c instanceof Zw?this.xk(50):c instanceof K3?this.xk(60):c instanceof
u3&&this.xk(57):"error"==b&&vug(this,a);for(c=0;c<h.length;c++)d&&!d.getError()&&d.Ab?h[c].By(d):h[c].jd(d);this.isDisposed()||this.mL.remove(f)}}};
var vug=function(a,b){var c=b.Gp;if(!(c instanceof YEa)){var d;t:{if(b instanceof LEa&&(d=b.Sa)&&d.D_())break t;d=null}var f;if(f=d)t:{if(8==d.D_()){if(c instanceof Zw){a.xk(55);f=!0;break t}if(c instanceof K3){a.xk(62);f=!0;break t}if(c instanceof u3){a.xk(59);f=!0;break t}}f=!1}f||(c instanceof Zw?a.xk(52):c instanceof K3?a.xk(61):c instanceof u3&&a.xk(58))}},jug=function(a,b){b instanceof Zw?a.xk(54):b instanceof u3&&a.xk(56)};q=fFa.prototype;
q.La=function(a,b){b&&(a=b+".0."+a.substring(a.lastIndexOf(".")+1));return this.Ab.La(a)};q.Ae=function(){return this.Ab.Ae()};q.Xp=function(a){zRa(this.Ab,a)};q.$Ua=function(a,b){eTd(this.Ab,a,b)};q.Rd=function(a){return this.Ab.Rd(a)};q.EHb=function(){var a=this.Ab;return a.Sa["_newnodes_"+ZSd++]=new ZEa(a.mL.mL?18E4:0)};q.xk=function(a){this.Oa.add(a)};q.reset=function(a){dFa(this.Ab,a);this.mL.clear()};
q.qb=function(){fFa.ya.qb.call(this);v(this.$b,function(a){a.Ma()});delete this.$b;this.mL.clear();delete this.mL};
var eWd=function(a){kd.call(this);a&&(My=new QVd(a));this.KBa=a.actions||{};this.Pma=a.apt;this.Fa=a.appContext||null;this.Ko=a.authuser;this.Uma=a.chrome;this.vb=a.cm;this.DAa=!!a.pcpfe;this.jg=a.cropMode;this.Zma=a.de;this.ana=a.defaultView;this.zF=!a.driveGridViewSwitcherHidden;this.xb=a.element;this.Tx=a.eventId;this.iu=a.maxSizeBytes||null;this.xna=a.msbpi||null;this.qSa=!!a.enableSizeEstimation;this.ona=!!a.edbe;this.nA=a.maxItems||null;this.Sx=a.maxVD||null;this.o9=a.minItems||0;this.iTa=new df(a.excludeIds?
a.excludeIds.split(","):[]);new df(a.e?a.e.split(","):[]);this.Vk=a.showAttach;this.Km=(!!a.endv||!!a.newDriveView)&&!a.odv;this.h2b=!!a.up;this.hTa=!!a.noAutoHide;this.Vb=!!a.dav;this.qna=a.fdtm||1E4;this.Ab=a.groupId;this.dw=!!a.horizNav||this.Km;this.Ag=a.hostId;this.fBa=a.learnMore;this.tna=a.loadCirclesUrl;this.wna=a.loadingStatusElement;var b=a.maxpw,c=a.maxph;this.Db=b&&c?new Kb(b,c):null;b=a.minpw;c=a.minph;this.Oa=b&&c?new Kb(b,c):null;this.Gna=a.niv;this.sA=!!a.dnif;this.cSa=a.dnife;this.Be=
!!a.swue;b=a.selectableMimeTypes;qa(b)&&(this.Ye=h3e(b));this.sFa=a.serviceIds||[];this.mBa=a.mineOnly;this.$b=!!a.multiselectEnabled;b=a.nav;if(qa(b))b=Qf(b);else if(!oa(b))throw Error("vh");this.uh=b;this.KSa=(this.mL=!!a.minimal)&&!!a.minew;this.Pha=this.mL||!!a.navHidden;this.lTa=a.origin;this.iaa=a.outerElement;this.Op=!1;this.Mna=a.peopleSearchPath||"/picker/complete/search";this.dTa=Qf(a.puv);b=a.pp;qa(b)&&(b=Qf(b));b&&b.length?(oa(b[0])||(b=[b]),v(b,function(a){a[1]||(a[1]={})})):b=[];this.lp=
b;this.YY=a.profilePhoto;this.oXa=a.protocol;this.FJa=a.selectButtonLabel;this.ima=!!a.shapeSuggestions;this.Kra=!!a.showroomNav;this.Xb=!!a.simpleUploadEnabled;this.Sa=a.squid;this.vLb=a.titleBarIconId;this.Dma=oa(a.thumbs)?a.thumbs:a.thumbs&&Qf(a.thumbs);this.oh=a.title;this.A2=a.subTitle;this.mna=a.dfc;this.Nma=a.actionPaneText;var d=a.uploadConfigs;qa(d)&&(d=Qf(d),Pb(d,function(a,b){d[b]=new PVd(a)}));this.Maa=d||{};b=a.uploadButton;qa(b)&&Nf(b);this.Qb=a.uploadToAlbumId;this.yja=a.uploaders?
a.uploaders:void 0;this.y5a=!!a.srum;this.Mma=!!a.urlInputVisible;this.YUa=a.vg||"other";this.yH=!a.driveSortHidden};t(eWd,kd);var h3e=function(a){a=new df(Qf(a));for(var b in V2e)a.contains(b)&&a.gz(V2e[b]);return a};q=eWd.prototype;q.ka=function(){return this.Fa};q.zp=function(){return this.vb};q.ta=function(){return this.xb};q.nk=function(){return this.Ab};q.getOrigin=function(){return this.lTa};q.fG=function(){return this.iaa||(this.iaa=pc("a-wb-Z",this.xb))};q.Cra=function(){return this.oXa};
q.Hwa=function(){return this.FJa||(this.YY?"Set as profile photo":"Select")};q.ik=function(){return this.Sa};q.getTitle=function(){return this.oh};var b3e=function(a,b){return a.yja&&a.yja[b]};eWd.prototype.kN=function(a){return this.KBa[a]};eWd.prototype.lN=function(){return!!this.Ag&&("og"==this.Ag||ya(this.Ag,"es-"))};eWd.prototype.gea=function(a){return!this.Ye||this.Ye.contains(a)};eWd.prototype.mN=function(a){return Cd(this.lp,function(b){return b[0]==a})};
var i3e=function(a){return!(!a.uh.length||1!=a.uh.length||"people"!=a.uh[0][0])};eWd.prototype.qb=function(){eWd.ya.qb.call(this);delete this.xb;delete this.wna};var XVd=function(){Ld.call(this);this.Ab=new Yv;this.mL={}};t(XVd,Ld);q=XVd.prototype;q.getHandler=function(){this.Ba||(this.Ba=new Hd(this));return this.Ba};q.GHc=function(a){a=a.data.maxSizeBytes;if(this.Vjb()<=a)this.Sa.rd().iu=a;else throw Error("e");};
q.FHc=function(a){a=a.data.maxItems;if(this.fjb()<=a)this.Sa.rd().nA=a;else throw Error("g");};q.Fca=function(a,b,c){b!=this.Sf(a)&&(b?this.Ab.set(a,"cb"):this.Ab.remove(a),c&&this.dispatchEvent(new DVd(b,[a])))};q.OEb=function(){return!this.Ab.isEmpty()};q.Ua=function(a){var b=this.Qb,c=this.Ab.ii();return b&&!a?b(c):c};
q.WT=function(a,b){var c=[];Ve(a,function(a){b!=this.Sf(a)&&c.push(a)},this);Ve(c,function(a){b?this.Ab.set(a,"cb"):this.Ab.remove(a)},this);0<c.length&&this.dispatchEvent(new DVd(b,c))};q.lJ=function(a){this.WT(this.Ua(a),!1)};q.HP=function(a,b){var c=this.Ab;JG(c,a)?(this.Ab.remove(a),this.dispatchEvent(new DVd(!1,[a]))):("cl"==b&&(c=c.ii(),this.Ab.clear(),c.length&&this.dispatchEvent(new DVd(!1,c))),this.Ab.set(a,void 0),this.dispatchEvent(new DVd(!0,[a])));return!0};q.fjb=function(){return this.Ua().length};
q.Vjb=function(){var a=this.Ua(),b=0,c=this.Sa.od;Ve(a,function(a){(a=c.La(a).mL)&&(b+=a)},this);return b};q.Sf=function(a){return JG(this.Ab,a)};q.qb=function(){XVd.ya.qb.call(this);this.Ab.clear();delete this.Ab;delete this.Qb};q.Eyb=function(a){this.mL.isAttachment=a};q.uYb=function(){return this.mL.isAttachment};
var YVd=function(a,b,c){Ld.call(this);ud(b,"cancel",this.oD,!0,this);if(!c)if(c=a.Cra(),"injected"==c)c=function(a){var b=window._pickerCallback;if(b)b(a);else throw Error("wh");};else{switch(c){case "gadgets":b=new D4(b,a.Ag);break;case "iframes":b=new EVd(b);break;default:b=new FVd}c=Lp(b.call,b)}this.nn=c;this.Ab=[];this.mL=0;this.Qb=My.Ab?null:new Ah(jc(a.ta()));x(this,this.Qb)};t(YVd,Ld);var Vmg=function(a,b){var c={};c.action=b;a.isDisposed()||a.nn(c)};q=YVd.prototype;
q.oD=function(){this.Sa.od.xk(6);aWd(this);Vmg(this,"cancel")};q.Lvd=function(){Vmg(this,"loaded")};q.gY=function(){this.Sa.rd().kN("viewContentRendered")&&Vmg(this,"viewContentRendered")};q.b2b=function(a){var b=this.Sa;if((a=b.Sa.Ua(a))&&a.length)this.Sl(zg(a,function(a){return b.od.La(a)},this));else if(a=b.$b.getValue())this.Sta(a);else throw a=(a=b.Mh.FH)?vVd(a):"unknown",Error("xh`"+a);};
q.Sl=function(a,b){ia(b)&&"picked"!=b&&"cancel"!=b||this.Sa.Mh.dya(!0);var c=Lp(function(a,b){this.Sa.uh.addCallback(Lp(function(){var c=new rXd(this.Sa);sXd(c,a,Lp(function(k){ia(b)&&"picked"!=b||j3e(this,a,k);var m=cWd(this,a);m.length?sXd(c,m,Lp(function(a){this.n6(k,b,a)},this)):this.n6(k,b)},this))},this))},this);b&&"picked"!=b?c(a,b):bWd(this,a,c)};q.Sta=function(a){this.n6([{url:a}])};
q.n6=function(a,b,c){b=b||"picked";var d=ILg(this),f={};f.action=b;f.viewToken=d.le();f.docs=a;c&&(f.parents=c);a=this.Sa.Sa.mL;Ub(a)||(f.extraUserInputs=a);My.Oa||(f.view=vVd(d));this.isDisposed()||this.nn(f);"picked"==b&&aWd(this)};
var bWd=function(a,b,c){m2e(a);if(a.mL==a.Ab.length)c(b);else{var d=Lp(function(a){this.mL++;this.mL==this.Ab.length?c(a):bWd(this,a,c)},a),f=Lp(function(a){alert(a||"Sorry! An unexpected error occurred while processing your selection.  Please try again later.");this.oD()},a),h=a.Ab[a.mL];h.addCallback(function(a){a.hp(b,d,f)},a);bg(h,function(){f()},a)}},m2e=function(a){var b;b=a.Sa.rd().lp;for(var c=a.Ab.length;c<b.length;c++)oa(b[c])&&a.Ab.push(KVd(b[c],a.Sa))},j3e=function(a,b,c){a=a.Sa;for(var d=
a.Mh.Hd(),f=[],h=0;h<b.length&&c.length;h++){var k=Xb(c[h]);k.docIndex=d.hJ(b[h]);f.push(k)}c=a.Mh.FH;for(b=0;null!=c.Ab;)c=c.Ab,b++;c=c.clone();BN(c,"viewTokenDepth",b);a.od.Vd(new HQd(f,c),ka,ka)};YVd.prototype.$b=function(){var a=this.Sa.Mh.Hd();a&&a.vB(!0)};
var cWd=function(a,b){var c=[],d={};v(b,function(a){(a=a.vt())&&!d[a]&&(d[a]=!0,(a=this.Sa.od.La(a))&&c.push(a))},a);return c},ILg=function(a){for(a=a.Sa.Mh.FH;null!=a.Ab;)a=a.Ab;return a},aWd=function(a){if(!a.isDisposed()){var b=a.Sa;O2e(b.od.Oa);Uf(function(){this.isDisposed()||(b.Mh.dya(!1),this.dispatchEvent("reset"),b.Sa.lJ(!0),b.od.reset(),this.Qb&&yd(this.Qb,"activity",Lp(this.$b,this),!1,this),v(this.Ab,function(a){a.addCallback(function(a){a.reset()})}),this.mL=0)},500,a)}},dWd=function(a,
b){Ld.call(this);this.Ab=a;this.Oa=b;this.mL=[];yd(b,"ri",this.$b,!1,this)};t(dWd,Ld);dWd.prototype.Qb=!1;dWd.prototype.$b=function(){this.Qb=!0;v(this.mL,function(a){this.Sa(a)},this);hb(this.mL)};
dWd.prototype.Sa=function(a){var b=a&&a.action;if(Tb(XXd,b))if(!this.Qb&&a.wfv)this.mL.push(a);else{switch(b){case "set-upload-album-id":var c=a.albumId;if(null===c||qa(c))this.Ab.Qb=c;break;case "set-drive-options":var c=this.Ab,d=["drivepreopen",a];c.lp=c.lp||[];c.lp.push(d);break;case "visibility":c=a.visible,ra(c)&&(this.Ab.Op=c)&&this.Ab.mL&&(c=this.Oa.Hd())&&c.vB(!0)}(!My.mL||"set-view"!=b&&"set-view-options"!=b)&&this.dispatchEvent(new JVd(b,a))}};var iWd=function(){Ld.call(this)};t(iWd,Ld);
q=iWd.prototype;q.iUb=null;q.FH=null;q.On=function(a){this.dispatchEvent(new OVd("mi",a))};q.jUb=function(a,b){this.iUb=a;this.FH=b;this.dispatchEvent(new LVd(b))};q.Hd=function(){return this.iUb};q.Cca=function(a){this.dispatchEvent(new MVd(a))};q.dya=function(a){this.dispatchEvent(new NVd(a))};q.qb=function(){iWd.ya.qb.call(this);this.FH=null};
var kWd=function(a,b){if(b.mL){if(!FQd(a.Sa))throw Error("dd");return"opmd"}var c=a.getOption("mode");switch(a.Sa){case "events":case "et":case "image-search":case "photo-albums":case "photo-caption":case "profile":case "quota":case "youtube-banner-preview":return"opp";case "photos":var d=a.getOption("parent"),f=a.getOption("type");return"videos-uploaded"==f||"videos-camerasync"==f?"opv":a.getOption("upload")||"edit"==c&&(d||a.getOption("ids"))?"oppu":"opp";case "photo-curation":case "photo-upload":case "webcam":return"oppu";
case "photo-tagging":return"opt";case "crop":return"opr";case "upload":return OQd(a)?"oppu":"opu";case "video-search":case "videos":case "video-albums":case "youtube":return"opv";case "maps":case "maps-pro":case "my-maps":return"opm";case "calendars":case "create-event":return"opl";case "circle":case "contacts":case "groups":case "people":return"oppe";case "recently-picked":if("photos"==c)return"opp";if("videos"==c)return"opv"}return FQd(a.Sa)?"docs-videos"==a.Sa&&"list"!=c?"opv":b.Km?"opdr":"opp":
"opc"},YXd={JSb:"driveGridViewSwitcherHidden",MSb:"driveSortHidden",NSb:"showAttach",Myc:"enableSizeEstimation",dvd:"edbe",DDd:"esUsersOnly",fEd:"faceRecoPromo",DEd:"formsEnabled",HFd:"horizNav",lId:"mineOnly",mUb:"minimal",y_a:"minew",rId:"multiselectEnabled",CId:"navHidden",z_a:"newDriveView",JId:"newHorizNav",KId:"newPhotoGridView",LId:"npuv",UPb:"odv",wUb:"pcpfe",$Kd:"profilePhoto",CMd:"swue",LMd:"shadeDialog",NMd:"shapeSuggestions",VSc:"showroomNav",ZMd:"simpleUploadEnabled",JPd:"urlInputVisible", yQd:"white"};H("sy884");
var DXd=function(a,b){if(window.google&&window.google.maps)a();else{Da("picker.api.ExternalCodeLoader.onMapsApiLoaded",a,void 0);var c=wc("script");c.src="//maps.googleapis.com/maps/api/js?libraries=places,geometry&sensor=true&language="+My.Sa+"&callback=picker.api.ExternalCodeLoader.onMapsApiLoaded";c.type="text/javascript";document.body.appendChild(c);Y8a(".pac-container{z-index:20000 !important; background-color: #fff; border: 1px solid #bbb;} .pac-item{padding:6px 8px;}",b)}};
var qXd=function(a){kd.call(this);this.$b=a;this.Ab=new Ze;this.mL=[]};t(qXd,kd);qXd.prototype.Oa=function(a){this.Ab.set(a.getId(),a);this.jg=Wa();this.Sa||(this.Sa=new TC(this.Ag,1E3,this),this.Sa.Il())};qXd.prototype.addCallback=function(a){this.Sa?this.mL.push(a):a()};qXd.prototype.Ag=function(){this.$b.Vd(new u3("picasa",this.Ab.ii(),{}),Lp(function(a){o2e(this,a);this.Qb()},this),Lp(this.Qb,this))};
qXd.prototype.Qb=function(){this.Ab.Fc()&&Wa()<=this.jg+1E4?this.Sa.Il():(delete this.Sa,v(this.mL,function(a){a()}),hb(this.mL))};var o2e=function(a,b){v(b.Ae(),function(a){var b=a.Yh();if(b&&0<b.length){var f=$a(b);0<f.wc()&&0<f.Ic()&&(a=a.getId(),this.Ab.get(a).ZE(b),this.Ab.remove(a))}},a)};qXd.prototype.qb=function(){this.Sa&&(this.Sa.Ma(),delete this.Sa)};
var oXb=function(a,b){this.Ab=new Af(a);this.Sa=b?b:"callback";this.wda=5E3},sXb=0;oXb.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(sXb++).toString(36)+Wa().toString(36);ha._callbacks_||(ha._callbacks_={});var f=this.Ab.clone();if(a)for(var h in a)a.hasOwnProperty&&!a.hasOwnProperty(h)||Yca(f,h,a[h]);b&&(ha._callbacks_[d]=rXb(d,b),Yca(f,this.Sa,"_callbacks_."+d));b=jXb(f.toString(),{timeout:this.wda,Vgc:!0});bg(b,pXb(d,a,c));return{Fs:d,df:b}};
oXb.prototype.cancel=function(a){a&&(a.df&&a.df.cancel(),a.Fs&&qXb(a.Fs,!1))};var pXb=function(a,b,c){return function(){qXb(a,!1);c&&c(b)}},rXb=function(a,b){return function(c){qXb(a,!0);b.apply(void 0,arguments)}},qXb=function(a,b){ha._callbacks_[a]&&(b?delete ha._callbacks_[a]:ha._callbacks_[a]=ka)};
var mWd=function(){Rw.call(this);this.Ab=new Ze;this.Sa=new Ze;this.mL=0==Ba((new Af(document.location.href)).Au(),"http");this.initialize()};t(mWd,Rw);mWd.prototype.Oa=function(a){return 7==a.Sq()};var nWd=function(a){var b={},c=a.Iwa();Ve(c.ii(),function(a){b[a]=c.get(a)});return b};
mWd.prototype.Ko=function(a){for(var b=Math.ceil(6.25),b=Math.min(b,4),c=a.Oo(),d=0;d<b;d++){var f=a.clone();f.setStart(c+8*d);var h=f.Dga();this.mL&&h.Zy(Na(f.getId(),".","ajax.googleapis.com"));Kw.ia().U3b++;h=new oXb(h);h.wda=1E4;h.send(nWd(f),Lp(this.$b,this,a,f),Lp(this.Qb,this,a,f))}a=a.getId();MEa(this,a);this.Sa.remove(a);this.Ab.set(a,b)};var oWd=function(a,b){var c=a.Ab,d=c.get(b)-1;c.set(b,d);return d};
mWd.prototype.$b=function(a,b,c){var d=a.getId(),f=Math.floor(b.Oo()/8),h=c.responseData,h=(h=h?h.cursor:void 0)?h.currentPageIndex:void 0;if(f==h||void 0==h)f=this.Sa,h=f.get(d),null==h&&(h=new mza,f.set(d,h)),Hv(h,b.Oo(),c);0==oWd(this,d)&&(Sw(this,d,pWd(this,a)),qWd(this,d))};mWd.prototype.Qb=function(a){Kw.ia().W3b++;var b=a.getId();0==oWd(this,b)&&(this.Sa.get(b)?Sw(this,b,pWd(this,a)):NEa(this,b),qWd(this,b))};
var pWd=function(a,b){var c=a.Sa.get(b.getId());if(!c)return{};var d=c.remove(),f=d.responseData||{},h=f.results||[],k=f.cursor,k=k&&k.estimatedResultCount;if(8<k)for(;c.Fc();){var m=c.remove().responseData||{},h=h.concat(m.results||[]);f.results=h}50<h.length&&(f.results=h=h.slice(0,50));c=k?Math.min(k,64):64;f.more=(50==h.length||32==h.length)&&b.Oo()+h.length<c;return d},qWd=function(a,b){var c=a.Sa.get(b);c&&c.clear();a.Sa.remove(b);a.Ab.remove(b)};
var F4=function(a,b){var c=this.vab();y3.call(this,a,c+"-Cc",c+"-Bb",c+"-B",this.J_a(),b);c=this.getHandler();c.Ja(a.Qb,"set-view",this.zF);c.Ja(a.Mh,"qi",this.kN)};t(F4,y3);
var sWd=function(a,b,c){b=b||a.getContext().rd().uh;if(oa(b))for(var d=b.length,f=0;f<d;f++){var h=b[f];if(oa(h))a.TWa(h,c);else if(ua(h)&&oa(h.root)){var k=a.TWa(h.root,c,h.options,!0);sWd(a,h.items,k)}}},tWd=function(a){var b=a[0];return b?wUd(b,a[1],a[2]):null},uWd=function(a,b){if(b){var c=kWd(b,a.getContext().rd());"opc"!=c&&eVd(E.ia(),c)}};F4.prototype.lm=function(a,b){return qa(b[1])?b[1]:a&&a.getName()||""};F4.prototype.zF=function(a){a=tWd(a.data.view);(a=cug(this,a))&&this.YY(a)};
var cug=function(a,b,c){c=c||a.getContext().rd().uh;if(oa(c))for(var d=c.length,f=0;f<d;f++){var h=c[f];if(oa(h)){if(h=tWd(h),h.equals(b))return h}else if(ua(h)){var k=h.root;if((k=k?tWd(k):null)&&b.equals(k))return k;if(h=cug(a,b,h.items))return h}}return null};F4.prototype.YY=function(a){a&&(this.getContext().Mh.On(a),this.Yha(a),cTd(this,!0))};var wWd=function(a,b){for(var c=b||a.getContext().rd().uh,d=0;d<c.length;d++){var f=c[d],h=null;oa(f)?h=tWd(f):ua(f)&&(h=tWd(f.root)||wWd(a,f.items));if(h)return h}return null}; F4.prototype.kN=function(a){cTd(this,a.visible)};
var l3e=function(a){return"@"+r(a.prefix)+"-keyframes "+r(a.XOa)+" {0% {background-position: 0 0;} 100% {background-position: -20px 0;}} .a-qc-la .la-ba-na, .a-qc-Za .la-ba-na, .a-od-v-e-la .la-ba-na, .a-Za-Bb .la-ba-na, .Lb-v-z .la-ba-na {-webkit-animation-name: "+r(a.XOa)+"; -moz-animation-name: "+r(a.XOa)+";}"},Kkd=function(){return'<div id="docs-aria-speakable" class="a-ynRLnc" aria-live="assertive" role="region" aria-atomic="true"></div>'};
var Mxg=function(a,b){s3.call(this,a,b);this.mL=this.Ab=null};t(Mxg,s3);Mxg.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-Nb-ab");this.Kb(b);this.mL=a.Pa("div",this.getContext().rd().mL?"a-ch-ab-m":"a-WNq8W-ab-xc");this.Ab=Ejc(this.mL,a);this.Ab.render(b);this.Ab.zF=!0;this.Ab.Sn("Close")};Mxg.prototype.Na=function(){Mxg.ya.Na.call(this);this.getHandler().Ja(this.Ab,"action",this.Qb)};Mxg.prototype.Qb=function(){this.getContext().Ab.oD()};
var xWd=function(a,b){F4.call(this,a,b);this.Qb=[];this.xl=new Fp(void 0,void 0,void 0,b)};t(xWd,F4);q=xWd.prototype;q.vab=function(){return"a-La-jb"};q.J_a=function(){return"top"};
q.Pa=function(){xWd.ya.Pa.call(this);var a=this.Ea();this.mL=a.Pa("div",{"class":"a-La-jb-xc-ba-nb",id:Ce(Be.ia())});var b=this.Vb=J$f(this);sWd(this,void 0,b);this.Oa=a.createTextNode("More");this.xl.Pa();this.xl.setContent(a.Pa("div",void 0,this.Oa,a.Pa("div","a-n-ia-En-Rf-Ev")));b.ib(this.xl,!0);this.xl.setVisible(!1);ey(this.xl.ta(),"Choose from other navigation tabs.");this.setSize(50);this.Ab.appendChild(this.mL);b=this.getContext().rd();!b.getTitle()&&b.Km&&(this.Ag=new Mxg(this.getContext(),
a),this.ib(this.Ag,!1),this.Ag.Pa(),a.uv(this.Ab,this.Ag.ta()))};q.Na=function(){xWd.ya.Na.call(this);sid(this);K$f(this,this.Vb);tid(this);this.getHandler().Ja(this.xl.Ne(),"action",this.Vk).Ja(this.Ea().getWindow(),"resize",this.Km);v(this.Qb,function(a){var b=a.ta();this.getHandler().Ja(a,"action",this.Ko).Ja(b,"focus",Lp(this.TTb,this,!0)).Ja(b,"blur",Lp(this.TTb,this,!1))},this)};q.TTb=function(a,b){Pn(b.target,"a-La-jb-eb",a)};
q.TWa=function(a,b,c,d){c=L$f(this,a,b);return d?(d=J$f(this),c.Xo(d),a=L$f(this,a,d,!0),Qn(a.ta(),"a-La-jb-Ng-xc"),a.Xo(b),d):c};
var L$f=function(a,b,c,d){var f=tWd(b);uWd(a,f);var h;h=a.Ea();a=a.lm(f,b);"-"==a?(h=new TL("",void 0,h),h.Ta(!1),h.$b("a-La-jb-Kj"),h.Pa(),E3a(h.ta())):(b=My.Bo()?"a-n-Xja-pk-mg":"a-n-Xja-pk-U3b",b=h.Pa("div","a-La-jb-Xja-m "+b),b=h.Pa("div","a-La-jb-Kfa",d?b:a),h=new TL(b,void 0,h),h.Pa(),d&&a&&(d="Return from "+a,Fw(h.ta(),d)));h.Xo(f);c&&(c.ib(h,!0),1==Ge(c)&&h.qj(!0));return h};
xWd.prototype.Yha=function(a){a&&(v(this.Qb,function(b){He(b,function(c){if(c.dc()&&c.isEnabled()){var d=c.kc();d instanceof w3&&a.equals(d)&&b.fD(c)}})},this),this.Oa&&this.xl.ta()&&(Rc(this.Oa,"More"),Pn(this.xl.ta(),"a-jb-La-Md-L",!1),He(this.xl.Ne(),function(b){var c=b.getValue().kc();c&&c instanceof w3&&a.equals(c)&&(b.qj(!0),Rc(this.Oa,b.Cg()),Pn(this.xl.ta(),"a-jb-La-Md-L",!0),(b=wid(this))&&b.fD(null))},this)))};xWd.prototype.Ko=function(a){vid(this,a.target)};
xWd.prototype.Vk=function(a){vid(this,a.target.getValue())};var vid=function(a,b){var c=b.kc();if(c instanceof VL){var d=c;K$f(a,d);d=d.Oh(d==a.Vb?0:1);d instanceof TL&&(c=d.kc())}c instanceof w3&&(a.YY(c),a.Yha(c));tid(a)};xWd.prototype.Km=function(){this.$b[this.mL.id]=zy(this.mL).width;tid(this);this.Yha(this.getContext().Mh.FH)};xWd.prototype.qRc=function(a){var b=a?"":"0px";ne(this.Ab,b);me(this.Ab,b);Vd(this.Ab,a?"":"-9500px","")};
var J$f=function(a){var b=a.Ea(),c=new VL(void 0,void 0,b);c.aVa=!1;c.Pa();b.appendChild(a.mL,c.ta());TQd(a,c);a.Qb.push(c);return c},K$f=function(a,b){v(a.Qb,function(a){a.setVisible(a==b)},a);var c=a.xl.getParent();c!=b&&(c.removeChild(a.xl,!0),b.ib(a.xl,!0))},tid=function(a){var b=wid(a);if(b){He(b,function(a){a.setVisible(!0)});a.xl.setVisible(!1);var c=a.xl.Ne();c.hb(!0);var d=a.$b[a.mL.id];if(d){for(var f=0,h=0,k=Ge(b)-1;0<=k;--k){var m=b.Oh(k);if(m.dc())if(gvd(b,a.$b,f,d)){var p=m.ta();m.setVisible(!1);
p=new yp(Uc(p),m);p.Bm(8,!0);c.Zj(p,0,!0);h=Math.max(h,a.$b[m.getId()]);m=Ae(a.xl.ta());isNaN(m.left)||isNaN(m.right)||(f=h+m.left+m.right)}else break}0<Ge(c)?(a.xl.setVisible(!0),Qn(c.ta(),"a-jb-La-Md-r")):a.xl.setVisible(!1)}}},gvd=function(a,b,c,d){var f=0;He(a,function(a){a.dc()&&(f+=b[a.getId()])});f+=c;return f>=d},wid=function(a){for(var b=0;b<a.Qb.length;++b){var c=a.Qb[b];if(c.dc())return c}return null},sid=function(a){a.$b={};v(a.Qb,function(a){He(a,function(a){var b=a.ta(),f=zy(b).width, b=Ae(b);isNaN(b.left)||isNaN(b.right)||(f=f+b.left+b.right);this.$b[a.getId()]=f},this)},a);a.$b[a.mL.id]=zy(a.mL).width};
var O$f=function(a){a=a&&a.getOption("parent");var b="newFolderId";a&&(b+=a);return b},P$f=function(a){return!!a&&a.getOption("parent")==O$f(a.Ab)};var Wmg=function(a,b,c){return'<div id="'+a.ur.T2+'" class="a-O-Z">'+Mt({id:a.ur.BACK,style:4,content:jA('<div class="'+(a.Bo?"a-WNq8W-FO4lXc-ia-jf":"a-WNq8W-Xja-ia-jf")+' a-Nb-m" ></div>'),title:Oz(""+Umg(c)),attributes:sE('aria-label="'+R(Umg(c))+'"')})+'<div id="'+a.ur.QFd+'" class="a-Nb-m a-WNq8W-gc-Cd-jf"></div><div id="'+a.ur.EBa+'" role="heading" class="a-Nb-E"></div><input id="'+a.ur.Pkc+'" class="a-O-Lb-pk-N" /><div class="a-O-Lb-pk-dy">'+Mt({id:a.ur.ajc,style:2,content:jA('<div class="a-n-Zc-Tb"></div>'),
title:Oz(""+Q$f(c)),attributes:sE('aria-label="'+R(Q$f(c))+'"'),width:1})+'</div></div><div class="a-Nb-ab">'+Mt({id:a.ur.Cib,style:4,content:jA('<div class="a-WNq8W-ab-xc"></div>'),title:Oz(""+Tmg(c)),attributes:sE('aria-label="'+R(Tmg(c))+'"')})+"</div>"},eng=function(a,b,c){return'<div id="'+a.ur.ERROR+'" class="a-ch-QX-wa"></div><div class="a-ch-QX-EBS5u-c">'+Mt({id:a.ur.OK,style:2,LQb:!1})+'</div><div class="a-ch-QX-Lb-pk-c">'+Mt({id:a.ur.n1,style:0,width:1,content:jA('<div class="a-WNq8W-pk-Lb"></div>'),
title:Oz(""+Xmg(c)),attributes:sE('aria-label="'+R(Xmg(c))+'"')})+"</div>"},Xmg=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{New Folder}male{New Folder}other{New Folder}}"),{VIEWER_GENDER:a.Aa});return P(b+a)},Q$f=function(a){var b="";a=wA(new Z("{VIEWER_GENDER,select,female{Create folder}male{Create folder}other{Create folder}}"),{VIEWER_GENDER:a.Aa});return P(b+a)},Yhg=function(a,b,c){b="";a=wA(new Z("{VIEWER_GENDER,select,female{Creating {FOLDER_NAME} failed.}male{Creating {FOLDER_NAME} failed.}other{Creating {FOLDER_NAME} failed.}}"), {VIEWER_GENDER:c.Aa,FOLDER_NAME:""+a.YZc});return P(b+a)};
var GMg=function(a,b){var c=b.getOption("parent")||"root";return a.od.La(c,"docs")},HMg=function(a,b){var c=GMg(a,b);return!!c&&c.getAttribute("ro")},IMg=function(a,b){var c=ILg(a.Ab).getOption("parent"),d=[];b.getOption("ops")&&(d=b.getOption("ops").split(","));c&&(d=d.concat(c));c=zg(d,function(a){return HLg("docs","0",a)});d=b.getOption("parent")||"root";return eb(c,HLg("docs","0",d))};
var hng=function(a,b){y3.call(this,a,"a-ch-QX-Cc","a-ch-QX-Bb","a-ch-QX-B","bottom",b)};t(hng,y3);q=hng.prototype;q.Pa=function(){hng.ya.Pa.call(this);var a={};a.ur=Dkg(this,ing);a=Uo(this.getContext().ef(),eng,a);this.Ab.appendChild(a);this.setSize(29)};
q.Na=function(){hng.ya.Na.call(this);this.Qb=new Ot(null);this.Qb.yb(nh(this,"__mp-fo"));x(this,this.Qb);this.$b=new Ot(null);this.$b.yb(nh(this,"__mp-fnf"));x(this,this.$b);this.mL=new kX(null,this.Ea());this.mL.hd("warning");Xhg(this.mL,!0);this.mL.render(nh(this,"__mp-fe"));x(this,this.mL);this.bIb();cTd(this,!1);this.getHandler().Ja(this.getContext().Mh,"li",this.SMa).Ja(this.getContext().Mh,"ri",this.bIb).Ja(this.Qb,"action",this.rCa).Ja(this.$b,"action",this.uca)};
q.bIb=function(){var a=this.getContext().Mh.FH;this.Qb.setContent(lng(this.getContext(),a));var b=P$f(a);this.$b.Ta(!b);var b=this.getContext(),c=b.Mh.FH;P$f(c)?JMg(this,!1,""):c&&IMg(b,c)?JMg(this,!1,"Item is already in this folder"):c&&HMg(b,c)?JMg(this,!1,"This folder is read-only"):JMg(this,!0,"");a&&!a.equals(this.Oa)&&this.mL.setVisible(!1)};q.SMa=function(a){cTd(this,!a.Xd||!a.Xd.getOption("cv"))};
q.rCa=function(){var a=this.getContext(),b=a.Mh.FH,c;if(c=b)t:{if(!HMg(a,b)&&!IMg(a,b)&&(c=GMg(a,b))&&(b.getOption("ers")||!eib(c))){b=a.Sa;b.Sf(c.getId())||b.HP(c.getId(),"cl");a.Ab.b2b(!0);c=!0;break t}c=!1}c||this.getContext().Ab.oD()};q.uca=function(){var a=this.getContext().Mh,b=a.FH;if(b){var c=b.clone();c.Ab=b;BN(c,"parent",O$f(b));a.On(c)}};var Zhg=function(a,b,c){a.Oa=c;a.mL.setContent(b);a.mL.setVisible(!0);Uf(function(){this.mL.dc()&&this.mL.setVisible(!1)},1E4,a)};
hng.prototype.focus=function(){this.Qb.focus();return!0};var lng=function(a,b){if(b){var c=GMg(a,b);if(c&&(!eib(c)||b.getOption("ers")))return a.rd().Hwa()}return"Done"},JMg=function(a,b,c){a.Qb.Ta(b);Fw(a.Qb.ta(),c)},ing={ERROR:"__mp-fe",n1:"__mp-fnf",OK:"__mp-fo"};
var nng=function(a,b){y3.call(this,a,"a-ch-O-Cc","a-ch-O-Bb","a-ch-O-B","top",b);this.Vb=!1;this.YY=new ro;x(this,this.YY);if(!a.od.La("root","docs")){var c=new Vw({serviceId:"docs",id:"root",type:"document",mimeType:"application/vnd.google-apps.folder",name:"My Drive"});a.od.$Ua(c.getId(),c)}};t(nng,y3);nng.prototype.Pa=function(){nng.ya.Pa.call(this);var a={};a.ur=Dkg(this,ong);a.Bo=My.Bo();a=Uo(this.getContext().ef(),Wmg,a);this.Ab.appendChild(a);this.setSize(48)};
nng.prototype.Na=function(){nng.ya.Na.call(this);this.Km=nh(this,"__mp-ti");this.Ag=nh(this,"__mp-tt");this.Oa=R$f(this,"__mp-tc");x(this,this.Oa);this.$b=R$f(this,"__mp-tb");x(this,this.$b);this.mL=nh(this,"__mp-tnfi");so(this.YY,this.mL);this.Qb=R$f(this,"__mp-tnfc");x(this,this.Qb);this.Qb.TE(My.Bo()?2:1);this.Zc();this.Yg=new rw(this.mL);this.getHandler().Ja(this.Oa,"action",this.c6c).Ja(this.getContext().Mh,"ri",this.Zc).Ja(this.$b,"action",this.AY).Ja(this.Qb,"action",this.WQb).Ja(this.YY,"key",
this.dfb).Ja(this.Yg,"input",this.t6a)};nng.prototype.Ib=function(){nng.ya.Ib.call(this);this.Yg.Ma();this.Yg=null};var R$f=function(a,b){var c=new Ot(null);c.yb(nh(a,b));return c};
nng.prototype.Zc=function(){var a=this.getContext().Mh.FH;if(a)if(a.getOption("cv")){KMg(this);var b=this.getContext().rd().getTitle();b&&(Rc(this.Ag,b),On(this.Ag,!0));this.Oa.setVisible(!0)}else{var c=a.getOption("parent")||"root",a=P$f(a);(b=this.getContext().od.La(c,"docs"))||a||this.getContext().od.Vd(new u3("docs",[c],{}),Lp(this.Zc,this),ka,!0);c=b&&eib(b);b=b?b.getName():"";this.$b.setVisible(!c);On(this.Km,c);Rc(this.Ag,b);On(this.mL,a);this.Qb.setVisible(a);On(this.Ag,!a);this.Oa.setVisible(!a);
a&&(a=ze(nh(this,"__mp-ttc")),c=xe(this.$b.ta()),b=xe(this.Qb.ta()),a=a.width-c.width-b.width,(c=Ae(this.$b.ta()))&&(a-=c.left+c.right),(c=de(this.mL))&&(a-=c.left+c.right),(c=ye(this.mL))&&(a-=c.left+c.right),(c=Ae(this.mL))&&(a-=c.left+c.right),me(this.mL,0<a?a:0),fxf(this,!1))}else KMg(this),this.Oa.setVisible(!0)};var KMg=function(a){On(a.Ag,!1);a.$b.setVisible(!1);On(a.Km,!1);On(a.mL,!1);a.Qb.setVisible(!1);a.Oa.setVisible(!1)};q=nng.prototype;
q.AY=function(){var a=this.getContext().Mh.FH;if(a){var b=this.getContext(),c=a.getOption("parent")||"root",d=b.od.La(c,"docs");d&&!eib(d)&&(c=a.clone(),(d=d.vt())?(c.Ab=a,BN(c,"parent",d)):l4f(c,"parent"),o4(c,null),b.Mh.On(c))}};q.c6c=function(){this.getContext().Ab.oD()};q.dfb=function(a){13==a.keyCode&&this.WQb()};q.t6a=function(){this.Qb.Ta(!!Ia(this.mL.value))};
q.WQb=function(){var a=this.mL.value;if(Ia(a)){fxf(this,!0);var b=this.getContext().Mh.FH,c=b&&b.Ab,c=c&&c.getOption("parent"),a={title:a};c&&(a.parent=c);this.getContext().od.Vd(new K3("createFolder","drive",null,a),Lp(this.moc,this,b),Lp(this.k1b,this,b))}};
q.moc=function(a,b){if(b.Ae().length){var c=this.getContext(),d=c.od,f=c.Mh,c=c.rd(),h=f.FH;d.Rd((a&&a.Ab).or()).fVa(!0);var k=b.Ae()[0];k.zJ(!0);d.Xp([k]);var m=a.clone();BN(m,"parent",k.getId());d=d.Rd(m.or());d.QK([]);d.Sva(void 0);h&&a&&h.equals(a)&&this.Vb&&(fxf(this,!1),d=c.Vb,c.Vb=!0,f.On(m),c.Vb=d)}else this.k1b(0,b)};q.k1b=function(a,b){var c=this.mL.value;fxf(this,!1);if(this.Vk){var c=b.jg||JC(this.getContext().ef(),Yhg,{YZc:c}),d=this.getContext().Mh.FH;Zhg(this.Vk,c,d&&d.Ab)}this.AY()};
var fxf=function(a,b){a.Vb=b;a.Qb.Ta(!b);if(b)a.mL.setAttribute("disabled","true");else{a.mL.value="New Folder";a.mL.removeAttribute("disabled");try{a.mL.focus(),a.mL.setSelectionRange(0,10)}catch(c){}}},ong={BACK:"__mp-tb",Cib:"__mp-tc",QFd:"__mp-ti",Pkc:"__mp-tnfi",ajc:"__mp-tnfc",EBa:"__mp-tt",T2:"__mp-ttc"};
var G4=function(a,b,c,d){a=Hua(a);e4.call(this,a,c,d);this.$b=this.Ag=!1;this.Sa=b};t(G4,h4);var ZFe=function(a,b){a.Sa?a.dispatchEvent("dj"):Fe(a)&&a.b5&&"expand"!=b.target.getAttribute("type")&&(zWd(a)&&a.WA()?a.collapse():(a.expand(),ZFe(a.Oh(0),b)))},zWd=function(a){return Cd($lg(a),function(a){return a instanceof G4&&(a.Ag||zWd(a))})};q=G4.prototype;q.Na=function(){G4.ya.Na.call(this);this.getHandler().Ja(f4(this),"mouseover",this.Did);this.getHandler().Ja(f4(this),"mouseout",this.Eid)};
q.tGa=function(){if(Fe(this)&&this.WA()){for(var a=this.Oh(0);a&&!a.Pga();)a=a.gea;return a?a:this}for(var a=this,b=this;a!=this.jx();){do if((b=b.gea)&&b.Pga())return b;while(b);b=a=a.getParent()}return null};q.xGa=function(){var a=this;do if(a=a.mL){var b=a.Fga();if(b&&b.Pga())return b}while(a);a=this.getParent();b=this.jx();return b.S1||a!=b?a:null};
q.u4=function(){var a=G4.ya.u4.call(this);this.getParent()==this.jx()&&(a+=" a-ne-Cc");this.Pga()?(this.Ag&&(a+=" a-ne-X"),this.$b&&(a+=" a-ne-u")):a+=" a-ne-uS-Dq";return a};q.Pga=function(){return!!this.Sa&&qa(this.IK())||Fe(this)};q.Gf=function(){return this.Sa};q.yda=function(a){this.Pga()&&(G4.ya.yda.call(this,a),ZFe(this,a))};q.$7a=function(a){!this.Sa&&Fe(this)&&this.b5||G4.ya.$7a.call(this,a)};q.Did=function(){this.$b=!0;ySd(this)};q.Eid=function(){this.$b=!1;ySd(this)}; q.select=function(){G4.ya.select.call(this);S3(f4(this))};q.setActive=function(a){this.Ag=a;ySd(this)};
var AWd=function(){G4.call(this,"",null)};t(AWd,G4);AWd.prototype.Na=function(){AWd.ya.Na.call(this);DGg(this,Bdg("hr",{"class":"a-n0-kD"}));Qn(this.ta(),"a-Fv")};AWd.prototype.Pga=function(){return!1};AWd.prototype.Zqa=function(){return"a-Fv-m"};var BWd=function(a,b,c){i4.call(this,a,b,c)};t(BWd,i4);BWd.prototype.Qo=function(a){return 13==a.keyCode&&this.$e()&&this.$e().yda(a)?(a.preventDefault(),!0):BWd.ya.Qo.call(this,a)};var CWd=function(a,b){F4.call(this,a,b);this.Qb=new PAg(a,b);x(this,this.Qb)};t(CWd,F4);q=CWd.prototype;q.Tqb=!1;q.vab=function(){return"a-La"};q.J_a=function(){return"left"};
q.Pa=function(){CWd.ya.Pa.call(this);var a=this.getContext();a.rd();var b=this.Ea(),c={};Zb(c,ohg);c.chc="//ssl.gstatic.com/docs/picker/images/cleardot-v1.gif";c.dXa+=" a-ne";c.eXa+=" d-k-l";c.KDa+=" a-ne-uS-Dq";c.LDa+=" a-ne-uS-Dq";c.gsb="a-n-ia-En-Rf-Ev";c.hsb="a-n-ia-En-Rf";this.mL=new BWd(Hua("root"),c,b);sVd(this.mL);rVd(this.mL);NSd(this.mL);TQd(this,this.mL);this.mL.Pa();var d=this.Ab;d.appendChild(this.mL.ta());sWd(this);a.mL.addCallback(function(a){if(a.nPc){var c=b.Pa("div","a-oS");this.Qb.getUrl()&&
Pd(c,"bottom","50px");if(My.Ab)c.appendChild(b.createTextNode("native"));else{var k=a.kod;k&&(c.appendChild(b.createTextNode(k)),c.appendChild(b.Pa("br")));if(a=a.l_a())c.appendChild(b.createTextNode(a)),c.appendChild(b.Pa("br"));a=Hf(new Af(window.location.href),"clientdebugon","true").toString();c.appendChild(b.Pa("a",{href:a,"class":"a-oS-H7",tabIndex:-1},"DEBUG"))}d.appendChild(c);this.$b=c}},this);this.Qb.getUrl()&&(this.Qb.Pa(),TQd(this,this.Qb),d.appendChild(this.Qb.ta()));this.setSize(180)};
q.TWa=function(a,b,c){var d=tWd(a);uWd(this,d);a=this.lm(d,a);if("-"==a)return b=new AWd,this.mL.add(b),b;d=new G4(a,d,this.mL.rd(),this.Ea());!c||"expanded"!=c.collapsible&&"collapsed"!=c.collapsible?(d.b5=!1,d.b5||d.expand(),d.ta()&&d.Fda()):(this.Tqb=!0,"expanded"==c.collapsible&&d.expand());qr(this.getHandler(),d,"dj",this.Oa,!1,this);b?b.add(d):this.mL.add(d);return d};q.Na=function(){CWd.ya.Na.call(this);this.UTb()};
q.UTb=function(){var a=ze(this.Ab);if(0>=a.height)Uf(Lp(this.UTb,this),10);else{var b=ye(this.mL.ta());a.height-=b.top+b.bottom;this.Qb.getUrl()&&(b=xe(this.Qb.ta()),a.height-=b.height);this.$b&&(a.height-=xe(this.$b).height);ne(this.mL.ta(),a.height);this.Tqb&&Qn(this.mL.ta(),"a-La-mka")}};q.Yha=function(a){DWd(this,a)};
var DWd=function(a,b,c){if(a.mL)if(!c&&$lg(a.mL).length)He(a.mL,function(a){DWd(this,b,a)},a);else{var d=c.Gf();b&&d&&b.equals(d)&&b.getName()==d.getName()?((d=a.mL.$e())&&d!=a.mL&&d.setActive(!1),c.setActive(!0),a.mL.jn(c)):d&&c.setActive(!1);He(c,function(a){DWd(this,b,a)},a)}};CWd.prototype.Oa=function(a){(a=a.target)&&a!=this.mL&&(this.getContext().Mh.On(a.Gf()),this.Yha(a.Gf()))};
var EWd=function(a,b,c,d,f){d?(this.Sa=c.Pa("div","d-k-l a-n-Wb"),a=[this.Sa,a]):a=f?[c.Pa("div","d-k-l "+f),a]:[a];yp.call(this,a,b,c)};t(EWd,yp);EWd.prototype.qj=function(a){this.Nb()&&(Pn(this.ta(),"a-L",a),this.Sa&&(a?(Rn(this.Sa,"a-n-Wb"),Rn(this.Sa,"a-n-Wb-u"),Qn(this.Sa,"a-n-Wb-X")):(Rn(this.Sa,"a-n-Wb-X"),Rn(this.Sa,"a-n-Wb-u"),Qn(this.Sa,"a-n-Wb"))))};EWd.prototype.zo=function(){this.Xr(!0);this.Sa&&!Sn(this.Sa,"a-n-Wb-X")&&Tn(this.Sa,"a-n-Wb","a-n-Wb-u")}; EWd.prototype.fp=function(){this.Xr(!1);this.Sa&&!Sn(this.Sa,"a-n-Wb-X")&&Tn(this.Sa,"a-n-Wb-u","a-n-Wb")};
var q3e=function(a){var b="",c=wA(new Z("{NUM_SELECTED,plural,=1{ selected \u00bb}other{ selected \u00bb}}"),{NUM_SELECTED:a.tPa});return b+='<div class="d-k-l"><span class="d-k-l a-Rh-Gg-V8"></span><span class="d-k-l a-Rh-Gg">'+r(a.tPa)+'</span></div><span class="d-k-l a-Rh-ka">'+c+"</span></div>"};
var H4=function(a,b,c,d){C.call(this,d);this.Sa=a;this.YY=b;this.Qb=c;this.Ab=this.mL=null};t(H4,C);H4.prototype.Pa=function(){var a=this.Ea();this.Ab=new EWd("",this.YY,a);this.ib(this.Ab);this.Ab.Pa();FWd(this,0);this.Kb(a.Pa("div","a-Rh",a.Pa("div","a-Rh-nb",this.Ab.ta())))};var FWd=function(a,b){var c=a.Ea(),d=U(a.Sa.ef(),q3e,{tPa:b});a.$b=c.fb("a-Rh-Gg-V8",d);a.Ag=c.fb("a-Rh-Gg",d);Vd(a.$b,0,-14);a.Ab.setContent(d)};
H4.prototype.Na=function(){H4.ya.Na.call(this);this.mL=new dIc(null,this.ta());this.getHandler().Ja(this.Sa.Sa,"si",this.Vb).Ja(this.mL,"toggle",this.Oa).Ja(this.Ab,"action",Lp(function(){this.Qb.jn(this.Ab);var a=new w3("people");BN(a,"type","selected");var b=this.Sa.Mh;b.On(a);b.Hd().setActive(!0)},this));EI(this.Qb,this.Ab)};H4.prototype.Vb=function(){var a=wg(xg(E.ia(),"oppe")).d$(this.Sa,this.Ea()).Tx();a!=this.lg&&(this.lg=a,GWd(this,a),this.Oa());0==this.lg&&this.Qb.$e()==this.Ab&&this.dispatchEvent("sh")}; var GWd=function(a,b){a.Ea().uq(a.$b,String(b));(new XE(a.Ag,[0,14],218,eo)).play();var c=new XE(a.$b,[0,0],218,eo);a.getHandler().Ja(c,"end",function(){FWd(this,b)});c.play()};H4.prototype.Oa=function(){null!=this.mL.Sa||this.mL.uba(!!this.lg)};
var I4=function(a){Bp.call(this,a)};t(I4,Bp);I4.prototype.EJ=function(a){var b=I4.ya.EJ.call(this,a);b||9!=a.keyCode||(b=a.shiftKey?IWd(this):HWd(this))||this.Vq(-1);return b};I4.prototype.$Ga=function(){this.getHandler().yj(this.ta(),"keyup",this.EJ)};I4.prototype.mha=function(){};var HWd=function(a){return Ko(a,function(a,c){a++;return a<c?a:-c-2},a.B_())},IWd=function(a){return Ko(a,function(a){return a-1},0>a.B_()?Ge(a):a.B_())}; I4.prototype.bDa=function(a){return ge(a.ta())-ge(this.ta())<oe(this.ta()).height&&I4.ya.bDa.call(this,a)};
var JWd=function(a,b){F4.call(this,a,b);this.mL=new I4(b);Cp(this.mL,!1);Io(this.mL,!0);this.ib(this.mL);this.Qb=new Bp;Cp(this.Qb,!1);Io(this.Qb,!0);this.ib(this.Qb);this.$b=new hz;a.od.Vd(new Yw("c"),Lp(this.o9,this),ka,!0);var c=a.Mh;this.getHandler().Ja(c,"ni",this.Maa);this.Ag=new H4(a,3,this.$b,b);this.ib(this.Ag);this.Vb=(this.Xb=a.rd().Kra)?167:153;this.Ko=null};t(JWd,F4);JWd.prototype.vab=function(){return"a-La"};JWd.prototype.J_a=function(){return"left"};
JWd.prototype.Pa=function(){JWd.ya.Pa.call(this);this.mL.ta()||this.mL.Pa();this.Qb.ta()||this.Qb.Pa();var a=this.Ea();this.Ag.Pa();a.appendChild(this.Ab,a.Pa("div",null,this.Ag.ta(),this.mL.ta(),this.Oa=a.Pa("div","a-Vc-Md d-k-l",a.Pa("div","a-Vc-E","More","\u00a0","\u25be")),this.Km=a.Pa("div","a-Vc-Md d-k-l",a.Pa("div","a-Vc-E","Less","\u00a0","\u25b4")),this.Qb.ta()));On(this.Oa,!1);On(this.Km,!1);this.setSize(180)};
JWd.prototype.Na=function(){JWd.ya.Na.call(this);this.getHandler().Ja(this.mL,"action",this.iu).Ja(this.Qb,"action",this.iu).Ja(this.Oa,"click",Lp(this.Vk,this,!0)).Ja(this.Km,"click",Lp(this.Vk,this,!1)).Ja(this.Ag,"sh",function(){this.mL.Oh(0).fn(null)});Qn(this.Ab,"a-Vc");this.Xb&&Qn(this.Ab,"a-Va-rc");Qn(this.Qb.ta(),"a-Vc-zma");LWd(this);var a=this.$b.$e();a&&a.qj(!0)};
var KWd=function(a,b){a.Ko=b;var c=b.parent;c?a.getContext().od.Vd(new Yw("c"),Lp(function(a){for(var b=0;b<this.$b.Sa.length;b++){var c=this.$b.Pl(b),k=c.kc();if(k instanceof Vw&&k.Qe()==a){5<b&&(this.Vk(!0),(new SSd(c.ta())).play());n2e(this,c);return}}this.getContext().Mh.On(new w3("people"))},a,c),ka,!1):a.getContext().Mh.On(new w3("people",void 0,b))},LWd=function(a){a.Nb()&&6<Ge(a.mL)&&(a.Op=oe(a.mL.ta()).height-ye(a.mL.ta()).top,On(a.Oa,!0),Pd(a.mL.ta(),"overflow-y","hidden"),Pd(a.mL.ta(),
"height",a.Vb+"px"))};JWd.prototype.Vk=function(a){On(this.Oa,!a);On(this.Km,a);var b=a?this.Vb:this.Op,c=a?this.Op:this.Vb,b=new ZE(this.mL.ta(),b,c,150);a?this.getHandler().Ja(b,"end",Lp(function(){Pd(this.mL.ta(),"overflow-y","visible")},this)):Pd(this.mL.ta(),"overflow-y","hidden");b.play()};
JWd.prototype.o9=function(a){this.mL.ta()||this.mL.Pa();this.Qb.ta()||this.Qb.Pa();var b=OWd(this,"Everyone",1);Qn(b.ta(),"a-Vc-Ed");v(a.Ae(),function(a){OWd(this,a.getName(),a,!0)},this);this.$b.jn(b);LWd(this);this.getContext().od.Vd(new Yw("g"),Lp(function(a){a.Ae().length&&MWd(this)},this),ka)};
var MWd=function(a){a.getContext().mL.addCallback(function(a){a=NWd(this,a.rsc,2,!1,"a-n-rI");this.Qb.ib(a,!0)},a)},NWd=function(a,b,c,d,f){b=new EWd(b,c,a.Ea(),d,f);EI(a.$b,b);return b},OWd=function(a,b,c,d){b=NWd(a,b,c,d);a.mL.ib(b,!0);return b};JWd.prototype.iu=function(a){n2e(this,a.target)};
var n2e=function(a,b){var c=a.$b.$e();a.$b.jn(b);var d=a.getContext().Mh.FH,d=d?d.clone():new w3("people",void 0,a.Ko);o4(d,null);var f=b.kc();if(f&&f instanceof Vw)BN(d,"parent",f.Qe()),BN(d,"type",void 0);else switch(f){case 1:BN(d,"parent",void 0);BN(d,"type","people");break;case 2:BN(d,"type","gmail")}a.getContext().Mh.On(d);c||a.getContext().Mh.Hd().setActive(!0)};JWd.prototype.Maa=function(a){a=a.Sa;this.Yha(a.getQuery()?null:a)};
JWd.prototype.Yha=function(a){if(a&&"people"==a.Sa){var b=a.getOption("parent"),c="gmail"==a.Ra(),d="people"==a.Ra()&&!b,f="selected"==a.Ra();v(this.$b.wu(),function(a){var k=a.kc(),m=k instanceof Vw?k.Qe():void 0;(b&&b==m||c&&2===k||d&&1===k||f&&3===k)&&this.$b.jn(a)},this)}else this.$b.jn(null)};
var PWd=function(a,b){var c=a.rd().mL?"a-ch-Nb":"a-Nb";y3.call(this,a,c+"-Cc",c+"-Bb",c+"-B","top",b);this.oh=this.getContext().rd().getTitle();this.Oa=this.getContext().rd().A2||this.oh;this.mL=null};t(PWd,y3);
var w0e=function(a,b){if(b){var c=a.Ea(),d=a.Ab,f=c.Pa("div",{id:"picker:ht","class":"a-Nb-E",role:"heading"},b),h;h=a.getContext().rd();(h=W2d[h.vLb])&&d.appendChild(c.Pa("div","a-Nb-m "+h));d.appendChild(f);a.getContext().rd().mna&&(f=c.Pa("div","a-Nb-E a-KsV2dd-c4-E","Dogfood Confidential"),d.appendChild(f));a.Qb=new Mxg(a.getContext(),c);a.ib(a.Qb,!1);a.Qb.Pa();c.uv(d,a.Qb.ta())}v0e(a,b)};PWd.prototype.Pa=function(){PWd.ya.Pa.call(this);w0e(this,this.oh);this.getContext().rd().dw&&m4f(this)};
var m4f=function(a){var b=a.Ea(),c=a.Ab;a.getContext().mL.addCallback(function(a){if(a.nPc&&!My.Ab){this.mL=b.Pa("div","a-xb-Jeb-ka");var f=a.kod;f&&this.mL.appendChild(b.createTextNode(f+":"));(a=a.l_a())&&this.mL.appendChild(b.createTextNode(a));c.appendChild(this.mL)}},a)};PWd.prototype.Na=function(){PWd.ya.Na.call(this);this.getContext().rd().mL&&(this.getHandler().Ja(this.getContext().Qb,"set-title",this.$b),this.getHandler().Ja(this.getContext().Mh,"li",this.Ag))};
var x0e=function(a,b){var c=a.Ea(),d=c.fb("a-Nb-E",a.ta()),f=a.oh,h=b||a.getContext().Mh.FH;h&&h.getOption("parent")&&(f=a.Oa);d?(c.hb(d),f&&c.appendChild(d,c.createTextNode(f)),v0e(a,f)):w0e(a,f)},v0e=function(a,b){if(b)if(a.getContext().rd().mL){var c=a.Ea().fb("a-Nb-E",a.ta()),d=xe(c).height,c=Ae(c);c.top&&(d+=c.top);c.bottom&&(d+=c.bottom);a.setSize(Math.max(d,28))}else a.setSize(20);else a.setSize(0)}; PWd.prototype.$b=function(a){a=a.data.title;qa(a)&&(this.oh=a,x0e(this));(a=this.getContext().Mh.Hd())&&a.vB()};PWd.prototype.Ag=function(a){x0e(this,a.Xd)};
var J4=function(a,b){t3.call(this,a,b);this.$b=new Ze;this.getHandler().Ja(a.Mh,"mi",this.Oa);var c=a.Sa,d=Lp(this.BMb,this);c.Qb=d;Lp(this.Dqc,this)};t(J4,t3);J4.prototype.Ab=null;J4.prototype.mL=null;J4.prototype.Qb=null;var SWd=[];J4.prototype.Pa=function(){J4.ya.Pa.call(this);var a=this.Ab;a&&(a.Pa(),this.Ea().appendChild(this.ta(),a.ta()))};J4.prototype.Di=function(){return!0};J4.prototype.ra=function(a){J4.ya.ra.call(this,a);a=this.Ea().Mt(a);var b=this.Ab;b&&(a?b.yb(a):b.render(this.ta()))};
J4.prototype.Oa=function(a){this.hUb(a.Xd);Rf(a.Xd.le())};var RWd=function(a,b){for(var c=a.getContext().rd(),d=0;d<SWd.length;d++)if(SWd[d].hDa(b,c))return SWd[d];throw Error("Ah");};q=J4.prototype;
q.hUb=function(a,b){this.Qb=a;var c=RWd(this,a),d=xg(E.ia(),"oppe");if(d&&!d.Sa&&"photo-tagging"==a.Sa)Ag(E.ia(),"oppe",Lp(this.hUb,this,a,b));else if(c.sXb(a,this.getContext().rd())){var f=2,d=Lp(function(){0==--f&&this.bdb(a)},this);c.load(d);this.getContext().mL.addCallback(d)}else c.fh()?this.bdb(a):c.load(Lp(this.bdb,this,a))};
q.bdb=function(a){if(this.Qb&&this.Qb.equals(a)){this.Qb=null;var b=this.getContext(),c=b.Mh,d=a.getOptions(),f;f=this.$b;var h=tVd(a),k=f.get(h);k||(k=RWd(this,a).create(a,this.getContext(),this.Ea()),this.getHandler().Ja(k,"change",this.Gjd),f.set(h,k),this.ib(k));f=k;f!=this.Ab&&(this.Nb()&&!f.Nb()&&f.render(this.ta()),this.mL&&this.mL.p_a&&(this.mL.p_a(),this.mL=null),this.Ab&&this.Ab.ta()&&ze(this.Ab.ta()),c.dispatchEvent(new OVd("li",a)),f.setActive(!0,d),!b.rd().Vb&&this.Ab&&f.cka?(this.mL=
f,f.cka(0,0,0,Lp(this.gHa,this,f,a))):this.gHa(f,a))}};q.gHa=function(a,b){this.mL=null;var c=this.getContext().Mh,d=this.Ab;d&&d.setActive(!1);this.Ab=a;c.jUb(a,b);a.kt();this.getContext().Sa.dispatchEvent("ti");this.dispatchEvent("change");c.dispatchEvent(new OVd("ri",b))};q.BMb=function(a){var b=this.Ab;if(b){for(var c=[],b=b.zq().Rc(),d=0;d<a.length;d++)eb(b,a[d])&&c.push(a[d]);return c}return a};q.Gjd=function(a){a.target instanceof t3&&a.target.xw()&&this.getContext().Sa.dispatchEvent("ti")}; q.Dqc=function(){var a=this.Ab;return a?a.zq():new df};q.qb=function(){J4.ya.qb.call(this);this.$b.clear();this.Qb=this.Ab=this.$b=null};
var K4=function(a,b){t3.call(this,a,b);var c=a.rd(),d=i3e(c)?new JWd(a,b):c.dw?new xWd(a,b):new CWd(a,b);x(this,d);this.Ab=d;this.mL=new J4(a,b);this.Ag=d=c.Pha;this.$b=(c=c.KSa)?new hng(a,b):null;x(this,this.$b);this.Qb=c?new nng(a,b):new PWd(a,b);x(this,this.Qb);this.ib(this.Qb);this.$b?(z3(this.Qb,this.$b),this.Qb.Vk=this.$b,z3(this.$b,this.mL)):this.Ab&&!d?(z3(this.Qb,this.Ab),z3(this.Ab,this.mL)):z3(this.Qb,this.mL);yDa(this.Ea());this.Oa=null};t(K4,t3);
K4.prototype.focus=function(){return this.$b?this.$b.focus():!1};
K4.prototype.Pa=function(){var a=this.getContext().rd(),b=a.dw,c=this.Ea(),d=this.Oa=c.Pa("div","a-wb-Ab",c.Pa("div","a-wb-Ab a-Zja"));On(d,!1);var f;t:switch(a.Uma){case "inline":f="a-Dn-k";break t;case "none":f="a-Dn-mf";break t;default:f=""}c=c.Pa("div","a-wb-Z "+f,d);a.mL&&Qn(c,"a-ch-Z");Pn(c,"a-F6",this.Ag);Pn(c,"a-AVa-Lb",b&&a.Km);Pn(c,"a-Sf",xc);Pn(c,"a-id-a",i3e(a));Pn(c,"a-N7",a.lN());this.Kb(c);c.setAttribute("guidedhelpid","ghid-pmc");a=U(this.getContext().ef(),Kkd);c.appendChild(a);this.Qb?
(this.Qb.Pa(),c.appendChild(this.Qb.ta())):this.Ag?(this.mL.Pa(),c.appendChild(this.mL.ta())):(this.Ab.Pa(),c.appendChild(this.Ab.ta()));(a=xd?"-webkit":wd?"-moz":void 0)&&Y8a(this.getContext().ef().render(l3e,{prefix:a,selector:"a-xm-SUa"}),this.Ea())};
K4.prototype.Na=function(){K4.ya.Na.call(this);var a=this.getContext().rd(),b;b=this.getContext().Vk;var c=a.getTitle();b=A1e(b,"assertive");Rc(b,c);c=this.Ea().La();(b=My.Ab)||xNc(c.body,this.getHandler());this.getHandler().Ja(c,"keydown",this.XHb,b&&a.mL).Ja(this.getContext().Mh,"pi",this.Dtb);if(a.mL&&(this.getHandler().Ja(this.getContext().Qb,"visibility",this.Dwb),b&&!a.hTa))if(this.getHandler().Ja(c,"mousedown",this.tKa,!0),xc){var d;try{d=c.activeElement}catch(f){}for(;d&&"IFRAME"==d.nodeName;){try{var h=
Pc(d)}catch(k){break}c=h;d=c.activeElement}this.getHandler().Ja(c,"mousedown",this.tKa,!0);this.getHandler().Ja(c,"deactivate",this.rKa)}else this.getHandler().Ja(c,"blur",this.rKa);i3e(a)?(d=this.getContext().rd().uh[0][2]||{},d.type=d.type||"people",KWd(this.Ab,d)):this.Ab.YY(v3e(this));a.jg&&eVd(E.ia(),"opr")};var v3e=function(a){var b=a.Ab;(a=a.getContext().rd().ana)?a instanceof Jw?b=wUd(a.getId(),a.lm(),a.getOptions()):(b=Qf(a),b=wUd(b[0],b[1],b[2])):b=wWd(b);return b};q=K4.prototype;
q.Dtb=function(a){a.OGa&&!ve(this.Oa)?(On(this.Oa,!0),(new bF(this.Oa,500,function(a){return a/2})).play()):On(this.Oa,!1)};q.Dwb=function(a){a=a.data.visible;if(ra(a)&&!a){a=this.getContext().rd();var b=a.Vb;a.Vb=!0;this.getContext().Mh.On(v3e(this));a.Vb=b}};
q.XHb=function(a){var b;if(b=27==a.keyCode)b=this.getContext().Mh.FH,b=!(b&&"photo-curation"==b.Sa);if(b){b=this.getContext().rd().mL;var c=My.Ab;b&&c?this.getContext().rd().Op&&(this.getContext().Ab.oD(),a.preventDefault(),a.stopPropagation()):this.getContext().Ab.oD()}};q.tKa=function(a){if(this.getContext().rd().Op){var b=this.getContext().rd().fG()||this.ta();Oc(b,a.target)||this.getContext().Ab.oD()}};
q.rKa=function(a){if(this.getContext().rd().Op){var b=this.getContext().rd().fG()||this.ta(),c=lc(b);if("undefined"!=typeof document.activeElement){if(a=c.activeElement,!a||Oc(b,a)||"BODY"==a.tagName)return}else if(a.target!=c)return;this.getContext().Ab.oD()}};
var o$f=function(a){return Y(zn(r(a.jab),10))};var L4=function(){F3.call(this,"a-Vd-e")};t(L4,F3);la(L4);
L4.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d=c.getUrl(),f=c.getName(),h=c.getAttribute("au")||"",k="unknown"==h||""==h,m=b.Pa("div","a-Vd-e-Uja");ln(m,o$f,{jab:k?"author unknown":h});k&&Qn(m,"a-Vd-e-ika-wma");var h=c.getAttribute("py")||"",h="unknown"==h||""==h?"":b.Pa("div","a-Vd-e-Xs",b.Pa("div","a-Vd-e-Xs-E",h)),k=(new Z("{numPages, plural, =0 {}=1 {1 page}other {# pages}}")).format({numPages:c.getAttribute("pc")||0}),p=c.Yh(),c=p?p[0].wc()||64:64,u=p?p[0].Ic()||64:64,p=p?p[0].Qs():null;
ya(p,"/")&&(p="http://books.google.com"+p);p=lWd(p,"&edge=curl");p=p.replace("/no_cover_thumb_with_curl.gif","/no_cover_thumb.gif");d=b.Pa("div","a-Vd-e-na",b.Pa("div","a-Vd-e-na-OX",b.Pa("a",{href:d,target:"_blank",tabIndex:-1},b.Pa("img",{src:p,width:c,height:u,"class":"a-Vd-e-na-W"}))));b=b.Pa("div",this.qr(a).join(" "),b.Pa("div","a-Vd-e-aa",b.Pa("table",{cellPadding:0,cellSpacing:0,width:"100%"},b.Pa("tbody",null,b.Pa("tr",null,b.Pa("td",{valign:"top"},d),b.Pa("td",{width:"100%",valign:"top"},
b.Pa("div","a-Vd-e-Fn",a=b.Pa("div","a-Vd-e-O"),m,h,b.Pa("div","a-Vd-e-jma",k))))))));a.id=Ce(Be.ia());ln(a,o$f,{jab:f||""});qo(b,"labelledby",a.id);return b};L4.prototype.jh=function(a){return a.ta().firstChild};L4.prototype.setState=function(a,b,c){L4.ya.setState.call(this,a,b,c);32==b&&(nc("a",null,a.ta())[0].tabIndex=c?0:-1)};
var VWd=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c)};t(VWd,y4);VWd.prototype.ED=function(a){return new E3(this.getContext(),a,L4.ia(),this.Ea())};var N4=function(a,b,c,d){y3.call(this,a,"a-RH-Cc","a-RH-Bb","a-RH-B","top",d);this.$b=new x4(a,b,d);this.Bc=b;this.Oa=this.Bc.Ra()||"a";this.Ag=this.Bc.getOption("sortOrder")||"p";this.Qb=this.mL=null};t(N4,y3);var bXd={a:"All fonts",d:"Display",h:"Handwriting",m:"Monospace",s:"Serif",ss:"Sans Serif"},cXd={p:"Popularity",a:"Alphabetical",da:"Date added",t:"Trending"};
N4.prototype.Pa=function(){N4.ya.Pa.call(this);this.setSize(75);var a=this.Ea();this.$b.YY=!1;this.$b.Pa();var b=a.Pa("div","d-k-l");this.mL=new qz("",void 0,Hp.ia());$Wd(this,this.mL,bXd);this.mL.render(b);var c=a.Pa("div","d-k-l");this.Qb=new qz("",void 0,Hp.ia());$Wd(this,this.Qb,cXd);this.Qb.render(c);this.Ab.appendChild(a.Pa("div","a-RH-Z",this.$b.ta(),a.Pa("div","a-RH-r-Z",b,c)));this.getHandler().Ja(this.mL,"action",this.YY).Ja(this.Qb,"action",this.Vb);aXd(this)};
var $Wd=function(a,b,c){for(var d in c)b.dg(new TM(c[d],d,a.Ea()))};N4.prototype.YY=function(a){var b=new w3("fonts");b.Ab=this.Bc.Ab||this.Bc;BN(b,"type",a.target.getValue());BN(b,"sortOrder",this.Ag);this.getContext().Mh.On(b);aXd(this);this.Oa=a.target.getValue()};N4.prototype.Vb=function(a){var b=new w3("fonts");b.Ab=this.Bc.Ab||this.Bc;BN(b,"type",this.Oa);BN(b,"sortOrder",a.target.getValue());this.getContext().Mh.On(b);aXd(this);this.Ag=a.target.getValue()}; var aXd=function(a){var b="Show: "+bXd[a.Oa];a.mL.Wj(a.Oa);a.mL.Lb(b);b="Sort: "+cXd[a.Ag];a.Qb.Wj(a.Ag);a.Qb.Lb(b)};N4.prototype.Na=function(){N4.ya.Na.call(this);this.$b.Na()};
var dXd=function(){};t(dXd,vo);la(dXd);dXd.prototype.Pa=function(a){var b=a.Ea(),c=a.La().Qe();a=Ce(Be.ia());b=b.Pa("div",{"class":"a-QH-za d-k-l",name:c},b.Pa("span",{"class":"a-QH-za-kb",style:'font-family: "'+c+'::Menu"',id:a},c),b.Pa("span",{"class":"a-QH-za-bd",role:"button","aria-label":"Remove",tabIndex:0},b.Pa("span","a-n-ab-z-wt-jf d-k-l")));qo(b,"labelledby",a);b.style.paddingRight=xc?b.style.paddingLeft="7px":b.style.paddingLeft="15px";return b};dXd.prototype.jg=function(a){return a.ta().children[1]};
var eXd=function(a,b,c){y3.call(this,a,"a-LA-Cc","a-LA-Bb","a-LA-B","right",c);this.Qb=new Ze;this.getHandler().Ja(a.Sa,"si",this.WAc);this.mL=null};t(eXd,y3);q=eXd.prototype;q.Pa=function(){eXd.ya.Pa.call(this);this.setSize(200);var a=this.Ea();this.mL=a.Pa("div","a-LA-za-di");a=a.Pa("div","a-LA-jE",a.Pa("div","a-LA-Nb","My fonts"));this.Ab.appendChild(a).appendChild(this.mL)};q.WAc=function(a){v(a.ur,Lp(this.QTb,this))};q.PTb=function(a){this.getContext().Sa.WT([a.La().getId()],!1)};
q.zid=function(a,b){if(13==b.keyCode||32==b.keyCode)this.PTb(a),b.stopPropagation(),b.preventDefault();return!0};
q.QTb=function(a){if(this.getContext().Sa.Sf(a)&&!ba(this.Qb,a)){var b=this.getContext().od.La(a);if(b){var c=new bVd(this.getContext(),b,dXd.ia(),this.Ea());this.Qb.set(a,c);a=this.Ea().Tc("a-QH-za",this.mL);for(var d=!0,f=0;f<a.length;f++)if(a[f].name>b.Qe()){De(c,a[f]);d=!1;break}d&&c.render(this.mL);b=c.Qb.jg(c);this.getHandler().Ja(b,"click",Lp(this.PTb,this,c)).Ja(b,"keypress",Lp(this.zid,this,c))}}else!this.getContext().Sa.Sf(a)&&ba(this.Qb,a)&&(c=this.Qb.get(a),this.mL.removeChild(c.ta()), c.qb(),this.Qb.remove(a))};
var WWd=function(){F3.call(this,"a-QH-e")};t(WWd,F3);WWd.prototype.Pa=function(a){var b=a.La();a=a.Ea();var c=a.Pa("tr","a-QH-e-cy"),b=b.Qe(),b=a.Pa("td",{"class":"a-QH-e-kb-xd",style:'font-family: "'+b+'::Menu"'},a.Pa("span","a-n-A6-lf"),b);a.uv(c,b);return c};
var YWd=function(){this.Ab={};this.Sa=null};la(YWd);var ZWd=function(a,b,c){var d=[],f;for(f in b){if(4093<Qb(a.Ab))break;var h=b[f],k=h.Qe(),h=h.getAttribute("affr");null==h||ia(a.Ab[k])||(d.push(h),a.Ab[k]=!0)}if(0<d.length)if(a.Sa)if(a.Sa.styleSheet)for(f=0;f<d.length;f++)a.Sa.styleSheet.insertRule(d[f],a.Sa.styleSheet.cssRules.length);else a.Sa.firstChild.appendData(d.join("\n"));else a.Sa=Y8a(d.join("\n"),c)};
var M4=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Qb=new WWd};t(M4,y4);M4.prototype.Hr=function(a){ZWd(YWd.ia(),a,this.Ea());M4.ya.Hr.call(this,a)};M4.prototype.ED=function(a){return new E3(this.getContext(),a,this.Qb,this.Ea())};M4.prototype.cD=ka;
var fXd=function(a,b,c,d){t3.call(this,a,d);this.Bc=b;this.Ab=c;b=new N4(a,b,0,d);z3(b,c);this.Qb=b;c=new eXd(a,0,d);z3(c,b);this.$b=c;a=new B3(a,Lp(this.Aid,this),void 0,d);z3(a,c);this.ib(a);this.mL=a};t(fXd,t3);q=fXd.prototype;q.Na=function(){fXd.ya.Na.call(this);qr(this.getHandler().Ja(this.getContext().Sa,"si",this.RTb),this.Ab,"change",this.RTb,!1,this).Ja(this.getContext().Qb,"select-fonts",this.nJc).Ja(this.getContext().Ab,"reset",Lp(this.Bid,this,0));WUd(this.Ab,this.Qb.$b)};
q.Aid=function(){for(var a=this.getContext(),b=a.od,c=a.Sa.Ua(!0),d=[],f=0;f<c.length;f++){var h=b.La(c[f]);"font"==h.Ra()&&d.push(h)}a.Ab.Sl(d);this.mL.qh(!1)};q.setActive=function(a,b){fXd.ya.setActive.call(this,a,b);a&&gXd(this);this.Ab.setActive(a)};q.RTb=function(){this.xw()&&gXd(this)};q.Pa=function(){var a=this.mL;a.qh(!1);a.Pa();this.Kb(a.ta());Qn(this.ta(),"a-uVa")};
var gXd=function(a){for(var b=a.getContext().od,c=a.getContext().Sa,d=a.$b,c=c.Ua(!0),f=!1,h=0;h<c.length;h++)"font"==b.La(c[h]).Ra()&&(f=!0,d.QTb(c[h]));a.mL.qh(f)};q=fXd.prototype;q.nJc=function(a){if(this.xw()&&(a=a.data.fonts)&&a.length){var b=zg(a,function(a){return a.fontName});this.getContext().od.Vd(new u3("fonts",b,{}),Lp(this.NHc,this,a),Lp(this.OHc,this),!0)}};
q.NHc=function(a,b){if(xc){var c=this.getContext().rd().ta();c.style.display="none";c.style.display="block"}for(var c=this.getContext().Sa,d=new df(zg(a,function(a){return a.fontName})),f=b.Ae(),h=0;h<f.length;h++)d.contains(f[h].Qe())&&c.Fca(f[h].getId(),!0,!0);ZWd(YWd.ia(),f,this.Ea())};q.OHc=function(){alert("Sorry!  We could not find the fonts you previously selected.")};q.Bid=function(){if(this.xw()){var a=this.Bc.Ab;a&&this.getContext().Mh.On(a)}};q.vB=function(a){this.Ab.vB(a)};
var hXd=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.Ab=new B3(a,Lp(this.mL,this),void 0,c);this.ib(this.Ab)};t(hXd,t3);hXd.prototype.Pa=function(){var a=this.Ea(),b,c=a.Pa("div","a-B",b=a.Pa("div","a-sS-Z")),d=null;"homepage"==this.Bc.Ra()&&b.appendChild(d=a.Pa("img",{"class":"a-sS-W",src:"//ssl.gstatic.com/docs/picker/images/google-homepage-v1.gif",width:"374",height:"244"}));a=this.Ab;a.qh(!0);a.Pa();a.cb().appendChild(c);this.Kb(a.ta());this.getHandler().Ja(d,"dblclick",Lp(this.mL,this))}; hXd.prototype.mL=function(){this.getContext().Ab.Sl([])};
var kug=function(a){var b;b='<div class="a-hgOHy-WkgSte-Z"><div id="prompt" class="a-hgOHy-WkgSte-Ag">Introducing the <span class="wHEfpf-xk">new My Maps.</span><br />Better tools for mapping.</div><div id="links" class="a-hgOHy-WkgSte-yVa">';a.dbd||(b+='<a id="'+R(a.wbd)+'" class="s">Get it now</a>');b+='<a id="'+R(a.bbd)+'" class="s">Learn more</a></div><div>';return Y(b)};
var lug=function(a,b,c){t3.call(this,a,c);this.Bc=b};t(lug,t3);var mug={Pad:"__mmv-u",Kad:"__mmv-lm"};lug.prototype.Pa=function(){lug.ya.Pa.call(this);var a=this.Bc.getQuery();if(null!=a)switch(a){case "mm-mns":case "mm-mum":var a="mm-mns"!=a,b=Dkg(this,mug);Vv(this.getContext().ef(),this.ta(),kug,{wbd:b.Pad,bbd:b.Kad,dbd:a})}};
lug.prototype.Na=function(){lug.ya.Na.call(this);var a=this.Bc.getQuery();if(null!=a)switch(a){case "mm-mns":case "mm-mum":(a=nh(this,"__mmv-u"))&&Gr(this.getHandler(),a,"click",this.Ab,!1,this),Gr(this.getHandler(),nh(this,"__mmv-lm"),"click",this.Ab,!1,this)}};
lug.prototype.Ab=function(a){a=a.target;var b=this.Bc.getQuery();if(null!=b)switch(b){case "mm-mns":case "mm-mum":switch(a.id){case lh(this,"__mmv-u"):this.getContext().Ab.n6([{action:"upgrade"}],"picked");break;case lh(this,"__mmv-lm"):this.getContext().Ab.n6([{action:"learn-more"}],"picked")}}};
var x3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste a URL here:}male{Paste a URL here:}other{Paste a URL here:}}"),{VIEWER_GENDER:c.Aa});return P(a+c)},y3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste an image URL here:}male{Paste an image URL here:}other{Paste an image URL here:}}"),{VIEWER_GENDER:c.Aa});return P(a+c)},C3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste a video URL here:}male{Paste a video URL here:}other{Paste a video URL here:}}"), {VIEWER_GENDER:c.Aa});return P(a+c)},E3e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Paste YouTube URL here:}male{Paste YouTube URL here:}other{Paste YouTube URL here:}}"),{VIEWER_GENDER:c.Aa});return P(a+c)};
var iXd=function(a,b,c){t3.call(this,a,c);this.Ab=new B3(a,Lp(this.eUb,this),void 0,c);this.ib(this.Ab);this.dh=b.Ra()||"image";this.$b=b.getOption("site");this.Bc=b;this.Vb=new kR;this.ib(this.Vb)};t(iXd,t3);q=iXd.prototype;q.bza=null;q.X4a=!1;q.Y4a=!1;q.Kqa=!1;q.An=null;
q.Pa=function(){var a=this.Ea(),b;b=Be.ia();var c=Ce(b),d=Ce(b),c=this.Vk=a.Pa("div","a-B a-ie",b=a.Pa("label",{"class":"a-ie-Nb","for":c}),this.mL=a.Pa("input",{"class":"a-ie-N",id:c}),this.Qb=a.Pa("div",{"class":"a-ie-Tc-m d-k-l",style:"visibility: hidden"}),this.YY=a.Pa("table","a-ie-qa",a.Pa("tbody",null,a.Pa("tr",null,this.Oa=a.Pa("td",{"class":"a-ie-qa-Ws",id:d},this.bza=qTf(this))))));qo(this.mL,"controls",d);po(this.Oa,"status");qo(this.Oa,"live","polite");d=this.getContext().ef();switch(this.dh){case "image":a.uq(b,
JC(d,y3e));break;case "video":"youtube.com"==this.$b||"www.youtube.com"==this.$b||"youtu.be"==this.$b?a.uq(b,JC(d,E3e)):a.uq(b,JC(d,C3e));break;default:a.uq(b,JC(d,x3e))}a=this.Ab;a.Pa();a.cb().appendChild(c);this.Kb(a.ta());this.Vb.yb(this.mL)};
q.Na=function(){iXd.ya.Na.call(this);this.yab();var a=this.mL;this.Yg=new rw(a);this.An=new Cx(this.Vk);a=this.getHandler().Ja(this.Yg,"input",this.iEb).Ja(a,"keypress",this.ujd).Ja(this.An,"load",this.Op).Ja(this.getContext().Ab,"reset",this.dUb).Ja(this.Ea().getWindow(),"resize",this.yab);"image"==this.dh?a.Ja(this.An,"error",this.Km):a.Ja(this.An,"error",this.xGc)};q.kt=function(){Uf(function(){try{this.mL.focus()}catch(a){}this.mL.select()},0,this);return!0};
q.yab=function(){var a=kXd(this);if(0>=a.width||0>=a.height)Uf(Lp(this.yab,this),100);else{le(this.YY,a);var a=a.width,b=this.mL,c=this.Ko;if(!c)var c=function(){var a=Ae(b);return a.left+a.right},d=pba(b),f=this.Qb,c=this.Ko=c()+d.offsetWidth+c()+f.offsetWidth+c();b.style.width=a-c+"px"}};q.ujd=function(a){13==a.keyCode&&this.Ab.iu&&this.eUb()};
q.iEb=function(){this.X4a=!1;var a=this.mL.value,b=!!a,c=b?zgf(a):void 0;this.Ab.qh(!1);Pn(this.mL,"a-ie-L",b);this.Qb.style.visibility="hidden";var d=this.dh,f=this.$b;if(c)if(b=IQd.ia(),I3e(this,"Loading preview..."),"all"==d||"video"==d)if(f&&xVd(b,c,f)||xVd(b,c,c.Tf()))if(f=IQd.ia(),a=Jf(a),a=this.$b?wVd(f,a,this.$b):wVd(f,a,a.Tf())){b=kXd(this);f=new Kb(640,480);Mb(f,b)||f.Cr(b);var h=this.Ea(),b=this.Ag=Ce(Be.ia()),h=h.Pa("div",{id:b});lXd(this,h);mVd(a,b,h,f.width,f.height,{allowFullScreen:"true",
flashvars:"apiId="+b});this.Y4a=!0;this.Ab.qh(!0)}else mXd(this);else"all"==d?jXd(this,a):mXd(this);else jXd(this,a);else b?I3e(this,"The URL is not valid.  Make sure it starts with http:// or https://.",!0):this.bza?I3e(this,this.bza):I3e(this,"If your URL is correct, you'll see a preview here.  Large images may take a few minutes to appear.");"all"==d&&c&&this.Ab.qh(!0)};
var zgf=function(a){var b;try{b=Jf(a)}catch(c){return}a=(b.Au()||"").toLowerCase();return"http"!=a&&"https"!=a||!b.Tf()?void 0:b},jXd=function(a,b){var c=a.Qb;c.className="a-ie-Tc-m d-k-l";c.style.visibility="";(c=(c=zgf(b))&&ygf(c))?(a.Kqa=!0,a.getContext().od.Vd(new u3("docs",[c],{}),Lp(a.WBe,a),Lp(a.iuc,a))):(a.Kqa=!1,c=URd(b),Agf(a,c))},Agf=function(a,b){var c=a.An;Dx(c,a.Ag=Ce(Be.ia()),b);c.start()},qTf=function(a){if("image"!=a.dh&&"video"!=a.dh)return null;var b="If your URL is correct, you'll see an image preview here.  Large images may take a few minutes to appear.",
c="Remember: Using others' images on the web without their permission may be bad manners, or worse, copyright infringement.";"video"==a.dh&&(b="If your URL is correct, you'll see a video preview here.  Large videos may take a few minutes to appear.",c="Remember: Using others' videos on the web without their permission may be bad manners, or worse, copyright infringement.");a=a.Ea();b=a.Pa("div","a-ie-qa-B",b);c=a.Pa("div",null,c);return a.Pa("div",null,b,c)},I3e=function(a,b,c){Pn(a.YY,"a-ie-wa",
!!c);Pn(a.Oa,"a-ie-wa-Ws",!!c);lXd(a,qa(b)?a.Ea().createTextNode(b):b)},kXd=function(a){var b=a.Vk,c=ye(b);return new Kb(b.offsetWidth-c.left-c.right,b.parentNode.offsetHeight-a.YY.offsetTop-c.top-c.bottom)};iXd.prototype.Op=function(a){a=a.target;if(a.id==this.Ag){this.Qb.className="a-ie-eu-m d-k-l";this.Ab.qh(!0);if(a.naturalWidth&&a.naturalHeight){var b=kXd(this),c=new Kb(a.naturalWidth,a.naturalHeight);Mb(c,b)||le(a,c.Cr(b))}lXd(this,a);this.X4a=!0}};
var lXd=function(a,b){a.Y4a&&a.Ag&&(nVd(a.Ag,a.Ea()),a.Y4a=!1);var c=a.Oa;zc(c);c.appendChild(b)};iXd.prototype.Km=function(){this.Qb.className="a-ie-wa-m d-k-l";var a=this.Ea();I3e(this,a.Pa("div",{style:"text-align: left;"},"We can't find the image at that URL.",a.Pa("ul",null,a.Pa("li",null,"Please check the address for typing errors."),a.Pa("li",null,"Make sure the image is public. If your image is protected by a password, or on an internal network, we will not be able to read it."))),!0)};
var mXd=function(a){I3e(a,"The video URL you entered above can't be loaded.  Please make sure it is correct and is from a supported site.")};q=iXd.prototype;q.xGc=function(){this.Qb.className="a-ie-wa-m d-k-l";I3e(this,"Preview unavailable.")};
q.eUb=function(){var a=this.getContext(),b=a.od,c=this.mL.value;if(a.rd().YY)this.Ab.qh(!1),b.Vd(new K3("importPhoto","picasa",[],{url:c,label:"profile_photos.draft"}),Lp(this.tjd,this),Lp(this.KBc,this),!0);else if(this.X4a)a={},a.url=c,a.name=Jf(c).getPath().split("/").pop(),a.type="photo",a.serviceId="url",a=new Vw(a),this.Kqa&&(b=(b=zgf(c))&&ygf(b))&&(a.$b=b,a.Fs=null),(b=this.Oa.getElementsByTagName("img")[0])&&a.ZE([new Uw(this.Kqa?b.src:c,b.naturalWidth,b.naturalHeight)]),this.getContext().Ab.Sl([a]);
else{var d=KQd(IQd.ia(),c);d?b.Vd(new u3("youtube",[d],{}),Lp(this.BMc,this),Lp(this.yEb,this)):a.Ab.Sta(c)}};q.BMc=function(a){(a=a.Ae())&&0<a.length?this.getContext().Ab.Sl(a):this.yEb()};q.yEb=function(){alert("The video you selected no longer exists.  The owner may have removed it.");this.dUb()};q.tjd=function(a){a=a.Ae()[0];var b=new w3("crop");BN(b,"id",a.Qe());BN(b,"service",a.Sa);b.Ab=this.Bc;this.getContext().Mh.On(b);this.Ab.qh(!0)};
q.KBc=function(){alert("The image URL you specified could not be retrieved.  It may be a private URL that our servers cannot access.  Please try a different URL.");this.Ab.qh(!0)};q.dUb=function(){this.mL.value="";this.iEb()};q.WBe=function(a){if((a=a.Ae())&&0<a.length&&"photo"==a[0].Ra()&&(a=a[0].Yh())&&0<a.length){Agf(this,a[0].ll(400).getUrl());return}this.iuc()};q.iuc=function(){this.Qb.className="a-ie-wa-m d-k-l";I3e(this,"The image URL you have entered above is incorrect or can't be loaded.")};
var O4=function(){F3.call(this,"a-Xl-e")};t(O4,F3);la(O4);O4.prototype.Pa=function(a){var b=a.La(),c=b.getUrl(),d=b.getName(),f=en(b.Jd()),b=b.getAttribute("vu"),h=a.Ea(),c=h.Pa("a",{href:c,target:"_blank",tabIndex:-1},cd(h,d)),f=h.Pa("div","a-Xl-e-B",cd(h,f));return h.Pa("div",this.qr(a).join(" "),h.Pa("div","a-Xl-e-O",c),f,h.Pa("div","a-Xl-e-qe",b))};O4.prototype.jh=function(a){return a.ta().firstChild}; O4.prototype.setState=function(a,b,c){O4.ya.setState.call(this,a,b,c);32==b&&(nc("a",null,a.ta())[0].tabIndex=c?0:-1)};
var nXd=function(a,b,c){y4.call(this,a,b,void 0,"vertical",c)};t(nXd,y4);nXd.prototype.ED=function(a){return new E3(this.getContext(),a,O4.ia(),this.Ea())};var oXd=function(){kd.call(this)};t(oXd,kd);q=oXd.prototype;q.fh=function(){return!0};q.hDa=function(){return!0};
q.create=function(a,b,c){if("web"==a.Sa||"blog-search"==a.Sa){if(a.getQuery()){var d=new nXd(b,a,c);return new C4(b,a,d,[],c)}d=new A4(b,a,"web"==a.Sa?"Type your search in the box above to find web results using Google Web Search.":"Type your search in the box above to find blog results using Google Blog Search.",c);return new C4(b,a,d,[],c)}if("book-search"==a.Sa){if(a.getQuery())return d=new VWd(b,a,c),new C4(b,a,d,[],c);d=new A4(b,a,"Type your search in the box above to find eBook results using Google Books.",
c);return new C4(b,a,d,[],c)}if("url"==a.Sa)return new iXd(b,a,c);if("icon"==a.Sa)return new hXd(b,a,c);if("fonts"==a.Sa)return new fXd(b,a,new M4(b,a,c),c);if("promo"==a.Sa)return new lug(b,a,c);d=new y4(b,a,new L3,void 0,c);return new C4(b,a,d,[],c)};q.sXb=function(){return!1};q.load=function(a,b){a.call(b)};
var pXd=function(a){kd.call(this);this.Sa=a};t(pXd,kd);q=pXd.prototype;q.fh=function(){return xg(E.ia(),this.Sa).fh()};q.load=function(a,b){Ag(E.ia(),this.Sa,a,b,void 0,!0,!0)};q.create=function(a,b,c){var d=wg(xg(E.ia(),this.Sa));return d&&d.uj(a,b,c)};q.hDa=function(a,b){return this.Sa==kWd(a,b)};q.sXb=function(a,b){var c=kWd(a,b);return"opu"==c||"oppu"==c||FQd(a.Sa)};
var Q4=function(a,b,c){kd.call(this);x(this,a);this.Ab=new ag;lca=My.Bo();var d=new fFa(a);x(this,d);var f=new XVd,h=new jWd,k=new iWd,m=new dWd(a,k),p=new qXd(d);b=new YVd(a,m,b);var u=new RVd(d),z=S$f(this,a);this.$b=new rWd(c);x(this,this.$b);var F=E.ia();F.Ag||dea(F,z);h=new E4(f,b,h,k,m,d,a.Maa,p,this.Ab,u,a,0,z,this.$b);b.Sa=h;m2e(b);d.Sa=h;f.Sa=h;f.getHandler().Ja(f.Sa.Qb,"set-max-items",f.FHc);f.getHandler().Ja(f.Sa.Qb,"set-max-size-bytes",f.GHc);if(window.top!=window.parent&&!My.mL&&(d.xk(45),
a.sA))throw Error(a.cSa);if(!My.Ab&&window.location.ancestorOrigins&&0<window.location.ancestorOrigins.length&&(f=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1],(a=a.getOrigin())&&(a=Df(Ef(Cf(Jf(a),""),""),void 0).toString()),a!=f))throw d.xk(0),Error("Rm");this.Sa=h;x(this,h);this.Qb=new K4(h,c);x(this,this.Qb);this.Sa.Vb=this.Qb.Ab;for(c=0;c<CXd.length;c++)d=new pXd(CXd[c]),SWd.push(d);c=new oXd;SWd.push(c);this.initializeFromServer=this.mL;this.dispose=this.Ma;Uf(b.Lvd,
0,b)};t(Q4,kd);Q4.prototype.initialize=function(){var a=this.Sa.rd(),b=this.Oa;b&&(b.Ta(!0),b.Sa());try{document.execCommand("BackgroundImageCache",!1,!0)}catch(c){}jRd=a.mBa;r0d=a.qSa;nhg=a.Km;psg=a.ona;DHg=a.h2b;var d=this.Sa.od;d.Qb(new mWd);v(a.sFa,function(a){d.Qb(this.ka().get(a))},this.Sa);this.Ab.addCallback(function(a){gKa=a.Gf();var b=hKa||{};Zb(b,a.d3b);hKa=b;d.YY.initialize()});this.Qb.render(a.ta());xc&&0==Xa(nf,"7")&&Uf(function(){Pd(a.ta(),"zoom","1")},0,this)};
var S$f=function(a,b){if(b.ka())return b.ka();var c=new Lv;x(a,c);var d=jc(b.fG()),d=new Jn(c,d.La());c.Sa(Qt,d);d=new Moa(c);c.Sa(Su,d);c.Sa(VYa,new NBa({locale:My.Sa,Aa:b.YUa}));var d=new oza(new Hn),d=new uza("root",d),f=new Zga(d);d.ib(f);a.Ab.addCallback(function(a){ay(f,"oid",a.getUserId())});d=new Oga(c,d);c.Sa(Bt,d);return c};Q4.prototype.mL=function(a){this.Ab.jl||this.Ab.By(new yXd(this.Sa,a))};Q4.prototype.getContext=function(){return this.Sa}; Q4.prototype.qb=function(){Q4.ya.qb.call(this);var a=this.Oa;a&&(a.Ta(!1),a.Ab(!1),delete this.Oa)};
var R4=function(a,b){jx.call(this,this.Rhd,!0,b);this.Ab=a;this.ud(a.bNa());this.mL=K3e(a.mL)+"pir";this.ep=!1};t(R4,WRb);var ZXd=["hostId","hl"];q=R4.prototype;q.dtb="a-G-q";q.yP=null;q.Rhd="a "+R4.prototype.dtb;q.Na=function(){R4.ya.Na.call(this);var a=this.xe,b=a.Bu();if(a=b&&gK(a,b))a.disabled=!0;a=tFa(this);a=this.getHandler().Ja(a,"mouseover",Lp(this.DCb,this,!0)).Ja(a,"mouseout",Lp(this.DCb,this,!1)).Ja(this,"dialogselect",Lp(this.Hvc,this));xNc(this.ta(),a);xNc(this.hg(),a)};
q.Hvc=function(a){a.key==this.xe.mL&&this.kM(new hEc)};q.DCb=function(a){Pn(tFa(this),"a-G-q-O-ab-u",a)};
q.render=function(a){R4.ya.render.call(this,a);Qn(tFa(this),"a-WNq8W-ab-xc");this.TUa();this.getHandler().Ja(this.Ea().getWindow(),"resize",this.TUa);a=this.Ab;var b=a.IAa(),c=a.getTitle();c?(this.setTitle(c),b.dfc&&(c=this.Ea().Pa("span",this.Rhd+"-KsV2dd-c4-E","Dogfood Confidential"),lx(this).appendChild(c)),rNc(a)):On(lx(this),!1);var c=new Wf,d=a.cNa();Hf(Hf(Cf(d.Zy(""),this.mL),"app","2"),"subapp","5");var f=b.authuser;f&&Hf(d,"authuser",f);(f=b.groupId)&&Hf(d,"groupId",f);(f=b.gmailDelegatorId)&&
Hf(d,"gmailDelegatorId",f);(f=b.apt)&&Hf(d,"apt",f);Pb(YXd,function(a){b[a]&&Hf(d,a,!0)});this.getHandler().yj(c,"success",Lp(this.CHb,this,c));var h={};v(ZXd,function(a){h[a]=d.Pg(a);ada(d,a)});f=d.getQuery();Df(d,iXb(h));c.send(d,"POST",f);b.outerElement||(b.outerElement=lF(this));b.element=this.cb();b.loadingStatusElement=this.cb();b.uriPrefix=K3e(a.mL);b["native"]=!0;c=new eWd(b);a.yTb("maps")?DXd(Lp(this.RUa,this,c),this.Ea()):this.RUa(c)};
q.Wd=function(){if(this.Ab.IAa().shadeDialog){var a=oe(this.ta()),b=rc(this.Ea().getWindow()),a=Math.max(b.width/2-a.width/2,0),b=fd(this.Ea()).y;Vd(this.ta(),a,b)}else R4.ya.Wd.call(this)};q.setSize=function(a,b){this.Ea().getWindow();var c=this.ta(),d=ye(c),c=a-d.right-d.left,d=b-d.top-d.bottom;le(this.cb(),c,d);if(ve(lx(this))){var f=oe(lx(this)),d=d-f.height;me(sFa(this),c-50)}le(this.cb(),c,d);this.Wd()};
q.TUa=function(){var a=this.Ab.IAa().shadeDialog?zNc(this.Ea().getWindow()):ANc(this.Ea().getWindow(),this.Ab.wc(),this.Ab.Ic());this.setSize(a.width,a.height)};q.CHb=function(a){var b=this.Ab.IAa();a=a.Lq();try{var c=lWd(a,"&&&START&&&");this.yP=Qf(c);this.Sa&&this.yP&&this.Sa.mL(this.yP)}catch(d){(b=b.serverConfigErrback)&&b(a)}};var K3e=function(a){a=a||"";return"/"==a[a.length-1]?a:a+"/"};q=R4.prototype;
q.RUa=function(a){this.Sa=new Q4(a,Lp(this.DHb,this,this.Ab.nn),this.Ea());this.Sa.initialize();this.Sa&&this.yP&&this.Sa.mL(this.yP)};q.DHb=function(a,b){var c=b.action;"picked"!=c&&"cancel"!=c||this.setVisible(!1);a(b)};q.kM=function(a){this.Sa.Sa.Qb.Sa(a)};q.setVisible=function(a){this.Sa&&!this.Sa.cge()?this.BZb(a,0):R4.ya.setVisible.call(this,a)};
q.BZb=function(a,b){if(a){this.Nb()||this.render();var c=oe(this.ta());10>b&&(0>=c.width||0>=c.height)&&Uf(Lp(this.BZb,this,a,b++),10);R4.ya.setVisible.call(this,!0);this.Sa&&this.Sa.getContext().Ab.$b()}!a&&this.cHa||this.kM(new tNc(a));a||R4.ya.setVisible.call(this,!1)};q.qb=function(){y(this.Sa);R4.ya.qb.call(this)};

G("sy884");I();
}catch(e){_DumpException(e)}
try{
H("sy817");
G("sy817");I();
}catch(e){_DumpException(e)}
try{
H("sy895");var aYd=function(a,b){var c=Jc(a.rd().ta()),d=wg(xg(E.ia(),"oppe")),f=a.ka(),c=new dN(f,b,c,My.Bo());bYd(a,c.Us());cYd(a,d,c);TYb(c.Us(),new ZO);My.Ab||(c.O_=6);return c},bYd=function(a,b){a.mL.addCallback(function(c){var d=c.getUserId(),f=c.yc();c=c.txd;var h=new yk;Py(h,3,d);Py(h,1,f);var k=new Ck;Py(k,9,c);a.YY.addCallback(function(a){tB(k,a)});Py(k,22,"(you)");d=new yB(h,k,!0);d=new eN(new hE([d]));cN(b,d)})},cYd=function(a,b,c){var d=b.d$(a);d.Qb.addCallback(function(b){c.xJ(b);cN(c.Us(),d.jg); dYd(a,c.Us())})},eYd=function(a,b,c){var d=new ag;a.mL.addCallback(function(f){var h=f.yhd;f=f.xhd;d.By(new XO(a.rd().Mna,pg(h),String(a.rd().Ko),c,b,f,!1,void 0))});return d},dYd=function(a,b){a.mL.addCallback(function(){cN(b,eYd(a))})};

G("sy895");I();
}catch(e){_DumpException(e)}
try{
H("sy898");var D4e=function(a){kd.call(this);this.mL=a;this.Sa=!0;this.xb=this.Ff=null};t(D4e,kd);q=D4e.prototype;q.yb=function(a){this.xb=a;this.Ff&&this.Ff.yb(a)};q.ta=function(){return this.xb};q.rq=function(){this.Ff&&this.Ff.rq()};q.Ta=function(a){this.Sa=a;this.xb&&Pn(this.xb,"a-w-e-F-I",!this.Sa)};q.hasFocus=function(){return!!this.Ff&&this.Ff.hasFocus()};q.getValue=function(){this.Ff&&(this.Ab=this.Ff.getValue());return this.Ab}; var E4e=function(a,b){a.Ab=b;a.Ff?a.Ff.qe(b):a.xb.value=b||a.mL},F4e=function(a){a.Ff||(a.Ff=new vx(a.mL),a.xb&&a.Ff.yb(a.xb),a.Ff.qe(a.Ab||""),a.Ta(a.Sa),x(a,a.Ff))},G4e=function(a){a.Ff&&(E4e(a,a.Ff.getValue()),a.Ff.Ma(),a.Ff=null)};
var H4e=function(a){bx.call(this,a);this.p3a=Math.pow(5,2);zd(this.handle,["touchstart","mousedown"],this.Sa,!1,this)};t(H4e,bx);H4e.prototype.Ab=ka;var L2d=function(a,b,c,d,f){a.Vd(new u3("picasa",[b],{type:"album"}),function(b){var f=b.Ae()[0];f&&c&&f.zJ(!0);a.Xp(b.Ae()||[]);d(f)},f||ka)};
G("sy898");I();
}catch(e){_DumpException(e)}
try{
var YE=function(a,b,c,d,f){VE.call(this,a,[b],[c],d,f)};t(YE,VE);YE.prototype.UH=function(){this.element.style.width=Math.round(this.coords[0])+"px"};H("sy422");var wJ=function(a,b){C.call(this,a);this.Sa=new jyb;this.Sx=b||Hx;ud(this.Sa,"change",this.lp,!1,this)};t(wJ,C);q=wJ.prototype;q.wba=!1;q.uja=!1;q.SQ=10;q.PGb=!0;q.Kab=0;q.HH=!0;q.Pa=function(){wJ.ya.Pa.call(this);var a=this.Ea().Pa("div",this.Pc("horizontal"));this.ra(a)};q.ra=function(a){wJ.ya.ra.call(this,a);Qn(a,this.Pc("horizontal"));a=this.ta();var b=nc(null,"d-Gd-na",a)[0];b||(b=this.Ea().Pa("div","d-Gd-na"),po(b,"button"),a.appendChild(b));this.mL=this.Oa=b;a=this.ta();po(a,"slider");zyb(this)};
q.Na=function(){wJ.ya.Na.call(this);this.Qb=new bx(this.mL);this.$b=new bx(this.Oa);this.Qb.Zra=!1;this.$b.Zra=!1;this.Qb.Ab=this.$b.Ab=ka;this.Vk=new ro(this.ta());nyb(this,!0);this.ta().tabIndex=0;MLd(this)};
var nyb=function(a,b){b?(a.getHandler().Ja(a.Qb,"beforedrag",a.oHa).Ja(a.$b,"beforedrag",a.oHa).Ja(a.Qb,["start","end"],a.VHa).Ja(a.$b,["start","end"],a.VHa).Ja(a.Vk,"key",a.Wzb).Ja(a.ta(),"click",a.Jua).Ja(a.ta(),"mousedown",a.Jua),a.PGb&&oyb(a,!0)):(a.getHandler().nb(a.Qb,"beforedrag",a.oHa).nb(a.$b,"beforedrag",a.oHa).nb(a.Qb,["start","end"],a.VHa).nb(a.$b,["start","end"],a.VHa).nb(a.Vk,"key",a.Wzb).nb(a.ta(),"click",a.Jua).nb(a.ta(),"mousedown",a.Jua),a.PGb&&oyb(a,!1))};q=wJ.prototype;
q.Ib=function(){wJ.ya.Ib.call(this);od(this.Qb,this.$b,this.Vk,this.Ab)};q.oHa=function(a){var b=a.Ab==this.Qb?this.mL:this.Oa,c;c=this.ta().clientWidth-b.offsetWidth;c=a.left/c*(yJ(this)-xJ(this))+xJ(this);c=a.Ab==this.Qb?Math.min(Math.max(c,xJ(this)),this.getValue()+vJ(this.Sa)):Math.min(Math.max(c,this.getValue()),yJ(this));syb(this,b,c)};
q.VHa=function(a){var b="start"==a.type;Pn(this.ta(),"d-Gd-lA",b);Pn(a.target.handle,"d-Gd-na-lA",b);a=a.Ab==this.Qb;b?(this.dispatchEvent("Od"),this.dispatchEvent(a?"sc":"Md")):(this.dispatchEvent("Ee"),this.dispatchEvent(a?"hd":"Nd"))};
q.Wzb=function(a){var b=!0;switch(a.keyCode){case 36:xyb(this,xJ(this));break;case 35:xyb(this,yJ(this));break;case 33:AJ(this,this.SQ);break;case 34:AJ(this,-this.SQ);break;case 37:var c=-1;AJ(this,a.shiftKey?c*this.SQ:c*this.uG);break;case 40:AJ(this,a.shiftKey?-this.SQ:-this.uG);break;case 39:c=1;AJ(this,a.shiftKey?c*this.SQ:c*this.uG);break;case 38:AJ(this,a.shiftKey?this.SQ:this.uG);break;default:b=!1}b&&a.preventDefault()};
q.Jua=function(a){this.ta().focus&&this.ta().focus();var b=a.target;Oc(this.mL,b)||Oc(this.Oa,b)||(b="click"==a.type,b&&Wa()<this.Kab+1E3||(b||(this.Kab=Wa()),this.uja?xyb(this,qyb(this,a)):(this.ifb(a),this.Vb=tyb(this,qyb(this,a)),this.iu=this.Db>this.Vb.offsetLeft+this.Vb.offsetWidth,a=lc(this.ta()),this.getHandler().Ja(a,"mouseup",this.efb,!0).Ja(this.ta(),"mousemove",this.ifb),this.YY||(this.YY=new Sf(200),this.getHandler().Ja(this.YY,"tick",this.Zzb)),this.Zzb(),this.YY.start())))};
q.Yzb=function(a){AJ(this,(0<a.Vk?-1:1)*this.uG);a.preventDefault()};q.Zzb=function(){var a,b=this.Db,c=this.Vb.offsetLeft;this.iu?b>c+this.Vb.offsetWidth&&(a=zJ(this,this.Vb)+this.SQ):b<c&&(a=zJ(this,this.Vb)-this.SQ);ia(a)&&syb(this,this.Vb,a)};q.efb=function(){this.YY&&this.YY.stop();var a=lc(this.ta());this.getHandler().nb(a,"mouseup",this.efb,!0).nb(this.ta(),"mousemove",this.ifb)};q.ifb=function(a){this.Db=he(a,this.ta()).x};
var qyb=function(a,b){var c=xJ(a),d=yJ(a),f=a.mL.offsetWidth,h=a.ta().clientWidth-f,f=he(b,a.ta()).x-f/2;return(d-c)*f/h+c},zJ=function(a,b){if(b==a.mL)return a.Sa.getValue();if(b==a.Oa)return a.Sa.getValue()+vJ(a.Sa);throw Error("Fd");},AJ=function(a,b){Math.abs(b)<a.Sa.KB&&(b=OG(b)*a.Sa.KB);var c=zJ(a,a.mL)+b,d=zJ(a,a.Oa)+b,c=Cb(c,xJ(a),yJ(a)-0),d=Cb(d,xJ(a)+0,yJ(a));ryb(a,c,d-c)},syb=function(a,b,c){var d=uJ(a.Sa,c);c=b==a.mL?d:a.Sa.getValue();b=b==a.Oa?d:a.Sa.getValue()+vJ(a.Sa);c>=xJ(a)&&b>=
c+0&&yJ(a)>=b&&ryb(a,c,b-c)},ryb=function(a,b,c){xJ(a)<=b&&b<=yJ(a)-c&&0<=c&&c<=yJ(a)-b&&(b!=a.getValue()||c!=vJ(a.Sa))&&(a.Sa.gba=!0,lyb(a.Sa,0),sN(a.Sa,b),lyb(a.Sa,c),a.Sa.gba=!1,a.lp())},xJ=function(a){return Eic(a.Sa)},yJ=function(a){return Fic(a.Sa)},tyb=function(a,b){return b<=a.Sa.getValue()+vJ(a.Sa)/2?a.mL:a.Oa};wJ.prototype.lp=function(){MLd(this);zyb(this);this.dispatchEvent("change")};
var MLd=function(a){var b;if(a.mL&&!a.wba){b=vyb(a,zJ(a,a.mL));var c=vyb(a,zJ(a,a.Oa));a.mL.style.left=b.x+"px";a.Oa.style.left=c.x+"px";a.Ag&&(b=uyb(b.x,c.x,a.mL.offsetWidth),a.Ag.style.left=b.offset+"px",a.Ag.style.width=b.size+"px")}},uyb=function(a,b,c){var d=Math.ceil(c/2);return{offset:a+d,size:Math.max(b-a+c-2*d,0)}},vyb=function(a,b){var c=new Gb;if(a.mL){var d=xJ(a),f=yJ(a),d=b==d&&d==f?0:(b-d)/(f-d),f=a.ta().clientWidth-a.mL.offsetWidth,d=Math.round(d*f);c.x=d;c.y=a.mL.offsetTop}return c},
xyb=function(a,b){var c,d,f;b=Cb(b,xJ(a),yJ(a));a.wba&&a.Ko.stop(!0);var h=new sJ;f=tyb(a,b);d=a.getValue();var k=vJ(a.Sa);c=zJ(a,f);var m=vyb(a,c),p=a.Sa.KB;Math.abs(b-c)<p&&(b=Cb(c+(b>c?p:-p),xJ(a),yJ(a)));syb(a,f,b);c=vyb(a,zJ(a,f));m=new WE(f,[m.x,m.y],[c.x,f.offsetTop],100);m.Ab=!1;h.add(m);a.Ag&&(m=vyb(a,d),p=vyb(a,d+k),d=m,k=p,f==a.mL?d=c:k=c,f=uyb(m.x,p.x,a.mL.offsetWidth),d=uyb(d.x,k.x,a.mL.offsetWidth),c=new WE(a.Ag,[f.offset,a.Ag.offsetTop],[d.offset,a.Ag.offsetTop],100),f=new YE(a.Ag,
f.size,d.size,100),c.Ab=!1,f.Ab=!1,h.add(c),h.add(f));a.Ko=h;a.getHandler().Ja(h,"end",a.otc);a.wba=!0;h.play(!1)};q=wJ.prototype;q.otc=function(){this.wba=!1};q.qb=function(){wJ.ya.qb.call(this);this.YY&&this.YY.Ma();delete this.YY;this.Ko&&this.Ko.Ma();delete this.Ko;delete this.mL;delete this.Oa;this.Ag&&delete this.Ag;this.Sa.Ma();delete this.Sa;this.Vk&&(this.Vk.Ma(),delete this.Vk);this.Ab&&(this.Ab.Ma(),delete this.Ab);this.Qb&&(this.Qb.Ma(),delete this.Qb);this.$b&&(this.$b.Ma(),delete this.$b)};
q.uG=1;q.getValue=function(){return this.Sa.getValue()};q.JJ=function(a){syb(this,this.mL,a)};q.setVisible=function(a){On(this.ta(),a);a&&MLd(this)};var zyb=function(a){var b=a.ta();b&&(qo(b,"valuemin",xJ(a)),qo(b,"valuemax",yJ(a)),qo(b,"valuenow",a.getValue()),qo(b,"valuetext",a.Sx(a.getValue())||""))},oyb=function(a,b){b?(a.Ab||(a.Ab=new PG(a.ta())),a.getHandler().Ja(a.Ab,"mousewheel",a.Yzb)):a.getHandler().nb(a.Ab,"mousewheel",a.Yzb)}; wJ.prototype.Ta=function(a){this.HH!=a&&this.dispatchEvent(a?"enable":"disable")&&(this.HH=a,nyb(this,a),a||this.efb(),Pn(this.ta(),"d-Gd-I",!a))};wJ.prototype.isEnabled=function(){return this.HH};
var BJ=function(a,b){wJ.call(this,a,b);lyb(this.Sa,0)};t(BJ,wJ);BJ.prototype.Pc=function(a){return"vertical"==a?"d-Gd-ih":"d-Gd-jb"};
G("sy422");I();
}catch(e){_DumpException(e)}
try{
var qhg=function(a,b){A.call(this,a,b)};t(qhg,A);var M_d=function(a){A.call(this,"TE",a)};t(M_d,A);M5.prototype.xna=g(649,function(){Uf(function(){if(this.Oa){var a=this.Ea().ta(this.Oa.B6);a&&a.click()}},50,this)});W3.prototype.kJa=g(646,function(){return this.dc});W3.prototype.h9=g(645,function(){this.setVisible(!1);this.Qb=void 0;var a=this.Sa;this.Sa=null;this.OL="";On(this.Ab,!1);a&&this.dispatchEvent(new qhg("lc",a))});
W3.prototype.Aoa=g(644,function(a){if(this.Sa!=a){this.h9();this.Sa=a;a=N_d(a);var b="";"function"==typeof this.Sa.yw&&(b=this.Sa.yw().getContent());a&&this.yN(a,b);this.dispatchEvent(new qhg("qc",this.Sa))}});var Q_d=function(a,b){T3.call(this,a,b)};t(Q_d,T3);Q_d.prototype.pT=function(a){Q_d.ya.pT.call(this,a);this.dispatchEvent(new M_d)};var R_d=function(a,b){a.mL=b},y1d=function(a,b,c,d,f){C4.call(this,a,b,c,d,f)};t(y1d,C4);
y1d.prototype.C5=function(){var a=this.Ab;a.qh(!0);var b=this.Gf().getOption("selectAlbumLabel"),b=E5d(this)?this.getContext().rd().Hwa():b||"Select album";a.Pt.setContent(b)};y1d.prototype.j2a=function(a){var b=this.getContext().od.La(this.Gf().getOption("parent"));!b||E5d(this)?y1d.ya.j2a.call(this,a):this.getContext().Ab.Sl([b])};var T_d=function(a,b){t3.call(this,a,b);this.Ab=this.YY=null};t(T_d,t3);
T_d.prototype.Pa=function(){var a=this.Ea(),a=a.Pa("div","a-QL",this.YY=a.Pa("div","a-QL-ep"),this.Ab=a.Pa("div","a-QL-ep"));this.Kb(a);this.getContext().od.Vd(new E_d,Lp(this.Qb,this),Lp(this.mL,this))};T_d.prototype.Qb=function(a){(a=a.Sa)?(a="Whoops!  You're out of space.  You are currently using 100% of your "+(Math.floor(a/1073741824)+(' GB quota for photos.  <a href="'+(F_d(this.getContext())+'" target="_blank">Upgrade storage</a>'))),F_d(this.getContext()),U_d(this,a)):this.mL()};
T_d.prototype.mL=function(){var a="Whoops!  You're out of space.  <a href=\""+(F_d(this.getContext())+'" target="_blank">Upgrade storage.</a>');F_d(this.getContext());U_d(this,a)};
var U_d=function(a,b){var c='Photos are stored in your Picasa Web Albums account and are included in your 1 GB free quota for photos.  Additional storage you purchase is shared between several Google products and is in addition to your free quota.  <a href="'+("https://picasa.google.com/support/bin/answer.py?hl="+My.Sa+'&answer=39567" target="_blank">Learn more</a>'),d=a.Ea();d.hb(a.YY);d.appendChild(a.YY,cd(d,b));d.hb(a.Ab);d.appendChild(a.Ab,cd(d,c))},V_d=function(a){a=BUd(a);return r4(a,dma(a)? ZUd:$Ud,void 0)},W_d=function(a){var b=function(a){a=parseInt(65535*a,10).toString(16);return Qa("0",Math.max(0,4-a.length))+a},c=a.right-a.left,d=a.bottom-a.top;return["1,",b(a.left),b(a.top),b(a.left+c),b(a.top+d)].join("")};H("opp");
var n1d=function(a){Qw.call(this,a);this.Ab&&(this.mL=WEa(this.Qb.docs||[]))};t(n1d,Qw);$S(12,function(a){return new n1d(a)});var o1d=function(a,b,c){Mw.call(this);this.Oa=a;this.Ag=b;this.mL=c};t(o1d,Mw);o1d.prototype.PD=pg(new Af("savecaption"));o1d.prototype.Sq=function(){return 12};o1d.prototype.xE=function(){var a=this.mL.clone();Pw(a,"photoId",this.Oa);Pw(a,"src",this.Ag);return a};
var Xog=function(a,b){Mw.call(this);this.Oa=a;this.jg=b.shareTarget;this.Ag=b.photoSource;this.mL=b.featureId};t(Xog,Mw);Xog.prototype.PD=pg(new Af("sharephototomaps"));Xog.prototype.Sq=function(){return 22};Xog.prototype.xE=function(){var a=new Ze;Pw(a,"photoIds",Rf(this.Oa));Pw(a,"photoSource",this.Ag);Pw(a,"shareTarget",this.jg);this.mL&&Pw(a,"featureId",this.mL);return a};
var hpg=function(a){Qw.call(this,a);if(this.Ab){a=this.Qb.photos||[];for(var b=[],c=0;c<a.length;c++){var d=a[c],f=new Vw(d),h=d.parent;f.parent=h&&h.substring(h.lastIndexOf(".")+1);d=d.thumbs[0];f.ZE([new Uw(WRd(d.u),d.w,d.h,d.r)]);b.push(f)}this.mL=b}};t(hpg,Qw);hpg.prototype.Rc=function(){return this.Sa};$S(22,function(a){return new hpg(a)});
var e5=function(a,b){m4.call(this,a,b)};t(e5,m4);e5.prototype.hp=function(a,b,c){e5.ya.hp.call(this,a,b,c);a=ec(a,function(a){return!a.Ii||"success"==a.Ii.getState()},this);b=this.options.evid;"album"==a[0].Ra()?X_d(this,a,b):Y_d(this,a,b)};
var X_d=function(a,b,c){var d=0;v(b,function(a){d++;var h={albumId:a.Qe(),albumName:this.options.albumName||a.getName(),eventId:c};"ownerOnly"==P_d(a.getAttribute("aa"))&&(h.associate="true");this.Sa.Vd(new K3("addPhotosToEvent","picasa",null,h),Lp(function(){0==--d&&this.By(b)},this),Lp(this.Ab,this,b.length))},a)},Y_d=function(a,b,c){eVd(E.ia(),"oppe");eVd(E.ia(),"opt");a.Sa.Vd(new K3("multiInclude","picasa",zg(b,function(a){return a.Qe()}),{albumName:a.options.albumName,getOrCreateLabel:"evid_"+
c,evid:c}),Lp(a.$b,a,b),Lp(a.Qb,a,b.length),!0)};e5.prototype.$b=function(a,b){this.By(ub(b.Ae(),1))};e5.prototype.Qb=function(a){this.Sa.xk(11);this.jd((new Z("{numPhotos, plural, =0 {unused plural form}=1 {Sorry! We could not add the photo you selected. Please try again later.}other {Sorry! We could not add the photos you selected. Please try again later.}}")).format({numPhotos:a}))};e5.prototype.Ab=function(a){this.Sa.xk(12);this.jd((new Z("{numAlbums, plural, =0 {unused plural form}=1 {Sorry! We could not add the album you selected. Please try again later.}other {Sorry! We could not add the albums you selected. Please try again later.}}")).format({numAlbums:a}))};
var Z_d=function(a,b){m4.call(this,a,b)};t(Z_d,m4);Z_d.prototype.hp=function(a,b,c){Z_d.ya.hp.call(this,a,b,c);if(a[0].getAttribute("cs")){b=[];c=!1;for(var d=0;d<a.length;d++)b.push(a[d].getId()),c|="video"==a[d].Ra();this.Sa.Vd(new K3("multiInclude","picasa",b,{albumId:this.options.albumId}),Lp(this.Qb,this,c),Lp(this.Ab,this,c))}else this.By(a)};Z_d.prototype.Qb=function(a,b){var c=ec(b.Ae(),function(a){return"photo"==a.Ra()||"video"==a.Ra()});c?this.By(c):this.Ab(a)}; Z_d.prototype.Ab=function(a){this.Sa.xk(13);this.jd(a?"Sorry!  We could not copy your videos to your blog.":"Sorry!  We could not copy your photos to your blog.")};
var SW=function(a,b){m4.call(this,a,b)};t(SW,m4);SW.prototype.Ab=0;SW.prototype.hp=function(a,b,c){SW.ya.hp.call(this,a,b,c);var d={};this.options.visibility&&(d.visibility=this.options.visibility);Ub(d)||(d.nofetchcontents="true",v(a,function(b){"album"==b.Ra()&&(this.Ab++,d.parent=b.Qe(),d.aa=b.getAttribute("aa"),this.Sa.Vd(new K3("changeAlbumAttrs","picasa",null,d),Lp(this.$b,this,b,a),Lp(this.Qb,this),!0))},this));0==this.Ab&&this.By(a)}; SW.prototype.$b=function(a,b,c){this.Ab--;c.Ae()&&c.Ae()[0]&&(a.zKa(c.Ae()[0]),this.Sa.$Ua(a.getId(),a));0==this.Ab&&this.By(b)};SW.prototype.Qb=function(){this.Ab&&(this.Ab=0,this.jd("Oops! An error occurred. Please try again later."))};
var EGg=function(a,b){m4.call(this,a,b)};t(EGg,m4);EGg.prototype.hp=function(a,b,c){EGg.ya.hp.call(this,a,b,c);a.length&&"photo"==a[0].Ra()&&this.options.finalizeAlbum?(b={albumMode:"final",parent:a[0].vt()},this.Sa.Vd(new K3("changeAlbumAttrs","picasa",null,b),Lp(this.By,this,a),Lp(this.Ab,this))):this.By(a)};EGg.prototype.Ab=function(){this.jd("Oops! An error occurred. Please try again later.")};
var $_d=function(a,b){m4.call(this,a,b)};t($_d,m4);$_d.prototype.hp=function(a,b,c){$_d.ya.hp.call(this,a,b,c);b={contactId:this.options.contactId};if(a.length){var d=a[0];"contacts"==d.Sa?b.evergreen=!0:b.url=d.Yh()[0].Qs(2048,["c"])}else b.noPhoto=!0;this.Sa.Vd(new K3("setContactPhoto","contacts",a.length?[d.Qe()]:[],b),Lp(function(a){this.By(a.Ae())},this),Lp(this.Ab,this))};$_d.prototype.Ab=function(){this.Sa.xk(15);this.jd("Sorry!  We could not save your requested photo.  Please try again later.")};
var a0d=function(a,b){m4.call(this,a,b)};t(a0d,m4);a0d.prototype.hp=function(a,b,c){a0d.ya.hp.call(this,a,b,c);var d=a[0];a=[d.getId()];c={};if(this.options.label)c.label=this.options.label;else if(this.options.parent)c.parent=this.options.parent;else{this.Ab();return}d.Ii?(b="move",c.src=d.vt()):(b="copy",(d=d.Qja)?c.srcOwnerId=d[0].getId():c.preventDuplicates="true");this.Sa.Vd(new K3(b,"picasa",a,c),Lp(this.Qb,this),Lp(this.Ab,this,"transfer xhr"))}; a0d.prototype.Qb=function(a){(a=a.Ae())?this.By(a):this.Ab()};a0d.prototype.Ab=function(){this.Sa.xk(14);this.jd("Sorry! We could not save your photo. Please try again later.")};
var a7e=function(a,b){m4.call(this,a,b)};t(a7e,m4);a7e.prototype.hp=function(a,b,c){a7e.ya.hp.call(this,a,b,c);a=a[0].getId();b="ctpac"==this.options.mode;c={};c.parent=a;c.src="0";this.Sa.Vd(new K3(b?"copy":"move","picasa",this.options.ids.split(","),c),Lp(function(a){this.By(a.Ae())},this),Lp(this.Ab,this),!0)};a7e.prototype.Ab=function(){"ctpac"==this.options.mode?this.jd("Sorry!  We could not copy your photos."):this.jd("Sorry!  We could not move your photos.")};
var b0d=function(a,b,c,d,f,h,k){if(c)for(var m=a.getImageData(),m=(d+m.Ab)%4,p=0;p<m;++p){var u={};u.top=1-c.right;u.right=c.bottom;u.bottom=1-c.left;u.left=c.top;c=u}d&&(c=c||{},c.rotation=d);b.Vd(new K3(f,"picasa",[a.getId()],c||null),h,k)};var c0d=function(a,b){m4.call(this,a,b)};t(c0d,m4);c0d.prototype.$b=void 0;c0d.prototype.Ab=void 0;c0d.prototype.hp=function(a,b,c){c0d.ya.hp.call(this,a,b,c);(b=a[0])&&"photo"==b.Ra()?(a={},this.$b=b.getAttribute("c"),this.Ab=b.getAttribute("r"),b.Ii?Btg(this,b):(a.srcOwnerId=b.Qja[0].getId(),a.albumless="true",this.Sa.Vd(new K3("copy","picasa",[b.getId()],a),Lp(function(a){Btg(this,a.Ae()[0])},this),Lp(this.Qb,this)))):this.By(a)};
var Btg=function(a,b){b0d(b,a.Sa,a.$b,a.Ab,"crop",Lp(a.Ag,a),Lp(a.Qb,a))};c0d.prototype.Ag=function(a){var b=a.Ae();b?this.By(b):this.Qb(a)};c0d.prototype.Qb=function(a){this.Sa.xk(16);a&&1==a.Ug()?this.jd("Sorry!  You are out of storage space."):this.jd("Sorry!  We could not save your photo.  Please try again later.")};
var e0d=function(a,b){m4.call(this,a,b)};t(e0d,m4);e0d.prototype.hp=function(a,b,c){e0d.ya.hp.call(this,a,b,c);a[0].Kn()?Jbe(this,a):uxg(this,a)};
var Jxg=function(a,b){var c=["photo_provider:"+a.options.photoProvider,"local:anchor"];b&&c.push("updates");return c},Kxg=function(a){var b=["photo_provider:"+a.options.photoProvider,"local:anchor","geo:explicit_share"];1==a.options.donatePhotos&&b.push("suppress_in_place_visit");return b.concat("local:"+a.options.cid)},g0d=function(a,b){return zg(b,function(a){return a.getId()},a)},uzg=function(a,b){var c={parent:b,labels:Jxg(a).join(",")},c=new K3("addLabel","picasa",[],c);return tzg(a,c)},tzg=
function(a,b,c){return new Ng(function(a,f){this.Sa.Vd(b,a,f,c)},a)},h0d=function(a,b,c){b=g0d(a,b);var d=[];if(qa(c[0]))for(var f={labels:c.join(",")},h=0;h<b.length;h+=3){var k=new K3("addLabel","picasa",b.slice(h,h+3),f);d.push(tzg(a,k))}else v(b,function(a,b){var f={labels:c[b].join(",")},f=new K3("addLabel","picasa",[a],f);d.push(tzg(this,f))},a);return Mkg(oxg(d),function(){Wzg(this)},a)},Jbe=function(a,b){var c={parent:b[0].vt(),visibility:"PUBLIC",geoinfoVisible:"true",albumMode:"final"},
c=Mkg(tzg(a,new K3("changeAlbumAttrs","picasa",null,c)),function(){Wzg(this)},a),d=uzg(a,b[0].vt(),Jxg(a)),f=h0d(a,b,Kxg(a));oxg([c,d,f]).then(function(){this.By(b)},void 0,a)},uxg=function(a,b){var c={labels:Jxg(a,!0).join(","),albumName:(new gn(1)).format(new dn),visibility:"PUBLIC",geoinfoVisible:"true"},c=new K3("multiInclude","picasa",g0d(a,b),c);tzg(a,c,!0).then(function(a){Xzg(this,b,a)},function(){Wzg(this)},a)},Xzg=function(a,b,c){var d=ub(c.Ae(),1);c=Lp(function(){this.By(d)},a);if(1==a.options.donatePhotos&&
b.length==d.length){var f=zg(d,function(a){return[["donated_to_local:"+a.Qe()]]},a);h0d(a,d,Kxg(a)).then(function(){return h0d(this,b,f)},void 0,a).then(c)}else h0d(a,d,Kxg(a)).then(c)},Wzg=function(a){a.Sa.xk(17);a.jd("Sorry! We could not save your photos. Please try again later.")};
var j0d=function(a,b){m4.call(this,a,b)};t(j0d,m4);j0d.prototype.hp=function(a,b,c){j0d.ya.hp.call(this,a,b,c);var d=[],f=[];v(a,function(a){"docs"==a.Sa?ib(f,a):ib(d,a)},this);f.length?(a={},a.cosmoIds=k0d(this,f).join(","),(b=this.config.Qb)?a.albumId=b:(a.albumName=(new gn(1)).format(new dn),a.albumMode="draft"),this.Sa.Vd(new K3("multiInclude","picasa",[],a),Lp(this.Qb,this,d),Lp(this.Ab,this),!0)):this.By(d)};var k0d=function(a,b){return zg(b,function(a){return a.Qe()},a)}; j0d.prototype.Qb=function(a,b){this.By(rb(a,ub(b.Ae(),1)))};j0d.prototype.Ab=function(){this.Sa.xk(18);this.jd("Sorry! We could not import your photos. Please try again later.")};
var b7e=function(a,b){m4.call(this,a,b)};t(b7e,m4);b7e.prototype.hp=function(a,b,c){b7e.ya.hp.call(this,a,b,c);b=this.mL.FH.getOptions().mtp;c=zg(a,function(a){return a.getId()});b?(a={},a.parent=b,a.src="0",this.Sa.Vd(new K3("move","picasa",c,a),Lp(function(a){this.By(a.Ae())},this),Lp(this.Ab,this),!0)):this.By(a)};b7e.prototype.Ab=function(){this.jd("Sorry! We could not add your photos to this album.")};
var f5=function(a,b){m4.call(this,a,b)};t(f5,m4);f5.prototype.Ab=0;f5.prototype.hp=function(a,b,c){f5.ya.hp.call(this,a,b,c);v(a,function(b){"album"==b.Ra()&&(this.Ab++,this.Sa.Vd(new $w({service:"picasa",parent:b.getId()}),Lp(this.Qb,this,b,a),Lp(this.$b,this),!0))},this);0==this.Ab&&this.By(a)};f5.prototype.Qb=function(a,b,c){c=c.Ae();a.jg=c;this.Ab--;0==this.Ab&&this.By(b)};f5.prototype.$b=function(){this.Ab&&(this.Ab=0,this.jd("Sorry! We could not get enough information about the album you selected. Please try again later."))};
var l0d=function(a,b){m4.call(this,a,b);this.Ab=new df};t(l0d,m4);l0d.prototype.hp=function(a,b,c){l0d.ya.hp.call(this,a,b,c);b=this.config.Qb;"photo-curation"==this.mL.FH.Sa?x2e(this,a,!!b):(this.Ab.clear(),v(a,function(a){this.Ab.add(a.Qe())},this),c=this.config.Qb||y2e(this,a),m0d(this,c,b?void 0:a))};
var x2e=function(a,b,c){a.options.includeAllDocs||(b=ec(b,function(a){return a.Kn()||this.Ab.contains(a.Qe())},a));!c&&b.length&&a.options.finalizeAlbum?(c={albumMode:"final",parent:b[0].vt()},a.Sa.Vd(new K3("changeAlbumAttrs","picasa",null,c),Lp(a.By,a,b),Lp(a.Qb,a))):a.By(b)},y2e=function(a,b){var c=cb(b,function(a){return("photo"==a.Ra()||"video"==a.Ra())&&!!a.vt()},a);return c?c.vt().split(".").pop():void 0},m0d=function(a,b,c){var d=new w3("photo-curation");BN(d,"parent",b);BN(d,"albumTitle",
a.options.albumName);BN(d,"eata",a.options.eata);BN(d,"mtp",a.options.mtp);c&&BN(d,"ids",zg(c,function(a){return a.Qe()}).join(","));a.mL.On(d);a.mL.dya(!1)};l0d.prototype.Qb=function(){this.Sa.xk(19);this.jd("Sorry! We could not import your photos. Please try again later.")};l0d.prototype.reset=function(){l0d.ya.reset.call(this);this.Ab.clear()};
var g5=function(a,b){m4.call(this,a,b)};t(g5,m4);
g5.prototype.hp=function(a,b,c){g5.ya.hp.call(this,a,b,c);var d=[],f=[];v(a,function(a){"picasa"!=a.Sa||"album"==a.Ra()||a.Kn()?ib(d,a):ib(f,a)},this);f.length?(b=this.config.Qb,f[0].Ii?b?this.By(a):(c={albumMode:"temporary",parent:f[0].vt()},this.Sa.Vd(new K3("changeAlbumAttrs","picasa",null,c),Lp(this.$b,this,a),Lp(this.Ab,this))):(c={},b?c.albumId=b:c.albumMode="temporary",this.Sa.Vd(new K3("multiInclude","picasa",n0d(this,f),c),Lp(this.Qb,this,d),Lp(this.Ab,this),!0))):this.By(d)};
var n0d=function(a,b){return zg(b,function(a){return a.Qe()},a)};g5.prototype.$b=function(a){this.By(a)};g5.prototype.Qb=function(a,b){this.By(rb(a,b.Ae().length&&"album"==b.Ae()[0].Ra()?ub(b.Ae(),1):b.Ae()))};g5.prototype.Ab=function(){this.Sa.xk(20);this.jd("Sorry! We could not import your photos. Please try again later.")};
var OLe=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Sorry!  We could not import your photos.}male{Sorry!  We could not import your photos.}other{Sorry!  We could not import your photos.}}"),{VIEWER_GENDER:c.Aa});return P(a+c)},Gtg=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Sorry!  We could not crop your photo.}male{Sorry!  We could not crop your photo.}other{Sorry!  We could not crop your photo.}}"),{VIEWER_GENDER:c.Aa});return P(a+c)},SLe=function(){return P("Photos from poll")};
var mMe=function(a,b){m4.call(this,a,b);this.ha=b.ef();this.$b=null};t(mMe,m4);
mMe.prototype.hp=function(a,b,c){mMe.ya.hp.call(this,a,b,c);1<a.length?this.Ab():(c=a[0],c.Kn()?b(a):(b=c.getAttribute("c"))?(this.$b=b,b={parent:this.options.albumId},(new Date).getTime(),this.Sa.Vd(new K3("copy","picasa",[c.getId()],b),Lp(function(a){(new Date).getTime();a=a.Ae()[0];b0d(a,this.Sa,this.$b,void 0,"crop",Lp(this.Ag,this),Lp(this.Qb,this))},this),Lp(this.Qb,this))):"picasa"==a[0].Sa?oMe(this,a):this.options.albumId?pMe(this,a,this.options.albumId):((new Date).getTime(),this.Sa.Vd(new K3("createAlbum",
"picasa",null,{title:JC(this.ha,SLe),albumMode:"temporary"}),Lp(function(b){(new Date).getTime();pMe(this,a,b.Ae()[0].getId())},this),Lp(function(){this.Ab()},this),!0)))};mMe.prototype.Ag=function(a){(a=a.Ae())?this.By(a):this.Qb()};mMe.prototype.Qb=function(){this.Sa.xk(48);this.jd(JC(this.ha,Gtg))};
var oMe=function(a,b){var c=a.options.albumId?{albumId:a.options.albumId}:{albumName:JC(a.ha,SLe),albumMode:"temporary"};(new Date).getTime();a.Sa.Vd(new K3("multiInclude","picasa",[b[0].getId()],c),Lp(function(a){(new Date).getTime();this.By([a.Ae()[1]])},a),Lp(function(){this.Ab()},a),!0)},pMe=function(a,b,c){var d=b[0].Yh(),d=d[d.length-1];(new Date).getTime();a.Sa.Vd(new K3("importPhoto","picasa",[],{url:d.Qs(),parent:c,caption:b[0].getUrl()}),Lp(function(a){(new Date).getTime();this.By(a.Ae())}, a),Lp(a.Ab,a))};mMe.prototype.Ab=function(){this.Sa.xk(48);this.jd(JC(this.ha,OLe))};
var o0d=function(a,b){m4.call(this,a,b)};t(o0d,m4);
o0d.prototype.hp=function(a,b,c){o0d.ya.hp.call(this,a,b,c);a=a[0];a.getAttribute("st");b=a.getAttribute("c");c={};var d;(d=a.getAttribute("st"))&&(eb(d,"full_bleed")||eb(d,"full_bleed_old"))?d=!0:(d=a.vt())?(d=(d=this.Sa.La(d))&&d.getAttribute("la"),d=!!d&&eb(d,"profiles_scrapbook")):d=!1;d||(c.copy="true");(d=a.Qja)&&d.length&&(c.srcOwnerId=d[0].getId());this.Sa.Vd(new K3("setProfileBanner","picasa",[a.getId()],c),Lp(this.Qb,this,b),Lp(this.Ab,this))};
o0d.prototype.Qb=function(a,b){var c=b.Ae();c?(0<c.length&&a&&c[0].setAttribute("c",a),this.By(c)):this.Ab(b);this.Sa.Vd(new K3("deleteAlbum","picasa",[],{label:"profile_photos.draft"}),ka,ka)};o0d.prototype.Ab=function(a){this.Sa.xk(22);a&&1==a.Ug()?this.jd("Sorry!  You are out of storage space."):this.jd("Sorry!  We could not save your cover photo.  Please try again later.")};
var q0d=function(a,b){m4.call(this,a,b)};t(q0d,m4);q=q0d.prototype;q.ITb=void 0;q.woa=void 0;
q.hp=function(a,b,c){q0d.ya.hp.call(this,a,b,c);this.Oa.addCallback(Lp(function(b){this.woa=b;if(a.length){var c=a[0];b=[c.getId()];this.ITb=c.getAttribute("c");this.Ab=c.getAttribute("r");var h,k={label:"profile_photos.active"};if(c.Ii)h="move",k.src=c.vt();else{h="copy";var c=c.Qja,m=this.config.nk()||this.config.ik()||this.woa.getUserId();c&&c[0].getId()!=m?k.srcOwnerId=c[0].getId():k.preventDuplicates="true"}this.Sa.Vd(new K3(h,"picasa",b,k),Lp(this.Vhd,this),Lp(this.Jfa,this,24))}else this.Sa.Vd(new K3("setProfile",
"picasa",[],null),Lp(this.JTb,this),Lp(this.Jfa,this,25))},this))};q.Vhd=function(a){b0d(a.Ae()[0],this.Sa,this.ITb,this.Ab,"setProfile",Lp(this.JTb,this),Lp(this.Jfa,this,26))};
q.JTb=function(a){var b=a.Ae();if(b){var c=(a=b[0])&&a.getAttribute("uepv");null!=c||(c=-1);a=this.config.ik()||this.config.nk()||this.woa.getUserId();var d=Pv.get("OGPIC"),c=a+"="+c;if(d){for(var d=d.split(":"),f=!1,h=0;h<d.length;h++)if(0==d[h].indexOf(a+"=")){f=!0;d[h]=c;break}f||(d[d.length]=c);a=d.join(":")}else a=c;c=za(document.location.hostname,".google.com")?".google.com":void 0;Pv.set("OGPIC",a,86400,"/",c);this.By(b)}else this.Jfa(27,a)}; q.Jfa=function(a,b){this.Sa.xk(a);b&&1==b.Ug()?this.jd("Sorry!  You are out of storage space.  You should select an existing profile photo or purchase more space."):this.jd("Sorry!  We could not save your profile photo.  Please try again later.")};
var ipg=function(a,b){m4.call(this,a,b)};t(ipg,m4);ipg.prototype.hp=function(a,b,c){ipg.ya.hp.call(this,a,b,c);a[0].Kn()?this.By(a):(a=zg(a,function(a){return a.getId()}),this.Sa.Vd(new Xog(a,this.options),Lp(this.Qb,this),Lp(this.Ab,this)))};ipg.prototype.Qb=function(a){(a=a.Ae())?this.By(a):this.Ab()};ipg.prototype.Ab=function(){this.Sa.xk(49);this.jd("Sorry! We could not import your photo to Maps. Please try again later.")};
var u0d=function(a,b){m4.call(this,a,b)};t(u0d,m4);u0d.prototype.hp=function(a,b,c){u0d.ya.hp.call(this,a,b,c);b=a[0];c=(c=b.getAttribute("c"))?Xb(c):{};c.sqid=this.options.sqid;c.isNew=b.Kn();b=b.getAttribute("r");b0d(a[0],this.Sa,c,b,"setSqProfile",Lp(this.Qb,this),Lp(this.Ab,this))};u0d.prototype.Qb=function(a){this.By(a.Ae())};u0d.prototype.Ab=function(){this.Sa.xk(28);this.jd("Sorry!  We could not save your profile photo.  Please try again later.")};
var d1d=function(a,b,c,d,f){t4.call(this,a,b,c,f);this.Ab=!1;this.Qf=d};t(d1d,t4);d1d.prototype.Oz=function(){d1d.ya.Oz.call(this);var a=this.La().Yh();if(a&&a.length){var b=this.Qb;X3.ia().load(a[0].Qs(this.Qf),Lp(b.mL,b,this))}};d1d.prototype.wc=function(){return this.Qf};
var A2e=function(a,b,c,d){Fo.call(this,B2e.ia(),d);this.oh=a;this.Ko=b;this.Oa=c;this.Sa=[];this.Ab=new kE};t(A2e,Fo);A2e.prototype.getTitle=function(){return this.oh};A2e.prototype.jP=function(){return this.Ko};A2e.prototype.qj=function(a){Pn(this.ta(),"a-L",a);var b=this.Ea().fb("a-Li-P",this.ta());b&&Pn(b,"a-n-P-L-qi",a);var c=this.Ea().fb("a-Li-Qb-s",this.ta());b&&Rc(c,a?"Unselect all":"Select all")};A2e.prototype.Db=function(a){return this.Ab.contains(a)};var B2e=function(){};t(B2e,Eo);la(B2e); B2e.prototype.Pa=function(a){var b=a.Ea();return b.Pa("div",{"class":"a-Li",id:a.getId()},a.Oa?b.Pa("div","a-Li-P a-n-P-X"):void 0,b.Pa("div","a-Li-O",a.oh),b.Pa("div","a-Li-VL"),a.Oa?b.Pa("div","a-Li-Qb-s","Select all"):void 0)};
var z0d=function(a){W3.call(this,void 0,a)};t(z0d,W3);z0d.prototype.Aoa=function(){};z0d.prototype.h9=function(){};z0d.prototype.kJa=function(){return!1};z0d.prototype.resize=function(){};var l5=function(a,b,c,d,f){C.call(this,c);this.Sa=a;this.Oa=b;b=new ORd(c,!1,!0);this.ib(b);b.Pa();b.setVisible(!1);QRd(b);d=new Q_d(b.Sa,b.Ea());Jlg(b,"editbar-delete",d);b.getHandler().Ja(d,"TE",b.Oa);this.mL=b;this.Ab=null;f?this.Ab=new z0d(c):this.Ab=new W3(a.rd().fG(),c);this.ib(this.Ab);this.Ab.Pa();this.$b=new Un(this.oIa,l5.prototype.Ag,this);this.getHandler().Ja(this.mL,"Ei",this.qIc).Ja(this.mL,"Fi",this.xIc).Ja(this.mL,"TE",this.Mjd).Ja(this.mL.ta(),["mouseover","mouseout"],this.rVa).Ja(this.mL.ta(),
"click",this.CIb).Ja(this.Ab.ta(),["mouseover","mouseout"],this.rVa).Ja(this.Oa,["highlight","unhighlight"],this.uBc).Ja(this.Oa,"action",this.Ljd).Ja(a.Ab,"reset",this.RHc)};t(l5,C);l5.prototype.Ag=500;l5.prototype.Qb=null;
var C0d=function(a,b){a.$b.stop();var c=N_d(b);if(c){var d;if("function"==typeof b.La)d=b.La().Ra();else if("function"==typeof b.getValue){var f=b.getValue();0==f.Q9().lastIndexOf("image",0)?d="photo":0==f.Q9().lastIndexOf("video",0)&&(d="video")}a.mL.yN(c,"photo"==d);a.Ab.Aoa(b)}a.Qb=b};q=l5.prototype;q.Pa=function(){l5.ya.Pa.call(this);this.mL.render(this.ta());this.Ab.render(this.ta());Qn(this.ta(),"a-ga-F-dpa");this.mL.ta().style.position="absolute"};
q.qb=function(){l5.ya.qb.call(this);this.mL.Ma();this.$b.Ma();this.Ab.Ma()};q.Ljd=function(a){C0d(this,a.target)};q.Mjd=function(){this.Ab.h9()};q.uBc=function(a){if(!this.Ab.kJa()){var b=a.target;switch(a.type){case "highlight":b&&C0d(this,b);break;case "unhighlight":this.$b.start()}}};q.CIb=function(a){Sn(a.target,"a-ga-F-Ab-Z")&&Q3b(this.Qb)};q.rVa=function(a){"mouseout"==a.type?this.$b.start():this.$b.stop()};q.RHc=function(){this.oIa(!0)};
q.qIc=function(){this.Ab.resize();On(this.Ab.ta(),!0);Uf(function(){S3(this.Qb.ta())},0,this)};q.xIc=function(){On(this.Ab.ta(),!1)};q.jL=function(a){this.mL.jL(a)};q.oIa=function(a){if(a||!this.Ab.kJa())RRd(this.mL),this.Ab.h9()};q.resize=function(){this.mL.resize();this.Ab.resize()};
var Q0d=function(a,b,c){this.Sa=a;this.Km=b;this.mL=c;this.Vk=new m5(120,!1,!0);this.$b={};this.Qb=!1;this.Vb=0;this.jg=this.Ag=!1};Q0d.prototype.Oa=function(){this.Ag=!0};Q0d.prototype.uh=function(a){if(this.mL){var b=this.mL.Qb;if(b){var c=b.La();c&&(G0d(this.Vk,b),this.mL.resize(),this.mL.jL(c),R0d(this,c,a))}}};
var R0d=function(a,b,c){c=Math.floor((c.Sa-c.Ab)/90)%4;a.Ag=!1;var d=++a.Vb;0>c&&(c+=4);var f={rotation:c};c=Lp(function(){this.Sa.od.Vd(new K3("rotatePhoto","picasa",[b.getId()],f),Lp(function(a){S0d(this,a,d)},this),Lp(function(){var a=b.getId();if(this.Ab)this.Ab(),this.Ab=void 0;else{this.Qb=!1;this.jg=!0;var c=this.Sa.od.La(a);this.$b[a]=c;T0d(this,d)}},this));this.Sa.od.xk(this.Km)},a);a.Qb?a.Ab=c:(a.Qb=!0,c())},S0d=function(a,b,c){a.Ab?(a.Ab(),a.Ab=void 0):(a.Qb=!1,b.Ae(),v(b.Ae(),function(a){var b= this.Sa.od.La(a.getId());a.Ab=b.Ab;b=a.getId();this.$b[b]=a},a),T0d(a,c))},T0d=function(a,b){a.Ag||b!=a.Vb||(a.jg&&(alert("Unable to rotate photo. Please try again."),a.mL&&a.mL.oIa(!0),a.jg=!1),a.Sa.od.Xp(Rb(a.$b)),Vb(a.$b),a.YY&&a.YY())};
var p5=function(a,b,c){o5.call(this,a,b,c,J0d||(J0d=new m5));this.zF=new C_d(a,"p",this.Ea());this.Op=new Yv;this.Be=a.rd().$b;this.Oa=this.Qb=null};t(p5,o5);q=p5.prototype;q.Pa=function(){p5.ya.Pa.call(this);Qn(this.ta(),"a-Vg-aaa");this.ib(this.zF,!0)};
q.Na=function(){p5.ya.Na.call(this);this.getHandler().Ja(this.ta(),["mouseover","mouseout"],this.Lbd).Ja(this.ta(),"click",this.Ebd).Ja(this.getContext().Sa,"si",this.Mbd);this.Qb=new l5(this.getContext(),this.getContainer(),this.Ea(),0,!0);this.Oa=new Q0d(this.getContext(),30,this.Qb);this.getHandler().Ja(this.Qb,"Fi",Lp(this.Oa.Oa,this.Oa)).Ja(this.Qb,"Ei",Lp(this.Oa.uh,this.Oa)).Ja(this.Qb,"TE",this.Nbd);this.ib(this.Qb);this.Qb.render(this.ta())};
q.Zba=function(a){var b=a.La(),c=r4(BUd(b.Zta),h2e),d=this.Op.Sa.Sa.value;d&&d.getTitle()==c||(d=new A2e(c,!this.Op.Fc(),this.Be,this.Ea()),this.getContainer().ib(d,!0),this.Op.set(d.getId(),d));c=d;b=b.getId();c.Sa.push(b);c.Ab.add(b);(b=c.Ea().fb("a-Li-VL",c.ta()))&&Rc(b,(new Z("{numPhotos, plural, =0 {unused plural form}=1 {1 photo}other {{numPhotos} photos}}")).format({numPhotos:c.Sa.length}));p5.ya.Zba.call(this,a)};q.gR=function(){this.zF.setActive()};
q.RD=function(a){On(this.zF.ta(),!1);p5.ya.RD.call(this,a)};q.Nbd=function(){var a=this.Qb.Qb;if(a&&confirm("Are you sure you want to permanently delete this photo?")){a.Ld(!1);a.Bm(16,!1);var b=a.La();this.getContext().od.Vd(new K3("delete","picasa",[b.getId()],{}),Lp(function(){this.Rd().dL([b.getId()])},this),Lp(function(){alert("We were unable to delete your photo. Please try again.");a.Bm(16,!0)},this))}};
q.Lbd=function(a){var b=a.target;(Sn(b,"a-Li-P")||Sn(b,"a-Li-Qb-s"))&&Pn(b,"a-u","mouseover"==a.type)};q.Ebd=function(a){a=a.target;if(Sn(a,"a-Li-P")||Sn(a,"a-Li-Qb-s")){a=this.Ea().Rm(a,"a-Li");a=this.Op.get(a.id).Sa;var b=this.getContext().Sa;b.WT(a,!Ye(a,b.Sf,b))}};q.Mbd=function(a){var b=this.Rd();Cd(a.ur,b.vC,b)&&this.Op.forEach(function(b){if(Cd(a.ur,b.Db,b)){var d=this.getContext().Sa;b.qj(Ye(b.Sa,d.Sf,d))}},this)};
var W0d=function(a,b,c,d,f){A4.call(this,a,b,c,f);this.Oa=d;this.Qb=new df};t(W0d,A4);
W0d.prototype.Pa=function(){W0d.ya.Pa.call(this);var a=this.Ea();this.lp(this.message);var b=a.Pa("div","roa-B");v(this.Oa,function(c){var f;switch(c){case "getty":var h=a.Pa("div","a-pb-HB-D-ue d-k-l");f=Ejc(a.createTextNode("Stock images"));f.render(h);b.appendChild(h);break;case "gis":f=Ejc(a.Pa("div","a-n-gq-Cd-ue"),a);f.Sn("Google search images");f.render(b);ey(f.ta(),"Google search images");break;case "life":f=Ejc(a.Pa("div","a-n-hq-J-cq-ue"),a),f.Sn("Life images"),f.render(b),ey(f.ta(),"Life images")}this.Qb.add(f);
this.getHandler().Ja(f,"action",function(){var a=this.Gf().clone();BN(a,"type",c);var b=this.getContext();b.Sa.lJ();b.Mh.On(a)})},this);var c=a.Pa("div",null,b);a.appendChild(this.cb(),c)};W0d.prototype.Na=function(){W0d.ya.Na.call(this);Qn(this.ta(),"a-oI");Pe(this.Qb.Rc(),function(a){a.Na()},this)};
var Y0d=function(a,b,c,d){E3.call(this,a,b,c,d);this.Bm(32,!0);this.Bm(64,!0);Bo(this,64);this.Ab=null};t(Y0d,E3);Y0d.prototype.Xb=function(a){this.Ab=a;this.Nb()&&A7e(this)};var A7e=function(a){a.getHandler().Ja(a.Ab,"change",a.Oa)};Y0d.prototype.Oa=function(){this.Ld(this.Ab.Jc())};Y0d.prototype.Ld=function(a){Y0d.ya.Ld.call(this,a);this.Ab&&this.Ab.Ld(this.Jc());xo(this,16)&&(a=this.Qb.jh(this))&&qo(a,"checked",this.Jc())};Y0d.prototype.Na=function(){Y0d.ya.Na.call(this);this.Ab&&A7e(this)}; Y0d.prototype.Um=function(a){this.isEnabled()&&this.Ab&&"b-P-Tb"==a.target.className||(this.isEnabled()&&xo(this,64)?(this.hm(!0),this.hm(!1)):Y0d.ya.Um.call(this,a))};
var X0d=function(a){F3.call(this,"a-JMBbeb-e");this.Sa=a};t(X0d,F3);
X0d.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d=c.getName(),f,h=b.Pa("div","a-JMBbeb-e-qa-B",b.Pa("div","a-JMBbeb-e-Hp-I1"),b.Pa("div","a-JMBbeb-e-Hp-H1"),f=b.Pa("div","a-JMBbeb-e-qa",b.Pa("span","a-n-fg"))),k=b.Pa("div","a-JMBbeb-e-qa-Z",h);d&&(f.title=d,c=K1e(c),ey(f,c.concat(" ").concat(d)));xo(a,16)&&(c=new nD(void 0,b),c.Bm(32,!1),c.render(h),a.Xb(c),Sc(c.ta(),!1),po(f,"checkbox"));a=b.Pa("div","a-Sc-Fd-ka",d);b=b.Pa("div","a-JMBbeb-e d-k-l",k,a);le(k,this.Sa,this.Sa);me(a,this.Sa);return b}; X0d.prototype.Pc=function(){return"a-JMBbeb-e"};X0d.prototype.jh=function(a){return Zc(a.Ea(),"div","a-JMBbeb-e-qa",a.ta())[0]};
var K7e=function(a){m5.call(this,a)};t(K7e,m5);K7e.prototype.Pa=function(a){var b=a.La(),c=b.getName(),d=a.Ea(),f=this.Sa,h=d.Pa("div","a-Sc-Fd-qa-cj"),k=d.Pa("div","a-Sc-Fd-qa-B",h);po(h,"checkbox");c&&(b=K1e(b),h.title=c,ey(h,b+c));b=new nD(void 0,d);b.Bm(32,!1);b.render(k);a.Xb(b);Sc(b.ta(),!1);b=d.Pa("div","a-Sc-Fd-qa",k);le(h,f,f);le(k,f,f);le(b,f,f);a.Gdb(k);a=d.Pa("div","a-Sc-Fd-ka",c);me(a,this.Sa);return d.Pa("div","a-Sc-Fd-Z d-k-l",b,a)};
K7e.prototype.lO=function(a){return Zc(a.Ea(),"div","a-Sc-Fd-qa-cj",a.ta())[0]};K7e.prototype.Pc=function(){return"a-Sc-Fd"};K7e.prototype.fN=function(a){return a.ll(this.Sa)};var L7e=function(a,b){var c=a.Sa;if(b){for(var d=0;d<b.length;d++){var f=b[d];if(Math.max(f.wc(),f.Ic())==c)return a.fN(f)}return a.fN(b[b.length-1])}return null};K7e.prototype.Uaa=function(a){return(a=L7e(this,a))&&a.wc()&&a.Ic()?sRd(a,this.Sa):new Kb(this.Sa,this.Sa)};
K7e.prototype.l0=function(a){var b=a.ta(),c=a.La(),c=L7e(this,c.Yh());if(a.lp){if(c){var d=c.wc()||this.Sa,f=c.Ic()||this.Sa;this.E6(a,URd(c.getUrl()),d,f)}b=Zc(a.Ea(),"div","a-Sc-Fd-qa-B",b)[0];c=xe(this.lO(a));d=Math.round((this.Sa-c.width)/2);Vd(b,d);le(b,c)}this.eO(a,this.Pc()+"-ak",!xo(a,16))};
var F7e=function(a,b,c,d){n5.call(this,a,b,c,d,!1);this.Ab=null};t(F7e,n5);F7e.prototype.Xb=function(a){this.Ab=a;this.Nb()&&I7e(this)};var I7e=function(a){a.getHandler().Ja(a.Ab,"change",a.gIb)};q=F7e.prototype;q.gIb=function(){this.Ld(this.Ab.Jc())};q.Ld=function(a){F7e.ya.Ld.call(this,a);this.Ab&&this.Ab.Ld(this.Jc());this.Qb instanceof K7e&&(a=this.Qb.lO(this))&&qo(a,"checked",this.Jc())};q.Na=function(){F7e.ya.Na.call(this);this.Ab&&I7e(this)};
q.Um=function(a){this.isEnabled()&&this.Ab&&"b-P-Tb"==a.target.className||F7e.ya.Um.call(this,a)};q.xZ=function(a){F7e.ya.xZ.call(this,a);var b=this.La();a=b.getName();var c=this.fb("a-Sc-Fd-ka"),d=this.fb("a-Sc-Fd-qa-cj");a&&(b=K1e(b),Rc(c,a),d.title=a,ey(d,b+" "+a))};
var M7e=function(a){return a=""+('<div id="'+r(a.l3)+'" class="a-k-v-Z"><div id="'+r(a.$Tc)+'" class="a-Mi-Fi-ba"></div><div id="'+r(a.FEa)+'" class="a-k-v-ec"><div class="a-n-gc-Db-v-m a-k-v-m"></div><div class="a-k-v-ec-E">'+r(a.ZXa)+'</div><div class="a-k-v-c-Z"><div class="a-k-v-c-nsa-E">or</div><div id="'+r(a.UOa)+'" class="a-k-v-c d-k-l"></div></div></div><div id="'+r(a.jld)+'" style="display:none" class="b-xm a-Mi-la-Ng"><div class="a-Mi-jm">Uploading...</div></div><div class="a-v-Bd-c"><button id="'+ r(a.B6)+'" style="display:none"></button></div></div>')};
var N7e=function(a,b,c,d){M5.call(this,a,b,d);this.cj=c;a=this.Ea();b=[a.Pa("div",["b-c-W","a-n-gc-v-m","d-k-l"]),a.Pa("span","b-c-ka","Upload")];this.gk=new Ot(b,a);this.ib(this.gk)};t(N7e,M5);q=N7e.prototype;q.kVa=function(){return M7e};q.p1=function(){return null};q.Pa=function(){var a=this.oT();Qn(a,"a-k-v");this.Kb(a);Uf(function(){var a=this.Ea(),c=a.Pa("span");a.appendChild(this.cj.Ab,c);this.gk.render(c);Qn(this.gk.ta(),"a-k-v-Za-c");O7e(this,!0)},0,this)};
q.start=function(){if(this.xw()){O7e(this,!1);var a=this.Xd.getOption("parent");this.Pf.Ag=a;N7e.ya.start.call(this)}};q.hS=function(a){this.xw()&&N7e.ya.hS.call(this,a)};q.reset=function(a){N7e.ya.reset.call(this,a);a||O7e(this,!0)};var O7e=function(a,b){a.gk.ta()&&(a.gk.Ta(b),a.Ab.addCallback(function(a){b?a.Lr(this.gk):a.VM(this.gk)},a))};
var P7e=function(){};t(P7e,up);la(P7e);P7e.prototype.yb=function(a,b){var c=nc("*","d-r",b)[0];if(c){On(c,!1);a.Ea().La().body.appendChild(c);var d=new Bp;d.yb(c);a.WE(d)}return P7e.ya.yb.call(this,a,b)};P7e.prototype.Pc=function(){return"b-qI-r-c"};var T7e=function(a,b){Fp.call(this,null,a,P7e.ia(),b)};t(T7e,Fp);T7e.prototype.Ko=function(){if(this.Ne().Nb()){var a=this.ta(),a=new hpa(a,F2a(this)?5:7,!spa(this),spa(this)),b=this.Ne().ta();this.Ne().dc()||(b.style.visibility="hidden",On(b,!0));var c=spa(this)?zy(b):null;a.Wd(b,F2a(this)?4:6,new Md(-1,0,0,0),c);this.Ne().dc()||(On(b,!1),b.style.visibility="visible")}};
var P3=function(a,b,c){this.Td=new k4("horizontal",D3.ia(),c);this.Oa=!0;y4.call(this,a,b,void 0,void 0,c);this.Km=this.getContainer();this.ib(this.Td);this.Ye=new s4(this.getContext().rd().$b);this.ima=new K7e(180);this.Mma=new X0d(180);this.zF={};this.yja={};this.getContext().mL.addCallback(function(a){this.getHandler().Ja(a.M_b,"prefUpdate",this.Tjb)},this);this.Qb=this.Xb=this.Op=this.Vb=null};t(P3,y4);q=P3.prototype;
q.Pa=function(){P3.ya.Pa.call(this);Qn(this.ta(),"a-gc-Ra");var a=this.Ea();a.fb("a-B-Z",this.ta()).tabIndex=-1;this.Vb&&(this.Vb.Pa(),a.Ep(this.Vb.ta(),this.Km.ta()));this.Td.Pa();a.Hy(this.Td.ta(),this.Km.ta());if(this.getContext().rd().yH&&!this.Gf().getQuery()){var a=this.Ea(),b=this.Op=a.Pa("div","a-Ye-KO");this.Qb=Ejc($6e(8),a);this.Qb.render(b);var c;c=(c=$6e(8))?"Sort by "+c:"";this.Qb.Sn(c);ey(this.Qb.ta(),c);Qn(this.Qb.ta(),"a-Ye-O");c=Llg(this.Gf());c=this.Xb=a.Pa("div","a-Ye-ka",$6e(c));
a.appendChild(b,c);V7e(this,this.Oa);this.Db=new C7e(this.getContext(),this.Gf(),this.Oa,a);x(this,this.Db);c=a.Pa("div","a-Ye-c");a.appendChild(b,c);var d=new T7e(this.Db,a);this.ib(d,!1);d.render(c);ey(d.ta(),"Sort order");On(b,!1);a.Ep(b,this.Km.ta())}a="";a=this.Gf().getQuery()?$6e(5):$6e(Llg(this.Gf()));a="Files are ordered by "+a;ey(this.Km.ta(),"The Drive list view.".concat(" ").concat(a));ey(this.Td.ta(),"The Drive grid view.".concat(" ").concat(a))};
q.Na=function(){this.Vk=this.Vk||BMc(this.getContainer().ta());P3.ya.Na.call(this);this.getHandler().Ja(this.Td,["check","uncheck"],this.m2a).Ja(this.Td,"open",this.DAa).Ja(this.Td,"dblclick",this.cD).Ja(this.Ea().getWindow(),"resize",this.nA);this.Qb&&this.getHandler().Ja(this.Qb,"action",this.Be);Uf(this.nA,0,this)};q.Brb=function(a,b,c){return new k4(void 0,new L3,c)};q.getContainer=function(){return this.Oa?P3.ya.getContainer.call(this):this.Td};
q.ED=function(a){var b;this.Oa?(b=new t4(this.getContext(),a,this.Ye,this.Ea()),oTf(a)&&(b.Bm(64,!0),Bo(b,64))):b=oTf(a)?new Y0d(this.getContext(),a,this.Mma,this.Ea()):new F7e(this.getContext(),a,this.ima,this.Ea());oTf(a)&&!this.Gf().getOption("selectFolder")&&b.Bm(16,!1);return b};q.gJ=function(){return this.Oa?this.yja:this.zF};q.KYa=function(a){this.Oa?this.yja=a:this.zF=a};
q.setActive=function(a,b){var c=Fcf(this.Gf(),this.getContext());Y7e(this,!c);this.Vb&&this.Vb.setActive(a);P3.ya.setActive.call(this,a,b)};q.setVisible=function(a){P3.ya.setVisible.call(this,a);Uf(this.nA,0,this)};q.iO=function(a){P3.ya.iO.call(this,a);this.Op&&On(this.Op,0<this.Rd().Ae().length)};q.Tjb=function(a){"dl"==a.key&&this.xw()&&(a=Fcf(this.Gf(),this.getContext()),Y7e(this,!a))};
var Y7e=function(a,b){a.Oa=b;a.Td.setVisible(!b);a.Km.setVisible(b);Pn(a.ta(),"a-Sc-Fd-Ra",!b);a.Op&&(Pn(a.Op,"a-Ye-Te-Ra",!b),a.Db&&sMe(a.Db,b),V7e(a,a.Oa));a.Ik(a.Rd().Ae())};P3.prototype.nA=function(){var a=this.Ag?this.Ag.mL:null;if(this.xw()&&a){var b=a.ta(),a=xe(b),b=ye(b),c=this.Ea().fb("a-B-Z",this.ta());Vd(c,0,a.height+b.top+b.bottom)}};var V7e=function(a,b){var c=a.Ea(),d=8==Llg(a.Gf());d&&c.uq(a.Xb,$6e(b?3:8));Pn(a.Xb,"a-Ye-X",!d||!b);Pn(a.Qb.ta(),"a-Ye-X",d&&b);a.Qb.setVisible(b);a.Qb.Ta(!d)}; P3.prototype.Be=function(){var a=this.getContext().Mh.FH.clone();BN(a,"sortKey",8);this.getContext().Mh.On(a)};
var qaf=function(a,b,c,d){var f=new P3(a,b,d);C4.call(this,a,b,f,c,d);a=this.Ab;f.Vb||(b=f.Gf(),b.getOption("upload")&&(b=b.clone(),o4(b,"docs"),f.Vb=new N7e(f.getContext(),b,a,f.Ea()),f.ib(f.Vb)))};t(qaf,C4);var $0d=function(){F3.call(this,"a-cd-e")};t($0d,F3);la($0d);var a1d=function(a,b,c){a=a.Pc();b=(b=b&&b[0])&&b.ll(120,["c"]).getUrl();c=c.Pa("div",a+"-cb",c.Pa("div",a+"-k3",c.Pa("img",{src:b,width:"120px",height:"120px","class":a+"-k3-na"})));xc&&!Gf(9)||(new bF(c,450)).play();return c},b1d=function(a,b,c,d,f){a=a.Pc();var h=f.Pa("div",a+"-ee-O");Rc(h,b||" ");return f.Pa("div",a+"-ee",h,f.Pa("div",a+"-ee-SF",f.Pa("div",a+"-ee-SF-Lfa",V_d(c.timeMs)),f.Pa("div",a+"-ee-SF-wsa",d)))}; $0d.prototype.Pa=function(a){var b=a.La(),c=a.Ea();return a.Ea().Pa("div",this.Pc(),a1d(this,b.Yh(),c),b1d(this,b.getName(),b.getAttribute("startTime"),b.Jd()||"",c))};$0d.prototype.uI=function(){return"option"};
var c1d=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Qb=$0d.ia()};t(c1d,y4);c1d.prototype.ED=function(a){return new E3(this.getContext(),a,this.Qb,this.Ea())};c1d.prototype.Pa=function(){c1d.ya.Pa.call(this);Qn(this.ta(),"a-cd-Ra")};var g1d=function(){s4.call(this,!1)};t(g1d,s4);la(g1d);
g1d.prototype.Pa=function(a){var b=a.Ea(),c=b.Pa("div","a-Yn-sd d-k-l"),d=a.La().getName()||"";if((a=a.La().Yh())&&a.length){var f=a[0].ifa(500,125).getUrl(),h=c.style;xc&&!Gf("8")?h.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+f+'", sizingMethod="crop")':(h.backgroundImage="url("+f+")",h.backgroundPosition="top left",h.backgroundRepeat="no-repeat");qe(c,0);a&&3<=a.length?(a[2].getUrl(),a[3]&&a[3].getUrl(),a=a[1].ifa(500,125).getUrl(),document.createElement("video"),a&&b.uv(c,
b.Pa("img",{src:a,width:500,height:125,"class":"a-Yn-x",title:d}))):b.uv(c,b.Pa("img",{src:f,width:500,height:125,"class":"a-Yn-x",title:d}))}return b.Pa("tr","a-Yn-e-cy",b.Pa("td",null,b.Pa("div","a-Yn d-k-l",c)))};g1d.prototype.mL=function(a){if(!a.isDisposed()){var b=a.Ea().fb("a-Yn-sd",a.ta());f1d(a,!0);!xc||Gf(9)?(new bF(b,450)).play():qe(b,1)}};var f1d=function(a,b){var c=a.Ea().fb("a-Yn-x",a.ta());b&&c&&c.play?c.play():!b&&c&&c.pause&&c.pause()};g1d.prototype.Op=ka;
var h1d=function(a,b,c){y4.call(this,a,b,new L3,void 0,c)};t(h1d,y4);h1d.prototype.ED=function(a){return new d1d(this.getContext(),a,g1d.ia(),500,this.Ea())};h1d.prototype.Pa=function(){h1d.ya.Pa.call(this);Qn(this.ta(),"a-Yn-Ra")};h1d.prototype.x6a=function(){var a=this.getContainer(),b=Ge(a),c=this.Vna(),d;d=c;for(var f=a.Oh(d);f&&this.PX(f);)f=a.Oh(++d);d=--d;for(f=0;f<b;f++){var h=a.Oh(f);f>=c&&f<=d?h.lp?1!=h.Ab&&(f1d(h,!0),h.Ab=!0):h.Oz():h.lp&&0!=h.Ab&&(f1d(h,!1),h.Ab=!1)}d>=b-1&&this.RD()};
var f8e=function(){e8e.call(this)};t(f8e,e8e);f8e.prototype.Pa=function(a){var b=f8e.ya.Pa.call(this,a);Qn(b,"a-kN-e");var c=a.La(),d=c.Qja;d&&(a=a.Ea(),c=a.Pa("div","a-kN-ha","By: ",a.Pa("a",{href:c.getUrl(),target:"_blank",tabIndex:-1},d[0].getName())),b.appendChild(c));return b};
f8e.prototype.zDa=function(a,b){var c=zy(a),d=My.Bo();c.height-=20;var f=zy(b),h=(c.width-f.width)/2,k=pc("a-kN-ha",a);d?(b.style.right=Math.round(h)+"px",k.style.right=Math.floor(Math.min(50,h)+5)+"px"):(b.style.left=Math.round(h)+"px",k.style.left=Math.floor(Math.min(50,h)+5)+"px");b.style.top=Math.round((c.height-f.height)/2)+"px";k.style.bottom=20+Math.floor((c.height-f.height)/2-15)+"px";k.style.width=Math.max(110,f.width)+"px"};
var n8e=function(a,b,c){k4.call(this,a,b,c)};t(n8e,k4);var Aag=function(a){var b=a.Oh(a.Sa);b&&(b=b.Qb.jh(b),Sc(b,!1),a.Sa=-1)},o8e=function(a,b){var c=a.Oh(b);if(c){Aag(a);a.Sa=b;c=c.Qb.jh(c);Sc(c,!0);try{c.focus()}catch(d){}}};
n8e.prototype.Ab=function(a){var b=this.Sa;n8e.ya.Ab.call(this,a);if(b==this.Sa){var c=a.target,b=this.Af(c),c=new A8e(c,a.Sa);switch(a.Sa){case 0:Aag(this);o8e(this,b);this.dispatchEvent(c);break;case 37:0==b&&(Aag(this),this.dispatchEvent(c));break;case 39:Aag(this);b==Ge(this)-1&&this.dispatchEvent(c);break;case 38:case 40:Aag(this),this.dispatchEvent(c)}}};n8e.prototype.Zj=function(a,b,c){n8e.ya.Zj.call(this,a,b,c);a.jh().tabIndex=-1};
var H8e=function(a,b,c,d){n5.call(this,a,b,c,d,!1);this.qSa=G8e};t(H8e,n5);var G8e=new Kb(150,150);var I8e=function(){e8e.call(this)};t(I8e,e8e);la(I8e);q=I8e.prototype;q.Pa=function(a){a=a.Ea();var b=a.Pa("div",this.Pc()+"-sd",a.Pa("div",[this.Pc()+"-aa-sd"]),a.Pa("div",[this.Pc()+"-lf","a-n-dc-Tb-X"]),a.Pa("img",this.Pc()+"-zc"));return a.Pa("div",this.Pc(),b)};q.Pc=function(){return"a-qMnisd-e"};q.lO=function(a){return a.fb(this.Pc()+"-sd")};q.jh=function(a){return a.ta()};
q.l0=function(a){var b=a.La(),c=b.Yh(),d=a.qSa,f=this.lO(a),h=d.width,k=d.height,m=Ae(f);m&&m.left&&m.right&&(h-=m.left+m.right);m&&m.top&&m.bottom&&(k-=m.top+m.bottom);(m=de(f))&&m.left&&m.right&&(h-=m.left+m.right);m&&m.top&&m.bottom&&(k-=m.top+m.bottom);h=Math.ceil(h);k=Math.ceil(k);h=c&&c[0].ifa(h,k);k=a.fb(this.Pc()+"-zc");c=a.fb(this.Pc()+"-aa-sd");k.title=b.Jd()||b.getName();h&&(k.src=h.getUrl());var p;h&&h.wc()&&h.Ic()?p=new Kb(h.wc(),h.Ic()):p=d;le(f,p);le(k,p);b=de(c);h=p.width;p=p.height; b&&b.left&&b.right&&(h-=b.left+b.right);b&&b.top&&b.bottom&&(p-=b.top+b.bottom);le(c,h,p);qe(f,1);le(a.ta(),d);this.eO(a,this.Pc()+"-ak",!xo(a,16))};q.upa=function(a,b){var c=b.fb(this.Pc()+"-lf");Pn(c,"a-n-dc-Tb-L",a);Pn(c,"a-n-dc-Tb-X",!a)};
var Lbe=function(){F3.call(this,this.Pc())};t(Lbe,F3);la(Lbe);Lbe.prototype.Pa=function(a){Lbe.ya.Pa.call(this,a);a=a.Ea();var b=a.Pa("div",this.Pc()+"-W a-n-ia-FO4lXc-Zc"),c=a.Pa("div",this.Pc()+"-E"),b=a.Pa("div",this.Pc()+"-B",b,c);return a.Pa("div",this.Pc(),b)};Lbe.prototype.Pc=function(){return"a-fg-Md-e"};
var Tee=function(a,b,c){if(c){var d=b.Ea(),f=b.fb(a.Pc()+"-E"),h=b.fb(a.Pc()+"-W");On(f,!0);On(h,!1);d.hb(f);c=(new Z("{expansionSize, plural, =0 {unused plural form}=1 {{expansionSize} more}other {{expansionSize} more}}")).format({expansionSize:c});d.appendChild(f,d.createTextNode(c));ey(f,"Click to show more images")}else Mbe(a,b,!0);Ube(a,b)},Mbe=function(a,b,c){var d=b.fb(a.Pc()+"-W");a=b.fb(a.Pc()+"-E");var f=My.Bo();b=f?"a-n-ia-Xja-Zc":"a-n-ia-FO4lXc-Zc";f=f?"a-n-ia-FO4lXc-Zc":"a-n-ia-Xja-Zc";
On(a,!1);On(d,!0);c?(TB(d,f,b),d.title="Click to show more images"):(TB(d,b,f),d.title="Click to show less images")},Ube=function(a,b){Uf(function(){var a=b.Ea(),d=b.fb(this.Pc()+"-B"),a=oe(a.$_a(d)).height,f=zy(d).height;Pd(d,"margin-top",(a-f)/2+"px")},0,a)};
var J8e=function(a,b){C3.call(this,a,new Vw({}),new Lbe,b);this.Bm(8,!1);this.Bm(16,!1);this.Ab=!0;this.Oa=void 0};t(J8e,C3);q=J8e.prototype;q.Na=function(){J8e.ya.Na.call(this);this.getHandler().Ja(this.ta(),"click",this.m1a);this.getHandler().Ja(ahb(this),"key",this.IIb)};q.collapse=function(){this.Ab=!0;this.Ik(!0)};q.m1a=function(){this.Ab=!this.Ab;this.dispatchEvent(this.Ab?"im":"gm")};
q.IIb=function(a){switch(a.keyCode){case 38:case 40:case 37:case 39:this.dispatchEvent(new Glg(this,a.keyCode));a.preventDefault();a.stopPropagation();break;case 32:case 13:this.m1a(),a.preventDefault(),a.stopPropagation()}};q.Ik=function(a,b){this.Ab=a;var c=this.Qb;this.Ab?b&&this.Oa?Tee(c,this,this.Oa-b):Tee(c,this):(Mbe(c,this,!1),Ube(c,this))};
var K8e=function(a){this.Ab=ia(150)?150:200;this.Sa=a||0},Xxb=function(a,b,c,d){for(var f=[],h=0;!gb(b)&&h<c;){var k=N8e(b.shift());f.push(k);h+=V8e(k,d).width+2}var k=2*f.length,h=h-k,m=c-k;gb(b)&&(m-=a.Sa);d=Math.floor(d*(h<m?.9:m/h));var p=0;for(b=0;b<f.length;b++)f[b]=V8e(f[b],d),p+=f[b].width;if(h+k>=c)for(c=Math.round(m-p);0!=c;)for(h=0<c?1:-1,b=f.length-1;0<=b&&0!=c;--b,c-=h)k=f[b],f[b]=new Kb(k.width+h,k.height);p=0;v(f,function(a){p+=a.width+2},a);return f},N8e=function(a){var b=a.width, c=a.height;a=Math.min(b,3.5*c);b=Math.min(c,1.85*b);return new Kb(a,b)},W8e=function(a,b,c){b=sb(b);for(var d=[];!gb(b);){var f=Xxb(a,b,c,a.Ab);if(gb(f))break;d.push(f)}return d},V8e=function(a,b){return new Kb(Math.round(b/a.height*a.width),b)};
var $3=function(a,b,c,d,f){Z3.call(this,a,b,c,d||I8e.ia());this.Qb=new J8e(this.getContext(),this.Ea());this.Oa=0;this.Op=f};t($3,Z3);q=$3.prototype;q.s3=0;q.Pa=function(){$3.ya.Pa.call(this)};q.Pc=function(){return"a-O6pfRc"};q.Na=function(){$3.ya.Na.call(this);this.getHandler().Ja(this.Qb,"gm",this.Lib).Ja(this.Qb,"im",this.sib)};
q.Uga=function(a){if(0==a.length)$3.ya.Uga.call(this,a);else{this.Qb.Nb()&&this.getContainer().removeChild(this.Qb,!0);if(!this.Oa)throw Error("Sm");var b=Y8e(this,a),c=this.gJ();v(a,function(a){var d=a.getId();(d=c[d]=c[d]||this.ED(a))&&b[a.getId()]&&(a=b[a.getId()],d.qSa=a)},this);$3.ya.Uga.call(this,a);var d=b[a[a.length-1].getId()].height;this.Rd().yW()?(bfe(this,d),this.Qb.Ik(!0,a.length),this.s3||(this.s3=Ge(this.getContainer())-1)):this.s3&&(a.length<=this.s3?(bfe(this,d),this.Qb.Ik(!0,a.length),
o8e(this.getContainer(),a.length)):(bfe(this,d),this.Qb.Ik(!1),o8e(this.getContainer(),this.s3)))}};var bfe=function(a,b){a.getContainer().ib(a.Qb,!0);var c=b,d=a.Qb.ta(),f=Ae(d);f&&f.top&&f.bottom&&(c-=f.top+f.bottom);le(d,40,c)},Y8e=function(a,b){for(var c=[],d=0;d<b.length;d++){var f=b[d].Yh()[0];f?c.push(new Kb(f.wc(),f.Ic())):c.push(new Kb(150,150))}d=0;if(a.Rd().yW()||a.s3)d=40;var c=W8e(new K8e(d),c,Math.round(a.Oa)),h=0,k={};v(c,function(a){v(a,function(a){k[b[h++].getId()]=a})});return k};
q=$3.prototype;q.PX=Fx;q.Lib=function(){this.Qb.Ab&&this.s3?this.Ik(this.Rd().Ae()):this.RD(!0)};q.sib=function(){this.Ik(this.Rd().Ae().slice(0,this.s3))};q.ED=function(a){var b="photo"==a.Ra();a=new H8e(this.getContext(),a,this.Km,this.Ea());a.Bm(16,b);a.Bm(8,b);a.Bm(32,b);return a};q.Vna=function(){return 0};q.Fma=function(){$3.ya.Fma.call(this,!1);this.Qb.Ab||this.Qb.collapse()};q.Gya=function(){return!1};q.Brb=function(a,b,c){return new n8e(a,b||void 0,c)}; q.focus=function(a){a=a?Ge(this.getContainer())-1:0;o8e(this.getContainer(),a)};q.Eqa=Fx;q.Ysa=function(){this.Op||$3.ya.Ysa.call(this)};q.meb=function(a){this.Op?this.Op.setVisible(a):$3.ya.meb.call(this,a)};
var $8e=function(a,b,c,d,f){E3.call(this,a,b,c,f);this.Km=d};t($8e,E3);q=$8e.prototype;q.Pa=function(){$8e.ya.Pa.call(this);this.ib(this.Km,!0)};q.Na=function(){$8e.ya.Na.call(this);this.Km.setActive(!0);this.Km.iO(!0);this.getHandler().Ja(this.Km.getContainer(),"km",Lp(this.DIb,this))};q.DIb=function(a){this.dispatchEvent(new A8e(this,a.Sa))};q.Ik=function(){var a=this.Km,b=a.Rd().Ae();a.Qb.Ab&&a.s3&&(b=b.slice(0,a.s3));a.Ik(b)};q.focus=function(a){this.Km.focus(a)}; var A8e=function(a,b){A.call(this,"km",a);this.Sa=b||0};t(A8e,A);
var a9e=function(a){F3.call(this,this.Pc());this.Sa=!!a};t(a9e,F3);la(a9e);a9e.prototype.Pc=function(){return"a-fg-e"};a9e.prototype.Pa=function(a){var b=a.Ea(),c=a.La();a=b.Pa("div",this.Pc());if(!this.Sa){var d=c.getName();!d&&c.Zta&&(d=r4(BUd(c.Zta),h2e));b=b.Pa("span",this.Pc()+"-O",d);yc(a,b)}return a};
var yVf=function(a,b){s3.call(this,a,b);this.mL=this.Ab=this.iA=null;this.Qb=rTf(this)};t(yVf,s3);
yVf.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-RY7rpe-O","You don't have any photos stored in Google Photos."),c=a.Pa("div","a-RY7rpe-E",cd(a,"Enable "+('<a class="a-qUPACb-s" href="https://support.google.com/plus/answer/1647509?hl='+My.Sa+'" target="_blank">Auto Backup</a> to have photos taken on your phone appear here automatically.')));this.iA=new Ot("Select files from your computer",a,2);this.Ab=a.Pa("div","a-RY7rpe-Z",b,c);this.iA.render(this.Ab);this.mL=a.Pa("div","a-RY7rpe",this.Ab);
this.Kb(this.mL);Uf(function(){this.$b()},0,this)};yVf.prototype.$b=function(){var a=zy(this.mL).height,b=zy(this.Ab).height;Pd(this.Ab,"margin-top",(a-b)/2+"px")};yVf.prototype.Na=function(){yVf.ya.Na.call(this);this.getHandler().Ja(this.iA,"action",this.Oa);this.getHandler().Ja(this.Ea().getWindow(),"resize",Lp(this.$b,this))};yVf.prototype.Oa=function(){if(this.Qb){this.getContext().Vb.YY(rTf(this));var a=this.getContext().Mh.Hd();a&&a.xna&&a.xna()}}; var rTf=function(a){if(a.Qb)return a.Qb;a=a.getContext().rd().Gna;if(!a)return null;a instanceof Jw?a=wUd(a.getId(),a.lm(),a.getOptions()):(a=Qf(a),a=wUd(a[0],a[1],a[2]));return a};
var a4=function(a,b,c,d){j5.call(this,a,b,c);this.Vb=d||a9e.ia();this.Oa={};this.Qb=new yVf(this.getContext(),this.Ea());x(this,this.Qb)};t(a4,j5);q=a4.prototype;q.Pa=function(){a4.ya.Pa.call(this);Qn(this.ta(),"a-FxskPc")};q.Na=function(){a4.ya.Na.call(this);this.getHandler().Ja(this.Ea().getWindow(),"resize",Lp(this.FIb,this));this.getHandler().Ja(this.getContainer(),"km",Lp(this.EIb,this))};
q.EIb=function(a){var b=a.target,c=this.getContainer().Af(b);switch(a.Sa){case 0:for(a=0;a<Ge(this.getContainer());a++)c=this.getContainer().Oh(a),c.getId()!=b.getId()&&Aag(c.Km.getContainer());break;case 38:case 37:1<=c?this.getContainer().Oh(c-1).focus(!0):b.focus();break;case 40:case 39:c<Ge(this.getContainer())-1?this.getContainer().Oh(c+1).focus():b.focus(!0)}};q.ED=function(a){a=new $8e(this.getContext(),a,this.Vb,this.Oa[a.getId()],this.Ea());a.Bm(16,!1);a.Bm(32,!1);a.Bm(8,!1);return a};
q.Zba=function(a){if(this.getContainer().ta()){var b=ze(this.getContainer().ta()),c=xB()||14;b&&b.width&&(a.Km.Oa=b.width-c-30)}a4.ya.Zba.call(this,a)};q.kt=function(){return!this.iu&&0<Ge(this.getContainer())?(this.getContainer().Oh(0).focus(),this.iu=!0):a4.ya.kt.call(this)};q.setActive=function(a){Uf(function(){a4.ya.setActive.call(this,a)},0,this)};
q.Hr=function(a){var b=[],c={},d;v(a,function(a){"application/vnd.google-apps.mediacollection"==a.Ag?(b.push(a),d=a.getId(),c[d]||(c[d]=[])):d&&c[d].push(a)},this);v(b,function(a){var b=c[a.getId()],d=this.Gf().clone();BN(d,"type","mediacollection");BN(d,"parent",a.getId());var m=this.Oa[a.getId()]=new $3(this.getContext(),d,this.Ea(),void 0,this.mL),p=a.Tm();m.Qb.Oa=p;m.mN=!1;d=this.getContext().od.Rd(d.or());if(a.Tm()==b.length)d.QK(b),d.Sva(void 0);else if(!d.Ae()||gb(d.Ae()))d.QK(b),d.Sva("0")},
this);a4.ya.Hr.call(this,b)};q.zq=function(a){if(a)return a4.ya.zq.call(this,!0);var b=new df;b.gz(a4.ya.zq.call(this,!1));var c=this.getContainer();v(Njc(this.getContainer()),function(a){a=c.Ge(a).Km.zq(!1);b.gz(a)});return b};q.FIb=function(){var a=this.getContainer();if(a.ta()){var b=ze(a.ta());b&&b.width&&v(Njc(a),function(c){c=a.Ge(c);var d=xB()||14;c.Km.Oa=b.width-d-30;c.Ik()})}};q.Eqa=Fx;q.vBb=function(){this.Rd().IHb()&&Uf(this.RD,0,this)};q.gR=function(){this.Qb.ta()||this.Qb.render();this.lp(this.Qb.ta())}; q.I$b=function(){this.lp("An error occurred. Please try again.")};
var age=function(){m5.call(this)};t(age,m5);la(age);age.prototype.Pa=function(a){var b=a.La().getName();this.nha(a,!1);return a.Ea().Pa("div","a-RymADf-O",b)};var hge=function(){e8e.call(this)};t(hge,e8e);hge.prototype.Pa=function(a){a=hge.ya.Pa.call(this,a);Qn(a,"a-bLeyk-nb");return a};hge.prototype.ryb=function(a){return new Uw(a.getUrl()||"",void 0,void 0,!1)};hge.prototype.zDa=ka;var PVf=function(a,b,c){Z3.call(this,a,b,c,new hge)};t(PVf,Z3);PVf.prototype.ED=function(a){var b;if("photo"==a.Ra())return b=new n5(this.getContext(),a,this.Km,this.Ea(),!1),this.getContext().Sa.Fca(a.getId(),!!a.getAttribute("visibility")),b;b=new n5(this.getContext(),a,age.ia(),this.Ea(),!1);b.Bm(32,!1);b.Bm(16,!1);return b};PVf.prototype.lya=function(a){PVf.ya.lya.call(this,a,!0)};
var q5=function(){i5.call(this,"a-J-Da-e")};t(q5,i5);la(q5);
q5.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=this.Pc(),f;"application/vnd.google-apps.rollupphotoalbum"==b.rI()?f=null:(f=b.getAttribute("aa"),f=(f=DVc.get(f))?String(f.call(void 0,void 0,void 0,{Aa:"default"})):null);var h;f&&(h=c.Pa("span"),c.appendChild(h,cd(c," &#8210; ")));return c.Pa("div",this.qr(a).join(" "),c.Pa("div",{style:"float: right"},c.Pa("span",d+"-Ch",r4(BUd(b.Zta),aVd))),c.Pa("span",d+"-O",b.getName()),c.Pa("div",d+"-jA"),c.Pa("div",d+"-ha",f,h,i1d(b)))};
var i1d=function(a){var b=a.Tm();return"application/vnd.google-apps.rollupphotoalbum"==a.rI()?(new Z("{numAlbums, plural, =0 {No albums}=1 {1 album}other {# albums}}")).format({numAlbums:b}):(new Z("{numPhotos, plural, =0 {No photos}=1 {1 photo}other {# photos}}")).format({numPhotos:b})};
q5.prototype.mL=function(a){var b=a.La(),c=a.Ea(),d=Zc(c,"div",this.Pc()+"-jA",a.ta())[0];c.hb(d);a=b.TVa||[];a.length||(b=b.Yh())&&b[0]&&a.push(b[0]);v(a,function(a){a=a.ll(48,["c"]).getUrl();a=c.Pa("img",{src:a,"class":this.Pc()+"-na"});d.appendChild(a);(new bF(a,450)).play()},this)};q5.prototype.getName=function(a){return a.La().getName()};
var r5=function(a,b,c,d){E3.call(this,a,b,c||q5.ia(),d);this.Bm(64,"application/vnd.google-apps.rollupphotoalbum"==b.rI());Bo(this,64)};t(r5,E3);r5.prototype.Um=function(a){"application/vnd.google-apps.rollupphotoalbum"==this.La().rI()?(this.hm(!0),this.hm(!1)):r5.ya.Um.call(this,a)};r5.prototype.Oz=function(){r5.ya.Oz.call(this);this.Qb.mL(this)};r5.prototype.getName=function(){return this.Qb.getName(this)};
var s5=function(){q5.call(this)};t(s5,q5);la(s5);s5.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=this.Pc(),b=c.Pa("input",{className:d+"-kb-ga",maxlength:100,value:b.getName()});(new vx("New album name")).yb(b);qo(b,"label","New album name");return c.Pa("div",this.qr(a).join(" "),b)};s5.prototype.mL=function(){};s5.prototype.jh=function(a){return c9e(this,a)};s5.prototype.getName=function(a){return c9e(this,a).value};var c9e=function(a,b){return nc("input",a.Pc()+"-kb-ga",b.ta())[0]};
var j1d=function(a,b,c){r5.call(this,a,b,s5.ia(),c)};t(j1d,r5);q=j1d.prototype;q.Oz=function(){};q.Na=function(){j1d.ya.Na.call(this);var a=this.Qb.jh(this);this.Qb.F$(a,!0);this.Ab=new rw(a);x(this,this.Ab);this.getHandler().Ja(this.Ab,"input",this.Uid).Ja(a,"mousedown",function(a){a.stopPropagation()})};q.Uid=function(a){var b=this.La().getId(),c=this.getContext().Sa;c.Sf(b)!=!Ea(Ga(a.target.value))&&c.HP(b,"cl")}; q.hT=function(a){"INPUT"==a.target.tagName&&38!=a.keyCode&&40!=a.keyCode||j1d.ya.hT.call(this,a)};q.Dha=function(){};
var t5=function(a,b,c){y4.call(this,a,b,void 0,void 0,c);this.Qb=null;b.getOption("allowNewAlbum")&&(b={serviceId:"picasa"},b.id=String(va(b)),b.name="",b.attrs={aa:1},b.mimeType="application/vnd.google-apps.photoalbum",b.lastEditedUtc=Wa(),b=new Vw(b),b.zJ(!0),b.Ab=-1,this.Qb=b.getId(),a.od.Xp([b]))};t(t5,y4);t5.prototype.ED=function(a){return a.Kn()?new j1d(this.getContext(),a,this.Ea()):new h5(this.getContext(),a,this.Ea())};var d9e=function(a){return x5(a,a.Qb).getName()};
t5.prototype.iO=function(){this.Qb&&!this.Rd().vC(this.Qb)&&this.Rd().QK([this.getContext().od.La(this.Qb)]);t5.ya.iO.call(this)};t5.prototype.Pa=function(){t5.ya.Pa.call(this);Qn(this.ta(),"a-Koa")};t5.prototype.cD=function(a){a.target.La().Kn()||t5.ya.cD.call(this,a)};
var k1d=function(a,b,c,d,f){C4.call(this,a,b,c,d,f)};t(k1d,C4);k1d.prototype.Pa=function(){k1d.ya.Pa.call(this);if(this.getContext().rd().mN("caa")){var a=this.Ea().Pa("a","a-yC-s","Learn more"),b=Jf("https://support.google.com/plus/answer/1407859");Hf(b,"hl",My.Sa);a.href=b.toString();a.target="_blank";a="Inserted albums are shared via link. Anyone with the link can access the album. "+(rba(a)+" on how to control who has access to photo albums.");WQd(this.Ab,a,void 0,"a-hWJ5Gd-Za-lm")}};
k1d.prototype.zab=function(){return new B3(this.getContext(),Lp(this.Vb,this),void 0,this.Ea())};
k1d.prototype.Vb=function(){for(var a=this.getContext().Sa.Ua(),b=[],c=null,d=0;d<a.length;d++){var f=this.getContext().od.La(a[d]);f.Kn()?c=f:b.push(f)}c?(this.Ab.qh(!1),a=d9e(this.Ig),Ea(Ga(a))?alert("Please enter an album name."):this.getContext().od.Vd(new K3("createAlbum","picasa",null,{title:a,visibility:m1d(c.getAttribute("aa"))}),Lp(function(a){e9e(this,rb(b,a.Ae()))},this),Lp(this.YY,this),!0)):b.length?e9e(this,b):this.getContext().Ab.b2b()};
var e9e=function(a,b){var c=b[0];a.getContext().od.Vd(new K3("autoCurate","picasa",[c.getAttribute("mediaKey")],{}),ka,ka);a.getContext().Ab.Sl(b)};k1d.prototype.YY=function(){alert("Sorry!  A new album could not be created.");this.Ab.qh(!0)};var m1d=function(a){switch(a){default:return"PRIVATE";case 1:case 2:case 3:case 6:return"PROTECTED";case 4:return"DOMAIN_PUBLIC";case 5:return"PUBLIC"}};
var p1d=function(a,b,c){sz.call(this,a,b||ttd.ia(),c)};t(p1d,sz);uo("d-F-kn-c",function(){return new p1d(null)});var v5=function(a){C.call(this,a);this.mL=new hz;R_d(this.mL,function(a,c){a&&a.Ld(c)});this.Oa=q1d(this,"//ssl.gstatic.com/docs/picker/images/text_align_left.png","Left align");this.$b=q1d(this,"//ssl.gstatic.com/docs/picker/images/text_align_center.png","Center align");this.Ag=q1d(this,"//ssl.gstatic.com/docs/picker/images/text_align_right.png","Right align");this.Sa=new std;this.ib(this.Sa);this.Ab="center"};t(v5,C);
var q1d=function(a,b,c){b=new p1d(p4(b),void 0,a.Ea());Bo(b,16);EI(a.mL,b);b.Pa();c=new mF(b.ta(),c,a.Ea(),1);x(a,c);return b};v5.prototype.Pa=function(){this.Sa.Pa();this.Sa.ib(this.Oa,!0);this.Sa.ib(this.$b,!0);this.Sa.ib(this.Ag,!0);this.Kb(this.Ea().Pa("div","a-Kh-ea",this.Ea().Pa("div","d-k-l",this.Sa.ta())))};
v5.prototype.Na=function(){v5.ya.Na.call(this);this.getHandler().Ja(this.Oa,"action",Lp(this.Qb,this,"left")).Ja(this.$b,"action",Lp(this.Qb,this,"center")).Ja(this.Ag,"action",Lp(this.Qb,this,"right"));this.mL.Ej(1)};v5.prototype.Qb=function(a){this.mL.Ej("left"==a?0:"center"==a?1:2);this.Ab!=a&&(this.dispatchEvent("vF"),this.Ab=a)};
var r1d=function(a,b,c){t3.call(this,a,c);this.yja=My.Qb;this.Bc=b;this.Pha=(b=b.getOption("ids"))&&b.split(",")[0];this.Vk=null;this.YY=new B3(a,Lp(this.Mid,this),Lp(this.Be,this),c);this.YY.Pt.setContent("Save");this.ib(this.YY);this.Go=null;this.Ab=Zva(p4("//ssl.gstatic.com/docs/picker/images/font_icon.png"),c);this.Ab.xg(1);this.ib(this.Ab);this.iu=new hz;R_d(this.iu,function(a,b){a&&a.Ld(b)});this.Oa=s1d(this);this.Maa=new kR;this.ib(this.Maa);this.o9=new kR;this.ib(this.o9);this.yH=new kR;this.ib(this.yH);
this.kN=this.Xb=this.mL=this.Vb=this.Km=this.Sx=this.$b=this.Ko=this.nA=this.Ag=this.Op=this.zF=this.Qb=this.lp=null;this.mN=""};t(r1d,t3);
var s1d=function(a){var b=new ow(a.Ea());w5(a,b,"Amasis Black","AMASIS_BLACK");w5(a,b,"Baskerville","BASKERVILLE");w5(a,b,"Comic Sans","COMIC");w5(a,b,"Consolas","CONSOLAS");w5(a,b,"Courier Bold","COURIER_BOLD");w5(a,b,"Felt Tip Roman Bold","FELT_TIP_ROMAN_BOLD");w5(a,b,"Futura Bold","FUTURA_BOLD");w5(a,b,"Gill Sans Bold","GILL_SANS_BOLD");w5(a,b,"Impact","IMPACT",!0);return b},w5=function(a,b,c,d,f){c=new nR(c,d);EI(a.iu,c);f&&a.iu.jn(c);b.ib(c,!0)};q=r1d.prototype;
q.Pa=function(){var a=this.Ea(),b={"class":"b-hb a-fh-hb",maxLength:100};this.Qb=a.Pa("input",b);this.Ag=a.Pa("input",b);this.$b=a.Pa("input",b);this.Op=new v5(a);this.Op.Pa();this.ib(this.Op);this.Ko=new v5(a);this.Ko.Pa();this.ib(this.Ko);this.Km=new v5(a);this.Km.Pa();this.ib(this.Km);this.Ab.Pa();new mF(this.Ab.ta(),"Font",this.Ea(),1);b=a.Pa("td",null,this.Xb=a.Pa("table",null,a.Pa("tr",null,a.Pa("td",{valign:"top"},this.Qb,this.Op.ta())),a.Pa("tr",null,a.Pa("td",{valign:"middle"},this.Ag,this.Ko.ta())),
a.Pa("tr",null,a.Pa("td",{valign:"bottom"},this.$b,this.Km.ta()))));a=this.lp=a.Pa("div","a-B a-fh",this.Vb=a.Pa("table","a-fh-wf",a.Pa("tbody",null,a.Pa("tr",null,b,a.Pa("td","a-fh-qa-Z",this.Db=a.Pa("img","a-fh-E"),this.mL=a.Pa("img","a-fh-cb")),this.kN=a.Pa("td","a-fh-gaa",this.Ab.ta())))));On(a,!1);qe(a,0);this.Qb.placeholder="Top text";this.Ag.placeholder="Middle text";this.$b.placeholder="Bottom text";On(this.Db,!1);a=this.YY;a.Pa();a.cb().appendChild(this.lp);this.Kb(a.ta())};
q.Yba=function(){Vf(this.Go);this.Go=Uf(function(){var a=0<Ia(Ia(this.Qb.value)+" "+Ia(this.Ag.value)+" "+Ia(this.$b.value)).length;On(this.Db,a);this.YY.qh(a);if(a){var a=this.Db,b;b=iXb(t1d(this));b=Hf(Hf(Df(new Af(this.yja+"caption"),b),"width",this.Vk.wc()),"height",this.Vk.Ic());a.src=b.toString();le(this.Db,zy(this.mL))}},100,this)};q.kt=function(){try{return this.Qb.focus(),!0}catch(a){}return!1};
q.Na=function(){r1d.ya.Na.call(this);this.getContext().od.Vd(new u3("picasa",[this.Pha],{}),Lp(this.Lid,this),ka);this.Oa.render(this.lp);pw(this.Oa,this.Ab.ta(),3,2);new mR(this.Oa);this.zF=new rw(this.Qb);this.nA=new rw(this.Ag);this.Sx=new rw(this.$b);x(this,this.zF);x(this,this.nA);x(this,this.Sx);this.getHandler().Ja(this.zF,"input",this.Yba).Ja(this.nA,"input",this.Yba).Ja(this.Sx,"input",this.Yba).Ja(this.Op,"vF",this.Yba).Ja(this.Ko,"vF",this.Yba).Ja(this.Km,"vF",this.Yba).Ja(this.Oa,"show",
Lp(this.YBb,this,!0)).Ja(this.Oa,"hide",Lp(this.YBb,this,!1)).Ja(this.Ab,"action",this.VAc).Ja(this.Oa,"action",this.kXc);this.getHandler().Ja(this.Ea().getWindow(),"resize",this.YTb);this.Maa.yb(this.Qb);this.o9.yb(this.Ag);this.yH.yb(this.$b)};q.kXc=function(a){a=a.target;this.iu.jn(a);this.mN=a.kc();this.Yba()};q.VAc=function(){this.Oa.rz(this.Ab.ta(),3,2)};q.YBb=function(a){this.Ab.Ld(a)};
q.Lid=function(a){(a=a.Ae())&&a.length&&(this.Vk=a[0].Yh()[0],this.Vk=this.Vk.ll(2048),this.Ea(),On(this.mL,!1),this.mL.src=this.Vk.getUrl(),this.mL.onload=Lp(this.oZc,this),this.YY.qh(!1))};q.oZc=function(){On(this.mL,!0);(new dF(this.lp,450)).play();this.YTb();this.kt()};
q.YTb=function(){var a;a=this.lp;var b=Ae(this.Db),c=zy(this.Xb),d=zy(this.kN);a=new Kb(a.offsetWidth-c.width-d.width-2*b.left,a.offsetHeight);b=new Kb(Math.min(2048,a.width),Math.min(2048,a.height));a=zy(this.mL);if(a.width>b.width||a.height>b.height)b=a.Cr(b),isNaN(b.width)||isNaN(b.height)||le(this.mL,Math.round(b.width),Math.round(b.height));b=zy(this.Vb);Pd(this.Vb,"left","50%");Pd(this.Vb,"marginLeft",Math.round(-b.width/2)+"px");Pd(this.Vb,"top","50%");Pd(this.Vb,"marginTop",Math.round(-zy(this.Vb).height/
2)+"px");ne(this.Xb,a.height)};q.Mid=function(){this.YY.qh(!1);var a=this.Pha;this.getContext().od.Vd(new o1d(a,this.Vk.getUrl(),t1d(this)),Lp(this.Ye,this),Lp(this.yp,this))};var t1d=function(a){var b=new Ze;b.set("top",a.Qb.value);b.set("center",a.Ag.value);b.set("bottom",a.$b.value);b.set("topalign",a.Op.Ab);b.set("centeralign",a.Ko.Ab);b.set("bottomalign",a.Km.Ab);b.set("font",a.mN);return b};r1d.prototype.Ye=function(a){this.getContext().Ab.Sl(a.Ae())}; r1d.prototype.yp=function(){alert("Sorry!  We could not save your caption!  Please try again later.");this.YY.qh(!0)};r1d.prototype.Be=function(){this.Bc.Ab?this.getContext().Mh.On(this.Bc.Ab):this.getContext().Ab.oD()};
var f9e=function(a,b,c,d,f){C4.call(this,a,b,c,d,f);a.rd().Vk&&oEg(this.Ab,new XX(a,"Insert images",f))};t(f9e,C4);f9e.prototype.Pa=function(){f9e.ya.Pa.call(this);Qn(this.ta(),"a-lsa")};var h9e=function(a){return'<div class="a-hA-Z"><img src="'+r(a.Da)+'" alt="'+r(a.kq)+'" align="'+r(a.align)+'" class="a-hA-J" /><div class="a-hA-E">'+r(a.text)+"</div></div>"};var v1d=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.mL=this.Qb=null;this.Ab=new B3(a,Lp(this.Oa,this),void 0,c);this.ib(this.Ab);if("np"!=b.Ra()){if(!b.getOption("id"))throw Error("Kh");a.od.Vd(new u3("contacts",[b.getOption("id")],{}),Lp(this.$b,this),ka)}};t(v1d,t3);
v1d.prototype.$b=function(a){if((a=a.Ae())&&a.length){var b=this.mL=a[0];a=j9e();a.kq="Their photo";var c=x1d(b);c?(b=b.getName()+" has selected this photo.  You can accept this photo or upload your own photo.",a.Da=c.getUrl(),a.text=b):(c=b.getName()+" does not have a profile photo.  By selecting this, you will see no photo for this contact.",a.Da="//ssl.gstatic.com/s2/contacts/images/NoPicture.gif",a.text=c);Vv(this.getContext().ef(),this.Qb,h9e,a);this.Ab.qh(!0)}};
v1d.prototype.Pa=function(){this.Qb=this.Ea().Pa("div","a-B a-hA");if("np"==this.Bc.Ra()){var a=j9e();a.kq="No photo";a.Da="//ssl.gstatic.com/s2/contacts/images/NoPicture.gif";a.text="Show this default photo.";Vv(this.getContext().ef(),this.Qb,h9e,a);this.Ab.qh(!0)}this.Ab.Pa();this.Ab.cb().appendChild(this.Qb);this.Kb(this.Ab.ta())};v1d.prototype.Oa=function(){var a=this.getContext().Ab;"np"!=this.Bc.Ra()&&this.mL&&x1d(this.mL)?a.Sl([this.mL]):a.Sl([])}; var j9e=function(){var a={};a.align=My.Bo()?"right":"left";return a},x1d=function(a){a=a.Yh();for(var b=0;a&&b<a.length;b++){var c=a[b];if("evergreen"==c.Ra())return c}return null};
var z1d=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.Qb=new B3(a,Lp(this.yIb,this),Lp(this.Jjd,this),c);this.ib(this.Qb);this.$b=St("Adjust the crop",c);this.Ab=new nD(void 0,c)};t(z1d,t3);
z1d.prototype.Pa=function(){var a=this.Ea(),b=a.Pa("div","a-B"),c=a.Pa("div","a-tb-tc-qa");b.appendChild(c);c.appendChild(a.Pa("h3","a-tb-tc-qa-Nb","Your channel art is going to look a bit different across devices."));c.appendChild(a.Pa("p","a-tb-tc-qa-nc","Here are some examples."));var d=a.Pa("div","a-tb-tc-qa-Z");c.appendChild(d);this.Oa=D1d(this,d,"Desktop","a-tb-tc-qa-Zoa-m","a-tb-tc-qa-caa-cb");d=a.Pa("div","a-tb-tc-qa-Z");c.appendChild(d);this.YY=D1d(this,d,"TV","a-tb-tc-qa-MO-m","a-tb-tc-qa-MO-cb");
d=a.Pa("div","a-tb-tc-qa-Z");c.appendChild(d);this.Ag=D1d(this,d,"Mobile","a-tb-tc-qa-Uh-m","a-tb-tc-qa-Uh-cb");this.Qb.qh(!0);this.Qb.Pa();this.Qb.cb().appendChild(b);this.Kb(this.Qb.ta());a=a.Pa("div","a-tb-tc-qa-c-Z");c.appendChild(a);(b=A1d(this).Yh()[0])&&b.wc()&&b.Ic()?(b=new Kb(b.wc(),b.Ic()),b=(d=this.getContext().rd().Oa)?Mb(b,new Kb(d.width+5,d.height+5)):!1):b=!1;b||this.$b.render(a);k9e(this,c)};
z1d.prototype.Na=function(){z1d.ya.Na.call(this);this.getHandler().Ja(this.$b,"action",this.Axc).Ja(this.Ab,"change",this.dhb)};z1d.prototype.setActive=function(a,b){z1d.ya.setActive.call(this,a,b);a&&(A1d(this).setAttribute("c",m9e(this)),p9e(this,A1d(this)))};var A1d=function(a){var b=a.Bc.getOption("id");return b&&a.getContext().od.La(b)};q=z1d.prototype;q.yIb=function(){this.getContext().Ab.Sl([A1d(this)])};
q.Axc=function(){var a=A1d(this);if(a){var b=new w3("crop");BN(b,"id",a.Qe());BN(b,"service",a.Sa);var c=a.getAttribute("c");c&&(c=[c.top,c.right,c.bottom,c.left].join(),BN(b,"coords",c));b.Ab=this.Bc;(a=a.vt())&&BN(b,"parent",a.split(".").pop());this.getContext().Mh.On(b)}};
q.dhb=function(){var a=A1d(this);a&&(On(this.mL,!0),this.getContext().od.Vd(new K3("autoenhance","picasa",[a.Qe()],{apply:this.Ab.Jc()?"true":"false"}),Lp(this.idb,this,m9e(this)),Lp(function(){var a=!!A1d(this).getAttribute("ae");this.Ab.Ld(a);On(this.mL,!1)},this),!0))};q.Jjd=function(){this.getContext().Ab.oD()};q.idb=function(a,b){var c=b.Ae();c&&(c[0].setAttribute("c",a),p9e(this,c[0]));On(this.mL,!1)};
var p9e=function(a,b){a.Oa.src=B1d(b,zy(a.Oa).width,new Md(.35331,1,.64711,0));a.YY.src=B1d(b,zy(a.YY).width,new Md(0,1,1,0));a.Ag.src=B1d(b,zy(a.Ag).width,new Md(.35331,.80189,.64711,.19811))},B1d=function(a,b,c){var d=a.getAttribute("c"),d=new Md(d.top,d.right,d.bottom,d.left);c=W_d(new Md(d.top+c.top*(d.bottom-d.top),d.left+c.right*(d.right-d.left),d.top+c.bottom*(d.bottom-d.top),d.left+c.left*(d.right-d.left)));return a.Yh()[0].Qs(b,void 0,"-fcrop64="+c+"-w")},D1d=function(a,b,c,d,f){a=a.Ea();
b.appendChild(a.Pa("h4","a-tb-tc-qa-m-Nb",c));c=a.Pa("div","a-tb-tc-qa-m "+d);b.appendChild(c);b=a.Pa("img",f);c.appendChild(b);return b},m9e=function(a){var b=A1d(a).getAttribute("c");if(b)return{top:b.top,bottom:b.bottom,right:b.right,left:b.left};a=A1d(a).Yh()[0];a=a.Ic()/a.wc();.5625>a?(a*=1/.5625,a=new Md(0,.5+.5*a,1,.5-.5*a)):(a=1/a*.5625,a=new Md(.5-.5*a,1,.5+.5*a,0));return{top:a.top,bottom:a.bottom,right:a.right,left:a.left}},k9e=function(a,b){a.getContext();var c;a.getContext().mL.addCallback(function(a){c=
a.getUserId()});var d=!1,f=A1d(a),h=f.Qja;f.Ii?d=!0:h&&(d=cb(h,function(a){return c==a.getId()}));d&&(h=a.Ea(),d=h.Pa("span","a-tb-tc-qa-kn-ka-Z",h.Pa("span","a-n-m-UY-X"),h.Pa("span","a-tb-tc-qa-kn-ka","Auto Enhance")),GN(a.Ab,d),h=h.Pa("div","a-tb-tc-qa-Vja-gka"),a.Ab.render(h),h.appendChild(d),a.Qb.Ab.appendChild(h),f=!!f.getAttribute("ae"),a.Ab.Ld(f),a.mL=a.Ea().Pa("div","a-tb-tc-qa-iu"),b.appendChild(a.mL),On(a.mL,!1))};
var E1d=function(){kd.call(this)};t(E1d,x3);
E1d.prototype.uj=function(a,b,c){var d=a.getOption("type");switch(a.Sa){case "events":return new C4(b,a,new c1d(b,a,c),[],c);case "et":var f=new h1d(b,a,c);return new C4(b,a,f,[],c);case "image-search":if(a.getQuery())return new f9e(b,a,new Z3(b,a,c),["at"],c);var h="Type your search in the box above to find images using Google Search.";switch(d){case "getty":h="Type your search in the box above to find images from the stock image archive.";break;case "life":h="Type your search in the box above to find photographs from the LIFE photo archive."}(d=
a.getOption("comboTypes"))&&qa(d)&&(d=d.split(","));f=d?new W0d(b,a,h,d,c):new A4(b,a,h,c);return new f9e(b,a,f,[],c);case "photo-caption":return new r1d(b,a,c);case "photos":var k=a.getOption("mode"),m=a.getOption("parent");if(a.getOption("upload")||"edit"==k&&m)return null;h=[];if("featured"==d)f=new Z3(b,a,c,new f8e);else if("getty"==d)a.getQuery()?f=new Z3(b,a,c):f=new A4(b,a,"Type your search in the box above to search the stock photography archive.",c);else if("camerasync"==d)f=new p5(b,a,c);
else if("highlights"==d)m?(d=new a9e(!0),f=new a4(b,a,c,d)):f=new a4(b,a,c);else if("localalbum"!=d||a.getOption("parent"))if("moment"==d&&a.getOption("parent"))f=new PVf(b,a,c);else if(d)f=new Z3(b,a,c);else if(m||a.getOption("query"))if("blogger"==k)f=new Z3(b,a,c),h=["bi"];else if("rollupAlbum"==k)f=new k5(b,a,c);else{if(f=new Z3(b,a,c),!d&&m&&a.getOption("selectAlbum"))return new y1d(b,a,f,h,c)}else f=new k5(b,a,c);else f=new k5(b,a,c);return new f9e(b,a,f,h,c);case "photo-albums":if(a.getOption("enableAlbumNavigation")){if(m=
a.getOption("parent"))return h=a.clone(),BN(h,"type","highlights"),d=new a9e(!0),f=new a4(b,h,c,d),new f9e(b,a,f,[],c);f=new k5(b,a,c)}else f=new t5(b,a,c);return new k1d(b,a,f,[],c);case "profile":return new v1d(b,a,c);case "quota":return new T_d(b,c);case "recently-picked":return new f9e(b,a,new Z3(b,a,c),[],c);case "youtube-banner-preview":return new z1d(b,a,c)}return FQd(a.Sa)?new qaf(b,a,[],c):null};
E1d.prototype.K9=function(a,b,c){switch(a){case "atec":return new e5(b,c);case "blogger":return new Z_d(b,c);case "caa":return new SW(b,c);case "cpaa":return new EGg(b,c);case "contactPhoto":return new $_d(b,c);case "copyphoto":return new a0d(b,c);case "ctpa":return new a7e(b,c);case "cropphoto":return new c0d(b,c);case "geopix":return new e0d(b,c);case "ipfd":return new j0d(b,c);case "sptm":return new ipg(b,c);case "mtp":return new b7e(b,c);case "album":return new f5(b,c);case "photocuration":return new l0d(b, c);case "photosharing":return new g5(b,c);case "polls":return new mMe(b,c);case "profileBanner":return new o0d(b,c);case "profile":return new q0d(b,c);case "sqprofile":return new u0d(b,c)}return null};vg(xg(E.ia(),"opp"),E1d);

G("opp");I();
}catch(e){_DumpException(e)}
try{
var o2d=function(a,b){a.e6=b},wbg=function(a){var b=a.Ea(),c=[b.Pa("div",["a-U-v-c-W","a-n-gc-v-m","d-k-l"]),b.Pa("span","a-U-v-c-E","Upload More")];a.Vb=new Ot(c,b);return a.Vb};H("opu");var F2e=function(a){Qw.call(this,a);this.Ab&&(this.Sa=a.response.values||{})};t(F2e,Qw);F2e.prototype.Rc=function(){return this.Sa};$S(18,function(a){return new F2e(a)});var G2e=function(a){Mw.call(this);this.mL=a};t(G2e,Mw);G2e.prototype.PD=pg(new Af("getphotoprefs"));G2e.prototype.Sq=function(){return 18};G2e.prototype.xE=function(){for(var a=new Ze,b=0;b<this.mL.length;b++)Pw(a,"key"+b,this.mL[b]);return a};var H2e=function(a){Mw.call(this);this.mL=a};t(H2e,Mw);H2e.prototype.PD=pg(new Af("setphotoprefs"));H2e.prototype.Sq=function(){return 19};H2e.prototype.xE=function(){var a=new Ze,b=0;Pb(this.mL,function(c,d){Pw(a,"key"+b,d);Pw(a,"value"+b,c);b++},this);return a};
var y5=function(a,b,c,d){O3.call(this,a,b,c,d);this.Bm(16,!1);this.ana=this.mL=null};t(y5,O3);q=y5.prototype;q.Na=function(){y5.ya.Na.call(this);this.getHandler().Ja(this.mL,"action",function(){this.dispatchEvent(new N3(this.La(),"c"))}).Ja(this.ana,"action",function(){this.dispatchEvent(new N3(this.La(),"t"))})};
q.SEa=function(a){this.ana.setVisible(a);var b=this.Ea(),c=b.fb("a-od-v-e-E",this.ta()),d=b.fb("a-od-v-e-wa-Z",c);d&&c.removeChild(d);a&&(On(F9f(this).ta(),!1),a=b.Pa("div","a-od-v-e-wa-Z",b.Pa("div","a-n-v-wa"),b.Pa("span","a-od-v-e-wa-nc",M3(this.La()).Sa)),c.appendChild(a))};q.update=function(){y5.ya.update.call(this);var a=M3(this.La());if(a){var b=F9f(this).ta();0<a.dNa&&!ve(b)&&On(b,!0);"success"==a.getState()&&(Pn(this.ta(),"a-od-v-e-mv",!0),On(b,!1))}};q.Hw=ka;q.Dha=ka;q.S$=function(){return!0};
var N1d=function(){F3.call(this,"a-od-v-e")};t(N1d,F3);la(N1d);
N1d.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=b.Ii,f=F9f(a);f.Sa(0);f.Pa();On(f.ta(),!1);var d=c.Pa("td","a-od-v-e-xd a-od-v-e-E",c.Pa("span","a-od-v-e-kb",cd(c,uma(bTd(this),b.getName()))),d.tf()?c.Pa("span","a-od-v-e-im",UEc(d.tf())):void 0),h=c.Pa("span","a-od-v-e-xe-bd"),k=c.Pa("div","a-n-J-v-xe"),k=Ejc(k,c);k.render(h);k.Sn("Cancel");var m="Cancel upload of "+b.getName();ey(k.ta(),m);a.mL=k;k=c.Pa("span","a-od-v-e-uf-E");m=Ejc("Retry",c);m.render(k);m.setVisible(!1);var p="Retry upload of "+
b.getName();ey(m.ta(),p);a.ana=m;a=b.getIcon()?"background-image:url("+b.getIcon()+")":"";return c.Pa("tr","a-od-v-e-fd",c.Pa("td","a-od-v-e-xd a-od-v-e-m-xd",c.Pa("span",{"class":"a-od-v-e-m",style:a})),d,c.Pa("td","a-od-v-e-xd a-od-v-e-la",f.ta(),k),c.Pa("td","a-od-v-e-xd a-od-v-e-xe",h))};N1d.prototype.uI=function(){return"listitem"};
var z5=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c)};t(z5,y4);q=z5.prototype;q.Na=function(){z5.ya.Na.call(this);po(this.getContainer().ta(),"list")};q.ED=function(a){a=new y5(this.getContext(),a,N1d.ia(),this.Ea());this.getHandler().Ja(a,"QE",function(a){this.dispatchEvent(a)});return a};q.SEa=function(a,b){var c=x5(this,a.getId());c&&c.SEa(b)};q.reset=function(){if(this.iTa){var a=this.iTa,b=this.getContext().od;v(this.zq().Rc(),function(c){c=b.La(c);a.Tu(a.getFile(c.Ii.getId()))},this)}}; q.gR=ka;
var i$e=function(a){var b="",c="Google Drive is the one place to create, share and keep all of your stuff. You can now insert files  "+('<a href="'+r(a.kwd)+'" id="'+r(a.v2b)+'" class="a-oc-gc-zb-F1-jE-s" target="_blank">up to 10 GB</a>  in size stored in Drive right into emails.'),b=b+('<div class="d-k-l a-oc-gc-zb-E"><div class="a-oc-gc-zb-O">Goodbye attachments.  Hello Google Drive.</div><div class="a-oc-gc-zb-ksa">'+c+' <a href="'+r(a.SJa)+'" class="a-oc-gc-zb-yC" id="'+r(a.pIb)+'" target="_blank">Learn more about Google Drive</a></div><div class="a-oc-gc-zb-Yd">'+ Mt({id:a.otb,content:"Dismiss"})+"</div></div>");return'<div class="d-k-l a-oc-gc-zb-W"><div class="a-n-gc-A7"></div></div>'+b+'<div class="a-oc-gc-zb-ab" id="'+r(a.IDa)+'"><span class="d-k-l a-n-ab-z-ib-zf" title="Close"></span></div>'};
var O1d=function(a,b){C.call(this,b);this.Sa=a;this.Ab={}};t(O1d,C);
O1d.prototype.Pa=function(){var a=this.Ea().Pa("div","a-oc-gc-zb"),b=this.Sa.ef(),c=this.Ab;c.pIb=lh(this,"l");c.otb=lh(this,"d");c.v2b=lh(this,"u");c.IDa=lh(this,"c");c.SJa=ou("https://www.google.com/intl/%s/drive/start/index.html?utm_medium=et&utm_source=gmail&utm_campaign=insert&authuser=%s",My.Sa.replace("_","-"),this.Sa.rd().Ko);c.kwd=ou("https://support.google.com/drive/bin/answer.py?hl=%s&answer=37603",My.Sa);Vv(b,a,i$e,c);this.Kb(a)};
O1d.prototype.Na=function(){var a=this.Ea(),b=a.ta(this.Ab.otb),c=a.ta(this.Ab.pIb),d=a.ta(this.Ab.v2b),a=a.ta(this.Ab.IDa);this.getHandler().Ja(c,["mouseover","mouseout"],this.Qb).Ja(d,["mouseover","mouseout"],this.Qb).Ja(b,"click",this.mL).Ja(a,"click",this.mL)};O1d.prototype.mL=function(){this.dispatchEvent("Pi")};O1d.prototype.Qb=function(a){Pn(a.target,"a-u","mouseover"==a.type)};
var u$e=function(a){a=a||{};return'<span class="d-k-l a-oc-m"></span><span class="d-k-l a-oc-W9"></span><span class="a-oc-c-E">'+r(a.Dkc)+"</span>"};var Plg=function(a){return Y((a.icon?'<img src="'+R(S(a.icon))+'" class="a-pE-pk-m"/>&nbsp;':"")+'<span class="a-wl-Zn-kb">'+r(a.name)+" &nbsp;</span>")};var P1d=function(a){kd.call(this);this.Bb=a;this.Sa=new TC(a.getData,100,a)};t(P1d,kd);q=P1d.prototype;q.uhb=null;q.Zpa=null;q.Fla=null;q.Aya=function(a){this.uhb=a};q.dqd=function(){};var Q1d=function(a,b){var c=a.uhb;if(b&&c){var d=Zd(b),f=c.height;return b.scrollHeight-(c.top-d.y)-f<.5*f}return!1};P1d.prototype.qb=function(){Vf(this.Zpa);this.Zpa=null;Vf(this.Fla);this.Fla=null;this.Sa.Ma();delete this.Sa;this.uhb=null};var R1d=function(){kd.call(this)};t(R1d,kd);
var A5=function(a,b,c){e4.call(this,a,S1d,c);this.Vb=b};t(A5,h4);var S1d=Xb(ohg);Zb(S1d,{chc:"//ssl.gstatic.com/docs/picker/images/cleardot-v1.gif"});q=A5.prototype;q.sVa=!0;q.Pa=function(){A5.ya.Pa.call(this);this.setVisible(this.sVa)};q.jBb=function(){var a={};a["padding-"+(ph(this)?"right":"left")]=(this.f4()-1)*this.rd().FIa+"px";return Bdg("div",{"class":this.u4(),style:a},[this.O0a(),Mdg(this),Ndg(this)])};q.qL=function(){return this.Vb};
q.bX=function(a){A5.ya.bX.call(this,a);this.dispatchEvent(a?"Qi":"Ri");var b=this.jx();b&&b.dispatchEvent(a?"Qi":"Ri")};q.setVisible=function(a){this.sVa=a;var b=this.ta();b&&(b.style.display=a?"":"none")};q.select=function(){this.Vb&&A5.ya.select.call(this)};q.Fga=function(){if((!this.WA()||!Fe(this))&&B5(this))return this;for(var a=$lg(this),b=a.length-1;0<=b;b--)if(B5(a[b]))return a[b].Fga();return B5(this)?this:null};
q.tGa=function(){if(Fe(this)&&this.WA())for(var a=$lg(this),b=0;b<a.length;b++)if(B5(a[b]))return a[b];for(a=this;a!=this.jx();){b=a.gea;if(null!=b&&B5(b))return b;a=a.getParent()}return null};q.xGa=function(){var a=this.mL;if(null!=a&&B5(a))return a.Fga();var a=this.getParent(),b=this.jx();return!B5(a)||!b.S1&&a==b?null:a};var B5=function(a){return a.Vb&&ve(a.ta())};
var C5=function(a,b,c,d,f){A5.call(this,c,d,f);this.Sa=a;this.Bc=b;this.$b=new df;this.Ag=new P1d(new R1d);this.Vk=this.YY=!1;this.Ko=!0};t(C5,A5);C5.prototype.bX=function(a){C5.ya.bX.call(this,a);a&&!this.YY&&V1d(this)};
C5.prototype.Db=function(a){if(!this.YY){for(;0<Ge(this);)this.removeChild(this.Oh(0));this.YY=!0}this.Ko=a.yW();a=a.Ae();for(var b=0;b<a.length;b++){var c=a[b],d=c.Qe();if(!this.$b.contains(d)){var f=c,c=this.Ea(),h=this.Bc.clone();BN(h,"parent",f.getId());BN(h,"type","folders");f=Plg({name:f.getName(),icon:f.getIcon()}).Yqa();h=new C5(this.Sa,h,f,!0,c);this.add(h);h.add(new A5(U1d(),!1,c));this.$b.add(d)}}0==a.length&&this.add(new A5(Bdg("span",{"class":"a-wl-Zn-nc"},"No folders."),!1,this.Ea()));
this.Lga();this.Vk=!1};C5.prototype.iu=function(){for(;0<Ge(this);)this.removeChild(this.Oh(0));this.add(new A5(Bdg("span",{"class":"a-wl-Zn-wa"},"Error"),!1,this.Ea()))};var U1d=function(){return Bdg("span",{"class":"a-wl-Zn-nc"},"Loading items...")};C5.prototype.Lga=function(){Ve($lg(this),function(a){a.qL()&&a.WA()&&a.Lga()});this.Ko&&Q1d(this.Ag,this.ta())&&V1d(this)};var V1d=function(a){if(!a.Vk){a.Vk=!0;var b=a.Bc.or();b.setStart(a.YY?Ge(a):0);a.Sa.od.Vd(b,Lp(a.Db,a),Lp(a.iu,a),!0)}}; C5.prototype.Aya=function(a){this.Ag.Aya(a);Ve($lg(this),function(b){b.qL()&&b.Aya(a)})};C5.prototype.qb=function(){C5.ya.qb.call(this);delete this.Bc;this.$b.clear();delete this.$b;this.Ag.Ma();delete this.Ag};
var D5=function(a,b){gD.call(this,b);this.Sa=a;var c=new i4(M7a,void 0,b);NSd(c);this.ib(c);this.$b=c;var d=new A5(Plg({name:"No folder"}).Yqa(),!0,b);this.Op=d;this.$b.add(d);d.select();d=new w3("folders");BN(d,"ownedByMe",!0);BN(d,"mimeTypes","application/vnd.google-apps.folder");this.Ag=d=new C5(a,d,Plg({name:"My Folders"}).Yqa(),!1,b);c.add(d);d.add(new A5(U1d(),!1,b));d=new w3("folders");BN(d,"ownedByMe",!1);BN(d,"mimeTypes","application/vnd.google-apps.folder");this.Ko=d=new C5(a,d,Plg({name:"Folders shared with me"}).Yqa(),
!1,b);c.add(d);d.add(new A5(U1d(),!1,b));this.Oa=new Hd(this);this.Vk=new P1d(new W1d(this));this.Km=St("Upload to this folder",this.Ea());this.mL=new Ot("Cancel",this.Ea())};t(D5,gD);q=D5.prototype;q.Pa=function(){D5.ya.Pa.call(this);this.setVisible(!1);Qn(this.ta(),"a-pE-Woa-ni");var a=this.$b;a.Pa();var b=this.Ea().Pa("span","a-pE-Voa-ea");this.Km.render(b);this.mL.render(b);this.setContent(this.Ea().Pa("div",void 0,a.ta(),b))};
q.Na=function(){D5.ya.Na.call(this);this.Oa.Ja(this.Km.ta(),"click",this.yid).Ja(this.mL.ta(),"click",Lp(function(){this.dispatchEvent("ek");this.setVisible(!1)},this));this.Oa.Ja(this.$b.ta(),"scroll",this.oGc)};q.yid=function(a){var b=this.$b.$e();b&&!this.$b.Sf()?(this.Op.Sf()?this.dispatchEvent(new X1d(null)):this.dispatchEvent(new X1d(b.Bc.getOption("parent"))),this.setVisible(!1)):a.preventDefault()};
q.setVisible=function(a){D5.ya.setVisible.call(this,a);if(a&&!this.lp){this.lp=!0;this.Ag.bX(!0);var b=this.$b.ta();b?(a=Zd(b),b=zy(b),a=new Nd(a.x,a.y,b.width,b.height)):a=null;this.Ag.Aya(a);this.Ko.Aya(a)}};q.oGc=function(a,b){t:{var c=this.Vk;b||(c.Fla&&(Vf(c.Fla),c.Fla=null),c.Fla=Uf(Lp(c.dqd,c,!1),50));if(c.Bb.Ad()){if(c.Zpa)if(b)c.Zpa=null;else break t;c.Sa.Il()}}};q.Lga=function(){this.Ag.Lga();this.Ko.Lga()};
q.qb=function(){D5.ya.qb.call(this);delete this.$b;delete this.Ag;delete this.Ko;delete this.Op;this.Oa.Ma();delete this.Oa;this.Vk.Ma();delete this.Vk;delete this.Km;delete this.mL};var X1d=function(a){A.call(this,"Hl");this.Db=a};t(X1d,A);var W1d=function(a){kd.call(this);this.Sa=a};t(W1d,R1d);W1d.prototype.getData=function(){this.Sa.Lga()};W1d.prototype.Ad=function(){return!0};W1d.prototype.qb=function(){delete this.Sa};
var Y1d=function(a,b,c){C.call(this,c);this.Sa=a;this.$b=new D5(a,c);this.Ab=new Fp("No folder",null,Hp.ia(),this.Ea());Co(this.Ab,64,!0);this.mL=""};t(Y1d,C);Y1d.prototype.Pa=function(){var a=this.Ea();this.Kb(a.Pa("div","a-lN",a=a.Pa("div","a-lN-r")));this.Ab.render(a);var b=this.$b;this.ib(b);b.Fg(this.Ab.ta());b.setPosition(1,0,50);b.IA(!1);b.render(a);Z1d(this,"No folder");this.getHandler().Ja(this.Ab,"open",this.Ag).Ja(b,"ek",this.Qb).Ja(b,"Hl",this.Oa)};
var Z1d=function(a,b){var c={};c.Dkc=b;Vv(a.Sa.ef(),a.Ab.cb(),u$e,c)};Y1d.prototype.Ag=function(){this.$b.setVisible(!0)};Y1d.prototype.Qb=function(){this.Ab.hm(!1)};Y1d.prototype.Oa=function(a){(a=a.Db)?(a=this.Sa.od.La(a),this.mL=a.Qe(),Z1d(this,La(a.getName())||"\u00a0")):(this.mL="",Z1d(this,"No folder"));this.Qb()};Y1d.prototype.reset=function(){Z1d(this,"No folder");this.mL=""};
var E5=function(a,b,c,d,f,h,k){C.call(this,f);this.Sa=a;this.Qb=b;this.mL=c;this.iA=new Ot(d,f);this.ib(this.iA);this.iA.Pa();this.Oa=qa(k)?k:"a-n-dc-v-lb"};t(E5,C);
E5.prototype.Pa=function(){var a=this.Ea(),b;b=["a-ec-NX"];var c=a.Pa("div","a-ec-rka",cd(a,"&mdash; or &mdash;")),d=a.Pa("div",{id:lh(this,"select-files-button")},this.iA.ta());this.mL=a.Pa("div",void 0,c,d);b.push("a-ec-apa");b=a.Pa("div","a-ec",a.Pa("div",["a-ec-iA","a-ec-zsa"],a.Pa("div","a-ec-TL",this.$b=a.Pa("div",b,a.Pa("div",this.Oa),a.Pa("div","a-ec-E",this.Qb),a.Pa("div","a-ec-P1",this.mL),a.Pa("div",{id:lh(this,"select-files-button")},this.iA.ta())))));a=a.Pa("div","a-D-v-Bd-c",this.Ab=
a.Pa("button",{style:"display:none"}));b.appendChild(a);this.Kb(b)};E5.prototype.setVisible=function(a){var b=this.ta();a?(Pd(b,My.Bo()?"right":"left","0"),Pd(b,"width","auto"),Pd(b,"height","auto"),(new bF(this.$b,218)).play()):(Pd(b,My.Bo()?"right":"left","-10000px"),Pd(b,"width","1px"),Pd(b,"height","1px"));b&&qo(b,"hidden",!a)};E5.prototype.zla=function(a){Pn(this.ta(),"a-Db-Bg-Cl",a)};E5.prototype.zt=function(){};
var L5=function(a,b,c){I5.call(this,a,b,c);b.getOption("parent")||"true"!=String(b.getOption("includeFolders"))?"gm-c"==a.rd().Ag&&(this.Qb=new O1d(a,c),this.ib(this.Qb)):(this.mL=new Y1d(a,0,c),this.ib(this.mL));this.Ig=new z5(a,b,c);this.ib(this.Ig);this.Hl=new E5(this.getContext(),this.Qr.q5,this.Qr.mL,this.Qr.Sa,this.Ea(),0,"");this.ib(this.Hl)};t(L5,I5);q=L5.prototype;q.icb=!1;q.sea=null;
q.p1=function(a){var b=this.getContext(),c=new B3(b,Lp(this.XD,this),void 0,a);c.Pt.setContent("Upload");b.rd().Vk&&(this.sea=new vEg(b,"Insert as",a),oEg(c,this.sea));this.Qj=wbg(c);this.Qj.setContent("Add more files");return c};q.oT=function(){var a=this.Ea().Pa("div","a-B a-v "+(this.mL?"a-oc":""));this.mL&&this.mL.render(a);this.Qb&&(this.Qb.render(a),On(this.Qb.ta(),!1));this.Ig.render(a);this.Hl.render(a);return a};
q.OW=function(){this.Ea();o2d(this,this.ta());var a=this.Hl.Ab;this.bQ=a;this.Ab=this.getContext().We().Oa(this.YK(),a);this.Ab.addCallback(function(a){this.Ig.iTa=a},this);this.Pf=K5(this,this.Ig.Rd());this.getHandler().Ja(this.Pf,"ql",this.hAc).Ja(this.Pf,"$k",this.rAc)};q.setActive=function(a,b){L5.ya.setActive.call(this,a,b);a&&this.reset();this.Ig.setActive(a)};
q.Na=function(){L5.ya.Na.call(this);this.Ab.addCallback(function(a){a.Lr(this.Hl.iA,!0);this.Hl.zla(a.JI())},this);var a=this.Qj;this.getHandler().Ja(this.Ig,"QE",this.iIb).Ja(a,"mouseover",function(){Pn(a.ta(),"a-v-Md-e-u",!0)}).Ja(a,"mouseout",function(){Pn(a.ta(),"a-v-Md-e-u",!1)}).Ja(this.getContext().Qb,"visibility",function(){On(this.Qj.ta(),!1)});Qn(this.Qj.ta(),"a-v-Md-e");q2d(this)};
q.iIb=function(a){this.Ab.addCallback(function(b){var c=this.Pf;if("c"==a.Sa){var d=M3(a.La());b.Tu(b.getFile(d.getId()));c.Ae().length?(this.Ig.kt(),H5(c,"default")?this.cj.Pt.setContent("Upload"):H5(c,"success")?this.cj.Pt.setContent("Select"):this.cj.qh(!1),this.Qj.setVisible(!0,!0),Pd(this.Qj.ta(),"visibility","visible")):(this.reset(),this.kt())}else"t"==a.Sa&&(this.icb=!H5(c,"running")||!H5(c,"scheduled"),this.Ig.SEa(a.La(),!1),b.tca(b.getFile(M3(a.La()).getId())))},this)};
q.rAc=function(a){nEg(this.cj,!1);(a=x5(this.Ig,a.Sa.getId()))&&On(F9f(a).ta(),!0)};q.hAc=function(a){a=a.Sa;var b="error"==a.Ii.getState();this.Ig.SEa(a,b)};q.S_=function(){Bag(this,!1);this.cj.Pt.setContent("Upload");this.cj.qh(!0);var a=this.Qj;a.setVisible(!0,!0);Pd(a.ta(),"visibility","visible");this.Ab.addCallback(function(b){b.Lr(a,!0)},this);r2d(this,!1);this.Ig.kt()};
q.hS=function(){var a=this.Pf;H5(a,"success");var b=H5(a,"error");H5(a,"error")&&!this.icb&&(H5(a,"success")?(p2d(this,"Some of your uploads failed. You can submit the successful files, or choose to remove or retry the files that failed.",lI(lI(new qx,{key:"yes",caption:"Select successful files"}),{key:"cancel",caption:"Revise"})),this.cj.qh(!0)):(p2d(this,"All your files failed to upload. Please retry or remove the failed files. You may also add new files.",lI(new qx,{key:"ok",caption:"OK"})),this.mL&&
this.mL.Ab.Ta(!0)));this.icb=!1;this.cj.Pt.setContent("Select");b?this.Ab.addCallback(function(a){a.Lr(this.Qj,!0)},this):this.WC()};q.XD=function(){if(this.mL){var a=this.mL;this.Pf.Ag=a.mL;a.Ab.Ta(!1)}else this.Xd.getOption("parent")&&(a=this.Xd.getOption("parent"),this.Pf.Ag=a);L5.ya.XD.call(this)};
var p2d=function(a,b,c){var d=new jx(void 0,void 0,a.Ea());r7a(d,Hua(b));d.Qd(c);d.ud(!0);d.render();var f=d.ta();ey(f,b);f.removeAttribute("aria-labelledby");Qn(d.ta(),"a-Sc-v-wa-q");Qn(d.hg(),"a-Sc-v-wa-q-Ya");v(c.ii(),function(a){Qn(gK(c,a),"a-Sc-v-wa-q-c")});LFa(d,"yes");ud(d,"dialogselect",Lp(a.Oa,a));d.setVisible(!0);try{d.focus()}catch(h){}};
L5.prototype.start=function(){if(H5(this.Pf,"default"))L5.ya.start.call(this),this.getContext().od.xk(this.Pf.Ag?9:10);else{var a={key:"yes",caption:"Select successful files"},b={key:"cancel",caption:"No"};H5(this.Pf,"error")?p2d(this,"Some of the files failed to upload. Do you want to submit only the files that succeeded?",lI(lI(new qx,a),b)):this.WC()}};L5.prototype.WC=function(){var a=ec(this.Pf.Ae(),function(a){return a.Ii&&"success"==a.Ii.getState()});a.length?this.getContext().Ab.Sl(a):this.getContext().Ab.oD()};
L5.prototype.kt=function(){try{return this.Hl.iA.focus(),!0}catch(a){}};var Bag=function(a,b){a.Hl.setVisible(b);a.Hl.iA.Ta(b);J5(a,!b)};L5.prototype.Oa=function(a){"yes"==a.key&&this.WC()};var q2d=function(a){var b=a.Qb;b&&(a.getContext().mL.addCallback(function(a){"true"!=a.M_b.get("dd")&&r2d(this,!0)},a),a.getHandler().yj(b,"Pi",Lp(a.$b,a)))};L5.prototype.$b=function(){r2d(this,!1);this.getContext().mL.addCallback(function(a){a.M_b.set("dd","true")},this)};
var r2d=function(a,b){a.Qb&&(On(a.Qb.ta(),b),Pn(a.ta(),"a-oc-lE-gc-zb",b))};L5.prototype.reset=function(a){L5.ya.reset.call(this,a);a||(Bag(this,!0),this.cj.qh(!1),this.Ab.addCallback(function(a){a.VM(this.Qj);a.Lr(this.Hl.iA,!0)},this),this.mL&&(this.mL.Ab.Ta(!0),this.mL.reset()),q2d(this),this.Ig.reset())}; L5.prototype.a8b=function(a){var b=a.Ab;this.cj.qh(b);L5.ya.a8b.call(this,a);b&&this.getContext().rd().Vk&&(1==a.Sa?(this.sea.Ta(!1),t0d(this.sea.Ab,"inline"),b=0,2==a.Sa&&(b=1),nEg(this.cj,!0,VFg(a.Sa),b)):(this.sea.Ta(!0),nEg(this.cj,!1)))};
var v2d=function(a,b,c){M5.call(this,a,b,c)};t(v2d,M5);v2d.prototype.p1=function(){var a=new z4(this.getContext());I1d(a);a.qh(!1);return a};
v2d.prototype.hS=function(){var a=this.Pf.Ae()[0],b="success"!=a.Ii.getState();if(b){this.reset();var c=a.Ii.dG(),d=c&&c.type,c="The image you selected could not be uploaded. Please try again.";"too_large"==d?c="The image you selected is too large.  Only files smaller than 5 megabytes are allowed.  Please select a smaller image and try again.":"too_large_in_dimensions"==d?c="The image you selected is too large.  Only files smaller than 3500 by 2500 pixels are allowed.":"not_an_image"==d&&(c="The file you selected was not a valid image file. Please select another file and try again.");
var d=this.Ea(),f=d.Pa("a",{"class":"a-s",href:"https://docs.google.com/support/bin/answer.py?answer=97447&topic=15127&hl="+My.Sa,target:"_blank"},"Learn more"),d=d.Pa("div",null,f);s2d(this,c+" "+d.innerHTML);b||t2d(this,[a.getId()])}else this.$b.Sa(100),this.WC()};
var Q2e=function(a,b,c){this.Sa=a;I2e.call(this,b,c,!1,!1)};t(Q2e,I2e);Q2e.prototype.a3a=function(a,b){this.Sa.od.Vd(new G2e(a),function(a){b(a.Rc())},ka)};Q2e.prototype.qMa=function(a){this.Sa.od.Vd(new H2e(a),ka,ka)};Q2e.prototype.Xya=function(){return this.Sa.rd().DAa};
var w2d=function(a,b,c){M5.call(this,a,b,c)};t(w2d,M5);w2d.prototype.hS=function(){var a=this.Pf.Ae()[0];"success"!=a.Ii.getState()?(this.reset(),s2d(this,a.Ii.dG().error_msg)):(this.$b.Sa(100),this.WC())};var x2d=function(){kd.call(this)};t(x2d,x3);var A2d=["document","drawings","presentation","spreadsheet","forms"];x2d.prototype.uj=function(a,b,c){if("upload"==a.Sa){var d=a.getQuery();if(!d||OQd(a))return null;b.rd();return"docs"==d?b.rd().$b?new L5(b,a,c):new M5(b,a,c):eb(A2d,d)?new v2d(b,a,c):"mapspro"==d?new w2d(b,a,c):new M5(b,a,c)}return null};
x2d.prototype.Sa=function(a,b,c){var d=new ag,f=b.rd(),h=f.Maa[a];if(!h)return Oda(void 0);var k=h.getUrl(),m=f.Ko;ia(m)&&(k=Hf(Jf(k),"authuser",m).toString());var p=new SY(k);x(this,p);b.mL.addCallback(function(k){y2d(p,h,f,k,c);if("FLASH"==p.Ab[0]){if(k=Ied(p))p8e(k,a,b,c),d.By(k)}else Ied(p,Lp(function(f){p8e(f,a,b,c);d.By(f)},this))},this);return d};
var y2d=function(a,b,c,d,f){Eed(a,b.$b());a.Ag=f;a.Oa=!0;a.mL=void 0;Hed(a,f,d.Qb);a.$b=f;a.mL=void 0;if(c=R2e(c)&&"XHR"==a.Ab[0])c=a.Ab[0],c=!("FLASH"==c&&0<=Xa(OJ,"10")||"XHR"==c&&jed());c&&(b=sb(b.$b()),eb(b,"FLASH")&&(b.unshift("FLASH"),Eed(a,b,!0)))},p8e=function(a,b,c,d){a.L1(c.rd().$b);a.p8=!1;a.roa=!0;Scd(a,3);a.doa=!0;R2e(c.rd(),b)&&(b=new Q2e(c,a,jc(d)),x(a,b))},R2e=function(a,b){switch(b){case "dragonflyphotos":case "localphotos":case "photo":case "photos":case "profile":case "youtubebanner":switch(a.Ag){case "pwa":case "gm-c":case "gm-i":case "yt-banner":return!1}return!0}return!1}; vg(xg(E.ia(),"opu"),x2d);

G("opu");I();
}catch(e){_DumpException(e)}
try{
var v$e=function(a,b){le(a,b.width,b.height);Vd(a,b.left,b.top)};H("sy908");var Fhd=function(a){var b="";a='Tag "'+(Dn(r(a.rxa))+'"');return Y(b+a)};var Ghd=function(){};Ghd.prototype.Sa=function(a,b){var c;t:if(OYb(a)){c=bN(a);for(var d=0;d<b.length;d++){var f=b[d].Oc();if(f){d=f.yc()||"";c=c==bN(d);break t}}c=!1}else c=!0;return c?[]:[new aN(a,void 0,void 0,Fhd)]};var BZ=function(a,b){this.overlay=a;this.Qb=b;this.Oa=oe(this.overlay.ta());this.Ba=new Hd(this)};q=BZ.prototype;q.getHandler=function(){return this.Ba};q.eb=ka;q.Pb=ka;q.A4=rZ;q.U_=rZ;q.Fha=rZ;q.Gha=rZ;q.V_=rZ;q.Jsa=rZ;var w$e=function(a,b,c,d){return Math.min(b,c,d,a.width-c,a.height-d)};
var Ahd=function(a,b,c){BZ.call(this,a,b);this.mL=c};t(Ahd,BZ);Ahd.prototype.eb=function(){this.Sa=mZ(this.overlay.Ab,this.mL);this.Ab=mZ(this.overlay.Qb,this.mL);this.Sa&&this.Sa.setVisible(!0);this.Ab&&this.Ab.setVisible(!0);this.Ag=Uf(Lp(this.$b,this),1308)};Ahd.prototype.Pb=function(){this.Sa&&this.Sa.setVisible(!1);this.Ab&&this.Ab.setVisible(!1);Vf(this.Ag)};Ahd.prototype.$b=function(){j4(this.overlay)};
var Hhd=function(a,b){this.Ab=a;this.Sa=b};Hhd.prototype.Ns=function(){return this.Ab};var Ihd=function(a){A.call(this,a);this.Ab=null;this.Sa=!1};t(Ihd,A);Ihd.prototype.Jt=function(){return this.Ab};var Jhd=function(a,b,c,d,f){kd.call(this);this.Fa=a;this.Sa=f(b,c);x(this,this.Sa);TYb(this.Sa.Us(),new Ghd);this.Ab=d;this.Ba=new Hd;x(this,this.Ba);this.Ba.Ja(this.Sa,"update",Lp(this.mL,this))};t(Jhd,kd);Jhd.prototype.mL=function(a){if(a.row){var b=new Ihd("IF"),c=a.row.Oc();a=a.row.getQuery();c?(c=!c&&c.getId()&&c.getId().P9()?null:new Hhd(null,c),b.Ab=c):a&&(b.Ab=new Hhd(a,null),b.Sa=!0);b.Jt()&&this.Ab(b)}};
var Bhd=function(a,b,c,d){BZ.call(this,a,b);this.Sb=1;this.Ag=(this.$b=d)?c:null;this.Sa=c.Ab.clone();this.Ab=new Bfd;this.mL=new Gb};t(Bhd,BZ);q=Bhd.prototype;
q.eb=function(){var a=this.overlay.ta();Jd(this.getHandler().Ja(a,"keydown",this.wud).Ja(a,"mousedown",this.xud).Ja(this.overlay.Ea().La(),"mouseup",this.zud).Ja(a,"mousemove",this.yud),a,vw,this.vud);this.Ag&&(a=Thd(this.overlay),this.Sa=this.Ag.Ab.clone(),this.Sa.scale(a));Dhd(this);CZ(this.overlay,!0,void 0,!1,!0);Ehd(this.overlay,!0,!this.$b,!1,!1);Mhd(this.overlay.Ec)};
q.Pb=function(){this.getHandler().removeAll();$hd(this.overlay,null);CZ(this.overlay,!1,void 0,void 0,!1);Ehd(this.overlay,!1,!1,!1,!1);var a=this.overlay;a.iu(a.Ea())};q.wud=function(a){27==a.keyCode?(a.stopPropagation(),j4(this.overlay),this.Qb("DF",new qZ)):32==a.keyCode&&a.stopPropagation()};q.xud=function(a){if(!this.$b){var b=ie(this.overlay.ta());this.mL.x=a.clientX-b.x;this.mL.y=a.clientY-b.y;this.Ab=this.Sa.clone();(b=Chd(this,a))?(this.Sb="pos"==b?2:4,a.stopPropagation()):this.Sb=1}};
q.yud=function(a){var b=ie(this.overlay.ta()),c=a.clientX-b.x,b=a.clientY-b.y;switch(this.Sb){case 1:c=Chd(this,a);this.$b||$hd(this.overlay,c);break;case 2:this.Sb=3;case 3:var c=c-this.mL.x,b=b-this.mL.y,c=Cb(this.Ab.Sa+c,this.Sa.radius,this.Oa.width-this.Sa.radius),b=Cb(this.Ab.Ab+b,this.Sa.radius,this.Oa.height-this.Sa.radius),d=this.Sa;d.Sa=c;d.Ab=b;Dhd(this);a.stopPropagation();break;case 4:c-=this.Ab.Sa,b-=this.Ab.Ab,c=w$e(this.Oa,Math.sqrt(c*c+b*b),this.Ab.Sa,this.Ab.Ab),this.Sa.radius=c,
Dhd(this),c=Chd(this,a),this.$b||$hd(this.overlay,c),a.stopPropagation()}};q.vud=function(a){a.stopPropagation();var b=this.overlay;b.wb.contains(b.mL,a.target)||(j4(this.overlay),this.Qb("DF",new qZ))};q.zud=function(a){a.stopPropagation();a=this.Sb;1!=a&&2!=a&&(this.Sb=1,this.mL.x=0,this.mL.y=0,this.Ab.setBounds(0,0,0),Phd(this.overlay.Ec))};
var Chd=function(a,b){var c=ie(a.overlay.ta()),d=b.clientX-c.x-a.Sa.Sa,c=b.clientY-c.y-a.Sa.Ab,f=d*d+c*c,h=a.Sa.radius-8,k=a.Sa.radius+8;return f<h*h?"pos":f<k*k?"ew nesw ns nwse ew nesw ns nwse".split(" ")[Math.floor((180/Math.PI*Math.atan2(-c,d)+382.5)%360/45)]:null},Dhd=function(a){var b=2*a.Sa.radius,b=new Nd(a.Sa.Sa-a.Sa.radius,a.Sa.Ab-a.Sa.radius,b,b);CZ(a.overlay,void 0,void 0,void 0,void 0,b);Ehd(a.overlay,void 0,void 0,void 0,void 0,b)};
var z$e=function(){this.Sa=null};z$e.prototype.update=function(a,b){if(a&&b&&b.ta()){var c=ie(b.ta()),d=xe(b.ta()),f=ie(a.ta()),h=xe(a.ta());this.Sa=new Md(f.y+h.height/2,Math.max(c.x+d.width,f.x+h.width),c.y+d.height+11,Math.min(c.x,f.x))}else this.reset()};z$e.prototype.reset=function(){this.Sa=null};z$e.prototype.contains=function(a){return!!this.Sa&&this.Sa.contains(a)};
var DZ=function(a,b){BZ.call(this,a,b)};t(DZ,BZ);DZ.prototype.eb=function(){var a=new qZ;a.tag=this.Sa;a.tag&&this.Qb("BF",a)};DZ.prototype.Pb=function(){eid(this.overlay,!1,!1)};DZ.prototype.U_=function(a){if(a.data.tag){var b=hid(this.overlay,a.data.tag);eid(this.overlay,!!this.Sa,!0,b);this.Sa=a.data.tag}else j4(this.overlay)};DZ.prototype.V_=function(a){this.Sa==a.data.tag&&(this.Sa=null,eid(this.overlay,!1,!1))};
var Efd=function(a,b,c){b=(a.lOc?'<div class="j-D-Ua-Nc-na-Z">'+(a.u1b?r(a.u1b):"")+"</div>":"")+'<div class="j-D-Ua-Nc">';if(a.d4a)if(a.w0){var d=wA(new Z("{VIEWER_GENDER,select,male{Is this you?}female{Is this you?}other{Is this you?}}"),{VIEWER_GENDER:c.Aa});b+='<span class="j-D-Ua-Nc-to">'+d+"</span>"}else if(a.nP){b+='<span class="j-D-Ua-Nc-eNa">';var d=""+(a.Va?'<a class="j-D-Ua-Nc-kb" href="'+R(S(a.qf))+'" title="'+R(a.name)+'" target="_blank">':'<span class="j-D-Ua-Nc-kb" title="'+R(a.name)+
'">'),d=jA(d),f=""+(a.Va?"</a>":"</span>"),f=jA(f),d='<span class="j-D-Ua-Nc-Fi">Is this</span> '+(r(d)+(r(a.name)+(r(f)+"?")));b+=d+"</span>"}else d='<span class="j-D-Ua-Nc-Fi">Is this '+(r(a.name)+"?</span>"),b+=d;else b=a.tKb?b+r(a.tKb):b+'<span class="j-D-Ua-Nc-yp">Click face to tag</span>';if(a.AHb||a.Y4)b+='<span class="j-D-Ua-Nc-c-Z">',a.AHb?(d=wA(new Z("{VIEWER_GENDER,select,male{Suggest as {NAME}'s profile photo}female{Suggest as {NAME}'s profile photo}other{Suggest as {NAME}'s profile photo}}"),
{VIEWER_GENDER:c.Aa,NAME:R(a.name)}),b+='<span class="j-D-Ua-Nc-ld j-D-Ua-Nc-ld-Eb-J-c" title="'+d+'"></span>'):a.w0&&(d=wA(new Z("{VIEWER_GENDER,select,male{Make this photo your profile photo}female{Make this photo your profile photo}other{Make this photo your profile photo}}"),{VIEWER_GENDER:c.Aa}),b+='<span class="j-D-Ua-Nc-ld j-D-Ua-Nc-ld-Eb-J-c" title="'+d+'"></span>'),a.Y4&&(d=wA(new Z("{VIEWER_GENDER,select,male{Remove this tag}female{Remove this tag}other{Remove this tag}}"),{VIEWER_GENDER:c.Aa}),
b+='<span class="j-D-Ua-Nc-Ce j-D-Ua-Nc-Ce-c" title="'+d+'"></span>'),b+="</span>";b+="</div>"+(a.d4a?'<div class="j-D-Ua-Nc-ea"></div>':"")+(a.eOc&&a.d4a&&!a.w0?Q(wfd(0,0,c)):"")+'<div style="clear: both;"></div>';return Y(b)},Ffd=function(a){a=a||{};a=""+(a.name?""+a.name:"");a=Oz(a);return P("Owner of this tag ("+(""+a+") has not approved it yet."))};
var oZ=function(a,b,c,d,f,h,k,m,p,u,z){C.call(this,T(a).Ea());this.Fa=a;this.Sa=b;this.YY=c;this.Vk=d;this.Oa=f;this.Ko=h;this.lp=k;this.Db=m;this.Op=p;this.Km=u;this.Qb=z;this.ha=V(a)};t(oZ,C);
oZ.prototype.Pa=function(){oZ.ya.Pa.call(this);var a=this.Ea(),b=this.ha,c=this.ta(),d,f=this.Sa.Ah();d=Hfd(this);var h=this.YY&&f&&f.getId()==this.YY,k=this.Sa.nP(),m=this.Sa.Un(),p=null,u=d?46:28;this.Oa&&f&&(k||m?p=vYb(f):(p=f.Yr())||(p=vYb(f)));var z=null;f&&w(f,2)&&(z=f.getId()&&"0"!=f.getId()?f.getId():null);var F=z&&!m,f=f&&f.Ob()||null,M=m?JC(this.ha,Ffd,{name:f}):void 0;if(d&&!h&&null==f){var X="photos tagging: tageeName is null";Qda(X,Error(X))}else d&&!h&&"null"==f&&(X="photos tagging: tageeName is of string null",
Qda(X,Error(X)));d={eOc:this.Vk,lOc:this.Oa,d4a:d,Y4:this.Sa.Y4()&&!Hfd(this),AHb:this.Sa.B3b(),nP:k,w0:h,name:f,tKb:this.Qb.Ab(f,m,z,"j-D-Ua-Nc-kb"),Va:z,qf:this.Qb.Qb(z),u1b:this.Qb.mL(f,p,u,F?z:void 0,M)};Vv(b,c,Efd,d);Hfd(this)&&(b=D("j-D-Ua-Nc-ea",this.ta(),a),this.mL=new Ot("Tag",a,2),this.ib(this.mL),this.mL.render(b),Qn(this.mL.ta(),"j-D-Ua-Nc-c"),this.Ab=new Ot("Don't tag",a),this.ib(this.Ab),this.Ab.render(b),Qn(this.Ab.ta(),"j-D-Ua-Nc-c"));this.$b=a.fb("j-D-Ua-Nc-yp",this.ta());this.Vb=
a.fb("j-D-Ua-Nc-Ce",this.ta());this.Ag=a.fb("j-D-Ua-Nc-ld",this.ta())};oZ.prototype.Na=function(){oZ.ya.Na.call(this);var a=this.getHandler();this.mL&&this.Ab&&a.Ja(this.mL,"action",this.Ko).Ja(this.Ab,"action",this.lp);this.Vb&&Hr(a,this.Vb,vw,this.Db,void 0);this.Ag&&Hr(a,this.Ag,vw,this.Km,void 0);this.$b&&Hr(a,this.$b,vw,this.Op,void 0)};var Hfd=function(a){return a.Sa.zRa()||a.Sa.nP()};
var Khd=function(a,b,c){a=Y;b="";var d=wA(new Z("{VIEWER_GENDER,select,male{Press Enter to apply or Esc to cancel.}female{Press Enter to apply or Esc to cancel.}other{Press Enter to apply or Esc to cancel.}}"),{VIEWER_GENDER:c.Aa});b='<div class="j-D-Ua-i-zs"><span class="j-D-Ua-i-N-z"><input class="j-D-Ua-i-N b-hb" type="text" /></span><div class="j-D-Ua-i-Th">'+Y(b+d)+'</div></div><div class="j-D-Ua-i-Lb"><div class="j-D-Ua-i-kb-wa" style="display:none;">';var d="",f=wA(new Z("{VIEWER_GENDER,select,male{Please provide a contact name.}female{Please provide a contact name.}other{Please provide a contact name.}}"),
{VIEWER_GENDER:c.Aa}),d=Y(d+f);b=b+d+'</div><div class="j-D-Ua-i-ha">';d=Y("Name:");b=b+d+'</div><input class="j-D-Ua-i-kb b-hb" type="text" /><div class="j-D-Ua-i-ha">';d=Y("Email address (optional):");return a(b+d+'</div><input class="j-D-Ua-i-Fc b-hb" type="text" /><div class="j-D-Ua-i-ea"></div></div><img class="j-D-Ua-i-Hd" src="//ssl.gstatic.com/ui/v1/activityindicator/loading_16.gif">'+Q(wfd(0,0,c)))};
var Lhd=function(a,b){gD.call(this,T(a).Ea());this.Fa=a;this.iu=b;this.ha=V(a);this.IA(!1);hD(this,!1);iD(this,!0);this.setPosition(1,2,void 0,-13)};t(Lhd,gD);q=Lhd.prototype;
q.Pa=function(){Lhd.ya.Pa.call(this);Qn(this.ta(),"j-D-Ua-i");Vv(this.ha,this.cb(),Khd,this.Ea());var a=D("j-D-Ua-i-ea",this.ta(),this.Ea()),b=this.ha.getData().Aa||"other",c=(new Z("{GENDER, select, male {Tag}female {Tag}other {Tag}}")).format({GENDER:b});this.Oa=new Ot(c,this.Ea(),2);this.ib(this.Oa,!1);this.Oa.render(a);b=(new Z("{GENDER, select, male {Cancel}female {Cancel}other {Cancel}}")).format({GENDER:b});this.mL=new Ot(b,this.Ea(),0);this.ib(this.mL,!1);this.mL.render(a);this.lp=D("j-D-Ua-i-zs",
this.cb(),this.Ea());this.Op=D("j-D-Ua-i-Lb",this.cb(),this.Ea());this.R_=D("j-D-Ua-i-N",this.cb(),this.Ea());this.$b=D("j-D-Ua-i-kb",this.cb(),this.Ea());this.Sa=D("j-D-Ua-i-Fc",this.cb(),this.Ea());this.Vk=D("j-D-Ua-i-kb-wa",this.cb(),this.Ea());a=D("j-D-Ua-i-N-z",this.cb(),this.Ea());this.Ag=new Jhd(this.Fa,this.R_,a,Lp(this.dispatchEvent,this),this.iu);x(this,this.Ag)};q.Na=function(){Lhd.ya.Na.call(this);this.mL.Ja("action",this.Sx,!1,this);this.Oa.Ja("action",this.Km,!1,this)};
q.yc=function(){return this.Sa&&this.Sa.value||""};q.getName=function(){return this.$b&&this.$b.value||""};q.setVisible=function(a){this.dc()!=a&&Mhd(this);Lhd.ya.setVisible.call(this,a)};
var Mhd=function(a){Nhd(a,!1);a.$b.value="";a.Sa.value="";a.R_.value="";On(a.Vk,!1);Ohd(a,!1)},Nhd=function(a,b){Pn(a.cb(),"j-D-Ua-i-kR",b);qc(a.R_,{disabled:b?"disabled":""});qc(a.Sa,{disabled:b?"disabled":""});qc(a.$b,{disabled:b?"disabled":""})},Ohd=function(a,b){a.Ko=b;On(a.Op,b);On(a.lp,!b);Phd(a);b&&a.Wd()},Phd=function(a,b){a.dc()&&(a.Ko?null!=b?a.Sa.focus():!a.$b.value||a.Sa.value?a.$b.focus():a.Sa.focus():a.R_.focus())};Lhd.prototype.Sx=function(){this.dispatchEvent(new Ihd("HF"))}; Lhd.prototype.Km=function(){Ea(this.getName())?(On(this.Vk,!0),this.$b.focus()):this.dispatchEvent(new Ihd("jm"))};
var Qhd=function(a,b){Ld.call(this);this.Fa=a;this.Sa=b;this.Ba=new Hd(this);x(this,this.Ba);Jd(qr(qr(qr(qr(this.Ba,this.Sa.ta(),"keydown",this.mL,void 0,this),this.Sa.ta(),"keypress",this.Qb,void 0,this).Ja(this.Sa.ta(),Rhd,pd).Ja(this.Sa,"action",pd),this.Sa,"jm",this.Ab,void 0,this),this.Sa,"IF",this.$b,void 0,this),this.Sa,vw,pd)};t(Qhd,Ld);var Rhd=["click","mousedown"];Qhd.prototype.mL=function(a){27!=a.keyCode&&a.stopPropagation()};
Qhd.prototype.Qb=function(a){var b=a.target;13==a.keyCode&&b&&(a.stopPropagation(),a=this.Sa,a.$b&&b==a.$b?Phd(this.Sa,!0):(a=this.Sa,a.Sa&&b==a.Sa&&this.Ab(new Ihd("jm"))))};Qhd.prototype.Ab=function(a){var b,c=this.Sa.yc();b=this.Sa.getName();var d=new yk;Py(d,1,c);c=new Ck;b&&tB(c,b);b=new yB(d,c);a.Ab=new Hhd(null,b);a.Sa=!0;R_e(this,a)};
Qhd.prototype.$b=function(a){if(a.Sa){this.dispatchEvent(a);var b=this.Sa;a=a.Jt().Ns()||"";var c=xE(a);b.$b.value=c?"":a;b.Sa.value=c?a:"";c?b.$b.focus():b.Sa.focus()}else b=this.Sa,c=a.Jt().Sa.Ob(),b.R_.value=c,b.R_.focus(),R_e(this,a)};
var R_e=function(a,b){Nhd(a.Sa,!0);var c=new qZ;c.ue=b.Jt();c.$b=b.Sa;var d=a.Oa;c.tag=d.Ag;c.mL=!d.$b;var f=Thd(d.overlay),d=d.Sa,f=f||1,h=Math.round(2*d.radius/f),d=new Nd(Math.round((d.Sa-d.radius)/f),Math.round((d.Ab-d.radius)/f),h,h);c.Ab=d;a.dispatchEvent(new pZ("CF",c))};
var Shd=function(a,b){BZ.call(this,a,b);this.mL=40;var c=a.Sa.Fza();if(c.length){for(var d=0,f=0;f<c.length;f++)var h=N(c[f],Ir,4),d=d+(Mr(h).wP()-Lr(h).wP())/2;this.mL=d/c.length*Thd(a)}this.Ab=new z$e};t(Shd,BZ);Shd.prototype.eb=function(){var a=this.overlay.ta();Jd(this.getHandler().Ja(this.overlay,["CF","DF","$l","EF"],this.iwb).Ja(a,"mouseover",this.Gud).Ja(a,"mouseout",this.fYc).Ja(a,"mousemove",this.h1b),a,vw,this.Fud)};
Shd.prototype.Pb=function(){this.getHandler().removeAll();CZ(this.overlay,!1,!1,!1,!1)};Shd.prototype.U_=function(){this.overlay.At(new DZ(this.overlay,this.Qb))};var E$e=function(a){var b=mZ(a.overlay.Qb,a.Sa);b&&b.setVisible(!1);a.Ab.reset();a.Sa=null};q=Shd.prototype;q.Gud=function(a){CZ(this.overlay,void 0,void 0,void 0,!0);this.h1b(a)};q.fYc=function(a){a=new Gb(a.clientX,a.clientY);this.Sa&&this.Ab.contains(a)||(CZ(this.overlay,void 0,void 0,!1,!1),this.Sa&&E$e(this))};
q.h1b=function(a){var b=new Gb(a.clientX,a.clientY);if(!this.Sa||!this.Ab.contains(b)){var c=ie(this.overlay.ta()),b=a.clientX-c.x,c=a.clientY-c.y;a=fid(this.overlay,b,c);!this.Sa||a&&this.Sa.getId()==a.getId()||E$e(this);var d;a?(this.Sa=a,b=hid(this.overlay,a),c=!!a.getName(),d=!a.getName()):(this.Sa=null,d=w$e(this.Oa,this.mL,b,c),b=new Nd(b-d,c-d,2*d,2*d),d=c=!1);CZ(this.overlay,d,c,d||c,!0,b);$hd(this.overlay,void 0,d||!c);if(b=c)b=a.Sa&&a.Sa.getStatus(),b=(5==b||1==b)&&!!a.getName()||a.nP()||
a.Un()&&!vfd(a.getShape());b&&((b=mZ(this.overlay.Qb,a))&&b.setVisible(!0),this.Ab.update(mZ(this.overlay.Ab,a),b))}};q.Fud=function(a){var b=!!this.Sa,c=this.Sa||new nZ;E$e(this);a.stopPropagation();if(!b||!c.getName()){if(!b){var d=ie(this.overlay.ta()),f=a.clientX-d.x;a=a.clientY-d.y;d=w$e(this.Oa,this.mL,f,a);c.Ab.setBounds(f,a,d)}this.overlay.At(new Bhd(this.overlay,this.Qb,c,b))}};q.iwb=function(){E$e(this)};
var Uhd=function(){return Y('<div class="j-D-Oa-Fp"><div class="j-D-Oa-Fp"></div></div><div class="j-D-Oa-Oe" style="left: 200px; top: 400px;"><span class="j-D-Oa-Oe-Sd"><span class="j-D-Oa-Oe-Sd-sa"></span><span class="j-D-Oa-Oe-Sd-aa"></span></span></div><div class="j-D-Oa-pd"><div class="j-D-Oa-pd-O7"><span class="j-D-Oa-pd-kva"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-hia"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-iia"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-gia"></span><span class="j-D-Oa-pd-ah j-D-Oa-pd-ah-jia"></span></div><span class="j-D-Oa-pd-OX"></span></div>')};
var Vhd=function(){return Y('<div class="j-D-Ud"><span class="j-D-Ud-Sd"><span class="j-D-Ud-Fp"></span><span class="j-D-Ud-Sd-sa"></span><span class="j-D-Ud-Sd-aa"></span></span></div>')};var Whd=function(a,b){C.call(this,T(a).Ea());this.Fa=a;this.Sa=b;this.ha=V(a)};t(Whd,C);Whd.prototype.Pa=function(){var a=U(this.ha,Vhd,{name:this.Sa.getName()||""});this.Kb(a);Pn(this.ta(),"j-D-Ud-yp",Dfd(this.Sa)||this.Sa.nP())};Whd.prototype.setVisible=function(a){Pn(this.ta(),"j-D-Ud-Fg",a)};
var EZ=function(a,b,c,d,f,h,k,m,p){gD.call(this,T(a).Ea());this.Fa=a;this.Sa=b;this.Ko=c;this.$b=d;this.Vk=f;this.Km=h;this.Oa=k;this.mL=m;this.Ag=p;this.ha=V(a);this.ud(!1);this.IA(!1);hD(this,!1);iD(this,!0);this.setPosition(1,2,void 0,-20)};t(EZ,gD);
EZ.prototype.Pa=function(){EZ.ya.Pa.call(this);var a=new oZ(this.Fa,this.Sa,this.Ko,!0,!1,this.$b,this.Vk,this.Km,this.Oa,this.mL,this.Ag);this.ib(a);a.render(this.cb());Qn(a.ta(),"j-D-Hl-zs-B");Qn(this.ta(),"j-D-Hl");this.Sa.Un()&&this.Sa.getShape()&&vfd(this.Sa.getShape())||this.Sa.nP();this.Sa.Ah()&&this.Sa.Ah().Ob()||Qn(this.ta(),"j-D-Hl-yp")};
EZ.prototype.Na=function(){EZ.ya.Na.call(this);this.getHandler().Ja(this.ta(),["click","mousedown"],function(a){a.stopPropagation()});this.getHandler().Ja(this,"action",function(a){a.stopPropagation()})};EZ.prototype.setVisible=function(a){EZ.ya.setVisible.call(this,a);this.ta()&&Pn(this.ta(),"j-D-Hl-Fg",a)};EZ.prototype.getId=function(){return this.Sa.getId()};
var Xhd=function(a,b){BZ.call(this,a,b);this.$b=new z$e};t(Xhd,BZ);Xhd.prototype.eb=function(){var a=this.overlay.ta();Jd(this.getHandler().Ja(a,"mouseover",this.Iud).Ja(a,"mousemove",this.i1b),a,vw,this.Hud);this.overlay.uo();Uf(Lp(function(){var a=cid(this.overlay);a&&Yhd(this,a)},this))};Xhd.prototype.Pb=function(){this.$b.reset();this.getHandler().removeAll();this.Sa&&!this.Sa.isDisposed()&&(this.Sa&&this.Sa.setVisible(!1),this.mL&&this.mL.setVisible(!1));Vf(this.Ag)};
Xhd.prototype.A4=function(a){a=a.data.tag||cid(this.overlay);Yhd(this,a)};
var Yhd=function(a,b){var c=a.overlay.Sa.UW()?null:b;a.Ab&&c&&a.Ab.getId()==c.getId()||(a.Ab=c,a.Sa&&!a.Sa.isDisposed()&&(a.Sa&&a.Sa.setVisible(!1),a.mL&&a.mL.setVisible(!1),Vf(a.Ag)),a.Sa=mZ(a.overlay.Ab,a.Ab),a.mL=mZ(a.overlay.Qb,a.Ab),a.Ag=null,a.Sa&&(a.Sa&&a.Sa.setVisible(!0),c=Dfd(a.Ab)?300:0,a.Ag=Uf(Lp(function(){this.mL&&!this.mL.isDisposed()&&this.mL.setVisible(!0)},a),c)),a.$b.update(a.Sa,a.mL),$hd(a.overlay,void 0,!!a.Ab&&Dfd(a.Ab)))};q=Xhd.prototype;
q.U_=function(){this.overlay.At(new DZ(this.overlay,this.Qb))};q.Iud=function(a){this.overlay.uo();this.i1b(a)};q.i1b=function(a){if(this.Ab){this.$b.update(this.Sa,this.mL);if(this.$b.contains(new Gb(a.clientX,a.clientY)))return;a.stopPropagation()}var b=new qZ,c=ie(this.overlay.ta());b.tag=fid(this.overlay,a.clientX-c.x,a.clientY-c.y);this.overlay.Sa.UW()&&b.tag&&(b.tag.nP()||Dfd(b.tag))||this.Qb("zF",b)};
q.Hud=function(a){this.Ab&&(Yc(a.target,"j-D-Hl")&&a.stopPropagation(),Dfd(this.Ab)&&(a.stopPropagation(),this.overlay.At(new Bhd(this.overlay,this.Qb,this.Ab,!0))))};q.V_=function(a){this.Ab&&a.data.tag&&this.Ab.getId()==a.data.tag.getId()&&(this.mL=this.Sa=this.Ab=null)};
var FZ=function(a,b,c,d,f,h){C.call(this,T(a).Ea());this.wb=T(a).Ea();this.Fa=a;this.Km=b;this.Sa=c;this.Db=d;this.Sx=f;this.ha=V(a);this.Ab=new xfd(Lp(this.Opc,this));this.Qb=new xfd(Lp(this.Qpc,this));this.iu=h};t(FZ,C);FZ.prototype.A4=function(a){this.Sa.II()||this.Kg&&this.Kg.A4(a)};FZ.prototype.Vb=function(){this.A4(new pZ("zF",new qZ))};FZ.prototype.U_=function(a){this.Sa.II()||this.Kg&&this.Kg.U_(a)};
var S_e=function(a,b){var c=Afd(a.Qb,b);c&&a.removeChild(c);(c=Afd(a.Ab,b))&&a.removeChild(c);lZ(a.Ab,b);lZ(a.Qb,b);gid(a,b);iid(a,b)};q=FZ.prototype;q.Fha=function(a){null==a.data.tag||this.Sa.II()||(S_e(this,a.data.tag),this.At(new Ahd(this,Lp(this.Ag,this),a.data.tag)))};q.Gha=function(a){a.data.tag&&!this.Sa.II()&&(S_e(this,a.data.tag),this.Kg&&this.Kg.Gha(a),j4(this))};q.Jsa=function(){this.Ec.dc()&&(Nhd(this.Ec,!1),Phd(this.Ec))};
q.V_=function(a){if(a.data.tag&&!this.Sa.II()){this.Kg&&this.Kg.V_(a);var b=Afd(this.Ab,a.data.tag),c=Afd(this.Qb,a.data.tag);this.removeChild(c);b.setVisible(!1);c.setVisible(!1);Uf(Lp(function(){y(b);y(c);a.data.Qb||S_e(this,a.data.tag)},this),218)}};q.Pa=function(){FZ.ya.Pa.call(this);this.ra(this.ta())};
q.ra=function(a){FZ.ya.ra.call(this,a);for(var b=U(this.ha,Uhd);0<b.children.length;)this.wb.appendChild(a,b.children[0]);this.YY=D("j-D-Oa-Fp",a,this.wb);this.Oa=D("j-D-Oa-Oe",a,this.wb);this.mL=D("j-D-Oa-pd",a,this.wb);this.nA=D("j-D-Oa-pd-O7",a,this.wb);this.lp=D("j-D-Oa-pd-OX",a,this.wb);xc&&!Gf("9")&&Qn(this.YY,"j-D-Oa-Fp-Tsa-Sf");aid(this,a)};q.qb=function(){this.At(null);this.Ab.removeAll(this);this.Qb.removeAll(this);bid(this);FZ.ya.qb.call(this)};
var aid=function(a,b){a.Kb(b);Qn(b,"j-D-Oa");bid(a);a.Ec=new Lhd(a.Fa,a.Db);a.ib(a.Ec,!0);a.Ec.Fg(a.lp);a.$b=new Qhd(a.Fa,a.Ec);a.getHandler().Ja(a.$b,"HF",a.Vk).Ja(a.$b,"CF",a.dispatchEvent).Ja(a.$b,"IF",a.Ko).Ja(a.Ec,"HF",a.Vk);a.YY&&a.wb.appendChild(b,a.YY);a.Oa&&a.wb.appendChild(b,a.Oa);a.mL&&a.wb.appendChild(b,a.mL);a.uo();j4(a)},bid=function(a){a.$b&&a.getHandler().nb(a.$b,"HF",a.Vk).nb(a.$b,"CF",a.dispatchEvent).nb(a.$b,"IF",a.Ko);a.Ec&&a.getHandler().nb(a.Ec,"HF",a.Vk);y(a.$b);y(a.Ec)};
FZ.prototype.Vk=function(){j4(this,!0)};FZ.prototype.Ko=function(a){a.Sa&&Ehd(this,!0,!1,!1,!0)};FZ.prototype.uo=function(){v(did(this),Lp(function(a){mZ(this.Ab,a)||lZ(this.Ab,a);mZ(this.Qb,a)||lZ(this.Qb,a);gid(this,a);iid(this,a)},this))};var cid=function(a){return cb(did(a),function(a){var c=a.Ah(),c=c&&c.getId()==this.Km;return!!a.zRa()||!(!a.nP()||!c)},a)};FZ.prototype.At=function(a){this.Kg&&this.Kg.Pb();this.Kg=a;this.$b&&(this.$b.Oa=a);this.Kg&&this.Kg.eb()};
var j4=function(a,b){a.Nb()&&(b&&a.Sa.VL(!1),a.Sa.D4()?a.At(new Shd(a,Lp(a.Ag,a))):a.At(new Xhd(a,Lp(a.Ag,a))))};FZ.prototype.Dd=function(a,b){this.Nb()?aid(this,a):this.yb(a);this.Ab.removeAll(this);this.Qb.removeAll(this);j4(this,!b)};FZ.prototype.Op=function(a){Pn(this.ta(),"j-D-Oa-Ge",!a)};
var did=function(a){var b=a.Sa.fra();if(!b)return[];a=b.Ni()?[]:a.Sa.Fza();return zg(a,function(a){return new nZ(a)})},CZ=function(a,b,c,d,f,h){ia(b)&&Pn(a.Oa,"j-D-Oa-PX",b);ia(c)&&Pn(a.Oa,"j-D-Oa-Df",c);ia(d)&&Pn(a.Oa,"j-D-Oa-Ija",d);ia(f)&&Pn(a.Oa,"j-D-Oa-Fg",f);h&&v$e(a.Oa,h)},$hd=function(a,b,c){ia(b)&&(Pn(a.mL,"j-D-Oa-Ssa","pos"==b),Pn(a.mL,"j-D-Oa-nC-Jsa","ns"==b),Pn(a.mL,"j-D-Oa-nC-Isa","ew"==b),Pn(a.mL,"j-D-Oa-nC-gJa","nesw"==b),Pn(a.mL,"j-D-Oa-nC-hJa","nwse"==b));ia(c)&&Pn(a.mL,"j-D-Oa-Dq",
c)},eid=function(a,b,c,d){ia(b)&&Pn(a.YY,"j-D-Oa-Ija",b);ia(c)&&Pn(a.YY,"j-D-Oa-Fg",c);d&&v$e(a.YY,d)},Ehd=function(a,b,c,d,f,h){ia(b)&&Pn(a.mL,"j-D-Oa-Fg",b);ia(c)&&Pn(a.nA,"j-D-Oa-Bd",!c);Nhd(a.Ec,!!d);ia(b)&&a.Ec.setVisible(!!b);ia(f)&&Ohd(a.Ec,f);h&&(v$e(a.mL,h),c=zy(a.mL),d=he(a.mL,a.ta()),f=oe(a.ta()),b=Math.max(d.y+c.height-f.height,0),c=Cb(c.width/2,-d.x,f.width-d.x),Pd(a.lp,{left:c+"px",bottom:b+"px"}),a.Ec.Wd())};FZ.prototype.Ag=function(a,b){this.dispatchEvent(new pZ(a,b))};
var fid=function(a,b,c){var d=Thd(a),f=null,h=Number.MAX_VALUE;a=did(a);for(var k=0;k<a.length;k++){var m=a[k].Ab,p=b/d-m.Sa,u=c/d-m.Ab,p=p*p+u*u;p<h&&p<m.radius*m.radius&&(f=a[k],h=p)}return f},gid=function(a,b){var c=mZ(a.Ab,b);if(c){var d=hid(a,b);v$e(c.ta(),d)}},hid=function(a,b){var c=b.Ab,d;d=new Gb(c.Sa,c.Ab);var c=c.radius,f=2*c;d=new Nd(d.x-c,d.y-c,f,f);c=Thd(a);d=new Nd(d.left*c,d.top*c,d.width*c,d.height*c);a.ta()&&(f=oe(a.ta()),c=new Gb(d.left+d.width/2,d.top+d.height/2),f=Math.min(d.height/
2,f.width-c.x,c.x,f.height-c.y,c.y),d.height=d.width=Math.floor(2*f),d.top=Math.floor(c.y-f),d.left=Math.floor(c.x-f));return d},Thd=function(a){var b=oe(a.ta());return a.Sa.fra()?b.width/a.Sa.fra().Og().wc():1},iid=function(a,b){var c=mZ(a.Ab,b),d=mZ(a.Qb,b);c&&d&&d.ta()&&(d.Fg(c.ta()),d.Wd())};q=FZ.prototype;q.Opc=function(a){a=new Whd(this.Fa,a);this.ib(a,!0);return a};
q.Qpc=function(a){a=new EZ(this.Fa,a,this.Km,Lp(this.g1b,this,a,!0),Lp(this.g1b,this,a,!1),Lp(this.hWc,this,a),Lp(this.gWc,this,a),Lp(this.iWc,this,a),this.Sx);this.ib(a,!0);a.Fg(this.ta());return a};q.g1b=function(a,b,c){c.stopPropagation();c=new qZ;c.tag=a;c.Sa=b;this.Ag("$l",c)};q.hWc=function(a,b){b.stopPropagation();var c=new qZ;c.tag=a;c.index=this.Sa.hj();this.Ag("EF",c)};q.iWc=function(a,b){b.stopPropagation();var c=new qZ;c.tag=a;this.Ag("AF",c)}; q.gWc=function(a,b){b.stopPropagation();this.At(new Bhd(this,Lp(this.Ag,this),a,!0))};

G("sy908");I();
}catch(e){_DumpException(e)}
try{
H("sy910");
G("sy910");I();
}catch(e){_DumpException(e)}
try{
H("sy719");var NGd=new W(bD,4),OGd=new W(bD,6),QGd=new W(bD,7),RGd=new W(bD,8),YGd=new W(bD,9),ZGd=new W(bD,10);new W(bD,11);var $Gd=new W(bD,13),aHd=new W(bD,14),bHd=new W(bD,16),cHd=new W(bD,17),dHd=new W(bD,1);new W(bD,2);new W(bD,21);new W(bD,22);new W(bD,23);new W(bD,24);new W(bD,25);new W(bD,26);new W(bD,27);new W(bD,28);var mHd=new W(bD,29),nHd=new W(bD,30);new W(bD,31);var oHd=new W(bD,32);
var eV=function(a){a=a||{};var b='<span class="Tx IPa">',b=a.caption?b+r(a.caption):b+"Watch a video about circles";return Y(b+"</span>")},pHd=function(a,b,c){return Y('<iframe width="560" height="345" src="'+R(S(a.B7))+"?autoplay=1&hl="+vn(c.locale)+"&cc_lang_pref="+vn(c.locale)+'&cc_load_policy=1&autoplay=1" frameborder="0" allowfullscreen></iframe>')};
var qHd=function(a,b){C.call(this,T(a).Ea());this.Fa=a;this.Ab=b||null;this.ha=V(this.Fa)};t(qHd,C);qHd.prototype.Na=function(){qHd.ya.Na.call(this);this.getHandler().Ja(this.ta(),"click",this.Sa)};qHd.prototype.Pa=function(){qHd.ya.Pa.call(this);Vv(this.ha,this.ta(),eV)};qHd.prototype.Sa=function(){qp(this.Fa).Ha(NGd);rHd(this.Fa,this.getHandler(),this.Ab)}; var rHd=function(a,b,c){var d=dq(a).Vp(Ct.nsc),f=new MA(a,void 0,!0);Vv(V(a),f.cb(),pHd,{B7:d});f.Qd(lI(new qx,{key:"ok",caption:"Done"},!0,!0));f.ud(!0);me(f.ta(),560);b&&c&&(c.Oe(),b.yj(f,"afterhide",function(){c.show()}));f.setVisible(!0)};

G("sy719");I();
}catch(e){_DumpException(e)}
try{
yB.prototype.Mta=g(388,function(){return this.YY});H("sy721");var oS=function(a){K(this,a,0,-1,[])};t(oS,J);oS.prototype.kb=function(){return N(this,hvc,5)};var hvc=function(a){K(this,a,0,-1,[])};t(hvc,J);q=hvc.prototype;q.getName=function(){return N(this,xm,1)};q.Wb=function(a){Lg(this,1,a)};q.Tj=function(){return N(this,sm,2)};q.Cd=function(){return w(this,4)};q.kl=function(){return N(this,cja,5)};
qn("B","",0,function(a){for(var b='<div class="Fib gma d-k-l">',c=a.nQa.length,d=0;d<c;d++){var f=a.nQa[d];2!=a.nQa[d-1]&&(b=2!=f?b+tAe(pn(a,{ppb:f,Goa:d,qpb:d+1})):b+(d!=c-1?tAe(pn(a,{ppb:a.nQa[d+1],Goa:d+1,qpb:d+1})):""))}return Y(b+"</div>")});
var tAe=function(a){var b='<div class="cva"><div class="Qya '+(a.Goa==a.selectedIndex?" Npb":"")+'"><img src="//ssl.gstatic.com/s2/oz/images/up/breadcrumb-buttons-'+R(4<a.qpb?4:a.qpb)+"-"+(a.Goa!=a.selectedIndex?"un":"")+'selected.png"/></div><div class="'+(a.Goa==a.selectedIndex?"Oya":"Pya")+'">';switch(a.ppb){case 3:b+="Be awesome";break;case 5:b+="Upgrade";break;case 1:b+="Add people";break;case 6:b+="Join communities";break;case 2:b+="Follow things"}b+="</div>"+(a.Goa==a.selectedIndex?'<div class="dva"></div><div class="eva"></div>': "")+"</div>";return Y(b)};
var rvc=function(a){a=a||{};var b='<div class="Ihb UPb'+(a.Jk?" "+R(a.Jk):"")+'"><div class="aPa"></div><div class="ZOa">',b=a.Wia?b+r(a.Wia):b+"Looking for suggestions...";return Y(b+"</div></div>")};var voc=function(a){return Y('<div class="E9b d-k-l'+(a.q_b?" ky":"")+(a.Fta?" Wea":"")+'"><div class="O4a"></div>'+(a.q_b?'<div class="MN P4a"></div>':"")+"</div>")};var lze=function(a,b,c){b='<div class="'+(a.Qfb?"IJ8vuf":"Tz7fYe ")+' d-k-l"><div class="BTMood d-k-l" '+(a.Va?'oid="'+R(a.Va)+'"':"")+">"+mv({Va:a.Va,Da:a.Da,ld:a.Bh,oa:Oz("yOwiL h0ZEG")},0,c)+"</div>"+(a.Qfb?kze():"")+'<div class="HMxtZe PhnhNd d-k-l"><div class="lYeHbb RY6VK" '+(a.Va?'oid="'+R(a.Va)+'"':"")+">"+r(a.displayName)+"</div>";if(a.Qx||a.Mta||a.$Ka){b+='<div class="Q08Xsc">';if(a.$Ka)c=wA(new Z("{NUM_COMMON_PEOPLE_1,plural,=0{unused plural form}=1{{NUM_COMMON_PEOPLE_2} in common}other{{NUM_COMMON_PEOPLE_2} in common}}"),
{NUM_COMMON_PEOPLE_1:a.$Ka,NUM_COMMON_PEOPLE_2:r(a.$Ka)}),b+=c+'<div class="FQ6DLd T3XXsd"></div>';else if(a.Mta){c="";var d="Invited you to "+Ht();c=Y(c+d);b+=c}else b=b+r(a.Qx);b+="</div>"}b+=a.Qfb?"":kze();a.V4&&(b+='<div class="ZQ8Uie">Has you in their circles.</div>');return Y(b+"</div></div>")},kze=function(){return Y('<div class="OZ2lL Z7g1m"></div>')},mze=function(a,b,c){b="";a=a.Kae;for(var d=a.length,f=0;f<d;f++){var h=a[f];b+=FRb({Da:h.Da,Va:h.Va,ld:15,oa:Oz("vUVFwe")},c)}return Y(b)};
var nze=function(a,b,c,d,f){C.call(this,T(a).Ea());this.Fa=a;this.Sa=b;this.Ag=!!d;this.Oa=!!f;this.fy=c;this.iJ=6;this.Qb=2;this.$c=tE(a);this.mL=null;this.ha=V(a)};t(nze,C);q=nze.prototype;q.uJb=200;q.K3a=!0;q.iAa=!1;q.DIa=!0;q.lL=!0;var oze=function(a,b){a.uJb=b;a.Gd&&a.Gd.tE(b)};nze.prototype.Ab=function(){return this.Gd};nze.prototype.Oc=function(){return this.Sa};
nze.prototype.Pa=function(){var a=this.Sa,b={Da:a.Cd(),displayName:a.Ob(),Bh:this.iJ};if(this.K3a){if(this.Oa){var c=this.Sa.Ab.jFa;b.$Ka=c?w(c,2)||0:0}b.Qx=a.k4();b.Mta=a.Mta()}this.DIa&&(b.V4=a.V4());this.lL&&(b.Va=a.Xa());3==this.Qb&&(b.Qfb=!0);this.Kb(U(this.ha,lze,b));this.Gd=new KH(this.Fa,this.fy,a.getId(),void 0);this.Gd.Ab(a);this.Gd.tE(this.uJb);this.Gd.e1(this.Ag);this.Gd.QS(this.iAa);this.$b&&this.Gd.yX(this.$b);this.ib(this.Gd,!1);this.Gd.Nu();a=this.fb("Z7g1m");this.Gd.render(a);this.mL=
this.fb("FQ6DLd");this.Oa&&this.mL&&ozb(this)};var ozb=function(a){var b=a.Sa.Ab.jFa;if(b){var c=new cE;q$a(c,O(b,yk,7));a.$c.XI(c,a.YY,function(a){hh(Error("Gd`"+a))},a)}};nze.prototype.YY=function(a){a=ub(a,0,5);a=zg(a,function(a){return{Da:a.Cd(),Va:this.lL?a.Xa():null}},this);Vv(this.ha,this.mL,mze,{Kae:a})};
var yoc=function(a,b,c,d,f,h,k){C.call(this,T(a).Ea());this.Fa=a;this.iJ=h||6;this.Qb=!!k;this.$b=b;this.Ab=c;this.mL=d;this.fy=f};t(yoc,C);q=yoc.prototype;q.whb=!1;q.lL=!1;q.Dv=function(){return 0<this.Sa.Ab().qU.Qb()};q.Oc=function(){return this.Ab};q.k2=function(a,b,c){this.Sa.Ab().k2(a,b,c)};
q.Pa=function(){var a=V(this.Fa);this.Kb(U(a,voc,{q_b:!1,Fta:this.Qb}));this.Sa=new nze(this.Fa,this.Ab,this.fy);this.Sa.lL=this.lL;this.Sa.Qb=3;var a=this.Sa,b=this.Ab.Ck()?BH.ia():new TI(!0);a.$b=b;a.Gd&&a.Gd.yX(b);this.Sa.iJ=this.iJ;oze(this.Sa,115);this.Sa.DIa=!1;this.ib(this.Sa,!1);this.Sa.render(this.fb("O4a"))};
q.Na=function(){yoc.ya.Na.call(this);var a=this.Sa.Ab();this.getHandler().Ja(a,["sgcp_bc","sgcp_err"],function(){this.$b.Qb()}).Ja(a,"sgcp_cc",this.Boc);this.whb||this.getHandler().Ja(this.Sa.Ab(),"sgcp_amh",Lp(this.EJb,this))};
q.EJb=function(){if(!this.whb&&this.Dv()){this.whb=!0;var a=[];if(this.Ab.Xa()){var b=ys(ss(this.Ab.Xa(),this.Ab.yc())),c=this.Ab.Ab,d=c.EL,c=d?jze(d,this.mL):vH(1,c.Ecb,this.mL,c.Z6,c.mda);a.push(jzb(b,c))}GJ(this.Fa,gO,this.fy,a);this.getHandler().nb(this.Sa.Ab(),"sgcp_amh",Lp(this.EJb,this))}};q.Boc=function(){this.dispatchEvent("Gh")};
var RR=function(a,b,c,d,f){C.call(this,T(a).Ea());this.xa=a;this.$o=b+".PeopleGrid";this.Oa=c;this.iJ=f||null;this.Sa=new hE(d);x(this,this.Sa);this.VMa=[];zoc(this);this.$b=ia(d)};t(RR,C);RR.prototype.YY=!1;RR.prototype.lL=!1;RR.prototype.ra=function(a){RR.ya.ra.call(this,a);Aoc(this)};RR.prototype.Pa=function(){RR.ya.Pa.call(this);Aoc(this)};
var Aoc=function(a,b){if(a.ta()){a.hb(!0);var c=0;a.Sa.Ab(function(a){var f=ia(b)&&eb(b,a);a=new yoc(this.xa,this,a,c,this.$o,this.iJ,f);a.lL=this.lL;c++;this.ib(a,!0);this.VMa.push(a)},a);a.Qb()}},Boc=function(a){a.$b&&a.YY&&pze(a,eO,a.Sa.xp(),a.$o)},pze=function(a,b,c,d){if(null!=a.Oa){for(var f=[],h=0,k=0;k<c.length;k++){var m=c[k];if(m.Xa()||m.yc()){var p=ys(ss(m.Xa(),m.yc())),m=m.Ab,u=m.EL,m=u?jze(u,k):vH(a.Oa,m.Ecb,k,m.Z6,m.mda,void 0);f.push(jzb(p,m));h++}}var z;b==eO&&(z=h);GJ(a.xa,b,d,f,
void 0,z)}},zoc=function(a){a.mL=a.xa.kd(eH);a.mL.addCallback(function(a){this.Km=a.$k()},a)};RR.prototype.Jmb=function(a){var b=new ag;this.mL.addCallback(wa(this.Vk,b,a),this);return b};RR.prototype.Vk=function(a,b,c){if(0==this.Sa.Fc())a.By(new XD);else{SR(this,b,!0,!0);var d=this.$o+".addAllToCircle",f=new iF([b],Doc(this),d);c.HF(f,a.By,a.jd,a);dg(a,function(){SR(this,b,!0,!1)},this);bg(a,function(){SR(this,b,!1,!0);SR(this,b,!1,!1)},this);pze(this,gO,this.Sa.xp(),d)}};
var Doc=function(a){return zg(r$f(a),function(a){var c=new Jk;hF(c,a);return c})};RR.prototype.EWb=function(a){var b=new ag;this.mL.addCallback(wa(this.Op,b,a),this);return b};RR.prototype.Op=function(a,b,c){if(0==this.Sa.Fc())a.By(new aE);else{SR(this,b,!1,!0);var d=this.$o+".removeAllFromCircle";c.yT(b,r$f(this),d,a.By,a.jd,a);dg(a,function(){SR(this,b,!1,!1)},this);bg(a,function(){SR(this,b,!0,!0);SR(this,b,!0,!1)},this)}};RR.prototype.IP=function(){return this.Sa.Fc()};
var r$f=function(a){var b=[];a.Sa.Ab(function(a){b.push(a.getId())});return b},SR=function(a,b,c,d){Foc(a,function(a){a.k2(b,c,d)});a.Qb()},Foc=function(a,b){v(a.VMa,b,void 0)};RR.prototype.xrb=function(a){var b=new ag;this.mL.addCallback(function(c){this.Km.addCallback(wa(this.Ko,b,a,c),this)},this);return b};
RR.prototype.Ko=function(a,b,c,d){(d=d.c4().b4(b))?a.jd(d):(d=this.$o+".addAllToCircle",b=new Vqb(d,void 0,b,void 0,Doc(this)),c.sfa(b,a.By,a.jd,a),a.addCallback(this.Qb,this),pze(this,gO,this.Sa.xp(),d))};RR.prototype.wxb=function(){var a;Foc(this,function(b){b=zg(Hrb(b.Sa.Ab().qU),function(a){return ps(a)});b=new kE(b);a?a=z$a(a,b):a=b});return a?zg(a.Rc(),function(a){return qs(a)}):[]};RR.prototype.clear=function(){iE(this.Sa).LZ().Hf();Aoc(this)}; var qze=function(a,b,c){HN(iE(a.Sa),b).Hf();a.$b=!0;Aoc(a,c);Boc(a)};RR.prototype.Qb=function(){this.dispatchEvent("BC")};
var Pvc=function(a,b,c){this.vb=a;this.Sa=b;this.Ab=c},Qvc=function(a,b,c){var d=[],f=[],h=[],k=[],m={},p=[],u=[],z=[],F={};if(c)for(var M=0;M<c.length;M++){var X=c[M];a.vb.Dv(X)||(X.nj()?(k.push(X),m[X.getKey()]=!0):(z.push(X),F[X.getKey()]=!0))}for(M=0;M<b.length;M++)c=b[M],m[c.getKey()]||F[c.getKey()]||(c.Mta()?c.nj()&&d.push(c):c.oP()&&c.Ag?(0<(c.Ab.Z6&1024)&&KXa(c,!0),c.nj()?f.push(c):p.push(c)):0<c.Qb.length&&(c.nj()?h.push(c):u.push(c)));b=25>=d.length?d:ub(d,0,25);f=Rvc(f,100);h=h.length<= a.Sa?h:ub(h,0,a.Sa);p=Rvc(p,50);return{G3a:ub(rb(k,b,f,h),0,a.Ab),mVc:ub(rb(z,p,u.length<=a.Sa?u:ub(u,0,a.Sa)),0,a.Ab)}},Rvc=function(a,b){wb(a,Svc);return a.length<=b?a:ub(a,0,b)},Svc=function(a,b){return yb(b.Ab.Ecb,a.Ab.Ecb)};

G("sy721");I();
}catch(e){_DumpException(e)}
try{
H("em16");
G("em16");I();
}catch(e){_DumpException(e)}
try{
H("em17");
G("em17");I();
}catch(e){_DumpException(e)}
try{
var ard=function(a,b,c){A.call(this,a);this.Ql=b||"";this.su=c||""};t(ard,A);H("nam");var crd=function(){var a="",b="Names on "+Q(Ht());return Y(a+b)},drd=function(){var a="",b="The name you've provided doesn't look like a name to our system. If this is a business name, please sign up with your own name and then create a "+(Q(Ht())+" Page for your business. If this is an alternate name (such as a nickname, maiden name, or name in another script), please sign up with your full name; you can add this alternate name once you've signed up.");return Y(a+("<p>"+b+"</p><p>If the name you want to use is in fact the name you commonly use, you can help us to correct our mistake by submitting an appeal.</p>"))},
erd=function(a){a=a||{};var b="",c="We want users to be able to find each other using the name they already use with their friends, family, and coworkers. For most people this is their legal name, or some variant of it, but we recognize that this isn't always the case and allow for other common names in "+(Q(Ht())+"."),d="Please keep in mind that if you're using this name to hide some part of your identity from other users, your behavior on a service like "+(Q(Ht())+(" might inadvertently reveal information to others that you'd rather keep private. For example, the following actions could all lead to other users connecting your "+
(Q(Ht())+" profile with your identity in other contexts."))),f="<p>Also, if you have used this Google Account in the past and took social actions (for example, sharing posts, commenting on others' posts, or sending email), then those actions will likely still show the name that was associated with your account at that time. "+(Q(Kt({product:"accounts",cY:112783}))+"</p><p>The URL for your profile does not change, and since the name field is always public, anyone who has the link to your profile (or includes the link in their Contacts) will see changes you make to your profile name.</p><p>If you're okay with these considerations, you can continue to submit your appeal for review. Reviews are typically completed within a few days.</p>"),
b=b+("<p>"+c+"</p><p>"+d+"</p><ul><li>Posting or being tagged in photos of you</li><li>Circling or interacting with people you know in other contexts</li><li>Using check-ins or displaying other location information</li><li>Adding biographical information to your profile</li></ul>"+f);a.nQc&&(a="Your profile is disabled while your name is being reviewed. You won't be able to make full use of Google services that require an active profile, such as "+(Q(Ht())+", Reader, and Picasa. This will not prevent you from  using other Google services, like Gmail."),
b+="<p>"+a+"</p>");return Y(b)},frd=function(){return Y("You'll be notified within a few days about the outcome of your appeal. If approved, your name will appear automatically on your profile, otherwise you'll be notified. Until approved, your current name will continue to appear.")},grd=function(){return Y("Your appeal has been submitted.")},hrd=function(){return Y("Submit your name for review")},ird=function(a,b,c){a="";c='<form id="appeal-form" enctype="multipart/form-data" method="POST" action="https://support.google.com/contact/bin/request.py?hl='+
vn(c.locale)+'&ctx=submitted&confirm=name_appeal&format=embed" target="resultsFrameForNameAppeal">';b="";var d="Please provide online or offline information that demonstrates that the name you want to use on "+(Q(Ht())+" is the name that you commonly use.");b=Y(b+('<div class="Oda">'+d+'</div><input type="text" class="Qla Lta b-hb" label="First Name" name="extra.first_name" id="extra.first_name" /><input type="text" class="Qla Pta b-hb" label="Last Name" name="extra.last_name" id="extra.last_name" />'));
c+=b;b="";d="Provide a link to an established online identity with a meaningful following (such as those from other social media sites) where you are referred to by the name above. You may be required to link to your "+(Q(Ht())+" profile from the site provided to prove that the page or profile you link to is in fact yours.");b=Y(b+('<div class="fBa">Proof of established online identity</div><div class="Oda">'+d+'</div><div class="Nta"><input type="text" dir="ltr" class="hcb b-hb Ota" label="Type or paste a URL" name="extra.online_profile_links_1" id="extra.online_profile_links_1" /></div><div class="fcb d-s Mta d-k-l"><div class="gcb"></div>Add another link</div>'));
c+=b;b=Y('<div class="fBa">Offline documents</div><div class="Oda">Attach scans of official documents (such as a photo ID or passport), newspaper articles, or other printed media that refer to you by this name.</div><div class="eBa qQa"><div class="oQa"></div><div class="sZb"><div class="pQa"></div></div><div class="vLa"><div class="d-s q9a SPa">Attach a file</div></div></div>');return Y(a+(c+b+'Anything you submit will only be used to verify your name. We\'ll delete it after the review and won\'t use it for any other purpose.<input type="hidden" name="format" value="inproduct" /><input type="hidden" name="extra.IssueType" value="name_appeal" /><input id="submit_name_appeal_test" type="hidden" name="Action.Send" value="Submit" /></form><iframe name="resultsFrameForNameAppeal" style="display:none;" class="sRb"></iframe>'))}, P0e=function(){return P("Change file")};
var Q0e=function(a){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(this.Fa);new sh(wi(this.Fa).getData(1));a=new SY("/_/upload/ds/resumable");a.hf(this);Eed(a,["HTML_FORM"]);this.Ab=a;this.mL={}};t(Q0e,C);q=Q0e.prototype;q.ra=function(a){Q0e.ya.ra.call(this,a);this.Qb=this.uc("pQa");this.$b=this.uc("SPa");a=this.Ab;a.$b=this.Qb;a.mL=void 0;a=Ied(this.Ab);a.L1(!1);this.Sa=a;this.Sa.Lr(this.$b);this.iga=new rfd(this.Sa,void 0,void 0,this.Ea());this.ib(this.iga)};
q.Na=function(){Q0e.ya.Na.call(this);this.iga.render(this.uc("oQa"));this.getHandler().Ja(this.Ab,"filesselected",this.Lhb).Ja(this.Ab,"allfilesadded",this.Ohb).Ja(this.Ab,"uploadstatechanged",this.kDb).Ja(this.Sa,"filesselected",this.Smb)};q.Lhb=function(){this.Sa.reset();this.mL={}};q.Ohb=function(){this.Ea().uq(this.$b,JC(this.ha,P0e))};q.kDb=function(a){a=a.file;if("success"==HY(this.Sa,a)){var b=this.Sa.zx(a).dG();b&&b.docid&&(this.mL[a.getId()+"-"+a.Ag]=b.docid)}}; q.Smb=function(a){v(a.files,function(a){a.Oa=new Ze({source:"oz-nameappeal"})})};
var T0e=function(a){K(this,a,0,-1,[3,4])};t(T0e,J);var U0e=function(a,b){Py(a,1,b)},V0e=function(a,b){Py(a,2,b)};var W0e=function(a){K(this,a,"op.nar",-1,[])};t(W0e,J);W0e.Zb="op.nar";W0e.prototype.rf=function(){return w(this,1)};var brd=function(a){K(this,a,"op.pnv",-1,[1])};t(brd,J);brd.Zb="op.pnv";var urd={U5b:0,V5b:1};var jrd=function(a){mz.call(this,a,void 0,!0);this.Fa=a;this.ha=V(this.Fa);this.mL=[];this.Qb={};this.YY=ri(a);this.ud(!0)};t(jrd,mz);q=jrd.prototype;q.G7a=1;q.Go=0;
q.Pa=function(){jrd.ya.Pa.call(this);this.Qd(lI(lI(new qx,ux,!1,!0),{key:"ok",caption:"Submit"},!1,!1));Vv(this.ha,this.cb(),ird);Vv(this.ha,lx(this),hrd);this.Sa=new kR;this.ib(this.Sa,!1);this.Sa.yb(this.fb("Lta"));this.Qb.firstName&&EX(this.Sa,this.Qb.firstName);this.Ab=new kR;this.ib(this.Ab,!1);this.Ab.yb(this.fb("Pta"));this.Qb.lastName&&EX(this.Ab,this.Qb.lastName);this.mL.push(new vx);this.ib(this.mL[0],!1);this.mL[0].yb(this.fb("Ota"));this.$b=this.fb("Mta");this.o9=this.fb("Nta");this.fb("Kta")};
q.Na=function(){jrd.ya.Na.call(this);this.getHandler().Ja(this.$b,"click",this.Db);this.getHandler().Ja(this,"dialogselect",this.lad,!0)};q.lad=function(a){if(a.key==this.xe.mL)this.dispatchEvent(new ard("de"));else{var b;Ea(this.Sa.getValue())?(this.yZ("Name Required"),a.preventDefault(),a.stopPropagation(),b=!0):b=!1;b||(this.xe.Sa(!1),b={g:this.Sa.getValue(),f:this.Ab.getValue()},cg(this.YY.makeRequest("_/profiles/validatepersonname",b,brd),this.zF,this.Vb,this),a.preventDefault())}};
var Y0e=function(a){var b=new T0e;U0e(b,a.Sa.getValue());a.Ab.getValue()&&V0e(b,a.Ab.getValue());if(0<a.mL.length){var c=[];v(a.mL,function(a){c.push(a.getValue())},a);Py(b,3,c||[])}var d=Rb(a.Oa.mL);0<d.length&&Py(b,4,d||[]);cg(a.YY.makeRequest("/_/profiles/nameappeal",b,W0e),a.Xb,a.Vb,a)};jrd.prototype.Xb=function(a){a.rf()?(this.dispatchEvent(new ard("be",this.Sa.getValue(),this.Ab.getValue())),this.setVisible(!1)):Z0e(this)};var Z0e=function(a){a.xe.Sa(!0);Vf(a.Go);a.yZ("Something went wrong, please try again.")};
jrd.prototype.zF=function(a){t:{a=w(a,1);if(0<a.length&&Ea(this.mL[0].getValue())&&0==Rb(this.Oa.mL).length)for(var b=0;b<a.length;b++)switch(a[b]){case urd.U5b:case urd.V5b:a=!0;break t}a=!1}a?(this.yZ("Please provide a link to an established online identity or provide a scan of official documents that refer to you by this name."),this.xe.Sa(!0)):Y0e(this)};jrd.prototype.Vb=function(){Z0e(this)};
var lrd=function(a,b){a.Sa?EX(a.Sa,b):a.Qb.firstName=b},mrd=function(a,b){a.Ab?EX(a.Ab,b):a.Qb.lastName=b},nrd=function(a,b){a.kN?a.kN.qe(b):a.Qb.email=b},ord=function(a,b){a.mN?a.mN.qe(b):a.Qb.profileUrl=b};jrd.prototype.Db=function(){var a=this.mL[0].ta().cloneNode(!1);a.value="";this.G7a++;a.name="extra.online_profile_links_"+this.G7a;a.id="extra.online_profile_links_"+this.G7a;this.o9.appendChild(a);var b=new vx;this.ib(b,!1);b.yb(a);this.mL.push(b);5==this.mL.length&&On(this.$b,!1)}; var $0e=function(a){a.Oa=new Q0e(a.Fa);a.ib(a.Oa,!1);a.Oa.yb(a.fb("qQa"));a.getHandler().Ja(a.Oa,"allfilesadded",a.iu).Ja(a.Oa,"allfilescompleted",a.yH)};jrd.prototype.iu=function(){this.xe.Sa(!1)};jrd.prototype.yH=function(){this.xe.Sa(!0)};
var prd=function(a){Ld.call(this);this.Fa=a;this.ha=V(this.Fa);this.Qb=new oW(a)};t(prd,Ld);q=prd.prototype;q.show=function(){H7f(this,drd,this.rsd);qp(this.Fa).Ha(X3f)};q.rsd=function(){H7f(this,erd,this.Vrd);qp(this.Fa).Ha(b4f)};
q.Vrd=function(){var a=new jrd(this.Fa);lrd(a,this.Sa);mrd(a,this.Ab);nrd(a,this.Ag);ord(a,this.Oa);a.Qd(null);a.setVisible(!0);$0e(a);this.$b=a;yd(a,"be",function(a){this.Sa=a.Ql;this.Ab=a.su;this.mL?this.SSa():(H7f(this,frd,this.SSa,grd,lI(new qx,tx,!0,!1)),this.$b.setVisible(!1))},void 0,this);yd(a,"de",function(){this.dispatchEvent(new ard("de"));qp(this.Fa).Ha(x6f)},void 0,this)};
q.SSa=function(){this.dispatchEvent(new ard("ce",this.Sa,this.Ab));var a=qq(this.Fa);if(a){var b=a.kb();Py(b,41,!0);KD(a,b);a=this.Qb.get();Py(a,41,!0);(new Ar(this.Fa,null,Lp(this.nad,this),this.Qb.bG())).send()}qp(this.Fa).Ha(t6f)};q.nad=function(){};q.$9a=function(a){this.Sa=a};q.a$a=function(a){this.Ab=a};q.b$a=function(a){this.Oa=a};q.kdb=function(){this.mL=!1};
var H7f=function(a,b,c,d,f){var h=new mz(a.Fa,void 0,!0);Vv(a.ha,h.cb(),b,{nQc:a.mL});Vv(a.ha,lx(h),d||crd);h.Qd(f||lI(lI(new qx,ux,!1,!0),{key:"ok",caption:"Continue appeal"},!1,!1));h.ud(!0);I7f(a,h,c);h.setVisible(!0)},I7f=function(a,b,c){yd(b,"dialogselect",function(a){a.key==b.xe.mL?(this.dispatchEvent("de"),qp(this.Fa).Ha(x6f)):c.call(this)},void 0,a)};
var trd=function(a){this.Fa=a};trd.prototype.Sa=function(){return new prd(this.Fa)};Ig({id:elb,Wa:trd,multiple:!0});
G("nam");I();
}catch(e){_DumpException(e)}
try{
H("sy866");var b5=new Ug("SignupUpgrade");var Ucf=new W(b5,1);new W(b5,2);new W(b5,12);new W(b5,8);new W(b5,9);new W(b5,10);var ycf=new W(b5,11);new W(b5,51);var Ycf=new W(b5,3);new W(b5,6);new W(b5,45);new W(b5,46);new W(b5,47);new W(b5,48);new W(b5,49);new W(b5,50);new W(b5,43);new W(b5,42);new W(b5,44);var Zcf=new W(b5,4);new W(b5,23);new W(b5,24);new W(b5,33);new W(b5,30);new W(b5,18);new W(b5,19);var $cf=new W(b5,20),adf=new W(b5,21),bdf=new W(b5,22),cdf=new W(b5,34),ddf=new W(b5,35),edf=new W(b5,36);new W(b5,38); var fdf=new W(b5,52),gdf=new W(b5,53),hdf=new W(b5,54),idf=new W(b5,55);new W(b5,60);var jdf=new W(b5,61);new W(b5,64);new W(b5,67);new W(b5,68);new W(b5,69);new W(b5,70);new W(b5,71);new W(b5,72);new W(b5,73);
qn("bd","",0,function(){return Y('<div class="DB"><div class="lxa qH" aria-live="polite"></div><div class="mP jdb">Gender </div><div class="mxa MC"></div></div>')});var P5d=function(){return Y('<div class="xG">Please select your gender.</div>')};qn("od","",0,function(){return Y('<div class="xG" aria-live="polite">Please indicate the gender you most identify with.</div>')});qn("ud","",0,function(){return Y('<div class="xG">Please select a pronoun.</div>')});var Q5d=function(){return Y("Gender")};

G("sy866");I();
}catch(e){_DumpException(e)}
try{
var i6=function(a,b){this.Fa=a;this.fy=b||null;this.zb=qp(this.Fa)};i6.prototype.Ha=function(a){var b=new zs;this.fy&&b.Fm(this.fy);this.zb.Ha({Ub:a,qd:b})};i6.prototype.l6=function(a){a=Jf(a);this.zb.It();dy(top.location,a.toString())};H("supg");var hS=UNb(h4c("l0aiUe"),{},function(){this.fy=this.Ab=this.$b=this.mL=this.Sa=null;this.Qb=!1});hS.vd="male";hS.Qb="female";hS.Oa="other";hS.Ab="custom";hS.mL=999;hS.$b=new Ze(1,hS.vd,2,hS.Qb,3,hS.Oa,hS.mL,hS.Ab);hS.Sa=CRa(hS.$b);hS.prototype.Tj=function(){return this.Sa};hS.prototype.Fm=function(a){this.fy=a||null};hS.prototype.Yj=function(){return this.mL?this.mL.call(this.$b):!1};

G("supg");I();
}catch(e){_DumpException(e)}
try{
var o1e=function(a){return a.Ab};H("opr");var $Rd=function(a,b){y3.call(this,a,"a-B a-nK-Cc","a-nK-Bb","a-nK-B","top",b)};t($Rd,y3);$Rd.prototype.Pa=function(){$Rd.ya.Pa.call(this);var a='To crop this image, drag the region below and then click "'+(this.getContext().rd().Hwa()+'"'),a=this.Ea().Pa("div","a-Ci-E",a);this.setSize(15);this.Ab.appendChild(a)};
var Y3=function(a){ORd.call(this,a,!0)};t(Y3,ORd);Y3.prototype.Na=function(){Y3.ya.Na.call(this);Qn(this.ta(),"a-Eb-F");this.cb().align=""};Y3.prototype.Ag=function(a){var b,c;switch(a){case "editbar-delete":b="Delete";c="a-n-F-ji-Gj";break;case "editbar-rotate-left":b="Left";c="a-n-Eb-hc-gk";break;case "editbar-rotate-right":b="Right",c="a-n-Eb-hc-hk"}a=this.Ea();b=a.Pa("div",null,a.Pa("div",c+" a-Eb-F-m d-k-l"),a.Pa("div","a-Eb-F-ka d-k-l",b));return new BM(b,up.ia(),this.Ea())}; Y3.prototype.resize=function(){this.ta()&&this.Wd()};Y3.prototype.wc=function(){return 160};
var p1e=function(a){C.call(this,a)};t(p1e,c1e);p1e.prototype.Pa=function(){var a=this.Ea().Pa("div","a-wva");this.Kb(a)};p1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.ta();f.style.top=a-1+"px";f.style.left=d-1+"px";f.style.width=b-d+"px";f.style.height=c-a+"px"}};
var u1e=function(a,b,c){C.call(this,c);this.Oa=a;this.$b=b};t(u1e,c1e);u1e.prototype.Pa=function(){var a=this.Ea();this.Qb=a.Pa("div","a-oK-Zb");this.Ab=a.Pa("div","a-oK-ya");this.mL=a.Pa("div","a-oK-Ja");this.Sa=a.Pa("div","a-oK-Qe");this.Kb(a.Pa("div","a-oK",this.Qb,this.Ab,this.mL,this.Sa))};
u1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){hSd(this.ta(),a,d,b-d,c-a);var f=Math.floor((b-d)*this.$b),h=Math.floor((c-a)*this.Oa),k=b-d-2*f;hSd(this.Qb,0,f,k,h);hSd(this.Sa,c-a-h,f,k,h);hSd(this.Ab,0,0,f,c-a);hSd(this.mL,0,b-d-f,f,c-a)}};var hSd=function(a,b,c,d,f){a.style.top=b+"px";a.style.left=c+"px";a.style.width=d+"px";a.style.height=f+"px"};
var v1e=function(a,b,c){C.call(this,c);this.Ab=a;this.Sa=b};t(v1e,c1e);v1e.prototype.Pa=function(){var a;switch(this.Ab){case "t":a="a-Bv-Zb";break;case "r":a="a-Bv-Ja";break;case "b":a="a-Bv-Qe";break;case "l":a="a-Bv-ya"}this.Kb(this.Ea().Pa("div",a))};
v1e.prototype.setPosition=function(a,b,c,d){if(this.Nb()){var f=this.ta();switch(this.Ab){case "t":f.style.top=a+"px";f.style.left=d+"px";f.style.width=b-d+"px";f.style.height=Math.floor((c-a)*this.Sa)+"px";break;case "r":d=Math.floor((b-d)*this.Sa);f.style.top=a+"px";f.style.left=b-d+"px";f.style.width=d+"px";f.style.height=c-a+"px";break;case "b":a=Math.floor((c-a)*this.Sa);f.style.top=c-a+"px";f.style.left=d+"px";f.style.width=b-d+"px";f.style.height=a+"px";break;case "l":f.style.top=a+"px",f.style.left= d+"px",f.style.width=Math.floor((b-d)*this.Sa)+"px",f.style.height=c-a+"px"}}};
var mSd=function(a,b,c,d){C.call(this,d);this.Sa=a;this.mL=b;this.Oa=c||a.rd().jg||"default";this.Vb=new Sf(10);this.getHandler().Ja(this.Vb,"tick",this.bLc);this.YY=new Sf(10);this.getHandler().Ja(this.YY,"tick",this.aLc);this.Ko=this.Qb=this.$j=this.Vk=this.Ag=null;this.Km=0;this.Ab=this.$b=null;this.Op=0};t(mSd,C);q=mSd.prototype;
q.Pa=function(){var a=this.Ea();this.Kb(a.Pa("div","a-Ci-B",this.Ko=a.Pa("div","a-Ci-cb",this.Qb=a.Pa("img",{style:"display: none"})),a.Pa("div","a-Ci-Tc-ep")));var b=this.Sa.rd();if(b.YY){var c=this.Ab=new Y3(a);this.Op=c.wc();c.yN(this.Qb);QRd(c);a=this.$b=new W3(b.fG(),a);this.getHandler().Ja(c,"Fi",this.jLc).Ja(c,"Ei",this.iLc).Ja(a,"Di",this.fid);this.ib(c,!0);this.ib(a,!0)}};q.Na=function(){mSd.ya.Na.call(this);this.update()};
q.jL=function(a){a.setAttribute("c",this.$j&&f1e(this.$j));this.Ab&&this.Ab.jL(a)};q.aLc=function(){var a=this.Qb,b=this.$j.ta(),c=UE(b),d=this.$b?this.$b.ta():null;1<=c?(this.YY.stop(),qe(b,1),qe(a,1),d&&qe(d,1)):(c=(c+.1).toFixed(1),qe(b,c),d&&qe(d,c),b=UE(a),qe(a,(b+.05).toFixed(1)))};q.bLc=function(){var a=this.Qb,b=this.$j.ta(),c=UE(b);0>=c?(this.Vb.stop(),qe(b,0),qe(a,.5),b.style.display="none"):(qe(b,(c-.1).toFixed(1)),b=UE(a),qe(a,(b-.05).toFixed(1)))};
q.fid=function(a){a=a.Cg();var b=this.Ag.Jd();this.Ag.Ee(a);a={caption:a};this.Sa.od.Vd(new K3("changeCaption","picasa",[this.Ag.getId()],a),ka,Lp(function(){this.Ag.Ee(b);this.$b.Lb(b);alert("Unable to save the caption. Please try again.")},this))};
q.iLc=function(a){var b=qSd(this),c=a.Sa,d=this.Vk,f=Xb(b);if(90==c||270==c)c=f.width,f.width=f.height,f.height=c;var c=this.Qb,h=d.wc()/d.Ic();f.width/f.height>h?(f=Math.min(f.height,d.Ic()),d=Math.floor(f*h)):(d=Math.min(f.width,d.wc()),f=Math.floor(d/h));le(c,d-d%2,f-f%2);pSd(this,this.Qb,b);oSd(this,a.Sa,a.Ab);this.Ab&&this.Ab.resize();this.$b&&this.$b.resize();if(!xc||Gf("9"))qe(this.Qb,.5),qe(this.$j.ta(),0),this.$j.ta().style.display="",this.Vb.stop(),this.YY.start()};
q.jLc=function(){if(!xc||Gf("9"))qe(this.Qb,1),qe(this.$j.ta(),1),this.$b&&qe(this.$b.ta(),0),this.$j.ta().style.display="",this.YY.stop(),this.Vb.start();this.Sa.od.xk(8)};
var oSd=function(a,b,c){var d=a.Qb,f=a.Ea(),h=d.clientWidth,k=d.clientHeight;if(90==b||270==b)h=d.clientHeight,k=d.clientWidth;t:{var d=h,m=k,p=a.Sa.rd().Oa;if(p){var u=a.Vk,z;b&&0!=b%180?(z=u.Ic(),u=u.wc()):(z=u.wc(),u=u.Ic());var F=a.Oa;z="hf"==F?1:p.width/z;p="vf"==F?1:p.height/u;if(1>=z&&1>=p){d=new Kb(Math.ceil(z*d),Math.ceil(p*m));break t}}d=new Kb(40,40)}m=!1;if(a.$j){var F=b||0,M=c||0;c=h;p=k;z=a.mL;a.$j.$b||(u=f1e(a.$j),z=a.mL=new Md(u.top,u.right,u.bottom,u.left),a.Km=M);F=(a.Km-F)/90;0>
F&&(F+=4);for(M=0;M<F;++M)u={},u.top=1-z.right,u.right=z.bottom,u.bottom=1-z.left,u.left=z.top,z=u;c=new Md(Math.round(z.top*p),Math.round(z.right*c),Math.round(z.bottom*p),Math.round(z.left*c));a.$j.Ma();a.$j=null}else if("ytcb"==a.Oa&&a.mL)c=new Md(Math.round(a.mL.top*k),Math.round(a.mL.right*h),Math.round(a.mL.bottom*k),Math.round(a.mL.left*h));else{m=h;c=k;F=d;a.mL?(p=new Md(Math.round(a.mL.top*c),Math.round(a.mL.right*m),Math.round(a.mL.bottom*c),Math.round(a.mL.left*m)),p.right-p.left<F.width&&
(p.left+F.width<=m?p.right=p.left+F.width:(p.left=Math.max(m-F.width,0),p.right=m)),p.bottom-p.top<F.height&&(p.top+F.height<=c?p.bottom=p.top+F.height:(p.top=Math.max(c-F.height,0),p.bottom=c))):p=F.height>.75*c||F.width>.75*m?new Md(Math.floor((c-F.height)/2),Math.ceil((m+F.width)/2),Math.ceil((c+F.height)/2),Math.floor((m-F.width)/2)):new Md(Math.floor(.125*c),Math.floor(.875*m),Math.floor(.875*c),Math.floor(.125*m));switch(a.Oa){case "f":case "gpsq":case "square":case "ytcb":z=p.bottom-p.top;
u=p.right-p.left;z=Math.min(Math.max(F.height,z),c);u=Math.min(Math.max(F.width,u),m);F=F.height/F.width;1==F?u=z=Math.min(u,z):1>F?z=Math.round(u*F):u=Math.round(z/F);p.top=Math.floor((c-z)/2);p.bottom=p.top+z;p.left=Math.floor((m-u)/2);p.right=p.left+u;break;case "hf":p.left=0;p.right=m;break;case "vf":p.top=0,p.bottom=c}c=p;m=!0}a.$j=new d1e(h,k,c,d,"f"==a.Oa||"gpsq"==a.Oa||"square"==a.Oa||"ytcb"==a.Oa,f);f=a.Ea();d=a.$j;c=a.Oa;var X,da,Aa;switch(c){default:case "default":X=!0;case "f":case "gpsq":case "square":case "ytcb":Aa=
!0;case "hf":case "vf":da=!0;case "none":}X&&(R2(d,new j3(d,"n",f)),R2(d,new j3(d,"e",f)),R2(d,new j3(d,"s",f)),R2(d,new j3(d,"w",f)));da&&R2(d,new k1e(d,f));Aa&&(da="gpsq"==c||"square"==c,R2(d,new V2(d,"ne",da,f)),R2(d,new V2(d,"sw",da,f)),R2(d,new V2(d,"se",da,f)),R2(d,new V2(d,"nw",da,f)));"none"!=c&&e1e(d,new l1e(d.wc(),d.Ic(),f));X||e1e(d,new p1e(f));"gpsq"==c&&(e1e(d,new v1e("r",.096,f)),e1e(d,new v1e("l",.096,f)));"ytcb"==c&&e1e(d,new u1e(.35331,.19811,f));a.ib(a.$j);a.$j.render(a.Ko);m&&(X=
f1e(a.$j),a.mL=new Md(X.top,X.right,X.bottom,X.left),a.Km=b||0);b=a.$j.ta();le(b,h,k);pSd(a,b,qSd(a))};
mSd.prototype.update=function(){var a=this.Ag,b=this.ta(),c=this.Qb;Pn(b,"a-Ci-Tc",!a);this.$j&&(this.$j.Ma(),this.$j=null);this.Ab&&this.Ab.setVisible(!!a);if(a){var a=this.Sa.od.La(a.getId()),a=this.Vk=a.Yh()[0],b=qSd(this),d=(new Kb(a.wc(),a.Ic())).Cr(b).round();c.src=a.Qs(Math.max(d.width,d.height));le(c,d.width,d.height);if(!xc||Gf(9))(new bF(c,450)).play(),this.Ab&&(new bF(this.Ab.ta(),450)).play();this.Ab&&this.Ab.reset();pSd(this,c,b);oSd(this);this.Ab&&this.Ab.resize();this.$b&&this.$b.resize()}else On(c,
!1),c.src="",ERd(c,0),this.Vk=null};var pSd=function(a,b,c){var d=zy(b);c.width+=2*a.Op;a=Math.round((c.width-d.width)/2)+20;My.Bo()?b.style.right=a+"px":b.style.left=a+"px";b.style.top=Math.round((c.height-d.height)/2)+"px";Pd(b,"position","absolute");b.style.display=""},qSd=function(a){var b=oe(a.ta().parentNode);b.height-=55;b.width-=2*a.Op+40;return b};mSd.prototype.qb=function(){mSd.ya.qb.call(this);this.$j&&(this.$j.Ma(),this.$j=null);this.Ab&&(this.Ab.Ma(),this.Ab=null);this.Ko=this.Qb=null};
var c4=function(a,b,c){t3.call(this,a,c);this.Bc=b;this.mL=rSd(this);var d;t:{if(d=b.getOption("coords")){var f=d.split(",");if(4==f.length){var h=Za(f[0]),k=Za(f[1]),m=Za(f[2]),f=Za(f[3]);if(0<=h&&1>=h&&0<=k&&1>=k&&0<=m&&1>=m&&0<=f&&1>=f){d=new Md(Math.min(h,m),Math.max(k,f),Math.max(h,m),Math.min(k,f));break t}a="Crop coordinates are not within the bounds (0, 0) - (1, 1).  Given coordinates: "+d}else a="Invalid crop coordinates: "+d;throw Error(a);}d=null}this.Qb=new mSd(a,d,b.getOption("mode"),
c);h=this.Jrb();d=this.Qb;for(k=0;k<h.length;++k)z3(h[k],d),d=h[k];if(h=this.La())b=new G3(a,b,h),z3(b,d),d=b;this.Ab=new B3(a,Lp(this.jid,this),void 0,c);z3(this.Ab,d);this.ib(this.Ab);this.getHandler().Ja(a.Ab,"reset",Lp(this.reset,this))};t(c4,t3);q=c4.prototype;
q.uFa=function(){var a=this.Bc,b={},c=a.getOption("userId");c?b.userId=c:(a=a.getOption("username"))&&(b.username=a);a=this.mL.substring(0,this.mL.indexOf("."));this.getContext().od.Vd(new u3(a,[this.mL],b),Lp(this.vB,this),Lp(this.D1a,this),!0)};q.D1a=function(){alert("Your image could not be loaded.  Please try a different image.");this.getContext().Ab.oD()};q.Pa=function(){var a=this.Ab;a.Pa();this.Kb(a.ta())};q.Na=function(){c4.ya.Na.call(this);this.vB()};
q.jid=function(){this.Ab.qh(!1);this.Qb.jL(this.La());this.getContext().Ab.Sl([this.La()])};q.reset=function(){this.Ab.qh(!0);if(this.xw()){var a=this.Bc.Ab;if(a){var b=this.getContext();b.Mh.On(a);b.rd().Pha&&b.Mh.Cca(!0)}else this.setActive(!0)}};q.Gf=function(){return this.Bc};q.La=function(){return this.mL?this.getContext().od.La(this.mL):null};q.Jrb=function(){return[new $Rd(this.getContext(),this.Ea())]};
q.vB=function(){var a=this.La(),b=this.Qb;b.Ag=a;b.Nb()&&b.update();b.Ag&&b.Qb&&b.$b&&b.$b.yN(b.Qb,b.Ag.Jd());this.Ab.qh(!!a);this.Ab.focus()};q.setActive=function(a,b){c4.ya.setActive.call(this,a,b);a&&(this.mL=rSd(this),this.La()||this.uFa(),this.vB())};var rSd=function(a){var b=a.Gf();a=b.getOption("service")||"picasa";return(b=b.getOption("id"))&&a+".0."+b};c4.prototype.qb=function(){c4.ya.qb.call(this);delete this.Ab;delete this.Qb};
var d4=function(a,b,c){c4.call(this,a,b,c);XRd(this.La(),a);this.Lh=new kX("",this.Ea());this.ib(this.Lh);this.Lh.hd("info");a=a.rd();a.nk()||a.ik()||w1e(this)};t(d4,c4);q=d4.prototype;q.Jrb=function(){return"none"!=this.Gf().getOption("mode")?[new $Rd(this.getContext(),this.Ea())]:[]};q.Pa=function(){d4.ya.Pa.call(this);this.Lh.Pa();this.Lh.render(this.ta());Qn(this.Lh.ta(),"a-ir")};q.Na=function(){d4.ya.Na.call(this);this.getHandler().Ja(this.Lh.ta(),"click",this.fEc)};
q.fEc=function(a){Sn(a.target,"a-Yd")?this.Lh.setVisible(!1):Sn(a.target,"a-Vya")&&(this.Lh.setVisible(!1),this.reset())};q.setActive=function(a,b){d4.ya.setActive.call(this,a,b);if(a){var c=this.Gf(),c=!this.getContext().rd().Kra&&!!c.Ab||1>=this.getContext().rd().uh.length;this.getContext().Mh.Cca(!(this.g3&&c));this.Qb.update()}};q.reset=function(){this.xw()&&this.getContext().od.Vd(new K3("deleteAlbum","picasa",[],{label:"profile_photos.draft"}),ka,ka);d4.ya.reset.call(this)};
var w1e=function(a){var b=o1e(a.Gf());b&&"upload"==b.Sa&&(a.getContext().rd(),a.La().Qe(),a.getContext().od.jg(a.La().Qe(),a,Lp(a.$b,a),function(a){return!!G2d(a)&&zhd(G2d(a))}))};
d4.prototype.$b=function(a){var b=this.La().Yh(),b=b[b.length-1],c;Br(G2d(a)).length?b&&(470>b.wc()||470>b.Ic())&&(c="This photo is very small. Do you have a better one?"):c="Are you sure people will recognize you in this photo? It doesn't seem to have a face in it.";c&&(a=this.Ea(),c=a.Pa("span",null,c,"\u00a0","\u00a0",a.Pa("a",{href:"javascript:void(0)","class":"a-s a-Vya"},"Upload a different photo")),a=this.Ea(),this.Lh.setContent(a.Pa("span",null,qa(c)?cd(a,c):c,"\u00a0","\u00a0",a.Pa("a",{href:"javascript:void(0)",
"class":"a-s a-Yd"},"Dismiss"))),this.Lh.setVisible(!0))};d4.prototype.uFa=function(){var a=this.Gf().getOption("url");a?(a={url:a,label:"profile_photos.draft"},this.getContext().od.Vd(new K3("importPhoto","picasa",[],a),Lp(this.Oa,this),Lp(this.D1a,this))):d4.ya.uFa.call(this)};d4.prototype.Oa=function(a){this.getContext().od.Xp(a.Ae());this.mL=a.Ae()[0].getId();this.vB()};
var sSd=function(a,b,c){c4.call(this,a,b,c);this.$b=null};t(sSd,c4);sSd.prototype.uFa=function(){X3.ia().load(URd(this.Gf().getOption("url")),Lp(this.Oa,this),Lp(this.D1a,this))};sSd.prototype.Oa=function(a){var b=this.Gf().getOption("url");a=a.target;var c={};c.id=String(Caa(b));c.url=b;c.name=Jf(b).getPath().split("/").pop();c.type="photo";c.serviceId="url";this.$b=new Vw(c);this.$b.ZE([new Uw(a.src,a.naturalWidth,a.naturalHeight)]);this.getContext().od.Xp([this.$b]);this.vB()}; sSd.prototype.La=function(){return this.$b};
var tSd=function(a,b,c){c4.call(this,a,b,c)};t(tSd,c4);tSd.prototype.Pa=function(){tSd.ya.Pa.call(this);var a=St("Devices preview",this.Ea());this.getHandler().Ja(a,"action",this.$b);var b=this.Ea().Pa("div","a-tb-tc-qa-c-Z");this.Ab.cb().appendChild(b);a.render(b)};tSd.prototype.$b=function(){var a=this.La();a&&(this.Qb.jL(a),ZRd(a,this.Gf(),this.getContext()))};
var uSd=function(){kd.call(this)};t(uSd,x3);uSd.prototype.uj=function(a,b,c){var d=b.rd().jg;return"crop"==a.Sa?b.rd().YY?(xc&&!Gf("9")&&BN(a,"mode","none"),new d4(b,a,c)):"ytcb"==d?new tSd(b,a,c):a.getOption("url")?new sSd(b,a,c):new c4(b,a,c):null};vg(xg(E.ia(),"opr"),uSd);

G("opr");I();
}catch(e){_DumpException(e)}
try{
var TXd=function(){var a;a="en-US".replace("_","-");"en-us"==a.toLowerCase()&&(a="en_us");return"https://picasa.google.com/intl/{locale}/web/privacy.html".replace("{locale}",a)},HXd=function(){this.Sa={}},JXd=function(a,b){a.Sa.at=b;return a},KXd=function(a,b){a.Sa.det=b;return a},LXd=function(a,b){a.Sa.dzt=b;return a},MXd=function(a){a.Sa.dzat="Or, if you prefer...";return a},NXd=function(a,b){a.Sa.text=b;return a},OXd=function(a,b){a.Sa.mechanisms=b;return a},PXd=function(a,b){a.Sa.metadata=b;return a},
QXd=function(a,b){a.Sa.selectLabel=b;return a},RXd=function(a){a.Sa.serviceId="picasa";return a},SXd=function(a){a.Sa.uet="There was an upload error.<br>Make sure to upload a JPG, GIF, or PNG file and try again.";return a};HXd.prototype.Yc=function(a){this.Sa.url=a;return this};HXd.prototype.Le=function(){var a=this.Sa;if(!a.text)throw Error("Hh");if(!a.selectLabel)throw Error("Ih");if(!a.url)throw Error("Jh");return new PVd(a)};
var UXd=function(){var a='When you upload photos, they\'ll be stored  in an online album in Picasa Web Albums, Google\'s free photo sharing service.\n <a target="_blank" class="upload-text-a" href="'+(TXd()+'">View Picasa program policies and privacy notice</a>');return PXd(OXd(QXd(MXd(LXd(RXd(KXd(SXd(NXd(new HXd,a)),"Oops, you dragged more than one photo!<br>Please only drag your desired photo.")),"Drag photos here")),"Select photos from your computer"),["XHR","HTML_FORM"]).Yc("/upload/photos/resumable"),
{disable_asbe_notification:"true"})},VXd=function(){return QXd(MXd(LXd(UXd(),"Drag a photo here")),"Select a photo from your computer")},FXd=function(a){qNc.call(this,a||"/picker");this.Sa={};this.Qb=new Af(this.mL);this.Ab=[];this.$b={};this.Sa.uploadConfigs=[];(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.n5(a)};t(FXd,URb);FXd.prototype.Oa=!1;FXd.prototype.Ry=function(a,b){this.Ab.push([a,b||{}]);return this};
var GXd=function(a,b,c){a.Sa.uploadConfigs[b]=c;return a};q=FXd.prototype;q.Le=function(){this.Sa.pp=this.Ab.length?this.Ab:void 0;this.Sa.uploaders=Ub(this.$b)?void 0:this.$b;var a=this.Sa;if(!a.hl)throw Error("Bh");if(!a.hostId)throw Error("Ch");for(var a=this.Po("upload"),b=0;b<a.length;b++){var c=a[b],d=c.getQuery();if(!d||!this.Sa.uploadConfigs[d])throw Error("Fh`"+c);}if(this.Sa.minimal)throw Error("Cl");return new R4(this,this.Ea())};
q.Gk=function(a){this.Sa[a]=!0;"profilePhoto"==a&&this.yla("square").Ry("profile");return this};q.bNa=function(){return this.Oa};q.Ic=function(){return this.Xg};q.IAa=function(){this.Sa.nav=nme(this.Vba);return this.Sa};q.getTitle=function(){return this.Sa.title};q.wc=function(){return this.Qf};q.FYb=function(a){this.Sa.apt=a;return this};q.zTb=function(a){this.Sa.actions=$b(a);return this};q.ATb=function(a){this.Sa.authuser=a;return this};q.xJ=function(a){this.Sa.cm=a;return this};
q.fCa=function(a,b){b&&(this.$b[a]=b);return this};q.yla=function(a){this.Sa.cropMode=a;return this};q.ud=function(a){this.Oa=a;return this};q.BTb=function(a){this.Sa.eventId=a;return this};q.m5=function(a){this.Sa.maxItems=a;return this};q.myb=function(a){this.Sa.minItems=a;return this};q.CTb=function(a){this.Sa.excludeIds=a.join(",");return this};q.LUa=function(a){this.Sa.e=a.join(",");return this};q.Frc=function(a){this.Sa.fdtm=a;return this};q.uM=function(a){this.Sa.groupId=a;return this};
q.v$a=function(a){if(!a.match("^[a-zA-Z0-9_\\-\\.]+$"))throw Error("Dh");this.Sa.hostId=a;Hf(this.Qb,"hostId",a);return this};q.n5=function(a){a&&(this.Sa.origin=a);return this};q.aZb=function(a){this.Sa.defaultView=a;return this};q.DTb=function(a){this.Sa.hl=a;Hf(this.Qb,"hl",a);return this};q.Bo=function(){var a=this.Sa.hl;return!!a&&Nx(a)};q.Wba=function(a,b){this.Sa.minph=parseInt(b,10);this.Sa.minpw=parseInt(a,10);return this};q.xs=function(a){this.Sa.selectButtonLabel=a;return this};
q.setSize=function(a,b){this.Qf=a;this.Xg=b;return this};q.kY=function(a){var b=[];a=a.split(",");for(var c=0;c<a.length;c++)b.push(a[c]);this.Sa.thumbs=b;return this};q.setTitle=function(a){this.Sa.title=a;return this};q.fYa=function(a){this.Sa.actionPaneText=a;return this};q.Hdb=function(a){this.Sa.uploadButton=a.toString();return this};q.Xba=function(a){this.Sa.uploadToAlbumId=a;return this};q.NUa=function(a){this.Sa.vg=a;return this};
q.cNa=function(){var a=Hf(Hf(this.Qb,"nav",nNc(this.Vba)),"native","1");Hf(a,"origin",this.Sa.origin);this.Ab.length&&Hf(a,"pp",Rf(this.Ab));return a.clone()};q.PSc=function(a){this.Sa.serviceIds||(this.Sa.serviceIds=[]);this.Sa.serviceIds.push(a);return this};var WXd=function(a){QNc.call(this,a);this.uh=[]};t(WXd,QNc);WXd.prototype.open=function(a,b,c,d,f){this.dispatchEvent(new ZMc(this.ka(),"eu"));b=a.jY(Lp(this.ttb,this,b)).v$a(c).Le();b.ud(!!f||a.bNa());b.render();b.setVisible(!0);return b};
WXd.prototype.Sm=function(){var a=["XHR","FLASH","HTML_FORM"],b=UXd().Yc("/_/upload/photos/resumable");OXd(b,a);var c=PXd(KXd(JXd(VXd(),["photo"]),"Oops, you dragged more than one photo!<br> Please only drag your desired profile photo."),{async_thumbnail:"false",auto_create_album:"profile_photos.draft",disable_asbe_notification:"true",enable_face_detection:"true",use_upload_size_pref:"true"}).Yc("/_/upload/photos/resumable"),d=VXd().Yc("/_/upload/photos/resumable"),f='By uploading videos, you agree to the <a target="_blank" class="upload-text-a" href="'+
(TXd()+'">Upload Terms and Conditions</a>.'),f=MXd(LXd(KXd(QXd(NXd(JXd(UXd(),["video"]),f),"Choose videos to upload"),"Oops, you dragged more than one image!"),"Drag videos here")).Yc("/_/upload/photos/resumable"),h=UXd().Yc("/_/upload/dragonfly");OXd(h,a);var a=(new FXd("/_/picker")).ud(!1),k=this.Ea();a.wb=k;a.Sa.peopleSearchPath="/_/picker/complete/search";a.Sa.loadCirclesUrl="/_/picker/lookupcircles";b=GXd(GXd(GXd(GXd(GXd(a,"photo",d.Le()),"photos",b.Le()),"profile",c.Le()),"videos",f.Le()),"dragonflyphotos",
h.Le());c=this.ka();b.Sa.appContext=c;v(this.uh,b.PSc,b);UNc(this,b);return b};WXd.prototype.yra=function(a,b,c,d,f){a=WXd.ya.yra.call(this,a,b,c,d,f);(b=this.ka().Vc(eH))&&(b=b.Ag())&&a.xJ(b);return a};WXd.prototype.KMc=function(a){this.uh.push(a)};H("onepick");
Bg(function(a){Gg(a,gz,function(a){var c=new WXd(a);(a=a.Vc($gb))&&TMc(a,c);return c})});
G("onepick");I();
}catch(e){_DumpException(e)}
try{
Wf.prototype.GGa=g(5,function(a){if(this.Sa){var b=this.Sa.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Nf(b)}});
var T$f=function(a){var b=[],c="",d;a=Ca(a);for(var f=0;f<a.length;)d=tcb(a,f),Oa(",;",d)||" "==d&&zle(c).Hi()?(Ea(c)||b.push(zle(c)),c="",f++):(c+=d,f+=d.length);Ea(c)||b.push(zle(c));return b},fYd=function(a){var b=null;try{b=a.cssRules||a.rules}catch(c){if(15==c.code)throw c.styleSheet=a,c;}return b},hYd=function(a){var b=[];a=a||document.styleSheets;var c=ia(void 0)?void 0:!1;if(a.imports&&a.imports.length)for(var d=0,f=a.imports.length;d<f;d++)tb(b,hYd(a.imports[d]));else if(a.length)for(d=0, f=a.length;d<f;d++)tb(b,hYd(a[d]));else{var h=fYd(a);if(h&&h.length)for(var d=0,f=h.length,k;d<f;d++)k=h[d],k.styleSheet&&tb(b,hYd(k.styleSheet))}!(a.type||a.rules||a.cssRules)||a.disabled&&!c||b.push(a);return b};H("oppe");
var R3e=function(a){Qw.call(this,a);this.TNb=!(!a.response||!a.response.showNotifications)};t(R3e,Qw);$S(21,function(a){return new R3e(a)});var S3e=function(a,b){Mw.call(this);this.zl=a;this.mL=b};t(S3e,Mw);S3e.prototype.PD=pg(new Af("notifications"));S3e.prototype.Sq=function(){return 21};S3e.prototype.xE=function(){var a=new Ze;Pw(a,"mode",this.zl);this.mL&&Pw(a,"notificationsSeen",Rf(this.mL.Pe()));return a};
var iYd=function(a){return a.replace(/[.]/g,"_")},jYd=function(a){return"people.0."+a},c4e=function(a){return a.Xa()||iYd(a.yc())},kYd=function(a,b,c){Pn(a.rd().fG(),"a-Wb-oac"+b,c)},lYd=function(a){return"people"==a.Sa&&"selected"==a.getOption("type")&&!a.getQuery()},mYd=function(a){return"people"==a.Sa&&"people"==a.getOption("type")&&!a.getQuery()},nYd=function(a,b){var c={serviceId:"people",type:"person"};c.name=a;c.id=iYd(b);c.url="mailto:"+b;var d={};d.email=b;c.attrs=d;return c};
var oYd=function(a){this.vb=a};oYd.prototype.vx=function(a,b,c){var d=bN(a),f=d.split(/\s+/);b=ec(this.vb.wn(),Lp(this.Sa,this,f),this).slice(0,b);c(a,zg(b,function(a){return new aN(d,void 0,!1,void 0,void 0,void 0,void 0,a)}))};oYd.prototype.Sa=function(a,b){var c=b.getName();if(Ea(Ga(c)))return!1;c=bN(c).split(/\s+/);return i$b(a,c)};
var pYd=function(a){Rw.call(this);this.Sa=a;var b=a.rd().tna||My.Qb+"lookupcircles";this.Xb=Hf(Jf(b),"authuser",a.rd().Ko);this.Db=Jf(My.Qb+"resolveemail");this.$b=new Ze;this.Vb=[];(this.vb=a.rd().zp()||null)?this.vb.wL(!0,!0).addCallback(Lp(function(a){this.mL=a;this.initialize()},this)):this.mL=new hE;this.Qb=new ag;qYd(this,this.Sa.ka());this.dw=new df};t(pYd,Rw);var rYd=function(a,b){return yb(a.Dfb(),b.Dfb())};pYd.prototype.Sx=function(){return 600};
var qYd=function(a,b){var c=new oE(b);x(a,c);c.QN="l";a.Sa.mL.addCallback(function(a){Yf(d4e(this.Xb,a),Lp(this.kN,this,c),"GET")},a)};pYd.prototype.kN=function(a,b){if(!this.isDisposed()){var c=b.target;c.ns()?c.ig()&&(c=c.GGa(")]}'"),c=new WD(c),X$a(a,c),a.initialize(c),a.QN="i",a.wL(!0,!0).addCallback(Lp(this.mN,this,a))):this.Qb.jd(null)}};
pYd.prototype.mN=function(a,b){this.isDisposed()||(this.vb=a,tYd(this,b),this.initialize(),this.Qb.By(a),v(this.Vb,Lp(this.Yy,this)),this.Vb=[],this.Ba.Ja(this.Sa.Sa,"si",this.lN))};var tYd=function(a,b){var c=new hE(b.xp());if(a.mL){var d=new jE(c);a.mL.Ab(function(a){c.get(a.getId())||e1(d,a)},a);d.Hf()}a.mL=c};
pYd.prototype.initialize=function(){this.jg=new eN(this.mL);var a=this.vb,b=this.mL.xp(),c=ec(b,function(b){return a.Dv(b)});new hE(c);this.nA=ec(b,function(a){return!!a.Sa.Jt()});wb(this.nA,rYd);this.iu=ec(b,function(b){return!(!a.Dv(b)&&!b.Sa.Jt())});wb(this.iu,rYd);this.lp=new eN(this.Op=new hE);this.yH=new oYd(a);this.o9=new hE(ec(b,function(b){return!a.Dv(b)}));pYd.ya.initialize.call(this)};pYd.prototype.Oa=function(a){return 13==a.Sq()};
var uYd=function(a,b,c){if(c.W_(1023))return b;var d=[];v(b,function(a){c.W_(1)&&a.nj()&&!a.Ck()?d.push(a):!c.W_(2)||a.nj()||a.Ck()?c.W_(4)&&a.Ck()&&d.push(a):d.push(a)},a);return d},vYd=function(a,b,c){b=zg(b,function(a){return a.Oc()},a);return uYd(a,b,c)};
pYd.prototype.Ko=function(a){if(this.Qb.jl||"g"!=a.Sa&&("p"!=a.Sa||a.getParent()||a.getQuery())&&!ba(this.$b,a.aD()))if(MEa(this,a.getId()),"sa"!=a.Sa||a.getQuery()||!a.$b||a.getParent())if("s"==a.Sa)xYd(this,a,[]);else if("g"==a.Sa)xYd(this,a,zg(uYd(this,this.nA,a.Ab),Lp(this.Ab,this)));else{var b=[];if("c"==a.Sa||"a"==a.Sa)if(b=zg(this.vb.wn(),Lp(this.Km,this)),"c"==a.Sa){xYd(this,a,b);return}var c=a.getParent();if(c&&!a.getQuery())this.vb.qi(c),c=uYd(this,this.vb.qi(c).xp(),a.Ab),wb(c,rYd),xYd(this,
a,zg(c,Lp(this.Ab,this)));else if("f"==a.Sa){var d;this.jg.vx("",1E3,Lp(function(b,c){var f=vYd(this,c,a.Ab),f=ub(f,0,12);d=zg(f,function(a){return this.Ab(a)},this);Sw(this,a.getId(),FYd(d,void 0))},this))}else{var f;(c=a.getQuery()||"")?(this.yH.vx(c,1E3,Lp(function(a,c){b=zg(c,function(a){return this.Km(a.qi())},this)},this)),this.jg.vx(c,1E3,Lp(function(b,c){f=zg(vYd(this,c,a.Ab),function(a){return this.Ab(a)},this)},this))):f=zg(uYd(this,this.iu,a.Ab),function(a){return this.Ab(a)},this);var h;
this.lp.vx(c,1E3,Lp(function(a,b){h=zg(b,function(a){return this.Ab(a.Oc())},this)},this));var k=[];0!=b.length||0!=f.length||a.nA||(k=zYd(this,c,a),0<k.length&&this.dw.add(a.getId()));k=rb(b,f,h,k);if(ba(this.$b,a.aD())){var m=this.$b.get(a.aD());m.length!=k.length?(k=CYd(m,k),this.$b.set(a.aD(),k)):k=m}this.Qb.jl&&c&&a.Oo()>=k.length?100>c.length?DYd(this,a).addCallback(function(b){Sw(this,a.getId(),FYd(b,void 0))},this):Sw(this,a.getId(),FYd([],void 0)):xYd(this,a,k)}}else wYd(this,a);else this.Vb.push(a)};
var wYd=function(a,b){var c=zg(a.vb.wn(),Lp(a.Km,a)),d=zg(a.o9.xp(),Lp(a.Ab,a));xYd(a,b,rb(c,d))},yYd=function(a,b){return a.dw.contains(b.getId())},zYd=function(a,b,c){var d=[],f=[];v(T$f(b),function(a){var b=a.un();a=a.getName();if(b&&yE(b)){var c;this.jg.vx(b,1,Lp(function(a,d){var f=d.length&&d[0].Oc();f&&f.yc()==b&&(c=this.Ab(f))},this));c||this.lp.vx(b,1,Lp(function(a,d){var f=d.length&&d[0].Oc();if(f&&f.yc()==b){var h={serviceId:"people",type:"person"};h.name=f.getName();h.id=iYd(f.yc());h.url=
"mailto:"+f.yc();var M={};M.email=f.yc();h.attrs=M;c=h}},this));c||(f.push(b),c=a?nYd(a,b):nYd(b,b));d.push(c)}},a);d.length&&c&&(c.$b=!0);f.length&&AYd(a,f);return d},d4e=function(a,b){var c=a.clone();Hf(c,"token",b.Gf());c.Sa.extend(b.d3b);return c},e4e=function(a,b,c){a.Sa.mL.addCallback(Lp(function(a){var f=new Ff;Pb(b,function(a,b){f.add(b,a)},this);Yf(d4e(this.Db,a),Lp(function(a){this.isDisposed()||(a=a.target,a.ns()&&(a=a.GGa(")]}'"),a=new WD(a),c(a)))},this),"POST",f.toString())},a))},g4e=
function(a,b){var c=new ag,d=new df;if(!b.length)return c.By(d),c;e4e(a,{ids:b.join(",")},Lp(function(a){d.gz(a?f4e(this,a.Ms()):[]);c.By(d)},a));return c},AYd=function(a,b){v(b,function(a){e4e(this,{email:a},Lp(function(b){if((b=b.Ms()[0])&&b.Ce()&&b.Ce().Xa()){var f=i4e(b);b=jYd(iYd(a));var h=this.Sa.od,k=h.La(b),k=BYd(k.getName(),k.Qe(),a),m=new jE(this.Op);ASd(m,k.getKey());m.Hf();k=new jE(this.mL);e1(k,f);k.Hf();f=new Vw(this.Ab(f));f.setAttribute("oid",b);h.$Ua(b,f);h.Xp([f])}},this))},a)},
i4e=function(a){var b=a.Lj()||new Ck;return new yB(a.Ce(),b)},f4e=function(a,b){var c=[],d=new jE(a.mL),f=[];v(b,function(a){a=i4e(a);e1(d,a);c.push(a.Xa());f.push(new Vw(this.Ab(a)))},a);d.Hf();a.Sa.od.Xp(f);return c};pYd.prototype.lN=function(a){var b=this.Sa.od;v(a.ur,function(a){a=b.La(a);if(!EYd(this,a.Qe())&&"person"==a.Ra()){a=BYd(a.getName(),a.Qe(),a.getAttribute("email"));var d=new jE(this.Op);e1(d,a);d.Hf()}},this)};
var CYd=function(a,b){var c=new df;v(a,function(a){c.add(a.id)});var d=sb(a);v(b,function(a){c.contains(a.id)||d.push(a)});return d},DYd=function(a,b){var c=new ag,d=b.Ab;eYd(a.Sa,!d.W_(1),!d.W_(2)).addCallback(function(a){a.vx(b.getQuery(),10,Lp(function(a,b){b=ec(b,function(a){return!this.mL.cC(a.Oc().getKey())},this);var f=zg(vYd(this,b,d),function(a){return this.Ab(a)},this);c.By(f)},this))},a);return c},EYd=function(a,b){var c=gE(-1!=b.indexOf("@")?void 0:b,-1!=b.indexOf("@")?b.replace(/[_]/g,
"."):void 0);return(c=a.mL.cC(c))&&new Vw(a.Ab(c))},xYd=function(a,b,c){var d=b.Oo(),f=d+50,h="c"==b.Sa,k=!h&&(f<c.length||!!b.getQuery());a.Qb.jl||h||(k=k||!b.getParent()||!!b.getQuery());d=b.$b?c:ub(c,d,f);!a.Qb.jl&&k&&a.$b.set(b.aD(),c);c=k?""+f:void 0;Sw(a,b.getId(),FYd(d,c))},FYd=function(a,b){var c={},d={};d.docs=a;d.cursor=b;c.response=d;return c},BYd=function(a,b,c){var d=new Ck;a&&tB(d,a);a=new yk;b&&Py(a,3,b);c&&Py(a,1,c);return new yB(a,d)};
pYd.prototype.Ab=function(a){var b={};b.name=a.Ob(!0);b.url=AHc(a);b.serviceId="people";b.id=c4e(a);b.type="person";var c={};c.u=WRd(a.Cd());c.r=!0;b.thumbs=[c];c={};c.email=a.yc();c.ci=this.vb&&this.vb.Ag(a);c.ises=a.nj();c.isps=!!a.Nea;b.attrs=c;return b};pYd.prototype.Km=function(a){var b={};b.name=a.getName();b.description=a.Jd();b.serviceId="people";b.id=a.getKey();b.type="circle";a=U$a(this.vb,a.getKey())[0];b.nChildren=a?a.mL():0;return b};
pYd.prototype.Tx=function(){var a=this.Sa.Sa.Ua(!0),b=new df;v(a,function(a){(a=this.Sa.od.La(a))&&("person"==a.Ra()?b.add(a.Qe()):"circle"==a.Ra()&&v(this.vb.qi(a.Qe()).xp(),function(a){b.add(c4e(a))},this))},this);return b.Fc()};pYd.prototype.qb=function(){pYd.ya.qb.call(this);delete this.mL;delete this.Xb;delete this.Db;delete this.$b;delete this.Vb;delete this.vb;delete this.Qb};
var j4e=function(a,b){m4.call(this,a,b);this.Ab=parseInt(a.circleActionSource,10)};t(j4e,m4);
j4e.prototype.hp=function(a,b,c){this.Oa.addCallback(function(d){var f=Jf(My.Qb+"mutatecircle");Hf(f,"token",d.Gf());f.Sa.extend(d.d3b);d=new Ff;sa(this.Ab)&&d.add("circleActionSource",this.Ab);var h=a[0].getAttribute("ncn");h&&d.add("newCircleName",h);var k=[],m=[];v(a,function(a){a.getAttribute("rp")?k.push(a):m.push(a)},this);var p=[],u=this.mL.FH.getOption("parent");u&&(d.add("circleId",u),this.Sa.Vd(new Yw("p",void 0,u),Lp(function(a){p=a.Ae();var b=new df;b.gz(zg(p,function(a){return a.getId()},
this));m=ec(m,function(a){return!b.contains(a.getId())},this)},this),ka,!1));m.length&&d.add("addIds",k4e(this,m));k.length&&d.add("removeIds",k4e(this,k));Yf(f,Lp(function(d){d=d.target;if(d.ns()){var f;try{f=d.GGa("&&&START&&&")}catch(M){c(l4e(this));return}if(f.error)c(l4e(this,f.error));else{d=f.circleId?f.circleId:u;var X=jYd(d);v(rb(p,a),function(a){a.zi=X},this);var da=this.Sa.La(X);da?(h&&da.Wb(h),I2d(da,da.Tm()+m.length-k.length)):da=m4e(d,h,m.length);f.kansasVersionInfo&&(da.uh=f.kansasVersionInfo);
this.Sa.Xp([da]);b(rb(p,m))}}else c(l4e(this))},this),"POST",d.toString())},this)};
var l4e=function(a,b){switch(b||1){case 2:return"Adding these people will put you over the limit for your circles. Please see "+("https://support.google.com/plus/answer/1733011?hl="+My.Sa+" for more information.");default:return a.mL.FH.getOption("parent")?"Could not update your circle.  Please try again later.":"Could not create your circle.  Please try again later."}},m4e=function(a,b,c){var d={};d.name=b;d.serviceId="people";d.id=a;d.type="circle";d.nChildren=c;return new Vw(d)},k4e=function(a, b){return zg(b,function(a){a=a.Qe();return-1!=a.indexOf("@")?a.replace(/[_]/g,"."):a},a).join(",")};
var o4e=function(a,b){E3.call(this,a,new Vw({}),n4e.ia(),b);this.Bm(16,!1);this.Bm(8,!1);this.Sx=new gD(b);x(this,this.Sx);this.Ab=new vx("Add by name or email");x(this,this.Ab)};t(o4e,E3);q=o4e.prototype;q.zt=function(a){o4e.ya.zt.call(this,a);a&&this.iVa()};
q.Na=function(){o4e.ya.Na.call(this);var a=this.Sx.fb("a-nl-ma-N");this.Ab.yb(a);this.Oa=aYd(this.getContext(),a);x(this,this.Oa);var b=new rw(a);x(this,b);this.getHandler().Ja(this.ta(),"click",this.iVa).Ja(this.Oa,"aj",this.KHb).Ja(a,"keydown",this.SHb)};q.iVa=function(){this.Sx.setVisible(!0);Uf(this.Ab.rq,0,this.Ab)};
q.SHb=function(a){if((9==a.keyCode||27==a.keyCode)&&1<Ge(this.getParent())){a.preventDefault();this.Sx.setVisible(!1);this.Sx.fb("a-nl-ma-N").blur();var b=My.Bo()?37:39;try{this.hT(new foa(b,b,!1,null))}catch(c){}}a.stopPropagation()};q.KHb=function(a){var b=a.row&&a.row.Oc(),c;b?(a=wg(xg(E.ia(),"oppe")).d$(this.getContext(),this.Ea()),c=new Vw(a.Ab(b))):yE(a.row.getQuery())&&(b=a.row.getQuery(),b=nYd(b,b),c=new Vw(b));c&&(this.dispatchEvent(new p4e(c)),this.Ab.qe(""),this.Sx.setVisible(!1))};
var p4e=function(a){A.call(this,"Ji");this.Sa=a};t(p4e,A);p4e.prototype.La=function(){return this.Sa};var n4e=function(){F3.call(this,"a-nl-ma")};t(n4e,F3);la(n4e);
n4e.prototype.Pa=function(a){var b=a.Ea(),c=b.Pa("input","a-nl-ma-N b-hb"),d=a.getContext().rd().YUa||"other",f=(new Z("{GENDER, select, male {Add a person}female {Add a person}other {Add a person}}")).format({GENDER:d}),b=b.Pa("div","a-nl-ma",b.Pa("div","a-nl-ma-m-nb",d=b.Pa("span","a-n-Ac-id")),b.Pa("div","a-nl-ma-s-nb",f)),f=a.Sx;f.setContent(c);f.Fg(d);f.setPosition(1,0);f.render(a.getContext().rd().fG());Qn(f.ta(),"a-nl-ma-i");return b};
var fbg=function(a){yp.call(this,"",void 0,a);this.Sa=Ejc("Save",this.Ea());x(this,this.Sa)};t(fbg,yp);fbg.prototype.Pa=function(){fbg.ya.Pa.call(this);this.Sa.render(this.cb())};fbg.prototype.Na=function(){fbg.ya.Na.call(this);this.getHandler().Ja(this.Sa,"action",this.Qo)};
var LYd=function(){};t(LYd,vo);la(LYd);LYd.prototype.Pa=function(a){var b=a.Ea(),c=a.La(),d=b.Pa("div","a-vd-za d-k-l",b.Pa("span","a-vd-za-yb",b.Pa("span","a-vd-za-kb",c.getName()||c.getAttribute("email")),b.Pa("span","a-vd-za-bd a-n-ab-z-wt-jf")));if(c=c.getAttribute("email"))b=new mF(d,c,b),b.$E(2),x(a,b);return d};LYd.prototype.jg=function(a){return a.ta().children[0].children[1]};
var q4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{There was a server error, please try again later.}male{There was a server error, please try again later.}other{There was a server error, please try again later.}}"),{VIEWER_GENDER:c.Aa});return P(a+c)};
var r4e=function(a,b,c,d){y3.call(this,a,"a-Tf-Cc","a-Tf-Bb","a-Tf-B","top",d);this.Bc=b;this.Vk=c;z3(this,c);this.Qb=new vx("Name your circle...");x(this,this.Qb);this.Km=null;this.$b=new gD(d);x(this,this.$b);this.YY=null;this.Oa=new df;var f=b.getOption("parent");a.od.Vd(new Yw("c"),Lp(function(a){v(a.Ae(),function(a){a.Qe()!=f&&this.Oa.add(a.getName())},this)},this),ka,!1);this.Vb=new Un(Lp(this.Ko,this,!0),200);this.iu=null};t(r4e,y3);q=r4e.prototype;
q.Pa=function(){r4e.ya.Pa.call(this);this.setSize(100);var a=!this.Bc.getOption("parent");this.mL=new Ot("Select all",this.Ea());this.ib(this.mL);this.mL.Pa();var b=this.Ea(),b=this.Ag=b.Pa("div","a-Tf-Z",b.Pa("div","a-Tf-O",this.Bc.getOption("viewTitle")||(a?"Create a Google+ circle":"Edit your Google+ circle")),this.iu=b.Pa("div","a-Tf-ee",this.Bc.getOption("viewInfo")||(a?"Create a new Google+ circle with the following people.":"Select people that you want to be in this circle.")),this.YY=b.Pa("div",
"a-Tf-N-nb",a=b.Pa("input","a-Tf-N b-hb")),b.Pa("div","a-Tf-Gg-nb",this.Km=b.Pa("span")),b.Pa("div","a-Tf-ea",this.mL.ta()));this.Qb.yb(a);this.Qb.Ta(!1);this.Yg=new rw(a);x(this,this.Yg);this.$b.setContent(M7a);this.$b.Fg(a);this.$b.IA(!1);this.$b.setPosition(1,2);this.$b.render(this.getContext().rd().fG());Qn(this.$b.ta(),"a-Tf-i");this.Ab.appendChild(b)};
q.Na=function(){r4e.ya.Na.call(this);this.getHandler().Ja(this.Yg,"input",this.Xb).Ja(this.getContext().Sa,"si",this.Op).Ja(this.mL,"action",this.cIb).Ja(this.getContext().Sa,"si",this.jVa).Ja(this.getContext().Qb,"set-view-options",this.Pkb);this.setSize(zy(this.Ag).height);this.Op();this.jVa()};q.Pkb=function(a){if(a=a.data.viewOptions&&a.data.viewOptions.viewInfo)this.Ea().uq(this.iu,a),this.setSize(zy(this.Ag).height)};
q.jVa=function(){Uf(function(){qng(this,this.Vk.Rd().Ae().length==this.getContext().Sa.Ua(!0).length)},0,this)};q.cIb=function(){var a=2!=this.mL.getStyle();a?s4e(this.Vk):this.getContext().Sa.lJ(!0);qng(this,a)};var qng=function(a,b){a.mL.setContent(b?"Unselect all":"Select all");a.mL.zf(b?2:0)};r4e.prototype.Xb=function(a){var b=Ia(this.Qb.getValue());this.Oa.contains(b)?this.Vb.start():(this.Vb.stop(),this.Ko(!1));this.dispatchEvent(a)};
r4e.prototype.Ko=function(a){if(a){var b='You already have a circle named "'+(Ia(this.Qb.getValue())+'", please choose a different name.');this.$b.setContent(Hua(b))}this.$b.setVisible(a);Pn(this.YY,"a-Poa-N-wa",a)};var t4e=function(a){var b=Ia(a.Qb.getValue());return!Ea(b)&&!a.Oa.contains(b)};r4e.prototype.Op=function(){var a="Selected ("+(wg(xg(E.ia(),"oppe")).d$(this.getContext(),this.Ea()).Tx()+")");Rc(this.Km,a)};
var k3=function(a,b,c,d){t3.call(this,a,d);this.Xd=b;this.list=c;this.cj=new B3(this.getContext(),Lp(this.bMa,this),void 0,this.Ea());this.ib(this.cj);qr(this.getHandler().Ja(a.Sa,"si",this.pX),this.list,"change",this.pX,!1,this)};t(k3,t3);k3.prototype.setActive=function(a,b){k3.ya.setActive.call(this,a,b);this.list.setActive(a,b)};k3.prototype.pX=function(){this.xw()&&this.cj.qh(this.getContext().Sa.OEb()||!!this.Xd.getOption("selectNone"))};
var u4e=function(a){var b=wg(xg(E.ia(),"oppe")),c=a.getContext();return b.d$(c,a.Ea())};q=k3.prototype;q.Pa=function(){var a=this.cj;a.Pa();this.Kb(a.ta())};q.Na=function(){k3.ya.Na.call(this);var a=this.getContext();this.getHandler().Ja(a.Qb,"select-people",this.qJc)};q.bMa=function(){for(var a=this.getContext(),b=a.od,c=a.Sa.Ua(!0),d=[],f=0;f<c.length;f++){var h=b.La(c[f]),k=h.Ra();"contact"!=k&&"person"!=k&&"circle"!=k||d.push(h)}a.Ab.Sl(d)};
q.qJc=function(a){var b=a.data.people;a=a.data.circles;this.xw()&&(b&&b.length&&this.Pcb(b),a&&a.length&&v4e(this,a))};q.csa=Gx;q.Pcb=function(a){this.getContext();var b=u4e(this),c=b.Qb;if(!this.csa()||My.Ab||c.jl){var d=[],f=[];v(a,function(a){var c=a.id||iYd(a.email);(c=EYd(b,c))?d.push(c):f.push(a)},this);d.length&&this.m8(d);w4e(this,f)}else c.addCallback(Lp(this.Pcb,this,a))};
var w4e=function(a,b){if(b.length){var c=u4e(a),d=c.Qb;if(a.csa()&&!d.jl)d.addCallback(Lp(a.Pcb,a,b));else{var f=[],h=[],k=[];v(b,function(a){a.id?(f.push(a),h.push(a.id)):k.push(a)},a);f.length?g4e(c,h).addCallback(function(a){var b=ec(f,function(b){return a.contains(b.id)},this);this.Pcb(rb(b,k))},a):a.m8(zg(k,function(a){return new Vw(c.Ab(BYd(a.displayName,a.id,a.email)))},a))}}};
k3.prototype.m8=function(a){this.getContext().od.Xp(a);this.getContext().Sa.WT(zg(a,function(a){return a.getId()},this),!0)};var v4e=function(a,b){var c=a.getContext(),d=c.od,f=c.Sa,h=[];v(b,function(a){h.push(jYd(a));kYd(c,a,!0)},a);d.La(h[0])?f.WT(h,!0):d.Vd(new Yw("c"),Lp(function(){f.WT(h,!0)},a),ka,!0)};k3.prototype.vB=function(){this.list.vB()};
var y4e=function(a,b,c,d){k3.call(this,a,b,c,d);this.mL=new r4e(a,b,c,d);z3(this.cj,this.mL);this.Qb=(a=b.getOption("parent"))&&jYd(a);this.$b="hem"==this.Xd.getOption("mode");this.YY=x4e(this);this.Ab=null};t(y4e,k3);q=y4e.prototype;
q.Na=function(){y4e.ya.Na.call(this);Qn(this.ta(),"a-Va-rc");if(this.Qb){this.$b||u4e(this).Qb.addCallback(function(){s4e(this.list)},this);var a=this.getContext().od;a.Vd(new Yw("c"),Lp(function(){this.mL.Qb.Ta(!0);var b=a.La(this.Qb);b&&(b=b.getName(),this.mL.Qb.qe(b),this.mL.Qb.rq());this.Mfa()},this),Lp(function(){this.mL.Qb.Ta(!0);this.Mfa()},this),!0)}else{this.list.meb(!0);this.cj.qh(!1);var b=this.Xd.getOption("parentName");b&&this.mL.Qb.qe(b);this.mL.Qb.Ta(!0)}this.getHandler().Ja(this.mL,
"input",this.pX)};q.csa=function(){return!!this.Qb&&!this.$b};q.m8=function(a){y4e.ya.m8.call(this,a);this.list.meb(!1);z4e(this.list,a,this.Xd.getOption("eap")?1:0)};q.pX=function(){this.xw()&&this.Mfa()};q.Mfa=function(){this.cj.qh(t4e(this.mL)&&(this.getContext().Sa.OEb()||!!this.Xd.getOption("selectNone")))};q.kt=function(){this.mL.Qb.rq();return!0};var x4e=function(a){var b=new ag;a.getContext().od.Vd(new S3e("READ"),function(a){b.By(a.TNb)},Lp(b.jd,b),!1);return b};
y4e.prototype.Oa=function(){alert(JC(this.getContext().ef(),q4e))};y4e.prototype.Ag=function(){this.getContext().od.Vd(new S3e("WRITE",Gye()),Lp(function(){this.Ab.setVisible(!1);A4e(this)},this),this.Oa,!1)};
y4e.prototype.bMa=function(){cg(this.YY,function(a){a?(this.Ab||(a=new U0(this.getContext().ka(),new RD),a.Pa(),this.Ab=new gD(this.Ea()),x(this,this.Ab),this.Ab.setPosition(2),this.Ab.IA(!1),iD(this.Ab,!0),this.Ab.render(this.getContext().rd().fG()),a.render(this.Ab.cb()),Qn(this.Ab.ta(),"a-vhm94d-b-i"),this.Ab.Fg(this.cj.Pt.ta()),this.getHandler().Ja(a.Sa,"action",this.Ag).Ja(this.Ab,"hide",this.Mfa).Ja(this.Ab,"show",Lp(this.cj.qh,this.cj,!1))),this.Ab.setVisible(!0)):A4e(this)},this.Oa,this)};
var A4e=function(a){var b=a.getContext(),c=a.list.Rd().Ae(),d=b.Sa,f=[];a.Qb&&!a.$b&&(f=ec(c,function(a){return d.Sf(a.getId())?!1:(a.setAttribute("rp",!0),!0)},a));var h=b.od,c=d.Ua(!0),k=[];v(c,function(a){a=h.La(a);var b=a.Ra();"contact"!=b&&"person"!=b&&"circle"!=b||k.push(a)},a);var f=rb(k,f),c=Ia(a.mL.Qb.getValue()),m=h.La(a.Qb);(!a.Qb||m&&m.getName()!=c)&&f[0].setAttribute("ncn",c);b.Ab.Sl(f)};
var IYd=function(a,b,c,d,f){y3.call(this,a,"a-bh-Cc","a-bh-Bb","a-bh-B","top",f);this.YY=new x4(a,b,f);this.Bc=b;this.$b=c};t(IYd,y3);q=IYd.prototype;q.Z1a=0;
q.Pa=function(){IYd.ya.Pa.call(this);this.setSize(58);var a=this.Ea();this.mL=new jD("Loading...",void 0,a);var b;this.YY.YY=!1;this.YY.Pa();this.Ab.appendChild(a.Pa("div","a-bh-Z",b=a.Pa("span"),this.YY.ta()));this.mL.render(b);if(this.getContext().rd().$b){this.setSize(100);this.Ag=a.Pa("div","a-bh-zv");b=new nD(void 0,a);var c=a.Pa("span","a-bh-zv-ka","Select all");GN(b,c);b.render(this.Ag);this.Qb=b;this.Ab.appendChild(this.Ag);a.appendChild(this.Ag,c)}};
q.Na=function(){IYd.ya.Na.call(this);var a=new $w({service:"contacts",type:"groups"});this.Vb=this.getContext().od.Rd(a);this.Vb.addListener(Lp(this.m4c,this));this.Vb.Hi()?JYd(this):this.getContext().od.Vd(a,ka,Lp(this.Vk,this),!0);(a=this.$b.Rd())&&a.addListener(Lp(this.EZb,this));this.Qb&&this.getHandler().Ja(this.Qb,"change",Lp(this.Km,this));this.YY.Na();Qn(this.mL.ta(),"a-bh-tz-r-c");xc&&Gf("8")&&!Gf("9")&&me(this.mL.ta(),130)};q.m4c=function(a){a.length&&JYd(this)};
q.EZb=function(){this.Ag&&On(this.Ag,1<this.$b.Rd().tf())};
var JYd=function(a){for(var b=a.Vb.Ae(),c=a.Bc.getOption("parent");0<a.mL.tG();)a.mL.qha(0);a.mL.Ne().hb(!0);wb(b,function(a,c){return a!=b[0]&&c!=b[0]?yb(a.getName().toLowerCase(),c.getName().toLowerCase()):a==b[0]?-1:1});for(var d=0;d<b.length;d++){var f=b[d],h=c==f.Qe(),f=new yp(f.getName(),f.Qe());a.mL.dg(f);h&&(a.Z1a=d)}a.Bc.getOption("query")&&(f=new yp("Search results"),f.Ta(!1),a.mL.dg(f),a.Z1a=b.length);a.mL.Ej(a.Z1a);Qn(a.mL.Ne().ta(),"a-bh-tz-r");Qn(a.mL.Ne().ta(),"a-Vdb");a.getHandler().Ja(a.mL,
"action",a.hFc)};IYd.prototype.Vk=function(){};IYd.prototype.Km=function(a){a.target!=this.Qb&&this.Qb.Ld(!this.Qb.Ag());KYd(this,Lp(this.Vod,this))};var KYd=function(a,b){a.Oa?b&&b():a.$b.Rd().yW()?a.getContext().od.Vd(new $w({service:"contacts",type:"contacts",parent:a.Bc.getOption("parent"),options:{getAll:!0},q:a.Bc.getOption("query")}),Lp(a.vuc,a,b),Lp(a.wuc,a)):(a.Oa=a.$b.zq().Rc(),b&&b())};q=IYd.prototype;
q.vuc=function(a,b){var c=b.Ae();this.getContext().od.Xp(c);var d=[];v(c,function(a){d.push(a.getId())});this.Oa=d;a&&a()};q.Vod=function(){var a=!!this.Qb.Ag(),b=this.getContext().Sa;v(this.Oa,function(c){b.Fca(c,a,!1);this.$b.iRa(c)},this);this.OVa();this.getParent().qh(this.getContext().Sa.OEb());this.dispatchEvent("Ki")};q.wuc=function(){alert("Fetching the contacts for this group was unsuccessful. Please verify that you have at least one contact in this group")};
q.OVa=function(){var a;if(this.Qb){if(!this.Oa&&this.$b.Rd().yW())a=!1;else{a=this.Oa||this.$b.zq().Rc();var b=this.getContext().Sa;a=Ye(a,function(a){return b.Sf(a)},this)}this.Qb.Ld(a)}};q.hFc=function(a){var b=this.Bc.clone();o4(b,null);BN(b,"parent",a.target.getValue());this.getContext().Mh.On(b);this.mL.Ej(this.Z1a)};
var MYd=function(a,b,c){y3.call(this,a,"a-gg-Cc","a-gg-Bb","a-gg-B","bottom",c);this.$b=new Ze;this.Bc=b;this.getHandler().Ja(a.Sa,"si",this.Wwc)};t(MYd,y3);q=MYd.prototype;q.msb=0;
q.Pa=function(){MYd.ya.Pa.call(this);var a=this.Ea();if(this.mL=a.Pa("div","a-gg-za-di a-gg-id",this.YY=a.Pa("span","d-k-l a-gg-za-fia")))ey(this.mL,"The selected contacts list. Press Backspace or Delete key to remove a selected contact."),qo(this.mL,"live","polite"),qo(this.mL,"relevant","removals"),po(this.mL,"row"),qo(this.mL,"hidden",!1);"people"==this.Bc.Sa&&(this.Ag=a.Pa("span","a-gg-Ac-Md-id d-k-l",a.Pa("span","d-k-l a-n-Bk-ji"),"Add more people"),this.Qb=a.Pa("input",{type:"text","class":"a-gg-N d-k-l"}),
we(this.Ag,!0),this.YY.appendChild(this.Ag),this.YY.appendChild(this.Qb));this.Ab.appendChild(this.mL)};q.Na=function(){MYd.ya.Na.call(this);this.Qb&&(this.Oa=aYd(this.getContext(),this.Qb),On(this.Qb,!1),this.getHandler().Ja(this.mL,"click",this.wwc).Ja(this.Oa,"aj",this.Zhd).Ja(this.Qb,"blur",this.Roc));OYd(this);cTd(this,"people"==this.Bc.Sa)};q.Roc=function(){On(this.Qb,!1);On(this.Ag,!0);this.Qb.value=""};
q.wwc=function(a){if(a.target==this.mL||a.target==this.Ag)On(this.Qb,!0),On(this.Ag,!1),this.Qb.focus()};
q.Zhd=function(a){var b=this.getContext().od,c=this.getContext().Sa,d=a.row&&a.row.Oc();d?(a=wg(xg(E.ia(),"oppe")).d$(this.getContext(),this.Ea()),d=new Vw(a.Ab(d)),b.La(d.getId())||b.Xp([d]),c.Fca(d.getId(),!0,!0),this.Qb.value=""):yE(a.row.getQuery())&&(d=a.row.getQuery(),a={serviceId:"people",type:"person"},a.name=d,a.id=d,a.url="mailto:"+d,a=new Vw(a),a.setAttribute("email",d),d=a,b.Xp([d]),c.Fca(d.getId(),!0,!0),this.Qb.value="")};q.Wwc=function(a){v(a.ur,function(a){NYd(this,a)},this)};
q.vjc=function(a,b){if(46==b.keyCode||8==b.keyCode)b.target.nextSibling?b.target.nextSibling.focus():b.target.previousSibling&&b.target.previousSibling.focus(),this.LTb(a),b.preventDefault(),b.stopPropagation()};q.LTb=function(a){this.getContext().Sa.WT([a.La().getId()],!1)};
q.refresh=function(){var a=new Ze,b=this.getContext().od;v(this.getContext().Sa.Ua(!0),function(c){var f=b.La(c).Ra();"contact"!=f&&"person"!=f&&"circle"!=f||a.set(c,!0)},this);for(var c=0;c<this.$b.ii().length/10;c++)Uf(Lp(this.qob,this,this.$b.ii(),a,10*c));for(c=0;c<a.ii().length/10;c++)Uf(Lp(this.qob,this,a.ii(),this.$b,10*c));this.msb=a.Fc();OYd(this)};q.qob=function(a,b,c){for(var d=c;d<Math.min(c+10,a.length);d++)ba(b,a[d])||NYd(this,a[d],d!=a.length-1)};
var NYd=function(a,b,c){var d=a.getContext().od.La(b),f=a.getContext().Sa.Sf(b);f&&!ba(a.$b,b)?d&&(d=new bVd(a.getContext(),d,LYd.ia(),a.Ea()),a.$b.set(b,d),a.Ag?De(d,a.Ag):d.render(a.YY),b=d.Qb.jg(d),a.getHandler().Ja(b,"click",Lp(a.LTb,a,d)).Ja(d.ta(),"keydown",Lp(a.vjc,a,d)),c||(a.mL.scrollTop=a.mL.scrollHeight-a.mL.clientHeight)):!f&&ba(a.$b,b)&&(d=a.$b.get(b),a.YY.removeChild(d.ta()),d.qb(),a.$b.remove(b));cTd(a,"people"==a.Bc.Sa||!!a.$b.Fc());OYd(a)},OYd=function(a){var b=Math.min(zy(a.YY).height, 90);0==b?a.setSize(b):a.setSize(b+12);ne(a.mL,b)};
var GYd=function(a,b,c,d){t4.call(this,a,b,c,d)};t(GYd,t4);GYd.prototype.Oz=function(){GYd.ya.Oz.call(this);var a=this.La().Yh();if(a&&a.length){var b=this.Qb;X3.ia().load(a[0].getUrl(),Lp(b.mL,b,this))}};var HYd=function(a){s4.call(this,a);this.Qb=null;this.Sa="a-n-Vi-J"};t(HYd,s4);
HYd.prototype.Pa=function(a){var b=a.La(),c=b.rI(),d=a.Ea(),f="a-Hb-e-xd";"application/vnd.google-apps.contact"==this.Qb&&"application/vnd.google-apps.domain-contact"==c&&(f+=" a-vd-e-Moa-md-vd");var h=d.Pa("tr","a-Hb-e-cy");Pn(h,"a-Hb-e-ak",!xo(a,16)&&!xo(a,64));Pn(h,"a-vd-e-vsa",!this.Vb);Sc(h,!0);if(this.Vb){var k=d.Pa("td","a-Hb-e-P-xd "+f),m=new nD(void 0,d);m.Bm(32,!1);m.render(k);a.Xb(m);Sc(m.ta(),!1);d.uv(h,k);Qn(h,"a-Hb-e-cy-lE-P")}a=d.Pa("td","a-vd-e-wf-cb "+f,d.Pa("div",this.Sa+" a-vd-e-U1"));
k=b.getAttribute("email");b=b.getName()||k;b=d.Pa("td","a-Hb-e-kb-xd "+f,b+"\u00a0");f=d.Pa("td","a-vd-e-wf-Fc "+f,k);d.uv(h,a,b,f);this.Qb=c;return h};HYd.prototype.mL=function(a){var b=a.La(),c=a.Ea();if(a=Zc(c,"td","a-vd-e-wf-cb",a.ta())[0]){var d=Zc(c,"div","a-vd-e-U1",a)[0];d&&((b=b.Yh()[0])&&(b=b.getUrl()),b&&(c.removeNode(d),a.appendChild(c.Pa("img",{src:b,"class":"a-vd-e-m d-k-l"}))))}};
var T4=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Qb=new HYd(a.rd().$b)};t(T4,y4);T4.prototype.ED=function(a){return new GYd(this.getContext(),a,this.Qb,this.Ea())};T4.prototype.cD=ka;T4.prototype.bC=function(a){a=T4.ya.bC.call(this,a);return ec(a,function(a){return"contact"==a.Ra()})};
var V4=function(a,b){E3.call(this,a,new Vw({}),TYd.ia(),b);this.Bm(16,!1);this.Bm(8,!1);this.YY=this.Vk=null};t(V4,E3);V4.prototype.Ab=function(a){On(this.Vk,a);On(this.YY,!a);a?(we(this.Vk,!1),this.Vk.focus()):(yE(this.Vk.value)&&UYd(this),this.Vk.value="",Pn(this.ta(),"a-Fc-ma-n3",!1))};V4.prototype.Oa=function(a){13==a.keyCode&&yE(this.Vk.value)&&UYd(this);if((9==a.keyCode||27==a.keyCode)&&1<Ge(this.getParent())){a.preventDefault();var b=My.Bo()?37:39;try{this.hT(new foa(b,b,!1,null))}catch(c){}}a.stopPropagation()};
var UYd=function(a){var b=zYd(wg(xg(E.ia(),"oppe")).d$(a.getContext(),a.Ea()),a.Vk.value);a.dispatchEvent(new VYd(zg(b,function(a){return new Vw(a)},a)));a.Vk.value="";Pn(a.ta(),"a-Fc-ma-n3",!1)};V4.prototype.zt=function(a){V4.ya.zt.call(this,a);a&&this.Ab(!0)};
V4.prototype.Na=function(){V4.ya.Na.call(this);var a=this.ta(),b=new rw(this.Vk);x(this,b);qr(this.getHandler().Ja(a,"click",Lp(this.Ab,this,!0)).Ja(this.Vk,"blur",Lp(this.Ab,this,!1)).Ja(this.Vk,"keydown",this.Oa),this.Vk,"mousedown",function(a){a.stopPropagation()},!0,this).Ja(a,"mouseover",function(){Pn(this.YY,"a-Fc-ma-nc-u",!0)}).Ja(a,"mouseout",function(){Pn(this.YY,"a-Fc-ma-nc-u",!1)}).Ja(b,"input",function(){Pn(this.ta(),"a-Fc-ma-n3",yE(this.Vk.value))})};
var VYd=function(a){A.call(this,"fF");this.Sa=a};t(VYd,A);VYd.prototype.Ae=function(){return this.Sa};var TYd=function(){F3.call(this,"a-Fc-ma")};t(TYd,F3);la(TYd);TYd.prototype.Pa=function(a){var b=a.Ea(),c=b.Pa("input",{type:"text","class":"a-Fc-ma-N d-k-l b-hb"});On(c,!1);a.Vk=c;var d=b.Pa("span","a-Fc-ma-nc d-k-l",b.Pa("span","d-k-l a-n-ue-Bk-jf"),"Enter email address");a.YY=d;return b.Pa("div","a-Fc-ma-di d-k-l",b.Pa("div","a-Fc-ma-cj"),c,d)};
var pEg=function(a,b,c,d,f){y3.call(this,a,"a-Nx1zrc-Cc","a-Nx1zrc-Bb","a-Nx1zrc-B","top",f);this.Ag=new G3(a,b,d,this.Ea());TQd(this,this.Ag);this.Qb=c;this.Bc=b};t(pEg,y3);
pEg.prototype.Pa=function(){pEg.ya.Pa.call(this);this.setSize(80);var a=this.Ea();this.Ag.Pa();this.Ab.appendChild(this.Ag.ta());if(this.getContext().rd().$b){this.Oa=a.Pa("div","a-Nx1zrc-zv");var b=new nD(void 0,a),c=a.Pa("span","a-Nx1zrc-zv-ka","Select all");GN(b,c);b.render(this.Oa);this.Ag.cb().appendChild(this.Oa);this.mL=b;a.appendChild(this.Oa,c)}else this.setSize(40)};
pEg.prototype.Na=function(){pEg.ya.Na.call(this);var a=this.Qb.Rd();a&&a.addListener(Lp(this.Vk,this));qEg(this);this.mL&&this.getHandler().Ja(this.mL,"change",Lp(this.Km,this))};pEg.prototype.Vk=function(){qEg(this)};var qEg=function(a){var b=a.Qb.Rd();b&&a.Oa&&(b=1<b.tf(),On(a.Oa,b),a.setSize(b?80:40))};
pEg.prototype.Km=function(a){a.target!=this.mL&&this.mL.Ld(!this.mL.Ag());a=Lp(this.Ko,this);this.$b?a&&a():this.Qb.Rd().yW()?this.getContext().od.Vd(new $w({service:"groups",parent:this.Bc.getOption("parent")}),Lp(this.YY,this,a),Lp(this.Vb,this)):(this.$b=this.Qb.zq().Rc(),a&&a())};pEg.prototype.YY=function(a,b){var c=b.Ae();this.getContext().od.Xp(c);var d=[];v(c,function(a){d.push(a.getId())});this.$b=d;a&&a()};pEg.prototype.Vb=function(){alert("Fetching the contacts for this group was unsuccessful. Please verify that you have at least one contact in this group")};
pEg.prototype.Ko=function(){var a=!!this.mL.Ag(),b=this.getContext().Sa;v(this.$b,function(c){b.Fca(c,a,!1);this.Qb.iRa(c)},this);rEg(this);this.getParent().qh(this.getContext().Sa.OEb());this.dispatchEvent("An")};var rEg=function(a){var b;if(a.mL){if(!a.$b&&a.Qb.Rd().yW())b=!1;else{b=a.$b||a.Qb.zq().Rc();var c=a.getContext().Sa;b=Ye(b,function(a){return c.Sf(a)},a)}a.mL.Ld(b)}};
var sEg=function(a,b,c){y4.call(this,a,b,new L3,"vertical",c);this.Qb=new HYd(!1);this.Qb.Sa="a-WNq8W-tz"};t(sEg,y4);sEg.prototype.ED=function(a){a=new t4(this.getContext(),a,this.Qb,this.Ea());a.Bm(64,!0);a.Bm(16,!1);return a};var fZd=function(){this.Sa=[]};t(fZd,xp);la(fZd);fZd.prototype.Pa=function(a){a=a.Ea().Pa("input","a-vd-r-sc-N");this.F$(a,!0);return a};var gZd=function(){yp.call(this,"",void 0,void 0,fZd.ia())};t(gZd,yp);gZd.prototype.Um=ka;gZd.prototype.zo=ka;gZd.prototype.Hw=function(a){a.target.focus()};var B4e=function(a){return r(a.XOa)+" {background-color: #63abf5; background-image: -webkit-linear-gradient(top,#63abf5,#5d9bd4); background-image: -moz-linear-gradient(top,#63abf5,#5d9bd4); background-image: -ms-linear-gradient(top,#63abf5,#5d9bd4); background-image: -o-linear-gradient(top,#63abf5,#5d9bd4); background-image: linear-gradient(top,#63abf5,#5d9bd4); border: 1px solid #777; color: #fff;}"+r(a.$sd)+" {color: #fff;}"};
var W4=function(a,b,c,d){E3.call(this,a,b,c,d);this.Ab=!1;this.Oa=a.rd().Kra;this.Ec=null};t(W4,E3);W4.prototype.Ld=function(a){W4.ya.Ld.call(this,a);this.isDisposed()||"circle"==this.La().Ra()&&kYd(this.getContext(),this.La().Qe(),a)};W4.prototype.fn=function(a){return WYd(this)?!1:W4.ya.fn.call(this,a)};W4.prototype.Na=function(){W4.ya.Na.call(this);XYd(this,!0)};
var WYd=function(a){var b=a.Ec;if(!b||b.isDisposed())b=new gD(a.Ea()),b.setPosition(2),b.IA(!1),b.render(a.getContext().rd().fG()),iD(b,!0),Qn(b.ta(),"a-ma-b-i"),a.Ec=b;if(!b.dc()){var c=a.La().getAttribute("ci");if(c){var d=a.getContext().rd().fG(),f=0,h=[];v(c,function(a){Sn(d,"a-Wb-oacp"+a)&&(f++,a=this.getContext().od.La("people.0.p"+a),h.push(a.getName()))},a);c=(new Z('{CIRCLE_COUNT, plural, =0 {unused plural form}=1 {This person is in your "{CIRCLE1}" circle. To remove this person, first unselect "{CIRCLE1}".}=2 {This person is in your "{CIRCLE1}" and "{CIRCLE2}" circles. To remove this person, first unselect "{CIRCLE1}" and "{CIRCLE2}".}other {This person is in {CIRCLE_COUNT} circles. To remove this person, first unselect these circles.}}')).format({CIRCLE_COUNT:f,
CIRCLE1:h[0],CIRCLE2:h[1]});b.setContent(Hua(c));if(f)XYd(a,!1),b.Fg(a.ta()),b.setVisible(!0),a.Ab=!0;else return!1}else return!1}return!0};W4.prototype.zo=function(a){W4.ya.zo.call(this,a);Qn(this.ta(),"a-ma-e-VF-u")};W4.prototype.fp=function(a){W4.ya.fp.call(this,a);Rn(this.ta(),"a-ma-e-VF-u");this.Ab&&a.relatedTarget&&!Oc(this.ta(),a.relatedTarget)&&(a=this.Ec)&&(XYd(this,!0),a.isDisposed()||(a.setVisible(!1),a.Ma()),this.Ab=!1,this.Ec=null)};
var XYd=function(a,b){var c=a.La(),d=a.ta();c.getAttribute("ises")&&My.Ab&&(b?d.setAttribute("oid",c.Qe()):d.removeAttribute("oid"))};W4.prototype.Oz=function(){W4.ya.Oz.call(this);var a=this.La().Yh();if(a&&a.length){var b=this.Qb;X3.ia().load(a[0].ll(this.Oa?84:48,["c"]).getUrl(),Lp(b.mL,b,this))}};W4.prototype.update=function(){W4.ya.update.call(this);this.Qb.update(this)};var YYd=function(){F3.call(this,"a-ma-e")};t(YYd,F3);
YYd.prototype.Pa=function(a){var b=a.La(),c=a.Ea(),d=null;"person"==b.Ra()?b=ZYd(this,b,c,a.getContext().rd().Kra):(a=c.Pa("div","d-k-l",c.Pa("div","a-ma-e-Wb-m a-n-Wb-lb"),c.Pa("div","a-ma-e-Wb-m-L a-n-Wb-lb-Zc")),d=c.Pa("div","a-ma-e-kb d-k-l",b.getName()),b=c.Pa("div","a-ma-e-ib-ka d-k-l",aZd(b)),b=c.Pa("div","a-ma-e d-k-l",c.Pa("span","a-ma-e-Wb",a,c.Pa("div","d-k-l a-ma-e-nN",d,b))));d=b;d.appendChild(c.Pa("div","a-ma-e-VF-bd",c.Pa("span","d-k-l a-n-ab-z-wt-Zc")));we(d,!0);return d};
var ZYd=function(a,b,c,d){var f=b.getAttribute("email"),f=c.Pa("div",{"class":"a-ma-e-kb d-k-l",title:b.getAttribute("ises")?"":b.getName()||f},b.getName()||f),h=" ",k=b.getAttribute("ci");k&&v(k,function(a){h+="a-Wb-oap"+a+" "},a);var m,k=b.Yh();a=c.Pa("div","a-ma-e-zc d-k-l",c.Pa("div","a-ma-e-cj d-k-l "+(d?"a-n-Vi-J-B7":"a-n-Vi-J-z7")));k&&(k=b.Yh()[0],k.ll(d?84:48,["c"]).getUrl());$Yd(b)&&(m=c.Pa("div","a-ma-e-ib-ka d-k-l",aZd(b)));d=c.Pa("div","a-ma-e"+h+"d-k-l");m=c.Pa("div","d-k-l",a,c.Pa("div",
"d-k-l a-ma-e-nN",f,m));My.Ab||!b.getAttribute("ises")||xc&&!Gf("9")?d.appendChild(m):(c=c.Pa("g:hovercard","d-k-l",m),c.setAttribute("userid",b.Qe()),d.appendChild(c));b.getAttribute("isps")&&Qn(d,"a-ma-h3");return d},aZd=function(a){return"person"==a.Ra()?a.getAttribute("email")||"":(new Z("{memberCount, plural, =0 {0 members}=1 {1 member}other {{memberCount} members}}")).format({memberCount:a.Tm()})},$Yd=function(a){var b=a.getAttribute("email");return!(!a.getName()||!b||a.getName()==b||a.getAttribute("ises"))};
YYd.prototype.update=function(a){var b=a.La(),c=a.Ea(),d=c.fb("a-ma-e-kb",a.ta());a=c.fb("a-ma-e-ib-ka",a.ta());var f=aZd(b);c.uq(d,b.getName()||f);("person"!=b.Ra()||$Yd(b))&&c.uq(a,f)};YYd.prototype.mL=function(a){var b=a.La(),c=a.Ea(),d=c.fb("a-ma-e-zc",a.ta()),f=c.fb("a-ma-e-cj",d);f&&((b=b.Yh()[0])&&(b=b.ll(a.getContext().rd().Kra?84:48,["c"]).getUrl()),b&&(c.removeNode(f),d.appendChild(c.Pa("img",{src:b,"class":"a-ma-e-cb d-k-l"}))))};
var SYd=function(a,b){this.Sa=a;this.tb=b;this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(a.Sa,"si",this.Ab);ald(this)};t(SYd,kd);var ald=function(a){var b=a.Sa.Sa.Ua(!0),c=a.Sa.od;a.tb.QK(zg(b,function(a){return c.La(a)}))};SYd.prototype.Ab=function(a){var b=this.Sa.Sa,c=[],d=[];v(a.ur,function(a){b.Sf(a)?d.push(this.Sa.od.La(a)):c.push(a)},this);c.length&&this.tb.dL(c);d.length&&this.tb.QK(d)};
var X4=function(a,b,c){y4.call(this,a,b,void 0,"horizontal",c);bZd++;cZd||a.od.Vd(new Yw("c"),Lp(this.Hid,this),ka);if(lYd(b)){c=this.Rd();var d=new SYd(a,c);x(this,d);c.Vb(Lp(this.ftd,this))}b.getOption("noEmailInput")||(this.Qb=new V4(a,this.Ea()),x(this,this.Qb),this.getHandler().Ja(this.Qb,"fF",this.zzc));b.getOption("eap")&&(this.Oa=new o4e(a,this.Ea()),x(this,this.Oa),this.getHandler().Ja(this.Oa,"Ji",this.zcb))},cZd;t(X4,y4);var bZd=0;q=X4.prototype;
q.ED=function(a){return new W4(this.getContext(),a,new YYd,this.Ea())};q.Pa=function(){X4.ya.Pa.call(this);var a=this.Ea();a.Hy(this.Op=a.Pa("div","a-ma-Ra-Tc",a.Pa("span","a-ma-Ra-Tc-m",a.Pa("img",{src:"//ssl.gstatic.com/docs/picker/images/loading-ball-16.gif","class":"d-k-l"})),this.Db=a.Pa("span","a-ma-Ra-Tc-E")),this.getContainer().ta());On(this.Op,!1);Qn(this.ta(),"a-ma-Ra")};q.Gya=Fx;
q.meb=function(a){"frequent"!=this.Gf().Ra()&&(this.Ea().uq(this.Db,this.Rd().tf()?"Loading more people...":"Loading people..."),On(this.Op,a))};q.Na=function(){X4.ya.Na.call(this);this.getHandler().Ja(this.getContext().Mh,"ni",this.Jid).Ja(this.Ea().La(),"keydown",this.jIb)};q.jIb=function(a){this.xw()&&65==a.keyCode&&(!ca&&a.ctrlKey||ca&&a.metaKey)&&a.target&&"input"!=a.target.tagName.toLowerCase()&&(a.stopPropagation(),a.preventDefault(),lYd(this.getContext().Mh.FH)||this.dispatchEvent("Dd"))};
var s4e=function(a){var b=a.zq().Rc();5E3<b.length?kZd(a.getContext().Mh.Hd(),"We cannot select that many people or circles. Try selecting a smaller set of circles or people.","error"):(v(b,function(a){"circle"==this.getContext().od.La(a).Ra()&&kYd(this.getContext(),a,!0)},a),a.getContext().Sa.WT(b,!0))};q=X4.prototype;q.F3a=function(){this.getContext().Sa.lJ(!0)};q.cD=ka;
q.Hid=function(a){if(!cZd){var b="",c="";v(a.Ae(),function(a){var f=".a-Wb-oac"+a.Qe();a=".a-Wb-oa"+a.Qe();b+=""!=b?", ":"";b+=f+" "+a;c+=""!=c?", ":"";c+=f+" "+a+" .a-ma-e-ib-ka"},this);""!=b&&(a={},a.XOa=b,a.$sd=c,a=this.getContext().ef().render(B4e,a),cZd=b,Y8a(b+a,this.Ea()))}};
q.qb=function(){X4.ya.qb.call(this);bZd--;if(!(0<bZd)&&cZd){for(var a=hYd(),b=!1,c=0;c<a.length&&!b;c++){var d=fYd(a[c]);if(d)for(var f=0;f<d.length;f++)if(d[f].selectorText==cZd){b=a[c];b.deleteRule?b.deleteRule(f):b.removeRule(f);b=!0;break}}cZd=void 0}};q.ftd=function(a,b){return"circle"==a.Ra()&&"circle"!=b.Ra()?-1:"circle"!=a.Ra()&&"circle"==b.Ra()?1:Ba(a.getName(),b.getName())};
q.Jid=function(){this.xw()&&Pn(this.ta(),"a-ma-L-Ra",lYd(this.getContext().Mh.FH));if("frequent"==this.Gf().Ra()){var a=this.getContext().Mh.FH;On(this.ta(),a&&mYd(a))}};q.zcb=function(a){z4e(this,[a.La()],1)};q.zzc=function(a){var b=this.getContainer(),b=this.Gf().getOption("noEmailInput")?Ge(b):b.Af(this.Qb),b=mYd(this.Gf())?b+1:b;z4e(this,a.Ae(),b)};
var z4e=function(a,b,c){for(var d=a.getContext(),f=0;f<b.length;f++){var h=b[f];a.Rd().vC(h.getId())?d.Sa.Fca(h.getId(),!0,!0):(a.Rd().QK([h]),d.od.Xp([h]),a.Hr([h]),d.Sa.Fca(h.getId(),!0,!0),Uf(function(){var a=this.getContainer(),b=a.Oh(Ge(a)-1);a.removeChild(b,!0);a.Zj(b,c,!0)},0,a))}};X4.prototype.lp=function(a){var b=this.Ea(),c=this.Sx;c?b.hb(c):(c=b.Pa("div","a-Lc-nc"),b.appendChild(this.ta(),c));qa(a)?b.appendChild(c,cd(b,a)):b.appendChild(c,a);this.Sx=c};
X4.prototype.Ik=function(a){this.Km=!1;this.Vb=void 0;X4.ya.Ik.call(this,a);this.Qb&&(a=this.Gf(),a=mYd(a)?1:a.getQuery()?sa(this.Vb)?this.Vb:Ge(this.getContainer()):void 0,sa(a)&&this.getContainer().Zj(this.Qb,a,!0));this.Oa&&this.getContainer().Zj(this.Oa,0,!0)};
X4.prototype.Zba=function(a){var b=this.Gf(),c=Ge(this.getContainer()),d="people"==b.Sa,f;0==c&&d&&(mYd(b)?f="Everyone":"frequent"==b.Ra()&&(f="Frequently contacted"));var h=!!a.La().getAttribute("isps");h&&!this.Km&&!lYd(b)&&d&&(f="Other people on Google+",this.Vb=c);this.Km=h;f&&this.getContainer().ib(new dZd(f,this.Ea()),!0);X4.ya.Zba.call(this,a)};var dZd=function(a,b){Fo.call(this,eZd.ia(),b);this.label=a};t(dZd,Fo);var eZd=function(){};t(eZd,Eo);la(eZd); eZd.prototype.Pa=function(a){var b=a.Ea();return b.Pa("div","a-ma-Ra-dd",b.Pa("hr","a-ma-Ra-dd-kD"),b.Pa("span","d-k-l a-ma-Ra-dd-ka",a.label))};
var PYd=function(a,b,c,d){y3.call(this,a,"a-Va-Cc"+(a.rd().Kra?" a-Va-rc":""),"a-Va-Bb","a-Va-B","top",d);this.Qb=new x4(a,b,d);this.ib(this.Qb);this.Bc=b;this.Ag=c;z3(this,c);this.Vb=!b.getOption("noEmailInput");this.Oa=this.mL=this.$b=null};t(PYd,y3);
PYd.prototype.Pa=function(){PYd.ya.Pa.call(this);this.setSize(54);var a=this.Ea();this.Qb.YY=!1;this.Qb.Pa();var b=a.Pa("div","a-Va-Z",this.Qb.ta(),this.YY=a.Pa("div","d-k-l a-Va-jm",a.Pa("span","d-k-l a-m-Pv-jf",a.Pa("img",{src:"//ssl.gstatic.com/docs/picker/images/search-black.png"})),a.Pa("span","d-k-l a-Va-jm-E",this.Vb?"Search by name or email address":"Search by name")));we(this.YY,!0);this.Bc.getOption("parent")&&"gmail"!=this.Bc.Ra()&&(this.$b=new Ot("Select this circle",a),this.ib(this.$b),
this.$b.Pa(),a.Ep(this.$b.ta(),this.Qb.ta()),U4(this),Qn(this.$b.ta(),"a-Va-I7"));lYd(this.Bc)&&(this.Oa=new Ot("Unselect all",a),this.ib(this.Oa),this.Oa.Pa(),a.Ep(this.Oa.ta(),this.Qb.ta()),Qn(this.Oa.ta(),"a-Va-baa"),this.Oa.zf(2),U4(this));if(this.Vb){var c=new Ot("Select all",a);this.ib(c);c.Pa();a.Ep(c.ta(),this.Qb.ta());Qn(c.ta(),"a-Va-zv");On(c.ta(),!1);this.mL=c}this.Ab.appendChild(b)};
var U4=function(a,b){if(!a.isDisposed()){var c;a.$b?c=oe(a.$b.ta()):a.mL&&ve(a.mL.ta())?c=oe(a.mL.ta()):a.Oa&&(c=oe(a.Oa.ta()));QYd(a,c,b)}},QYd=function(a,b,c){!b||b.width||c?(b=b?b.width+18:0,c=My.Bo()?"right":"left",Pd(a.Qb.ta(),c,b+"px"),Pd(a.YY,c,b+30+"px")):Uf(Lp(function(){U4(this,!0)},a),10,a)};q=PYd.prototype;
q.Na=function(){PYd.ya.Na.call(this);this.getHandler().Ja(this.Qb,"Fk",Lp(this.FDb,this,!0)).Ja(this.Qb,"Gk",Lp(this.FDb,this,!1)).Ja(this.Qb,"Pk",this.XIc).Ja(this.YY,"click",Lp(function(){this.Qb.focus()},this)).Ja(this.getContext().Sa,"si",this.VTb).Ja(this.getContext().Ab,"reset",function(){this.$b&&this.Yo(!1);this.mL&&rng(this,!1)}).Ja(this.Ag,"dataAppended",this.Ixc).Ja(this.Ag,"Dd",this.TQc);this.mL&&this.getHandler().Ja(this.mL,"action",this.gJc);this.$b&&(this.getHandler().Ja(this.$b,"action",
this.Vtc),this.VTb());this.Oa&&this.getHandler().Ja(this.Oa,"action",Lp(this.Ag.F3a,this.Ag))};q.Ixc=function(){if(this.Vb){var a=yYd(wg(xg(E.ia(),"oppe")).d$(this.getContext(),this.Ea()),this.getContext().Mh.FH.or()),b=this.getContext().Sa,c=!!this.Ag.zq().Fc();a&&v(this.Ag.zq().Rc(),function(a){b.Sf(a)||(c=!1)},this);On(this.mL.ta(),a);rng(this,c);U4(this)}};q.gJc=function(){var a=2!=this.mL.getStyle();a?s4e(this.Ag):this.Ag.F3a();this.getContext().Sa.WT(this.Ag.zq().Rc(),a);rng(this,a)};
q.VTb=function(){var a=this.getContext().Sa;this.$b&&this.Yo(a.Sf(jYd(this.Bc.getOption("parent"))));if(this.mL&&ve(this.mL.ta())){var b=Ye(this.Ag.zq().Rc(),function(b){return a.Sf(b)});rng(this,b)}var b=this.Bc.getOption("parent"),c=a.Sf(jYd(b));kYd(this.getContext(),b,c)};q.XIc=function(a){this.$b&&this.$b.Ta(!a.Ns());On(this.YY,this.Qb.isEmpty())};q.FDb=function(a){On(this.YY,this.Qb.isEmpty());Pn(this.YY,"a-eb-N",a)};q.TQc=function(){this.$b?this.Vtc():this.mL&&this.gJc()};
q.Vtc=function(){var a=this.Bc.getOption("parent"),a=jYd(a),b=this.getContext().Sa,c=!b.Sf(a);b.Fca(a,c,!0);this.Yo(c)};q.setActive=function(a,b){PYd.ya.setActive.call(this,a,b);this.Qb.setActive(a,b);a&&U4(this)};q.Yo=function(a){this.$b.setContent(a?"Deselect this circle":"Select this circle");this.$b.zf(a?2:0);U4(this)};var rng=function(a,b){a.mL.setContent(b?"Unselect all":"Select all");a.mL.zf(b?2:0);U4(a)};
var hZd=function(a,b){Bp.call(this,b);this.Sa=a;Io(this,!0);this.$b=new kR;x(this,this.$b);this.Ab=this.Qb=null};t(hZd,Bp);q=hZd.prototype;q.setVisible=function(a,b){var c=hZd.ya.setVisible.call(this,a,b);a&&this.Qb.ta().focus();return c};
q.Na=function(){hZd.ya.Na.call(this);this.ib(this.Qb=new gZd,!0);var a=this.Qb.ta();toa(this,a);this.getHandler().Ja(a,["keydown","keyup"],this.sIb).Ja(a,"keypress",this.ijd);this.Ab=new fbg(this.Ea());this.ib(this.Ab,!0);this.getHandler().Ja(this.Ab,"action",this.aUb);this.Ab.Ta(!1);we(a,!1);we(this.ta(),!1);Qn(this.ta(),"a-Gja-Loa-tz-r");this.$b.yb(a)};q.sIb=function(a){8==a.keyCode?this.Ab.Ta(!!a.target.value):27==a.keyCode?(this.setVisible(!1),a.stopPropagation()):this.Ab.Ta(!0)};
q.ijd=function(a){13==a.keyCode&&(this.setVisible(!1),this.aUb())};q.aUb=function(){if(this.Ab.isEnabled()){for(var a=this.Sa.Sa.Ua(!0),b=[],c=[],d=this.Sa.od,f=0;f<a.length;f++){var h=d.La(a[f]);if("contact"==h.Ra()){var k=h.getAttribute("cid");if(k)b.push(k);else if(k=h.getAttribute("email"))h=h.getName()?h.getName():k,c.push({name:h,email:k})}}a={};a.groupName=this.Qb.ta().value;c.length&&(a.data=Rf(c));this.Sa.od.Vd(new K3("createGroup","contacts",b,a),Lp(this.jjd,this),Lp(this.NIc,this))}};
q.jjd=function(){this.Qb.ta().value="";this.Ab.Ta(!1);this.dispatchEvent(new A("dF"));this.Sa.od.Vd(new $w({service:"contacts",type:"groups"}),ka,ka,!0)};
q.NIc=function(a){this.Qb.ta().value="";this.Ab.Ta(!1);if(a)switch(a.Ug()){case 2:a=new A("eF",{message:"No contacts selected. Please select a contact to save to group."});break;case 3:a=new A("eF",{message:"Group name already exists. Please choose a different name."});break;default:a=new A("eF",{message:"Unable to save group."})}else a=new A("eF",{message:"There was a network error while saving your groupPlease check your Internet connection and try again"});this.dispatchEvent(a)};
var Y4=function(a,b,c,d){k3.call(this,a,b,c,d);var f=b.clone();BN(f,"type","frequent");(this.$b=mYd(b)&&!b.getOption("hfpl")?new X4(a,f,d):null)&&this.ib(this.$b);this.Ag=this.mL=this.Ab=this.Qb=null;f=b.getOption("parent");if(c instanceof T4)if(this.Ab=new MYd(a,b,d),z3(this.Ab,c),f&&"groups"==b.Sa){if(f=a.od.La(f))this.Ag=new pEg(a,b,c,f,d),z3(this.cj,this.Ag),z3(this.Ag,this.Ab),this.getHandler().Ja(this.Ag,"An",Lp(this.wab,this))}else this.mL=new IYd(a,b,c,0,d),z3(this.cj,this.mL),z3(this.mL,
this.Ab),this.getHandler().Ja(this.mL,"Ki",Lp(this.wab,this));else"groups"==b.Sa?z3(this.cj,c):(this.Qb=new PYd(a,b,c,d),z3(this.cj,this.Qb));this.Lh=this.Oa=null};t(Y4,k3);q=Y4.prototype;q.setActive=function(a,b){Y4.ya.setActive.call(this,a,b);a&&this.wab();this.Qb&&this.Qb.setActive(a,b);this.$b&&this.$b.setActive(a,b)};q.pX=function(a){if(this.xw()&&(this.wab(),this.mL)){var b=this.mL;1<this.list.zq().Rc().length&&b.getContext().rd().$b?b.setSize(100):b.setSize(58)}Y4.ya.pX.call(this,a)};
q.wab=function(){var a=this.list,b=a.zq().Rc(),c=this.getContext().Sa,d=0;v(b,function(b){var f=c.Sf(b);a instanceof T4?((b=x5(a,b))?(b.Ld(f),b=!0):b=!1,b&&f&&d++):f&&d++},this);if(this.mL){var f=this.mL;0<d&&d==b.length?KYd(f,Lp(f.OVa,f)):f.OVa()}this.Ab&&(this.Ab.refresh(),d||(d=this.Ab.msb),this.Oa&&this.Oa.Ta(!!d));this.cj.qh(!!d)};
q.Pa=function(){Y4.ya.Pa.call(this);var a=this.Xd;"contacts"!=a.Sa||a.getOption("scgh")||(a=new hZd(this.getContext(),this.Ea()),this.getHandler().Ja(a,"dF",this.did),this.getHandler().Ja(a,"eF",this.bid),this.Oa=new Fp("Save as group...",a,Hp.ia()),this.Oa.U4=!0,N3e(this.cj,this.Oa),Qn(this.Oa.ta(),"a-vd-r-c"));a=this.Ea();this.$b&&(this.$b.Pa(),a.Ep(this.$b.ta(),this.list.ta()));this.Lh=new kX("",a);x(this,this.Lh)};
q.Na=function(){Y4.ya.Na.call(this);this.Lh.render(this.ta());Qn(this.Lh.ta(),"a-vd-Cq");this.Lh.setVisible(!1);var a=this.getContext();this.getHandler().Ja(a.Qb,"select-contacts",this.kJc).Ja(this.Lh.ta(),"click",this.$hd);this.Qb&&WUd(this.list,this.Qb.Qb)};q.$hd=function(a){Sn(a.target,"a-Yd")&&(this.Lh.setVisible(!1),this.Oa.ta().focus())};q.did=function(){kZd(this,"Group saved.","info")};q.bid=function(a){kZd(this,a.target.message,"error")};
q.kJc=function(a){(a=a.data.contacts)&&a.length&&this.xw()&&this.getContext().od.Vd(new $w({service:"contacts",type:"hash",options:{data:Rf(a)}}),Lp(this.iJc,this,a),Lp(this.jJc,this),!0)};q.iJc=function(a,b){var c=b.Ae();this.getContext().Sa.WT(zg(c,function(a){return a.getId()}),!0)};q.jJc=function(){alert("Sorry!  We could not find the contacts you previously selected.")};q.r2a=function(a){Y4.ya.r2a.call(this,a);if(this.Ab){var b=this.Ab;b.mL&&qo(b.mL,"hidden",!a.data.visible)}};
var kZd=function(a,b,c){a.Lh.hd(c);var d=a.Ea();c=d.Pa("a",{href:"javascript:void","class":"a-Yd a-s"},"Dismiss");var f=Ce(Be.ia());b=d.Pa("span",{id:f},b,c);qo(c,"describedby",f);d.NYa(c,!0);a.Lh.setContent(b);d=a.Lh.ta();ey(d,b.textContent);po(d,"status");qo(d,"live","assertive");qo(d,"atomic",!0);a.Lh.setVisible(!0);try{c.focus()}catch(h){}};Y4.prototype.kt=function(){return this.Qb?(this.Qb.Qb.focus(),!0):Y4.ya.kt.call(this)};
var lZd=function(){kd.call(this);this.Sa=new Ze};t(lZd,x3);q=lZd.prototype;q.initialize=function(){this.CJb()};q.CJb=function(){My?My.Ab||uUd("card",function(){var a=ja("gapi.config.update");a&&(a("card/source","onepick.peoplepicker"),a("card/hoverDelay",1200));(a=ja("gapi.card.watch"))&&a()}):Uf(this.CJb,100,this)};
q.uj=function(a,b,c){switch(a.Sa){case "circle":return new y4e(b,a,new X4(b,a,c),c);case "people":return new Y4(b,a,new X4(b,a,c),c);case "contacts":return new Y4(b,a,new T4(b,a,c),c);case "groups":var d=a.getOption("parent")?new T4(b,a,c):new sEg(b,a,c);return new Y4(b,a,d,c)}return null};q.d$=function(a){var b=this.Sa.get(va(a));if(!b||b.isDisposed())b=new pYd(a),a.od.Qb(b),this.Sa.set(va(a),b);return b};q.K9=function(a,b,c){switch(a){case "circle":return new j4e(b,c)}return null}; vg(xg(E.ia(),"oppe"),lZd);

G("oppe");I();
}catch(e){_DumpException(e)}
try{
var M4e=function(a,b,c,d){a.Vd(new u3("party",[b],{type:"event"}),function(b){var d=b.Ae()[0];a.Xp(b.Ae()||[]);c(d)},d||ka)};H("opt");var rZd=function(a,b){m4.call(this,a,b)};t(rZd,m4);
rZd.prototype.hp=function(a,b){var c=this.mL.FH;if("photo-tagging"==c.Sa)this.Ab?b(zg(this.Ab,function(a){return this.Sa.La(a.getId())||a},this)):b(a);else if(Cd(a,function(a){a=a.Ii&&a.Ii.getState();return"default"==a||"running"==a||"scheduled"==a}))b(a);else{var d=q2e(this,a);if(d&&d.getAttribute("fdc")&&0==d.getAttribute("numFaces"))b(a);else{var f=new w3("photo-tagging");f.Ab=c;d?(this.Ab=a,BN(f,"parent",d.Qe())):BN(f,"ids",zg(a,function(a){return a.Qe()}).join(","));this.mL.On(f);this.mL.dya(!1)}}}; var q2e=function(a,b){for(var c=0;c<b.length;c++)if("album"==b[c].Ra())return b[c];for(c=0;c<b.length;c++){var d=b[c].vt();if(d)return a.Sa.La(d)||void 0}};rZd.prototype.reset=function(){this.Ab=void 0};
var N4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{This album will be shared with the people you tag.}male{This album will be shared with the people you tag.}other{This album will be shared with the people you tag.}}"),{VIEWER_GENDER:c.Aa});return P(a+c)},O4e=function(){return P("Skip")},P4e=function(){var a=Y,b='<div class="a-ta-Qd"><div class="a-ta-Qd-B"><div class="a-ta-Tc-Hd"></div><div class="a-ta-Qd-O">'+Y("Hang on one second...")+'</div><div class="a-ta-Qd-E">',c;c=Y("We're looking for people in the photos you uploaded.");
return a(b+c+"</div></div></div>")},R4e=function(){var a=Y,b='<div class="a-ta-Qd"><div class="a-ta-Qd-B"><div class="a-ta-Qd-O">'+r(P("Done"))+'</div><div class="a-ta-Qd-E">';return a(b+r(P('Everyone in this album is tagged. Did someone get overlooked? Open the photo and click "Tag people."'))+"</div></div></div>")},S4e=function(a,b,c){b=Y;var d=a.Q1?'<a href="'+R(S(a.mCa))+'" target="_blank">'+r(a.albumName)+"</a> ":r(a.albumName)+" ",f="";a=wA(new Z("{VIEWER_GENDER,select,female{{NUM_PHOTOS_1,plural,=1{ (1 photo) will be shared with the people you tagged.}other{ ({NUM_PHOTOS_2} photos) will be shared with the people you tagged.}}}male{{NUM_PHOTOS_1,plural,=1{ (1 photo) will be shared with the people you tagged.}other{ ({NUM_PHOTOS_2} photos) will be shared with the people you tagged.}}}other{{NUM_PHOTOS_1,plural,=1{ (1 photo) will be shared with the people you tagged.}other{ ({NUM_PHOTOS_2} photos) will be shared with the people you tagged.}}}}"),
{VIEWER_GENDER:c.Aa,NUM_PHOTOS_1:a.Zm,NUM_PHOTOS_2:""+a.Zm});return b(d+r(P(f+a)))},T4e=function(a,b,c){b="";a=wA(new Z("{VIEWER_GENDER,select,female{This event ({EVENT_NAME}) will be shared with the people you tagged.}male{This event ({EVENT_NAME}) will be shared with the people you tagged.}other{This event ({EVENT_NAME}) will be shared with the people you tagged.}}"),{VIEWER_GENDER:c.Aa,EVENT_NAME:""+a.vv});return P(b+a)},U4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Tag & share}male{Tag & share}other{Tag & share}}"), {VIEWER_GENDER:c.Aa});return P(a+c)},W4e=function(a,b,c){a="";c=wA(new Z("{VIEWER_GENDER,select,female{Tag & share}male{Tag & share}other{Tag & share}}"),{VIEWER_GENDER:c.Aa});return P(a+c)};
var X4e=function(a,b,c,d){A.call(this,a);this.Vk=b;this.Sa=c||[];this.Ab=d||null};t(X4e,A);X4e.prototype.Ws=function(){return this.Vk};var Y4e=function(a,b,c,d){this.Ab=a||null;this.$b=b||null;this.Sa=c||null;this.mL=d||null;this.Fs=Ce(Be.ia());this.Qb=new Yv};q=Y4e.prototype;q.update=function(a,b,c,d){this.Ab=a;this.$b=b;this.Sa=c;this.mL=d};q.getId=function(){return this.Fs};q.yc=function(){return this.$b};q.Ob=function(){return this.Sa};q.k_=function(a){return this.Qb.remove(a.getId())};var n3=function(a){return a.Qb.Rc()};Y4e.prototype.getShape=function(a){return this.Qb.get(a)}; Y4e.prototype.equals=function(a){return a instanceof Y4e?!!this.Ab&&this.Ab==a.Ab||!!this.$b&&this.$b==a.yc():!!this.Ab&&a==this.Ab};
var Z4e=function(){Ld.call(this);this.Ab=new Yv;this.Sa=new Ze};t(Z4e,Ld);var $4e=function(a,b,c){a.Ab.set(b.getId(),b);v(n3(b),function(a){this.Sa.set(a.getId(),b)},a);a.dispatchEvent(new X4e("gF",b.getId(),zg(n3(b),function(a){return a.getId()}),c))},a5e=function(a,b){b&&JG(a.Ab,b.getId())&&(a.Ab.remove(b.getId()),a.dispatchEvent(new X4e("hF",b.getId())))};Z4e.prototype.k_=function(a){var b=new Y4e;$4e(this,b,this.Sa.get(a).getId());b5e(this,b.getId(),[a])};
var b5e=function(a,b,c){var d=a.Ah(b);c=ec(c,function(a){return this.Sa.get(a).getId()!=b},a);c.length&&v(c,function(a){var b=this.Sa.get(a).getShape(a),c=this.Sa.get(a),m=c.getShape(a);c.k_(m);this.Sa.remove(a);this.dispatchEvent(new X4e("kF",c.getId(),[a]));0==n3(c).length&&a5e(this,c);d.Qb.set(b.getId(),b);this.Sa.set(b.getId(),d)},a);a.dispatchEvent(new X4e("jF",b,c))},c5e=function(a,b,c,d,f,h){var k=b.getId(),m=b.Ob();b.update(c,d,f,h);a.Ab.some(function(a){return a!=b&&a.equals(b)?(b5e(this,
a.getId(),b.Qb.ii()),k=a.getId(),!0):!1},a);m!=f&&a.dispatchEvent(new X4e("iF",k))};Z4e.prototype.eSa=function(){return this.Ab.Rc()};Z4e.prototype.Ah=function(a){return this.Ab.get(a)};var e5e=function(a){return ec(a.eSa(),function(a){return a&&(!Ea(Ga(a.Ob()))||!Ea(Ga(a.yc()))||!Ea(Ga(a.Ab)))})};
var g5e=function(a){a=""+('<div personid="'+R(a.UMa)+'" class="a-ta-Jh a-ta-Ge-zca" tabindex="-1"><input class="a-ta-Jh-kb" placeholder="'+R(f5e())+'"><div class="a-ta-Jh-za"><div class="a-ta-Jh-za-YLEF4c"></div><div class="a-ta-Jh-za-E"></div>');var b;b=Oz("Untag person");a+='<div class="a-n-Zd-Ce a-ta-Jh-BFDoi" title='+tn(b)+'></div></div><div class="a-ta-usa" /></div>';return Y(a)},f5e=function(){return P("Who is this?")},nug=function(a){return Y('<div oid = "'+R(a.Uo)+'"><img src="'+R(S(a.Da))+ '" class="a-ta-Jh-za-W"></div>')};
var n5e=function(a){var b,c;c=Oz("Face");b="";a='<div class="a-ta-Pc" shapeid="'+R(a.K6)+'"><img class="a-ta-Pc-qe" src="'+R(S(a.url))+'" alt="'+R(c)+'" title="'+R(c)+'"><div class="a-n-J-hD a-ta-Pc-Ah" title="';b=b+(a+R(P("Remove from this group"))+'"></div></div>');return Y(b)};
var o3=function(a,b,c){C3.call(this,a,b,vo.ia(),c);this.Bm(8,!0)};t(o3,C3);o3.prototype.Pa=function(){o3.ya.Pa.call(this);var a={K6:this.getId(),url:this.La().Yh()[0].Qs(76,["c"])};this.Kb(U(this.getContext().ef(),n5e,a))};o3.prototype.Na=function(){o3.ya.Na.call(this);this.getHandler().removeAll();this.Ea().NYa(this.ta(),!1);(new bF(this.ta(),300)).play()};o3.prototype.getId=function(){return this.La().getId()}; o3.prototype.Ulb=function(){var a=new aF(this.ta(),300);this.getHandler().yj(a,"end",this.Ma);a.play()};
var i3d=function(a,b){return UJ(b.ka()).getImageUrl(a,new kB(30,30),"picasa")};var r3=function(a,b,c,d,f){s3.call(this,a,f);this.Ab=b;this.mL=d;this.$b=new D4e(JC(this.getContext().ef(),f5e));this.Oa=c};t(r3,s3);
r3.prototype.Pa=function(){var a={UMa:this.Ab.getId()};this.Kb(U(this.getContext().ef(),g5e,a));if(a=this.fb("a-ta-Jh-kb")){this.$b.yb(a);if(this.Ab.Ob()){On(a,!1);var b=this.uc("a-ta-Jh-za-E");"innerText"in b?b.innerText=this.Ab.Ob():"textContent"in b&&(b.textContent=this.Ab.Ob());this.Ab.mL&&Vv(this.getContext().ef(),this.fb("a-ta-Jh-za-YLEF4c"),nug,{Uo:this.Ab.Ab,Da:i3d(this.Ab.mL,this.getContext())})}else On(this.fb("a-ta-Jh-za"),!1);this.Ea().NYa(a,!0)}this.Ag=this.uc("a-ta-usa");v(n3(this.Ab),
function(a){a=new o3(this.getContext(),a,this.Ea());this.ib(a,!1);a.render(this.Ag)},this)};r3.prototype.Na=function(){r3.ya.Na.call(this);Rn(this.ta(),"a-ta-Ge-zca")};r3.prototype.getId=function(){return this.Ab.getId()};var o5e=function(a){return Sn(a.target,"a-ta-Jh-kb")},p5e=function(a){a.$b.hasFocus()||(a.$b.getValue()!=a.Ab.Ob()&&a.Qb(),G4e(a.$b),a.Oa.Vb(a.$b.ta()),a.getHandler().nb(a.Oa,["canceldismiss","dismiss","update"],a.Qb))};
r3.prototype.Qb=function(a){a&&a.row&&a.row.Oc()?(a=a.row.Oc(),E4e(this.$b,a.Ob()),c5e(this.mL,this.Ab,a.Xa(),a.yc(),a.Ob(),a.Cd())):a&&a.row&&a.row.getQuery()&&yE(a.row.getQuery())?c5e(this.mL,this.Ab,null,a.row.getQuery(),null,null):(a=this.$b.getValue(),yE(a)?c5e(this.mL,this.Ab,null,a,null,null):c5e(this.mL,this.Ab,this.Ab.Ab,null,this.$b.getValue(),this.Ab.mL))};
var q5e=function(a,b){v(b,function(a){a=new o3(this.getContext(),this.Ab.getShape(a),this.Ea());this.ib(a);a.render(this.Ag)},a);a.Zc()},r5e=function(a,b){v(b,function(a){var b=this.Ge(a);b&&(b.Ulb(),this.removeChild(a))},a);a.Zc()};r3.prototype.Zc=function(){On(this.ta(),0<n3(this.Ab).length)};r3.prototype.Ulb=function(){var a=new aF(this.ta(),300);this.getHandler().yj(a,"end",this.Ma);a.play()};
var s5e=function(){return Y('<div class="a-ta-Z"></div>')};var t5e=function(a){var b=Y;if(1==a.cna.length)a=Y('<img src="'+R(S(a.cna[0]))+'">');else if(2==a.cna.length){var c=a.cna[0];a=Y('<img class="a-ta-zc-Pc-j0" src="'+R(S(a.cna[1]))+'"><div class="a-ta-zc-Pc-Wg a-ta-zc-Pc-Wg-paa a-ta-zc-Pc-Wg-Soa"></div><img class="a-ta-zc-Pc-l0" src="'+R(S(c))+'">')}else{var c=a.cna[0],d=a.cna[1];a=Y('<img class="a-ta-zc-Pc-Asa" src="'+R(S(a.cna[2]))+'"><div class="a-ta-zc-Pc-Wg a-ta-zc-Pc-Wg-Bsa a-ta-zc-Pc-Wg-Aca"></div><img class="a-ta-zc-Pc-j0" src="'+R(S(d))+'"><div class="a-ta-zc-Pc-Wg a-ta-zc-Pc-Wg-paa a-ta-zc-Pc-Wg-Aca"></div><img class="a-ta-zc-Pc-l0" src="'+ R(S(c))+'">')}return b(a)};
var w5e=function(a,b){A.call(this,v5e);this.Sa=a;this.element=b};t(w5e,A);var v5e="lF";var I3=function(a,b,c,d){s3.call(this,a,d);this.Ab=b;this.Oa=aYd(this.getContext(),null);this.Zd=new Ze;this.mL=null;this.$b=new lW(this.Ea());this.ib(this.$b);this.Vk=new df;this.Ag=new Ze;this.Vb=this.Qb=null;this.Ko=c};t(I3,s3);I3.prototype.Pa=function(){this.Kb(U(this.getContext().ef(),s5e));this.$b.Td=this;var a=this.ta();this.$b.Sa=a;this.$b.render(this.ta())};var x5e=function(a,b){b?a.Vb.start():a.Vb.stop()};
I3.prototype.Db=function(a){var b=this.getContext().Sa;b.OEb()||y5e(this);var c=z5e(this,a.target),d=A5e(c);d&&!Sn(a.target,"a-ta-Pc-Ah")&&(b.Sf(d)?this.getHandler().yj(this.ta(),"mouseup",function(){this.Ko.Bf.y$||B5e(this,c.Sa,!1)}):B5e(this,c.Sa,!0),C5e(this,a))};var C5e=function(a,b){var c=30-Math.min(8,4*(a.Zd.Fc()-1)),d=U(a.getContext().ef(),t5e,{cna:zg(a.Zd.Rc(),function(a){return a.La().Yh()[0].Qs(c,["c"])})});a.dispatchEvent(new w5e(b,d,a.Zd.Rc()))};
I3.prototype.draw=function(){var a=this.ta();null!==a&&(this.Vb=new I4e(a,this.Ea()));ab(this.Ab.eSa(),function(a){this.ib(new r3(this.getContext(),a,this.Oa,this.Ab,this.Ea()),!0)},this);Jd(this.getHandler().Ja(this.ta(),["mouseover","mouseout"],this.kfb).Ja(this.ta(),"mousedown",this.Db),this.ta(),vw,this.Op).Ja(this.ta(),"focus",this.lp,!0).Ja(this.Ab,"gF",this.mjb).Ja(this.Ab,"hF",this.vjb).Ja(this.Ab,"iF",this.cGc).Ja(this.Ab,"jF",this.Qkb).Ja(this.Ab,"kF",this.Rkb).Ja(this.ta(),"scroll",Lp(function(){this.Oa.O8()},
this))};I3.prototype.FL=function(a){this.YY&&this.YY.Ma();this.YY=new Kdb(this.ta(),[0,this.ta().scrollTop],[0,this.Ge(a).ta().offsetTop],200,eo);x(this,this.YY);this.YY.play(!1);D5e(this,this.Ge(a))};var E5e=function(a,b){var c=a.Ge(b);c!=a.mL&&(a.mL&&p5e(a.mL),F4e(c.$b),c.$b.rq(),c.Oa.N_(c.$b.ta()),c.getHandler().Ja(c.Oa,["canceldismiss","dismiss","update"],c.Qb),a.mL=c)};I3.prototype.lp=function(a){var b=z5e(this,a.target),c=b.Ws();c&&o5e(a)&&(D5e(this,b.Ab),E5e(this,c))};
I3.prototype.Op=function(a){var b=z5e(this,a.target),c=b.Ws(),b=A5e(b),d=a.target;if(c){if(Sn(d,"a-ta-Jh-BFDoi"))c5e(this.Ab,this.Ab.Ah(c),null,null,null,null);else if(b){if(Sn(d,"a-ta-Pc-Ah")){this.Ab.k_(b);return}}else o5e(a)||y5e(this);o5e(a)?"keypress"==a.type&&13==a.keyCode||E5e(this,c):this.mL&&(p5e(this.mL),this.mL=null)}};
var y5e=function(a){v(a.Zd.Rc(),function(a){a.qj(!1)});a.Zd.clear();a.getContext().Sa.lJ()},z5e=function(a,b){for(var c=null,d=null,f=b;!d&&f&&f!=a.ta();)d=d?d:f.getAttribute("personid"),c=c?c:f.getAttribute("shapeid"),f=f.parentNode;c=(d=a.Ge(d))&&d.Ge(c);return new G5e(d,c)},B5e=function(a,b,c){if(b){b instanceof o3&&(b=[b]);var d=!!c;1!=b.length||ia(c)||(c=b[0].La().getId(),d=!ba(a.Zd,c));var f=[];v(b,function(a){var b=a.La().getId();f.push(b);d?this.Zd.set(b,a):this.Zd.remove(b);a.qj(d)},a);a.getContext().Sa.WT(f,
d)}};q=I3.prototype;q.kfb=function(a){var b=z5e(this,a.target),c=b.Ab&&b.Ab.ta(),d=b.Sa&&b.Sa.ta();!c||a.relatedTarget&&this.Ea().contains(c,a.relatedTarget)||D5e(this,"mouseover"==a.type?b.Ab:null);c&&Sn(a.target,"picker-bulktagging-person-untag")&&Pn(a.target,"a-ta-BFDoi-u","mouseover"==a.type);!d||a.relatedTarget&&this.Ea().contains(d,a.relatedTarget)||(1<n3(this.Ab.Ah(b.Sa.getParent().getId())).length?Pn(d,"a-ta-Pc-u","mouseover"==a.type):Pn(d,"a-ta-Pc-u-Ge","mouseover"==a.type))};
q.mjb=function(a){this.Zj(new r3(this.getContext(),this.Ab.Ah(a.Ws()),this.Oa,this.Ab,this.Ea()),this.Af(this.Ge(a.Ab||""))+1,!0)};q.vjb=function(a){a=this.Ge(a.Ws());a==this.Qb&&D5e(this,null);a.Ulb();this.removeChild(a);T5e(this)};
q.cGc=function(a){a=this.Ge(a.Ws());var b=a.uc("a-ta-Jh-kb"),c=a.uc("a-ta-Jh-za-YLEF4c");On(b,!a.Ab.Ob());On(a.fb("a-ta-Jh-za"),!!a.Ab.Ob());a.Ab.Ob()?(b=a.uc("a-ta-Jh-za-E"),"innerText"in b?b.innerText=a.Ab.Ob():"textContent"in b&&(b.textContent=a.Ab.Ob()),a.Ab.mL&&(c.childElementCount||Vv(a.getContext().ef(),c,nug,{Uo:a.Ab.Ab,Da:i3d(a.Ab.mL,a.getContext())}))):(E4e(a.$b,""),b.value="",c&&c.firstChild&&c.removeChild(c.firstChild))};q.Qkb=function(a){q5e(this.Ge(a.Ws()),a.Sa);y5e(this);T5e(this)};
q.Rkb=function(a){var b=[];v(a.Sa,function(a){(a=this.Zd.get(a))&&b.push(a)},this);B5e(this,b,!1);r5e(this.Ge(a.Ws()),a.Sa);T5e(this)};q.Eqa=function(a){var b=this.Ea().fb("a-ta-Z");return"IMG"!=a.tagName&&"INPUT"!=a.tagName&&Oc(b,a)&&!A5e(z5e(this,a))};var D5e=function(a,b){a.Qb!=b&&(a.Qb&&Rn(a.Qb.ta(),"a-ta-u"),(a.Qb=b)&&Qn(b.ta(),"a-ta-u"))},T5e=function(a){a.Ag.clear();a.Km=null};I3.prototype.GHa=function(){return this.Km=pe(this.ta())};
I3.prototype.Yia=function(a){if(a&&!this.isDisposed()&&Ge(this)){var b=[],c=new df;Ye(Njc(this),function(d){var h=this.Ge(d);return h instanceof r3&&(d=$5e(this,h),a.top<d.top+d.height&&!Ye(Njc(h),function(d){d=h.Ge(d);if(d instanceof o3){var f=$5e(this,d);if(a.top+a.height<f.top)return!1;Vba(a,f)&&(f=d.getId(),c.add(f),ba(this.Zd,f)||b.push(d))}return!0},this))?!1:!0},this);var d=[];v(this.Zd.Rc(),function(a){var b=a.getId();this.Vk.contains(b)||c.contains(b)||d.push(a)},this);B5e(this,b,!0);B5e(this,
d,!1)}};var $5e=function(a,b){var c=(b instanceof o3?"s-":"p-")+b.getId(),d=a.Ag.get(c);d||(d=pe(b.ta()),d.top+=a.ta().scrollTop,a.Ag.set(c,d));return d};I3.prototype.lya=function(a,b){this.Ag.clear();if(a){var c=this.getContext().Sa;b?this.Vk=new df(c.Ua()):(y5e(this),this.Vk.clear())}x5e(this,a);Pn(this.ta(),"a-S1-R1",a)};var G5e=function(a,b){this.Ab=a;this.Sa=b};G5e.prototype.Ws=function(){return this.Ab&&this.Ab.getId()};var A5e=function(a){return a.Sa&&a.Sa.getId()};
var n6e=function(a){this.Sa=a};n6e.prototype.KX=function(a){v(e5e(a),function(a){var c=y_d,d={},f=a.yc();null!=f&&(d.email=f);f=a.Ob()||a.yc();null!=f&&(d.displayName=f);f=a.Ab;null!=f&&(d.personUserId=f);f=n3(a).length?n3(a)[0].Qja[0].getId():void 0;null!=f&&(d.userId=f);c(this,a,d)},this)};
var y_d=function(a,b,c){var d=n3(b);if(d&&d.length){var f=a.Sa.od;v(d,function(a){a.setAttribute("tdn",b.Ob());a.setAttribute("te",b.yc());a.setAttribute("ss","u");a.setAttribute("sa",b.equals(a.getAttribute("tuid")||"")||void 0);a.setAttribute("tuid",b.Ab);a.setAttribute("tsg",void 0);a=a.getId();var c=f.La(a.split("_")[0]);if(c){var d=c.getAttribute("si")||[];d.push(a);c.setAttribute("si",d)}},a);a.Sa.od.Vd(new K3("labelShape","picasa",zg(d,function(a){return a.Qe()}),c||{}),ka,ka)}};
var p6e=function(a,b,c){Ld.call(this);this.Sa=a;this.Kf=c;this.xb=b;On(this.xb,!1);this.xb.style.position="absolute";this.Bf=new H4e(this.xb);x(this,this.Bf);this.Bb=new Hd(this);x(this,this.Bb);this.Bb.Ja(this.Bf,"end",this.Qb).Ja(this.Bf,"drag",this.Ab).Ja(this.Bf,"start",this.$b)};t(p6e,Ld);p6e.prototype.mL=function(a){this.Kf.hb(this.xb);this.xb.appendChild(a.element);this.Bf.Sa(a.Sa)};p6e.prototype.Qb=function(a){On(this.xb,!1);this.dispatchEvent(new t6e("Ah",0,a))};
p6e.prototype.Ab=function(a){On(this.xb,!0);a=he(a.Sa,this.xb.parentNode);Vd(this.xb,a.x+5,a.y+5)};p6e.prototype.$b=function(a){this.dispatchEvent(new t6e("th",0,a,this.Bf))};var t6e=function(a,b,c,d){cx.call(this,a,d||c.Ab,c.clientX,c.clientY,c.Sa,c.left==c.clientX?void 0:c.left,c.top==c.clientX?void 0:c.top,!!c.Vb)};t(t6e,cx);
var J3=function(a,b,c){var d=b.or();a.rd().ima&&d instanceof $w&&oZd(d,"shapeSuggestions","true");n4.call(this,a,d,c);this.Bc=b;this.Qb=new B3(a,Lp(this.Op,this),Lp(this.Ag,this),c);this.$b=new Z4e;this.Oa=null;this.Vk=new Yv;this.mL=new ag};t(J3,n4);q=J3.prototype;
q.Pa=function(){J3.ya.Pa.call(this);var a=this.getContext().ef(),b=this.Ea().Pa("div");this.YY=new p6e(this.getContext(),b,this.Ea());this.ib(this.Qb,!0);this.Oa=new I3(this.getContext(),this.$b,this.YY,this.Ea());this.Qb.ib(this.Oa,!0);this.Qb.ta().appendChild(b);this.Vb=U(this.getContext().ef(),P4e);this.Qb.cb().appendChild(this.Vb);if(this.Bc.Ab&&"photo-tagging"!=this.Bc.Ab.Sa||this.Bc.getOption("ids"))b=JC(a,O4e),this.Qb.Qb.setContent(b);WQd(this.Qb,JC(a,N4e))};
q.Na=function(){J3.ya.Na.call(this);var a=this.YY;a.Bb.Ja(this.Oa,v5e,a.mL);this.getHandler().Ja(this.YY,"th",this.Db).Ja(this.YY,"Ah",this.iu).Ja(this.$b,"kF",this.lp);var a=this.Bc.getOption("parent"),b=this.Bc.getOption("eid");a?L2d(this.getContext().od,a,!1,Lp(this.mL.By,this.mL),Lp(this.mL.jd,this.mL)):b?M4e(this.getContext().od,b,Lp(this.mL.By,this.mL),Lp(this.mL.jd,this.mL)):this.mL.By(void 0)};
q.Ik=function(a){var b,c=ec(a,function(a,c){return a.getAttribute("rt")?(b=c,!1):!0});a=a[b].getAttribute("rt");"empty"==a||"tagged"==a?this.gR():(this.Vb&&(this.Ea().removeNode(this.Vb),this.Vb=null),g_d(this,c),D6e(this),this.Oa.draw(),this.Qb.qh(!0))};q.zbb=ka;q.gR=function(){this.isDisposed()||this.Ag()};
var D6e=function(a){var b=[],c=[];v(a.Vk.Rc(),function(a){var f=a[0].getAttribute("tuid"),h=a[0].getAttribute("te"),k=a[0].getAttribute("tdn"),m=a[0].getAttribute("turl"),p=new Y4e(f,h,k,m);v(a,function(a){p.Qb.set(a.getId(),a)},this);h||k?b.push(p):c.push(p)},a);wb(b,function(a,b){return n3(a).length-n3(b).length});wb(c,function(a,b){return n3(a).length-n3(b).length});v(c,function(a){$4e(this.$b,a)},a);v(b,function(a){$4e(this.$b,a)},a);a.getContext().mL.addCallback(function(a){var c=cb(b,function(b){return b.getId()==
a.getUserId()});c&&(a5e(this.$b,c),$4e(this.$b,c))},a)},g_d=function(a,b){var c=a.Bc.getOption("userId"),d=0;v(b,function(a){var b=a.getAttribute("te"),k=a.getAttribute("tuid"),m=a.getAttribute("sc"),b=k||b||m||(--d).toString();a.setAttribute("so",c);k=this.Vk.get(b)||[];k.push(a);this.Vk.set(b,k)},a)};J3.prototype.Db=function(){x5e(this.Oa,!0)};
J3.prototype.iu=function(a){if(Oc(this.Oa.ta(),a.Sa.target)){var b=this.Oa;a=z5e(b,a.Sa.target).Ws();var c=b.getContext().Sa;a&&c.Ua().length&&b5e(b.Ab,a,c.Ua());y5e(b)}x5e(this.Oa,!1)};J3.prototype.lp=function(){this.$b.Sa.Fc()||z6e(this)};var z6e=function(a){a.Qb.cb().appendChild(U(a.getContext().ef(),R4e));Uf(function(){this.isDisposed()||this.Ag()},2E3,a)};J3.prototype.Ag=function(){this.getContext().od.xk(this.Bc.Ab?1:4);this.Qb.qh(!1);this.getContext().Ab.Sl([])};
J3.prototype.Km=function(){this.getContext().od.xk(this.Bc.Ab?2:5);this.Qb.qh(!1);(new n6e(this.getContext())).KX(this.$b);this.getContext().Ab.Sl([])};
J3.prototype.Op=function(){var a=this.getContext().ef();this.mL.addCallback(function(b){if(b&&e5e(this.$b).length){var c=lI(lI(new qx,{key:"ok",caption:JC(a,U4e)},!0),ux,!1,!0),d=b.getAttribute("it")?"false"==b.getAttribute("it"):!0;b="album"==b.Ra()?a.render(S4e,{mCa:b.getUrl(),albumName:b.getName(),Q1:d,Zm:b.Tm()}):JC(a,T4e,{vv:b.getName()});c=zx(JC(a,W4e),b,this.Km,null,this,"a-ta-Vj-q",c,this.Ea());Qn(c.hg(),"a-ta-Vj-q-Ya");c.setVisible(!0)}else b?this.Ag():this.Km()},this);bg(this.mL,this.Ag, this)};
var B_d=function(){kd.call(this)};t(B_d,x3);B_d.prototype.initialize=function(){};B_d.prototype.uj=function(a,b,c){return"photo-tagging"==a.Sa?new J3(b,a,c):null};B_d.prototype.K9=function(a,b,c){switch(a){case "bulkTag":return new rZd(b,c)}return null};vg(xg(E.ia(),"opt"),B_d);

G("opt");I();
}catch(e){_DumpException(e)}
try{
var B2d=function(a,b){A.call(this,"status",this);this.ns=a;this.url=b};t(B2d,A);H3.prototype.Qb=g(648,function(){this.Ab=!1});lka.prototype.UE=g(152,function(a){Lg(this,1,a)});dm.prototype.UE=g(151,function(a){Lg(this,9,a)});Xm.prototype.UE=g(150,function(a){Lg(this,3,a)});
var C2d=function(a,b){var c;a.Ab.addCallback(function(a){c=a},a);d2d(a,b);var d=[];v(b,function(a){var b=this.La(a.getId());d.push(b);"start"==HY(c,a)&&this.Sa.We().Xgb(b.getId(),a.dp,i2d(c));f2d(this,a)},a);return d},O$e=function(a){a.y$||qr(a.getHandler(),a.handle,["touchstart","mousedown"],a.Sa,!1,a)},n4d=function(a){a.Ik(a.Rd().Ae());a.vB(!0)},U$e=function(a){On(a.Ea().fb("a-n-ab-z-ib-zf",a.ta()),!0)},L_d=function(a){return a.Ea().fb("a-fy-Ca",a.ta())},D2d=function(a){var b=a.Ea().fb("a-G1",a.getContext().rd().fG()),
c=zy(b).width,b=zy(b).height,c=Math.floor((c-oe(a.ta()).width)/2);My.Bo()?Pd(a.ta(),"margin-right",c+"px"):Pd(a.ta(),"margin-left",c+"px");c=Math.floor((b-oe(a.ta()).height)/2);Pd(a.ta(),"margin-top",c+"px")},K_d=function(a){var b=a.Ea(),c=b.fb("XY-Tc",a.ta());c&&(On(c,!1),le(b.fb("a-J-e-Tc",a.ta()),0,0));(a=b.fb("la-ba-jb",a.ta()))&&On(a,!1)},V$e=function(a,b){a.Qb.ta()&&On(a.Qb.ta(),b);a.Dma=!b},baf=function(a){if(a.Ab){var b={};v(a.Ab,function(a){b[a.Sa]=a});var c=Gaa(rRd,function(a){return!!b[a]});
return b[c]||a.Ab[0]}},E2d=function(a,b){Ld.call(this);this.Oa=a;this.Sa=b||"";this.Qb=this.$b=this.Ab=void 0;this.mL={};this.Ba=new Hd(this)};t(E2d,Ld);q=E2d.prototype;q.dG=function(){return this.Qb};q.jxa=function(a){this.mL=a};q.pKc=function(a){try{var b=Qf(a.target.Lq());if(void 0!=b.sessionStatus){var c=b.sessionStatus.externalFieldTransfers[0][this.Sa+"Info"];this.Ab=c.http_url;this.$b=c[this.Sa+"_url"];this.dispatchEvent(new B2d(!0,this.$b))}else this.t2a()}catch(d){this.t2a()}};q.t2a=function(){this.dispatchEvent(new B2d(!1))};
q.NGc=function(a){try{var b=Qf(a.target.Lq());if(void 0!=b.sessionStatus){try{this.Qb=b.sessionStatus.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"].completionInfo.customerSpecificInfo}catch(c){}this.dispatchEvent(new B2d(!0))}else this.b2a()}catch(d){this.b2a()}};q.b2a=function(){this.dispatchEvent(new B2d(!1))};q.qb=function(){E2d.ya.qb.call(this);y(this.Ba)};
var daf=function(a,b){return Vba(a,b)},S2e=function(a){return D2e(a.id,a.Tqe,void 0,a.bre)},d5=function(a,b,c,d){O3.call(this,a,b,Q3.ia(),d);LA(this,Q3.ia());this.Ko=new c5(this.La(),d);this.Oa=new H3;x(this,this.Oa);this.Pha=c;this.Ab=this.yH=null;this.kN=void 0};t(d5,O3);q=d5.prototype;
q.Na=function(){d5.ya.Na.call(this);this.Ko&&(this.Ko.render(this.yH),TB(pc("a-n-J-m",this.ta()),"a-n-J-m","a-n-Ca-v-m"));this.getHandler().Ja(pc("a-n-ab-z-ib-zf",this.ta()),"click",this.vjd);var a=L_d(this);this.getHandler().Ja(a,"mousedown",function(a){a.stopPropagation()},!0)};
q.Pa=function(){d5.ya.Pa.call(this);var a=L_d(this),b=ha.URL||ha.webkitURL,c;this.Pha&&(c=b.createObjectURL(this.Pha));c&&(this.getHandler().Ja(a,"error",function(b){if(4==b.target.error.code||3==b.target.error.code)this.getHandler().nb(a,["error","canplay"]),this.update(),On(this.Ea().fb("a-fy-Ca",this.ta()),!1),On(this.Ea().fb("a-a4-nb",this.ta()),!1),(new bF(this.ta(),450)).play()}),this.getHandler().yj(a,"canplay",function(){var b=c,f=this.Ea(),h=Zc(f,"video",void 0,this.ta())[0];h.src=b;h.autoplay=
!1;h.muted=!1;h.controls=!0;(new bF(this.ta(),450)).play();On(f.fb("a-J-e-qa",this.ta()),!1);this.getHandler().nb(a,["error","canplay"])}),a.src=c,a.muted=!0,a.autoplay=!0)};
q.vjd=function(){var a=this.La().vt();a?(this.dispatchEvent("Lg"),a={parent:a,deleteParentIfEmpty:!0},this.getContext().od.Vd(new K3("delete","picasa",[this.La().getId()],a),Lp(function(){this.dispatchEvent("Kg")},this),Lp(function(){this.dispatchEvent("ph");alert("Your video was unable to be deleted. Please try again.")},this))):this.dispatchEvent("Kg")};q.Gdb=function(a){this.yH=a};
q.update=function(){d5.ya.update.call(this);var a=this.La(),b=this.Qb,c=a.getVideoData(),d=c&&c.QD(),f=ve(L_d(this));if("success"==a.Ii.getState()&&!c||d)if(K_d(this),H_d(this),d)if(c&&d&&!this.Oa.Nb()&&CRd){if(a=this.Oa)a.Qb(),c=oe(this.ta()),this.La().Yh().length&&a.Jca(this.La().Yh()[0].ll(c.width,["k","no"]).Qs()),c=this.Ea().fb("a-J-e-qa-B",this.ta()),a.render(c),c=(c=this.La().getVideoData())&&c.QD(),d=oe(this.ta()),le(a.ta(),d.width,d.height),On(a.ta(),!0),c&&a.Sa(c),K_d(this),b.$ca(this,!1)}else!f&&
c&&d&&(b.$ca(this,!1),a=this.Ea(),b=a.fb("a-Ca-zc",this.ta()),a=a.fb("a-Ca-zc-W",b),c=oe(this.ta()),c=this.La().Yh()[0].ll(c.width).Qs(),a.src=c,On(b,!0));else b.$ca(this,!0),U$e(this)};q.yw=function(){var a=this.Ab;a||(a=this.Ab=new yo(""),a.Bm(32,!1));return a};q.yZ=function(){I_d(this.Ko,M3(this.La()));On(this.Ea().fb("a-n-Ca-v-m",this.ta()),!1);U$e(this)};q.Ib=function(){d5.ya.Ib.call(this);this.Ab&&this.Ab.Ib()};
var H_d=function(a){if(ia(a.kN)){var b=a.La(),c=b.Jd();b.Ee(a.kN);var d=a.getContext(),f={caption:a.kN};d.od.Vd(new K3("changeCaption","picasa",[b.getId()],f),ka,Lp(function(){b.Ee(c);this.yw().setContent(c)},a))}a.kN=void 0},faf=function(a){var b=a.videoId,c;if(a=a.playerFlashVars){var d=new Ff(a);a=d.get("fmt_list");d=d.get("fmt_stream_map");if(a&&d){c=[];for(var f={},d=d.split(","),h,k=0;k<d.length;k++){var m=d[k].match("^([0-9]+)\\|(.*)");m?(h=Faa(m[1]),f[h]=m[2]):h&&(f[h]+=","+d[k])}v(a.split(","), function(a){var b=a.split("/");a=Faa(b[0]);b=b[1].split("x");c.push(new TEa(f[a],a,new Kb(Faa(b[0]),Faa(b[1]))))})}}return b||c?new UEa(b,void 0,0,c):void 0};H("oppu");
var L4d=function(a,b,c,d){B3.call(this,a,b,c,d);this.Ag=null};t(L4d,B3);L4d.prototype.V2b=function(){var a=this.Ea(),b=this.Ag;this.getContext().We().Aia()?(b||(b=this.Ag=a.Pa("div","a-Za-zu-sc a-Za-v-Qd",a.Pa("div","d-k-l",a.Pa("div","a-Za-m d-k-l"),a.Pa("div","a-Za-sc d-k-l a-Za-ii-nc","Uploading..."))),this.Ab.appendChild(b)),On(b,!0),b.style.visibility=""):b&&(On(b,!1),b.style.visibility="hidden")};
var f4d=function(a){A.call(this,"Vo");this.Sa=a};t(f4d,A);var V5=function(a,b){var c=new $w({service:"picasa",type:"uploadablealbums"});n4.call(this,a,c,b);this.Qb={};this.mL=new qz("Loading...",void 0,Hp.ia(),b);this.ib(this.mL)};t(V5,n4);q=V5.prototype;q.Pa=function(){var a=this.Ea().Pa("div","a-me-hj");this.Kb(a);this.mL.Pa();a.appendChild(this.mL.ta());Qn(this.mL.ta(),"a-me-hj-Qb");this.mL.Ne().Pa();Qn(this.mL.Ne().ta(),"a-me-hj-Qb-r")};q.Na=function(){new mR(this.mL.Ne());V5.ya.Na.call(this)};
q.bC=function(a){a=ec(a,function(a){return"application/vnd.google-apps.rollupphotoalbum"!=a.rI()});return V5.ya.bC.call(this,a)};q.Ik=function(a){for(var b=this.mL.Pl(0);b;)this.mL.qha(0),b=this.mL.Pl(0);this.Qb={};this.Hr(a)};q.zbb=function(a){var b=this.getContext().od.La(a);a=this.Qb[a];b&&a&&a.Lb(b.getName()||"")};
q.Hr=function(a){var b=this.Ea(),c=this.getContext().rd().Qb;v(a,function(a){var f=a.Qe();a=new yp(a.getName()||"",void 0,b);a.Xo(f);var h=this.mL;h.dg(a);f!=c&&h.Cg()!=h.yH||h.jn(a);this.Qb[f]=a},this)};q.gR=function(){var a=this.Ea(),a=new yp("Drop Box",void 0,a);a.Xo("-1");this.mL.dg(a);this.mL.jn(a)};q.iRa=function(){};q.iO=function(){V5.ya.iO.call(this);this.dispatchEvent("JF")};q.qb=function(){V5.ya.qb.call(this);delete this.Qb;this.mL.Ma();delete this.mL};
var g4d=function(a,b,c){C.call(this,c);this.Sa=a;this.Ab=null;"pname"==b&&(this.Ab=new V5(a,c),this.Ab.setActive(!0),this.ib(this.Ab),this.getHandler().Ja(this.Ab,"JF",this.LFc));this.Qb=new BM("create a new album",OF.ia(),c);this.ib(this.Qb);this.Km=new kR;this.ib(this.Km);this.Oa=new BM("add to an existing album",OF.ia(),c);this.ib(this.Oa)};t(g4d,C);g4d.prototype.$b=function(a){this.Vb=a;var b=this.mL;b&&(this.mL.value=a,this.Vk(),b.disabled=!1)};
var h4d=function(a,b){b?a.Sa.od.Vd(new u3("picasa",[b],{type:"album"}),Lp(function(a){(a=a.Ae())&&a.length&&this.$b(a[0].getName())},a),Lp(a.$b,a,""),!0):a.$b("")};
g4d.prototype.Pa=function(){var a=this.Ea(),b=void 0;this.Ab&&(this.Ab.Pa(),b=this.Ab.ta(),Qn(b,"d-k-l"),On(b,!1));this.Kb(a.Pa("div","a-ij",a.Pa("table",{cellPadding:0,cellSpacing:0},a.Pa("tbody",null,a.Pa("tr",null,a.Pa("td","a-ij-Da-xd",a.Pa("span","a-ij-ka","Album name:"),b,this.mL=a.Pa("input",{type:"text",className:"a-ij-N b-hb"}),this.Ag=a.Pa("span")))))));this.Ab&&(this.Oa.Pa(),this.Qb.Pa(),On(this.Qb.ta(),!1),On(this.Ag,!1),a.uv(this.Ag,"or","\u00a0",this.Qb.ta(),this.Oa.ta()));ia(this.Vb)?
(this.mL.value=this.Vb,this.Vk()):this.mL.disabled=!0;this.Km.yb(this.mL)};g4d.prototype.Na=function(){g4d.ya.Na.call(this);this.mL.maxLength=100;var a=new rw(this.mL);x(this,a);this.getHandler().Ja(this.Qb,"action",Lp(this.j1a,this,!0)).Ja(this.Oa,"action",Lp(this.j1a,this,!1)).Ja(this.mL,"click",Lp(this.wAb,this)).Ja(a,"input",this.Vk)};g4d.prototype.Vk=function(){var a=!!Ia(this.mL.value);a!=this.YY&&(this.YY=a,this.dispatchEvent(a?"Si":"Ti"))};
g4d.prototype.reset=function(){this.Nb()&&(this.Vb="",this.YY=!1,this.Ab&&(On(this.Ag,!1),this.Ab.vB(!0),this.j1a(!0)))};
var gaf=function(a,b,c,d){var f=zg(b,function(a){return a.getId()},a);if(a.Ab&&ve(a.Ab.ta())){var h=a.Ab.mL.$e().getValue();c?k4d(a,f,{albumId:h},d):(c=b[0].vt(),j4d(a,f,c,h,d))}else{var h=Ia(a.mL.value),k=Ea(Ga(h));!k&&c?k4d(a,f,{albumName:h},d):k||h==a.Vb?a.Sa.Ab.Sl(b):(c=b[0].vt(),i4d(a,b,c,h,d))}},i4d=function(a,b,c,d,f){a.Sa.od.Vd(new K3("changeAlbumAttrs","picasa",null,{parent:c,title:d}),Lp(a.lgb,a),Lp(a.Op,a,b,f))};
g4d.prototype.Op=function(a,b){confirm("Sorry!  We could not save your album's name.  Would you like to continue anyway?")?this.Sa.Ab.Sl(a):b()};var j4d=function(a,b,c,d,f){a.Sa.od.Vd(new K3("move","picasa",b,{src:c,parent:d}),Lp(function(a){var b=a.Ae(),f=this.Sa.od.La(d,"picasa");f&&(b=f.Tm()+b.length,f.Oa=b,f.setAttribute("fdc",!0),f.setAttribute("numFaces",void 0));this.lgb(a);this.Sa.od.Vd(new K3("delete","picasa",[],{parent:c,deleteParentIfEmpty:"true"}),ka,ka)},a),Lp(a.Ko,a,f))};
g4d.prototype.Ko=function(a){alert("Sorry!  We could not move your photos to the album you selected.");a()};var k4d=function(a,b,c,d){a.Sa.od.Vd(new K3("multiInclude","picasa",b,c),Lp(a.lgb,a),Lp(a.LBc,a,d))};q=g4d.prototype;q.LBc=function(a){alert("Sorry!  We could not copy your photos to the album you selected.");a()};q.lgb=function(a){a=a.Ae();var b=this.Sa.od;v(a,function(a){var d=b.La(a.getId());a.zJ(!d||d.Kn());a.setAttribute("si",d&&d.getAttribute("si"))},this);b.Xp(a);this.Sa.Ab.Sl(ec(a,function(a){return!oTf(a)}))};
q.j1a=function(a){this.Ab&&(On(this.Ab.ta(),!a),On(this.Qb.ta(),!a),this.dispatchEvent(this.YY||!a?"Si":"Ti"),On(this.mL,a),On(this.Oa.ta(),a),this.dispatchEvent(new f4d(a)))};q.wAb=function(){if(this.Ea().La().activeElement!=this.mL){var a=this.mL;a.focus();a.select&&a.select()}};q.LFc=function(){0<this.Ab.zq().Fc()&&On(this.Ag,!0)};q.focus=function(){try{return this.wAb(),!0}catch(a){return!1}};
var Fag=function(a,b,c){a=a||{};b="";if(a.Jdb||a.deb)c=wA(new Z("{VIEWER_GENDER,select,female{Install Auto Backup for easier uploading!}male{Install Auto Backup for easier uploading!}other{Install Auto Backup for easier uploading!}}"),{VIEWER_GENDER:c.Aa}),b+='<div class="d-k-l a-fwHlj-qUPACb-zb">'+(a.Jdb?'<a href="https://dl.google.com/dl/picasa/gpautobackup_setup.dmg" target="_blank">':a.deb?'<a href="https://dl.google.com/dl/picasa/gpautobackup_setup.exe" target="_blank">':"")+'<div class="a-fwHlj-qUPACb-m d-k-l  a-n-gq-D-y7"></div><div class="d-k-l a-fwHlj-qUPACb-E">'+ c+"</div></a></div>";return Y(b)};
var l4d=function(a,b,c){B3.call(this,a,b,void 0,c);l4d.ya.qh.call(this,!0)};t(l4d,B3);l4d.prototype.kN=function(){return null};l4d.prototype.qh=ka;var N5=function(a,b,c){T3.call(this,b,c);this.mL=a;this.Ba=new Hd(this);x(this,this.Ba)};t(N5,T3);q=N5.prototype;q.pO=0;q.lT=0;q.yN=function(a){N5.ya.yN.call(this,a);this.pO=this.lT=a=tX(a)};q.Owa=function(){tX(this.Sa);if(this.Ab){var a=new U3(this.lT,this.pO);this.Ab=!1;this.dispatchEvent(a)}N5.ya.Owa.call(this)};q.cJa=function(){return xc&&Gf("6")||gc&&Gf("10.5")||xd&&Gf("525")||wd&&Gf("1.9.1")};
q.pT=function(a){N5.ya.pT.call(this,a);if(!this.Ab){this.Ab=!0;var b=0,b="editbar-rotate-left"==a?-90:90;if(a=this.Sa)this.lT=tX(a),this.pO=b+this.lT,c5c(a,this.pO),this.Qb&&d5c(a,this.Qb,!1);b=new NRd(this.lT,this.pO);xc&&!Gf(9)?(this.Ab=!1,this.dispatchEvent(b)):(this.dispatchEvent(b),Uf(function(){this.Ab=!1;this.dispatchEvent(new U3(this.lT,this.pO))},this.mL,this))}};q.jL=function(a){N5.ya.jL.call(this,a);var b=this.pO/90%4;0>b&&(b+=4);a.setAttribute("r",b)}; q.reset=function(){c5c(this.Sa,0);this.pO=this.lT=0};
var ife=function(a){var b='<div class="a-of-e-Ab">';a.oLb&&(b+='<div class="a-of-Ab-ka a-of-Ab-yca-Eb">Set as your profile photo</div><div class="a-of-Ab-ka a-of-Ab-pl-Eb">Profile photo</div>');return Y(b+'<div class="a-of-Ab-Ce a-n-J-hD"></div></div>')};
var q8e=function(a){m5.call(this,82,!0);this.Qb=a};t(q8e,m5);q8e.prototype.Pa=function(a){var b=q8e.ya.Pa.call(this,a);Qn(b,"a-of-e");a=U(a.getContext().ef(),ife,{oLb:this.Qb});this.Qb&&Qn(a,"a-of-e-YTm5k");pc("a-J-e-qa",b).appendChild(a);return b};var r8e=function(a,b,c,d){n5.call(this,a,b,c,d)};t(r8e,n5);r8e.prototype.Na=function(){r8e.ya.Na.call(this);var a=this.fb("a-of-Ab-Ce");this.getHandler().Ja(a,"mouseup",this.Ab)};r8e.prototype.Ab=function(){Bo(this,16);this.dispatchEvent(new A("MF",this))};r8e.prototype.Um=function(a){r8e.ya.Um.call(this,a);xo(this,16)&&this.dispatchEvent(new A("NF",this))};
var T2e=function(a,b,c){var d=!!b.getOption("enableLocalProfilePhoto");o5.call(this,a,b,c,new q8e(d));this.Oa=[];this.zF=[];this.Op=d;this.Qb=null};t(T2e,o5);T2e.prototype.Na=function(){T2e.ya.Na.call(this);this.getHandler().Ja(this.getContainer(),"NF",this.Ye)};
var U2e=function(a,b){if(b.length){a.Rd().QK(b);a.getContext().od.Xp(b);a.Hr(b);v(b,function(a){Qn(x5(this,a.getId()).ta(),"a-of-e-tsa")},a);var c=cb(b,function(a){return!!a.getAttribute("ilpp")})||b[0];Icf(a,c.getId())}},s8e=function(a,b){a.Qb||Icf(a,Jcf(a));var c=ec(a.Rd().Ae(),t8e),c=c.concat(a.Oa);b&&(c=c.concat(a.zF));return c};T2e.prototype.cD=function(){};T2e.prototype.zbb=function(a){T2e.ya.zbb.call(this,a);(a=Jcf(this))&&Icf(this,a)};
T2e.prototype.Ye=function(a){a=a.target.La();Icf(this,a.getId())};var Icf=function(a,b){a.Op&&(a.Qb&&W2e(a,a.Qb,!1),(a.Qb=b)&&W2e(a,b,!0))},W2e=function(a,b,c){a.Op&&(a.getContext().od.La(b).setAttribute("ilpp",c),(a=x5(a,b))&&Pn(a.ta(),"a-qE",c))};T2e.prototype.ED=function(a){var b=this.Km;a=new r8e(this.getContext(),a,b,this.Ea());this.getHandler().Ja(a,"QE",this.dispatchEvent).Ja(a,"MF",this.Be);return a};
T2e.prototype.Be=function(a){a=a.target.La();a.setAttribute("mfr",!0);this.Rd().dL([a.getId()]);a.Kn()?this.Oa.push(a):this.zF.push(a)};T2e.prototype.jOa=function(a){T2e.ya.jOa.call(this,a);this.Qb==a&&Icf(this,Jcf(this))};T2e.prototype.Brb=function(a,b,c){a=T2e.ya.Brb.call(this,a,b,c);a.gUa=!1;return a};var Jcf=function(a){return(a=cb(a.Rd().Ae(),t8e))?a.getId():null},t8e=function(a){if(!a.Yh()||"localphotos"!=a.Sa||a.getAttribute("mfr"))return!1;a=a.Ii;return!a||"success"==a.getState()};
var m4d=function(a,b,c,d){this.zF=new m5(120,!1,!0);(this.Op=c)&&this.ib(c);this.Oa=this.Qb=null;o5.call(this,a,b,d,this.zF)};t(m4d,o5);q=m4d.prototype;q.Na=function(){m4d.ya.Na.call(this);this.Qb=new l5(this.getContext(),this.getContainer(),this.Ea());this.Oa=new Q0d(this.getContext(),30,this.Qb);this.getHandler().Ja(this.Qb,["qc","lc"],this.JFc).Ja(this.Qb,"Fi",Lp(this.Oa.Oa,this.Oa)).Ja(this.Qb,"Ei",Lp(this.Oa.uh,this.Oa)).Ja(this.Qb,"TE",this.Xid).Ja(this.Qb,"Di",this.Vid);this.ib(this.Qb);this.Qb.render(this.ta())};
q.cD=function(){};q.Gya=Fx;q.Hr=function(a){m4d.ya.Hr.call(this,a);var b=this.getContainer().cb(),c=b.firstChild;this.Op&&!this.Op.Nb()&&(c?De(this.Op,c):this.Op.render(b));0<a.length&&(b=x5(this,a[0].getId()),a=x5(this,a[a.length-1].getId()),c!=b.ta()&&(S3(a.ta()),b!=a&&S3(b.ta())),this.lKa())};
q.Vid=function(a){var b=a.Sa,c=a.Cg();if(b){var d=b.La();if(d){var f=d.Jd();d.Ee(c);a=this.getContext();c={caption:c};a.od.Vd(new K3("changeCaption","picasa",[d.getId()],c),ka,Lp(function(){d.Ee(f);"function"==typeof b.cPa&&b.yw().setContent(f);alert("Unable to save the caption. Please try again.")},this))}}};q.JFc=function(a){var b=a.target.fb("a-J-e-Qe-Hj");b&&On(b,"lc"==a.type)};
q.Xid=function(){var a=this.Qb.Qb;if(a){var a=a.La(),b=this.Gf().getOption("pd");if(!ia(b)||b){var b=a.vt(),c={parent:b},d=this.getContext().od;d.Vd(new K3("delete","picasa",[a.getId()],c),Lp(function(){},this),Lp(function(){},this));(b=d.La(b))&&I2d(b,b.Tm()-1)}this.Rd().dL([a.getId()])}};
var X3d=function(a){Ld.call(this);this.$b=a;this.Sa={};this.mL=0;this.Ab=!1};t(X3d,Ld);X3d.prototype.clear=function(){Vb(this.Sa)};X3d.prototype.Qb=function(){this.$b.Vd(new u3("picasa",Sb(this.Sa),{}),Lp(this.Ag,this),Lp(this.Oa,this))};
X3d.prototype.Ag=function(a){a=a.Ae();for(var b=0;b<a.length;b++){var c=a[b],d=c.getVideoData(),f=this.$b.La(c.getId());if(f&&d&&!d.$b){var h=f.getVideoData();h?h.zKa(d):f.Km=d;f.ZE(c.Yh());this.dispatchEvent(new Y3d(f,"s"));Wb(this.Sa,c.getId())}else d=this.Sa[c.getId()],Wa()>d+3E5&&(Wb(this.Sa,c.getId()),this.dispatchEvent(new Y3d(f,"f")))}Ub(this.Sa)?this.Ab=!1:Uf(this.Qb,2E3,this)};
X3d.prototype.Oa=function(){this.mL++;5<=this.mL?(v(Sb(this.Sa),function(a){this.dispatchEvent(new Y3d(this.$b.La(a),"f"))},this),Vb(this.Sa),this.Ab=!1):Uf(this.Qb,2E3,this)};var Y3d=function(a,b){A.call(this,"Ui");this.Sa=a;this.Ab=b};t(Y3d,A);Y3d.prototype.La=function(){return this.Sa};Y3d.prototype.YA=function(){return this.Ab};
var T5=function(a,b,c,d,f){F5.call(this,a,b,c,d,f);this.$b=a.rd().Qb;this.uh=String(Wa());this.Vk={};this.YY=new X3d(a.od);this.getHandler().Ja(this.YY,"Ui",this.eMc);this.Qb=null};t(T5,F5);q=T5.prototype;
q.Aga=function(a){var b=T5.ya.Aga.call(this,a);qa(b.batchid)||(b.batchid=this.uh);var c=this.$b;c&&(b.album_id=c);b.album_name||this.$b||(c=this.Qb)&&(b.album_name=c);(a=this.La(a.getId()))&&void 0!=a.Ab&&(b.album_abs_position=String(a.Ab));a=this.getContext().rd();var c=a.nk(),d=a.ik();c?b.effective_id=c:d&&(b.entity_type="2",b.effective_id=d);(a=a.Ag)&&(b.client=a);return b};
q.C2a=function(a){T5.ya.C2a.call(this,a);this.Ab.addCallback(function(b){var c=a.file;b=HY(b,c);L1d(b)&&(c=this.La(c.getId()))&&"video"==c.Ra()&&(c.getId(),"success"==b&&(b=this.YY,c=c.getId(),Ub(b.Sa)&&(b.mL=0),b.Sa[c]=Wa(),b.Ab||(b.Ab=!0,b.Qb())))},this)};q.eMc=function(a){"s"==a.YA()&&j2d(this,a.La());this.dispatchEvent(new h2d("lm",a.La()))};
q.B2a=function(a){this.Ab.addCallback(function(b){if("Server rejected"==a.message&&(b=b.zx(a.file))){var c=b.dG();if(c)if(b=c.status,c=c.message||"","QUOTA_EXCEEDED"==b)this.dE(),this.getContext().Mh.On(new w3("quota"));else if("ERR_ALBUM_LIMIT"==b)a.message="Album limit exceeded";else if("ERR_PHOTO_PER_ALBUM_LIMIT"==b)a.message="Album full";else if("IMAGE_TOO_BIG"==b)a.message="Image too big";else if("INSUFFICIENT_PERMISSION"==b)a.message="Permission denied";else if("NOT_IMAGE"==b||"BAD_IMAGE"==
b||ya(c,"Content type is neither image nor video")||ya(c,"Content type not included"))a.message="File must be an image or video."}T5.ya.B2a.call(this,a)},this)};
q.E9=function(a,b){T5.ya.E9.call(this,a,b);var c=a.Ii,d=b&&faf(b),f={};f.id=b.photoid;f.serviceId="picasa";f.sourceId="0";f.mimeType=b.videoId?"application/vnd.google-apps.video":"application/vnd.google-apps.photo";f.name=a.getName();f.url=b.photoPageUrl;var h;if(h=d)h=(h=baf(d))?Hf(new Af("http://video.google.com/googleplayer.swf"),"videoUrl",h.getUrl()).toString():void 0;f.embedUrl=h;f.type="video"==b.kind?"video":"photo";f.description=b.description;f.parent=b.albumid;f.lastEditedUtc=Wa();f.sortIndex=
a.Ab;f.isNew=!0;f.sizeBytes=a.mL||void 0;f.mimeType=a.rI()||void 0;var k={};h=k.r=b.rotation;f.imageData=k;a=new Vw(f);var f=b.url,k=b.width,m=b.height;0<k&&0<m||this.getContext().uh.Oa(a);if(f){if(1==h||3==h)h=k,k=m,m=h;a.ZE([new Uw(WRd(f),k,m,!0)])}a.zi=b.albumid&&"picasa.0."+b.albumid;a.setAttribute("dz",b.autoDownsized);a.setAttribute("ut",1E3*b.timestamp);a.setAttribute("ae",b.autoEnhance);a.setAttribute("v",b.imageVersion);a.setAttribute("mediaKey",b.photoMediaKey);b.geoInfo&&(h=b.geoInfo,ia(h.latitude)&&
ia(h.longitude)&&(a.setAttribute("lat",h.latitude),a.setAttribute("lng",h.longitude)));a.Ii=c;this.Vk[a.getId()]=!0;d&&(a.Km=d);return a};var Z3d=function(a){var b=a.Oa.getMetadata();return!a.$b&&(!b||!b.album_id&&!b.auto_create_album)};T5.prototype.reset=function(){T5.ya.reset.call(this);this.YY.clear();this.uh=String(Wa())};
var mZd=function(a,b,c){kd.call(this);this.Sa=a;this.Ke=b;this.jg=c;this.Ab=new TC(this.YY,1E3,this);this.Ag=[]};t(mZd,kd);mZd.prototype.mL=0;mZd.prototype.addListener=function(a){this.Ag.push(a);this.Ab.Il();return this};
mZd.prototype.YY=function(){var a=this.Sa.rd();if(!this.Qb)this.Qb=Wa();else if(Wa()-this.Qb>=a.qna){nZd(this,this.mL,this.Oa);return}a={type:"album",includeFaceData:!0,shapeSuggestions:a.ima};this.jg&&(a.userId=this.jg);var b=this.Sa.od;b.Vd(new u3("picasa",[this.Ke],a),Lp(function(a){a=(a.Ae()||[])[0];this.$b=!(!a||!a.getAttribute("fdc"));this.mL=a&&a.getAttribute("numFaces")||this.mL;this.Oa=!(!a||!a.getAttribute("frpn"));if(this.$b){var d=b.La(a.getId());d&&(a.zJ(d.Kn()),a.TVa=d.TVa);this.Sa.od.Xp([a]);
nZd(this,this.mL,this.Oa);delete this.Qb}else this.Ab.Il()},this),Lp(function(){this.Ab.Il()},this))};var nZd=function(a,b,c){v(a.Ag,function(a){a(b,c)})};mZd.prototype.stop=function(){this.Ab.stop();return this};mZd.prototype.xPc=function(){return this.$b};mZd.prototype.qb=function(){this.Ab.Ma()};
var W5=function(a,b,c){this.Qb="edit"==b.getOption("mode");this.zi=b.getOption("parent")||a.rd().Qb;I5.call(this,a,b,c);this.Ag=null!=this.zi?void 0:0;var d,f=b.getOption("cRename");"photo-upload"!=b.Sa||a.rd().Xb||(f="pname");f&&(d=new g4d(a,f,c),x(this,d));this.mL=d;(this.Ig=this.$wa(a,b,c))?this.ib(this.Ig):this.mL&&this.ib(this.mL);this.Lh=new kX("",this.Ea());this.ib(this.Lh);this.Lh.hd("error");this.Hl=new E5(this.getContext(),this.Qr.q5,"or click to select photos & videos from your computer.",
this.Qr.Sa,this.Ea());this.ib(this.Hl);var h;this.zF()||(h=new A3("a-la-ba",this.Ea()),EQd(h),ndc(h,100),this.ib(h));this.$b=h;this.Vb=null};t(W5,I5);q=W5.prototype;q.ihb=Fx;q.$wa=function(a,b,c){if(this.zF()||this.Qb)return a=oig(b)?new o5(a,b,c):new m4d(a,b,this.mL,c),a.mN=!1,a};q.YK=function(){return this.Xd.getQuery()||"photos"};
q.p1=function(a){var b=this.getContext(),c,d=b.rd().Tx;this.Qb?c=new l4d(b,Lp(this.XD,this),a):d?c=new B4(b,Lp(this.XD,this),Lp(this.iL,this),a):c=new B3(b,Lp(this.XD,this),Lp(this.iL,this),a);this.zF()||this.Qb||I1d(c);if(this.zF&&!this.Qb||this.Qb&&this.Qr&&this.zi)this.Co=wbg(c);return c};q.UEa=function(a){this.Qb?l4d.ya.qh.call(this.cj,a):this.cj.qh(a)};
q.oT=function(){var a=this.Ea();this.Hl.Pa();this.Ig&&this.Ig.Pa();this.Lh.Pa();var b=a.Pa("div","a-B "+this.Koa(),a.Pa("div","a-qc-ir",this.Lh.ta()),this.Hl.ta());this.mL&&(this.mL.Pa(),a.Ep(this.mL.ta(),this.Hl.ta()),Qn(b,"a-qc-iN-Fg"));this.Ig&&a.Ep(this.Ig.ta(),this.Hl.ta());this.$b&&(this.$b.Pa(),this.Vb=a.Pa("div","a-qc-la-nb",a.Pa("div","a-qc-la-E","Uploading"),a.Pa("div","a-qc-la",this.$b.ta())),a.Hy(this.Vb,this.Hl.ta()));return b};q.Koa=function(){return"a-v a-qc"};
q.OW=function(){this.Ea();this.e6=this.ta();var a=this.Hl.Ab;this.bQ=a;this.Ab=this.getContext().We().Oa(this.YK(),a);this.Pf=K5(this,this.Ig?this.Ig.Rd():void 0);this.zi&&this.Pf instanceof T5&&(this.Pf.$b=this.zi)};q.OQ=function(){xd||this.Ab.addCallback(function(a){(a=a.mI&&a.mI())&&this.getHandler().Ja(a,"focus",Lp(this.Hl.zt,this.Hl,!0)).Ja(a,"blur",Lp(this.Hl.zt,this.Hl,!1))},this)};
q.setActive=function(a,b){W5.ya.setActive.call(this,a,b);a&&(this.reset(),haf(this,ka));this.mL&&On(this.mL.ta(),a);this.Ig&&(this.Ig.setActive(a),On(this.Ig.ta(),a));Y2e(this,a&&!this.Qb)};
q.Na=function(){W5.ya.Na.call(this);this.Ab.addCallback(function(a){this.OQ();a.JI()?(this.Hl.zla(!0),a.Lr(this.Hl.ta(),!0),this.getHandler().Ja(this.Hl.iA.ta(),"keydown",function(a){13==a.keyCode&&this.Hl.ta().click()})):a.Lr(this.Hl.iA,!0)},this);this.$b&&this.getHandler().Ja(this.getContext().We(),"ui",this.ejd);Qn(this.cj.Ab,"a-qc-Za");this.Lh.setVisible(!1);this.getHandler().Ja(this.Lh.ta(),"click",this.cjd).Ja(this.Pf,"ql",this.bjd).Ja(this.Pf,"Bk",this.rIb);this.Ig&&(this.getHandler().Ja(this.Ig,
"QE",this.djd),this.Ig.Rd().addListener(Lp(this.ajd,this)));this.mL&&this.getHandler().Ja(this.mL,"Vo",this.xrc).Ja(this.mL,"Si",Lp(this.xAb,this,!0)).Ja(this.mL,"Ti",Lp(this.xAb,this,!1))};q.xAb=function(a){this.UEa(a&&!!(this.Qb||this.Pf&&this.Pf.Ae().length&&G5(this.Pf).length))};q.djd=function(a){this.Ab.addCallback(function(b){"r"==a.Sa?b.Tu(b.getFile(M3(a.La()).getId())):"c"==a.Sa?b.Tu(b.getFile(M3(a.La()).getId())):"t"==a.Sa&&b.tca(b.getFile(M3(a.La()).getId()))},this)};
q.ajd=function(a,b){var c=this.getContext().od;this.Ab.addCallback(function(a){v(b,function(b){(b=M3(c.La(b)))&&(b=a.getFile(b.getId()))&&a.Tu(b)},this)},this);this.Qb||this.Ig.Rd().tf()||this.reset()};q.bjd=function(a){a=a.Sa;if("success"==a.Ii.getState()){if("pwa"==this.getContext().rd().Ag&&a.getAttribute("dz")){var b=800,c=a.Yh();c&&c.length&&(b=c[c.length-1],b=Math.max(b.wc(),b.Ic()));this.ana.display("r",{pixels:b})}this.zi||(this.zi=a.vt()&&a.vt().substring(a.vt().lastIndexOf(".")+1))}};
q.hS=function(){if(this.zF())o4d(this);else{var a=this.Pf.Ae()[0],b=this.getContext().rd(),c=this.Qr.Ab,d="success"!=a.Ii.getState();if(d||pa(c)&&!eb(c,a.Ra()))this.reset(),q4d(this,this.Qr.Ag),d||s4d(this,[a.getId()]);else if(c=p4d(a),d=this.getContext().rd().Oa,!d||c&&Mb(d,c)){this.$b&&this.$b.Sa(100);if(c=b.jg)c=!Naa(this.getContext().rd().Oa,p4d(a));c||b.YY?(b=new w3("crop"),BN(b,"id",a.Qe()),a.vt()&&BN(b,"parent",a.vt().split(".").pop()),BN(b,"service",a.Sa),b.Ab=this.Xd,this.getContext().Mh.On(b)):
this.WC()}else this.reset(),b=b.Oa,1>=b.width?q4d(this,"The photo you uploaded is too small!  It must be at least "+(b.height+" pixels tall.")):1>=b.height?q4d(this,"The photo you uploaded is too small!  It must be at least "+(b.width+" pixels wide.")):q4d(this,"The photo you uploaded is too small!  It must be at least "+(b.width+(" pixels wide and "+(b.height+" pixels tall.")))),s4d(this,[a.getId()])}};
var o4d=function(a){a.zi?L2d(a.getContext().od,a.zi,Z3d(a.Pf),Lp(a.Vk,a)):H8d(a)?a.Vk():a.Co&&a.Ab.addCallback(function(a){a.Lr(this.Co)},a)},H8d=function(a){return"gmailphotos"==a.YK()||"cultural"==a.YK()||a.Xd.getOption("data")&&a.Xd.getOption("data").albumless};
W5.prototype.Vk=function(){this.Pf&&this.Pf.Ae().length&&G5(this.Pf).length&&this.UEa(!this.mL||this.mL.YY);var a=this.getContext();this.zi&&a.rd().mN("bulkTag")&&(this.Oa&&this.Oa.stop(),this.Oa=(new mZd(a,this.zi)).addListener(Lp(function(b){var c=a.od.La(this.Oa.Ke,"picasa");c&&(c.setAttribute("fdc",!0),c.setAttribute("numFaces",b))},this)));this.Co&&this.Ab.addCallback(function(a){a.Lr(this.Co)},this)};
var p4d=function(a){return(a=a.Yh())&&a.length?(a=$a(a),new Kb(a.wc(),a.Ic())):null},q4d=function(a,b){var c=a.Ea(),d="An error occurred. Please try again.";b&&(d=cd(c,b));var f=c.Pa("a",{href:"javascript:void","class":"a-Yd a-s"},"Dismiss");a.Lh.setContent(c.Pa("span",null,d,"\u00a0","\u00a0",f));a.Lh.setVisible(!0);try{f.focus()}catch(h){}};q=W5.prototype;q.cjd=function(a){Sn(a.target,"a-Yd")&&this.Lh.setVisible(!1)};q.ejd=function(){var a=this.getContext().We().BGa();0<a&&this.$b.Sa(100*a)};
q.S_=function(){};q.rIb=function(a){Y2e(this,!1);this.Lh&&this.Lh.setVisible(!1);this.$b&&On(this.Vb,!0);wb(a.Sa,function(a,c){return yb(a.getName(),c.getName())});this.Qb?(X2e(this,a.Sa),Uf(function(){this.start()},0,this)):(this.getContext().rd().dw||this.getContext().Mh.Cca(!1),Uf(function(){haf(this,Lp(function(b){v(a.Sa,function(a){var d=b++;a.Ab=d;this.Ag++},this);this.start()},this))},0,this))};
q.start=function(){W5.ya.start.call(this);this.Co&&this.Ab.addCallback(function(a){a.VM(this.Co)},this)};var X2e=function(a,b){var c=0,d=a.Ig.Rd().Ae();d.length&&(c=d[d.length-1].Ab||0);for(d=0;d<b.length;d++){var f=c++;b[d].Ab=f}};W5.prototype.kt=function(){if(this.mL&&this.mL.focus())return!0;try{return this.Hl.iA.ta().focus(),!0}catch(a){}return!1};
var Y2e=function(a,b){a.Hl.setVisible(b);J5(a,!b)},s4d=function(a,b){var c=a.zi;c&&(c={parent:c},a.Qb||a.Xd.getOption("parent")||a.getContext().rd().Qb||(c.deleteParentIfEmpty="true"),a.getContext().od.Vd(new K3("delete","picasa",b,c),Lp(function(){},a),Lp(function(){},a)))};W5.prototype.iL=function(){this.Oa&&this.Oa.stop();s4d(this,zg(this.Pf.Ae(),function(a){return a.getId()},this));this.getContext().Ab.oD()};W5.prototype.XD=function(){this.WC()};
W5.prototype.WC=function(){this.UEa(!1);this.Oa&&this.Oa.stop();var a=[];this.Ig?a=ec(this.Ig.Rd().Ae(),function(a){a=a.Ii;return!a||"success"==a.getState()},this):a=G5(this.Pf);a.length&&this.mL?gaf(this.mL,a,!this.zi,Lp(this.UEa,this,!0)):this.getContext().Ab.Sl(a)};var haf=function(a,b){null!=a.Ag?b(a.Ag):null!=a.zi?a.getContext().od.Vd(new u3("picasa",[a.zi],{type:"album"}),Lp(function(a){this.Ag=(a=(a.Ae()||[])[0])?a.Tm():0;b(this.Ag)},a),Lp(function(){b(this.Ag=0)},a)):b(a.Ag=0)};q=W5.prototype;
q.M1a=function(){this.reset();q4d(this,this.Qr.Qb)};q.xrc=function(a){a.Sa?(a=this.getContext().rd().Hwa(),this.cj.Pt.setContent(a)):this.cj.Pt.setContent("Done")};
q.reset=function(a){W5.ya.reset.call(this,a);a||(this.zi=this.Xd.getOption("parent")||this.getContext().rd().Qb,this.Ag=null!=this.zi?void 0:0,Y2e(this,!this.Qb),this.Lh&&this.Lh.setVisible(!1),a=(new gn(1)).format(new dn),this.Pf instanceof T5&&(this.Pf.Qb=a),this.mL&&(this.mL.reset(),this.zi?h4d(this.mL,this.zi):this.mL.$b(a)),this.$b&&(On(this.Vb,!1),this.$b.Sa(0)),this.Oa&&this.Oa.stop(),this.Qb&&n4d(this.Ig),this.Co&&Uf(function(){this.Ab.addCallback(function(a){this.nbb()?(On(this.Co.ta(),!0), a.Lr(this.Co),this.Co.ta().style.visibility="visible"):(a.VM(this.Co),On(this.Co.ta(),!1))},this)},50,this))};q.nbb=function(){return this.Qb};q.zq=function(a){return this.Ig?this.Ig.zq(a):W5.ya.zq.call(this,a)};
var Z2e=function(a,b,c){this.YY=null;W5.call(this,a,b,c)};t(Z2e,W5);q=Z2e.prototype;q.$wa=function(a,b,c){this.YY=new T2e(a,b,c);this.YY.mN=!1;return this.YY};q.setActive=function(a,b){Z2e.ya.setActive.call(this,a,b);var c=this.Xd.getOption("seededLocalPhotos");c&&c.length&&(U2e(this.YY,zg(c,S2e)),Y2e(this,!1),this.cj.qh(!0))};q.iL=function(){var a=s8e(this.YY);u8e(a);this.getContext().Ab.Sl(a,"cancel")};q.XD=function(){this.cj.qh(!1);var a=s8e(this.YY,!0);this.getContext().Ab.Sl(a)};
q.yha=function(a){Z2e.ya.yha.call(this,a);this.cj.qh(!0)};q.hS=function(a){Z2e.ya.hS.call(this,a);this.cj.qh(!0)};q.reset=function(a){Z2e.ya.reset.call(this,a);a||this.cj.qh(!0)};var u8e=function(a){v(a,function(a){a.Ii&&a.setAttribute("mfr",!0)})};Z2e.prototype.nbb=function(){return!!this.YY.Rd().tf()};Z2e.prototype.YK=function(){return"localphotos"};Z2e.prototype.Koa=function(){return Z2e.ya.Koa.call(this)+" a-km"};
var iaf=function(){return'<div class="a-w-Da-kb-ba-Da-ka-N"><input class="b-hb"><span class="a-n-jf-ab"></span></div>'},jaf=function(){return'<div class="a-w-Da-kb-ba-Qb-ka-N"><input class="b-hb"></div>'},kaf=function(){return'<div class="a-iu"></div>'};
var laf=function(a,b,c,d){C.call(this,d);this.Sa=a;this.YY=b;this.mL=c;this.Ab=new qz(void 0,void 0,Hp.ia(),this.Ea());this.YY&&this.Sa.od.Vd(new $w({service:"picasa",type:"uploadablealbums"}),Lp(this.oIb,this),ka,!0);this.Ag=new ro;x(this,this.Ag);this.Vb=!1};t(laf,C);q=laf.prototype;
q.Pa=function(){laf.ya.Pa.call(this);var a=this.Sa.ef();if(this.YY){rz(this.Ab,"Add to album");this.Ab.Exa=!0;this.Ab.U4=!0;this.ib(this.Ab,!0);Qn(this.Ab.ta(),"a-w-Da-kb-ba-Da-Qb");Qn(this.ta(),"a-w-Da-kb-ba-Ui-r");var b=this.Ea().fb("d-y-r-c-Qa",this.Ab.ta());Qn(b,"a-n-dc-ia-r");b=U(a,jaf);this.Ab.Ne().Pa();this.Ab.Ne().ta().appendChild(b);this.Ab.Ne().ta().appendChild(U(a,kaf));this.$b=new vx("New album name...");this.$b.yb(this.Ab.Ne().uc("b-hb"))}this.Oa=U(a,iaf);this.ta().appendChild(this.Oa);
this.Qb=new vx("Name your album...");this.Qb.yb(this.uc("b-hb"));On(this.Oa,!1)};q.Na=function(){laf.ya.Na.call(this);var a=this.uc("a-n-jf-ab");this.YY?(Jd(this.getHandler().Ja(this.Ab.Ne(),"show",this.Ekb).Ja(this.Ab.Ne(),"hide",this.NLa).Ja(this.Ab,"change",this.Dkb),a,vw,this.lIb),so(this.Ag,this.$b.ta()),this.getHandler().Ja(this.Ag,"key",this.mIb)):(On(this.Oa,!0),On(a,!1))};q.Ib=function(){to(this.Ag);laf.ya.Ib.call(this)};
q.oIb=function(a){v(a.Ae(),function(a){a=new yp(a.getName()||"",a.Qe(),this.Ea());this.Ab.dg(a)},this);0<this.Ab.tG()&&Rn(this.ta(),"a-w-Da-kb-ba-Ui-r");this.mL&&this.Ab.Wj(this.mL)};q.mIb=function(a){switch(a.keyCode){case 13:this.NLa();break;case 27:this.Vb=!0,this.Ab.hm(!1)}};q.Dkb=function(){if(this.Ab.$e()){var a=this.Ab.$e().getContent();this.Qb.qe(a);this.mL=this.Ab.$e().getValue()}};q.Ekb=function(){we(this.$b.ta(),!1)};
q.NLa=function(){Ea(Ga(this.$b.getValue()))||this.Vb||(this.Qb.qe(this.$b.getValue()),this.mL=void 0,this.Ab.setVisible(!1),On(this.Oa,!0),this.$b.clear());this.Vb=!1};q.lIb=function(){this.$b.clear();this.Qb.clear();this.mL=void 0;this.Ab.jn(null);this.Ab.setVisible(!0);On(this.Oa,!1)};var maf=function(a,b){a.Qb.qe(b);a.mL&&(a.Ab.setVisible(!1),On(a.Oa,!0))};laf.prototype.Ta=function(a){this.Qb.Ta(a)};
var $2d=function(a,b){A.call(this,"Vi");this.Sa=a;this.Ab=b};t($2d,A);var xaf=function(a){return'<div class="a-w-e"><div class="a-w-e-fk"><div class="a-w-e-na-nb"><div class="a-w-e-na-sd"><div class="a-w-e-na-sd-laa"></div><img class="a-w-e-na" src="'+r(a.url)+'"/><div class="a-w-e-v-qa a-w-e-v-qa-Ui"></div>'+('<div class="a-w-e-Oc-L"><div class="a-n-Tb-M"></div><div class="a-w-e-Oc-E">'+paf()+"</div></div>")+(a.rNb?waf():"")+'<div class="a-w-e-wa-di"><img class="a-w-e-wa-m" src="https://ssl.gstatic.com/docs/picker/images/error_circle.png"/></div></div></div></div></div>'}, waf=function(){return'<div class="a-w-e-Oc"><div class="a-w-e-Oc-E">'+paf()+"</div></div>"},paf=function(){return"Album cover"};
var M2d=function(a){F3.call(this,"a-w-e");this.ha=a.ef()};t(M2d,F3);M2d.prototype.Pa=function(a){a.Ea();var b=a.La().Yh(),b=b&&b.length&&b[0].ll(Math.floor(330*zpa()),["o"]).getUrl(),c=F9f(a);c.Pa();Qn(c.ta(),"a-la-ba");var d,f=a.Vb;d=U(this.ha,xaf,{rNb:!f,url:b?b:""});a.Ea().fb("a-w-e-v-qa-Ui",d).appendChild(c.ta());f&&f.appendChild(U(this.ha,waf));b&&X3.ia().load(b,Lp(function(){Qn(d,"a-w-e-Bu")},this));return d};M2d.prototype.ta=function(a,b){return a.Ea().fb(b,a.ta())};
M2d.prototype.update=function(a){if(!a.isDisposed()){var b=a.La(),c=b.Yh(),d=c&&c.length&&c[0].ll(Math.floor(330*zpa())).getUrl(),f=this.ta(a,"a-w-e-na"),b=b.Ii&&b.Ii.getState();this.ta(a,"a-w-e-v-qa");var h=a.ta();b&&"success"!=b||!d||f.src==d?f.src!=d&&Rn(h,"a-w-e-Bu"):X3.ia().load(d,Lp(function(){a.isDisposed()||(c5c(this.ta(a,"a-w-e-na-sd"),0),N2d(a,f,d),Qn(h,"a-w-e-Bu"))},this));Pn(h,"a-w-e-wa","error"==b);Pn(h,"a-w-e-xe","canceled"==b)}};
var N2d=function(a,b,c){Qn(a.ta(),"a-w-eq-na");b.src=c;Uf(function(){a.isDisposed()||Rn(a.ta(),"a-w-eq-na")},500);a.Ik()},O2d=function(a,b){var c=a.Ea(),d,f,c=c.Pa("div","a-w-e-wa-E",b,c.Pa("div",void 0,d=c.Pa("span","a-w-e-uf","Retry"),f=c.Pa("span","a-w-e-wa-dd","\u2022"),c.Pa("span","a-w-e-wa-Ah","Delete")));On(d,!1);On(f,!1);return c},P2d=function(a,b,c){var d=b.La();return(d=d&&d.Yh()&&d.Yh()[0])?(d=new Kb(d.wc(),d.Ic()),d.Cr(new Kb(c,c)).floor(),a=a.ta(b,"a-w-e-na-sd"),0==tX(a)%180?d.height: d.width):b.QF};
var Aaf=function(){var a;a="Delete";return'<div class="a-w-e-F"><div class="a-w-e-ha-Z"><textarea class="a-w-e-ha-N"></textarea></div><div class="a-w-e-F-Zb-ea"><div title="Rotate right" class="a-w-e-F-m a-n-dc-hc"></div><div title="'+a+'" class="a-w-e-F-m a-n-dc-Gj"></div></div></div>'};
var a3d=function(a,b,c){C3.call(this,a,b,void 0,c);this.Bm(16,!1);Co(this,16,!1);this.ima=[];this.Oa=[];this.Ab=new D4e("Write a caption");x(this,this.Ab)};t(a3d,C3);a3d.prototype.Cg=function(){return this.Ab.getValue()};a3d.prototype.Lb=function(a){E4e(this.Ab,a)};a3d.prototype.Pa=function(){var a=V(this.getContext().ka());this.Kb(U(a,Aaf))};
a3d.prototype.Na=function(){a3d.ya.Na.call(this);this.Ea();this.Oa=[this.fb("a-n-dc-Gj"),this.fb("a-n-dc-hc")];this.Ab.yb(this.fb("a-w-e-ha-N"));this.Lb(Ga(this.La().Jd()));Baf(this)};var Caf=function(a){F4e(a.Ab);so(ahb(a),a.jh());v(a.Oa,function(a){this.getHandler().Ja(a,"mouseup",this.yja).Ja(a,"mouseover",this.Pha,!0).Ja(a,"mouseout",this.Maa).Ja(a,"mousedown",this.yH)},a);a.getHandler().Ja(a.Ab.ta(),"focus",Lp(a.Ko,a,!0)).Ja(a.Ab.ta(),"blur",Lp(a.Ko,a,!1))};
a3d.prototype.Db=function(){this.isDisposed()||(this.Ab.hasFocus()?this.getHandler().Ja(this.Ab.ta(),dDa,this.Db):(this.Ko(!1),G4e(this.Ab),this.getHandler().removeAll(),to(ahb(this))))};var Kcf=function(a,b){return Ye(a.ima,function(a){return!Sn(b,a)})};a3d.prototype.Pha=function(a){a=a.target;Pn(a,"a-w-e-F-m-u",Kcf(this,a))};a3d.prototype.Maa=function(a){Sx(a.target,["a-w-e-F-m-u","a-w-e-F-m-X"])};a3d.prototype.yH=function(a){var b=a.target;Pn(b,"a-w-e-F-m-X",Kcf(this,b));a.preventDefault();a.stopPropagation()};
a3d.prototype.update=function(){a3d.ya.update.call(this);Pn(this.ta(),"a-w-e-mN-ha",!Ea(Ga(this.Cg())));Baf(this)};var Baf=function(a){var b=a.La(),b=!!b.Ii&&"success"!=b.Ii.getState();a.Ab.Ta(!b);Pn(a.fb("a-n-dc-hc"),"a-w-e-F-hc-I",b)};a3d.prototype.yja=function(a){var b=a.target;Rn(b,"a-w-e-F-m-X");Kcf(this,b)&&(Sn(b,"a-n-dc-Gj")?this.dispatchEvent("Hn"):Sn(b,"a-n-dc-hc")&&!Sn(b,"a-w-e-F-hc-I")&&this.dispatchEvent("Kn"));a.preventDefault();a.stopPropagation()}; a3d.prototype.Ko=function(a){Pn(this.ta(),"a-w-e-mN-ha-Jt",a);a||this.dispatchEvent("gl")};a3d.prototype.zt=function(a){a3d.ya.zt.call(this,a);a&&this.Ab.rq()};a3d.prototype.qb=function(){a3d.ya.qb.call(this);this.Oa=[]};
var y0e=function(a){a=a||{};return Jp(a.Fb?"./"+wn(a.Fb):"")};var S2d=function(){Ld.call(this);this.Sa=!1};t(S2d,Ld);q=S2d.prototype;q.Dd=function(a){this.Ga=a};q.UW=Fx;q.II=function(){return!(!this.Ga||!this.Ga.Ni())};q.hj=pg(0);q.VL=function(a){this.Sa=a};q.D4=function(){return this.Sa};q.fra=function(){return this.Ga||null};q.Fza=function(){return!this.Ga||this.II()?[]:ec(Br(this.Ga),function(a){var b=a.getStatus();a=a.Vg()&&!!a.Vg().Ob()||0<a.ql().length&&!!a.ql()[0].Ob();return 2!=b&&5!=b&&(a||4==b)},this)};
var Eaf=function(a,b,c){b="";switch(a.errorCode){case 4:c=wA(new Z("{VIEWER_GENDER,select,female{You can't tag {NAME} in this photo.}male{You can't tag {NAME} in this photo.}other{You can't tag {NAME} in this photo.}}"),{VIEWER_GENDER:c.Aa,NAME:r(a.name)});b+=c;break;case 5:break;case 8:c=wA(new Z("{VIEWER_GENDER,select,female{{NAME} is already tagged in this photo.}male{{NAME} is already tagged in this photo.}other{{NAME} is already tagged in this photo.}}"),{VIEWER_GENDER:c.Aa,NAME:r(a.name)});
b+=c;break;case 6:a=wA(new Z("{VIEWER_GENDER,select,female{You can't tag {NAME} because you and {NAME} aren't connected.}male{You can't tag {NAME} because you and {NAME} aren't connected.}other{You can't tag {NAME} because you and {NAME} aren't connected.}}"),{VIEWER_GENDER:c.Aa,NAME:r(a.name)});b+=a+' <a href="http://support.google.com/plus/bin/answer.py?hl='+r(c.locale)+'&answer=1254833&topic=1257351&ctx=topic" target="_blank">Learn more.</a>';break;default:c="Oops... an error has occurred while tagging "+ (r(a.name)+"."),b+=c}return b};
var $2e=function(a,b,c,d){A.call(this,"bj");this.Ga=a;this.YY=b;this.Sa=c;this.Ab=d};t($2e,A);$2e.prototype.Ka=function(){return this.Ga};$2e.prototype.yc=function(){return this.Ab};var v8e=function(a){A.call(this,"cj");this.Sa=a};t(v8e,A);v8e.prototype.getMessage=function(){return this.Sa};var T2d=function(a){this.ha=V(a)};T2d.prototype.mL=function(){return null};T2d.prototype.Qb=function(a){return a?rta(this.ha,y0e,{Fb:a}):null};T2d.prototype.Ab=function(a){return a?Mob({content:a}):null};var U2d=function(a,b){Ld.call(this);this.Sa=a;this.Oa=b;this.Qb=new S2d;x(this,this.Qb);this.Ba=new Hd(this);x(this,this.Ba);a.rd().fG();Ag(E.ia(),"oppe",Lp(function(){E.ia();a.ka();a.mL.addCallback(Lp(function(a){var b=this.Sa.ka();this.Ag=a.getUserId();this.ha=V(b);this.Ab=new FZ(b,a.getUserId(),this.Qb,wa(V2d,this.Sa),new T2d(b),this.Oa);x(this,this.Ab);this.Ba.Ja(this.Ab,"CF",this.bhd).Ja(this.Ab,"DF",this.Vjd).Ja(this.Ab,"$l",this.Wjd).Ja(this.Ab,"EF",this.Zjd).Ja(this.Ab,"zF",Lp(this.Ab.A4,
this.Ab)).Ja(this.Ab,"BF",Lp(this.Ab.U_,this.Ab));this.mL&&a3e(this,this.mL)},this))},this));this.$b=!1};t(U2d,Ld);var a3e=function(a,b){a.mL=b;a.Ab&&a.Ab.Dd(b)};U2d.prototype.Dd=function(a){this.Ab&&this.Ab.Vb();this.Ga=a;this.Qb.Dd(a);zhd(this.Ga)&&this.Ab&&this.Ab.uo();this.mL&&qe(this.mL,1)};U2d.prototype.VL=function(){this.Qb.VL(!1);w8e(this)};var w8e=function(a){a.Ab&&(a.Ab.Vb(),j4(a.Ab,!!a.$b),a.Ab.uo())};q=U2d.prototype;
q.bhd=function(a){this.Ga&&(a.data.tag?Z2d(this,a,"labelShape",Lp(this.vUb,this,a),Lp(this.uUb,this,a)):Z2d(this,a,"createShape",Lp(this.vUb,this,a),Lp(this.uUb,this,a)))};
q.vUb=function(a,b){if(this.Ga){var c=a.data.tag&&a.data.tag.getId();c||(c=b.Ae()[0],this.Dd(G2d(c)),c=c.getId().split("_")[1]);var d=Y2d(this,c);if(d){var f=new Er,h=a.data.ue.Sa.Ob();Py(f,4,h);f.Dc(a.data.ue.Sa.Xa());Lg(d,2,f);d.Fj(a.data.ue.Sa.Oa?1:0)}a.data.tag=d?new nZ(d):null;this.Ab.Fha(a);this.dispatchEvent(new $2e(this.Ga,c,"a",a.data.ue.Sa.yc()))}};
q.uUb=function(a,b){if(this.Ga){this.Ab.Jsa(a);var c=U(this.ha,Eaf,{errorCode:b?b.Ug():0,name:a.data.ue.Sa.getName()});this.dispatchEvent(new v8e(c));this.mL&&qe(this.mL,1)}};q.Vjd=function(){this.VL()};q.Wjd=function(a){if(this.Ga){var b=a.data.tag.getShape(),b=1==w(b,10),c=Lp(this.Xjd,this,a,b);a.data.Sa?Z2d(this,a,"labelShape",c):Z2d(this,a,"unlabelShape",c,void 0,!b)}};
q.Xjd=function(a,b){if(this.Ga){var c=Y2d(this,a.data.tag.getId());c?a.data.Sa?c.Fj(1):b?(c.Fj(4),Mg(c,7,[])):mb(Br(this.Ga),c):a.data.tag.getId();this.Ab.Gha(a)}};q.Zjd=function(a){if(this.Ga){var b=a.data.tag,c=b.getShape(),b=1==w(c,10)&&4!=b.getShape().getStatus(),c=Lp(this.Yjd,this,a,b);a.data.Sa=!1;Z2d(this,a,"unlabelShape",c,void 0,!b)}};q.Yjd=function(a,b){if(this.Ga){var c=Y2d(this,a.data.tag.getId());c?b?(c.Fj(4),Mg(c,7,[])):mb(Br(this.Ga),c):a.data.tag.getId();this.Ab.V_(a)}};
var V2d=function(a,b){return aYd(a,b)},Y2d=function(a,b){return cb(Br(a.Ga),function(a){return a.getId()==b})},Z2d=function(a,b,c,d,f,h){var k={};b.data.ue?(Z4(k,"email",b.data.ue.Sa.yc()),Z4(k,"displayName",b.data.ue.Sa.Ob()),Z4(k,"personUserId",b.data.ue.Sa.Xa())):b.data.tag&&b.data.tag.Ah()&&(Z4(k,"displayName",b.data.tag.Ah().Ob()),Z4(k,"personUserId",b.data.tag.Ah().getId()));Z4(k,"approved",b.data.Sa);Z4(k,"userId",a.Ag);Z4(k,"removeShape",h);b.data.tag&&b.data.tag.Un()&&Z4(k,"labelExistingTag",
b.data.tag.getShape());if(b.data.Ab){h=b.data.Ab;var m=new Ir,p=new Fr;p.lFa(h.left);p.tHa(h.top);Lg(m,1,p);p=new Fr;p.lFa(h.left+h.width);p.tHa(h.top+h.height);Lg(m,2,p);Z4(k,"upperLeftX",Lr(m).wP());Z4(k,"upperLeftY",Lr(m).XEa());Z4(k,"lowerRightX",Mr(m).wP());Z4(k,"lowerRightY",Mr(m).XEa())}!b.data.Sa&&b.data.tag&&b.data.tag.nP()&&Z4(k,"rejectSuggestion",!0);b=b.data.tag&&b.data.tag.getId()?a.Ga.getId()+"_"+b.data.tag.getId():a.Ga.getId();a.Sa.od.Vd(new K3(c,"picasa",[b],k),d||ka,f||ka)},Z4=function(a, b,c){c&&(a[b]=c)};
var O5=function(a,b,c,d,f,h,k){O3.call(this,a,b,c,k);GQa(this,!1);this.Bm(16,!1);this.Bm(8,!0);this.dTa=wa(d,this);this.Mna=wa(f,this);c3e(this)&&d3e(this);this.Pha=!!h;this.Vb=h?h:null;this.wna=new Un(Lp(function(){Pn(this.ta(),"a-w-e-pl-u-Oc",!1)},this),700);x(this,this.wna);this.mna=!1;this.ima=new Ze;this.Ab=new a3d(a,b,k);this.ib(this.Ab,!0);this.yH=new ro;x(this,this.yH);this.Ko={current:0,REa:0,b0:0};this.QF=this.Mma=330;this.fBa=1};t(O5,O3);
O5.prototype.VL=function(a,b){if(a!=this.mna&&this.Oa){On(this.Vb,this.Ka()&&a);if(this.Ka()){if(this.Vb){var c=this.fb("a-w-e-na-sd"),d=this.Vb;le(d,zy(c).round());if(b){var c=he(c,b),f=he(d,b),h=Wd(d);Vd(d,h.x+c.x-f.x,h.y+c.y-f.y)}}this.Oa.VL()}this.mna=a}};O5.prototype.Ka=function(){return G2d(this.La())};O5.prototype.wl=function(){return!(!this.Ka()||!this.Ka().Ni())};O5.prototype.Dd=function(a){var b=this.La();b.Qb=a;b.setAttribute("ae",Uze(a));this.Oa&&this.Oa.Dd(a)};
var d3e=function(a){a.getContext().od.jg(a.La().Qe(),a,function(a){this.Dd(G2d(a))},function(a){return!!G2d(a)&&zhd(G2d(a))})},y8e=function(a){var b=a.Ka();if(b&&Br(b)&&Br(b).length){a.getContext();var c;a.getContext().mL.addCallback(function(a){c=a.getUserId()});var d=[];v(Br(b),function(a){if(a&&a.Vg()&&(0==a.getStatus()||1==a.getStatus())){var b={};b.id=a.getId();b.serviceId="picasa";b.sourceId="0";b.mimeType="application/vnd.google-apps.photo";b.name=a.Vg().Ob();b.type="faces";var b=new Vw(b),
k=this.La().Yh();if(k&&k.length&&w(a,6)&&w(a,6)[0]){var m=k[0].wc(),k=k[0].Ic(),p=N(a,kta,12);b.ZE([new Uw(WRd(w(a,6)[0]),m*Math.abs(w(p,2)-w(p,1)),k*Math.abs(w(p,3)-w(p,4)),!0)])}b.setAttribute("tuid",a.Vg().getId());b.setAttribute("tdn",a.Vg().Ob());b.setAttribute("ss","u");b.setAttribute("so",c);ba(this.ima,a.getId())&&b.setAttribute("te",this.ima.get(a.getId()));this.getContext().od.Xp([b]);d.push(b.getId())}},a);a.La().setAttribute("si",d)}},e3d=function(a,b,c){a.Mma=b;a.iTa=c;a.Ik()};q=O5.prototype;
q.qb=function(){this.tna();O5.ya.qb.call(this)};q.Na=function(){O5.ya.Na.call(this);this.Bf=new H4e(this.fb("a-w-e-na-sd"));x(this,this.Bf);this.Maa=new N5(200,this.fb("a-w-e-na-sd"),this.Ea());this.yja=new Q0d(this.getContext(),30);var a=Lp(this.AIc,this);this.yja.YY=a;Faf(this);this.Zma=!(!this.La().Yh()||!this.La().Yh().length)};q.jh=function(){return this.fb("a-w-e-ha-N")};q.Hca=function(){return!this.qna};q.AIc=function(){this.qna=!1};
q.fSb=function(a){"a"==a.Sa&&(this.Dd(a.Ka()),this.ima.set(a.YY,a.yc()))};q.Ovc=function(a){if(13==a.keyCode&&!a.shiftKey||9==a.keyCode)$4(this,a.shiftKey?"fp":"fn"),a.preventDefault(),a.stopPropagation()};q.zt=function(a){O5.ya.zt.call(this,a);this.Ab.zt(a)};q.UE=function(a){this.sA=a;Pn(this.ta(),"a-w-e-pl-Oc",a);this.Vb&&Pn(this.Vb,"a-w-e-pl-Oc",a)};q.q4c=function(a){a.target==this.Vb&&(a=this.Oa,a.Qb.VL(!a.Qb.D4()),w8e(a))};
var f3d=function(a){var b=a.La(),c=a.Cg(),d=Ga(b.Jd());b.Ee(c);c==d||b.Ii&&"success"!=b.Ii.getState()?b.Ii&&"success"!=b.Ii.getState()&&$4(a,"pc"):a.getContext().od.Vd(new K3("changeCaption","picasa",[b.getId()],{caption:c}),ka,Lp(function(){b.Ee(d);this.Ab.Lb(d);alert("Unable to save the caption. Please try again.")},a),!0)};q=O5.prototype;q.Cg=function(){return Ia(this.Ab.Cg())};q.Dha=function(a){Gaf(this,a)||(this.qj(!this.Sf()),O5.ya.Dha.call(this,a))};
q.hT=function(a){Gaf(this,a)||(this.qj(!this.Sf()),O5.ya.hT.call(this,a))};q.update=function(){O5.ya.update.call(this);this.Qb.update(this);var a=this.La();a.Yh()&&a.Yh().length&&!this.Zma&&($4(this,"t"),this.Zma=!0);c3e(this)&&(this.Ab.Cg()||this.Ab.Lb(a.Jd()),d3e(this));this.Ab.update()};
q.Ik=function(){var a=this.ta();Pn(a,"a-w-e-ib",205==this.QF);Pn(a,"a-w-e-ue",330==this.QF);var b=this.Qb,c=this.Mma,a=this.iTa;le(b.ta(this,"a-w-e-fk"),c,a);var d=new Kb(c,a),f=b.ta(this,"a-w-e-na-nb");le(f,d);Pd(f,"line-height",a+"px");f=205==this.QF;le(this.ta(),c,a+(f?0:42));var h=b.ta(this,"a-w-e-na");if((f=this.La().Yh())&&f.length){var k=c>f[0].wc()&&a>f[0].Ic()?f[0]:f[0].ll(c),b=b.ta(this,"a-w-e-na-sd"),m=0!=tX(b)%180,f=new Kb(k.wc(),k.Ic()),p=this.La()&&M3(this.La())&&M3(this.La()).getState();
!p||"success"==p||c>k.wc()&&a>k.Ic()||f.Cr(d);f.floor();le(h,f);d=0;m&&(d=new Kb(f.height,f.width),c=this.fBa*c-a,d=(0>c?-1:1)*(a-d.height+Math.floor(d.height/2)-(a-f.height+Math.floor(f.height/2))-c));a=$4c(b);a=Ia(a.replace(/translate\([^)]+\)/i,""));d&&(a=Ia(" translate(0px,"+d+"px) "+a));b5c(b,a)}this.La()&&M3(this.La())&&M3(this.La()).getState()};
var Haf=function(a){Caf(a.Ab);O$e(a.Bf);so(a.yH,a.Ab.Ab.ta());so(ahb(a),a.jh());a.getHandler().Ja(a.Maa,"Fi",a.mBa).Ja(a.Maa,"Ei",a.KBa).Ja(a.yH,"key",a.Ovc).Ja(a.Ab,["Hn","Kn","gl"],a.KSa).Ja(a.Bf,"start",a.dTa).Ja(a.Bf,"end",a.Mna).Ja(a.ta(),"focus",Lp(a.zt,a,!0)).Ja(a.ta(),"blur",Lp(a.zt,a,!1));if(a.Pha){a.Oa=new U2d(a.getContext(),Lp(function(){this.ta()&&this.ta().focus()},a));a.Vb&&a3e(a.Oa,a.Vb);var b=G2d(a.La());b&&a.Oa.Dd(b);a.getHandler().Ja(a.Oa,"bj",a.fSb).Ja(a.Vb,"mousedown",a.q4c).Ja(a.Vb,
"mouseup",a.Um)}a.getHandler().Ja(a.Ea().fb("a-w-e-Oc",a.Pha?a.Vb:a.ta()),["mouseout","mouseover","mouseup"],a.Nma)},Faf=function(a){f3d(a);a.zt(!1);a.Oa&&(a.Oa.Ma(),a.Oa=void 0);a.Pha&&On(a.Vb,!1);if(a.Bf.y$)return!1;a.Ab.Db();var b=a.Bf;b.y$||b.getHandler().removeAll();a.getHandler().removeAll();to(a.yH);to(ahb(a));return!0},c3e=function(a){a=a.La();return!a.Ii||"success"==a.Ii.getState()},z8e=function(a){a=a.La();return!!a.Ii&&"error"==a.Ii.getState()};
O5.prototype.Hw=function(a){var b=this.fb("a-w-e-na-sd");this.Ea().contains(b,a.target)&&(a.stopPropagation(),205==this.QF&&O5.ya.Hw.call(this,a));Gaf(this,a)&&this.Ab.Hw(a)};O5.prototype.Um=function(a){Gaf(this,a)?(this.Ab.Um(a),this.Ab.zt(!0)):(m3d(this,a),O5.ya.Um.call(this,a),330==this.QF&&this.qj(!this.Sf()))};
O5.prototype.Nma=function(a){var b=a.target;Sn(b,"a-w-e-Oc-E")&&(b=b.parentElement);c3e(this)&&!this.sA&&(Pn(b,"a-w-e-pl-u-Oc","mouseover"==a.type),"mouseup"==a.type&&(this.UE(!0),$4(this,"co")));return this.sA};var Gaf=function(a,b){return a.Ea().contains(a.Ab.ta(),b.target)},$4=function(a,b){a.dispatchEvent(new $2d(a,b))};O5.prototype.qj=function(a){O5.ya.qj.call(this,a);a&&$4(this,"s")};var m3d=function(a,b){a.Sf()?$4(a,"c"):b.shiftKey?$4(a,"es"):!ca&&b.ctrlKey||ca&&b.metaKey||$4(a,"c")};
O5.prototype.mBa=function(a){this.qna=!0;this.yja.Oa();$4(this,"r");this.Ko.b0?Vf(this.Ko.b0):this.Ko.current=a.Ab%360;this.Ko.REa=a.Sa%360;this.Ko.b0=Uf(this.tna,3E3,this)};O5.prototype.tna=function(){!this.isDisposed()&&this.Ko.b0&&(Vf(this.Ko.b0),this.Ko.b0=0,R0d(this.yja,this.La(),new U3(this.Ko.current,this.Ko.REa)))};O5.prototype.KSa=function(a){switch(a.type){case "Kn":$4(this,"rcw");break;case "Hn":$4(this,"del");break;case "gl":f3d(this)}};O5.prototype.KBa=function(){Rn(this.ta(),"a-w-e-i0")};
var Q2d=function(a){kX.call(this,"",a);this.hd("info");this.Sa=new Un(this.$b,5E3,this);x(this,this.Sa);this.Qb=new Un(wa(this.setVisible,!1),250,this);x(this,this.Qb)};t(Q2d,kX);Q2d.prototype.setVisible=function(a){this.Nb()&&(this.Sa.stop(),this.Qb.stop(),a&&this.Sa.start(),On(this.ta(),a),Q2d.ya.setVisible.call(this,a))};Q2d.prototype.$b=function(){this.Sa.stop();this.Qb.start();Pn(this.ta(),"b-Ff-Pi",!1)};
var Kaf=function(a,b){A.call(this,a);this.Sa=b};t(Kaf,A);var Laf=function(a){gD.call(this,a);this.setVisible(!1);this.IA(!1);this.ud(!1);this.setPosition(2);this.Qb.push("a-w-e-wa-i");this.df=this.Sa=null};t(Laf,gD);Laf.prototype.Na=function(){Laf.ya.Na.call(this);this.getHandler().removeAll()};Laf.prototype.mL=function(){this.Sa&&(F9f(this.Sa).Sa(0),this.setVisible(!1),this.dispatchEvent(new Kaf("tk",this.Sa)))};Laf.prototype.$b=function(){this.Sa&&(this.setVisible(!1),this.dispatchEvent(new Kaf("sk",this.Sa)))};
var Qaf=function(a,b){a.Sa&&Oaf(a);a.Sa=b;var c=M3(b.La());a.setContent(O2d(b,c.Sa||""));a.Fg(b.Qb.ta(b,"a-w-e-wa-m"));a.df.addCallback(function(a){if(!this.isDisposed()){if(a=a.getFile(c.getId()).cQ())a=c&&c.dG()?c.dG().status:null,a=!a||"IMAGE_TOO_BIG"!=a&&"INVALID_REQUEST"!=a&&"INSUFFICIENT_PERMISSION"!=a&&"NOT_IMAGE"!=a&&"BAD_IMAGE"!=a?!0:!1;On(this.fb("a-w-e-uf"),a);On(this.fb("a-w-e-wa-dd"),a)}},a);a.ta()&&(a.setVisible(!0),a.Wd());a.getHandler().Ja(a.fb("a-w-e-uf"),"click",a.mL).Ja(a.fb("a-w-e-wa-Ah"), "click",a.$b)},Oaf=function(a){a.getHandler().removeAll();a.ta()&&a.setVisible(!1);a.Sa=null};
var q3d=function(a,b,c){A.call(this,"VF");this.Sa=b;this.Ab=a;this.YY=c};t(q3d,A);q3d.prototype.getMessage=function(){return this.YY};var r3d=function(a){k4.call(this,"horizontal",D3.ia(),a)};t(r3d,k4);r3d.prototype.fBb=ka;r3d.prototype.mha=ka;var S5=function(a,b,c){j5.call(this,a,b,c);this.wna=b.getOption("mode")||"of";this.Wka=new M2d(this.getContext());this.Qb=new Yv;this.sA=[];this.LW=new ag;b.or()||this.LW.By();this.Mma="s"==b.getOption("thumbnailSize")?205:330;this.vLb=new Un(this.Op,500,this);s3d(this,330,this.Mma);this.Be=!0;this.ima=new Laf(c);x(this,this.ima);this.Pr=0;this.yja=this.Km=this.Vb=null;this.tna=1;this.Xb=null};t(S5,j5);var A3d=["transition","WebkitTransition","msTransition","OTransition","MozTransition"];q=S5.prototype;
q.vB=function(a){S5.ya.vB.call(this,a);this.Op()};q.Brb=function(a,b,c){return new r3d(c)};q.ED=function(a){var b=this.Ea(),c;"n"!=this.wna&&(c=b.Pa("div","a-w-e-zs-O1-sI"),this.Vb.appendChild(c));return new O5(this.getContext(),a,this.Wka,Lp(this.PAa,this),Lp(this.h2b,this),c,b)};q.gR=ka;q.Zba=function(a){a.ta()||a.Pa();a.QF=this.Mma;this.Qb.set(a.getId(),a);Qn(a.ta(),"a-w-eq");S5.ya.Zba.call(this,a);Uf(function(){Rn(a.ta(),"a-w-eq")},500);this.zF=y3d(this);var b=this.Qb.Fc()-1;this.oXa(!1,a,b)};
q.Ik=function(a){var b={};v(a,function(a){b[a.getId()]=!0},this);var c={};bXc(this,function(a){var d=a.La().getId();c[d]=!0;b[d]||(e3e(this,a),this.jOa(d))});var d=[];v(a,function(a){var b=a.getId();c[b]||d.push(a)},this);this.Hr(d)};q.jOa=function(a){var b=x5(this,a);b&&e3e(this,b);b&&M3(b.La())&&"canceled"==M3(b.La()).getState()&&this.Rd().dL([a]);S5.ya.jOa.call(this,a)};q.Fc=function(){return this.Qb.Fc()};
var e3e=function(a,b){b==a.Ye&&(a.Ye=void 0);a.Oa==b&&(a.Oa=void 0);Fc(b.Vb);a.Qb.remove(b.getId());a.Op()};S5.prototype.Hr=function(a){S5.ya.Hr.call(this,a);Uf(function(){this.dispatchEvent("sm")},0,this)};S5.prototype.iO=function(a){S5.ya.iO.call(this,a);this.LW.jl||this.LW.By(void 0)};var raf=function(a){var b=[];a.Qb.forEach(function(a){M3(a.La())&&"success"!=M3(a.La()).getState()||b.push(a.La().getId())});return b};
S5.prototype.Pa=function(){S5.ya.Pa.call(this);this.Km=this.Ea().Pa("div","a-w-Db-KO");On(this.Km,!1);this.ib(this.ima,!0)};
S5.prototype.Na=function(){S5.ya.Na.call(this);var a=this.Ea();Qn(this.ta(),"a-w-Te");we(this.ta(),!0);this.Vb.appendChild(this.Km);this.yja=a.Pa("div","a-w-Db-rsa-os");this.getContainer().ta().appendChild(this.yja);On(this.yja,!1);this.getHandler().Ja(this.ta(),["mouseover","mousedown","mouseup","mouseout"],this.Uma).Ja(this.Vb,"mousedown",this.RAa).Ja(this.Vb,"mouseup",this.dTa,!0).Ja(this.ima,["sk","tk"],this.y5a)};S5.prototype.nHa=function(){return this.Ea().fb("a-w-Te-nb")};
var $af=function(a,b){a.sA.push(b);Haf(b);var c=a.Ea().fb("a-n-m-Oc-J",b.Vb);c&&qr(b.getHandler(),c,["mouseover","mousedown","mouseout"],function(a){b.Nma(a)&&f3e(this,b)},void 0,a);qr(b.getHandler(),b,"Vi",a.JRa,void 0,a);b.Oa&&("of"==a.wna&&(b.Oa.$b=!0),qr(b.getHandler(),b.Oa,"cj",function(a){this.dispatchEvent(new q3d("msg",b,a.getMessage()))},void 0,a),v3d(a));z8e(b)&&Qaf(a.ima,b)},hbf=function(a){a.sA=ec(a.sA,function(a){return!Faf(a)})};
S5.prototype.Uma=function(a){var b;for(b=a.target;b&&b!=this.ta()&&!Sn(b,"a-w-e");)b=b.parentElement;b=b?this.Qb.get(b.id,void 0):void 0;var c=this.Oa!=b;this.Oa&&c&&(hbf(this),this.Oa=void 0);if(b)switch(this.Oa=b,c&&$af(this,b),a.type){case "mouseover":this.Oa.Hca()&&this.Oa.zo(a);break;case "mousedown":this.Oa.Hw(a);break;case "mouseup":this.Oa.Um(a);break;case "mouseout":this.Oa.fp(a)}};
var f3e=function(a,b){bXc(a,function(a){a.UE(!1)});b.UE(!0);a.dispatchEvent(new q3d("cp",b))},u3d=function(a,b,c){a.LW.addCallback(function(){var a={},f=1;v(b,function(b){a[b]=f++});var h=this.Qb.Rc();wb(h,function(b,c){return(a[b.La().getId()]||99999)-(a[c.La().getId()]||99999)});this.Qb.clear();v(h,function(a){this.Qb.set(a.getId(),a)},this);this.Op(!c)},a)};
S5.prototype.RAa=function(a){this.Oa&&(Oc(this.Oa.ta(),a.target)||this.Oa.Vb&&Oc(this.Oa.Vb,a.target))?this.Oa.Bf.Sa(a):a.clientX>this.Vb.clientWidth||(td(a)?(G3d(this),this.Nma=he(a,this.Vb),this.Nma.y+=this.Vb.scrollTop,Vd(this.Km,this.Nma),On(this.Km,!1),this.getHandler().Ja(this.Vb,"mousemove",this.Gna,!0)):this.dTa(a))};
S5.prototype.Gna=function(a){var b=this.Nma;a=he(a,this.Vb);a.x=Math.min(a.x,this.Vb.clientWidth-20);a.y+=this.Vb.scrollTop;On(this.Km,5<Math.abs(b.x-a.x)||5<Math.abs(b.y-a.y));var c=Math.abs(b.x-a.x),d=Math.abs(b.y-a.y);le(this.Km,c,d);Vd(this.Km,b.x>a.x?b.x-c:a.x-c,b.y>a.y?b.y-d:b.y);var f=pe(this.Km);bXc(this,function(a){a.qj(daf(f,pe(a.ta())))})};
var bXc=function(a,b,c){if(c){var d=-1;a.Qb.forEach(function(a){d++;b.call(this,a,d)},a)}else a.Qb.forEach(b,a)},Fbf=function(a,b){var c=-1;a.Qb.some(function(a){c++;return a==b});return c};S5.prototype.dTa=function(a){ve(this.Km)&&(On(this.Km,!1),a.stopPropagation());this.getHandler().nb(this.Vb,"mousemove",this.Gna,!0)};
var s3d=function(a,b,c){a.Mma=c;b!=a.Pr&&(a.Pr=b,bXc(a,function(a){a.QF=c}),a.Nb()&&a.Op())},w3d=function(a){var b=[];a.Qb.forEach(function(a){var d=M3(a.La());d&&"canceled"==d.getState()||b.push(a.La())});return b};S5.prototype.Op=function(a){if(this.Be&&this.Qb.Fc()){var b=oe(this.ta().parentElement).width+10;this.tna=Math.max(Math.floor(b/(this.Pr+10)),1);this.zF=y3d(this);Uf(function(){this.isDisposed()||(a||SJe(this),bXc(this,Lp(this.oXa,this,!!a),!0))},0,this);Gbf(this)}};
var SJe=function(a){var b=["mouseover","mousedown","mouseup","mouseout"],c=!1;a.getHandler().nb(a.ta(),b,a.Uma);Gr(a.getHandler(),a.ta(),[E7a],function(){c||(this.getHandler().Ja(this.ta(),b,this.Uma),c=!0)},void 0,a);Uf(function(){c||(this.getHandler().Ja(this.ta(),b,this.Uma),c=!0)},750,a)};S5.prototype.oXa=function(a,b,c){c=c||Fbf(this,b);e3d(b,this.Pr,this.zF[x3d(this,c)]);var d=b.ta();a&&z3d(this,d,!1);Vd(d,B3d(this,c));a&&Uf(function(){z3d(this,d,!0)},0,this);b.VL(!1,this.ta())};
var x3d=function(a,b){return Math.floor(b/a.tna)},y3d=function(a){var b={};bXc(a,function(a,d){var f=x3d(this,d),h=P2d(this.Wka,a,this.Pr)||b[f]||this.Pr;b[f]=Math.max(h,b[f]||0)},!0);return b},z3d=function(a,b,c){v(A3d,function(a){b.style[a]=c?"":"none"},a)},B3d=function(a,b){if(!a.Qb.Fc())return new Gb(0,0);for(var c=a.Pr+10,d=x3d(a,b),f=b%a.tna,h=0,k=205==a.Mma,m=0;m<d;m++)h+=a.zF[m]+(k?0:42)+20;return new Gb(f*c,h)};S5.prototype.wc=function(){return oe(this.ta()).width};
var Gbf=function(a){var b=0;a.Qb.Fc()&&(b=a.zF[Qb(a.zF)-1]+(205==a.Qb.Sa.Sa.value.QF?0:42),b=B3d(a,a.Qb.Fc()-1).y+b+20);ne(a.ta(),b)};S5.prototype.Gya=Fx;S5.prototype.cD=ka;S5.prototype.y5a=function(a){var b=a.Sa;switch(a.type){case "sk":a=b.La();this.Rd().dL([a.getId()]);this.dispatchEvent(new q3d("d",b));break;case "tk":this.df.addCallback(function(a){var d=M3(b.La());a.tca(a.getFile(d.getId()))},this)}};
S5.prototype.JRa=function(a){switch(a.Ab){case "c":G3d(this);break;case "co":f3e(this,a.Sa);break;case "del":a=a.Sa;var b=this.Oa.La();this.Rd().dL([b.getId()]);Ibf(this,b.vt()&&b.vt().split(".").pop(),b.Qe());this.dispatchEvent(new q3d("d",a));break;case "es":E3d(this,a.Sa);break;case "fn":C3d(this,a,1);break;case "fp":C3d(this,a,-1);break;case "pc":this.dispatchEvent(a);break;case "rcw":a=a.Sa;a.fBa=oe(a.fb("a-w-e-na-nb")).height/a.Mma;Qn(a.ta(),"a-w-e-i0");a.Maa.pT("editbar-rotate-right");this.Op();
break;case "t":this.vLb.start();break;case "s":this.Ye=a.Sa}};var C3d=function(a,b,c){hbf(a);if(205==b.Sa.QF)a.dispatchEvent(b);else{var d=a.Qb.Rc(),f=fb(d,b.Sa);c=f+c;0<=f&&0<=c&&c<d.length?(b=d[c],$af(a,b),b.zt(!0)):a.dispatchEvent(b)}};S5.prototype.setActive=function(a){S5.ya.setActive.call(this,a);a&&this.Op(!0)};
var E3d=function(a,b){if(a.Ye){var c=a.Qb.Rc(),d=fb(c,a.Ye),f=fb(c,b),h=!0,k=F3d(a);if(1<k.length)for(var m=0;m<k.length-1;m++){var p=fb(c,k[m]),u=fb(c,k[m+1]);if(1<Math.abs(p-u)){h=!1;break}}G3d(a);h&&k.length&&v(k,function(a){a.qj(!0)});if(d>f)for(m=d;m>f;m--)c[m].qj(!0);else for(m=d;m<f;m++)c[m].qj(!0)}},Ibf=function(a,b,c){a.getContext().od.Vd(new K3("delete","picasa",[c],null!=b?{parent:b}:null),Lp(function(){},a),Lp(function(){},a))},G3d=function(a){bXc(a,function(a){a.qj(!1)})},F3d=function(a){var b=
[];a.Qb.forEach(function(a){a.Sf()&&b.push(a)});return b};
S5.prototype.PAa=function(a,b){var c=a.Bf;a.Sf()||(m3d(a,b),a.qj(!0));this.Xb=he(b,a.ta());var d=oe(a.fb("a-w-e-na-nb")).height;this.Xb.y+=this.Pr-d;On(this.yja,!0);d=F3d(this);v(d,function(a){Qn(a.ta(),"a-w-e-lA")});this.Db=I3d(this,a);Fbf(this,a);K3d(this,b);this.getContainer().ta().appendChild(this.Db);Pd(this.Ea().fb("a-w-Db-e-Gg",this.Db),"top",Math.floor(this.Pr-P2d(this.Wka,a,this.Pr)/2)+"px");this.mna=c;this.getHandler().Ja(c,"drag",this.KSa);this.nA.start();this.getHandler().Ja(this.nA.ta(),
"scroll",this.lTa)};S5.prototype.KSa=function(a){K3d(this,a);a=Wd(this.Db);L3d(this,new Gb(a.x+this.Xb.x,a.y+this.Xb.y))};S5.prototype.h2b=function(a,b){On(this.yja,!1);var c=F3d(this);v(c,function(a){Rn(a.ta(),"a-w-e-lA")});this.mna&&(this.getHandler().nb(this.mna,"drag",this.KSa),this.mna=void 0);K3d(this,b);M3d(this,Wd(this.Db));Fc(this.Db);this.Ye=this.Db=void 0;this.dispatchEvent(new q3d("ror"));this.nA.stop();this.getHandler().nb(this.nA.ta(),"scroll",this.lTa)};
var I3d=function(a,b){var c=a.Ea(),d=c.Pa("div","a-w-Db-msa",J3d(a,b)),f=F3d(a);d.appendChild(c.Pa("div","a-w-Db-e-Gg",(new Z("{COUNT, plural, =0 {}=1 {1 photo}other {{COUNT} photos}}")).format({COUNT:f.length})));mb(f,b);if(0<f.length){var h=J3d(a,f[0]);Qn(h,"a-w-Db-e-IP-H1");c.pC(d,h,0)}1<f.length&&(f=J3d(a,f[1]),Qn(f,"a-w-Db-e-IP-I1"),c.pC(d,f,0));return d},J3d=function(a,b){var c,d=b.Ea(),f=b.La()&&b.La().Yh()&&b.La().Yh().length&&b.La().Yh()[0].ll(330),h=d.Pa("div","a-w-Db-e-W-z",c=d.Pa("img",
{src:f&&f.getUrl(),"class":"a-w-Db-e-W"}));if(f){var k=new Kb(a.Pr,a.Pr),f=new Kb(f.wc(),f.Ic()),f=f.Cr(k);le(h,k);le(c,f);Pd(c,"marginLeft",-Math.floor(f.width/2)+"px");c3e(b)||qe(c,.3);d=d.fb("a-w-e-na-sd",b.ta());c5c(c,tX(d))}return h};S5.prototype.lTa=function(a){var b=this.nA.Ab,c=ie(this.getContainer().ta());K3d(this,a,new Gb(b.x-c.x,b.y-c.y))};
var K3d=function(a,b,c){b=c||he(b,a.getContainer().ta());var d=oe(a.ta());c=d.width;d=d.height-20;b.x=0>b.x?0:Math.min(c,b.x);b.y=0>b.y?0:Math.min(d,b.y);Vd(a.Db,new Gb(b.x-a.Xb.x,b.y-a.Xb.y))},L3d=function(a,b){var c,d,f=0;a.Qb.some(function(a){var k=B3d(this,f);a=oe(a.ta());k=new Nd(k.x-5,k.y-10,a.width+10,a.height+20);if(k.contains(b))return c=b.x<=k.left+k.width/2?f-1:f,d=c+1,f++,!0;f++;return!1},a);ia(c)||ia(d)||(c=a.Qb.Fc()-1);bXc(a,function(a,b){Pn(a.ta(),"a-w-e-jq-ya",b==c);Pn(a.ta(),"a-w-e-jq-Ja",
b==d)},!0)},M3d=function(a,b){var c=a.Qb.Rc(),d=c.length-1;Cd(c,function(a,b){return Sn(a.ta(),"a-w-e-jq-ya")?(d=b+1,!0):Sn(a.ta(),"a-w-e-jq-Ja")?(d=0==b?0:b-1,!0):!1},a);for(var f=[],h=Lp(function(a){a=c[a];a.Sf()||f.push(a)},a),k=F3d(a),m=0;m<d;m++)h(m);tb(f,k);for(m=d;m<c.length;m++)h(m);a.Qb.clear();v(f,function(a){this.Qb.set(a.getId(),a)},a);a.zF=y3d(a);b.y+=a.Pr-a.zF[x3d(a,d)];v(f,function(a,d){Sx(a.ta(),["a-w-e-jq-ya","a-w-e-jq-Ja"]);Qn(a.ta(),a.Sf()?"a-w-e-L-Vs":"a-w-e-NO-Vs");if(a.Sf())Qn(a.ta(),
"a-w-e-Toa"),Vd(a.ta(),b),Uf(function(){Rn(this.ta(),"a-w-e-Toa")},0,a);else{var f=x3d(this,d),h=x3d(this,fb(c,a));Pn(a.ta(),"a-w-e-Noa",f!=h)}},a);Uf(function(){this.Op();Uf(function(){bXc(this,function(a){Rn(a.ta(),"a-w-e-Noa")})},10,this)},0,a);Uf(function(){bXc(this,function(a){Sx(a.ta(),["a-w-e-NO-Vs","a-w-e-L-Vs","a-w-e-Noa"])},!0)},400,a)};S5.prototype.scrollIntoView=function(a){(a=x5(this,a))&&a.ta()&&(new SSd(a.ta(),1E3)).play()};S5.prototype.UE=function(a){(a=x5(this,a))&&a.UE(!0)};
var B8e=function(a){bXc(a,function(a){y8e(a)})},v3d=function(a){if("n"!=a.wna&&205!=a.Mma){var b=Ye(a.Qb.Rc(),function(a){a.VL(!1);return!0});a.Oa&&b&&a.Oa.VL(!0,a.ta())}};S5.prototype.Hca=function(){return Ye(this.Qb.Rc(),function(a){return a.Hca()})};
var Jbf=function(a,b){A.call(this,"al");this.Sa=a;this.N1a=b};t(Jbf,A);var a5=function(a,b,c){Fp.call(this,void 0,void 0,Hp.ia(),c);this.Sa=a;this.nn=b};t(a5,Fp);a5.prototype.Pa=function(){a5.ya.Pa.call(this);this.Ne().Pa();Qn(this.Ne().ta(),"a-Qa-r");var a=new kpa("Order by",this.Ea());this.dg(a);Qn(a.ta(),"a-Qa-A-Nb");v(["Date taken","Name","Reverse"],function(a){a=new yp(a,a);this.dg(a);Qn(a.ta(),"a-Qa-A")},this);Qn(this.ta(),"a-Qa-r")};a5.prototype.Na=function(){a5.ya.Na.call(this);this.getHandler().Ja(this.Sa.We(),"ui",this.Ab)};
a5.prototype.Aha=function(a){switch(a.target.kc()){case "Date taken":this.nn(Pbf,!1);break;case "Name":this.nn(Qbf,!1);break;case "Reverse":this.nn(Rbf,null)}a5.ya.Aha.call(this,a)};a5.prototype.Ab=function(){var a=this.Sa.We().Aia();this.isEnabled()==a&&this.Ta(!a)};
var Pbf=function(a){Iaa(a,function(a,c){return yb(a.getAttribute("ut")||a.Zta,c.getAttribute("ut")||c.Zta)})},Qbf=function(a){Iaa(a,function(a,c){return MZa(a.getName(),c.getName())})},Rbf=function(a){for(var b=0;b<a.length/2;b++){var c=a[b];a[b]=a[a.length-b-1];a[a.length-b-1]=c}};
var Sbf=function(a,b,c){s3.call(this,a,c);this.Qb=new A3("a-la-ba",this.Ea());EQd(this.Qb);ndc(this.Qb,100);this.Qb.Sa(0);this.ib(this.Qb);this.YY=this.Oa=null;a=this.Ea();this.Ama=new Ot(a.Pa("span","a-w-v-c-B","Upload from computer"),a);this.ib(this.Ama);this.mL=new laf(this.getContext(),!!b.getOption("eata"),b.getOption("mtp"),this.Ea());this.Ab=new sz(a.Pa("div","a-n-Zd-D-y7"),wp.ia());this.ib(this.Ab);this.$b=new sz(a.Pa("div","a-n-Zd-D-x7"),wp.ia());this.ib(this.$b);b="s"==b.getOption("thumbnailSize");
this.Ab.Ld(!b);this.$b.Ld(b);this.Ag=null};t(Sbf,s3);
Sbf.prototype.Pa=function(){var a=this.Ea(),b=new a5(this.getContext(),Lp(function(a,b){this.dispatchEvent(new Jbf(a,b))},this),a);this.Qb.Pa();this.Ama.Pa();b.Pa();this.ib(b);var c;this.Ab.Pa();this.$b.Pa();Qn(this.Ab.ta(),"a-w-ba-ue-na");Qn(this.$b.ta(),"a-w-ba-ib-na");this.Kb(a.Pa("div",{"class":"a-w-ba",style:"display: none"},a.Pa("div","a-w-ba-ya",c=a.Pa("div","a-w-Da-kb-ba"),this.Oa=a.Pa("div","a-w-la-Ng",this.Qb.ta(),this.Km=a.Pa("div","a-w-la-ka"),this.YY=a.Pa("div","a-w-la-TF-v","Stop upload"))),
a.Pa("div","a-w-ba-Ja",this.Ama.ta(),a.Pa("div","a-w-ba-UF",this.Ab.ta(),this.$b.ta()),b.ta())));this.mL.render(c);Qn(b.ta(),"a-w-X1-Qa-r");a=this.Ea().fb("d-y-r-c-Qa",b.ta());Qn(a,"a-n-dc-ia-r");Qn(this.YY,"d-s-c");we(this.ta(),!0);we(c,!1);Tbf(this,!1)};Sbf.prototype.Na=function(){Sbf.ya.Na.call(this);this.getHandler().Ja(this.Ab,"action",this.Vb).Ja(this.$b,"action",this.Vb).Ja(this.getContext().We(),"ui",this.Ko).Ja(this.YY,"click",this.Vk)};
var Zbf=function(a,b){if(!xd){var c=a.Ama;Sc(c.ta(),!1);var d=b.mI&&b.mI();d&&a.getHandler().Ja(d,"focus",Lp(c.zt,c,!0)).Ja(d,"blur",Lp(c.zt,c,!1))}},acf=function(a){return a.Ag.addCallback(function(a){a.Lr(this.Ama,!0)},a)},ccf=function(a,b,c){0>=c||a.Ea().uq(a.Km,(new Z("{TOTAL, plural, =0 {unused plural form}=1 {1 photo}other {{STARTED} / {TOTAL} photos}}")).format({STARTED:b,TOTAL:c}))},Tbf=function(a,b){qe(a.Oa,b?1:0);Pd(a.Oa,"margin-top",b?"0":"-90px")};
Sbf.prototype.Vk=function(){Tbf(this,!1);this.dispatchEvent("ll")};Sbf.prototype.Vb=function(a){a=a.target==this.Ab;this.Ab.Ld(a);this.$b.Ld(!a);this.dispatchEvent("kl")};Sbf.prototype.Ko=function(){var a=this.getContext().We();this.Qb.Sa(100*a.BGa());var b=a.Qb,a=a.hW();b<a&&ccf(this,b+1,a)};
var O3d=function(a,b,c){I5.call(this,a,b,c);this.Ke=b.getOption("parent");this.Ag=!!b.getOption("upload");this.mL=new ag(void 0,this);this.Ke&&this.mL.By();this.L2=new ag(void 0,this);this.Ea();this.yq=new Sbf(a,b,c);this.ib(this.yq);this.Ig=new S5(a,b,c);this.ib(this.Ig);this.$b=0;this.Lh=new Q2d(this.Ea());this.ib(this.Lh);this.y6=null;this.Hl=this.Qb=this.Oa=void 0;eVd(E.ia(),"oppe")};t(O3d,I5);q=O3d.prototype;q.YK=function(){return"photos"};
q.p1=function(a){a=new B3(this.getContext(),Lp(this.XD,this),Lp(this.iL,this),a);I1d(a);a.qh(!1);return a};q.oT=function(){var a=this.Ea();this.yq.Pa();this.Ig.Pa();this.y6=a.Pa("div","a-w-Ra",this.Oa=a.Pa("input","a-w-Bd-N"),this.yq.ta(),a=a.Pa("div","a-w-Te-nb",a.Pa("div","a-w-Te-Ng",this.Ig.ta())));this.Ig.Vb=a;we(this.y6,!0,!0);we(this.Oa,!0);we(a,!0);this.Lh.Pa();this.Lh.render(this.y6);Qn(this.Lh.ta(),"a-ir");return this.y6};q.vB=function(){O3d.ya.vB.call(this);ecf(this)};
q.Na=function(){O3d.ya.Na.call(this);we(this.cj.Ab,!0);var a=this.Xd.getOption("albumTitle");a?(this.Qb=a,maf(this.yq.mL,this.Qb),this.L2.addCallback(function(b){b&&(b.Wb(a),this.getContext().od.Xp([b]))},this)):this.Ke&&(this.yq.mL.Ta(!1),this.L2.addCallback(function(a){!this.isDisposed()&&a&&(this.Qb=a.getName(),maf(this.yq.mL,this.Qb),this.yq.mL.Ta(!0))},this));this.Ke?this.Pf.$b=this.Ke:this.Pf.Qb=this.Qb;this.mL.addCallback(this.NGa);this.getHandler().Ja(this.Ea().getWindow(),"resize",this.acb).Ja(this.Ig,
"sm",this.acb).Ja(this.Pf,"Bk",this.qIb).Ja(this.Pf,"ql",this.Vb).Ja(this.Ig,"Vi",this.Sid).Ja(this.Ig,"VF",this.mBc).Ja(this.getContext().Qb,"set-album-sort-order",this.YY).Ja(this.yq,"al",this.lkb).Ja(this.yq,"kl",this.acb).Ja(this.yq,"ll",this.eSb);this.Ab.addCallback(function(a){Zbf(this.yq,a);var c=this.Xd.getOption("ifp");c&&this.Ig.LW.addCallback(function(){var d=R3d(this,c,a);d&&this.Ig.scrollIntoView(d.getId())},this);this.Ig.LW.addCallback(function(){this.L2.addCallback(function(c){var f=
this.Xd.getOption("coverPhotoId")||c.getAttribute("cpid");f&&(c.setAttribute("cpid",f),(c=R3d(this,f,a))&&this.Ig.UE(c.getId()))},this)},this);this.Ig.LW.addCallback(function(){var c=[];if(a){var f=$b(zg(this.Ig.Rd().Ae(),function(a){return a.Qe()}));v(a.Lt(),function(h){var k=a.zx(h);(k=k&&k.dG())&&f[k.photoid]||c.push(h)},this);c.length&&W3d(this,C2d(this.Pf,c))}this.UFb&&Uf(function(){Q3d(this,this.UFb,a)},10,this)},this);fcf(this)},this)};
var fcf=function(a){a.Ag||!a.Ke?a.Ab.addCallback(function(a){!a.Lt().length||Ye(a.Lt(),function(c){return L1d(HY(a,c))})?(this.getContext().Mh.Cca(!0),J5(this,!1),this.Hl=new E5(this.getContext(),this.Qr.q5,"or click to select photos & videos from your computer.","Click to open the file browser.",this.Ea()),this.ib(this.Hl),this.Hl.render(this.y6),this.Hl.zla(a.JI()),a.Lr(this.Hl.ta(),!0),On(this.fb("a-w-Te-nb"),!1),Qn(this.fb("a-Za-Bb"),"a-w-v")):kcf(this)},a):kcf(a)},kcf=function(a){if((!a.Ke||
a.Ag)&&!a.fb("a-fwHlj-qUPACb-zb")){var b=a.Ea(),c=u7b(b,"a-w-Te-Ng");b.pC(c,U(a.getContext().ef(),Fag,{Jdb:ca,deb:ea}),0)}a.Hl&&(a.Hl.setVisible(!1),Rn(a.fb("a-Za-Bb"),"a-w-v"),On(a.fb("a-w-Te-nb"),!0),a.Ab.addCallback(function(a){var b,c=this.yq.ta();a instanceof KY?b=cb(this.Tc("upload-uploader-flash-content"),function(a){return!Oc(c,a)}):a instanceof NY&&(b=cb(this.Tc("ff-v-N"),function(a){return!Oc(c,a)}),b=this.Ea().X3(b,"DIV"));b&&(b.style.position="absolute",b.style.left="-10000px")},a));a.getContext().rd().Qb&&
V$e(a.cj,!1);a.getContext().Mh.Cca(!1);On(a.yq.ta(),!0);acf(a.yq).addCallback(function(){Pd(this.y6,"position","absolute")},a);WQd(a.cj,"Drag to move photo",void 0,"a-w-Bg-lm-Ng");On(a.fb("a-w-Te-nb"),!0)};O3d.prototype.YY=function(a){var b=a.data.photoIds;b&&b.length&&(this.Ig.LW.jl?this.Ab.addCallback(function(a){Q3d(this,b,a)},this):this.UFb=b)};
var Q3d=function(a,b,c){var d=[];v(b,function(a){(a=R3d(this,a,c))&&d.push(a.getId())},a);u3d(a.Ig,d)},R3d=function(a,b,c){var d=a.getContext().od,f=c.getFile(b);c=(c=(c=f&&c.zx(f))&&c.dG())&&c.photoid;return a.Pf.La(b)||c&&d.La(c,"picasa")||d.La(b,"picasa")||null},S3d=function(a){a.L2.addCallback(function(a){var c=Ia(this.yq.mL.Qb.getValue());c==this.Qb||Ea(c)||(a.Wb(c),this.$b++,a=this.getContext().od,a.Vd(new K3("changeAlbumAttrs","picasa",null,{parent:this.Ke,title:c}),Lp(this.Y9,this),Lp(this.Y9,
this)),a.xk(7))},a)};q=O3d.prototype;q.Sid=function(a){this.Ab.addCallback(function(b){var c=a.Sa.La();b=(c=c.Ii&&c.Ii.getId())&&b.getFile(c);switch(a.Ab){case "fn":this.cj.focus();break;case "fp":this.yq.Ama.ta().focus();break;case "pc":b&&(b["p-pc"]=a.Sa.Cg())}},this)};
q.eSb=function(){var a=this.getContext();a.Mh.dya(!0);this.Ig.Be=!1;a.We().dE();this.Ig.Be=!0;this.Ig.vB();var b=this.Ig.Rd().Ae();if(0<b.length&&b[0].vt()){var c=b[0].vt(),d=zg(b,function(a){return a.Qe()});this.$b++;Uf(function(){this.getContext().od.Vd(new K3("cleanAlbum","picasa",d,{parent:c}),Lp(this.Y9,this),Lp(this.Y9,this))},7E3,this)}else a.Ab.oD();ecf(this);a.Mh.dya(!1)};q.Y9=function(){this.$b=Math.max(this.$b-1,0)};
q.mBc=function(a){this.Ab.addCallback(function(b){switch(a.Ab){case "cp":var c=a.Sa.La().Qe();this.L2.addCallback(function(a){c!=a.getAttribute("cpid")&&(a.setAttribute("cpid",c),this.getContext().od.Vd(new K3("changeAlbumAttrs","picasa",null,{parent:this.Ke,cpid:c}),ka,ka))},this);break;case "d":var d=a.Sa.La(),f=d.Ii&&d.Ii.getId();(f=f&&b.getFile(f)||cb(b.Lt(),function(a){return a.Zka==d.getId()}))&&b.Tu(f);ecf(this);break;case "msg":this.Lh.setContent(a.getMessage());this.Lh.setVisible(!0);break;
case "ror":this.hJc(raf(this.Ig),!0)}},this)};q.lkb=function(a){var b=zg(raf(this.Ig),function(a){return this.La(a)},this.getContext().od);a.Sa(b);b=zg(b,function(a){return a.getId()});u3d(this.Ig,b,!0);this.hJc(b,a.N1a)};q.hJc=function(a,b){if(this.Ke){var c={parent:this.Ke,album_position:"last"};null!=b&&(c.user_ordered_album=b?"true":"false");this.getContext().od.Vd(new K3("reorderAlbum","picasa",a,c),ka,Lp(this.hQb,this))}else this.mL.addCallback(Lp(this.hJc,this,a,b))};
q.hQb=function(){this.Lh.setContent("Oops! We couldn't change the order of your photos. Try again.");this.Lh.setVisible(!0);this.Xd.or()&&this.mL.addCallback(function(){this.getContext().od.Vd(this.Xd.or(),Lp(function(a){u3d(this.Ig,zg(a.Ae(),function(a){return a.getId()}))},this),ka)})};q.setActive=function(a,b){O3d.ya.setActive.call(this,a,b);this.Ig.setActive(a)};q.zq=function(a){return this.Ig.zq(a)};q.hJ=function(a){return this.Ig.hJ(a)};
q.OW=function(){this.Ea();this.e6=this.ta();this.bQ=this.Oa;var a=this.yq,b=this.YK();a.Ag=a.getContext().We().Oa(b,a.Ama.ta());this.Ab=a.Ag;a=this.Ig;b=this.Ab;a.df=b;a.ima.df=b;this.Pf=K5(this,this.Ig.Rd());x(this,this.Pf)};q.S_=function(){kcf(this)};q.qIb=function(a){this.Ab.addCallback(function(){W3d(this,a.Sa)},this)};
var n3e=function(a,b){var c=0,d=a.Ig.Rd().Ae();d.length&&(c=d[d.length-1].Ab||0);for(d=0;d<b.length;d++){var f=c++;b[d].Ab=f}},W3d=function(a,b){ccf(a.yq,1,b.length);Tbf(a.yq,!0);a.Ig.LW.addCallback(Lp(function(a){n3e(this,a);Uf(function(){this.Pf.kda();ecf(this);a.length&&Uf(function(){this.Ig.scrollIntoView(a[0].getId())},10,this)},0,this)},a,b))};O3d.prototype.Vb=function(a){a=a.Sa;"success"==a.Ii.getState()&&(this.Ke||(this.Ke=a.vt().split(".").pop(),this.mL.By()),ecf(this))};
O3d.prototype.hS=function(){ecf(this);Tbf(this.yq,!1);this.Ig.vB()};var ecf=function(a){var b=a.getContext().We().Aia()&&!a.getContext().rd().Be,c=!a.getContext().rd().Qb,d=!!ec(w3d(a.Ig),function(a){return!a.Ii||"error"!=a.Ii.getState()}).length,f=a.L2.jl,h=c||!b&&!d&&f&&a.Ag,b=!b&&(c&&d||!c&&f&&!h);V$e(a.cj,h);a.cj.qh(b);return b};q=O3d.prototype;
q.WC=function(){!this.Ig.Hca()||this.$b?Uf(this.WC,50,this):(this.hJc(raf(this.Ig),null),BN(this.Xd,"mtp",this.yq.mL.mL),this.L2.addCallback(function(a){var b=w3d(this.Ig);this.yq.mL.mL||(v(b,function(b){if(!b.vt()){var d=a.getId();b.zi=d}},this),this.getContext().od.Vd(new K3("autoCurate","picasa",[a.getAttribute("mediaKey")],{}),ka,ka));this.getContext().Ab.Sl(b)},this))};q.kt=function(){if(this.Hl&&this.Hl.iA)try{this.Hl.iA.ta().focus()}catch(a){}return!0};
q.acb=function(){for(var a=this.yq.Ab.Jc()?330:205,b=[],c=this.Ig.wc(),d=3;12>=d;d++)b.push(Math.floor((c-10*(d-1))/d));s3d(this.Ig,bb(b,wa(function(a,b,c){return Math.abs(a-c)<Math.abs(a-b)?c:b},a),1E3),a)};q.XD=function(){Tbf(this.yq,!1);this.cj.qh(!1);this.Ig.LW.addCallback(function(){B8e(this.Ig);this.getContext().Mh.dya(!0);S3d(this);this.WC()},this)};
q.iL=function(){if(this.Ke){var a=[];v(w3d(this.Ig),function(b){b.Kn()&&ib(a,b.getId())});var b={parent:this.Ke,Q6b:!0};this.getContext().od.Vd(new K3("delete","picasa",a,b),ka,ka)}this.reset();this.getContext().Ab.oD()};q.ihb=Fx;q.qb=function(){O3d.ya.qb.call(this);this.Oa=void 0};
q.reset=function(a){O3d.ya.reset.call(this,a);this.getContext().Mh.dya(!0);this.Ig.Be=!1;this.Hl&&(this.Hl.setVisible(!0),this.getContext().Mh.Cca(!0));this.Ab.addCallback(function(a){Zcd(a)});this.Xd.getOption("parent")||(this.Ke=void 0,this.mL=new ag(void 0,this),this.mL.addCallback(this.NGa),this.L2=new ag(void 0,this));this.Ig.Be=!0;this.Ig.vB();this.getContext().Mh.dya(!1)}; q.NGa=function(){L2d(this.getContext().od,this.Ke,Z3d(this.Pf),Lp(function(a){this.L2.By(a);this.Ig.LW.addCallback(function(){ecf(this)&&this.cj.focus()},this)},this))};
var $3d=function(a,b,c){C.call(this,c);this.Qb=b;this.mL=this.Ab=this.Sa=this.Oa=null};t($3d,C);$3d.prototype.Qxb=function(){return this.Sa.ta()};$3d.prototype.Pa=function(){$3d.ya.Pa.call(this);var a=this.Ea(),b=[a.Pa("div","a-n-v-ia d-k-l"),a.createTextNode("Choose files")],b=new Ot(b,a);b.Pa();this.Sa=b;a=a.Pa("div","a-Dl",b.ta(),a.Pa("div","a-Dl-Fi","You may upload multiple files at once. Use JPG, GIF, or PNG files."),a.Pa("div","a-Dl-dd"));this.Kb(a)};
$3d.prototype.Na=function(){$3d.ya.Na.call(this);this.Sa.Na();var a=e4d(this.Qb,this.Sa.ta());a4d(this,a);this.getHandler().Ja(this.Qxb(),"keyup",function(a){13!=a.keyCode&&32!=a.keyCode||this.Qxb().click()})};
var a4d=function(a,b){a.Oa=b;b.Ab.addCallback(function(a){if(a instanceof NY){var b=this.ta();zc(b);var f=this.Ea();b.appendChild(f.Pa("div","a-Dl-Fi","You can upload JPG, GIF, or PNG files."));b.appendChild(f.Pa("div","a-Dl-dd"));b4d(this)}this.getHandler().Ja(a,"filesselected",this.Ag).Ja(a,"fileremoved",this.$b)},a)},b4d=function(a){a.Ab&&On(a.Ab,!1);var b=a.ta(),c=a.Ab=a.Ea().Pa("div","d-k-l a-Dl-Bma");b.insertBefore(c,b.firstChild);a.Oa.Ab.addCallback(function(a){this.getHandler().yj(a,"fileadded",
function(b){b=b.file;this.mL=b.getId();a.mla(c,b)});JY(a,new wY)},a)};$3d.prototype.Ag=function(){var a=this.Oa;Uf(a.kda,0,a);a.Ab.addCallback(function(a){a instanceof NY&&b4d(this)},this)};$3d.prototype.$b=function(a){a.file.getId()==this.mL&&b4d(this)};$3d.prototype.qb=function(){$3d.ya.qb.call(this);this.Ab=this.Sa=this.Oa=null};
var c4d=function(a,b,c){C.call(this,c);this.Qb=a;this.$b=b;this.mL=this.Sa=this.Ab=this.Oa=null};t(c4d,C);c4d.prototype.Qxb=function(){return this.Ab.ta()};c4d.prototype.Pa=function(){var a=this.Ea(),b=[a.Pa("div","a-n-v-ia d-k-l"),a.createTextNode(this.Qb)],b=new Ot(b,this.Ea());b.Pa();this.Ab=b;this.Kb(a.Pa("div","a-v-N-zd d-k-l",a.Pa("div","a-n-T8-U8 d-k-l"),a.Pa("br"),b.ta()))};c4d.prototype.Na=function(){c4d.ya.Na.call(this);this.Ab.Na()};
c4d.prototype.Idb=function(a){this.Oa=a;a.Ab.addCallback(function(a){if(a instanceof NY){var c=this.ta(),d;d=this.Ea();d=d.Pa("div","a-v-N-oaa",d.createTextNode(this.$b));Gc(d,c);this.Kb(d);d4d(this)}this.getHandler().Ja(a,"filesselected",this.YY).Ja(a,"fileremoved",this.Ag)},this)};
var d4d=function(a){a.Sa&&On(a.Sa,!1);var b=a.Sa=a.Ea().Pa("div","d-k-l");a.ta().appendChild(b);a.Oa.Ab.addCallback(function(a){this.getHandler().yj(a,"fileadded",function(d){d=d.file;this.mL=d.getId();a.mla(b,d)});a.KQ(!1)},a)};c4d.prototype.YY=function(){var a=this.Oa;Uf(a.kda,0,a);a.Ab.addCallback(function(a){a instanceof NY&&d4d(this)},this)};c4d.prototype.Ag=function(a){a.file.getId()==this.mL&&d4d(this)};c4d.prototype.qb=function(){c4d.ya.qb.call(this);this.Sa=this.Ab=this.Oa=null};
var U5=function(a,b,c){o5.call(this,a,b,c);var d=null;"palette"==b.getOption("mode")&&(d=new $3d(0,this,c),this.ib(d));this.Ye=d;this.mN="palette"!=this.Gf().getOption("mode");this.getHandler().Ja(a.Ab,"reset",Lp(this.Be,this,0));this.Qb=this.Op=this.Oa=null};t(U5,o5);U5.prototype.Pa=function(){U5.ya.Pa.call(this);var a=this.Ye;if(a){a.Pa();var b=this.ta();b.insertBefore(a.ta(),b.firstChild)}};
U5.prototype.bC=function(a){var b=this.Oa;"palette"==this.Gf().getOption("mode")&&(a=ec(a,function(a){var d=a.Ii;return!!d&&!!b.La(d.getId())||!!b.Vk[a.getId()]}));return U5.ya.bC.call(this,a)};
U5.prototype.Hr=function(a){var b=this.Gf(),c=b.getOption("mode");!this.Qb&&b.getOption("upload")&&b.getOption("parent")&&"palette"!=c&&(b=this.Qb=new c4d("Upload","Add a photo: ",this.Ea()),this.ib(b),"first"==this.Gf().getOption("uploadpos")?b.render(this.getContainer().cb()):b.render(this.getContainer().cb().parentNode),this.Qb.Idb(e4d(this,this.Qb.Qxb())));U5.ya.Hr.call(this,a)};
var e4d=function(a,b){var c=a.getContext();a.Op=c.We().Oa("photos",b);var d=a.Gf(),c=a.Oa=new T5(c,"photos",d,a.Op,a.Rd()||void 0);if(d=d.getOption("parent"))c.$b=d.substring(d.lastIndexOf(".")+1);a.getHandler().Ja(c,"Bk",a.zF);return c};U5.prototype.zF=function(a){a=a.Sa;for(var b=-1,c=this.Rd().Ae(),d=0;d<c.length;d++)var f=c[d].Ab,b=Math.max(b,ia(f)?f:-1);for(d=0;d<a.length;d++)c=++b,a[d].Ab=c};U5.prototype.gR=function(){"palette"!=this.Gf().getOption("mode")&&U5.ya.gR.call(this)}; U5.prototype.Be=function(){this.Oa&&this.Oa.reset()};
var X5=function(a,b,c){M5.call(this,a,b,c);this.Ag=(new gn(1)).format(new dn);var d=null,f=b.getOption("cRename");"photo-upload"!=b.Sa||a.rd().Xb||(f="pname");f&&(d=new g4d(a,f,c),d.$b(this.Ag),this.ib(d));this.mL=d};t(X5,M5);q=X5.prototype;q.YK=function(){return this.zF()?"photos":"photo"};q.oT=function(){if(this.mL){var a=this.Ea();X6e(this,this.Oa);this.mL.Pa();return a.Pa("div","a-B a-v a-Mi",a.Pa("div","a-v-J-Da-ba",this.mL.ta()),a.Pa("div","a-J-v-ec",X5.ya.oT.call(this)))}return X5.ya.oT.call(this)};
q.OW=function(){X5.ya.OW.call(this);this.Pf.Qb=this.Ag};q.setActive=function(a,b){X5.ya.setActive.call(this,a,b);this.mL&&On(this.mL.ta(),a)};q.kt=function(){return this.mL&&this.mL.focus()?!0:X5.ya.kt.call(this)};q.reset=function(a){X5.ya.reset.call(this,a);a||(this.Ag=(new gn(1)).format(new dn),this.Pf.Qb=this.Ag,this.mL&&(this.mL.reset(),this.mL.$b(this.Ag)))};q.WC=function(){this.mL?gaf(this.mL,G5(this.Pf),!1,Lp(this.cj.qh,this.cj,!0)):X5.ya.WC.call(this)};
var E4d=function(a,b,c){j5.call(this,a,b,c);this.Db=Q3.ia();this.Oa=null;this.Vb=!1;this.Km=this.Op=null};t(E4d,j5);E4d.prototype.Pa=function(){E4d.ya.Pa.call(this);Qn(this.ta(),"a-G1")};E4d.prototype.Na=function(){E4d.ya.Na.call(this);this.Qb=new l5(this.getContext(),this.getContainer(),this.Ea());this.getHandler().Ja(this.Qb,"Di",this.wjd);this.ib(this.Qb);this.Qb.render(this.ta());F4d(this)};
var F4d=function(a){var b=oe(a.ta()),c=40;a.Km=new Kb(b.width-c,b.height-c);c=60;a.Op=(new Kb((b.width-c)/2,(b.height-c)/2)).floor()};q=E4d.prototype;q.ED=function(a){var b=a.Ii.getId(),c;this.Oa.Ab.addCallback(function(a){c=a},this);b=GY(c,c.getFile(b)).UU;a=new d5(this.getContext(),a,b,this.Ea());this.getHandler().Ja(a,"QE",this.dispatchEvent).Ja(a,"Kg",this.xjd).Ja(a,"Lg",this.dispatchEvent).Ja(a,"ph",this.dispatchEvent);return a};
q.xjd=function(a){var b=a.target;this.Rd().dL([b.La().getId()]);this.jOa(b.La().getId());if(1==this.Rd().tf()){var c=x5(this,this.Rd().Ae()[0].getId());c&&(this.Db.setSize(c,this.Km.width,this.Km.height),D2d(c),c.update());this.Vb=!1}this.getHandler().nb(b,"ph").nb(b,"Lg").nb(b,"Kg");this.dispatchEvent(a)};q.Idb=function(a){this.Oa=a};
q.Hr=function(a){E4d.ya.Hr.call(this,a);var b=this.Db;a=this.Rd().Ae();if(1==a.length){if(a=x5(this,a[0].getId()))b.setSize(a,this.Km.width,this.Km.height),D2d(a);this.Vb=!1}else this.Vb?(v(a,function(a){a=x5(this,a.getId());b.setSize(a,this.Op.width,this.Op.height);yRd(a);a.update()},this),this.Vb=!0):(v(a,function(a){this.jOa(a.getId())},this),this.Vb=!0,this.Ik(a))};
q.wjd=function(a){var b=a.Sa,c=a.Cg();if(b){var d=b.La();if(d)if("success"!=d.Ii.getState())b.kN=c;else{var f=d.Jd();d.Ee(c);a=this.getContext();c={caption:c};a.od.Vd(new K3("changeCaption","picasa",[d.getId()],c),ka,Lp(function(){d.Ee(f);"function"==typeof b.yw&&b.yw().setContent(f);alert("Your caption could not be saved. Please try again.")},this))}}};
var $5=function(a,b,c){this.Qj=null;I5.call(this,a,b,c);this.mL=new df;this.YF=new df;this.Ag=(new gn(1)).format(new dn);this.Ke=a.rd().Qb;this.Ig=new E4d(a,b,c);this.ib(this.Ig);this.Hl=new E5(this.getContext(),this.Qr.q5,this.Qr.mL,this.Qr.Sa,this.Ea());this.ib(this.Hl);this.Lh=new kX("",this.Ea());this.ib(this.Lh);this.Lh.hd("info");this.Oa=new Un(function(){this.Lh&&!this.Lh.isDisposed()&&this.Lh.setVisible(!1)},1E3,this);this.Qb=null;this.ihb=Fx};t($5,I5);q=$5.prototype;
q.p1=function(a){var b=this.getContext();a=new B3(b,Lp(this.XD,this),Lp(this.iL,this),a);a.qh(!1);this.Qj=wbg(a);return a};q.OW=function(){this.Ea();this.e6=this.ta();var a=this.Hl.Ab;this.bQ=a;this.Ab=this.getContext().We().Oa(this.YK(),a);this.Pf=K5(this,this.Ig?this.Ig.Rd():void 0);this.Pf.Qb=this.Ag;this.Ig.Idb(this.Pf)};
q.oT=function(){var a=this.Ea();this.Hl.Pa();this.Ig.Pa();this.Lh.Pa();Qn(this.Lh.ta(),"a-ir");Qn(this.Lh.ta(),"a-tUa");return this.Qb=a.Pa("div","a-B a-v a-W8",this.Ig.ta(),this.Hl.ta(),this.Lh.ta())};q.TJc=function(){this.Lh.setContent("Deleting video...");this.Lh.setVisible(!0)};q.dCb=function(a){this.Oa.start();a&&this.Lh.setContent("Video deleted.")};
q.OQ=function(){xd||this.Ab.addCallback(function(a){(a=a.mI&&a.mI())&&this.getHandler().Ja(a,"focus",function(){this.Hl.zt(!0)},void 0,this).Ja(a,"blur",function(){this.Hl.zt(!1)},void 0,this)},this)};
q.Na=function(){$5.ya.Na.call(this);J5(this,!1);this.Ab.addCallback(function(a){this.OQ();a.JI()?(this.Hl.zla(!0),a.Lr(this.Hl.ta(),!0),this.getHandler().Ja(this.Hl.iA.ta(),"keyup",function(a){13==a.keyCode&&this.Hl.ta().click()})):a.Lr(this.Hl.iA,!0)},this);this.getHandler().Ja(this.Pf,"ql",this.Cjd).Ja(this.Pf,"lm",this.Zmb).Ja(this.Pf,"Bk",this.YY).Ja(this.Ig,"Lg",this.TJc).Ja(this.Ig,"Kg",Lp(this.dCb,this,!0)).Ja(this.Ig,"ph",Lp(this.dCb,this,!1));this.Ig&&this.Ig.Rd().addListener(Lp(this.xIb,
this))};q.xIb=function(a,b){var c=this.getContext().od;this.Ab.addCallback(function(a){v(b,function(b){(b=M3(c.La(b)))&&(b=a.getFile(b.getId()))&&a.Tu(b)},this)},this);this.Ig.Rd().tf()||this.reset()};q.Cjd=function(a){a=a.Sa;if("video"!=a.Ra()||"success"!=a.Ii.getState()){var b;b=a.getId();(b=x5(this.Ig,b))&&b.yZ();"success"!=a.Ii.getState()&&this.YF.add(a.getId())}else b=a.vt(),this.Ke=b.substring(b.lastIndexOf(".")+1),this.mL.add(a.getId())};
q.Zmb=function(a){a=a.Sa;this.mL.remove(a.getId());a=a.getId();(a=x5(this.Ig,a))&&a.update();0==this.mL.Fc()&&WQd(this.cj,"")};var mcf=function(a){if(a.zi){var b=a.getContext().od;b.Vd(new u3("picasa",[a.zi],{type:"album"}),Lp(function(a){b.Xp(a.Ae()||[]);this.$b()},a),Lp(a.$b,a))}else a.Qj&&a.Ab.addCallback(function(a){a.Lr(this.Qj)},a)};$5.prototype.$b=function(){this.Pf&&this.Pf.Ae().length&&G5(this.Pf).length&&this.cj.qh(!0);this.Qj&&this.Ab.addCallback(function(a){a.Lr(this.Qj)},this)};
$5.prototype.YY=function(){A4d(this,!1);this.getContext().Mh.Cca(!1);Uf(function(){F4d(this.Ig);this.start()},0,this)};var A4d=function(a,b){a.Hl.setVisible(b);J5(a,!b)};q=$5.prototype;q.XD=function(){this.YF.isEmpty()||(this.Ab.addCallback(function(a){v(this.YF.Rc(),function(b){a.Tu(a.getFile(M3(this.getContext().od.La(b)).getId()))},this)},this),I4d(this,this.YF.Rc()),this.YF.clear());this.cj.qh(!1);this.WC();J4d(this)};
q.iL=function(){I4d(this,zg(this.Pf.Ae(),function(a){return a.getId()},this));this.getContext().Ab.oD()};q.S_=function(){};q.hS=function(a){this.YF.isEmpty()?this.CMa():I4d(this,this.YF.Rc(),Lp(this.CMa,this,a));mcf(this)};
q.CMa=function(){Uf(function(){1==this.mL.Fc()?WQd(this.cj,"Your video is processing. You may select it, but others will not be able to view it until it has finished processing."):WQd(this.cj,"Your videos are processing. You may select them, but others will not be able to view them until they have finished processing.")},100,this);null!=this.Ke?this.getContext().od.Vd(new u3("picasa",[this.Ke],{type:"album"}),Lp(function(a){(a=a.Ae()[0])&&Z3d(this.Pf)&&a.zJ(!0);this.fpa()},this),Lp(this.fpa,this),
!0):this.fpa()};q.yha=function(a){$5.ya.yha.call(this,a);this.Ab.addCallback(function(a){this.lRa&&0==a.hW()&&this.reset(1)},this)};var I4d=function(a,b,c){if(a.Ke){var d={parent:a.Ke};a.getContext().rd().Qb||(d.deleteParentIfEmpty="true");a.getContext().od.Vd(new K3("delete","picasa",b,d),Lp(function(){c&&c()},a),Lp(function(){},a))}};q=$5.prototype;q.setActive=function(a,b){$5.ya.setActive.call(this,a,b);this.Qb&&On(this.Qb,a);this.Ig.setActive(a);On(this.Ig.ta(),a)};
q.kt=function(){if(this.Hl.iA)try{return this.Hl.iA.ta().focus(),!0}catch(a){}return!1};q.start=function(){$5.ya.start.call(this);this.Qj&&this.Ab.addCallback(function(a){a.VM(this.Qj)},this)};q.reset=function(){$5.ya.reset.call(this);J4d(this)};q.fpa=function(){this.Pf&&this.Pf.Ae().length&&this.cj.qh(!0);this.Qj&&this.Ab.addCallback(function(a){a.Lr(this.Qj)},this)}; var J4d=function(a){Uf(function(){this.Ab.addCallback(function(a){On(this.Qj.ta(),!1);a.VM(this.Qj)},this)},50,a);A4d(a,!0);WQd(a.cj,"");a.Ig.Qb.oIa(!0)};
var K4d=function(a){BJ.call(this,a);this.Km=new Sf(500);this.getHandler().Ja(this.Km,"tick",this.Ijd);this.Op=0};t(K4d,BJ);q=K4d.prototype;q.Na=function(){K4d.ya.Na.call(this);this.getHandler().Ja(this,"change",this.Hjd).Ja(this.ta(),"mouseout",Lp(this.kUb,this,!1)).Ja(this.ta(),"mouseover",Lp(this.kUb,this,!0))};q.Hjd=function(){this.getValue()!=this.Op&&(this.Km.enabled?this.Km.stop():this.dispatchEvent(new A("gj")),this.Km.start(),this.dispatchEvent(new A("fj")))}; q.kUb=function(a){Pn(this.ta(),"a-Gd-u",a)};q.Ijd=function(){this.Op=this.getValue();this.Km.stop();this.dispatchEvent(new A("hj"))};q.JJ=function(a){this.Op=a;K4d.ya.JJ.call(this,a)};
var b6=function(a,b,c){I5.call(this,a,b,c);a=Hf(Jf(this.Qr.getUrl()),"authuser",a.rd().Ko).toString();this.Nma=new SY(a)};t(b6,I5);q=b6.prototype;q.Y2a=!1;q.Wea=!0;q.dc=!1;q.YK=function(){return this.Xd.getQuery()||"photos"};q.p1=function(a){a=new L4d(this.getContext(),Lp(this.XD,this),Lp(this.iL,this),a);a.qh(!1);return a};
q.oT=function(){var a=this.Ea();Ce(Be.ia());this.Sx=a.Pa("div","a-B a-Kb");this.nA=a.Pa("div","a-Kb-e d-k-l");this.kN=a.Pa("div","a-Kb-CA6U6b");this.nA.appendChild(this.kN);this.Sx.appendChild(this.nA);this.qVa(this.Sx);this.aU(!1);return this.Sx};q.qVa=function(a){var b=this.Ea();this.Sx.appendChild(b.Pa("br"));this.$b=Tt(p4("//ssl.gstatic.com/docs/picker/images/camera-v1.png","Take snapshot"),b);this.$b.Pa();a.appendChild(this.$b.ta())};q.lUb=function(a){return a.Xxd};
q.OW=function(){var a;a=this.kN;if(!wZb||!pda&&0>Xa(OJ,"10.1")||0>Xa(OJ,"11"))this.Lla(!0),a=null;else{var b=this.Nma;Eed(b,"FLASH");var c=this.getContext().mL;if(!c.jl)throw Error("Lh");c.addCallback(Lp(this.q2a,this,a));a=Ied(b);x(this,a);a.p8=!1;a.roa=!0}a=this.XM=a;this.Ab=new ag;this.Ab.By(a);this.Pf=K5(this);this.Dma();this.cj.qh(!1)};
q.Na=function(){b6.ya.Na.call(this);this.$b&&(this.$b.Na(),this.getHandler().Ja(this.$b,"action",this.VKc));var a=this.Ea().La(),a=sc(a)||window;this.getHandler().Ja(a,"resize",this.Dma)};q.n_a=function(){return oe(this.$b.ta()).height};
q.Fyb=function(){var a=ze(this.Sx),b=de(this.nA);a.width-=b.left+b.right;a.height-=b.top+b.bottom;b=Ae(this.nA);a.width-=b.left+b.right;a.height-=b.top+b.bottom;a.height-=this.n_a();"standard"==this.Xd.Ra()?(b=Math.floor(2.5+.5625*(a.width-10)),b>a.height?a.width=Math.floor(10+4/3*(a.height+(a.height-10)/3)):a.height=b):a.width<2*a.height+10?a.height=Math.floor((a.width-10)/2):a.width=Math.floor(2*a.height+10);return a};q.xHa=function(){this.aU(!1);this.cj.qh(!1);this.Wea=!0};
q.yHa=function(){!Ub(this.Pf.mL)||this.Y2a&&this.cj.qh(!0);this.Wea=!1;this.aU(!0)};q.JAc=function(){this.Y2a=!0;this.Wea||(this.aU(!0),this.cj.qh(!0))};q.q2a=function(a,b){var c="squareCrop=",c="standard"==this.Xd.Ra()||"video"==this.Xd.Ra()?c+"false":c+"true";Hed(this.Nma,a,this.lUb(b),c,!0)};
q.hS=function(a){v(this.Pf.Ae(),function(a){a.setAttribute("c",{top:0,right:1,bottom:1,left:0})});var b=this.getContext().od;"profile"==this.Xd.Ra()?b.xk(37):"standard"==this.Xd.Ra()&&b.xk(38);b6.ya.hS.call(this,a)};q.yha=function(){this.Wea||this.cj.qh(!0)};q.S_=function(a,b){b6.ya.S_.call(this,a,b);var c=this.Pf;Uf(c.kda,0,c)};q.VKc=function(){this.Dm("captureImage")&&this.$b.Ta(!1)};var c6=function(a){return(a=a.nA.childNodes[1])?a.firstChild:null};
b6.prototype.Dma=function(){var a=this.Fyb();if(0>=a.width||0>=a.height)Uf(Lp(this.Dma,this),10);else{a.width=Math.floor(a.width);a.height=Math.floor(a.height);var b=this.nA;le(b,a);var c=c6(this);if(c){var d=Zd(c),f=Math.floor(d.y)-d.y;Pd(b,"left",Math.floor(d.x)-d.x+"px");Pd(b,"top",f+"px");c.width=a.width;c.height=a.height}this.kIb(a)}};
b6.prototype.kIb=function(a){if(this.$b){var b=ze(this.$b.ta()),b="standard"==this.Xd.Ra()?Math.floor((4/3*a.height-b.width)/2):Math.floor((a.height-b.width)/2),b=Math.floor(.5*a.width)-b;this.$b.ta().style.left=(My.Bo()?1:-1)*b+"px";this.$b.ta().style.top="10px"}};var M4d=function(a){a.Lla(!1);Uf(Lp(a.Lla,a,!0),1E3,a);a.gOa()};
b6.prototype.gOa=function(){var a=c6(this);a&&a.addListener&&a.reset&&a.setAllowAddingFiles?(d6(this,"Camera.Muted",this.xHa),d6(this,"Camera.Unmuted",this.yHa),d6(this,"Snapshot.Ready",this.JAc),d6(this,"uncaughtError",this.zsa),this.Dm("setCameraMode",this.Xd.getOption("vWidth")||0,this.Xd.getOption("vHeight")||0,this.Xd.getOption("vFps")||0,this.Xd.getOption("vMaxBytes")||0),this.Dm("startCamera")):Uf(this.gOa,100,this)};
var d6=function(a,b,c){var d=a.Ea().getWindow(),f="flash"+a.Xd.getOption("type")+b.split(".").join("");d[f]=Lp(c,a);c6(a).addListener(b,f)};q=b6.prototype;q.setActive=function(a,b){b6.ya.setActive.call(this,a,b);a?M4d(this):(this.aU(!1),this.Dm("stopCamera"))};q.start=function(){this.Dm("uploadImage")&&this.$b&&(this.$b.Ta(!1),this.Lla(!1))};q.vB=function(a){b6.ya.vB.call(this,a);this.setVisible(!0);M4d(this)};
q.reset=function(){this.Pf.reset();this.XM.reset();this.Dm("reset");this.cj.qh(!1);this.Y2a=!1;this.aU(!1);this.setVisible(!1)};q.setVisible=function(a){var b=this.ta();this.dc=a;b.style.top=a?"":"-10000px";b.style.left=a?"":"-10000px";b.style.right=a?"":"9500px"};
q.Lla=function(a){var b=this.Ea(),c="<p>Unable to find Flash Player "+((pda?"11":"10.1")+(". Please install Flash Player or upgrade your Flash Player to Flash "+((pda?"11":"10.1")+' or greater <a href="http://get.adobe.com/flashplayer" target="_blank">here</a>.</p>'))),d=this.kN;b.hb(d);a&&!c6(this)&&(b.appendChild(d,cd(b,c)),wZb||(a=this.Ea().Pa("object",{type:"application/x-shockwave-flash",width:"100%",height:"60%"}),this.kN.appendChild(a)))};
q.zsa=function(){this.Ea();Rc(this.kN,"Flash Player has crashed. Please upgrade your Flash Player to the latest version.");var a=c6(this);a&&On(a,!1);this.aU(!1);this.cj.qh(!1)};q.aU=function(a){this.$b&&(this.$b.setVisible(a),a&&Ub(this.Pf.mL)&&!this.Wea?this.$b.Ta(!0):this.$b.Ta(!1))};q.Dm=function(a,b){var c=c6(this);if(c&&c[a])try{return c[a].apply(c,ub(arguments,1)),!0}catch(d){this.zsa(d)}return!1};
var e6=function(a,b,c){b6.call(this,a,b,c);this.mN=new Sf(100);this.getHandler().Ja(this.mN,"tick",Lp(this.Mma,this));this.Uma=a.rd().Sx||9E5;this.o9=new Sf(this.Uma);this.getHandler().Ja(this.o9,"tick",Lp(this.UGc,this));this.Pha=new Sf(100);this.getHandler().Ja(this.Pha,"tick",Lp(this.HDc,this));this.yja={};this.Zma=[]};t(e6,b6);q=e6.prototype;q.dJa=!1;q.Pz=!1;q.bOa=!1;q.wcb=100;q.aua=0;q.Sb="a-Kb-A2a";
q.qVa=function(){var a=this.Ea();this.Ag=a.Pa("div","a-Kb-ea "+this.Sb+" d-k-l");this.Km=new Ot("Start over",a);this.Km.Pa();Qn(this.Km.ta(),"a-Za-k0-uoa");var b=N4d(this,"a-Kb-vk-m","Play");this.Vb=new Ot(b,a);this.Vb.Pa();b=N4d(this,"a-Kb-OO-m","Record");this.Ko=Tt(b,a);this.Ko.Pa();b=N4d(this,"a-Kb-OO-TF-m","Recording");this.YY=Tt(b,a);this.YY.Pa();this.Db=Tt("Reconnect",a);this.Db.Pa();b=N4d(this,"a-Kb-TF-m","Stop");this.Op=new Ot(b,a);this.Op.Pa();this.mL=new K4d;this.mL.uja=!0;this.mL.Pa();
b=f6(0);this.Oa=new yo(b,null,a);this.Oa.Pa();this.Oa.Bm(32,!1);this.Vk=new yo(b,null,a);this.Vk.Pa();this.Vk.Bm(32,!1);this.Qb=new yo(null,null,a);this.Qb.$b("a-Kb-Am-c d-k-l");this.Qb.Pa();b=a.Pa("div","a-n-WY d-k-l");this.Qb.ta().appendChild(b);for(b=0;5>b;b++){var c=a.Pa("div","a-Kb-Am-Bs d-k-l");Pn(c,"a-Kb-Am-Bs-qsa",4==b);this.Qb.ta().appendChild(c);this.Zma.push(c)}this.Ag.appendChild(this.Vb.ta());this.Ag.appendChild(this.Ko.ta());this.Ag.appendChild(this.YY.ta());this.Ag.appendChild(this.Db.ta());
this.Ag.appendChild(this.Op.ta());this.Ag.appendChild(this.mL.ta());this.Ag.appendChild(this.Oa.ta());this.Ag.appendChild(this.Vk.ta());this.Ag.appendChild(this.Qb.ta());this.Sx.appendChild(this.Ag);N3e(this.cj,this.Km);this.Xb=a.Pa("div","a-Za-zu-sc a-Za-v-Qd",a.Pa("div","d-k-l",a.Pa("div","a-Za-m d-k-l"),a.Pa("div","a-Za-sc d-k-l","Connecting...")));a.Ep(this.Xb,this.cj.fb("a-Za-zu-sc"))};q.Pa=function(){e6.ya.Pa.call(this);Qn(this.ta(),"a-k0")};
var N4d=function(a,b,c){var d=a.Ea();a=d.Pa("div");b=d.Pa("span","a-Kb-m "+b);c=d.Pa("span","b-c-ka",c);a.appendChild(b);a.appendChild(c);return a},O4d=function(a){var b={parent:a.lp.vt(),deleteParentIfEmpty:"true"};a.getContext().od.Vd(new K3("delete","picasa",[a.lp.getId()],b),ka,ka);a.lp=void 0};
e6.prototype.Na=function(){e6.ya.Na.call(this);this.Km.Na();this.Qb.Na();this.Vb.Na();this.Ko.Na();this.YY.Na();this.Db.Na();this.Op.Na();this.Oa.Na();this.Vk.Na();this.mL.Na();this.getHandler().Ja(this.Km,"action",this.wvc).Ja(this.Qb,"action",this.yvc).Ja(this.Vb,"action",this.zvc).Ja(this.Ko,"action",this.Avc).Ja(this.YY,"action",this.ZAb).Ja(this.Db,"action",this.Bvc).Ja(this.Op,"action",this.q1a).Ja(this.mL,"fj",this.axc).Ja(this.mL,"gj",this.bxc).Ja(this.mL,"hj",this.cxc);this.yH&&this.getHandler().Ja(this.yH,
"status",this.HIc);this.getContext().od.xk(44)};var f6=function(a){a=Math.floor(a/1E3);var b=Math.floor(a/60);a-=60*b;return(10>b?"0":"")+b+":"+(10>a?"0":"")+a},Qlg=function(a,b){return ydg(f6(a)+" / ",Bdg("b",{},f6(b)))};q=e6.prototype;q.n_a=function(){return oe(this.Ko.ta()).height};
q.Fyb=function(){var a=ze(this.Sx),b=de(this.nA);a.width-=b.left+b.right;a.height-=b.top+b.bottom;b=Ae(this.nA);a.width-=b.left+b.right;a.height-=b.top+b.bottom;a.height-=this.n_a();3*a.width<4*a.height?a.height=Math.floor(3*a.width/4):a.width=Math.floor(4*a.height/3);return a};q.lUb=function(a){return a.Yxd};
q.q2a=function(a,b){e6.ya.q2a.call(this,a,b);this.yH=new E2d(this.Nma.uh,"rtmp");var c=b.sod||this.Qr.getUrl(),d=this.getContext().rd().Ko;ia(d)&&(c+="?authuser="+d);this.yH.Oa=c;if(c=My.mL)d={},d.Authorization="Bearer "+c,this.yH.jxa(d)};q.wvc=function(){this.Dm("endVideo");this.Dm("cancelVideo");this.Dm("startCamera");R4d(this);this.iu=0;g6(this,"a-Kb-A2a")};q.yvc=function(){this.Dm("showAudioSettings")};q.zvc=function(){this.aua=0;this.Dm("playVideo",0);this.getContext().od.xk(41)};
q.q1a=function(){T4d(this);this.Dm("endVideo")};q.Avc=function(){this.Dm("getVideo");this.o9.start();g6(this,"a-Kb-OO");S4d(this,0);this.mN.start();this.mL.JJ(0);this.getContext().od.xk(42);try{this.YY.ta().focus()}catch(a){}};q.Bvc=function(){0<this.iu?g6(this,"a-Kb-Tdb"):(g6(this,"a-Kb-A2a"),this.Dm("startCamera"));this.Dm("startConnection",this.mna)};q.ZAb=function(){"a-Kb-OO"==this.Sb&&(this.o9.stop(),T4d(this),this.Dm("stopVideo")&&this.YY.Ta(!1))};
q.iL=function(){this.dJa=!0;this.lp&&O4d(this);this.getContext().Ab.oD();this.getContext().od.xk(39)};q.axc=function(){"a-Kb-dia"!=this.Sb&&"a-Kb-Tdb"!=this.Sb||S4d(this,this.mL.getValue())};q.bxc=function(){"a-Kb-dia"==this.Sb&&this.q1a()};q.cxc=function(){if(this.Pz&&("a-Kb-dia"==this.Sb||"a-Kb-Tdb"==this.Sb)){"a-Kb-dia"==this.Sb&&this.q1a();var a=this.mL.getValue();this.aua=a;S4d(this,a);this.Dm("playVideo",Math.floor(this.mL.getValue()/1E3));this.getContext().od.xk(43)}};
q.xHa=function(a){e6.ya.xHa.call(this,a);g6(this,this.Sb)};q.yHa=function(a){e6.ya.yHa.call(this,a);g6(this,this.Sb)};q.zsa=function(a){e6.ya.zsa.call(this,a);this.Pz=!1;g6(this,"a-Kb-wa")};q.GAc=function(){this.Pz=!1;"a-Kb-OO"==this.Sb&&(T4d(this),this.Dm("stopVideo"));g6(this,"a-Kb-uf")};
q.HAc=function(){"a-Kb-OO"==this.Sb&&(T4d(this),this.Dm("stopVideo"));this.Pz=!1;switch(this.Sb){case "a-Kb-A2a":this.xw()&&(R4d(this),this.Dm("startCamera"));g6(this,"a-Kb-A2a");break;case "a-Kb-OO":case "a-Kb-Tdb":case "a-Kb-dia":g6(this,"a-Kb-uf")}};q.IAc=function(){this.Pz=!0;"a-Kb-A2a"==this.Sb&&this.dc&&this.Dm("prepareVideo");g6(this,this.Sb)};q.KAc=function(a){this.ima=a.thumbnail;this.lp&&P4d(this)};q.LAc=function(a){a=a.duration_msecs;0<a&&(this.iu=a,Q4d(this));g6(this,this.Sb)};
q.MAc=function(){var a=this.yH;if(!a.Ab)throw Error("ng");var b=new Wf;a.Ba.Ja(b,"success",a.NGc).Ja(b,"error",a.b2a);b.send(a.Ab,"GET")};q.NAc=function(){this.Pz&&(T4d(this),this.mL.getValue()>this.iu-1E3&&this.mL.JJ(0),g6(this,"a-Kb-Tdb"))};q.OAc=function(a){!this.dc||"a-Kb-Tdb"!=this.Sb&&"a-Kb-dia"!=this.Sb||(void 0!=a.offset_msecs&&0<=a.offset_msecs&&(this.aua=a.offset_msecs),S4d(this,this.aua),this.mN.start(),g6(this,"a-Kb-dia"))};
q.PAc=function(){"a-Kb-A2a"==this.Sb&&this.dc&&(this.bOa=!0,g6(this,this.Sb))};q.QAc=function(){this.Pz&&("a-Kb-OO"==this.Sb&&(Q4d(this),S4d(this,0)),g6(this,"a-Kb-Tdb"))};q.RAc=function(a){a=a.level;a=(Math.log(a/100)/Math.log(10)+2)/2;for(var b=0;5>b;b++)Pn(this.Zma[b],"a-Kb-Am-Bs-Pd",.2*(b+1)<=a)};q.HDc=function(){"a-Kb-OO"!=this.Sb&&"a-Kb-A2a"!=this.Sb||!this.dc||this.Dm("getVolumeLevel")};q.UGc=function(){"a-Kb-OO"==this.Sb&&this.ZAb()};
q.HIc=function(a){if("a-Kb-ii"==this.Sb){if(a=this.yH.dG()){var b={};b.name=this.Be;b.sortIndex=0;b=new Vw(b);b.Ii=new M1d("0");this.lp=b=this.Pf.E9(b,a);this.dJa?O4d(this):this.ima.length&&P4d(this)}}else this.Pz||(a.url?(this.mna=a.url,this.Dm("startConnection",a.url)):Uf(function(){this.wcb*=2;R4d(this)},this.wcb,this))};
q.kIb=function(a){me(this.Ag,a.width);var b=ye(this.Sx);Pd(this.Ag,"top",a.height+10+b.top+"px");var c=Zd(c6(this)),c=Math.floor(c.x)-c.x,d=ze(this.Sx);Pd(this.Ag,"left",Math.floor((d.width-a.width+b.left+b.right)/2)-c+"px");zy(this.Ag).width<a.width&&me(this.Ag,a.width+2);Qn(this.Oa.ta(),"a-Kb-l3");Qn(this.Oa.ta(),"d-k-l");Qn(this.Vk.ta(),"a-Kb-l3");Qn(this.mL.ta(),"d-k-l");b=oe(this.Qb.ta());c=de(this.Qb.ta());My.Bo()?(b=a.width-b.width-c.right,Pd(this.Qb.ta(),"right",b+"px")):(b=a.width-b.width+
c.left,Pd(this.Qb.ta(),"left",b+"px"));c=Ae(this.Oa.ta());b=oe(this.Oa.ta());b.width+=c.left+c.right;c=Ae(this.Op.ta());d=oe(this.Op.ta());d.width+=c.left+c.right;var c=Ae(this.Vb.ta()),f=oe(this.Vb.ta());f.width+=c.left+c.right;c=new sJ;this.yja["a-Kb-Tdb"]=c;var h=new bF(this.Km.ta(),300,bo);c.add(h);b=a.width-b.width-Math.max(d.width,f.width);b=new YE(this.mL.ta(),0,b,300,co);c.add(b);b=new bF(this.mL.ta(),300,bo);c.add(b);b=new sJ;this.yja["a-Kb-OO"]=b;a=a.width/2;c=this.YY.ta();d=ye(c);f=de(c);
h=Ae(c);c=zy(c).width/2-h.right+f.right+d.right;a=new WE(this.Vk.ta(),[a,0],[c+a,0],300,co);b.add(a)};
q.gOa=function(){var a=c6(this);if(a&&a.addListener&&a.startCamera){if(d6(this,"Camera.Muted",this.xHa),d6(this,"Camera.Unmuted",this.yHa),d6(this,"uncaughtError",this.zsa),d6(this,"netErrorPermanent",this.GAc),d6(this,"netErrorTemporary",this.HAc),d6(this,"netSuccess",this.IAc),d6(this,"thumbnailReady",this.KAc),d6(this,"videoDuration",this.LAc),d6(this,"videoFinalize",this.MAc),d6(this,"videoPlayComplete",this.NAc),d6(this,"videoPlayStart",this.OAc),d6(this,"videoStart",this.PAc),d6(this,"videoStop",
this.QAc),d6(this,"volumeLevel",this.RAc),this.getContext().rd().Zma&&this.Dm("toggleDebugConsole"),this.Dm("setCameraMode",this.Xd.getOption("vWidth")||0,this.Xd.getOption("vHeight")||0,this.Xd.getOption("vFps")||0,this.Xd.getOption("vKeyFrame")||0,this.Xd.getOption("vMaxBytes")||0),this.dJa||"a-Kb-dia"!=this.Sb&&"a-Kb-Tdb"!=this.Sb)this.bOa=this.Pz=!1,this.Dm("reset"),g6(this,"a-Kb-A2a"),this.Dm("startCamera")&&R4d(this)}else Uf(this.gOa,100,this)};
q.reset=function(){this.getContext().We().dE();this.Pz&&(this.Dm("endVideo"),this.Dm("cancelVideo"));this.Dm("stopCamera");this.Lla(!1);this.Pz=!1;g6(this,"a-Kb-A2a");this.o9.stop();this.setVisible(!1)};q.setVisible=function(a){e6.ya.setVisible.call(this,a);a?this.Pha.start():this.Pha.stop()};
var P4d=function(a){var b=a.getContext(),c={imageData:a.ima,videoThumbnailOnly:!0};b.od.Vd(new K3("importPhoto","picasa",[a.lp.getId()],c),Lp(a.sA,a),Lp(a.sA,a))},Q4d=function(a){tJ(a.mL.Sa,a.iu);a.mL.SQ=a.iu/10;a.mL.uG=a.iu/10};e6.prototype.aU=function(){g6(this,this.Sb)};e6.prototype.start=function(){this.lp=void 0;this.dJa=!1;this.ima="";this.Dm("finalizeVideo")&&(this.Pz=!1,this.Lla(!1),g6(this,"a-Kb-ii"));this.getContext().We().Xgb("1",1)};
var R4d=function(a){a.Pz=!1;a.bOa=!1;a.cSa=(new gn(1)).format(new dn);a.Pf.Qb=a.cSa;var b;b=Wa();b=r4(BUd(b),aVd);a.Be=b+".flv";b=new wY(a.Be);var c=a.Pf.Aga(b);c.album_abs_position="0";c.fastTranscode="true";c.height=""+(a.Xd.getOption("vHeight")||360);c.width=""+(a.Xd.getOption("vWidth")||480);b=a.yH;var d=a.Be,c=new Ze(c);a=new Wf;a.Vb=!0;b.Ba.Ja(a,"success",b.pKc).Ja(a,"error",b.t2a);d={protocolVersion:"0.8",createSessionRequest:{fields:[{external:{name:"file",filename:d}}]}};d.createSessionRequest.fields[0].external[b.Sa]=
{};c&&Qcd(d,c);c={};Zb(c,b.mL);Zb(c,Ncd("scotty "+b.Sa));d=Rf(d);a.send(b.Oa,"POST",d,c)},S4d=function(a,b){a.Ye=Wa()-b;a.Mma()},T4d=function(a){a.mN.stop();"a-Kb-OO"==a.Sb&&(a.iu=Wa()-a.Ye)};e6.prototype.sA=function(){if(this.lp){var a={};a.name=this.cSa;a.serviceId=this.lp.Sa;a.sourceId=this.lp.Vb;a.id=this.lp.vt().split(".").pop();a=new Vw(a);a.zJ(!0);a.Oa=1;a=[this.lp,a];this.getContext().od.Xp(a);this.getContext().We().dE();this.getContext().Ab.Sl([this.lp]);this.getContext().od.xk(40)}};
var g6=function(a,b){var c=c6(a);if(c&&c.addListener&&c.startCamera&&ve(c)){("a-Kb-OO"==a.Sb&&"a-Kb-Tdb"==b||"a-Kb-A2a"==a.Sb&&"a-Kb-OO"==b||"a-Kb-uf"==a.Sb&&"a-Kb-Tdb"==b)&&a.yja[b].play(!0);a.Sb=b;switch(a.Sb){case "a-Kb-A2a":a.Km.setVisible(!1);a.Qb.setVisible(!0);a.Vb.setVisible(!1);a.Ko.setVisible(!0);a.YY.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!1);a.mL.setVisible(!1);a.Oa.setVisible(!1);a.Vk.setVisible(!1);On(a.Xb,!a.Pz);a.Ko.Ta(a.Pz&&!a.Wea&&a.bOa);a.cj.qh(!1);break;case "a-Kb-OO":a.Km.setVisible(!1);
a.Qb.setVisible(!0);a.Vb.setVisible(!1);a.Ko.setVisible(!1);a.YY.setVisible(!0);a.Db.setVisible(!1);a.Op.setVisible(!1);a.mL.setVisible(!1);a.Oa.setVisible(!1);a.Vk.setVisible(!0);On(a.Xb,!1);a.YY.Ta(!0);a.cj.qh(!1);break;case "a-Kb-Tdb":a.Km.setVisible(a.Pz);a.Qb.setVisible(!1);a.Vb.setVisible(!0);a.Ko.setVisible(!1);a.YY.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!1);a.mL.setVisible(!0);a.Oa.setVisible(!0);a.Vk.setVisible(!1);On(a.Xb,!a.Pz);a.Vb.Ta(a.Pz);a.cj.qh(a.Pz);break;case "a-Kb-dia":a.Km.setVisible(!0);
a.Qb.setVisible(!1);a.Vb.setVisible(!1);a.Ko.setVisible(!1);a.YY.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!0);a.mL.setVisible(!0);a.Oa.setVisible(!0);a.Vk.setVisible(!1);On(a.Xb,!1);a.cj.qh(!0);break;case "a-Kb-ii":case "a-Kb-wa":a.Km.setVisible(!1);a.Qb.setVisible(!1);a.Vb.setVisible(!1);a.Ko.setVisible(!1);a.YY.setVisible(!1);a.Db.setVisible(!1);a.Op.setVisible(!1);a.mL.setVisible(!1);a.Oa.setVisible(!1);a.Vk.setVisible(!1);On(a.Xb,!1);a.cj.qh(!1);break;case "a-Kb-uf":a.Km.setVisible(!1),
a.Qb.setVisible(!1),a.Vb.setVisible(!1),a.Ko.setVisible(!1),a.YY.setVisible(!1),a.Db.setVisible(!0),a.Op.setVisible(!1),a.mL.setVisible(!1),a.Oa.setVisible(!1),a.Vk.setVisible(!1),On(a.Xb,!1),a.cj.qh(!1)}a.Ag.className="a-Kb-ea "+a.Sb+" d-k-l";a.Mma()}else a.Km.setVisible(!1),a.Qb.setVisible(!1),a.Vb.setVisible(!1),a.Ko.setVisible(!1),a.YY.setVisible(!1),a.Db.setVisible(!1),a.Op.setVisible(!1),a.mL.setVisible(!1),a.Oa.setVisible(!1),a.Vk.setVisible(!1)};
e6.prototype.Mma=function(){switch(this.Sb){case "a-Kb-OO":var a=this.Vk.ta();oNa(a,Qlg(Wa()-this.Ye,this.Uma));break;case "a-Kb-Tdb":var b=Math.min(this.mL.getValue(),this.iu),a=this.Oa.ta();oNa(a,Qlg(b,this.iu));break;case "a-Kb-dia":b=Math.min(Wa()-this.Ye,this.iu),a=this.Oa.ta(),oNa(a,Qlg(b,this.iu)),this.mL.JJ(b),this.aua=b}};
var o3e=function(a,b,c){M5.call(this,a,b,c)};t(o3e,M5);
o3e.prototype.oT=function(){var a=o3e.ya.oT.call(this),b=this.Ea(),c=b.Pa("div","a-tb-tc-i3-im-epa");a.appendChild(c);this.getContext().rd();var d=this.Xd.getOption("ytRecWidth"),f=this.Xd.getOption("ytRecHeight");d&&f&&(d=b.Pa("div","a-tb-tc-i3-im-nc","Recommended channel art size: "+(d+(" x "+f))),c.appendChild(d));if(d=this.Xd.getOption("ytMaxFileSize"))d=b.Pa("div","a-tb-tc-i3-im-nc","Max file size: "+(d+" MB")),c.appendChild(d);b=b.Pa("a","a-tb-tc-Ooa-mK-s","How to create channel art");c=Jf("https://support.google.com/youtube/bin/answer.py?answer=2972003&topic=16630&ctx=topic"); Hf(c,"hl",My.Sa);b.href=c.toString();b.target="_blank";WQd(this.cj,rba(b));return a};o3e.prototype.YK=function(){return"youtubebanner"};
var U4d=function(){kd.call(this)};t(U4d,x3);U4d.prototype.Ab=function(){return T5};
U4d.prototype.uj=function(a,b,c){if("photos"==a.Sa){if(a.getOption("upload"))return new C4(b,a,new U5(b,a,c),[],c);if("edit"==a.getOption("mode"))return new W5(b,a,c)}else if("photo-curation"==a.Sa)return new O3d(b,a,c);b.rd();if("upload"==a.Sa){if(!OQd(a))return null;var d=a.getQuery();if(!d)return null;switch(d){case "videos":return new $5(b,a,c);case "localphotos":return new Z2e(b,a,c);case "profile":return new W5(b,a,c);case "youtubebanner":return new o3e(b,a,c);default:return Big(a,b.rd()),new W5(b,
a,c)}}else{if("webcam"==a.Sa)return"video"==(a.Ra()||"video")?new e6(b,a,c):new b6(b,a,c);if("photo-upload"==a.Sa)return Big(a,b.rd()),new X5(b,a,c)}return null};var Big=function(a,b){if(b.Xb&&!b.Qb){var c=a.getOption("data")||{};c.auto_create_album="default";BN(a,"data",c)}};vg(xg(E.ia(),"oppu"),U4d);

G("oppu");I();
}catch(e){_DumpException(e)}
try{
var Zrd=function(){return Y('<div class="nR">You entered a birthday that is after the date this account was created.</div>')},$rd=function(){return Y('<div class="nR">Please enter a valid birthday.</div>')},asd=function(){return Y('<div class="nR">Please fill in a complete birthday.</div>')},bsd=function(){return Y('<div class="nR">Please enter a four digit year.</div>')};H("sy911");
var F_=function(a){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(a);a=this.Ea();for(var b=new Bp(a),c=1;31>=c;c++){var d=new yp(""+c,c,a);b.ib(d,!0)}this.Sa=new jD("Day",b,this.Ea());Gp(this.Sa);this.mL=new jD("Month",csd(this),this.Ea());Gp(this.mL);this.Ab=new vx("Year",this.Ea())};t(F_,C);q=F_.prototype;q.aza=!0;q.Dhb=!0;q.Pa=function(){var a=this.Ea().Pa("div","G6");this.Kb(a);gsd(this,a);this.Sa.ta().setAttribute("aria-label","Birth day");this.mL.ta().setAttribute("aria-label","Birth month")};
q.Di=function(){return!0};q.ra=function(a){F_.ya.ra.call(this,a);zc(a);gsd(this,a)};q.Na=function(){F_.ya.Na.call(this);On(this.Ab.ta(),this.aza);this.getHandler().Ja(this.mL,"change",this.Qb);this.getHandler().Ja(this.Sa.ta(),"mousedown",this.Qxc)};q.Qxc=function(){this.Sa.Ko()};var dsd=function(a,b,c){switch(b){case "yta":b=Zrd;break;case "iyl":b=bsd;break;case "ef":b=asd;break;case "i":b=$rd;break;default:b=$rd}Vv(a.ha,c,b)};F_.prototype.Yj=function(){return!qa(G_(this))};
F_.prototype.yZ=function(a){var b=D("cfa",this.ta());dsd(this,a,b)};
var G_=function(a){var b=a.mL.getValue(),c=a.Sa.getValue(),d=a.Ab.getValue();if(!sa(b)||!sa(c))return"ef";var f=void 0;if(a.aza)if(d)if(Ha(d))if(2===d.length)a=(new dn).getFullYear(),f=100*Math.floor(a/100)+Za(d),5>a-f&&(f-=100);else{if(4!==d.length)return"iyl";f=Za(d)}else return"i";else if(a.Dhb)return"ef";if(0>b||12<=b)return"i";if(sa(f)){if(!(d=!(0<c&&c<=an(f,b)))){d=f;a=new dn(d,b,c);var h=new dn,d=!(d>=h.getFullYear()-130&&a<=h)}if(d)return"i"}else if(!(0<c&&c<=an(2E3,b)))return"i";d=new kl;
sa(f)&&Py(d,3,f);Py(d,2,b+1);Py(d,1,c);return d};F_.prototype.kl=function(){var a=G_(this);return qa(a)?null:a};
var esd=function(a,b,c,d){fsd(a,b);a.Sa.Wj(sa(c)?c.toString():"");a.Ab.qe(sa(d)?d.toString():"")},gsd=function(a,b){var c={d:a.Sa,M:a.mL,y:a.Ab};v(Zz.ZY[3].split(/[^A-Za-z]+/),function(a){var f=c[a[0]];"y"==a[0]&&f?(this.ib(f,!1),this.Ab.yb(U(this.ha,w7,{OG:"Year",Cma:!0})),b.appendChild(f.ta())):f&&(this.ib(f,!1),f.render(b))},a);a.Sa.ta().setAttribute("maxlength",2);Qn(a.Sa.ta(),"BPa");Qn(a.Sa.ta(),"rK");Qn(a.Sa.ta(),"nj");Qn(a.Sa.ta(),"d-k-l");Qn(a.Sa.Ne().ta(),"CPa");Qn(a.Sa.Ne().ta(),"H6");Qn(a.mL.ta(),
"DPa");Qn(a.mL.ta(),"s3");Qn(a.mL.ta(),"nj");Qn(a.mL.ta(),"d-k-l");a.Ab.ta().setAttribute("maxlength",4);Qn(a.Ab.ta(),"EPa");Qn(a.Ab.ta(),"tI");Qn(a.Ab.ta(),"nj");Qn(a.Ab.ta(),"d-k-l");On(a.Ab.ta(),a.aza)},csd=function(a){var b=a.Ea(),c=new Bp(b);v(Zz.iBa,function(a,f){c.ib(new yp(a,f,b),!0)});return c};F_.prototype.Qb=function(a){a=a.target.getValue();fsd(this,a)}; var fsd=function(a,b){a.mL.Wj(b);var c=b?an(2E3,b):31,d=a.Sa.Ne();v(d.wu(),function(a){a.setVisible(a.getValue()<=c)},a);(d=a.Sa.getValue())&&d>c&&a.Sa.Wj(c);a.Sa.o9=void 0};

G("sy911");I();
}catch(e){_DumpException(e)}
try{
H("sy912");
G("sy912");I();
}catch(e){_DumpException(e)}
try{
H("sy914");var $xd=function(a,b,c){b=Y;var d="<div>"+Y("Here are some tips on choosing a name:")+'</div><p class ="WA6yTc">',f;f=Y("If this is the name of a business:");d=d+f+'</p><p class="Zn1BN">';f="";var h=wA(new Z("{VIEWER_GENDER,select,female{If you\u2019re trying to create an account for your business, brand, or organization, stop here! {PRODUCT_NAME} Pages will give you much better features for this, such as letting you have multiple managers and Business Insights. Instead of creating this account, create an account for yourself personally (if you don\u2019t already have one) and then follow {START_LINK}these instructions{END_LINK}.}male{If you\u2019re trying to create an account for your business, brand, or organization, stop here! {PRODUCT_NAME} Pages will give you much better features for this, such as letting you have multiple managers and Business Insights. Instead of creating this account, create an account for yourself personally (if you don\u2019t already have one) and then follow {START_LINK}these instructions{END_LINK}.}other{If you\u2019re trying to create an account for your business, brand, or organization, stop here! {PRODUCT_NAME} Pages will give you much better features for this, such as letting you have multiple managers and Business Insights. Instead of creating this account, create an account for yourself personally (if you don\u2019t already have one) and then follow {START_LINK}these instructions{END_LINK}.}}"),
{VIEWER_GENDER:c.Aa,PRODUCT_NAME:Ht(),START_LINK:'<a class="d-s" target="_blank" href="'+R(S(Jp(vjb({cY:1710691}))))+'">',END_LINK:"</a>"});f=Y(f+h);d=d+f+'</p><p class ="WA6yTc">';f=Y("If this is a nickname:");d=d+f+'</p><p class="Zn1BN">';f="";h=wA(new Z("{VIEWER_GENDER,select,female{If you want to show an additional name in addition to your first and last name, such as a nickname, a maiden name, or your name in a different alphabet, you can do that after your account is set up.}male{If you want to show an additional name in addition to your first and last name, such as a nickname, a maiden name, or your name in a different alphabet, you can do that after your account is set up.}other{If you want to show an additional name in addition to your first and last name, such as a nickname, a maiden name, or your name in a different alphabet, you can do that after your account is set up.}}"),
{VIEWER_GENDER:c.Aa});f=Y(f+h);d=d+f+'</p><p class ="WA6yTc">';f=Y("Otherwise:");d=d+f+'</p><p class="Zn1BN">';f="";h=wA(new Z("{VIEWER_GENDER,select,female{{PRODUCT_NAME} makes connecting with people on the web more like connecting with people in the real world. It's recommended that you go by the name your friends, family, and colleagues know you by, because it will help you connect with people you know and help them find you.}male{{PRODUCT_NAME} makes connecting with people on the web more like connecting with people in the real world. It's recommended that you go by the name your friends, family, and colleagues know you by, because it will help you connect with people you know and help them find you.}other{{PRODUCT_NAME} makes connecting with people on the web more like connecting with people in the real world. It's recommended that you go by the name your friends, family, and colleagues know you by, because it will help you connect with people you know and help them find you.}}"),
{VIEWER_GENDER:c.Aa,PRODUCT_NAME:Ht()});f=Y(f+h);d=d+f+'</p><p class="K5OwQ">';f="";a=wA(new Z('{VIEWER_GENDER,select,female{If you want to go back and change the name you\u2019ve entered, click "Go back." If you\u2019ve read this and still want to create a profile named \u201c{NAME},\u201d click "Proceed anyway."}male{If you want to go back and change the name you\u2019ve entered, click "Go back." If you\u2019ve read this and still want to create a profile named \u201c{NAME},\u201d click "Proceed anyway."}other{If you want to go back and change the name you\u2019ve entered, click "Go back." If you\u2019ve read this and still want to create a profile named \u201c{NAME},\u201d click "Proceed anyway."}}'),
{VIEWER_GENDER:c.Aa,NAME:r(a.name)});a=Y(f+a);return b(d+a+"</p>")},rGd=function(a,b,c){b="";a=wA(new Z('{VIEWER_GENDER,select,female{Using "{NAME}" as your name may not result in the best experience on Google.}male{Using "{NAME}" as your name may not result in the best experience on Google.}other{Using "{NAME}" as your name may not result in the best experience on Google.}}'),{VIEWER_GENDER:c.Aa,NAME:r(a.name)});return Y(b+a)};
var W$f=function(a,b){Ld.call(this);this.Fa=a;this.hE=b;this.ha=V(this.Fa)};t(W$f,Ld);
var oug=function(a,b,c,d){a.Sa=new mz(a.Fa,void 0,!0);a.Sa.setTitle(a.ha.render(rGd,{name:d}));Vv(a.ha,a.Sa.cb(),$xd,{name:d});a.Sa.Qd(lI(lI(new qx,{key:"ok",caption:"Proceed anyway"},!1,!1),{key:"cancel",caption:"Go back"},!0,!0));a.Sa.ud(!0);a.Sa.iwa="alertdialog";Z$f(a,a.Sa,b,c);a.Sa.setVisible(!0)},Z$f=function(a,b,c,d){yd(b,"dialogselect",function(a){a.key==b.xe.mL?(qp(this.Fa).Ha(K7f),d&&d.call(this)):(qp(this.Fa).Ha(J7f),c.call(this))},void 0,a)};

G("sy914");I();
}catch(e){_DumpException(e)}
try{
var p5d=function(a){return 13==a.charCode||3==a.charCode||32==a.charCode||13==a.keyCode||3==a.keyCode||32==a.keyCode},o5d=function(a,b,c){(b=qa("gga")?b.fb("gga"):"gga")&&qr(qr(c,b,"click",function(){this.Ha(ycf)},!1,a),b,"keypress",function(a){p5d(a)&&this.Ha(ycf)},!1,a)},xcf=function(a){K(this,a,0,-1,[])};t(xcf,J);var O5d=function(a,b,c){return Y(rn("bd","")(a,null,c))},x5d=function(a){K(this,a,0,-1,[])};t(x5d,J);x5d.prototype.Ob=function(){return w(this,5)};
var y5d=function(a,b,c){a=""+('<div class="yj"><p class="dj">'+rn("jd","")(a,null,c)+'</p><p class="dj">Trying to use a nickname, maiden name, or a name in another script?  Add it to the Nickname part of your profile after sign up.</p>'+MKb(a,c)+"</div>");return Y(a)},z5d=function(a){var b=Y,c;c="";a='The name "'+(r(a.name)+'" cannot be used because it contains numbers, punctuation, or other symbols which are not allowed by our system.');c=Y(c+('<div class="yj"><p class="dj">'+a+"</p></div>"));return b('<div class="o-Ma-Csa">'+ c+"</div>")};H("lo_dlgs");
var J6d=new W(b5,56);new W(b5,57);new W(b5,58);new W(b5,59);var E6d=new W(b5,62),F6d=new W(b5,63),C6d=new W(b5,65),L6d=new W(b5,66);var j6=function(a,b,c){mz.call(this,a,void 0,!0);this.Sa=c};t(j6,mz);j6.prototype.Pa=function(){j6.ya.Pa.call(this);this.Qd(null);this.ud(!0);Qn(this.ta(),"rk");Qn(this.hg(),"rk")};j6.prototype.Na=function(){j6.ya.Na.call(this);var a=this.fb("Dta");this.getHandler().yj(a,["click","keypress"],Lp(this.setVisible,this,!1));a=this.hg();this.getHandler().yj(a,"click",Lp(this.setVisible,this,!1))};
var C5d=function(){return Y('<div class="Dta wq"></div>')};var o6d=function(a){var b="",c=wA(new Z("{VIEWER_GENDER,select,female{Add people you care about to see what they're sharing.}male{Add people you care about to see what they're sharing.}other{Add people you care about to see what they're sharing.}}"),{VIEWER_GENDER:a.Aa}),b=b+'<div class="Vea"><div class="yv">';a=a.RV?wA(new Z("{VIEWER_GENDER,select,female{Welcome to {PRODUCT_NAME_1}, {FIRST_NAME}}male{Welcome to {PRODUCT_NAME_2}, {FIRST_NAME}}other{Welcome to {PRODUCT_NAME_3}, {FIRST_NAME}}}"),{VIEWER_GENDER:a.Aa,
PRODUCT_NAME_1:Q(Ht()),FIRST_NAME:r(a.RV),PRODUCT_NAME_2:Q(Ht()),PRODUCT_NAME_3:Q(Ht())}):"Welcome to "+Q(Ht());b+=a;b+='</div><div class="KG">'+c+" "+Q(eV({caption:jA("Learn more")}))+"</div></div>";return Y(b)},p6d=function(){var a=Y,b='<div class="Tm">'+C5d()+Q(rvc({Wia:null,Jk:Oz("K4a")}))+'<div class="L4a LN"></div>',c;c=""+('<div class="y5 KN">'+Q(Mt({style:2,oa:Oz("J4a Z8b"),content:jA("Finish")}))+"</div>");c=Y(c);return a(b+c+"</div>")};
var q6d=function(a,b,c,d,f,h){mz.call(this,a,"Di-q",!0);this.Fa=a;this.zb=qp(a);this.ha=V(a);wi(a);this.Qb=ny(a);this.Db=d;this.mL=f;this.YY=b;this.Oa=c;this.Sa=h||null;(a=this.Fa.Vc(yH))&&a.umd(this)};t(q6d,mz);
q6d.prototype.Pa=function(){q6d.ya.Pa.call(this);this.Qd(null);this.ep=!1;var a=this.mL;a.Aa=this.Qb.kb().Tj();a.V1=this.YY;Vv(this.ha,sFa(this),o6d,a);a=this.mL;a.V1=this.YY;this.setContent(this.ha.render(p6d,a));this.Ab=new RR(this.Fa,"LiteSignup.FriendsDialog",1,void 0,16);this.Ab.lL=!1;this.ib(this.Ab);a=this.fb("L4a");this.Ab.yb(a);if(a=this.fb("IPa")){var b=new qHd(this.Fa,this);this.ib(b);b.yb(a)}};
q6d.prototype.Na=function(){q6d.ya.Na.call(this);this.getHandler().Ja(this.ta(),"keydown",Lp(this.Xb,this));this.$b=r6d(this,Lp(function(a){a.preventDefault();zcf(this,E6d)},this));bg(this.Fa.kd(eH).addCallback(this.iu,this),mg)};var r6d=function(a,b){var c=a.Ea().fb("J4a"),d=new Ot(null,a.Ea());a.ib(d,!1);d.yb(c);a.getHandler().Ja(d,"action",b);return d};q6d.prototype.Xb=function(a){var b=a.target;27!=a.keyCode||"SELECT"==b.tagName&&!b.disabled||(a.stopPropagation(),a.preventDefault(),zcf(this,F6d))};
q6d.prototype.Oe=function(){this.setVisible(!1)};q6d.prototype.show=function(){this.setVisible(!0)};var zcf=function(a,b){var c=new zs;c.Fm("friends-dialog");a.zb.Ha({Ub:b,qd:c});a.zb.It();a.setVisible(!1);a.Vb();a.Ma()};q6d.prototype.Vb=function(){var a=this.Ea().getWindow(),b=new Af(a.location.href),c=a.OZ_savedQueryParams;if(c)for(var d in c)Hf(b,d,c[d]);Ea(Ga(this.Oa))||Hf(b,"gpsrc",this.Oa);dy(a.location,b.toString())};q6d.prototype.iu=function(a){this.$c=a;this.$c.$k().addCallback(this.DP,this)};
q6d.prototype.DP=function(a){if(!this.Sa){this.Sa=new ag;var b=[a.wL(!1,!0),this.$c.c6a(),this.$c.$5a()];bg((new eq(b)).addCallback(function(b){b[0][0]&&(b=b[0][1].xp(),b=ec(b,function(b){return!a.Dv(b)}),this.Sa.By(b))},this),function(){this.Sa.By([])},this)}this.Sa.addCallback(function(b){var d=this.Db,f;d&&(f=d.Xa(),d=d.Cd(),d=zB(f,void 0,void 0,this.mL.Lf,!1,!0,void 0,d),ib(b,d),f=[d],b=Qvc(new Pvc(a,0,8),b,f).G3a);d=this.Ab;1==b.length&&(Qn(lF(this),"Um"),this.Wd());qze(d,b,f);On(this.fb("K4a"), !1)},this)};
qn("Ak","",0,function(){var a="",b="Join "+(Q(Ht())+" by creating your public profile");return Y(a+b)});var Acf=function(a){var b="";a="Your account is managed by "+(r(a.o3b)+".");b+=a+" Your administrator can access, modify or delete your data at any time without your permission. "+Q(Kt({cY:181692,product:"accounts",Ia:Oz("Pob")}));return Y(b)},Ecf=function(a,b,c){return Y(rn("Mk","")(a,null,c))};
qn("Mk","",0,function(a){var b=Y,c='<div class="Bga bAa"><div class="u8 Ura"></div><div class="Tra"><div class="r8"></div>'+Q(Y('<div class="dfa Q0a"></div>'))+(a.dla?Q(Y('<div class="bfa NMa"></div>')):"")+"</div>",d="";a.gga&&(d+='<div class="SM"><div class="lP s8">'+Q(mD({oa:Oz("BB a7"),JH:Oz("picasa-checkbox-label")}))+'<label id="picasa-checkbox-label" class="CB">I understand the changes to Picasa Web Albums when I create a profile.</label><div class="t8 RM" aria-live="polite"></div></div></div>'); a=Y(d);return b(c+a+"</div>")});var Lcf=function(){return Y("Check the box above once you understand the Picasa changes.")};
var s6d=function(a,b,c){return Y('<div class="Ox"><span class="Hpb"></span><div class="yv">'+rn("Nk","")(a,null,c)+"</div>"+t6d(c)+"</div>")};qn("Nk","",0,function(){var a="",b="Create your public "+(Q(Ht())+" profile");return Y(a+b)});var t6d=function(a){return Y('<div class="KG">'+rn("Ok","")(null,null,a)+"</div>")};qn("Ok","",0,function(){return Y("Choose how you'll appear publicly across Google")});
var u6d=function(a,b,c){b='<div class="Ox"><div class="yv">';if(a.Lf)switch(a.V1){case 4:a="Create a "+(Q(Ht())+(" profile to leave a comment on "+(r(a.Lf)+"'s post")));b+=a;break;case 3:a="Create a "+(Q(Ht())+(" profile to start a hangout on "+(r(a.Lf)+"'s post")));b+=a;break;case 1:a="Create a "+(Q(Ht())+(" profile to +1 "+(r(a.Lf)+"'s post")));b+=a;break;case 2:a="Create a "+(Q(Ht())+(" profile to reshare "+(r(a.Lf)+"'s post"))),b+=a}else switch(a.V1){case 4:a="Create a "+(Q(Ht())+" profile to leave a comment on this post");
b+=a;break;case 3:a="Create a "+(Q(Ht())+" profile to start a hangout on this post");b+=a;break;case 1:a="Create a "+(Q(Ht())+" profile to +1 this post");b+=a;break;case 2:a="Create a "+(Q(Ht())+" profile to reshare this post"),b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},C8e=function(a,b,c){b='<div class="Ox"><div class="yv">';switch(a.V1){case 14:a="Create a public "+(Q(Ht())+" profile to write a review"),b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},Mcf=function(a,b,c){b='<div class="Ox"><div class="yv">';
switch(a.V1){case 15:a="Create a "+(Q(Ht())+" profile to get this offer"),b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},v6d=function(a,b,c){b='<div class="Ox"><div class="yv">';switch(a.V1){case 7:a="Create a "+(Q(Ht())+(' profile to add photos to "'+(r(a.vv)+'"')));b+=a;break;case 6:a="Create a "+(Q(Ht())+(' profile to leave a comment on "'+(r(a.vv)+'"')));b+=a;break;case 9:a="Create a "+(Q(Ht())+(' profile to hangout on "'+(r(a.vv)+'"')));b+=a;break;case 8:a="Create a "+(Q(Ht())+(' profile to invite more people to "'+
(r(a.vv)+'"')));b+=a;break;case 5:a="Create a "+(Q(Ht())+(' profile to +1 "'+(r(a.vv)+'"')));b+=a;break;case 10:a="Create a "+(Q(Ht())+(' profile to RSVP to "'+(r(a.vv)+'"'))),b+=a}b+="</div>"+t6d(c)+"</div>";return Y(b)},O1e=function(a){a=a||{};var b="";a="Join "+(r(a.wDa)+(" on "+Q(Ht())));var c="Create a "+(Q(Ht())+" profile to participate");return Y(b+('<div class="Ox"><div class="yv">'+a+'</div><div class="KG">'+c+"</div></div>"))},Ncf=function(){var a="",b="To sign in with Google, create a public "+
(Q(Ht())+" profile");return Y(a+('<div class="Ox"><div class="yv">'+b+"</div></div>"))},w6d=function(){return Y('<div class="U9">Loading...</div>')},x6d=function(a,b,c){b=Y;var d='<div class="VMa">'+C5d()+(a.mPc?'<div class="UKa vX"></div>':""),f;f='<div class="Fpb nxa">'+Y('<div class="P8 u8"></div>')+'<div class="R8"><div class="AJ"><span class="Aib Gpb sna"></span>';var h,k=jA('<span class="r8 hi"></span>');h="";k="My name is "+r(k);h=Y(h+k);h=f+h+"</div>"+rn("Ed","")(null,null,c);if(a.dla){h+=
'<div class="yJ">';f=jA("People you connect with on Google can see the month and day of your birthday.");var m=jA('<span class="yib Zj bfa"></span>'),k="",m="I was born on "+r(m),k=Y(k+m);h=h+(k+Q(Kt({cY:1350405,content:jA('<img class="R9" src="//ssl.gstatic.com/s2/oz/images/up/info-icon.png" alt="'+R(f)+'" data-tooltip="'+R(f)+'" data-tooltip-align="t,c" />')})))}h+="</div></div>";a.N0c&&(f=wA(new Z("{VIEWER_GENDER,select,female{You can change your profile information at any time.}male{You can change your profile information at any time.}other{You can change your profile information at any time.}}"),
{VIEWER_GENDER:c.Aa}),h+='<div class="mIJNUe">'+f+" "+Q(Kt({cY:1355890}))+"</div>");f=h;h="";a.gga&&(k="",m=Y("Picasa users, note:"),k=k+('<div class="kL Xla">'+m+'</div><div class="F2"><ul class="RDdAxe"><li class="tgKH7">People you\'ve shared albums with will see those pictures on your profile and in their Google Search results.</li><li class="tgKH7">Your name will show up on your photos, comments and tags instead of your Picasa nickname.</li><li class="tgKH7">Anyone you share an album with can see who else it\'s shared with and reshare it, unless you lock the album. '+
Q(Kt({cY:1321133,product:"picasa",Ia:Oz("X6a d-s")}))+"</li></ul></div>"),k=Y(k),h=h+('<div class="Q8">'+r(k)+'<div class="SM"><div class="lP s8">'+Q(mD({oa:Oz("BB a7"),JH:Oz("picasa-checkbox-label")}))+'<label id="picasa-checkbox-label" class="CB">I understand the changes to Picasa Web Albums when I create a profile.</label><div class="t8 RM"></div></div></div></div>'));h=Y(h);f=Y(f+(h+"</div>"));d+=f;f="";f=24==a.V1?f+"Join community":f+"Create";a='<div class="y5">'+Q(Mt({style:2,oa:Oz("TKa T9"),
content:jA(f)}));a+=rn("qa","")(null,null,c)+"</div>";c=Y(a);return b(d+c+"</div>")};qn("Ed","",0,function(){var a=Y,b,c=jA('<span class="zib sq dfa"></span>');b="";c="I am "+r(c);b=Y(b+c);return a('<div class="zJ">'+b+"</div>")});qn("qa","",0,function(){var a;a=""+Q(Mt({oa:Oz("SKa S9"),content:jA("Cancel")}));return Y(a)});
var d9d=function(a){K(this,a,"ucd",-1,[])};t(d9d,J);d9d.Zb="ucd";var Yqe=function(a,b){this.Fa=a;this.mL=b;Hle(this)},Hle=function(a){cg(ui(ri(a.Fa),"/_/up/nextstep/",{sourceType:a.mL},d9d),a.Ab,function(){},a)};Yqe.prototype.Ab=function(a){this.Sa=w(a,1)};var G5d=function(a){K(this,a,"osg.sgur",-1,[])};t(G5d,J);G5d.Zb="osg.sgur";G5d.prototype.RK=function(){return w(this,2)};var Ocf=function(a,b,c){return Y(rn("Pk","")(a,null,c))};qn("Pk","",0,function(a){a=a||{};a=""+('<div class="sy DB"><div class="Y0 dC" aria-live="polite"></div><div class="e6">Name</div>'+(a.oY?Pcf(a)+Qcf()+Rcf(a):Rcf(a)+Qcf()+Pcf(a))+"</div>");return Y(a)});
var Rcf=function(a){a=a||{};var b=Y;a='<div class="xs d-k-l"><label><input class="e5 Np" type="text" name="givenName" value="'+(a.Ql?R(a.Ql):"")+'" label="';var c;c=Y("First name");return b(a+R(c)+'"/></label></div>')},Pcf=function(a){a=a||{};var b=Y;a='<div class="Os d-k-l"><label><input class="v8 Np" type="text" name="familyName" value="'+(a.su?R(a.su):"")+'" label="';var c;c=Y("Last name");return b(a+R(c)+'"/></label></div>')},Qcf=function(){return Y('<div class="Kia u5 d-k-l"></div>')},Scf=function(){return Y('<span class="Sua" aria-live="polite">This will be your name across all Google products</span>')};
var S5d=function(a,b,c){b='<div class="sy">'+(a.ueb?T5d(a,c)+'<div class="Y0 dC" aria-live="polite"></div>':"")+(a.oY?U5d(a)+V5d(a):V5d(a)+U5d(a));a.ueb||(b+=T5d(a,c)+'<div class="Tha">Your profile and +1\'s appear publicly in search, on ads, and across the web.'+kdf(pn(a,{url:jy("https://www.google.com/support/plus/bin/static.py?page=guide.cs&guide=1207011&answer=1186915&hl="+vn(c.locale)),Ia:Oz("lO")}))+'</div><div class="Y0 dC" aria-live="polite"></div>');return Y(b+"</div>")},T5d=function(a,b){var c=
'<div class="ixa Tha">',c=!a.hbb&&a.G_b?c+"Create a public profile and control how you appear.":c+("This will update your name in other Google products."+kdf(pn(a,{url:jy("https://www.google.com/support/profiles/bin/answer.py?answer=97703&hl="+vn(b.locale)),Ia:Oz("lO o-oa-Zdb")})));return Y(c+"</div>")},ldf=function(){return P("First name")},mdf=function(){return P("Last name")},V5d=function(a){return Y((a.Oya?'<div class="xs"><label><div class="Vra">'+r(ldf())+"</div>":"")+'<input class="e5 Np" type="text" name="givenName" value="'+
(a.Ql?R(a.Ql):"")+'" label="'+R(ldf())+'"/>'+(a.Oya?"</label></div>":""))},U5d=function(a){return Y((a.Oya?'<div class="Os"><label><div class="Vra">'+r(mdf())+"</div>":"")+'<input class="v8 Np" type="text" name="familyName" value="'+(a.su?R(a.su):"")+'" label="'+R(mdf())+'"/>'+(a.Oya?"</label></div>":""))},kdf=function(a){a=""+('<a href="'+R(S(a.url))+'" target="_blank" class="d-s'+(a.Ia?" "+R(a.Ia):"")+' Eya" title="Learn more"></a>');return Y(a)},JHd=function(){return Y('<div class="Jka f4">Please fill in the name fields.</div>')};
var k6=function(a,b,c,d,f,h,k,m,p,u){C.call(this,T(a).Ea());this.xa=a;this.Tb=V(a);this.Qb=b;this.Vk=c;this.Ko=d;this.Km=f;this.oY=h;this.Ql=xng(k)||"";this.su=xng(m)||"";this.Ag=p||"";this.Op=new i6(a,u);this.Ab=this.mL=null;this.Oa=!1};t(k6,C);var X5d=/^[A-Z]*[., ]*$/,Y5d=/^[a-z]*[., ]*$/,Z5d=/^(.)(.*)$/,xng=function(a){a&&(X5d.test(a)||Y5d.test(a))&&(a=a.match(Z5d),a=a[1].toUpperCase()+a[2].toLowerCase());return a};
k6.prototype.Pa=function(){this.Kb(U(this.Tb,this.W_a(),{hbb:this.Qb,G_b:this.Vk,ueb:this.Ko,Oya:this.Km,Ql:this.Ql,su:this.su,oY:this.oY}));this.mL=$5d(this,"e5");this.Ab=$5d(this,"v8");this.mL.qe(this.Ql);this.Ab.qe(this.su)};k6.prototype.W_a=function(){return S5d};k6.prototype.Di=function(){return!1};var $5d=function(a,b){var c=D(b,a.ta());c.value="";var d=new vx(void 0,a.Ea());a.ib(d,!1);d.yb(c);return d};
k6.prototype.Na=function(){k6.ya.Na.call(this);this.getHandler().Ja(this.mL.ta(),["keypress","keyup"],this.YY);this.getHandler().Ja(this.Ab.ta(),["keypress","keyup"],this.YY);this.getHandler().Ja(this.Ab.ta(),"blur",this.$b);this.getHandler().Ja(this.mL.ta(),"blur",this.$b);a6d(this);yDa()};k6.prototype.qb=function(){k6.ya.qb.call(this);BDa()};k6.prototype.reset=function(){this.mL.qe(this.Ql);this.Ab.qe(this.su);this.jka()};
var a6d=function(a){for(var b=a;b;){if(!ve(b.ta()))return;b=b.getParent()}a.oY?a.Ab.rq():a.mL.rq()};k6.prototype.Vb=function(a){switch(a){case "i":this.yZ(z5d);break;case "n":this.yZ(y5d);break;default:this.yZ(LKb)}};k6.prototype.Yj=function(){return this.XA().length&&this.cG().length?!0:(this.yZ(JHd),!1)};k6.prototype.yZ=function(a,b){b6d(this,!1);this.jka();var c=this.kN?this.cG()+" "+this.XA():this.XA()+" "+this.cG(),c=U(this.Tb,a,{locale:"en-US",aaa:this.Qb,qf:this.Ag||"",cUa:!!b,name:c});ndf(this).appendChild(c)};
k6.prototype.jka=function(){zc(ndf(this))};var ndf=function(a){return D("Y0",a.ta())},b6d=function(a,b){if(a.lp){var c=D("ixa",a.ta());On(c,b)}};k6.prototype.XA=function(){return Ia(this.mL.getValue())};k6.prototype.cG=function(){return Ia(this.Ab.getValue())};k6.prototype.YY=function(a){this.jka();b6d(this,!0);this.dispatchEvent(new A("eb",a.target))};k6.prototype.$b=function(){this.Oa||this.Ql==this.XA()&&this.su==this.cG()||(this.Op.Ha(idf),this.Oa=!0)};
var odf=function(a,b,c,d,f,h,k){k6.call(this,a,b,!1,!0,!0,c,d,f,h,k)};t(odf,k6);q=odf.prototype;q.cQa=!1;q.W_a=function(){return Ocf};
q.Na=function(){odf.ya.Na.call(this);this.Sa=new gD(this.Ea());this.Sa.Fg(D("Kia",this.ta()));this.Sa.setPosition(2);this.Sa.setContent(this.Tb.render(Scf));hD(this.Sa,!1);iD(this.Sa,!0);this.ib(this.Sa);this.Sa.render();Qn(this.Sa.ta(),"MMa");xc&&(this.cQa=!0,a6d(this));this.getHandler().Ja(this.mL.ta(),["focus","keypress","blur"],this.XLb);this.getHandler().Ja(this.Ab.ta(),["focus","keypress","blur"],this.XLb)};
q.yZ=function(a,b){this.jka();var c=!1;b&&(c=!0);var d=this.kN?this.cG()+" "+this.XA():this.XA()+" "+this.cG(),c=U(this.Tb,a,{locale:"en-US",aaa:this.Qb,qf:this.Ag,cUa:c,name:d});ndf(this).appendChild(c)};q.jka=function(){0!=ndf(this).children.length&&(zc(ndf(this)),this.Sa.Wd())};q.XLb=function(a){this.cQa||this.Sa.setVisible("blur"!=a.type);this.cQa=!1};
var pdf=function(a,b,c){A.call(this,a);this.Ab=b||null;this.Sa=c||null};t(pdf,A);var H5d=function(a){var b=Y,c;c='<div class="mP">Birthday ';var d;d=jA("People you connect with on Google can see the month and day of your birthday.");c+=Q(Kt({cY:1350405,Ia:Oz("lO o-oa-Ydb"),content:jA('<img class="BBa d-k-l" src="//ssl.gstatic.com/s2/oz/images/up/info-icon.png" alt="'+R(d)+'" data-tooltip="'+R(d)+'" data-tooltip-align="t,l" />')}))+"</div>";c=Y(c);return b('<div class="DB"><div class="xG cfa yG" aria-live="polite"></div>'+c+r(a.Dfc)+'<div class="kxa"></div></div>')},I5d=function(){return Y('<div class="xG">Please enter a four digit year.</div>')},
J5d=function(){return Y('<div class="xG">Please fill in a complete birthday.</div>')},K5d=function(){return Y('<div class="xG">Please enter a valid birthday.</div>')},L5d=function(){return Y('<div class="xG">You entered a birthday that is after the date this account was created.</div>')};
var M5d=function(a){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(a);this.Sa=new F_(this.Fa)};t(M5d,C);q=M5d.prototype;q.TFb=null;q.QFb=null;q.VFb=null;q.Pa=function(){this.Kb(U(this.ha,H5d,{Dfc:""}));var a=D("kxa",this.ta());this.ib(this.Sa,!1);this.Sa.render(a)};q.Di=function(){return!1};q.Yj=function(){this.Ab();var a=G_(this.Sa);if(!(a instanceof kl)){var b=D("cfa",this.ta());dsd(this.Sa,a,b);return!1}return!0};
var qdf=function(a,b){var c=D("cfa",a.ta());a.Ab();var d;switch(b){case "yta":d=L5d;break;case "iyl":d=I5d;break;case "ef":d=J5d;break;case "i":d=K5d;break;default:d=K5d}d=U(a.ha,d);c.appendChild(d);a.getHandler().yj(a.ta(),["keypress","keyup","change"],a.Ab)};M5d.prototype.Ab=function(){var a=D("cfa",this.ta());zc(a)};M5d.prototype.kl=function(){var a=G_(this.Sa);return qa(a)?null:a};M5d.prototype.reset=function(){this.Ab();esd(this.Sa,this.TFb,this.QFb,this.VFb)};
var R5d=function(a,b,c){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(a);this.Ab=new i6(a,b);a=c?Uo(this.ha,Q5d):"Select";b=new Bp(this.Ea());c=new yp("Male","m");b.ib(c,!0);c=new yp("Female","f");b.ib(c,!0);c=new yp("Other or Decline to State","o");b.ib(c,!0);this.Sa=new jD(a,b,this.Ea());this.ib(this.Sa)};t(R5d,C);var M6d=new Ze(1,"m",2,"f",3,"o"),N6d=CRa(M6d);q=R5d.prototype;q.SFb=null;
q.Pa=function(){this.Kb(U(this.ha,O5d));var a=D("mxa",this.ta());this.Sa.render(a);Qn(this.Sa.ta(),"hl");this.Sa.ta().setAttribute("aria-label","Gender")};q.Di=function(){return!1};q.Tj=function(){var a=N6d.get(this.Sa.getValue());if(!a)return null;var b=new sm;Py(b,2,a);return b};q.Yj=function(){if(this.Tj())return!0;this.x$a();var a=D("lxa",this.ta()),b=U(this.ha,P5d);a.appendChild(b);this.Ab.Ha(adf);this.getHandler().yj(this.Sa,"change",this.x$a);return!1}; q.reset=function(){this.Sa.Wj(this.SFb);this.x$a()};q.x$a=function(){var a=D("lxa",this.ta());zc(a)};
var n5d=function(a,b,c){return Y('<div class="tib CBa">'+m5d(a,0,c)+"</div>")},m5d=function(a,b,c){return Y(rn("ue","")(a,null,c))};qn("ue","",0,function(a,b,c){b='<div class="jxa yq">'+Q(nv({Da:a.Da,ld:a.Bh,rA:!0,zr:!0},0,c))+'</div><div class="OR">';c="";c=a.Da?c+"Change photo":c+"Add your photo";b+=Q(Tu({Ia:Oz("Sta PY d-k-l"),content:jA(c)}));a.$Zb&&(b+='<div class="P0a">Help your friends recognize you.</div>');return Y(b+"</div>")});
var r5d=function(a,b,c,d,f,h,k){C.call(this,T(a).Ea());this.Fa=a;this.ha=V(a);this.Ab=d||"";this.Sa=this.Oa=null;this.$a=$i(a);this.iJ=b;this.Qb=c;this.Km=!!f;this.mL=new i6(a,h);this.$b=!!k};t(r5d,C);q=r5d.prototype;q.Pa=function(){this.Kb(U(this.ha,n5d,{Da:this.Ab,Bh:this.iJ,$Zb:this.Qb}))};q.Di=function(){return!1};q.Na=function(){r5d.ya.Na.call(this);this.getHandler().Ja(this.ta(),"click",this.$2b);this.getHandler().Ja(this.ta(),"keypress",this.YY)};q.Cd=function(){return this.Ab};
q.$2b=function(){this.Fa.kf().dispatchEvent(new A("el"));this.mL.Ha(Ycf);this.Sa||(this.Oa?(this.Oa.setVisible(!0),this.Fa.kf().dispatchEvent(new A("jG",this.Oa)),s5d(this)):(this.Sa=this.Fa.kd(gz),bg(this.Sa.addCallback(this.Vk,this),mg)))};var s5d=function(a){a.getHandler().Ja(a.Oa,"hide",a.Ag)};r5d.prototype.Ag=function(){this.Fa.kf().dispatchEvent(new A("kG"))};r5d.prototype.YY=function(a){p5d(a)&&this.$2b()};
r5d.prototype.Vk=function(a){this.Sa=null;this.Oa=a.open(rdf(this,a),Lp(this.Vb,this,a),"es-profile-signup");this.Fa.kf().dispatchEvent(new A("jG",this.Oa));s5d(this)};var rdf=function(a,b){var c;a.Km?(c=b.Sm().setTitle(NX(b,Ume)).xs(NX(b,Vme)).kY("default").Wba(250,250).Gk("profilePhoto").Gk("horizNav").jf(new jN("profile")),c.jf(new bB),SNc(c)):c=b.f0a(void 0,a.$b).kY(lv({ld:a.iJ})+"-c");return c};
r5d.prototype.Vb=function(a,b){if("picked"==b.action){if(this.Ab=a.jg(b)||"")this.mL.Ha(Zcf),Vv(this.ha,this.ta(),m5d,{Da:this.Ab,Bh:this.iJ,$Zb:this.Qb}),this.dispatchEvent(new A("dl",this));var c=b.docs;if(c=c&&0<c.length?c[0]:null)c=c.kansasVersionInfo,Ea(Ga(c))||hy(this.$a,"/_/profiles/setversion",this,{vi:c})}};r5d.prototype.reset=function(){this.Oa&&this.Oa.setVisible(!1)};r5d.prototype.rb=function(){}; r5d.prototype.qb=function(){r5d.ya.qb.call(this);y(this.Oa);this.Sa&&(this.Sa.cancel(),this.Sa=null)};
var c6d=function(a){K(this,a,0,-1,[])};t(c6d,J);c6d.prototype.kl=function(){return N(this,kl,3)};c6d.prototype.kb=function(){return N(this,hvc,5,1)};var u5=function(a,b,c,d,f,h,k,m){C.call(this,T(a).Ea());this.Fa=a;this.Km=b;this.ha=V(this.Fa);this.Qb=new i6(a,d);this.ima=ri(a);b=wi(a);this.Vb=new x5d(b.getData(50));b=new oS(b.getData(7));this.Ko=!!w(b,4);this.iu=!!w(b,27);this.Ab=b.kb();this.Be=w(b,24);var p=this.Ab.getName(),u=p&&ym(p)?ym(p):"",p=p&&KC(p)?KC(p):"",z=w(this.Ab,3)?w(this.Ab,3):"",F=this.Ab.Cd()?this.Ab.Cd():"";this.Mma=2==this.Be;this.Maa=!Ea(u)&&!Ea(p);this.yja=!Ea(F);this.Ye=w(b,9);this.Op=w(b,23);this.Dma=N(b,xcf,29);this.Sx=
this.Vk=!1;this.Sa=new odf(this.Fa,this.Ye,this.Mma,u,p,z,d);this.ib(this.Sa,!1);this.YY=null;this.fy="";this.yH=!1;this.mL=null;this.EKb(d,m);this.nA=new r5d(this.Fa,f||18,0!=k,F,!1,d,h);this.ib(this.nA,!1);this.Km&&(this.Oa=new nD(!1,T(a).Ea()),this.ib(this.Oa,!1));this.zF=new nD(!0,T(a).Ea());this.ib(this.zF,!1);this.lp=!1;this.mN=c};t(u5,C);q=u5.prototype;q.Qob=function(){return null};q.cOb=function(){};q.Pa=function(){this.ra(U(this.ha,Ecf,{gga:this.Km,dla:this.Ko}))};q.Di=function(){return!0};
q.ra=function(a){u5.ya.ra.call(this,a);var b=D("u8",a);this.nA.render(b);this.yja&&this.Qb.Ha(hdf);b=D("r8",a);this.Sa.render(b);this.Maa&&this.Qb.Ha(fdf);if(this.mL&&(b=D("dfa",a),this.mL.render(b),this.Ab.Tj())){var b=this.mL,c=this.Ab.Tj(),c=M6d.get(c.getValue());b.SFb=c;b.Sa.Wj(c);this.Qb.Ha(gdf)}this.Rfb(a,this.Ab.Tj());if(this.Ko){this.$b=new M5d(this.Fa);this.iu&&(b=this.$b.Sa,c=!this.iu,b.aza=c,b.Nb()&&On(b.Ab.ta(),c),this.$b.Sa.Dhb=!this.iu);this.ib(this.$b,!1);b=D("bfa",a);this.$b.render(b);
var d=this.Ab.kl();if(null!=d){var b=this.$b,c=w(d,5)-1,f=w(d,4),d=w(d,6);b.TFb=c;b.QFb=f;b.VFb=d;esd(b.Sa,c,f,d);this.Qb.Ha(jdf)}this.Qb.Ha(edf)}this.Km&&(a=D("s8",a),GN(this.Oa,a),this.Oa.yb(this.fb("a7")),this.Qb.Ha(ddf))};q.Na=function(){u5.ya.Na.call(this);o5d(this.Qb,this.Ea(),this.getHandler())};q.kb=function(){return this.Ab};q.EKb=function(a,b){this.mL=new R5d(this.Fa,a,b);this.ib(this.mL,!1)};q.Rfb=function(){};q.BRb=function(){return this.mL?this.mL.Yj():!0};
q.HEb=function(){this.lp=!1;this.dispatchEvent(new pdf("eG",void 0,void 0))};
q.IEb=function(a){this.lp=!1;var b=w(a,1);switch(a.RK()){case 2:case 6:case 7:if(6==a.RK())this.Sa.Vb("o"),this.dispatchEvent(new pdf("eG",void 0,void 0));else{a=this.kN?this.Sa.cG()+" "+this.Sa.XA():this.Sa.XA()+" "+this.Sa.cG();a=new W$f(this.Fa,a);var b=Lp(this.Pha,this),c=Lp(this.o9,this);oug(a,b,c,a.hE);this.dispatchEvent(new A("gG"))}break;case 3:this.dispatchEvent(new pdf("eG",b,void 0));break;case 4:case 5:qdf(this.$b,5==a.RK()?"yta":"i");this.dispatchEvent(new pdf("eG",void 0,void 0));break;
case 8:this.e_a();break;default:this.dispatchEvent(new pdf("dG",b,w(a,3)))}};q.e_a=function(){};
q.submit=function(){if(!this.lp){this.Qb.Ha(Ucf);var a=[];this.Sa.Nb()&&!this.Sa.Yj()&&(a.push("NAME"),this.Qb.Ha($cf));this.BRb()||a.push("GENDER");this.Ko&&!this.$b.Yj()&&(a.push("BIRTHDAY"),this.Qb.Ha(bdf));var b;if(this.Km)if(b=this.Oa.Ag(),this.Xb(),b)b=!0;else{b=D("t8",this.ta());var c=U(this.ha,Lcf);b.appendChild(c);Pn(this.Oa.ta(),"FTa",!0);this.Qb.Ha(cdf);this.getHandler().yj(this.Oa,"change",this.Xb);b=!1}else b=!0;b||a.push("PICASA");0!=a.length?this.dispatchEvent(new pdf("fG",void 0,void 0)):
(this.lp=!0,sdf(this))}};var sdf=function(a,b){var c=new c6d,d=k6d(a);b&&d.Wb(b);Lg(c,5,d);a.Ko&&(a.$b.Yj()?(d=a.$b.kl(),Lg(c,3,d)):qdf(a.$b,"i"));Py(c,11,a.Vk);Py(c,7,a.Vk);Py(c,8,a.Sx);Py(c,7,a.Vk);Py(c,8,a.Sx);Py(c,2,!0);Lg(c,9,a.Dma);d={hl:"en-US"};w(a.Vb,2)&&(d["continue"]=w(a.Vb,2));w(a.Vb,3)&&(d.service=w(a.Vb,3));a.Op&&(d.gpsrc=a.Op);c={ui:c.le()};c=ti(a.ima,a.mN,c,G5d,{DB:!0});Rg(c.Ab,d);cg(ki(c),a.IEb,a.HEb,a)};u5.prototype.xOb=function(a){if(this.mL){var b=this.mL.Tj();Lg(a,2,b)}};
var k6d=function(a){var b=new hvc,c=new xm;if(a.Sa.Nb()){var d=a.Sa.XA();Py(c,2,d);d=a.Sa.cG();Py(c,3,d)}else a.Ab.getName()&&ym(a.Ab.getName())&&KC(a.Ab.getName())&&(d=ym(a.Ab.getName()),Py(c,2,d),d=KC(a.Ab.getName()),Py(c,3,d));b.Wb(c);a.xOb(b);return b};u5.prototype.Xb=function(){var a=D("t8",this.ta());zc(a);Pn(this.Oa.ta(),"FTa",!1)};k6.prototype.Vb=function(a){switch(a){case "i":this.yZ(z5d);break;case "n":this.yZ(y5d);break;default:this.yZ(LKb)}};
u5.prototype.Pha=function(){this.Vk=!0;var a=new xm,b=this.Sa.XA();Py(a,2,b);b=this.Sa.cG();Py(a,3,b);if(Ea(this.Sa.cG())||"."==this.Sa.cG())this.Sx=!0,Py(a,3,".");sdf(this,a);this.dispatchEvent(new A("hG"))};u5.prototype.o9=function(){this.dispatchEvent(new A("iG"))};u5.prototype.reset=function(){this.nA.reset();this.Sa.reset();this.mL&&this.mL.reset();this.$b.reset();this.Oa&&this.Oa.Ld(!1);this.zF.Ld(!0)};
var m6d=function(a){K(this,a,0,-1,[])};t(m6d,J);var n6d=function(a){K(this,a,0,-1,[])};t(n6d,J);n6d.prototype.Ra=function(){return w(this,1)};n6d.prototype.hd=function(a){Py(this,1,a)};n6d.prototype.getUrl=function(){return w(this,2)};n6d.prototype.Yc=function(a){Py(this,2,a)};
var m6=function(a,b,c,d,f){mz.call(this,a,"Ea-q",!0);this.Fa=a;this.zb=qp(a);this.ha=V(a);this.Ab=wi(a);yi(this.Ab,[1,7,50,101]);this.Qb=ny(a);this.zF=d;this.YY=b;this.iu=c;this.Vb=new i6(a,"upgrade_dialog");(this.Pha=f||"")&&y6d(this,this.Pha);(a=this.Fa.Vc(yH))&&a.umd(this);this.ana=new Yqe(this.Fa,this.YY);this.Maa=!1;this.Db=!0};t(m6,mz);q=m6.prototype;q.wHb=!1;
q.Pa=function(){m6.ya.Pa.call(this);this.Qd(null);this.ud(!0);this.ep=!1;var a=this.zF;a.V1=this.YY;Vv(this.ha,sFa(this),z6d(this),a);Zx(this.Ab,101)?this.kMb():(this.Oa=this.Ab.Sa([1,101,50,2]),this.Oa.addCallback(function(){Bxg(this)},this),this.setContent(this.ha.render(w6d)))};q.DGb=function(){};q.VZb=function(){};q.kMb=function(){Bxg(this)};q.Na=function(){m6.ya.Na.call(this);var a=hw.ia().Vc("dct");a&&(new a(this.Fa,this.getHandler())).log("googl911");this.Ea().fb("TKa",lF(this))&&B6d(this)};
q.qb=function(){m6.ya.qb.call(this);BDa()};q.setVisible=function(a){m6.ya.setVisible.call(this,a);this.Sa&&a&&(a=this.Sa.Sa,a.cQa=!0,a6d(a))};
var z6d=function(a){switch(a.YY){case 4:case 3:case 1:case 2:return u6d;case 7:case 6:case 9:case 8:case 5:case 10:return v6d;case 24:return O1e;case 14:return C8e;case 15:return Mcf;case 20:return Ncf;default:return s6d}},Bxg=function(a){a.Xb=new m6d(a.Ab.getData(101));if(!N(a.Xb,n6d,1)){var b=new oS(a.Ab.getData(7)),c=a.zF,d;d=(d=a.Qb.kb().getName().$v())?d:Ti(Gi(a.Fa).Sa).getValue("e");c.tAa=d;c.V1=a.YY;c.gga=w(a.Xb,2);c.dla=!!w(b,4);b=new sh(a.Ab.getData(1));c.mPc=!Ea(Ga(b.nW()));a.setContent(a.ha.render(x6d,
c));(c=a.Ea().fb("UKa",lF(a)))&&Vv(a.ha,c,Acf,{o3b:b.nW()});a.Sa=new u5(a.Fa,!!w(a.Xb,2),w(a.Xb,4),"LiteSignup",17,!0,!1,!0);c=a.Sa;b=a.iu;Ea(Ga(b))||c.Op||(c.Op=b);a.ib(a.Sa,!1);c=a.Ea().fb("nxa",a.cb());a.Sa.yb(c);a.Nb()&&B6d(a)}},B6d=function(a){a.Vb.Ha(C6d);a.getHandler().Ja(a.ta(),"keydown",Lp(a.Be,a));a.$b||(a.$b=D6d(a,"TKa",Lp(function(a){a.preventDefault();this.$b.Ta(!1);this.Vb.Ha(E6d);this.zb.It();this.Sa.submit()},a)));a.mL||(a.mL=D6d(a,"SKa",Lp(function(a){a.preventDefault();tdf(this)},
a)));a.getHandler().Ja(a.Sa,["eG"],a.yH);a.getHandler().Ja(a.Sa,["fG"],a.yH);a.getHandler().Ja(a.Sa,["dG"],a.Mma);a.getHandler().Ja(a.Sa,["gG"],Lp(a.Ye,a));a.getHandler().Ja(a.Fa.kf(),["el"],Lp(a.ima,a));yDa(a.Ea());a.Wd()};m6.prototype.Be=function(a){var b=a.target;27!=a.keyCode||"SELECT"==b.tagName&&!b.disabled||(a.stopPropagation(),a.preventDefault(),tdf(this))};m6.prototype.yH=function(){this.$b.Ta(!0)};
m6.prototype.Mma=function(a){var b=vc("iframe");b.style.display="none";this.Ea().appendChild(this.ta(),b);this.getHandler().yj(b,"load",Lp(this.yja,this,a.Sa));b.src=a.Ab;Uf(Lp(this.yja,this,a.Sa),1500)};
m6.prototype.yja=function(){if(this.dc()&&!this.Maa){this.dispatchEvent("mp");var a=Gi(this.Fa).Sa;ay(Ti(a),"igmu",!0);(a=this.Fa.Vc(zZa))&&(a=a.Sa())&&a.Oe(!0);this.wHb||(this.wHb=!0,a=this.ana,2!=(a.Sa?a.Sa:2)?(this.Vb.Ha(L6d),this.kN()):this.Pha?(udf(this),this.setVisible(!1)):(this.mN=new ag,bg(this.Fa.kd(eH).addCallback(this.Uma,this),mg)));this.Maa=!0}};var udf=function(a){var b=a.zF;b.firstName=ym(k6d(a.Sa).getName())||ym(a.Qb.kb().getName());(new q6d(a.Fa,a.YY,a.iu,a.Zma,b,a.mN)).setVisible(!0)};
m6.prototype.Ye=function(){On(this.ta(),!1);this.getHandler().yj(this.Sa,"hG",this.o9);this.getHandler().yj(this.Sa,"iG",this.o9);this.getHandler().yj(this.Sa,"iG",this.yH)};m6.prototype.ima=function(){On(this.ta(),!1);this.getHandler().yj(this.Fa.kf(),"kG",this.o9)};m6.prototype.o9=function(){On(this.ta(),!0)};
var D6d=function(a,b,c){if(b=a.Ea().fb(b,lF(a))){var d=new Ot(null,a.Ea());a.ib(d,!1);d.yb(b);a.getHandler().Ja(d,"action",c);return d}return null},tdf=function(a){a.Vb.Ha(F6d);a.zb.It();a.dispatchEvent("np");a.setVisible(!1)},y6d=function(a,b){cg(ri(a.Fa).makeRequest("/_/profiles/get/"+b,{},yt),a.Dma,function(){},a)};m6.prototype.Dma=function(a){this.Zma=zt(a).kb()};m6.prototype.Uma=function(a){this.$c=a;this.$c.$k().addCallback(this.DP,this)};
m6.prototype.DP=function(a){var b=[a.wL(!1,!0),this.$c.c6a(),this.$c.$5a()];bg((new eq(b)).addCallback(function(b){b[0][0]&&(b=b[0][1].xp(),b=ec(b,function(b){return!a.Dv(b)}),b=Qvc(new Pvc(a,0,8),b).G3a,0<b.length&&udf(this),this.mN.By(b),this.setVisible(!1),0==b.length&&(this.Vb.Ha(L6d),this.kN()))},this),function(){this.mN.By([])},this)};
m6.prototype.kN=function(){this.zb.It();if(24==this.YY)this.setVisible(!1);else{var a=this.Ea().getWindow(),b=new Af(a.location.href),c=a.OZ_savedQueryParams;if(c)for(var d in c)Hf(b,d,c[d]);Ea(Ga(this.iu))||Hf(b,"gpsrc",this.iu);dy(a.location,b.toString())}};
var F5d=function(a,b,c){j6.call(this,a,0,c);this.Fa=a;this.zb=qp(a);this.Ab=wi(a);a=wh(new sh(this.Ab.getData(1)));b=this.Ea().getWindow().location.href;a=sf(a+"/up/accounts/upgrade/","continue",b,"gpsrc",this.Sa);b=new zs;this.zb.Ha({qd:b,Ub:J6d});this.zb.It();dy(this.Ea().getWindow().location,a)};t(F5d,j6);
var G6d=function(a){this.Fa=a};Ig({id:TIb,Wa:G6d,multiple:!0});G6d.prototype.YZ=function(a,b,c,d,f){switch(a){case 1:a=new m6(this.Fa,b,c,d,null==f?void 0:f);break;case 2:a=new F5d(this.Fa,0,c);break;default:throw Error("Mh");}return a};
G("lo_dlgs");I();
}catch(e){_DumpException(e)}
// Google Inc.
