=function(){this.delegate=null};
GNl=function(a,c,e,f,g,h,k,l,q,r,w){_.gv.call(this);var x=this;this.H=a;this.D=c;this.V=g;this.J=h;this.ma=k;this.bb=new _.Hv;this.wa(this.bb);_.Jv(this.bb,this.H.z7(),function(){x.O=!0});_.Jv(this.bb,this.H.Sj(),function(z){var A=void 0,B=z.D;if(B!=null&&B.Bac){B=z.D;A=B.tLa();B=B.Zo();_.Vr(!_.S(A,B));var E=new J_k;_.Mp(A);E.D=A;_.Mp(B);E.F=B;A=E}x.O=!1;FNl(x,z.Mj()?"c":"n",A)});_.Jv(this.bb,this.H.jj(),function(z){var A=x.J,B=z.Ri;_.m8c(B)?SYk(A,B.JA(),eCk):_.a3c(B)&&SYk(A,B.J,B.V===2?gCk:dCk);
z.Ri.bja()&&(x.J.D=!0)});_.Jv(this.bb,this.ma.H,function(){return FNl(x,"n")});this.F=e;this.ea=f;this.R=l;this.Fa=new w0k(this.H,this.D);this.oa=!1;this.Aa=q;this.W=r;this.xa=w;_.Jv(this.bb,this.W.F,function(){return FNl(x,"n")});this.O=!1};
FNl=function(a,c,e){e=e===void 0?null:e;if(!a.O){if(a.J.D){for(var f=new E_k,g=Object.values(a.D.s1()),h=0;h<g.length;h++)g[h].Xhb(f);a.D.clear();var k;(k=a.xa)==null||k.clear();HNl(a,f,c)}e=a.D.layout(a.J,e);var l;(l=a.xa)==null||H0k(l,e);HNl(a,e,c);!a.oa&&a.W.H&&x0k(a.Fa)&&(a.oa=!0,INl(a.Aa,"r"));a.ma.J.Zb(null)}};
HNl=function(a,c,e){var f=H_k(c,1),g=f.map(function(r){return _.LY(a.F,r.getId())});JNl(a,c);KNl(a,c);LNl(a,c);for(var h=c.D!=null?c.D.D:null,k=0;k<f.length;k++){var l=f[k],q=l.getId()==h;l=cql(bql(aql($pl(Zpl(_.ke).Zh(e),l.getId()),l.D.vg()),q?0:g[k]),16);a.V.dispatchEvent(l.va())}c=H_k(c,6);if(c.length>0){e=new Eql({},e);for(g=0;g<c.length;g++)k=c[g],h=a.D.Ne(k.getId()),k=MNl(k.F),Fql(e,h.getId(),void 0,h.vg(),_.LY(a.F,h.getId()),k);a.V.dispatchEvent(e.va())}(c.length>0||f.length>0)&&a.V.flush()};
JNl=function(a,c){for(var e=H_k(c,4),f=0;f<e.length;f++){var g=e[f].getId(),h=c.D;h!=null&&h.F==g?NNl(a.F,h.D,null,g,null):a.F.bind(g)}e=H_k(c,6);for(f=0;f<e.length;f++){g=e[f];h=g.J;for(var k=0;k<h.length;k++)a.F.bind(g.getId(),h[k]);ONl(a,g)}c=H_k(c,1);for(e=0;e<c.length;e++)f=c[e],PNl(a.F,f.getId()),ONl(a,f)};ONl=function(a,c){for(var e=c.H,f=0;f<e.length;f++)PNl(a.F,c.getId(),e[f])};KNl=function(a,c){for(var e=H_k(c,1),f=0;f<e.length;f++)a.ea.remove(e[f].D);c=H_k(c,4);for(e=0;e<c.length;e++)a.ea.add(a.D.Ne(c[e].getId()))};
LNl=function(a,c){for(var e=H_k(c,4),f=0;f<e.length;f++){var g=a.D.Ne(e[f].getId());g instanceof d0k&&QNl(a.R,g)}e=H_k(c,2);for(f=0;f<e.length;f++){g=e[f];var h=a.D.Ne(g.getId());if(h instanceof d0k){var k=g.J;g=g.H;RNl(a.R,h,h.getId(),k,g)}}c=H_k(c,1);for(e=0;e<c.length;e++)f=c[e].D,f instanceof d0k&&(g=a.R,g.D.delete(f.getId())&&SNl(g))};MNl=function(a){return(a&4?8:0)|(a&8?2:0)|(a&16?4:0)};TNl=function(){this.D={}};cGl=function(a,c){var e=a.D[c]||null;return e&&e.vg()!=c?(delete a.D[c],null):e};
UNl=function(a,c){c=c.sF(!0).filter(function(g){return!g.isDeleted()});c=_.dl(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(e.Oia(a))return!0;e=_.dl(U7k(e.JI()));for(var f=e.next();!f.done;f=e.next())if(f.value===a.getEmail())return!0}return!1};VNl=function(a,c){_.QG.call(this);this.F=a;this.R=c;this.D=new Map;this.J=_.ji;this.H=!1;this.O=new Set};WNl=function(a,c,e){var f=c.xa.map(function(h){return h.getId()}),g=Object.values(c.rLa()).map(function(h){return h.getId()});RNl(a,c,e,f,g)};
QNl=function(a,c){(_.bw().Ja(_.ye)||a.H)&&a.F.qH()&&!XNl(a,c,a.J)&&YNl(a,c,!0,!0)};ZNl=function(a,c){return a.D.has(c)?a.D.get(c):new Set};$Nl=function(a,c){return a.D.has(c)};
RNl=function(a,c,e,f,g){if(a.F.qH()){var h=!1;if((_.bw().Ja(_.ye)||a.H)&&!XNl(a,c,a.J)){h=[];var k=!1;f=_.dl(f);for(var l=f.next();!l.done;l=f.next())l=c.pq(l.value),l.Oia(a.F.Xi())?(aOl(a,c.getId(),!1),k=!0):l.isDeleted()||h.push(l.getId());g=_.dl(g);for(f=g.next();!f.done;f=g.next())f=f.value,k=k||ZNl(a,c.getId()).delete(f);h.length>0&&(k=!0,bOl(a,c.getId(),h,!1));h=k}e!=c.getId()&&a.D.delete(e);h&&SNl(a)}};
bOl=function(a,c,e,f){f=f===void 0?!1:f;a.D.get(c)?e.forEach(function(g){return a.D.get(c).add(g)}):a.D.set(c,new Set(e));a.dispatchEvent($pl(Zpl("ssu").Zh("c"),c).va());f&&SNl(a)};aOl=function(a,c,e){e=e===void 0?!1:e;a.D.delete(c);a.dispatchEvent($pl(Zpl("ssu").Zh("c"),c).va());e&&SNl(a)};SNl=function(a){(a=a.F.ma[xLk])&&a(IQk(new fY(xLk),!0).va())};
dOl=function(a,c,e){a.J=c;var f=a.F.bj;if(f){var g=cOl[c]-cOl[e===void 0?_.ji:e];e=a.R.s1();if(g>0)for(var h in e){if(!a.D.has(h)&&(g=e[h])&&!XNl(a,g,c)){var k=!1,l;if(l=g.Bt())l=g.Bt(),l=_.J3b(l)>f;l&&(k=!0);YNl(a,g,k,!1)}}else if(g<0)for(f=_.dl(a.D.keys()),h=f.next();!h.done;h=f.next())h=h.value,XNl(a,e[h],c)&&aOl(a,h,!1);SNl(a)}};
YNl=function(a,c,e,f){e=c.sF(e);for(var g=[],h=e.length-1;h>=0;h--){var k=e[h];if(k.Oia(a.F.Xi()))break;var l=a,q;if(q=!k.Oia(l.F.Xi())&&!k.isDeleted())q=l,q=_.J3b(k.Bt())>q.F.bj;q&&!l.O.has(k.getId())&&g.push(k.getId())}g.length!=0&&bOl(a,c.getId(),g,f)};XNl=function(a,c,e){return e===_.ji||c.Lu()||c.QH()?!0:e===_.VHk?!UNl(a.F.Xi(),c):!1};eOl=function(a,c){a.O.add(c.getId());c=_.dl(Object.keys(c.p_()));for(var e=c.next();!e.done;e=c.next())a.O.add(e.value)};fOl=function(a,c){this.F=a;this.D=c||null};
gOl=function(){this.F={};this.D={};this.H=0};hOl=function(a,c,e){return a.D[c]?a.D[c][e||"$"]||null:null};iOl=function(a,c,e,f){a.D[e]||(a.D[e]={});a.F[c]=new fOl(e,f);a.D[e][f||"$"]=c};PNl=function(a,c,e){var f=hOl(a,c,e);f!==null&&(delete a.F[f],delete a.D[c][e||"$"])};NNl=function(a,c,e,f,g){var h=hOl(a,c,e);if(h===null||hOl(a,f,g)!==null)return!1;PNl(a,c,e||void 0);iOl(a,h,f,g);return!0};_.LY=function(a,c,e){return hOl(a,c,e)||0};
jOl=function(a,c,e,f,g){_.QG.call(this);this.W=a;this.D=null;this.ma=e;this.V=c;this.ea=[];this.H=!1;this.J=this.F=null;this.R=f;this.R.zl(this);this.O=g};kOl=function(a,c){if(c){var e=a.O.Ne(c);if(e){var f=a.R;!f.F.qH()||EY(f.F)&&f.F.O!=0||(eOl(f,e),aOl(f,e.getId(),!0));a.D=a.O.Ne(c)}}else a.D=null};gql=function(a,c){c=c.getId();return _.Kl(a.ea,_.LY(a.V,c))};lOl=function(a,c){var e=a.W.NJa()||c.sK(),f=!c.isResolved()||a.H;e=e&&f;c.QH()&&(e=e&&opl(a.W)&&!hZk(c));return e};
_.GY=function(a,c,e){c=a.V.F[c]||null;if(!c)return null;if(!e&&c.D)throw Error("b2");return a.O.Ne(c.Zo())||null};mOl=function(a,c){c=a.V.F[c]||null;if(!c)return null;a=a.O.Ne(c.Zo());return a?(c=c.D)?a.pq(c):null:null};Yal=function(a){var c=new Eql(a,"c"),e;for(e in a.O.s1())Fql(c,e);a.dispatchEvent(c.va());a.flush(!0)};nOl=function(){this.H={}};oOl=function(a){this.O=a;this.H=new nOl};
pOl=function(a,c,e,f,g,h,k){_.QG.call(this);this.H=a;this.D={};this.J={};this.O=[];this.ma=[];this.ea={};this.R=e;this.F=c;this.xa=!1;this.V=new oOl(this.H);this.W=f;this.oa=g;this.Aa=h;this.Fa=k};qOl=function(a,c){return c!="n"&&!a.ZU()&&a.bca()};rOl=function(a,c,e,f,g,h,k){var l=!1;k||(l=!0,k=new Eql(a,c));Fql(k,f.getId(),e!=f.getId()?e:void 0,f.vg(),g,h);l&&a.dispatchEvent(k.va())};
bGl=function(a,c,e,f){e=e||"c";var g=kml(a),h=c.getId();var k=AUk(c.D);k=_.pn(k,11);if(h=sOl(a,h,k||"")){var l=e;k=h.getId();var q=h.isDeleted();c=Ppl(h,c);if(opl(a.H)||ppl(a.H)){var r=h.QH(),w=h.Vi();if(!r||w.oS()){var x=a.H.Xi().getId();if(w.oS()){var z=new HY(tnl(w));var A=!1;w=w.TC();var B=Pnl(x,w),E=Qnl(x,w);if(B||E)A=!0,Gnl(z,w.D,B||[],E||[],!1);z=A?z:null}else z=null;if(!r||z)!r&&ppl(a.H)&&(z=$nl(h,x,z)),z!=null&&(r=Spl(z),Ppl(h,r))}}a.V.D(h);h.isDeleted()?a.R.remove(h):a.R.add(h);if(k!=h.getId()&&
(delete a.D[k],delete a.J[k],r=_.LY(a.F,k),delete a.ea[r],a.D[h.getId()]=h,r&&!NNl(a.F,k,null,h.getId(),null)))throw Error("d2`"+k+"`"+h.getId());r=_.LY(a.F,h.getId());h.isDeleted()?(delete a.D[h.getId()],PNl(a.F,h.getId()),a.J[h.getId()]=h,r&&(a.ea[r]=h),qOl(h,l)&&(_.Gmb(a.O,h.getId()),_.Gmb(a.ma,h.getId())),f=cql(bql(aql($pl(Zpl(_.ke).Zh(l),h.getId()),h.vg()),r),c),k!=h.getId()&&(f.F=k),a.dispatchEvent(f.va())):(q&&(delete a.J[h.getId()],delete a.ea[r],a.D[h.getId()]=h,(a.H.NJa()||h.vg())&&a.F.bind(h.getId()),
r=_.LY(a.F,h.getId())),c!=0&&(qOl(h,l)&&_.Gmb(a.O,h.getId()),rOl(a,l,k,h,r,c,f)));h.isDeleted()?(f=a.W,f.D.delete(h.getId())&&SNl(f)):WNl(a.W,h,k)}else c.QH()&&Vpl(c,wHk),h=new Opl(c.D,a.F,a.H.Lc,a.oa,a.Aa,a.Fa,c.F?c.F:void 0,a.H.Nb||void 0),a.V.D(h),h.isDeleted()||QNl(a.W,h),h.isDeleted()?a.J[h.getId()]=h:tOl(a,h,e,f);kml(a)!=g&&(g=kml(a)?32:0,e=cql(Zpl("p").Zh(e),g).va(),a.dispatchEvent(e))};uOl=function(a,c,e){for(var f=new Eql(a,e),g=0;g<c.length;g++)bGl(a,c[g],e,f);a.dispatchEvent(f.va())};
WFl=function(a,c){c.RR()||Vpl(c,_.pHk);c=new Opl(c.D,a.F,a.H.Lc,a.oa,a.Aa,a.Fa,c.F?c.F:void 0,void 0);a.V.D(c);tOl(a,c)};tOl=function(a,c,e,f){if(epl(a.H)||!_.iZk(c))if(opl(a.H)||!c.QH()){e=e||"c";var g=null;c.sK()&&(g=cGl(a.R,c.vg()));g&&g.ZU()?(NNl(a.F,g.getId(),null,c.getId(),null),vOl(a,g.getId(),e)):(a.H.NJa()||c.sK())&&a.F.bind(c.getId());a.D[c.getId()]=c;a.R.add(c);g=8|(c.isResolved()?2:0);qOl(c,e)&&_.Gmb(a.O,c.getId());var h=_.LY(a.F,c.getId());rOl(a,e,void 0,c,h,g,f)}};
vOl=function(a,c,e){e=e||"c";var f=a.D[c];if(f){if(f.sK()){var g=f.vg();a.R.remove(f)}a.V.J(f);f=_.LY(a.F,c);delete a.D[c];PNl(a.F,c);c=cql(bql($pl(Zpl(_.ke).Zh(e),c),f),16);g!=void 0&&aql(c,g);a.dispatchEvent(c.va())}};wOl=function(a){function c(f){return f.bca()}var e=_.qE(_.Sq(a.D),c);a=_.qE(_.Sq(a.J),c);return e.concat(a)};kml=function(a){return a.xa?a.V.F():!1};xOl=function(a){for(var c=0;c<a.O.length;c++){var e=a.O[c],f=a.Ne(e);f||(f=a.J[e]);if(f&&f.bca())return!0}return!1};
yOl=function(a,c){_.Sl(a.O,c)};sOl=function(a,c,e){return a.D[c]||a.J[c]||a.D[e]||a.J[e]||null};zOl=function(a){RSk.call(this);this.D=a;this.ib=new _.rH(this);this.wa(this.ib);this.ib.listen(this.D,"u",this.F);this.D.zl(this)};
BOl=function(a,c){var e=c.method;var f=c.payload;var g=c.lzb;var h=c.uP;var k=c.kEa;var l=c.Aka;var q=c.SBc;c=c.x3b;if(g){var r=g;g=function(x){(x=AOl(x))&&r(x)}}if(h){var w=h;h=function(x){return void w(x,AOl(x.Nha()))}}mll(a.D,{method:e,payload:f?_.nm(f):void 0,lzb:g,uP:h,kEa:k,Aka:l,SBc:q,x3b:c})};AOl=function(a){if(!a||a.length===0)return null;a=a[0];return Array.isArray(a)?a:null};COl=function(a){_.gv.call(this);this.H=a;this.F=this.D=null};
EOl=function(a){a.zb().qH()&&_.XX(a,SKk,!0).then(function(c){return _.DOl(c)}).then(function(c){var e=_.JY(a);dOl(e.R,c,_.ji)},_.u())};
FOl=function(a,c,e){_.QG.call(this);this.D=a;this.oa=c;this.ea=e||null;this.ib=new _.rH(this);this.wa(this.ib);this.J=a.get(eJk);this.xa=_.ZJ(a,"netStatus");this.R=!0;this.H=jJk;this.O=!1;this.V=this.F=this.Zg=this.W=null;this.ma=new _.aI(this);this.wa(this.ma);this.ib.listen(this.J,"r",this.e3d).listen(this.J,"u",this.H0c).listen(this.J,"e",this.F0c).listen(this.J,"p",this.G0c);this.ib.listen(_.JY(a),[_.ke],this.E0c).listen(_.JY(a),"bu",this.D0c)};
IOl=function(a,c,e){a.H=XHk;a.F=new _.tv;SNk(c).then(function(f){var g=f.F,h=_.Dek(g),k=_.Iek(h);k.type==_.oj?((g=AOl(h.Zd()))&&GOl(a,g),f.D&&a.sync()):k.N_()&&e!=1?a.t8b(e):(a.xa.Wd(_.SYh(g.D),"/docos/p/sync",g.D),a.R=!1,HOl(a,!0))});return a.F};JOl=function(a,c){a.O?a.H=_.jBk:(a.H=XHk,a.t8b(c))};HOl=function(a,c,e){e=e===void 0?null:e;var f=a.F;a.F=null;a.H=jJk;if(a=ZY(a.oa,gLk)){var g=(new fY(gLk)).va();a(g)}c?f.Gd(Error("f2")):f.callback(e)};
GOl=function(a,c){c=_.Rn(QUk,c);var e=a.R;a.R=!1;var f=Date.now();if(e){var g=ZY(a.oa,$Ik);if(g){var h=(new fY($Ik)).va();g(h)}}g=Kpl(a.D);try{if(KOl(a,c,e),a.V=_.iq(_.Pm(c,2,_.dm)),xOl(g))_.SG((0,_.tl)(a.t8b,a));else{var k=Date.now()-f;HOl(a,!1,e?k:void 0);a.ea&&yY(a.ea,"dscat",k)}}catch(l){throw _.SG(function(){throw l;}),l;}};
KOl=function(a,c,e){var f=Kpl(a.D),g=f.RKa();var h=_.Km(c,zUk,1,_.Am(),_.dm);c=h.length>0;var k=Kpl(a.D),l=[];h=_.dl(h);for(var q=h.next();!q.done;q=h.next()){q=q.value.clone();var r=AUk(q),w=sOl(k,r.getId(),_.pn(r,11));r=!0;if(w)a:{var x=a,z=Kpl(x.D);r=AUk(q);delete g[w.getId()];var A=w.getId();if(_.Kl(z.O,A))r=!1;else{A=w.getId();if(A=_.Kl(z.ma,A)){if(w.isDeleted()){LOl(x,w);r=!1;break a}x=w.getId();_.Sl(z.ma,x)}_.rn(q,9,!1);_.rn(r,12,!1);_.gPk(r,13)||_.yn(r,13,0);w=w.p_();z=_.dl(xUk(r));for(x=
z.next();!x.done;x=z.next())x=x.value,_.rn(x,12,!1),_.Pm(x,13)===void 0&&_.yn(x,13,0),delete w[x.getId()||""],delete w[_.pn(x,11)||""];z=[];x=_.dl(Object.keys(w));for(var B=x.next();!B.done;B=x.next()){A=z;var E=A.push,F=B=w[B.value].D.clone(),I=Date.now();_.yn(F,13,I);_.rn(B,12,!1);E.call(A,B)}w=xUk(r);_.Mm(r,wUk,8,_.Tl(w,z));r=!0}}r&&(q=new Rpl(q),l.push(q))}uOl(k,l,"n");k=_.dl(wOl(f));for(l=k.next();!l.done;l=k.next())l=l.value,l.isDeleted()&&!unl(l.Vi())&&LOl(a,l);if(e){k=_.dl(Object.keys(g));
for(l=k.next();!l.done;l=k.next())l=g[l.value],l.ZU()||!unl(l.Vi())&&!l.isDeleted()||(c=!0,l=l.D.clone(),_.rm(l,wUk,2),h=AUk(l),_.Em(h,8),q=h,r=Date.now(),_.yn(q,13,r),_.rn(h,12,!1),_.rn(l,9,!1),l=new Rpl(l),bGl(f,l,"n"));EOl(a.D)}c&&_.JY(a.D).flush(e)};LOl=function(a,c){a=Kpl(a.D);var e=c.D.clone(),f=AUk(e);_.rn(e,9,!1);_.rn(f,12,!1);yOl(a,c.getId());c=new Rpl(e);bGl(a,c,"n")};
MOl=function(a,c,e){_.gv.call(this);this.J=a;this.H=c;this.F=e;this.ib=new _.rH(this);this.wa(this.ib);this.D=null;this.R=!1;this.O=null};NOl=function(a){if(a.H.wi||!_.YNk(a.J,eJk))return!1;a.D=new FOl(a.J,a.F,a.H.Aa||void 0);a.wa(a.D);a.ib.listen(a.D,_.dJk,a.K0c);a.ib.listen(a.D,_.RJk,a.J0c);return!0};OOl=function(a){var c=a.H.Qd,e=a.H.cX?1:void 0;a.R=!0;a.O=Date.now();_.vv((c?IOl(a.D,c,e):a.D.sync(e)).addCallback(a.I0c,a),a.a2d,a)};
_.QOl=function(a){var c=a.D.F;c?c.addCallback(function(){return POl(a)}):POl(a)};POl=function(a){a.D.V=null;a.D.sync(1)};ROl=function(a){var c=Error.call(this,String(a));this.message=c.message;_.Kj in c&&(this.stack=c.stack);this.D=a};SOl=function(a,c){this.O=a;this.J=c;this.H=this.D=this.F=null};
VOl=function(a,c){return a.J.then(function(){var e=TOl;var f=new SUk;f=_.Lm(f,EUk,2,c);return e(a,f)}).yn(function(e){if(!(e instanceof UOl))return _.ov(e);e=_.Rn(TUk,e.response);e=_.qn(e,1,_.dm)||0;e===1&&(a.D=!0);return _.ov(new ROl(e))}).then(function(){if(!_.rm(c,CUk,1))throw Error("g2");if(!_.rm(c,DUk,2)){var e=(new DUk).Rb(!1);_.Lm(c,DUk,2,e)}a.F=c;a.D=!1})};
TOl=function(a,c){return new _.mv(function(e,f){return void BOl(a.O.get(eJk),{method:"uc",payload:c,lzb:e,uP:function(g,h){return void f(new UOl(h))},Aka:2,x3b:!0})})};UOl=function(a){var c=Error.call(this,"MANAGE_SUBSCRIPTION error");this.message=c.message;_.Kj in c&&(this.stack=c.stack);this.response=a};
XOl=function(a){_.gv.call(this);var c=this;this.D=a;this.F=_.qv();this.H=new SOl(a,this.F.promise);this.Zg=null;this.F.promise.then(function(){!c.D.isDisposed()&&c.D.zb().QZ()&&_.dE(Cpl(c.D),1)&&_.WOl(c).then(function(e){e=e.cCa;var f=c.D.zb(),g=f.kI;if(g){var h=e.comment;var k=e.jF;_.Nn(g.D,4);_.Jn(g.D,5);switch(h){case _.ji:_.Bn(g.D,4,1);break;case _.VHk:_.Bn(g.D,4,2);break;case _.qc:_.Bn(g.D,4,3)}_.rn(g.D,5,k)}if(f=f.R){switch(e.comment){case _.ji:f(43137);break;case _.VHk:f(43138);break;case _.qc:f(43139)}f(e.jF?
43165:43164)}}).yn(_.u())})};_.WOl=function(a){return a.H.getSubscription().then(function(c){var e=c.subscription;c=c.ZNa;a:{var f=_.Im(e,CUk,1);switch(_.cn(f,1)){case 3:f=_.qc;break a;case 2:f=_.VHk;break a;case 1:f=_.ji;break a}throw Error("h2`"+_.cn(f,1));}e=_.Im(e,DUk,2);e=_.Ym(e,1);return{cCa:{comment:f,jF:e},ZNa:!!c}})};ZOl=function(a,c){return _.YOl(a,c.comment,c.jF)};_.DOl=function(a){return _.WOl(a).then(function(c){return c.cCa.comment})};
_.YOl=function(a,c,e){var f=new EUk,g=new CUk;a:{switch(c){case _.qc:c=3;break a;case _.VHk:c=2;break a;case _.ji:c=1;break a}throw Error("i2`"+c);}g=_.Bn(g,1,c);f=_.Lm(f,CUk,1,g);e!==void 0&&(e=(new DUk).Rb(e),_.Lm(f,DUk,2,e));return VOl(a.H,f)};$Ol=function(a,c,e){this.key=a;this.data=c;this.dirty=e};cPl=function(a,c){if(a){c||a.unshift(void 0);aPl(a[2],c);var e=a[5];e&&(c||e.unshift(void 0),bPl(e[2],c),cPl(e[3],c),c&&e.shift());c&&a.shift()}};bPl=function(a,c){a&&(c?a.shift():a.unshift(void 0))};
aPl=function(a,c){if(a){c||a.unshift(void 0);bPl(a[3],c);bPl(a[4],c);var e=a[5];e&&(c?e.shift():e.unshift(void 0));if(e=a[14]){c||e.unshift(void 0);var f=e[3];f&&(c?f.shift():f.unshift(void 0));(f=e[7])&&(c?f.shift():f.unshift(void 0));c&&e.shift()}if(a[8])for(e=0;e<a[8].length;e++)aPl(a[8][e],c);(e=a[9])&&(c?e.shift():e.unshift(void 0));if(e=a[18])c||e.unshift(void 0),(f=e[1])&&(c?f.shift():f.unshift(void 0)),c&&e.shift();(e=a[19])&&(c?e.shift():e.unshift(void 0));(e=a[24])&&(c?e.shift():e.unshift(void 0));
c&&a.shift()}};dPl=function(a){_.gv.call(this);this.F=a;this.D=a.zb().Ud;this.J=[];this.H=[];a.zb().xk||(this.ib=new _.rH(this),this.wa(this.ib),this.ib.listen(_.JY(a),["f",_.ke],this.M0c).listen(_.JY(a),"bu",this.L0c));this.Zg=null};ePl=function(a,c,e,f){if(e){var g;c=="bu"?g=Kpl(a.F).Ne(e):g=Kpl(a.F).J[e];(c=g)&&c.isDeleted()&&!unl(c.Vi())?a.H.push(e):c&&!c.ZU()&&(g=c.D.clone(),g=_.nm(g),g=_.oQk(g),cPl(g,!1),c=new $Ol(e,g,c.bca()),a.J.push(c),f&&f!=e&&a.H.push(f))}};
fPl=function(a,c,e){a.D?a.D.getAll((0,_.tl)(a.YHd,a,c),(0,_.tl)(a.XHd,a,e)):e()};gPl=function(a,c,e){if(a=_.ZJ(a.F,CHk))e&&e.message!==void 0?(e.message=c+"  Original message: "+e.message,a.D(e)):a.D(Error(c))};hPl=_.al("D");iPl=_.al("D");lPl=function(a,c){var e=a.zJb,f=a.yu,g=a.ey,h=a.kF;return _.X(_.Y(_.Y(_.X(_.Z(),_.Ka+_.W(uCk)+'"><table><tr>'),jPl(e)),_.lI(h)?"":_.X(_.Y(_.X(_.Z(),_.Rxk+_.W(RHk)+_.p),kPl(_.QR({yu:f,ey:g},a),c)),_.Fxk)),_.Exk)};
mPl=function(a,c){var e=a.zJb,f=a.yu,g=a.ey,h=a.kF,k=_.X(_.Z(),_.Ka+_.W(uCk)+_.p);_.lI(h)?_.X(_.Y(_.X(k,"<table><tr>"),jPl(e)),"</tr></table>"):(_.X(k,_.Ka+_.W(wCk)+_.p),_.Y(k,_.iyk),_.X(_.Y(_.X(k,_.oN+_.W(vCk)+_.p+_.jI(e)+_.Vjg+_.W("docos-assigneeview-icon-container")+" "+_.W(RHk)+_.p),kPl(_.QR({yu:f,ey:g,jb:SGk},a),c)),_.TM));_.X(k,_.TM);return k};
kPl=function(a,c){a=a||{};var e=a.yu,f=a.jb;return _.Y(_.Z(),Tml(_.QR({jb:"docos-mark-done-button "+(_.lI(f)?""+f:""),title:bzk,ariaLabel:'Mark as done and hide discussion."',yu:e},a),c))};jPl=function(a){var c=_.Rxk+_.W("docos-assigneeview-assigneeinfo")+_.ia+_.W(wCk)+_.p;c=c+'Assigned to</div><div class="'+(_.W(vCk)+_.p+_.jI(a)+"</div></td>");return(0,_.iI)(c)};
nPl=function(a,c,e,f){MY.call(this,a,c);this.F=a;this.ea=this.zb().W!=BIk;this.Jc(e);this.V=f;this.W=this.O=this.H=this.D=this.J=null;this.R=new _.dW(null);this.wa(this.R);this.yb(this.R)};
oPl=function(a,c){c=mrl(c,a.zb());_.MR(a.Ca(),[tCk,rCk]);_.DH(a.Ca(),c);a.H&&(_.MR(a.O,["docos-icon-checkmark-white",IDk]),_.MR(a.W,["docos-icon-accept-checkmark-white",FDk,"docs-icon-check-24-white","docs-icon-check-24",wGk,_.xGk]),_.MR(a.H,["docos-mark-done-button-white",fEk]),_.DH(a.O,IDk),_.DH(a.W,wGk),_.DH(a.H,fEk))};pPl=function(a){return IY(a.F).Ne(a.getId())};rPl=function(a,c){qPl(a,c,a.J);a.D&&qPl(a,c,a.D,!0)};
qPl=function(a,c,e,f){f=f===void 0?!1:f;e&&(a.zb().yoa()?(e.setAttribute(_.nO,c.getId()?c.getId():""),f&&e.setAttribute(_.Xj,"0"),c.getName()&&!c.D&&e.setAttribute(_.mGg,c.getName())):(c=c.getName())&&a.zb().F.D(e,c))};sPl=function(a,c,e){if(!ppl(e))return!1;e=a instanceof snl?a.ze():a.JI();var f=a.QUa()?a.Qb()==2||a.Qb()==5:!0;return!_.TRh(e)&&!c.Zq()&&!a.isDeleted()&&f};tPl=function(a){a=a.link;return(0,_.iI)('<input type="text" class="'+_.W(_.Qza)+_.Mgg+_.W(a)+'" readonly="readonly">')};
uPl=function(a,c,e,f,g){_.XS.call(this,void 0,void 0,a);this.F=this.J=this.H=this.D=null;this.V="";this.O=e||null;this.W=f||new _.Xlf(a,c);this.R=g!=null?g:null;a=new _.VS;a.rr({key:_.fVa,caption:_.Kyk},!0,!0);this.O&&_.Zlf(this.W)&&a.rr({key:"copy-link",caption:"Copy Link"});_.US(this,a)};vPl=_.u();wPl=function(a,c,e,f,g){e=e===void 0?vPl.Mb():e;_.zT.call(this,a,c,e,f,g)};
APl=function(a,c,e,f,g,h,k){k=k===void 0?!1:k;MY.call(this,a,e);this.D=a.zb();this.La=new _.Xlf(e,_.bw());this.Wa=_.pE(_.fw(_.bw(),_.NNg)||this.D.kA||window.location.href);this.F=new _.xT(e,new xPl(f));this.H=k?new wPl("",this.F,void 0,e):new _.$ij("",this.F,void 0,e);this.H.vM=!0;this.yb(this.H);this.V=null;_.Kl(g,_.qHk)&&(this.V=new _.sT(_.eb),this.V.Bf("docos-edit-menuitem"),this.F.yb(this.V,!0));this.R=null;_.Kl(g,_.oe)&&(this.R=new _.sT(_.bb),this.R.Bf("docos-delete-menuitem"),this.F.yb(this.R,
!0));this.ea=null;_.Kl(g,eKk)&&fpl(this.D)&&(this.ea=new _.sT(_.Kja),this.ea.Bf("docos-reanchor-menuitem"),this.F.yb(this.ea,!0));this.Fa=null;_.Kl(g,_.g_a)&&(this.Fa=new _.sT(_.Fb),this.Fa.Bf("docos-help-menuitem"),this.F.yb(this.Fa,!0));this.W=null;_.Kl(g,SJk)&&(this.W=new _.sT("See emoji reaction details"),this.W.Bf("docos-post-reaction-details-menuitem"),this.F.yb(this.W,!0));e=IY(a).Ne(c);if(!e)throw Error("j2");this.J=e;this.Xa=a;this.xa=h?e.pq(h):null;this.ma=null;a.zb().J.LXb()&&_.Kl(g,_.kKk)&&
(this.ma=new _.sT(""),this.F.yb(this.ma,!0));this.Ra=this.O=this.Ia=this.oa=null;_.Kl(g,_.Kh)&&(yPl(this),zPl(this,c));this.Aa=a.zb().To.map(function(l){return{jhd:l,gyc:new _.sT(l.getLabel())}});for(a=0;a<this.Aa.length;a++)this.F.yb(this.Aa[a].gyc,!0)};yPl=function(a){var c=BPl(a)?"Get link to this comment":Zyk;a.Ia=new _.sT(c);a.Ia.Bf("docos-link-menuitem");a.F.yb(a.Ia,!0);BPl(a)||(c=a.D.Db===null?void 0:a.D.Db,a.O=new uPl(a.Va(),_.bw(),a.D.xb||void 0,a.La,c),a.yb(a.O),_.DH(a.O.xH(),_.cwa),a.O.setTitle(Zyk))};
zPl=function(a,c){var e=a.Wa.clone();c=e.D.set(_.oHg,c);e=_.Dld(e,c).toString();BPl(a)?a.Ra=e:a.O&&(a=a.O,a.V=e,a.D&&(a.D.value=e))};CPl=function(a,c,e){c&&NY(a,c,_.mc,e)};DPl=function(a,c){c.stopPropagation();a.H.Rf(!1)};EPl=function(a){var c=a.D.J,e=a.xa||a.J.Vi();return Uol(c,e)&&!a.oa};FPl=function(a){var c=a.D.J;return(a.xa?Vol(c,a.xa,!0,!1):Wol(c,a.J))&&!a.D.R_()};
GPl=function(a){if(a.ma){var c=a.J.isResolved();if(a.oa===null||c!=a.oa){var e=gZk(a.J)?"Mark as done":vzk;a.ma.xd(c?"Re-open":e);a.oa=c}a.ma.Rb(Xol(a.D.J,a.J))}a.V&&(c=EPl(a),a.V.Rb(c),a.V.Ua(c));a.R&&(c=FPl(a),a.R.Rb(c),a.R.Ua(c));a.ea&&(c=!a.oa&&$ol(a.D.J)&&!a.J.Zq(),a.ea.Rb(c),a.ea.Ua(c));a.W&&(c=sPl(a.xa||a.J.Vi(),a.J,a.D),a.W.Rb(c),a.W.Ua(c));c=a.H;e=c.Ua;a:{for(var f=0;f<a.F.Jd();f++)if(a.F.ud(f).isEnabled()){a=!0;break a}a=!1}e.call(c,a)};
BPl=function(a){var c;if(_.bw().Ja(lGk)){if(c=!!a.D.xb){c=a.Xa;a=a.Va();var e=_.bw();c.ea==null&&(c.ea=_.Zlf(new _.Xlf(a,e)));c=c.ea}}else c=!!a.D.xb&&_.Zlf(a.La);return c};HPl=function(a){_.KG.call(this,a)};xPl=function(a){a=a===void 0?"docos-docomenu":a;_.uT.call(this);this.F=a};IPl=function(){_.dW.apply(this,arguments)};
JPl=function(a,c){var e=a.qRd;a=a.pRd;return _.Y(_.Z(),_.SV({jb:"docos-calltoactionview-header-button docs-suggestion-button",g5:!0,title:e,attributes:(0,_.xK)(_.nCg+_.W(e)+'"'),style:4,content:_.Y(_.Z(),Pll(a,GDk,HDk))},c))};KPl=function(a){a=a.Wn;return _.Y(_.Z(),_.rS(_.sO+a))};
LPl=function(a){a=a||{};var c=a.wQa;a=a.kF;var e=_.Ka+_.W("docos-stream-emoji-header-container")+_.p;_.lI(c)&&(e+=_.Ka+_.W("docos-stream-emoji-quote-caption")+_.p,e=e+'Selected text</div><span class="'+(_.W("stream-emoji-doco-view-header-divider")+_.p+(_.lI(a)?"\u00b7":"|")+'</span><div class="docos-stream-emoji-quote">'+_.jI(c)+_.TM));return(0,_.iI)(e+_.TM)};
OPl=function(a){var c=a.Hfd,e=a.Ffd,f=a.Gfd,g=a.TWb,h=a.kVd,k=a.lVd,l=a.lWd,q=a.header,r=a.description;a=a.Ord;var w;g||l||!a?a?w=_.X(_.Y(_.X(_.Z(),_.Ka+_.W("suggestionNudgeViewTitleIcon")+_.p),_.rS("docs-icon-img docs-icon-question-spark-24x24")),_.TM):w="":w=_.X(_.Y(_.X(_.Z(),_.hN),_.rS(_.KGk)),_.TM);w=_.Y(_.X(_.Z(),_.Ka+_.W("suggestionNudgeViewContainer")+_.ia+_.W("suggestionNudgeViewTitle")+" "+(a?"":" "+_.W("noGeminiBranding")+" ")+_.p),w);k?(_.X(w,'<svg viewBox="0 -960 960 960" height="24" width="24" focusable="false" class="'+
_.W("suggestionNudgeViewSummarizeAutoIcon")+'"><path d="M280-520v-80H520v80H280Zm0,160v-80H840v80H280Zm0,160v-80H840v80H280ZM160-520q-17,0-28.5-11.5T120-560t11.5-28.5T160-600t28.5,11.5T200-560t-11.5,28.5T160-520Zm0,160q-17,0-28.5-11.5T120-400t11.5-28.5T160-440t28.5,11.5T200-400t-11.5,28.5T160-360Zm0,160q-17,0-28.5-11.5T120-240t11.5-28.5T160-280t28.5,11.5T200-240t-11.5,28.5T160-200ZM700-480q0-92 64-156t156-64q-92,0-156-64T700-920q0,92-64,156T480-700q92,0 156,64t64,156Z"/></svg><div class="'+_.W(eLk)+
_.Ewk),_.Y(w,"Summary by Gemini"),_.X(w,_.TM)):_.lI(q)?_.X(w,_.Ka+_.W("suggestionNudgeViewCustomTitleText")+_.Ewk+_.jI(q)+_.TM):(g?(_.X(w,_.Ka+_.W(eLk)+_.Ewk),_.Y(w,"Document Q&A")):(_.X(w,_.Ka+_.W(eLk)+_.Ewk),_.Y(w,_.ega)),_.X(w,_.TM));_.Y(_.X(_.Y(_.X(_.Y(w,g?_.X(_.Y(_.X(_.Z(),_.Ka+_.W(ZKk)+_.p),_.rS(_.TKg)),_.TM):""),_.Ka+_.W(XKk)+_.p),_.rS(_.KKg)),_.Ga+(_.lI(r)?_.Ka+_.W("suggestionNudgeViewDescription")+_.p+_.jI(r)+_.TM:"")+_.Ka+_.W(YKk)+_.p+(k?_.Ka+_.W("suggestionNudgeViewLoadingSummaryContainer")+
_.ia+_.W($Kk)+" "+_.W("nonChip")+_.zM+_.W($Kk)+" "+_.W("nonChip")+_.zM+_.W($Kk)+" "+_.W("nonChip")+_.yM:"")+_.Ka+_.W(WKk)+" "+(g?" "+_.W("withAma")+" ":"")+_.p),l&&h?MPl():"");k=c.length;for(l=0;l<k;l++)q=c[l],_.Y(_.Y(w,l===c.length-1&&g&&h?MPl():""),NPl(q,g,f.length>l?f[l]:!1,e.length>l?e[l]:null));_.X(w,_.UM);return w};PPl=function(a){return NPl(a.Ifd,a.TWb,a.fp,a.ariaDescription)};
NPl=function(a,c,e,f){return(0,_.iI)(_.Ka+_.W("suggestionNudgeViewAcceptSuggestionButtonContainer")+_.ia+_.W(VKk)+" "+(c?" "+_.W("withAma")+" ":"")+" "+(e?" "+_.W("outlined")+" ":"")+'"'+(f?_.Beg+_.W(f)+'"':"")+_.jwk+_.jI(a)+_.Ga)};MPl=function(){return(0,_.iI)(_.Ka+_.W(aLk)+_.ia+_.W($Kk)+_.yM)};
QPl=function(a,c){a=a||{};var e=a.Zp,f=_.Z();if(_.lI(e)){var g=a||{};a=g.author;e=g.e4a;var h=g.INa,k=g.b4a,l=g.yu,q=g.kF,r=g.fUd;if(_.lI(g.jM)){if(_.lI(h))c=(0,_.iI)(_.Ka+_.W(lCk)+" "+_.W("docos-draft-emoji-reaction-view-post")+_.da);else{var w=(w=_.QR({author:a,yu:l,kF:q},g))||{};g=w.author;a=w.yu;e=w.i9;h=w.kF;c=_.Y(_.X(_.Y(_.X(_.Z(),_.Ka+_.W(lCk)+" "+_.W("docos-anchoreddocoview-draft")+_.p),fnl(_.QR({author:g,Zp:!0,isRoot:!0,h_a:!1,oq:IEk,kF:h},w),c)),_.TM),IEl({oq:"docos-anchoreddocoview-input-pane docos-draftdiscussionview-input-pane docos-docoview-input-pane",
yu:a,i9:e},c))}w=c}else if(_.lI(e)){k=(k=g)||{};r=k.y_;var x=k.RXa,z=k.imageUrl,A=k.imageAltText,B=k.yyb,E=k.s$a;e=k.Cjd;h=k.spd;var F=k.Zie;g=k.nie;var I=k.tRd,K=k.nid,L=k.ARd,T=k.vRd,U=k.wRd;a=k.Afd;w=k.yce;k=k.Hbe;l=c.Blc;q=c.KLc;r=_.X(_.Y(_.X(_.Y(_.Y(_.X(_.Y(_.X(_.Z(),_.Ka+_.W(lCk)+" "+_.W(HCk)+" "+_.W(F)+_.ia+_.W("docos-calltoactionview-container")+_.p+(K?_.Ka+_.W("docos-calltoactionview-banner-label")+_.p+_.jI(K)+_.TM:"")+(z?_.iN+_.W(PCk)+_.vM+_.W(_.bS(z))+_.lM+_.W(A!=null?A:"")+_.cxk:"")+_.Ka+
_.W("docos-calltoactionview-text-and-buttons")+_.ia+_.W(NCk)+_.p),I?_.X(_.Y(_.X(_.Z(),_.Ka+_.W("docos-calltoactionview-header-icon")+" "+_.W(_.tO)+_.p),_.rS(_.sO+I,"docos-calltoactionview-header-icon-container")),_.TM):""),_.Ka+_.W("docos-calltoactionview-header-text-container")+_.ia+_.W("docos-calltoactionview-header-text-container-inner")+_.ia+_.W("docos-calltoactionview-header-text")+_.p+_.jI(r!=null?r:"")+_.XM+_.W(QCk)+_.p),U?_.rS(_.sO+U,"docos-calltoactionview-header-info-icon-container"):""),
T?_.X(_.Y(_.X(_.Z(),_.Ka+_.W("docos-calltoactionview-header-info")+_.p),_.jI(T)),_.TM):""),_.Ga+(L?_.Ka+_.W("docos-calltoactionview-header-subtext")+_.p+_.jI(L!=null?L:"")+_.TM:"")+_.XM+_.W(OCk)+_.ia+_.W(RCk)+_.Ugg+_.W(JCk)+_.ia+_.W(KCk)+_.p),_.jI(x)),_.TM+(E?_.Ka+_.W(UCk)+Awk+_.jI(E)+_.XM+_.W(TCk)+Awk+_.jI(B)+_.TM:"")+_.TM);h&&(_.X(r,_.Ka+_.W("docos-calltoactionview-checkbox-container")+_.EM+_.W(LCk)+'"></span><label class="'+_.W(MCk)+_.p),_.Y(r,_.yng),_.X(r,_.Mjg));e=_.X(r,_.hN+(e?_.Ka+_.W("docos-calltoactionview-buttons-message-text")+
_.p+_.jI(e)+_.TM:""));g?c=_.X(_.Y(_.X(_.Z(),_.Ka+_.W("docos-calltoactionview-text-default-buttons-container")+(k?" "+_.W("docos-calltoactionview-buttons-container-show-only-in-highlighted-state"):"")+_.p+(w?_.Ka+_.W(WDk)+" "+_.W(SCk)+_.p+_.jI(q!=null?q:"")+_.TM:"")+_.Ka+_.W(ZDk)+" "+_.W(ICk)+_.p),a?_.X(_.Y(_.X(_.Z(),_.Ka+_.W("docos-calltoactionview-accept-icon")+_.p),_.rS(_.sO+a,"docos-calltoactionview-accept-icon-container")),_.TM):""),_.Ka+_.W("docos-calltoactionview-accept-text")+_.p+_.jI(l)+_.UM):
(g=_.X(_.Z(),_.Ka+_.W("docos-calltoactionview-buttons-container")+_.p),a=c.Blc,h=c.Bfd,a=_.Y(_.Z(),_.SV({style:2,jb:"docos-input-post docos-calltoactionview-accept",title:h,content:(0,_.iI)(""+_.jI(a)),g5:!0},c)),g=_.Y(g,a),w?(w=c.KLc,a=c.X7d,c=_.Y(_.Z(),_.SV({jb:"docos-input-cancel docos-calltoactionview-reject",title:a,content:(0,_.iI)(""+_.jI(w)),g5:!0},c))):c="",c=_.X(_.Y(g,c),_.TM));_.X(_.Y(e,c),_.Bxk);w=r}else _.lI(h)?w=(0,_.iI)(_.Ka+_.W("docos-emoji-reaction-doco-view-container")+_.ia+_.W(zDk)+
_.zM+_.W(yDk)+" "+_.W(_.tO)+_.yM):_.lI(r)?w=_.X(_.Y(_.X(_.Y(_.X(_.Z(),_.Ka+_.W(lCk)+" "+_.W("docosAiPreviewDiffSuggestionViewContent")+_.ia+_.W(aGk)+" "+_.W(bGk)+_.p),_.WSk("docs-icon-img docs-icon-masked-image docs-icon-check-white-20x20")),_.XM+_.W(cGk)+" "+_.W(bGk)+_.p),_.WSk("docs-icon-img docs-icon-masked-image docs-icon-close-20x20")),_.Ga):w=_.Y(_.X(_.Z(),(_.lI(k)?_.Ka+_.W(lCk)+" "+_.W(kCk)+_.da:"")+_.Ka+_.W(lCk)+" "+_.W(kDk)+_.ia+_.W(mDk)+_.ha+_.W(YDk)+Kwk),_.lI(q)?_.X(_.Y(_.X(_.Z(),_.Ka+
_.W("docos-replyview-reply-count-container")+_.ia+_.W(QEk)+'" tabindex="0" style="display: none"></div>'),Zml(!0)),_.TM):_.Ka+_.W(hEk)+_.da);c=_.X(_.Y(_.X(_.Z(),_.Ka+_.W(nDk)+_.Dwk+_.W(mCk)+_.p),w),_.Ga)}else a=a||{},e=a.author,h=a.b4a,A=a.isAnonymous,B=a.o4,k=a.ey,l=a.Gu,q=a.yu,r=a.jM,x=a.INa,z=a.kF,w=_.X(_.Z(),_.Ka+_.W(nDk)+" "+(_.lI(l)?_.W(OKk):"")+_.p),_.lI(z)&&(_.X(w,_.Ka+_.W("docos-streamdocoview-resolved-separator")+_.p),_.Y(w,_.wzk),_.X(w,_.TM)),_.lI(l)?g=(_.lI(z)&&_.lI(h)&&!_.lI(r)?_.Ka+
_.W(sFk)+_.da:"")+_.Ka+_.W(wFk)+Kwk:_.lI(x)?g=_.Ka+_.W(wFk)+Kwk:g=Yml(_.lI(k)?32:48,uFk,void 0,_.lI(B)?""+B:"",_.lI(e)&&!_.lI(A)?""+e:""),g=_.X(_.Y(w,g),_.Ka+_.W("docos-streamdocoview-content")+_.p),_.lI(x)?(h=(h=a)||{},a=h.uCa,e=_.X(_.Z(),_.Ka+_.W("docos-stream-emoji-doco-view")+_.ia+_.W(nFk)+_.ia+_.W("docos-stream-emoji-doco-view-action-container")+_.ia+_.W(mFk)+_.zM+_.W("docos-stream-emoji-details")+_.p),h=h||{},c=_.Y(_.Z(),Tml(_.QR({jb:"docos-stream-emoji-resolve-button docs-suggestion-button",
ey:!0,yu:!0,title:"Resolve emoji reaction",ariaLabel:'Resolve emoji reaction"'},h),c)),c=_.X(_.Y(_.X(_.Y(e,c),_.Ka+_.W(tEk)+'" style="visibility: hidden"></div></div></div></div>'+(_.lI(a)?_.Ka+_.W("docos-stream-emoji-origin")+_.p+_.jI(a)+_.TM:"")),Wml(lFk)),_.TM)):_.lI(r)?(a=(a=_.QR({author:e,yu:q},a))||{},e=a.author,h=a.yu,k=a.i9,c=_.Y(_.X(_.Y(_.X(_.Z(),_.Ka+_.W("docos-streampane-draft")+_.p),fnl(_.QR({author:e,Zp:!1,isRoot:!0,jM:!0,h_a:!1,oq:IEk},a),c)),_.TM),IEl({oq:"docos-streamdocoview-input-pane docos-draftdiscussionview-input-pane docos-docoview-input-pane",
yu:h,i9:k},c))):c=_.X(_.Y(_.X(_.Z(),(!_.lI(z)&&_.lI(l)&&_.lI(h)?_.Ka+_.W(sFk)+_.da:"")+_.Ka+_.W(mDk)+_.zM+_.W("docos-streamdocoview-replycontainer")+" "+_.W(kDk)+_.zM+_.W(xFk)+" "+_.W(RHk)+_.p),Yml(_.lI(k)?32:24,QFk)),_.Ka+_.W(YDk)+'" style="display: none"></div></div>'),_.X(_.Y(g,c),_.Ga),c=w;return _.Y(f,c)};RPl=function(a,c){this.R=a;this.H=c;this.D=!1;this.O=this.J=0;this.F=a.zb().Xc};SPl=function(a,c){a.D!=c&&(a.D=c,c={Xs:a.H.getId(),JUd:a.H.Zp(),OX:c},_.xY(a.R).Qb(aJk).Cb(c))};
TPl=function(a,c){_.KG.call(this,a);this.Xs=c};UPl=function(a){TPl.call(this,"rd",a)};_.VPl=function(a,c,e,f,g){MY.call(this,a,f);this.H=a;this.La=e;this.xb=[];this.V=null;this.Db=new RPl(this.H,this);this.Jc(c);this.Wa=null;this.ea=g;this.Tb=this.hb=null;this.zg=!0;this.O=!1;this.Gc=new _.aI(this);this.wa(this.Gc);this.Ib=_.bw().Ja("docs-edvpim")};WPl=function(a){if(EY(a.zb())){var c=_.xY(a.getContext()).qa(_.Ae).Qc();_.GH(a.Sa(),"docos-minimized-view-mode",c);a.Wa=c?447:null}};
XPl=function(a){if(a.zb().W==BIk&&a.Zp()&&(!a.hb||!a.Tb)){var c=a.Va(),e=a.Ca(),f=c.createElement(_.Za);_.DH(f,"docos-anchoreddocoview-arrow-inner");a.hb=f;f=c.createElement(_.Za);_.DH(f,"docos-anchoreddocoview-arrow-outer");a.Tb=f;c.oC(e,a.hb,0);c.oC(e,a.Tb,0)}};
ZPl=function(a){var c=[nDk],e=[];_.NC().Rm()&&_.bw().Ja(qGk)&&a.zb().Ra!=_.lc?(YPl(a,_.hwa,!1,c,e),YPl(a,rFk,!0,c,e)):(YPl(a,_.hwa,a.Zp(),c,e),YPl(a,rFk,!a.Zp(),c,e));YPl(a,gDk,a.yp(),c,e);a.zb().Zx()||YPl(a,"docos-docoview-active-experiment",a.yp(),c,e);var f=a.Ne();f=EY(a.zb())?!!f&&f.Lu():!!f&&f.isResolved();YPl(a,"docos-docoview-resolved",f,c,e);if(c.length>0||e.length>0)_.EH(a.Ca(),c),_.MR(a.Ca(),e),a.xb=_.hwe(a.Ca())};YPl=function(a,c,e,f,g){e&&!_.Kl(a.xb,c)?f.push(c):!e&&_.Kl(a.xb,c)&&g.push(c)};
$Pl=function(a){return a.Wa?a.Wa:a.zb().ZM};bQl=function(a,c,e,f,g){g=g===void 0?!0:g;_.R8j.call(this,void 0,a);var h=this;this.D=new Inl(c,Hpl(e),f);this.F=e;this.R=g;this.W=[];this.O=_.IJ;this.J=this.H=this.V=null;this.bb=new _.Hv;this.wa(this.bb);this.kc=Cpl(e);_.Jv(this.bb,this.kc.F,function(){return aQl(h)})};
aQl=function(a){_.wDb(a.J)!=a.D.yh()&&_.Ar(a.J,a.D.yh());var c=a.D;c=c.J.length>0?c.J.slice(0,6):[c.O];if(!_.Yl(a.W,c))if(a.W=[].concat(_.fl(c)),_.vr(a.H),a.Va().Ti(a.H,""),_.dE(Cpl(a.F),1)){a.MD(wDk,!1);c=_.dl(c);for(var e=c.next();!e.done;e=c.next()){var f=e.value;e=a.Va().Ya(_.Za,"docos-emoji-counter-button-icon");a.H.appendChild(e);_.cx.CHROME?(a.Va().Ti(e,f),_.DH(e,"docos-emoji-counter-button-emoji-font-enabled")):(f=Sbl(f,new _.Cbl),_.wQk(e,f),_.Gr(e,YAk,_.jO))}}else a.MD(wDk,!0),a.Va().Ti(a.H,
c.join());a.MD("docos-emoji-counter-button-user-involved",Jnl(a.D));c=a.D.Jq();a.O!==c&&(a.O=c,_.mTk(a.Sa(),"docos-emoji-counter-button-tooltip"),_.QS(a.Sa(),c));_.E6h(a.Sa())!==a.D.Ug()&&_.eI(a.Sa(),a.D.Ug());c=a.isEnabled();(e=!_.dE(Cpl(a.F),1)||!Zol(a.F.zb().J)||a.F.zb().Xi().D||!a.F.zb().Xi().getId())||(e=a.D,e=Jnl(e)?!1:e.yh()>=100?!0:e.V);e?e=!1:a.D.dMb||!a.R?(e=a.D,e=!(e.H||e.R)):(a.F.zb(),e=!1);c!==e&&a.Rb(e);a.MD("docos-emoji-counter-button-contains-invalid-attribution",Nnl(a.D))};
dQl=function(a,c,e,f,g,h,k){this.O=a;this.D=new Map;this.Gb=c;this.J=e;this.F=f;this.V=g;this.R=h||null;this.W=k===void 0?!0:k;this.H=cQl(this)};cQl=function(a){if(!a.F.oS())return!1;a=a.F.TC();var c=a.zR.length;a instanceof mnl&&(c+=nnl(a).length-onl(a).length);return c>=_.ew(_.bw(),"docos-rppl")};
hQl=function(a){a.H=cQl(a);var c=a.F.oS()?Unl(a.F.TC(),a.J.zb().Xi().getId(),Hpl(a.J),dol(a.J),a.H,a.R===null?!1:eQl(a.R,a.F.getId())):new Map,e=[].concat(_.fl(a.D.keys()));e=(0,_.qE)(e,function(g){return!c.has(g)});e=_.dl(e);for(var f=e.next();!f.done;f=e.next())fQl(a,f.value);e=_.dl(c);for(f=e.next();!f.done;f=e.next())f=_.dl(f.value),f.next(),f=f.next().value,gQl(a,f)};
gQl=function(a,c){var e=c.O;if(c.yh()<1)fQl(a,e);else{if(!a.D.has(e)){if(a.D.size>=10)return;var f=new bQl(a.Gb,e,a.J,a.H,a.W);a.O.yb(f,!0);_.F8h(f.Ca(),.3).play();a.D.set(e,f)}a=a.D.get(e);a.D=c;aQl(a)}};fQl=function(a,c){if(a.D.get(c)){var e=a.D.get(c);e.Rb(!1);var f=_.G8h(e.Ca(),.3);a.V.Af(f,_.Yf,function(){a.O.removeChild(e,!0)});f.play();a.D.delete(c)}};iQl=_.u();jQl=function(a,c){var e=iQl.Mb();_.oT.call(this,a,e,c)};
kQl=function(a,c,e){jQl.call(this,void 0,a);this.D=c;this.R=e;this.J=this.H=this.F=null;this.O="";this.bb=new _.Hv;this.wa(this.bb);this.kc=Cpl(c)};mQl=function(a){a.F=a.D.zb().Xi().D||!a.D.zb().Xi().getId();a.H=Hpl(a.D).Hp();a.J=a.R.D.size>=10||a.R.H;var c=lQl(a);a.O!==c&&(a.D.zb().F.D(a.Sa(),c),a.O=c);c=a.Ug();var e=lQl(a);c!==e&&a.yg(e);c=a.isEnabled();e=!_.dE(a.kc,1)||!Zol(a.D.zb().J)||a.F||!a.H||a.J||a.D.zb().R_()||a.D.zb().H.ea!==0?!1:!0;c!==e&&a.Rb(e)};
lQl=function(a){return _.dE(a.kc,1)?a.F?"Unavailable while anonymous":a.H?a.J?"Reaction limit reached":a.D.zb().R_()||!Zol(a.D.zb().J)?"Unavailable":a.D.zb().H.ea!==0?"Unavailable while locked":_.Bca:_.azk:_.Vzk};nQl=function(a){_.rH.call(this);this.D=a};oQl=function(a,c){var e=c.getAttribute(NBk)||c.href;_.brc(e.toLowerCase())||a.listen(c,_.Yh,function(){var f=c.getBoundingClientRect();a.D.show(e,f.left,f.top,!0)}).listen(c,_.Zh,function(){return void a.D.Vc(!0)})};
pQl=function(a){_.rH.call(this);var c=this;this.H=a;this.D=a.zb().Jp;a=null;this.D&&(a=new nQl(this.D),this.wa(a));this.J=a;this.F=[];var e=this.H.zb().R;e&&this.F.push(function(){return void e(43166)});var f=this.H.zb().Vp;f&&this.F.push(function(g){var h=g.target.getAttribute(NBk);h&&(c.D&&c.D.Vc(!1),f.openLink(h),g.stopPropagation(),g.preventDefault())})};
qQl=function(a,c,e,f,g,h,k,l,q,r){f=f===void 0?0:f;h=h===void 0?!1:h;r=r===void 0?null:r;TPl.call(this,a,c);this.anchorId=e||null;this.fF=f;this.D=g||null;this.X7=!!h;this.assignee=k;this.Zp=l;this.pCa=q;this.F=r};rQl=function(a){this.D=a.zb()};sQl=function(){var a=_.lQk(),c=new Set(a.D.J);c.add(_.Tg);a.D=new _.DBb(a.D.O,a.D.D,c,a.D.F,a.D.H);return _.jQk(_.mQk(a),[NBk,_.nO]).va()};
tQl=function(a,c){a=a.J;if(!a)return null;c=c.ue(a.getKey());if(!c)return null;a=c.fc($Ek);if(!a)return null;a=a.getBoundingClientRect();c=a.top-c.Ca().getBoundingClientRect().top;return new _.Yt(c,c+a.height)};
vQl=function(a,c,e){var f=sQl(),g=_.ur(_.Za);g.appendChild(_.hQk(f.rk(_.gr(c))));c=g.innerHTML;g.replaceChild(_.hQk(a),g.lastChild);a=g.innerHTML;for(var h=g=0,k="",l=!1,q=0,r=0,w=[],x=0;x<a.length;x++){var z=a[x],A=q>0;z==">"?(l=!1,A?w.push(new _.Yt(h,x+1)):k+=a.slice(h,x+1),h=x+1):z=="<"?(l=!0,A&&w.push(new _.Yt(h,x)),h=x):l||((z=_.Slb(z,c[q]))&&q==0&&(r=x),z&&A&&q<c.length-1?q++:(z?q==c.length-1?(A=g==e?$Ek:"docos-find-match",w.push(new _.Yt(h,x+1)),k=uQl(w,a,k,A),h=x+1,q=0,g++):(h=x,q=1):(w=(A?
r:x)+1,k+=a.slice(A?r:h,w),h=w,q=0,A&&(x=r)),w=[]))}k=uQl(w,a,k);k+=a.slice(h,a.length);return f.rk(k)};yQl=function(a,c,e){var f=a.F;if(!f)return null;a=a.J;if(!a)return null;var g=a.getKey();g=c.s1()[g];if(!g)return null;c=a.getValue();a=0;g=g.sF(!0);for(var h=0;h<g.length;h++){var k=g[h],l=a;l+=wQl(k,f,e.zb());if(l>c)return{reply:k,HGc:"n",GGc:c-a};a=l;l+=xQl(k,f);if(l>c)return{reply:k,HGc:"b",GGc:c-a};a=l}return null};
uQl=function(a,c,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=c.slice(h.start,h.end);f&&c[h.start]!="<"&&(k=_.OS('<span class="%s">%s</span>',f,k));e+=k}return e};wQl=function(a,c){return(a=a.Jk().getName())?_.ZRh(a.toLowerCase(),c.toLowerCase()):0};xQl=function(a,c){(a=zQl(a))?(a=_.hQk(a).textContent.toLowerCase(),c=_.ZRh(a,c.toLowerCase())):c=0;return c};
zQl=function(a){var c=_.bw().Ja(_.ye)?null:a;if(c){var e=vnl(c);if(e)return e}e=sQl();return c?(a=c.ze())?e.rk(a):null:a instanceof Y_k?e.rk(a.H.H.qe()):null};BQl=function(a){AQl||(AQl=new _.IW(_.mX.dk));return AQl.format(a)};
_.CQl=function(a,c){var e=new Date(_.vl()),f=e.getTimezoneOffset();e.setHours(0);e.setMinutes(0);e.setSeconds(0);e.setMilliseconds(0);f=(e.getTimezoneOffset()-f)*6E4;e=(a-e.getTime()+f)/864E5;e=Math.floor(e);e=(new _.ATk(_.Ic)).format(e,4);if(!e||e.match(/[0-9\u0660-\u0669\u06f0-\u06f9]/g))e=null;else{f=1;var g=e.charCodeAt(0);g>=55296&&g<=57343&&(f=2);e=e.substring(0,f).toLocaleUpperCase()+e.substring(f)}return e?e:(c||BQl)(new Date(a))};
_.EQl=function(a){_.QG.call(this);var c=this;this.H=null;this.bb=new _.Hv;this.wa(this.bb);this.D=a;_.Jv(this.bb,this.D.bM(),function(){c.D.getState()===_.Eg&&(c.F=new _.FW);c.D.getState()!=_.Pk||_.Mqj(c.F)||(c.dispatchEvent("Sc"),DQl(c))});this.F=new _.FW;DQl(this)};Snl=function(a,c){return a.format(_.oY(_.J3b(c)))};DQl=function(a){var c=new _.FW;c.add(new _.DW(0,0,1));c=c.getTime();_.TG(a.H);a.H=_.SG(function(){a.dispatchEvent("Sc");DQl(a)},c-Date.now(),a)};
FQl=function(a,c){if(!a)return Mxk;c=c.dN;return c?(a=c(a).D)?a:Mxk:Mxk};IQl=function(a,c,e){_.cE.call(this,GQl(a,c,e));var f=this;this.F=a;this.R=c;this.O=e;a=new _.rH;this.wa(a);a.listen(_.JY(e),"bu",function(g){return void HQl(f,g)}).listen(_.JY(e),_.ke,function(g){g.Zo()!==f.F||_.$Ji(f.getValue(),aol)||f.setValue(aol)})};HQl=function(a,c){c.Laa.some(function(e){return e.Xs===a.F})&&(c=GQl(a.F,a.R,a.O),_.$Ji(c,a.getValue())||a.setValue(c))};
GQl=function(a,c,e){var f=IY(e).Ne(a);f=a===c?f==null?void 0:f.Vi():f==null?void 0:f.pq(c);return!f||f.isDeleted()?aol:bol(f.TC(),e.zb().Xi().getId(),Hpl(e),dol(e),a,c)};JQl=function(a,c){MY.call(this,a,c);this.D=a};
KQl=function(a,c){a=_.X(_.Z(),'<div id="docos-shadow-wrapper" style="display: none"><div id="docos-shadow"><div id="docos-shadow-contents-wrapper" role="dialog" aria-labelledby="docos-shadow-description"><table class="'+_.W("docos-shadow-table")+'"><tr align="center" valign="top"><td><table><tr align="center" class="'+_.W("docos-shadow-prompt")+_.jhg+_.W(cFk)+'"><div id="docos-shadow-description"></div></td></tr><tr align="center"><td class="'+_.W(cFk)+_.p);_.Y(a,_.SV({id:bFk,content:(0,_.iI)(_.bb)},
c));_.Y(a,_.SV({id:aFk,content:(0,_.iI)(_.BN)},c));_.X(a,"</td></tr></table></td></tr></table></div></div></div>");return a};LQl=function(a,c){MY.call(this,a,c);this.D=this.H=this.V=this.W=this.oa=this.R=this.Sk=null;this.J=new _.dW(null,c);this.yb(this.J);this.F=new _.dW(null,c);this.yb(this.F);this.O=this.Wh=null;this.ea=!1;this.ma=new _.aI(this);this.wa(this.ma);a=_.xY(a);this.ma.Dd(a.qa(JX),_.uK,this.gYa)};NQl=function(a,c){MQl||(MQl=new LQl(a,c),MQl.render());return MQl};
_.$Y=function(a,c){var e=_.cXi.Mb();_.oT.call(this,a,e,c)};
_.aZ=function(a,c,e,f,g){_.VPl.call(this,a,c,e,f,g);var h=this;this.ma=!1;this.D=null;this.kx=new OQl(a,c,this.Zp(),f,this,void 0,IEk);this.yb(this.kx);this.xC={};this.mc=function(k){if(h.isDisposed())k=!1;else{var l,q=(l=h.zb().V)==null?void 0:l.Bh("ddt");h.dispatchEvent("bd");l=_.xY(h.getContext());var r=_.rY(h.Ne()).Sb(PQl(h)).va();l.Qb(_.nwa).Cb({anchorId:h.Ne().vg(),Xs:h.getId(),fF:_.LY(KY(h.getContext()),h.getId()),Cub:k,Q6:r});q==null||q.complete();k=!0}return k};this.jc=Fpl(a);this.Ia=iDk;
this.zc="";this.Yb=this.Lc=null;this.oa=!1;this.F=null;this.Nb=0;this.Fa=_.bw().Ja(nGk);a=new _.fNe(this);a.J=!1;this.wa(a);a.Yk(_.Ijb,38);a.Yk(_.gVa,40);a.Yk("ctrlUp",[38,_.fx?8:2]);a.Yk("ctrlDown",[40,_.fx?8:2]);this.rb().listen(a,_.xj,this.xCd)};QQl=function(a){var c=a.Ne().sF(!1),e=[];a.kx.Ca();e.push(a.kx.Ca());c=_.dl(c);for(var f=c.next();!f.done;f=c.next())(f=a.xC[f.value.getId()].Ca())&&e.push(f);a.D&&a.D.Ca()&&e.push(a.D.Ca());return e};
RQl=function(a,c){for(var e=0;e<c.length;e++){var f=c[e],g=a.Va(),h=g.Kp();if(f==h||g.contains(f,h))return e}return-1};SQl=function(a){var c=a.Va(),e=_.oI(IEl,{oq:a.Ia,ntc:"",woc:a.zc,Afa:"",yu:a.zb().yu(),i9:a.zb().kb,Gsc:qpl(a.zb()),Dsc:spl(a.zb()),Gu:a.zb().Gu(),i_a:_.bw().Ja(_.KX)}),f=a.Ca();c.J4(e,c.fc(YDk,f));a.D.Dc(e);CFl(a.D,f)};
TQl=function(a){for(var c=a.Ne().sF(!1),e=a.kx,f=0;f<c.length;++f){var g=c[f].getId();if(a.xC[g])e=a.xC[g];else{var h=new OQl(a.getContext(),a.getId(),a.Zp(),a.Va(),a,g);a.ao(h,_.yQ(a,e)+1,!0);e=a.xC[g]=h}}};UQl=function(a){a=a.D.fc(BCk);return a==null?!1:_.Tr(a.firstElementChild)};
VQl=function(a){var c=a.Ne();if(c){var e=null,f;b:{for(f=_.yQ(a,a.kx);f<a.Jd();f++){var g=a,h=a.ud(f);if(g=h==g.F?null:h)if(g=g.pq()||c.Vi(),!g.isDeleted()&&2===g.getOrigin())break b}f=-1}if(f<0)a=e;else{for(;f<a.Jd();f++)if(g=a,h=a.ud(f),g=h==g.F?null:h)if(h=g.pq()||c.Vi(),!h.isDeleted()){if(2!==h.getOrigin())break;_.Sr(g.Db,!1);g.isVisible()&&(e=g)}a=e}a&&_.Sr(a.Db,!0)}};WQl=function(a){return a.Fa&&a.oa?ayk:a.getContext().zb().isClientSideEncrypted()?Bzk:"Reply or add others with @"};
XQl=function(a){var c,e=(c=a.zb().V)==null?void 0:c.Bh("drot");c=_.xY(a.getContext());var f=a.Ne();f=_.rY(f).Sb(PQl(a)).va();c.Qb(VEk).Cb(new sol(a.getId(),!1,null,f,e))};PQl=function(a){return krl(a.Zp(),a.zb().Zx())};YQl=function(a){return a.D&&_.Oql(a.D)?a.D.getValue():null};ZQl=function(a){var c=a.getContext(),e=a.Ne();e&&_.sY(Fpl(c),43045,_.rY(e).va());a=a.getId();_.xY(c).Qb(_.jFk).Cb(a)};
OQl=function(a,c,e,f,g,h,k){MY.call(this,a,f);var l=this;this.D=a;this.Xc=this.D.zb().Aa;this.To=new rQl(a);this.W=c;this.F=g;this.Jp=k||"";this.Ge=function(){if(l.isDisposed())var q=!1;else{l.MKb();var r=!bZ(l).isDeleted()&&$Ql(l),w=r?null:(q=l.zb().V)==null?void 0:q.Bh("ddr");q=l.Ne();q=_.rY(q).Sb(aRl(l)).va();r?(r=new w3k,w=l.getId(),_.Mp(w),r.D=w,w=l.W,_.Mp(w),r.F=w,r=r.va(),q=_.RXk(_.Lpl(l.D),q),vpl(l.D.zb()).Qb(_.CCa).Cb(r,q)):(_.xY(l.D).Qb(_.owa).Cb({Xs:l.W,replyId:l.getId(),Q6:q}),w==null||
w.complete());q=!0}return q};this.nh=_.bw().Ja(lGk)&&!e;this.ld=_.bw().Ja(nGk);this.H=this.Ve=null;this.Jc(h||_.lj);this.R=e;this.Ic=!1;this.Qd=!0;this.Wa=2;this.hp=!1;this.xk=dol(this.D);this.Tb=this.Ud=this.bj=this.Nl=this.Db=this.Xa=this.Nb=this.Hj=this.jc=this.Gc=this.zc=this.wi=this.Ff=this.Sg=this.jf=this.Lc=this.Fa=this.Bk=this.bd=this.le=this.oa=this.fl=this.V=this.O=this.ea=this.ma=this.Yb=this.hb=this.og=this.Nw=null;this.Pe=this.zb().H;this.Tc=this.Aa=this.Th=this.Bd=this.Rg=this.wd=this.J=
this.Ib=this.nj=null;(this.Ra=(c=!this.ld||bRl(this))?new _.$Y(_.oI(_.qS,{icon:"docs-icon-img docs-icon-exit-compact"}),this.Va()):null)&&this.yb(this.Ra);(this.La=c?new _.$Y(_.oI(_.qS,{icon:"docs-icon-img docs-icon-enter-compact"}),this.Va()):null)&&this.yb(this.La);this.Bg=sQl();this.Vp=new pQl(a);NY(this,this.xk,"Sc",(0,_.tl)(this.fHc,this,!0));this.Ia=new _.qT(_.Jg,void 0,this.Va());this.Ia.CA(!1);this.Ia.Rb(!0);this.Ia.SJ=!0;this.Do=this.kb=this.xb=this.mc=null;this.Za=this.D.zb().Tc;this.bb=
new _.Hv;this.wa(this.bb);this.xa=cRl(this)&&this.R;this.gg=cRl(this);this.Kb=null;this.Vj=this.R?this.D.zb().mq:1;this.Eo=Fpl(a);this.In=this.Ol=this.Tf=null};dRl=function(a){return cZ(a)?a.Ne():a.pq()};bZ=function(a){if(cZ(a)){var c,e;return(e=(c=a.Ne())==null?void 0:c.Vi())!=null?e:null}return a.pq()};
gRl=function(a){if(a.J&&a.zb().aya()){var c=eRl(a);var e=fRl(a);c=c||e?(new _.BQ("Comment location {LOCATION}")).format({LOCATION:((e?e:"")+" "+(c?c:"")).trim()}):"Comment location deleted";_.eI(a.J,c);_.Br(a.J,a.zb().Fa.kE())}};
jRl=function(a){if(a.zb().Fa.kE()){gRl(a);var c=bZ(a),e={CREATION_TIME:hRl(a)};c.isDeleted()||(e.AUTHOR_NAME=c.Jk().getName());if(c.isDeleted()){c="Created at {CREATION_TIME}. {BODY_TEXT}.";var f=a.Va(),g=a.Ca();e.BODY_TEXT=f.fc(UEk,g).textContent}else a.Nw.textContent?iRl(a)?(c="Author {AUTHOR_NAME}. Created at {CREATION_TIME}. {BODY_TEXT}. {ACTION_TEXT}.",e.BODY_TEXT=a.Nw.textContent,e.ACTION_TEXT=iRl(a)):(c="Author {AUTHOR_NAME}. Created at {CREATION_TIME}. {BODY_TEXT}.",e.BODY_TEXT=a.Nw.textContent):
(c="Author {AUTHOR_NAME}. Created at {CREATION_TIME}. {ACTION_TEXT}.",e.ACTION_TEXT=iRl(a));e=(new _.BQ(c)).format(e);_.eI(a.Ca(),e)}else _.dI(a.Ca(),_.Eh)};lRl=function(a){var c=a.Ne();if(c)if(c.isResolved()){var e,f=(e=a.zb().V)==null?void 0:e.Bh("drot");a.F.z5b(!1);if(e=a.Ne())e.Zq(),kRl(a,!1,YQl(a.F),f)}else e=(f=a.zb().V)==null?void 0:f.Bh("drt"),a.dispatchEvent(_.Sc),a.F.z5b(!1),(f=a.Ne())&&(f.Zq()?a.acceptSuggestion():kRl(a,!0,YQl(a.F),e)),a.dispatchEvent(_.Xoa)};
nRl=function(a){a.H||(a.H=new vFl(a.D,a.Va(),"dep",a.F,!1,dRl(a).getId()),a.wa(a.H),a.yb(a.H),a.H.Fa="Edit your comment...",a.H.Xc=!1,a.rb().listen(a.H,"p",a.lee),NY(NY(a,a.H,"c",a.MKb),a.H,"s",a.a1c),a.Ca()&&mRl(a))};
mRl=function(a){var c=a.Va(),e="docos-replyview-edit-pane",f="",g="",h="";a.R?(e+=" docos-anchoredreplyview-edit-pane",f=qEk):cZ(a)?(e+=" docos-streamdocoview-edit-pane",g=Byk,h=iRl(a)):(e+=" docos-streamreplyview-edit-pane",g=Byk);e=_.oI(IEl,{oq:e,ntc:f,woc:g,Afa:h,yu:a.zb().yu(),i9:a.zb().kb,Gu:a.zb().Gu(),kF:EY(a.zb()),i_a:_.bw().Ja(_.KX)});f=a.Ca();c.J4(e,c.fc(rDk,f));a.H.Dc(e);a.H.Ua(!1);CFl(a.H,a.F.Ca());a.Sg=c.fc(qDk,f)};
oRl=function(a,c){a.N3()||!cRl(a)?_.Sr(a.kb,!1):(_.Tr(a.kb)||_.Sr(a.kb,!0),_.YDb(a.kb,c?100:0),_.GH(a.Nw,"docos-replyview-body-emoji-reactable-background",c))};
rRl=function(a){var c=a.Ne();if(c){var e=c.Zq();if(!e||a.ma&&a.ea)if(e||a.O){if(e){if(!c.ET())return;e=Yol(a.zb().J,c)&&gql(_.JY(a.D),c)&&!a.zb().R_();var f=a.zb().J;var g=c.Zq()&&(Tol(f,c.Vi())||f.D==_.rg)&&gql(_.JY(a.D),c)&&!a.zb().R_();f=e||g;var h=e?_.wca:"Only editors can accept suggestions",k=g?_.Qja:"Only editors can reject suggestions";a.ma.Ca()&&a.D.zb().F.D(a.ma.Ca(),h);a.ea.Ca()&&a.D.zb().F.D(a.ea.Ca(),k);a.ma.Rb(e);a.ea.Rb(g);!a.R&&a.zb().Gu()&&Yol(a.zb().J,c)&&(_.Sr(a.ma.Ca(),gql(_.JY(a.D),
c)),_.Sr(a.ea.Ca(),gql(_.JY(a.D),c)))}else!EY(a.zb())&&gZk(c)?(f=!0,a.O.Rb(!1),_.Sr(a.O.Ca(),!1)):a.zb().Gu()&&!a.R?(f=pRl(a)&&!c.isResolved(),a.O.Rb(f),qRl(a,c.isResolved()),_.Sr(a.O.Ca(),!c.isResolved())):(f=pRl(a),a.O.Rb(f),qRl(a,c.isResolved()));!a.Ff||a.wi!==null&&a.wi==f||(_.Sr(a.Ff,f),a.wi=f)}}};
qRl=function(a,c){if(a.Tf===null||c!==a.Tf){if(a.zb().W!==BIk){var e=a.Va().fc(_.$Kg,a.O.Ca());if(e){var f=c?OGk:_.xGk;_.MR(e,[OGk,_.xGk]);_.DH(e,f)}}else e=c?"Re-open":vzk,_.Ar(a.O.Ca(),e);e=c?"Mark as open":_.JY(a.D).H?"Mark as resolved":dzk;a.O&&a.O.Ca()&&a.D.zb().F.D(a.O.Sa(),e);a.Tf=c}};sRl=function(a){var c=a.Va(),e=a.Ca();c=c.fc(UEk,e);a=bZ(a).isDeleted();_.GH(e,"docos-replyview-deleted",a);_.Sr(c,a)};
tRl=function(a){var c=rol(mol(lol(a.F.getId()),a.F.La),a.F.Zp()).va(),e=_.xY(a.D);e.Qb(IX).Cb(c);kOl(_.JY(a.D),a.F.getId());e.Qb(JX).Cb(c)};
wRl=function(a){var c=bZ(a);if(!c.isDeleted()){var e=c.Jk();var f=1===bZ(a).getOrigin()&&!e.D&&!e.getId();if(a.Xa){var g=e.Lk(),h=Dpl(a.D);f&&(g=h.O.W===BIk?"//ssl.gstatic.com/docs/common/profile/unverified_user_96.svg":"//ssl.gstatic.com/docs/common/profile/material_unverified_user_96.svg");_.GH(a.Xa,ECk,f);uRl(h,a.Xa,g,CYk(e))}a.Nb&&(g=e.getName(),a.ld&&a.Ve==g||(a.Yb=vRl(a,_.Dq(g||""),"n"),_.br(a.Nb,a.Yb),a.Ve=g),_.GH(a.Nb,"docos-replyview-author-unverified",c.LH()));c=e.getName()||"";f?c="Author from imported document":
bZ(a).LH()?c=_.uyk:a.zb().yoa()&&!e.D&&(c="");e=a.Nb;f=c;e&&a.zb().F.D(e,f);e=a.Xa;f=c;e&&a.zb().F.D(e,f)}};xRl=function(a,c){a.O&&a.Va().Rs(a.O.Ca(),c);a.ma&&a.ea&&(a.Va().Rs(a.ma.Ca(),c),a.Va().Rs(a.ea.Ca(),c));a.V&&(a=a.V,a.Va().Rs(a.H.Ca(),c))};yRl=function(a){return a.V&&a.V.H.isVisible()?(a.V.focus(),!0):a.ea?(a.ea.focus(),!0):a.O?(a.O.focus(),!0):!1};
BRl=function(a){if(a.R||(a.R?0:getComputedStyle(a.Sa()).display!==_.ji)){if(EY(a.zb())){if(a.R||!EY(a.zb())||a.zb().Ia==_.HX)var c=0;else{c=zRl(a);var e=bZ(a);c==null||e==null?c=0:(a.Ic=c.getId()===e.getId(),c=a.Ic?cZ(a)?0:a.Ne().wc(e.getId())-1:0)}e=a.Ne().r8()-a.Vj+1;a.Ic&&a.F.T5b(c);c=e-c;!cZ(a)&&a.Ic&&--c;EY(a.zb())&&a.Tc&&(e=(new _.BQ(a.Vj===1?"{REPLY_COUNT, plural, =1 {1 reply}other {{REPLY_COUNT} replies}}":RLk)).format({REPLY_COUNT:c}),_.Ar(a.Tc,e),_.Sr(a.Tc,(a.R||a.Ic)&&c>=1))}ARl(a)}};
zRl=function(a){var c=a.zb().Xi(),e=a.Ne();if(!e)return null;a=null;e=_.dl(e.sF(!0));for(var f=e.next();!f.done;f=e.next()){f=f.value;f.Oia(c)&&(a=f);for(var g=_.dl(U7k(f.JI())),h=g.next();!h.done;h=g.next())h.value===c.getEmail()&&(a=f)}return a};ARl=function(a){if(EY(a.zb())&&a.Ud){var c=_.Tr(a.Tc);if(c){var e=a.Ne();if(e){var f=ZNl(Jpl(a.D),a.W);e=!f.has(a.W)&&Object.keys(e.p_()).some(function(g){return f.has(g)});_.Sr(a.Ud,c&&e)}}else _.Sr(a.Ud,!1)}};
CRl=function(a){_.Br(a.Ca(),a.zb().Fa.kE());a.Ra&&a.Ra.Ca()&&_.Br(a.Ra.Ca(),!1);a.La&&a.La.Ca()&&_.Br(a.La.Ca(),!1)};DRl=function(a){if(a.Tb&&a.Pe){var c=a.Pe.ma;if(c&&_.Xm(c,7)==1&&_.Xm(c,13)!=2){var e,f,g=(f=(e=bZ(a).Jk())==null?void 0:e.getId())!=null?f:null;c=_.bQh(c).some(function(h){return _.Um(h,1)==g});_.Sr(a.Tb,c)}else _.Sr(a.Tb,!1)}};
ERl=function(a){var c=bZ(a);var e=_.bw().Ja(_.ye)?null:bZ(a);if(c.isDeleted())return _.IJ;var f=null;e&&(f=vnl(e));if(!f){if(e){if(f=e.ze(),c=e.Pr(),f.length>0&&c!=_.fk)throw Error("l2`"+c);}else f=c.H.H.qe();c=a.Ne();cZ(a)&&c&&c.Zq()&&(f=FQl(c.zma(),a.zb()));f=a.Bg.rk(f)}a.og=f;return vRl(a,f,"b")};
vRl=function(a,c,e){var f=a.zb().ea;if(a.R?f.B2()&&f.D:!f.B2()||!f.D)return c;var g=_.JY(a.D);f=g.F;if(!f)return c;g=yQl(g,IY(a.D),a.D);if(!g)return vQl(c,f);var h=g.HGc,k=g.GGc;a=g.reply.getId()==dRl(a).getId()&&h==e?k:void 0;return vQl(c,f,a)};bRl=function(a){return a.zb().Gu()&&cZ(a)&&!a.R&&(a.zb().aya()||a.Ib)?!0:!1};FRl=function(a){var c=a.Ne().vg();a=a.zb().Ff;return a.has(c)&&a.get(c)?a.get(c):null};
eRl=function(a,c){c=c===void 0?!1:c;if(a.zb().Gu()&&!a.zb().aya())return _.Dq("Selected text");var e=FRl(a);if(e==null)var f=void 0;else e.D==null?f=null:(f="",e.F!=null&&(f=_.R(f)+(_.R(e.F)+_.ta)),f=_.R(f)+_.R(e.D));return c?f?_.Dq(f):GRl(a):(a=e==null?void 0:e.D)?_.Dq(a):null};fRl=function(a){if(!a.zb().Gu())return null;var c;return(a=(c=FRl(a))==null?void 0:c.F)?_.Dq(a):null};GRl=function(a){return a.zb().Gu()?_.Dq("Original content deleted"):a.zb().jf?_.Dq(a.zb().jf):null};
HRl=function(a,c){return a||c?a&&c?a.toString()===c.toString():!1:!0};hRl=function(a){var c=a.xk,e=dRl(a),f=e.Bt();if(!f)return null;var g=_.oY(_.J3b(f));return a.R||cZ(a)||dRl(a).isDeleted()||!(a=e.CT())||f.equals(a)?c.format(g):(f=_.oY(_.J3b(a)),c={timestamp:c.format(g),updatedTimestamp:c.format(f)},(new _.BQ("{timestamp} (edited {updatedTimestamp})")).format(c))};
IRl=function(a){var c=a.Ca();if(c)if(a.zb().Gc)(0,a.zb().gg)(function(){return a.Ge()},function(){a.F.Ca()!=null&&a.F.Ca().focus()},!1);else if($Ql(a)){var e=bZ(a).isDeleted()?WBk:rLk;NQl(a.D,a.Va()).prompt(c,a.Ge,e,a,a.F.Ca())}else e=_.vq().Hh(eql)?rLk:"delete-reply",NQl(a.D,a.Va()).prompt(c,a.Ge,e,a,a.F.Ca(),!a.R)};
JRl=function(a,c){var e=a.Ne();if(!e||gql(_.JY(a.D),e)){var f=dRl(a);f&&f.ET()&&(e=a.zb().ma[c])&&(a=_.LY(KY(a.D),a.W))&&(f=f.sK&&f.sK()&&!f.isResolved()?f.vg():void 0,c=new fY(c),c.D=[f],c=gY(HQk(c,a),!0).va(),e(c))}};KRl=function(a,c){a.O!=null&&a.O.Rb(c)};kRl=function(a,c,e,f){var g=a.Ne(),h=a.F;h.D&&_.Oql(h.D)&&h.D.setValue("");g&&!g.Zq()&&g.isResolved()!=c&&(h=_.xY(a.D),g=_.rY(g).Sb(aRl(a)).va(),h.Qb(VEk).Cb(new sol(a.W,c,e||null,g,f)))};
MRl=function(a){if(!LRl(a)){var c=a.Wa==1;c!=a.hp&&(a.bd.style.display=c?_.Mc:_.ji,a.hp=c)}};cZ=function(a){return a.getId()==_.lj};NRl=function(a){var c=a.zb().J;if(cZ(a))c=Wol(c,a.Ne());else{var e=a.pq();c=Vol(c,e,!0,!1)}return c&&!a.zb().R_()};ORl=function(a){var c=bZ(a);return c?Uol(a.zb().J,c):!1};PRl=function(a){return a.R||EY(a.zb())&&(a.nh||(a.R?!1:getComputedStyle(a.Sa()).display!==_.ji))&&a.oa!=null};pRl=function(a){var c=a.Ne();return c?Xol(a.zb().J,c):!1};
$Ql=function(a){if(!_.bw().Ja(_.ye))return!1;var c=bZ(a);return c.LH()||a.D.zb().H.D.J||!c.isDeleted()&&a.D.zb().isClientSideEncrypted()&&c.getOrigin()===1?!1:!0};QRl=function(a,c){for(var e=0;e<a.Hj.length;++e)_.Sr(a.Hj[e],c)};aRl=function(a){return krl(a.R,a.zb().Zx())};
SRl=function(a){a.J&&a.Ib&&(a.F.yp()||_.FH(a.J,MKk),_.Tr(a.wd)?_.DH(a.J,GKk):a.ld?_.eK(a,RRl).measure(function(c){a.Aa&&!a.isDisposed()&&(c.dKa=a.Aa.clientWidth<a.Aa.scrollWidth||a.Aa.clientHeight<a.Aa.scrollHeight)}).ah(function(c){a.J&&!a.isDisposed()&&c.dKa&&_.DH(a.J,GKk)}).va()():(a.Aa.clientWidth<a.Aa.scrollWidth||a.Aa.clientHeight<a.Aa.scrollHeight)&&_.DH(a.J,GKk))};
TRl=function(a){!a.Fa||_.Qr(a.Fa).height<=0||(_.IH(a.Fa,NEk,PEk),_.Qr(a.Fa).height>30?(_.Sr(a.zc,!0),_.Sr(a.jc,!1),_.IH(a.Fa,PEk,NEk)):(_.Sr(a.zc,!1),_.Sr(a.jc,!1)),a.Qd=!0)};VRl=function(a){if(_.Tr(a.Db)){var c=URl(a);c?(_.br(a.Db,a.Bg.rk(c)),_.Sr(a.Db,!0)):_.Sr(a.Db,!1)}};
URl=function(a){var c=bZ(a);if(c.isDeleted())return null;var e=c.getOrigin();if(1===e)c="From imported document";else{a=a.zb();var f;if(f=!!IUk(a.D))a=IUk(a.D),f=!!_.nn(a,33,_.dm);c=f&&c.xeb()?"From comparison":2===e?"Comments above copied from original document":null}return c};WRl=function(a,c){a.bj&&_.Sr(a.bj,c);c?_.DH(a.Ca(),"docos-unseen"):_.FH(a.Ca(),"docos-unseen")};iRl=function(a){var c=bZ(a);return c.isDeleted()?null:a.To.sU(c,a.Ne())};
XRl=function(a,c){c=_.aVh(c,!0)==-1;if(a.nj===null||c!=a.nj)_.SQk(a.fl,c),a.nj=c};YRl=function(a){var c=iRl(a);c&&a.jf&&_.Ar(a.jf,c);c&&a.Sg&&_.Ar(a.Sg,c)};ZRl=function(a){if(cZ(a)&&EY(a.zb())){var c,e=(c=bZ(a))==null?void 0:c.jZ();c=a.Va().fc(XEk,a.Sa());var f=a.F.Ca();f=a.Va().fc(uCk,f);e&&c&&f&&(a.ld?_.Sr(c,!lrl(e,a.zb())):_.Sr(c,getComputedStyle(f).display==_.ji))}};$Rl=function(a){a.Vp.configure(_.NCb("A",a.Nw))};cRl=function(a){return bZ(a)&&a.Ne()?sPl(bZ(a),a.Ne(),a.D.zb()):!1};
LRl=function(a){return cZ(a)&&a.Ne().Zq()};aSl=function(a){var c=bZ(a),e=c.TC();c=c.LH()||e&&zZk(e).some(function(f){return f.Xga});_.Sr(a.Nl,c)};bSl=_.u();RRl=_.u();cSl=function(a,c){MY.call(this,a,c);this.D=!1;this.H=this.F=null};dSl=function(a,c){a.F&&(a.H=c,c=EY(a.zb())?(new _.BQ(RLk)).format({REPLY_COUNT:c}):(new _.BQ("{REPLY_COUNT, plural, =1 {Show 1 more reply}other {Show {REPLY_COUNT} more replies}}")).format({REPLY_COUNT:c}),_.Ar(a.F,c))};
eSl=function(a,c,e,f,g){_.aZ.call(this,a,c,e,f,g);e=[_.qHk,_.oe,eKk,_.kKk];a.zb().Hj&&(e=e.concat([_.Kh]));this.J=null;this.zb().Gu()||(this.J=new APl(a,c,f,"docos-actionmenu",e),this.yb(this.J));this.W=null;this.zb().Gu()&&(this.W=new nPl(a,f,c,this));this.Za=_.bw().Ja(lGk);this.yb(this.kx);this.Za||this.i8();this.Ia+=" docos-streamdocoview-input-pane";this.zc="Discard reply";this.Aa=this.Xa=this.Ra=this.xa=null;this.kb=!1;this.R=null};fSl=function(a,c,e){c&&a.zb().F.D(c,e)};
gSl=function(a){var c=a.Ne();a.Ra&&_.Sr(a.Ra,c.isResolved());a.Xa&&_.Sr(a.Xa,!c.isResolved());a.W&&a.W.Ca()&&_.Sr(a.W.Ca(),!c.isResolved())};hSl=function(a){if(a.xa){var c,e=a.zb().Gu()||!_.Vq(a.xC)||((c=a.D)==null?void 0:_.Oql(c))||a.yp();EY(a.zb())&&(c=[a.kx].concat(Object.values(a.xC)).every(function(f){return!f.N3()}),e=e&&c);_.Sr(a.xa,e)}};
iSl=function(a){var c,e=(c=a.zb().V)==null?void 0:c.Bh("drt");c=_.xY(a.getContext());a.dispatchEvent(_.Sc);var f=a.Ne();f=_.rY(f).Sb(a.zb().Zx()?10:105).va();var g,h=new sol(a.getId(),!0,((g=a.D)==null?0:_.Oql(g))?a.D.getValue():null,f,e);c.Qb(VEk).Cb(h);a.dispatchEvent(_.Xoa)};jSl=function(a,c){c=c===void 0?!1:c;var e=a.Ca();if(e&&EY(a.zb())&&e.offsetHeight!=0){a.kx.collapse(c);for(var f in a.xC)a.xC[f].collapse(c)}};
kSl=function(a){var c=a.Ne().r8();if(!a.R){a.R=new cSl(a.getContext(),a.Va());a.wa(a.R);var e=a.Va().fc(gFk,a.Ca());e&&(a.R.render(e),a.R.Ua(!1))}a.R.Hc()&&(a.ea.lDc()?(dSl(a.R,a.Nb),a.R.Ua(a.Nb>0)):(dSl(a.R,c-3+1),a.R.Ua(c>=3)))};
lSl=function(a){_.fNe.call(this,a);this.Yk(WAk,[85]);this.Yk("next-doco",[74]);this.Yk("prev-doco",[75]);this.Yk("prev-anch",[75,1]);this.Yk("next-anch",[74,1]);this.Yk(_.kKk,[69]);this.Yk("reopen",[69,1]);this.Yk(gKk,[82]);this.Yk("speak-comment",_.yw(["A","C"]));this.addEventListener(_.xj,this.Aa)};
oSl=function(a,c){var e=a.QZ,f=a.H_d,g=a.wid,h=a.oid,k=a.ey,l=a.Paa,q=a.qH,r=a.Zx,w=a.lsd,x=a.B2,z=a.Gu,A=a.MNb,B=a.kF,E=_.X(_.Z(),_.Ka+_.W(_.cwa)+" "+_.W("docos-streampane-container")+'"');_.lI(r)||(_.X(E,' role="dialog" aria-label="'),_.Y(E,_.mI("Comment history dialogue.")),_.X(E,'"'));_.X(E,_.tN+_.W(EFk)+_.p);if(_.lI(f)){_.X(E,_.Ka+_.W(FFk)+_.p);_.lI(r)||!_.lI(l)&&!_.lI(z)||(_.X(E,(_.lI(z)?_.Ka+_.W("docos-comment-title-container")+_.p:"")+_.Ka+_.W("docos-comment-text")+" "+(_.lI(z)?_.W("docos-comment-header-title"):
"")+_.p),_.Y(E,_.Va),_.X(_.Y(_.X(E,_.TM),_.lI(l)?mSl():""),_.lI(z)?_.TM:""));c=_.X(_.Y(_.X(_.Y(_.X(E,(_.lI(B)?_.Ka+_.W(NFk)+_.da:"")+(_.lI(x)&&_.lI(B)?_.Ka+_.W(ZEk)+_.zM+_.W(KFk)+_.ia+_.W(HFk)+_.zM+_.W(JFk)+_.zM+_.W(IFk)+_.yM:"")),!_.lI(r)||_.lI(l)||_.lI(B)?"":_.Y(_.Y(_.Z(),mSl()),_.lI(w)?nSl():"")),(_.lI(x)&&!_.lI(B)?_.Ka+_.W(ZEk)+_.da:"")+(_.lI(e)&&!_.lI(r)?_.Ka+_.W(VFk)+_.da:"")),_.lI(A)?_.X(_.Y(_.X(_.Z(),_.pkg+_.W(kEk)+_.p),Rll(k,!_.lI(z)&&!_.lI(l)&&!_.lI(r))),_.Ga):""),_.TM);var F;_.lI(B)?F=
_.X(_.Y(_.Y(_.X(_.Z(),_.Ka+_.W("docos-sidebar-filter-container")+_.p),mSl()),_.lI(w)?nSl():""),_.TM):F="";_.X(_.Y(c,F),_.lI(B)?"":_.Ka+_.W(KFk)+_.ia+_.W(HFk)+_.zM+_.W(JFk)+_.yM)}else w=a.user,a=a.i9,c=_.X(_.Y(_.X(_.Y(_.X(_.Z(),_.Ka+_.W("docos-streampane-entryarea")+" "+_.W(RHk)+_.p),Yml(48,DFk)),_.Ka+_.W("docos-streampane-entryarea-content")+_.ia+_.W(OFk)+" "+_.W(_.BO)+_.p+_.jI(w)+_.TM),IEl({oq:GFk,Lce:!0,i9:a},c)),_.Ga),_.Y(E,c);_.lI(g)&&(_.X(E,_.Ka+_.W("docos-streampane-bannertext")+_.p+(_.lI(B)?
_.oN+_.W("docos-streampane-bannertext-content")+_.p:"")),c=_.NS(),_.X(E,_.wkg+_.W(c)+_.p+_.jI(g)+_.Ljg),_.lI(h)&&(_.X(E,'<a target="_blank" rel="noreferrer" href="'+_.W(_.aS(h))+_.nM+_.W("docos-streampane-bannerlink")+_.Wfg+_.W(c)+_.p),_.Y(E,_.Fb),_.X(E,_.SM)),_.X(E,(_.lI(B)?_.Ja:"")+_.TM));_.X(E,_.Ka+_.W("docos-streampane-readonlytext")+" "+_.W(vKk)+" "+_.W(_.BO)+_.p);_.Y(E,"You do not have permission to add comments.");_.X(_.Y(_.X(E,_.Ga),_.lI(q)&&!_.lI(r)?_.X(_.Y(_.X(_.Z(),'<div class="streampane-dragger" style="display: flex;">'),
_.rS("docs-icon-img docs-icon-drag-handle-20","streampane-dragger-icon")),_.TM):""),_.TM);return E};pSl=function(a){a=a.message;return(0,_.iI)(_.Ka+_.W("docos-streampane-error")+_.p+_.jI(a)+_.TM)};mSl=function(){return(0,_.iI)(_.Ka+_.W(cDk)+" "+_.W(CDk)+" "+_.W(_.tO)+_.da)};nSl=function(){return(0,_.iI)(_.Ka+_.W(eEk)+" "+_.W(CDk)+" "+_.W(_.tO)+_.da)};
qSl=function(a){var c='<div class="docos-streampane-all-filtered-out-state" id="docos-streampane-all-filtered-out-state"><div class="docos-streampane-all-filtered-out-state-content">';c=a.Crd?c+'<div class="docos-streampane-all-filtered-out-message">No matching results</div><div class="docos-streampane-all-filtered-out-reset-filter"></div>':c+"No comments matching filters.";return(0,_.iI)(c+_.Ga)};rSl=function(a,c){_.RJ.call(this,c);if(this.D=a)this.F=new _.iX("Reset filter"),this.yb(this.F)};
_.sSl=_.u();_.tSl=function(a,c,e){_.mT.call(this,a,c||_.sSl.Mb(),e);this.Ak(8,!0);_.nT(this,9)};_.uSl=function(){this.D=_.Tlh};vSl=function(a){var c=a.Ae();a.F={top:c+"-top",bottom:c+"-bottom",start:c+"-start",end:c+"-end"}};_.dZ=function(a,c,e){this.cI(a||_.lk);_.qT.call(this,this.Mea,c||_.uSl.Mb(),e);wSl(this)};_.xSl=function(a){return _.yQ(a,a.uQ)};_.ySl=function(a,c){a.EV(a.ud(c))};wSl=function(a){a.rb().listen(a,_.sj,a.TUb).listen(a,_.Xnh,a.SOd).listen(a,_.mHg,a.NOd).listen(a,_.Fg,a.OOd)};
_.zSl=function(a,c,e,f,g){e={yed:e,ybc:f,Djc:g};f=_.oTk(_.uSl,e.yed);_.dZ.call(this,void 0,f);this.D=e;for(e=0;e<a.length;e++)this.yb(a[e],!0);_.ySl(this,c)};ASl=function(a,c){_.zSl.call(this,a,0,"docos-streampane-tabbar","docos-streampane-tabbar-focused","docos-streampane-tabbar-active");this.F=c;this.SJ=!0};
BSl=function(a){a=a||{};var c=a.GKa,e=a.Zbe,f=_.X(_.Z(),'<div class="docos-streampane-zero-state">');e?(e='<div class="docos-streampane-zero-state-header-image"><img src="//ssl.gstatic.com/docs/spreadsheets/comments-zerostate.svg" alt="'+_.mI("Comments Image"),e=(0,_.iI)(e+_.da)):e="";f=_.Y(f,e);e=(0,_.iI)('<div class="docos-streampane-zero-state-content"><div class="docos-streampane-zero-state-content-add-comment"><div class="docos-streampane-zero-state-content-for-you-message">\'For you\' will list comments that need your attention. Start a discussion.</div><div class="docos-streampane-zero-state-content-default-message">Start a discussion</div><div class="docos-streampane-zero-state-content-no-comments-revision-message">No comments in this version</div></div><button class="docos-streampane-zero-state-add-comment-button">Add comment</button></div>');
f=_.Y(f,e);_.lI(c)?(a='<div class="docos-streampane-zero-state-footer"><div class="docos-streampane-zero-state-footer-edu">Who sees comments?</div><div class="docos-streampane-zero-state-footer-edu-explained">'+(_.jI((a||{}).GKa)+'</div><div class="docos-streampane-zero-state-footer-edu-learn-more"><a class="docos-streampane-zero-state-footer-learn-more-link" href="https://support.google.com/docs/answer/65129" target="blank">'),a=(0,_.iI)(a+"Learn more</a></div></div>")):a="";return _.X(_.Y(f,a),
_.TM)};CSl=function(a,c){_.RJ.call(this,c);this.F=a;this.D=new _.GXj(void 0,this.Va());this.yb(this.D)};ESl=function(){return _.X(_.Y(_.Y(_.Y(_.Y(_.X(_.Z(),_.Ka+_.W("docos-spinner")+_.xwk+_.W("docos-quantum-spinner")+" "+_.W(_.nna)+_.p),DSl(_.Jeb)),DSl(_.Reb)),DSl(_.Teb)),DSl(_.Oeb)),_.Ga)};
DSl=function(a){return(0,_.iI)(_.Ka+_.W(_.Peb)+" "+_.W(a)+_.ia+_.W(_.Leb)+" "+_.W(_.Qeb)+_.ia+_.W(_.Keb)+" "+_.W(_.Meb)+_.ha+_.W(_.Neb)+_.ia+_.W(_.Keb)+" "+_.W(_.Meb)+_.ha+_.W(_.Leb)+" "+_.W(_.Seb)+_.ia+_.W(_.Keb)+" "+_.W(_.Meb)+_.ea)};FSl=function(a,c){MY.call(this,a,c);this.D=null};_.GSl=function(a,c){this.F=a;this.D=c===void 0?0:c};
HSl=function(a){var c=a.Cfe;a=_.X(_.Y(_.X(_.Z(),_.Ka+_.W("proactiveSummaryViewFilledCard")+_.ia+_.W("proactiveSummaryViewProactiveSummaryTitle")+'" role="heading"><div class="'+_.W("proactiveSummaryViewProactiveSummaryIcon")+_.p),_.rS("docs-icon-img docs-icon-summarize-auto-2-24x24")),_.TM);_.Y(a,_.Nzk);var e=_.X(_.Y(_.X(a,_.Ka+_.W("proactiveSummaryViewTitleControlsContainer")+_.ia+_.W(XJk)+_.da),_.q7i({oq:UJk,h