.length;f++){var g=c[f];RVg(this,g)&&e.push(g)}c=e}e=zVg(a,c);Eu(c,e);for(e=0;e<c.length;e++)f=c[e],a.Aa().Eg(id,f).D.O&&(g={},av(g,cqa,null),this.F(new EG(id,f,f,g)))}};
function TWg(a,c,e,f,g,h,k){var l=c.getType();c=c.D;var p=JA(l),q=c.Yc();for(k=!0===k?1:0;k<q.length;k=k+1|0){var u=c.get(+q[k]|0).zd();u=a.Ja(u,e,h);var w=f+(+q[k]|0)|0;var y=p?w:(k+1|0)<q.length&&q[k+1|0]!=null&&(+q[k+1|0]|0)!=0?f+(+q[k+1|0]|0)-1|0:g;var z=PXb(a.J,l)==2;FD(a,new CG(a.getContext(),l,u.Hb(gVg(a,l)),w,y,z))}}
function UWg(){UWg=r();QVg=Qv(Pv(Pv(Pv(Pv(Pv(Pv(Pv(Pv(Pv(Pv(Uv(),GXf,(PVg(),KVg).F),FXf,IVg.F),XZf,KVg.F),gP,IVg.F),eP,JVg.F),y2f,NVg.F),N2f,NVg.F),g2f,LVg.F),x2f,NVg.F),HO,MVg.F))}function VWg(){this.D=0}H(VWg,K);VWg.prototype.Mc=function(){return this.D>0};VWg.prototype.Rc=function(){if(!this.Mc())throw xn().Ea;var a=this.F,c=this.D=this.D-1|0;return a[c]};VWg.prototype.Qq=function(){throw hn(cc).Ea;};VWg.prototype.Co=G(59);function WWg(){this.D=0}H(WWg,VWg);
WWg.prototype.Qq=function(){Bu(this.F,this.D)};function XWg(a){return kkb(function(){var c=new WWg;c.F=a;c.D=a.length;return c})}function YWg(a,c,e,f){var g=bu(Cu(a.H));du(g,aSb(function(k){return(f?k.D:k.F).length}));for(g=XWg(g).ad();g.Mc();){var h=g.Rc();if(znb(c,f?h.F:h.D,e)&&!a.J.MAb(e,c))return h}return null}
function ZWg(a,c,e,f){var g=f?1:-1,h=YWg(a,c,e,f);if(!h)return null;var k=f?h.F:h.D,l=f?h.D:h.F,p=e+Math.imul(k.length,g)|0;do{p=f?c.indexOf(l,p):c.lastIndexOf(l,p);var q=e!=p;if(p==-1||!q)return null;if(a.J.MAb(p,c))p=p+Math.imul(l.length,g)+g|0;else break}while(f?p<c.length:p>0);if(p>c.length)return null;a=f?p+l.length-1|0:e+k.length-1|0;c=new mVg;c.H=h;c.F=f?e:p;c.D=a;return c}function $Wg(a,c,e){return ZWg(a,c,e,!0)}function aXg(){this.O=this.H=this.D=0;this.F=vo()}H(aXg,K);
aXg.prototype.run=function(a,c){this.R=a;this.J=c;this.O=c.length;this.V=[];this.H=this.D=0;for(HUg(this.F);this.D<this.O;){if(this.F.vz()!=0)a=!1;else if(c=$Wg(this.R.CD(),this.J,this.D)){a=c.D;c=new lVg(Cn(this.J,this.D,this.D+(a-c.F+1|0)|0),c.H.H);var e=this.D;this.D=a+1|0;rVg(this,e,c);a=!0}else a=!1;a||(a=this.J.charCodeAt(this.D),this.R.fbc(a)?(wo(this.F,a),sVg(this)):(this.F.vz()!=0&&tVg(this),GUg(Vn(a))||(wo(this.F,a),tVg(this)),sVg(this),this.H=this.D))}tVg(this);return this.V};
function aR(a){var c=new Ikb;c.D=[];Jkb(c,0,a);return c}function bXg(a,c){for(var e=ymb(),f=0;f<a.size();f=f+1|0){var g=a.Vm(f),h=g.D.hA;e.put(O(h),g)&&O(h)}for(a=0;a<c.size();a=a+1|0)f=c.Vm(a),g=f.D.hA,e.put(O(g),f)&&O(g);return aR(e.values())}function cXg(a,c){for(var e=MB(),f=a.D,g=f.Yc(),h=0;h<g.length;h++){var k=g[h],l=f.get(k);l=FWg(l,function(p){return iVg(c,p)});e.set(k,l)}a=a.F;f=null;a&&(f=FWg(a,function(p){return iVg(c,p)}));return new $B(Mi,(Vmc(),Ymc),e,null,f)}
function dXg(a,c,e){for(var f=a.D,g=Xu(f),h=Qu(c),k={},l=0;l<h.length;k={XDb:void 0},l=l+1|0){var p=h[l];k.XDb=c[p];var q=f[p];q&&(q=q.clone(function(E){return function(F){var I=F.xd();F=Uid(e,F.getType(),E.XDb,I);F.Oc(I);return F}}(k)),Uu(g,p),Ru(g,k.XDb,q))}f={};for(var u in a.H){h=a.H[u];k={};for(var w in h)l=h[w],w in c?EDb(k,c[w],l):EDb(k,w,l);cv(f,u,k)}u={};w=a.F;for(var y in w){Ru(u,y,[]);for(var z in w[y]){h=Number(z);k=w[y][h];l=[];for(p=0;p<k.length;p=p+1|0)q=k[p],l[p]=q in c?c[q]:q;Lt(u[y],
h,l)}}y={};z=a.ea;for(var A in z){Ru(y,A,[]);for(var C in z[A]){w=Number(C);h=z[A][w];k=[];for(l=0;l<h.length;l=l+1|0)p=h[l],q=p.D,Au(k,l,q in c?new L9b(p.F,c[q]):p);Lt(y[A],w,k)}}A=[];C=a.J;for(z=0;z<C.length;z++)switch(w=C[z],w.getType()){case Mi:xu(A,cXg(w,c));break;case Li:xu(A,GWg(w,c));break;default:A.push(w)}return new WB(a.Xa(),ru(A),a.V,a.O,a.W,u,g,a.R,y,f)}function eXg(a,c,e,f,g){this.D=a;this.J=c;this.O=e;this.V=f;this.R=g}H(eXg,BG);
eXg.prototype.H=function(){var a=this.getContext().ub().Aa().Xa(),c=this.J;Lo(BA(a,this.J),"\uec03")&&(c=c+1|0);var e=this.O;Lo(BA(a,this.O),"\uec02")&&(e=e-1|0);c>e||jF(this,DG(this.getContext(),ml,{ts_ff:jja},c,e));a=this.getContext().ub().Aa().Xa().slice(this.J,this.O);a=this.V.run(this.R,a);for(c=0;c<a.length;c++)if(e=a[c],vZb(e.getValue())){var f=e.getType();UWg();f=QVg.get(f);f=f!=null?f:(PVg(),NVg).F;jF(this,DG(this.getContext(),ml,M2b(f,Gl,null),e.ug().F+this.J|0,e.ug().D+this.J|0))}};
function fXg(a,c,e,f,g,h,k,l,p,q,u,w,y,z){this.D=a;this.ea=this.Ca=!1;this.va=c;this.H=e;this.za=k;this.W=f;this.Fa=g;this.F=h;this.Da=l;this.O=p;this.Ca=!0===q;this.R=u;this.J=w?w:(bA(),cA);this.ma=z;this.Na=y?y:new eVg}H(fXg,AG);
fXg.prototype.El=function(){var a=this.va,c=this.getContext().ub().Aa();if(this.W)a=this.W.D(c,a,this.H,this.Fa,this.F,this.ma,this.O,this.J.D==2);else{var e=a.yn(Mi),f;if(f=e)a:{for(var g=Lfc(e),h=0;h<g.length;h++){var k=g[h];Lo(e.getType(),Mi);if(yod(k.zd())!=null){f=!0;break a}}f=!1}f&&sx(this.getContext().D,en("yr`InsertDocumentSliceOperation did not sanitize the document slice containing task"))}var l=this.H,p=a.Xa(),q=p.length;if(q==0)var u=0;else{p=this.Ca?Cn(p,0,q-1|0):p;var w=l.D,y=this.getContext().a9(p,
tC(w),null,null,!0);FD(this,y);u=q}var z=this.H.D,A=a,C={},E={},F={},I=A.F,J=A.D,N={},W={},Y={},aa;for(aa in J){var fa=J[aa],ka=fa.zd();if(hec(ka)){var qa=ka.Kd;if(qa instanceof Zdc){var va=fa.J;if(va!=null){var za=Y,la=VUg(qa);Ru(za,la,va)}}}if(!Ot(EXb,ka.getType())&&!Eo(ka.getType(),Xi)){var Ya=this.V(ka);Ru(W,aa,Ya);Ru(N,Ya,ka);if(this.getContext().ub().Aa().Dd(Ya)){var ra=this.getContext().ub().Aa().Dd(Ya).getType(),Va={"duplicate entity id":Ya,"existing entity type":ra},Ia=this.getContext().D,
Oa=en("zr");Ia.Ec(Oa,Va,null)}}}this.R&&(N=this.R.D(this.getContext().ub().Aa(),N,this.H,this.F,this.Da,this.O,A,W,Y,C,E,F));for(var $a in I){var eb=I[$a],cb;for(cb in eb)for(var sb=Number(cb),kb=W,Xb=N,Nb=z,Yb=sb,ec=eb[sb],Zc=0;Zc<ec.length;Zc++){var gd=ec[Zc],zc=kb[gd];if(zc!=null){var Kc=Xb[zc];if(Kc){var Vd=idc(jnc(Kc));if(no(Vd)){var $c=oo(Vd).getType(),Gd=this.getContext().ub().Aa().ox(new Q9b($c)),Nd=$u(this.va.H,$c);DD(this,AE(this.getContext().Ja,$c).D(zc,Kc.getType(),Nd?Gd.J().D(Nd[gd]):
null,fVg(this,Kc),this.F?DUg:aVg,this.Da,this.O,this.getContext().lb()))}else DD(this,dM(Kc.getType(),zc,fVg(this,Kc),this.getContext().lb().Ha(mg)));var Yc=Lo(Kc.getType(),Uj)?oG(this.getContext().ub().Aa().Xa(),Nb+Yb|0):Nb+Yb|0;FD(this,new JG(this.getContext(),zc,Yc))}}}}var Be=A.D,we;for(we in Be)if(W[we]==null&&!(we in F)){var Ce=Be[we].zd(),ee=c.Dd(we);if(this.F||!ee||!Lo(ee.getType(),Ce.getType())){var te=Ce.getId(),Pc=te,Sc=Ce;this.F&&(Pc=this.V(Ce),te in C&&(Pc=C[te]),this.R&&(Sc=this.R.H(Ce,
this.F,C,E)),Ru(W,we,Pc));DD(this,dM(Ce.getType(),Pc,fVg(this,Sc),this.getContext().lb().Ha(mg)))}}a=dXg(a,W,this.getContext().va);var Id={};if(u>0){var Od=a,xe=z+u-1|0,If=u,je={};var gg={},Re=Od.yn(kh);Re&&TWg(this,Re,Od,z,xe,gg,null);Fv(je,gg);var lf={},rf=Od.yn(Mi);if(rf){if(this.F)for(var Xe=Lfc(rf),Bf=0;Bf<Xe.length;Bf++)yod(Xe[Bf].zd())==null||L(gVg(this,Mi),Uz)||sx(this.getContext().D,en("yr`serialization strategy is not ASSUME_NO_INHERIT for task list style"));var wf=QWg(this,z,z,xe);TWg(this,
rf,Od,z,xe,lf,wf);var mf=oG(c.Xa(),xe);if(!QWg(this,xe,z,xe)&&rf.F){var Qf=PXb(this.J,Mi)==2;FD(this,new CG(this.getContext(),Mi,rf.F.zd().Hb(gVg(this,Mi)),mf,mf,Qf))}}Fv(je,lf);var wd={},Wd=Od.yn(ll);if(Wd&&c.Lm(ll)){for(var Bd={},Ae=c.eg(ll),Ke=0;Ke<Ae.length;Ke++){var Qd=c.getStyle(ll,Ae[Ke]);Qd.Md(acb)&&Ru(Bd,Qd.Ua,Qd)}for(var ve=Wd.D,Ef=ve.Yc(),ug=0;ug<Ef.length;ug++){var Wg=Ef[ug],Ff=ve.get(Wg),Og=Ff.zd();if(Og.Md(acb)){var Zg=Og.Ua;if(Bd[Zg]){var ih=kF(jl),Rf={tbls_tblid:ih};Ru(wd,Zg,ih);Ff=
Ff.dC();Og=Ff.zd();Og.Oc(Rf);ve.set(Wg,Ff)}}}TWg(this,Wd,Od,z,xe,wd,null)}Fv(je,wd);var dh={},Jf={},hg=Od.yn(Jj);if(hg){for(var Oh=hg.D,Yf=this.getContext().ub().Aa(),Tf=!1,bg={},Bi=Oh.Yc(),xg=0;xg<Bi.length;xg++){var Fg=Oh.get(Bi[xg]).zd();if(wB(Fg)!=0)if(Tf=!0,this.za){var Sh=xB(Fg),Ig=kF("h");Fg.Oc({ps_hdid:Ig});Ru(Jf,Sh,Ig)}else Ru(bg,xB(Fg),Fg)}if(Tf&&!this.za)for(var Tg=Yf.eg(Jj),jh=0;jh<Tg.length;jh++){var Lh=Yf.getStyle(Jj,Tg[jh]);if(wB(Lh)!=0){var Bg=xB(Lh),Ii=bg[Bg];if(Ii){var Oi=kF("h");
Ii.Oc({ps_hdid:Oi});Ru(Jf,Bg,Oi)}}}var si=this.H.D,Th=si+If-1|0,bj=!this.ea&&QWg(this,si,si,Th);TWg(this,hg,Od,si,Th,dh,bj);var Ok=QWg(this,Th,si,Th),Yi=hg.F;if(!Ok&&Yi){var Cl=Yi.zd();if(wB(Cl)!=0){var cn=xB(Cl),Vk=kF("h");Cl.Oc({ps_hdid:Vk});Ru(Jf,cn,Vk)}var Xj=oG(Yf.Xa(),Th),Fm=PXb(this.J,Jj)==2;FD(this,new CG(this.getContext(),Jj,Cl.Hb(gVg(this,Jj)),Xj,Xj,Fm))}}var Yj=dVg(dh,Jf);Fv(je,Yj.D);for(var Sl={},Gm=Od.J,Tl=0;Tl<Gm.length;Tl++){var qn=Gm[Tl],Zi=qn.getType();Zi===Jj||Zi===Mi||Zi===kh||
Zi===ll||!RUg(Zi)||TWg(this,qn,Od,z,xe,Sl,null)}Fv(je,Sl);for(var nj={},Io=Od.V,sp=0;sp<Io.length;sp++){var Xp=Io[sp],yo=Xp.getType();RUg(yo)&&TWg(this,Xp,Od,z,xe,nj,null)}Fv(je,nj);var Yp=dVg(je,Yj.D);Fv(W,Yp.F);Id=Yp.D}return new bVg(u,W,Id)};fXg.prototype.V=function(){return this.Na.D(ui)};fXg.prototype.Ja=km();function gXg(a,c,e,f,g,h,k,l,p,q,u,w){fXg.call(this,a,PWg(c),e,f,g,h,!1,k,l,p,q,u,null,w)}H(gXg,fXg);
gXg.prototype.El=function(){var a=this.H.D,c=fXg.prototype.El.call(this),e=a+c.D-1|0;if(e<a)return c;for(var f=this.getContext(),g=f.ub().Aa(),h=g.Xa(),k=new aXg,l=h.H("\uec03",O(a),O(e)),p=0;p<l.length;p++){var q=l[p],u=wA(h,"\uec02",q);FD(this,new eXg(f,q,u,k,MWg(f.W,g,q)))}f=c.F;g=c.H;h=(0,this.getContext().ob)();k=this.getContext().ub().Aa();a=rDb(k.eg(Li),a,e);for(e=0;e<a.length;e++)if(l=a[e],p=k.getStyle(Li,l).Ni())if(p=p.getUrl(),XB(p,h)){var w=f;u=g;q=tdc(p);var y=q.bookmark;w=y==null?null:
w[y];w!=null?(Ru(q,Vc,w),p=k$b(p,vdc(q))):(w=q.heading,u=w==null?null:u[w],u!=null?(Ru(q,Ah,u),p=k$b(p,vdc(q))):p=null);p!=null&&FD(this,DG(this.getContext(),Li,jVg(p),k.gr(Li,l),k.yp(Li,l)))}return c};gXg.prototype.V=function(a){return Ot(QUg,a.getType())?a.getId():fXg.prototype.V.call(this,a)};
gXg.prototype.Ja=function(a,c,e){for(var f=[],g=a.OO(),h=0;h<g.length;h++){var k=g[h],l=c.R[k];if(l){var p=e[k];if(p!=null)f.push(p);else{p=a;var q=k,u=l;if(Lo(p.getType(),kh)&&p.D.getType()==4)if((p=u.D[q])&&p.zd()instanceof Uqc){q=p.zd();b:if(p=this.getContext().ub().Aa(),JC(),(u=p.Dd(q.getId()))&&u.Va(q))p=u;else{u=p.Js(Wl);for(var w=0;w<u.length;w++){var y=Ct(p.NF(Wl,u[w]));if(go(y.D,q.D)){p=y;break b}}p=null}p=p?p.getId():null}else p=null;else p=null;p==null?(p=kF(ui),f.push(p),q=hw().put(k,
p).oa(),l=dXg(l,q,this.getContext().va),q=xA(this.getContext().ub().Aa().Xa()),FD(this,new gXg(this.getContext(),l,tC(q),this.W,this.Fa,this.F,VQ(),this.O,null,null,this.J,this.ma)),Ru(e,k,p)):(f.push(p),Ru(e,k,p))}}}f.length>0&&(c=a.getType(),sh===c?(a=a.clone(),c={},av(c,KWa,f[0]),a.Oc(c)):Jd===c?(a=a.clone(),c={},cv(c,nsa,pB(f)),a.Oc(c)):kh===c&&a.D.getType()==4&&(a=a.clone(),a.Oc({flds_f:{fres_frt:4,vf_vdid:f[0]}})));return a};
mrf.prototype.D=X(1938,function(a,c,e,f){if(L(a.J,dWg)&&!this.F.remove(a.O))throw Vm("RJ").Ea;this.H.D(a,c,e,f)});
prf.prototype.D=X(1937,function(a,c,e,f){var g=Ym();if(a.D&&a.R!=null){var h=a.H,k=a.R;var l=new mWg;if(k!=null){var p=new eWg;k=vr(k);p=Mq(p,1,k);p=Sp(p);kq(l,eWg,6,p)}h&&(h=rWg(h.D),kq(l,ZQ,3,h));tWg();h=new nWg;l=Sp(l);l=kq(h,mWg,1,l);l=Sp(l);g.add(new XVg(oWg,l))}l=a.D;h=yWg(l?$Vg:aWg,a.W,a.V);if(k=a.H){p=k.J;var q=new kWg;var u=rWg(k.F);q=kq(q,ZQ,1,u);k=rWg(k.H);k=kq(q,ZQ,2,k);p&&(q=rWg(p.F),q=kq(k,ZQ,3,q),u=rWg(p.H),q=kq(q,ZQ,4,u),Lq(q,5,p.D));p=Sp(k)}else p=lWg();h=kq(h,kWg,3,p);p=(new wWg).fd(a.O);
k=a.J.F();p=Sq(p,5,k);k=a.ma;k!=null&&p.jy(k);if(q=a.ea)k=new jWg,q=IUg(q.D),k=Nq(k,1,q),k=Sp(k),kq(p,jWg,6,k);p=Sp(p);h=kq(h,wWg,4,p);l&&(p=new vWg,l=Rq(p,2,l.F).We(l.D),l=Sp(l),kq(h,vWg,2,l));l=Sp(h);g.add(new XVg(hWg,l));f=bXg(f,g);g=this.F;l=g.F;a=SVg(TVg(new VVg,zkb()),a.F);Fo(c);a.D=c;Fo(f);a.F=f;l.call(g,TVg(a,e).oa())});Vqf.prototype.D=X(1936,x("R"));xWg.prototype.jy=X(1935,function(a){return Sq(this,1,a)});wWg.prototype.jy=X(1934,function(a){return Sq(this,4,a)});
uZe.prototype.D=X(1933,function(a){var c=this.H;tL(c)?a=Number.MAX_VALUE:yYe(c)?(c=uL(c),a=(a=c.R.nYa(a))?c.D.ii(a):null):a=0;return a?this.F.gt(a):600});nL.prototype.nYa=X(1932,function(a){var c=ETe(this.R,a);c||(c=(a=hTe(this.D,a))?a.D:null);return c?c.Sg().Jb():null});ZUe.prototype.nYa=X(1931,function(){return this.F.pF()});iwe.prototype.H=X(1930,function(){return RWg(this)!=-1});Uge.prototype.gt=X(1929,function(a){return this.Yu(a/YA(this.H))});Jnd.prototype.b9=X(1928,B(null));
yde.prototype.b9=X(1927,function(a){return new SWg(this,a)});Jnd.prototype.m_=X(1926,function(a,c,e,f,g,h,k,l,p,q,u){return new fXg(this,a,c,e,this.Da,f,!1,g,h,k,l,p,q,u)});yde.prototype.m_=X(1925,function(a,c,e,f,g,h,k,l,p,q,u){return new gXg(this,a,c,e,this.Da,f,g,h,k,l,p,u)});Qlb.prototype.FL=X(1924,function(){this.F?this.F.FL():(this.H=!0,Ulb(this))});function hXg(a,c,e){var f=a.get(c);return f!=null?f:a.put(c,e)}function iXg(a){var c=new bn;Wgb(c,a);Tm(c,Error(c));return c}
function jXg(a){for(var c=0,e=0;e<a.length;++e)c=31*c+a.charCodeAt(e)>>>0;return c}function kXg(a){var c=1;a=a.split(":");for(var e=[];c>0&&a.length;)e.push(a.shift()),c--;a.length&&e.push(a.join(":"));return e}function bR(a,c){return(c||document).querySelectorAll("."+a)}function lXg(a){var c=[];fzb(a,c,!1);return c.join("")}function mXg(a){try{var c=a&&a.activeElement;return c&&c.nodeName?c:null}catch(e){return null}}
function nXg(a,c,e){for(var f=0,g=a.length;f<g;){var h=(f+g|0)>>1,k=e.Kq(a[h]);k=co(c,k);if(k==0)return h;k>0?f=h+1|0:g=h}return-1-f|0}function oXg(a,c){if(c)if(a.length==0)a=Rt;else{for(var e=Ut(),f=0;f<a.length;f=f+1|0){var g=a[f];c.haa(g)&&Vt(e,g)}a=Yt(e)}else a=ru(a);return a}function pXg(a){if(It(a))return a;for(var c=+a[0]|0,e=1,f=1;f<a.length;f=f+1|0){var g=+a[f]|0;g!=c&&(a[e]=g,e=e+1|0,c=g)}a.length=e;return a}
function qXg(a){for(var c=[],e=0;e<a.length;e=e+1|0)c.push(a[e].yb());return c}function rXg(a){for(var c=[],e=0;e<a.length;e=e+1|0)Lu(a[e])===Bj?c.push(sXg(a[e])):Lu(a[e])===Gc?c.push(rXg(a[e])):c.push(a[e]);return c}function sXg(a){for(var c={},e=Qu(a),f=0;f<e.length;f++){var g=e[f];if(FDb(a,g))cv(c,g,sXg(a[g]));else if(Lu(a[g])===Gc)bv(c,g,rXg(a[g]));else{var h=a[g];c[g]=h!=null?h:null}}return c}function tXg(a,c){KFb();qHb.call(this,c,a);this.va={}}H(tXg,qHb);tXg.prototype.za=x(Ul);
function uXg(a,c){KFb();var e=new tXg(Pu(a),c);c=Qu(a);for(var f={},g=0;g<c.length;f={W9a:void 0},g=g+1|0)f.W9a=c[g],xw(a[f.W9a],function(h){return function(k){Ru(e.va,h.W9a,vHb(k));rHb(e)}}(f),function(h){return function(k){Ru(e.va,h.W9a,wHb(k));sHb(e,k)}}(f));Pu(a)==0&&e.callback(e.va);return e}function vXg(a,c){xw(a,function(e){c.callback(e)},function(e){c.Ad(e)})}function wXg(a){var c=new Ww;vXg(a,c);return c}function xXg(a,c){return RKb(c.split(a))}var yXg;
function zXg(){zXg=r();yXg=RegExp("\\|")}function AXg(a,c,e,f){for(var g=null,h=0;h<c.length;h++){var k=c[h],l=nz(a.F,k);if(l==null||!Gn(!0,a.getValue(l))){var p=e(a.getValue(k),k);p!=null&&(g||(g={}),dv(g,k,p),l!=null&&(g[l]=!1))}}c=a.jl();for(e=0;e<c.length;e++)if(h=c[e],k=nz(a.F,h),k==null||!Gn(!0,a.getValue(k)))if(l=JVb(a,h))if(l=f(l))g||(g={}),cv(g,h,l),k!=null&&(g[k]=!1);return g}
function BXg(a,c){a:{a=a.D;for(var e=0;e<a.length;e++){var f=a[e];if(Nn(f.getType(),c))break a}throw Vm("oe`"+M(c)).Ea;}return f.get()}var CXg=mXb("ONLY_CONCRETE",3,!1,!1,!0),DXg=mXb("ONLY_CONCRETE_AND_DEFINED",4,!0,!1,!0);function EXg(a,c,e){a.D[c]=e;return a}var FXg=[Hl];function GXg(a,c){j3b();a=e3b(fi,O(a),c);return q3b(a)}function cR(a,c){j3b();a=e3b(pk,O(a),c);return q3b(a)}function HXg(a){return XA(WA(),a.D.V)}
function IXg(a){qB();var c={ps_ls:1,ps_sa:0,ps_sb:0,ps_ifl:0,ps_il:0};!0!==a&&(a=(D3b(),G3b).Gb,c.ps_hd=a);CYb(c,a5b,!1,!0);return c}function JXg(a){return a.J==(s6b(),u6b).Gb&&a.O==(s6b(),v6b).Gb&&a.H==(s6b(),w6b).Gb&&a.D==(s6b(),x6b).Gb&&a.R==(s6b(),y6b).Gb}function KXg(a){return Math.max(0,XA(WA(),M8b(a),!0))}
function LXg(a,c,e){if(e&&(a.R==0||a.O==0||c.R==0||c.O==0))throw en("Ef`"+M(a)+"`"+M(c)).Ea;var f=Math.max(a.D,c.D),g=Math.max(a.F,c.F),h=Math.min(a.J,c.J)-f|0;a=Math.min(a.H,c.H)-g|0;e=e?1:0;return h<e||a<e||h==0&&a==0?null:new GB(f,g,h,a)}
function MXg(a,c,e){var f=LXg(a,c,e);if(!f||a.Va(c))return[];c=[];if(e)a.D<f.D&&(e=new GB(a.D,f.F,f.D-a.D|0,f.O),c.push(e)),a.J>f.J&&(e=new GB(f.J,f.F,a.J-f.J|0,f.O),c.push(e)),a.F<f.F&&(e=new GB(a.D,a.F,a.R,f.F-a.F|0),c.push(e)),a.H>f.H&&(f=new GB(a.D,f.H,a.R,a.H-f.H|0),c.push(f));else for(a=cxf(a,!1),e=0;e<a.length;e++){var g=a[e];g=new GB(g.F,g.D,fM(g)?0:1,fM(g)?1:0);LXg(g,f,!1)||c.push(g)}return c}function NXg(a){return new GB(a.D,a.F,1,1)}
function OXg(a,c,e){return(a=a.yn(c))?a.D.get(e):null}function PXg(a,c,e,f){var g={},h;for(h in a)if(c.D(h)){var k=a[h].slice(e,f+1|0);LAb(k)||Ru(g,h,k)}return g}function QXg(a,c,e){for(var f in a){var g=a[f],h=g.zd().getType();Ot(EXb,h)&&e.D(h)&&Ru(c,f,g)}}function RXg(a){this.H=a}H(RXg,K);RXg.prototype.Yc=function(){return this.H.Yc()};RXg.prototype.D=function(a){return this.H.get(a)};RXg.prototype.F=function(a,c){return A$b(this.H,a,c)};
function SXg(a,c,e,f){var g=a.D.get(c);if(g)return g;g=a.D.Yc();c=$Tb(g,c,!0);c<0&&(c=-c-(VZb(a.O)?1:2)|0);if(g[c]!=null&&a.D.get(+g[c]|0))return a.D.get(+g[c]|0);if(!0===e&&a.F)return a.F;if(!0===f&&a.H)return a.H;var h;return new QB((h=a.J,h()))}function TXg(a,c,e,f,g,h,k){var l=Ut();c=Ifc(c);c.insert(0,g);for(g=0;g<a.length;g++){var p=a[g];Vt(l,Mfc(new RXg(p.D),p.getType(),e,c,h,k,null,null,null,null,null,null,f))}return Yt(l)}
function UXg(a,c,e,f,g,h){h||(h=new yfc);var k=a.Xa();g||(g=O(k.length-1|0));if(f>g.yb())return UQ("");k=Cn(k,f<0?0:f,g.yb()+1|0);var l=TXg(a.J,c,e,h,a.Xa(),f,g.yb());c=TXg(a.V,c,e,h,a.Xa(),f,g.yb());e=a.O.slice(f,g.yb()+1|0);var p=a.W.slice(f,g.yb()+1|0),q=PXg(a.F,h,f,g.yb());f=PXg(a.ea,h,f,g.yb());var u={},w=a.D;zfc(q,h,function(C){C in w&&Ru(u,C,w[C])});zfc(f,h,function(C){C=C.D;C in w&&Ru(u,C,w[C])});QXg(w,u,h);h={};for(var y in a.H){g=a.H[y];var z={},A;for(A in g)A in u&&EDb(z,A,g[A]);Wu(z)||
cv(h,y,z)}return new WB(k,l,c,e,p,q,u,Xu(a.R),f,h)}function VXg(a,c){return DWg(c,a,0,!1)}function WXg(a,c,e){return c.getType()==0?Bhc(a,c.D,e):c.getType()==6?a.Dd(c.getId()):null}var XXg=[kd,md,nd,od];function dR(a,c){return pEb(c,"docs-api-keys")[a]}function YXg(a,c){this.D=!1;this.F=a;this.D=c}H(YXg,K);function ZXg(a,c,e,f,g,h){eD.call(this,qYa,h,g);gD(this,"di",a);gD(this,"dt",c);gD(this,"ibt",e);gD(this,"iba",f)}H(ZXg,eD);
function $Xg(a){if(a.D.length==0)throw vn("Oi").Ea;for(var c=iu(a.D),e=0;e<c.length;e++)for(var f=c[e].F,g=0;g<f.length;g++)f[g].ARa();a.D.length==1?(e=a.D[0],a.R=new tBc(e.Rn(),e.D),a.F.push(e),a.D=[],FBc(a,5)):(Xt(a.F,a.D),a.replace(a.F,[]));xBc(a,null);return c}
function aYg(a,c){if(a.D.length==0)return[];var e=[],f=iu(a.D[0].Vf()),g=a.F.length;c=new sD([f.shift()],c.requestId,c.sessionId,[]);a.F.push(c);Mt(f)||(f=new sD(f,a.D[0].Rn(),a.D[0].D,a.D[0].F),e.push(f),f=CBc(a)?CBc(a).yb():-1,g<=f&&DBc(a,O(f+1|0)));for(g=1;g<a.D.length;g=g+1|0)e.push(a.D[g]);a.replace(a.F,e);xBc(a,null);return[c]}function bYg(a,c,e){this.F=a;this.D=c;this.H=e}H(bYg,K);bYg.prototype.Df=x("F");bYg.prototype.getSelection=x("H");
function cYg(a,c){if(L(c,0))return new sD([],SDc(a),a.Ja,[]);if(c===1)return c=a.H.shift(),new sD([c],SDc(a),a.Ja,[]);c=new sD(a.H,SDc(a),a.Ja,a.R);a.R.forEach(function(e){e.ARa()});a.R=[];a.H=[];return c}function dYg(a,c){if(!0!==c&&XFc(a))throw en("Lj").Ea;return Xu(a.va)}function eYg(){}H(eYg,K);function fYg(a,c){this.F=a;this.D=c}H(fYg,K);fYg.prototype.getType=x("F");
function gYg(a){for(var c=zm.apply(1,arguments),e={},f=0;f<a.length;f++){var g=a[f],h=g.D;g=g.getType();e[g]||Su(e,g,[]);g=e[g];h=h.getValue();g.push(h)}for(f=0;f<c.length&&c[f]!=null;f=f+2|0)if(h=e[c[f].yb()]){g=0;for(var k=h.length;g<k;g=g+1|0){var l=c[f+1|0],p=h[g];if(p!=null&&(l=l(p),l!=null))return l}}return null}
function hYg(a,c,e){var f=!!a.F[c],g=f?a.F[c].D:null;if(f&&!g){var h=bx();a.F[c].F.addCallback(function(k){try{var l=e.Kq(k);l&&xw(l,function(q){h.callback(q)},function(q){h.Ad(q)})}catch(q){var p=Zm(q);if(an(p))h.Ad(p);else throw p.Ea;}});return h}return e.Kq(g?g:c)}function iYg(a,c,e){var f=M(a.V)+a.va++;a=a.F;var g=new eYg;g.F=c;g.H=e;Ru(a,f,g);return f}function eR(a,c){this.F=a;this.D=c}H(eR,K);eR.prototype.getMimeType=x("F");eR.prototype.getData=x("D");eR.prototype.yK=G(424);
function jYg(){}H(jYg,bn);function kYg(a){var c=new jYg;Um(c,""+a);Tm(c,Error(c));return c}function lYg(a,c){if($Cb(a.W,c)<0)throw kYg(1).Ea;}function mYg(a,c){var e=new jYg;Um(e,c?c:""+a);Tm(e,Error(e));return e}function nYg(a,c){if(c){if(!No(c,a.V))throw mYg(2,"Foreign handle.").Ea;if(a.H[c]==null&&!a.F[c])throw mYg(2,"Handle not active.").Ea;}}function oYg(a,c,e,f,g,h){this.D=0;this.F=a;this.H=c||"";this.D=e;this.O=f;this.R=g;this.J=h}H(oYg,K);oYg.prototype.getData=x("O");oYg.prototype.Fq=x("R");
function pYg(){}H(pYg,K);function qYg(a,c,e,f){if(e==0)return c||null;if(c==null)return f(c,null);a=a.F[c];var g=a.D[e];g==null&&(g=f(c,a.F),a.D[e]=g);return g}function rYg(a,c){a=a.H[c];if(!a)throw kYg(1).Ea;return a}function sYg(a,c){var e=bx();yw(a,function(f){c&&c();e.Ad(f)});a.addCallback(function(f){c&&c();e.callback(f)});return e}function tYg(a,c,e){if(!a.F[c]){var f=a.F,g=new pYg;g.F=e||null;g.D=[];Ru(f,c,g);a.F[c].D[0]=c}return c}function uYg(a,c){if(c!=null&&!a.F[c])throw kYg(2).Ea;}
function vYg(a){for(var c=[],e=0;e<a.length;e=e+1|0)c.push(a[e].F);return c}function wYg(a,c){if(L(c,a.J))return a.D.Kta();if(!(c in a.O)){var e=a.O,f=a.D.Kta();Ru(e,c,f)}return a.O[c]}function xYg(a,c,e){if(c==null)return!1;c=!!QNc.exec(c)||!!RNc.exec(c);a=Ot(wYg(a,e),vna);return c&&a}function yYg(a){return a?Co(a)||Bp&&(a==="\u200b<br>"||a==="\u200b"||a===Vba||a==='<meta charset="utf-8">\u200b'||a==='<meta charset="utf-8"><br>\u200b'||a==='<meta charset="utf-8">\u200b<br>'):!0}
function zYg(a,c){return a.R.Ha(Afg)?c?a.D.getData(yna).transform(function(e){return L(c,e)}):dx(!0):dx(!1)}function AYg(a){return a==null?null:(a=SNc.exec(a.length<4096?a:Cn(a,0,4096)))&&a.length>1?a[1]:null}function BYg(a,c,e){if(!c)return dx(!0);if(yYg(e))return zYg(a,c);e=AYg(e);return e==null?zYg(a,c):dx(L(c,e))}function CYg(a,c,e,f){return Aw(BYg(a,e,f),function(g){return g?a.D.getData(c):dx(null)}).transform(function(g){return new eR(c,g)})}
function DYg(a,c,e,f,g){var h=new eR(e,null);return Aw(a.D.getData(e),function(k){if(k==null)return dx(h);var l=g(k);return yYg(l)||xYg(a,l,c)?dx(h):BYg(a,f,l).transform(function(p){return p?new eR(e,k):h})})}function EYg(a){if(a==null)return"";if(!Tn(a))throw en("wk").Ea;return a}function FYg(a,c){a.D.setData(ol,c);L(a.ea,0)&&!a.D.l6a(pl)&&a.D.setData(pl,a.wa.convert(c))}
function GYg(a,c,e){if(a=a.Lb(c)){c=a.Ng();var f=!Ko(c,zba);e&&!f?a.Nr((Ox(),VJb),Cn(c,0,c.length-4|0)):!e&&f&&a.Nr((Ox(),VJb),M(c)+zba)}}var HYg={Arial:YPg,"Comic Sans MS":YPg,"Courier New":c5a,Georgia:"serif",Impact:YPg,"Times New Roman":"serif","Trebuchet MS":YPg,Verdana:YPg},IYg={serif:Ika,"sans-serif":Ka,cursive:Fda,fantasy:Fda,monospace:Mda};function JYg(){this.D=0}H(JYg,Rm);function KYg(a,c){var e=new JYg;e.H=a;e.D=c;return e}var LYg=KYg(aca,0),MYg=KYg(hga,1),NYg=KYg(hla,2);
function OYg(){}H(OYg,gw);function PYg(a){switch(a){case Gea:case Hea:return LYg;case Iea:case Jea:return MYg;case Kea:case Lea:return NYg;default:throw Vm("Uo`"+M(po(a,qD))).Ea;}}function QYg(a,c){var e={};Iv(c,function(f,g){g.Go()&&g.getValue()&&(f=g.getValue(),Ru(e,f,a.H[f].D))});return e}
function RYg(a,c){for(var e={},f=0;f<a.length;f=f+1|0){var g=a[f].F;var h=a[f].D;rD();h=kBc(h,!1);cv(e,g,h)}a={};a:{switch(c.ordinal()){case 1:c="photo_info";break a;case 2:case 0:c="media_info";break a}throw Vm("To`"+M(c)).Ea;}cv(a,c,e);return a}function SYg(a,c){a.za=Ur(c);return a}function TYg(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;default:throw Vm("Xo`"+a).Ea;}}
function UYg(a,c,e,f,g){var h=a.H,k=new OYg;Fo(e);k.D=e;k.H=f;k.F=g;Ru(h,c,k);e=a.F[c];for(f=0;f<e.length;f=f+1|0)e[f].callback(c);Uu(a.F,c)}function VYg(a,c,e){var f={};av(f,"original_media_id",c);av(f,"blob_transport_failure_type",e);c=en("Vo");a.Ec(c,f,null)}function fR(a){lw.call(this,a,null);this.D=a;Tm(this,Error(this))}H(fR,lw);function WYg(){}
function XYg(a){switch(a){case 1:return Ol;case 2:return Gtg;case 3:return Dtg;case 4:return Ctg;case 5:return Dag;case 6:return Eag}throw Vm("Wo`"+M(po(a,WYg))).Ea;}function YYg(a,c,e){e=XYg(e);VYg(a.V,c,e);for(var f=a.F[c],g=0;g<f.length;g=g+1|0)f[g].Ad(new fR(e));Uu(a.F,c)}function ZYg(a,c,e){for(var f=0;f<c.length;f=f+1|0)YYg(a,c[f],e)}
function $Yg(a,c,e,f,g,h,k){At(e.length>0,"So");var l=vYg(e),p=g.qh;a:{switch(f.ordinal()){case 1:var q="/copyimages";break a;case 2:case 0:q="/copymedias";break a}throw Vm("To`"+M(f)).Ea;}c=yF(zF(p.call(g,q),Wh,c),2);h&&k&&SYg(c,{"X-Goog-Drive-Resource-Keys":M(k)+"/"+M(h)});XF(c,RYg(e,f));wF(xF(c,function(u){u=u.Nd();if(mqg in u)ZYg(a,l,TYg(u.errorType));else for(var w=0;w<l.length;w=w+1|0){var y=l[w];if(y in u)switch(f.ordinal()){case 1:UYg(a,y,u[y],null,null);break;case 2:case 0:var z=u[y];if(mqg in
z){var A=void 0;try{A=TYg(so(z.errorType))}catch(C){if(z=Zm(C),tn(z))A=1;else throw z.Ea;}YYg(a,y,A)}else UYg(a,y,z.id,z.sizeBytes,z.changelogCount)}else YYg(a,y,1)}}),function(){ZYg(a,l,1)},!1).Kh()}
function aZg(a,c,e){At(c.every(function(C){return L(PYg(C.D.D),e)}),"Po");for(var f=Lv(a.J,"docs-cmbs"),g=[],h={},k=qu(),l=0;l<c.length;l=l+1|0){var p=c[l],q=p.F,u=a.H[q];u&&u.D?Ev(h,q,dx(q)):CF(a.W,0)?I6c(q)?Ev(h,q,fx(rw("Qo"))):(q=p.D.F,q=q==null?"standalone_media_parent_doc_id":q,k.contains(q)||k.Eh(q,[]),xu(k.get(q),p)):Ev(h,q,fx(rw("Ro")))}c=k.np();for(l=0;l<c.length;l=l+1|0){p=k.get(c[l]);for(q=0;q<p.length;q=q+1|0){u=p[q];var w=u.D.F,y=u.D.J,z=u.F,A=bx();Ru(h,z,A);a.F[z]?a.F[z].push(A):(g.push(u),
Ev(a.F,z,[A]),f>0&&g.length==f&&($Yg(a,a.O,g.slice(),e,a.R,y,w),zu(g)))}Mt(g)||(p=g[0],$Yg(a,a.O,g,e,a.R,p.D.J,p.D.F),zu(g))}return h}function bZg(a,c){var e=oXg(c,Mzb(function(g){return L(PYg(g.D.D),NYg)}));ut(a.J.Ha("docs-eiedv")||Mt(e),"No");e=aZg(a,e,NYg);var f=oXg(c,Mzb(function(g){return L(PYg(g.D.D),LYg)}));ut(a.J.Ha("docs-eieda")||Mt(f),"Oo");f=aZg(a,f,LYg);c=oXg(c,Mzb(function(g){return L(PYg(g.D.D),MYg)}));a=aZg(a,c,MYg);return tFb(tFb(tFb(hw(),e),f),a).oa()}
function cZg(){this.Ua=0;this.D=!1}H(cZg,K);function dZg(a){a.Da=null;a.Za=null;a.Ca=null;a.F=null;a.Sa=null;a.Ra=null;a.W=null;a.ea=null;a.J=null;a.ma=null;a.R=null;a.O=null;a.V=null;a.va=null;a.wa=null;a.za=null;a.Ja=null;a.Fa=null;a.Na=null;a.Ua=0;a.H=null;a.D=!1}function eZg(){cZg.call(this)}H(eZg,cZg);
eZg.prototype.oa=function(){return new qBc(this.ib,Ct(this.Da),this.Za,this.Ca,Ct(this.F),this.Sa,Ct(this.Ra),this.W,this.ea,this.J,this.ma,this.R,this.O,this.V,this.va,this.wa,this.za,this.Ja,this.Fa,this.Na,!0,Ct(this.H),this.D,this.ob)};
function fZg(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F,I,J,N,W){this.V=0;this.J=!1;for(var Y=Wn([k,l,p,q,u,z],Rn,Tn),aa=!1,fa=0;fa<Y.length;fa++)if(Y[fa]!=null){if(aa)throw Vm("Ii").Ea;aa=!0}z!=null&&A!=null&&C==null&&(C="2");At(z==null&&A==null||z!=null&&A!=null,"op");At(F==null||E!=null,"Ei");this.Ua=a;this.W=c;this.O=e;this.ea=f;this.H=g;this.R=h;this.Da=k;this.Fa=l;this.va=p;this.Ja=q;this.za=u;this.wa=w;this.Ca=y;this.Na=z;this.Ra=A;this.Sa=C;this.ib=E;this.Za=F;this.ob=I;this.V=J;this.ma=N;this.J=
W;this.D=bx();this.F=bx();h===Hoa||this.F.callback(e);h===gh?this.D.Ad(null):!c||this.D.callback(c)}H(fZg,K);D=fZg.prototype;D.mG=x(cc);D.getUrl=x("W");D.LXa=G(329);D.P4b=x("D");D.zN=x("O");D.JXa=G(331);D.T5a=G(335);D.HXa=G(337);D.WP=x("H");D.IXa=G(339);D.getStatus=x("R");D.vja=G(333);D.b$=x(Xa);D.Cfa=x(ib);D.uNa=x(Ul);D.toa=x(vb);D.vNa=x(jm);D.Hwb=x(dm);D.Iwb=x(Na);D.Kya=x(Bb);D.Jwb=x(Lb);D.I6a=G(341);D.R5b=x(Rh);D.S5b=x(gc);D.Q6a=x(Aj);D.KXa=G(343);D.uJ=x(Vi);D.M9a=G(345);
D.clone=function(){return new fZg(this.Ua,this.W,this.O,this.ea,this.H,this.R,this.Da,this.Fa,this.va,this.Ja,this.za,this.wa,this.Ca,this.Na,this.Ra,this.Sa,this.ib,this.Za,this.ob,this.V,this.ma,this.J)};D.Kwb=function(){return oBc(this)};D.VOa=function(){return nBc(this)};D.S9b=function(){return!!this.Q6a()};function gZg(){cZg.call(this)}H(gZg,cZg);
gZg.prototype.oa=function(){return new fZg(Ct(this.Da),this.Za,this.Ca,Ct(this.F),this.Sa,Ct(this.Ra),this.W,this.ea,this.J,this.ma,this.R,this.O,this.V,this.va,this.wa,this.za,this.Ja,this.Fa,this.Na,this.Ua,Ct(this.H),this.D)};function hZg(a,c,e,f,g,h){lw.call(this,h,null);this.ea=a;this.O=c;this.D=e;this.H=f;this.W=g;Tm(this,Error(this))}H(hZg,lw);D=hZg.prototype;D.getType=x(Pg);D.M4=G(598);D.kF=G(599);D.RB=x("H");D.Boa=G(600);
function iZg(a,c,e,f,g){a=new hZg(a,c,e,f,g,null);Tm(a,Error(a));return a}function jZg(a,c,e){var f=a.YS(c);if(f){var g=Oo(c,(So(),Ro));HCb(a.D,g);for(var h=uF(a).get(Lfb),k=0;k<h.length;k=k+1|0)if(L(g,h[k].value)){h.splice(k,1);break}e&&zdd(a,[],[c])}return f}
function kZg(a,c,e,f){for(var g=a.WXa(),h=[],k={},l=0;l<c.length;l++){var p=c[l];if(p){var q=p.toString();g[q]&&(!0!==e||q in k||(h.push(p),k[q]=!0),p=g[q],q=p.toString());q in k||(h.push(p),k[q]=!0);if(!0===e&&(q=a.jNa(p),q!=null&&q.Zf()==0))for(var u=0;u<q.ve();u=u+1|0)for(var w=0;w<q.Ge();w=w+1|0){var y=new EB(p.D+u|0,p.F+w|0),z=y.toString();z in k||(h.push(y),k[z]=!0)}}}!0===f&&du(h,function(A,C){var E=A.D,F=C.D;if(E!=F)C=E<F?-1:1;else if(A=A.F,C=C.F,A!=C)C=A<C?-1:1;else throw en("zf").Ea;return C});
return h}function lZg(a,c,e,f){if(!bxf(new GB(0,0,a.Id(),a.ae()),c))throw en("Qp`"+M(c)).Ea;return kZg(a,HB(c),e,f)}
function mZg(a,c){var e=c.clone();c=HB(c);for(var f={};c.length>0;){var g=c.shift();if(!(g.toString()in f)){for(var h=g=lZg(a,NXg(g),!0,null),k=0;k<h.length;k++)f[h[k].toString()]=!0;for(h=0;h<g.length;h++){var l=g[h];if(!e.contains(l)){k=e;if(k.contains(l))k=k.clone();else{var p=Math.min(k.D,l.D),q=Math.min(k.F,l.F);k=new GB(p,q,Math.max(k.J-1|0,l.D)-p+1|0,Math.max(k.H-1|0,l.F)-q+1|0)}e=MXg(k,e,!0);for(l=0;l<e.length;l++)for(p=HB(e[l]),q=0;q<p.length;q++){var u=p[q];u.toString()in f||c.push(u)}e=
k}}}}return e}function nZg(a,c,e){this.F=this.sourceIndex=0;this.D=!1;this.sourceIndex=a;this.F=c;this.D=e!=null&&!0===e}H(nZg,K);function oZg(a,c,e){this.D=a;this.J=c;this.O=e}H(oZg,tYc);
oZg.prototype.H=function(){var a=this.J.i7a(),c=this.J.r7a();if(this.J.Zac()){a=this.J.i7a();for(var e=this.J.Fxb(),f=this.J.Exb(),g=this.J.uxb(),h=this.J.vxb(),k=this.J.Ylb(),l=this.J.txb(),p=k.length,q=Ln(Math.ceil(f/g)),u=Ln(Math.ceil(e/h)),w=iu(k),y=iu(l),z=0;z<(Math.imul(q,u)-1|0);z=z+1|0)Xt(k,w),Xt(l,y);if(g<f)for(k=0;k<h;k=k+1|0)for(l=g;l<f;l=l+1|0)(u=a[k][l%g|0])&&(u=new nZg(u.sourceIndex+Math.imul(p,l/g|0)|0,u.F+Math.imul(p,l/g|0)|0,null)),a[k].push(u);else if(g>f)for(k=0;k<h;k=k+1|0)for(l=
f;l<g;l=l+1|0)a[k].pop();if(h<e)for(g=h;g<e;g=g+1|0)for(a.push([]),k=0;k<f;k=k+1|0)(l=a[g%h|0][k])&&(l=new nZg(l.sourceIndex+Math.imul(Math.imul(p,q),g/h|0)|0,l.F+Math.imul(Math.imul(p,q),g/h|0)|0,null)),a[g].push(l);else if(h>e)for(;e<h;e=e+1|0)a.pop()}else h=(this.J.H6b()-c.D|0)-this.J.vxb()|0,h<0&&jF(this,this.O.iGb(-h|0,this.J.jva(),null)),h=(this.J.G6b()-c.F|0)-this.J.uxb()|0,h<0&&jF(this,this.O.hGb(-h|0,this.J.jva(),null));jF(this,this.O.kGb(this.J.Ylb(),this.J.txb(),a,this.J.xUb(),this.J.sbc(),
this.J.jva(),c))};function gR(a,c,e){return a.a9(c,e,null,null,null)}function pZg(a,c,e,f,g){return a.m_(c,e,f,!1,VQ(),null,g,null,null,null,null)}function qZg(a,c){for(var e=[],f=a.Js(wc),g=0;g<c.length;g++){var h=c[g];ew(h)==fw(h)&&mod(a,ew(h));var k=ew(h),l=Hu(f,k);for(l<0&&(l=-1-l|0);l<f.length&&(+f[l]|0)<=fw(h);){var p=(+f[l]|0)-1|0;p>=k&&e.push(new Yv(k,p));k=(+f[l]|0)+1|0;l=l+1|0}fw(h)>=k&&e.push(new Yv(k,fw(h)))}return e}function rZg(a){return oy((vA(),$Yb),a,"")}var sZg,tZg;
function uZg(a,c){return c in a.H?a.H[c]:a.D}function vZg(a,c,e){e=Lfc(e);for(var f=0;f<e.length;f++){var g=e[f].zd();L(a,MC(g))&&(c=Math.min(c,NC(g)))}return c}function wZg(a,c){var e=a.yn(ml);a=a.Xa();c=Ifc(c);c.insert(0,a);var f=e.D;e=e.D.Yc();for(var g=new LB,h=0;h<e.length;h=h+1|0){var k=+e[h]|0,l=f.get(k);g.set(k,l);var p=(h+1|0)<e.length?(+e[h+1|0]|0)-1|0:a.length-1|0;k=uZb(c,k+1|0,p);for(var q=0;q<k.length;q++){var u=k[q];(u+1|0)<=p&&g.set(u+1|0,l.dC())}}return g}
function xZg(a,c){var e={},f;for(f in a){var g={},h=a[f],k;for(k in h)k in c&&EDb(g,k,h[k]);Wu(g)||cv(e,f,g)}return e}function yZg(a,c){switch(uZg(a.O,c).ordinal()){case 1:return CXg;case 2:return DXg;default:return Vz}}
function zZg(a,c,e,f){if(!e)return null;c=c.D(a.getContext().ub().Aa(),a.J.D,f);f=yZg(a,c.getType());e=e.zd().Hb(f);c.Oc(e);if(Lo(c.getType(),ll)&&(e=a.getContext().ub().Aa(),c.O==1&&e.ld().bG(a.J.D))){a={tbls_pt:0};e=e.Wf();f=c.D.D.D;if(f.getType()==0)e=0;else{var g=f.J;f.D==1&&(g-=c.H?J8b(e):L8b(e));e=g}a.tbls_in=e;c.Oc(a)}return c}
function AZg(a,c,e){var f=a.V.D.paragraph;if(!f)return c?c.zd():null;if(!e||!c)return zZg(a,f,c,null);var g=MC(e);if(!g||!a.getContext().ub().Aa().wq(g))return zZg(a,f,c,null);var h=NC(e);f=f.D(a.getContext().ub().Aa(),a.J.D,O(h));c=c.zd().Hb(yZg(a,Jj));f.Oc(c);c=a.getContext().ub().Aa().Dd(g);if(!c||!L(g,a.va))return f;a=f.clone();e=gG(c,NC(e));e={ps_il:e.H,ps_ifl:e.R};CYb(e,(qB(),a5b),!1,!0);a.Oc(e);return a}
function BZg(a,c){var e=c.getType(),f=a.V.D[e];if(!f)return c;var g=c.D.map(function(l){return zZg(a,f,l,null)}),h=zZg(a,f,c.H,null),k=zZg(a,f,c.F,null);return AWg(e,c.J,g,h,k)}function CZg(a,c){for(var e=[],f=0;f<c.length;f++){var g=c[f];if(!(Lo(g.getType(),Mi)||Lo(g.getType(),Jj)||Lo(g.getType(),ml))){var h=e;g=BZg(a,g);h.push(g)}}return e}
function DZg(a,c,e){var f=MC(c),g=yZg(a,Mi);if(!f||a.getContext().ub().Aa().wq(f)){if(uZg(a.O,Mi).F)return c;c=c.Hb(g);e=dnc();e.Oc(c);return e}a=OC(c).Hb(g);e.Oc(a);e={ls_ts:e.xd()};c=c.clone();c.Oc(e);return c}
function EZg(a,c,e,f,g,h){var k=yZg(a,Mi);LC(c)&&e.Oc({ls_c:LC(c).Hb(k)});if(a.Na&&g)return e;g=MC(c);if(!g||!a.F.D[g])return dnc();var l=L(g,a.H),p=!a.R&&L(g,a.W);if(!l&&!p)return DZg(a,c,f);f={};k=OC(c).Hb(k);g=(L(g,a.H)?a.ib:a.Ib).yb();h=(h?NC(e):0)-g|0;h=Math.max(Math.min(8,NC(c)+h|0),0);if(!a.va)throw en("Kr").Ea;a=a.getContext().ub().Aa().Dd(a.va);if(!a)throw en("Lr").Ea;a=$fd(a.D,h).J.clone();a.Oc(k);cv(f,Ti,a.xd());f.ls_nest=h;e.Oc(f);return e}
function FZg(a,c,e,f){var g=a.getContext().ub().Aa(),h=a.J.D;e=(a.Da?a.Da:e).D(g,h,O(NC(f)));if(a.R)return g=c.D(g,h,null),a.va=MC(g),EZg(a,f,g,e,!0,!0);c=a.za&&L(MC(f),a.H);var k=!c&&a.Ca&&L(MC(f),a.W);return c||k?(g=g.getStyle(Mi,h+(c?-1:1)|0).clone(),a.va=MC(g),EZg(a,f,g,e,!1,!1)):DZg(a,f,e)}function GZg(){this.D=0;this.F=!1}H(GZg,Rm);function HZg(a,c,e){var f=new GZg;f.H=a;f.D=c;f.F=e;return f}var IZg=HZg("CONCRETE_DEFINED",0,!0),JZg=HZg("MERGE_RAW",2,!1),KZg=HZg("RAW",3,!1);
function LZg(a,c,e){Ru(a.D,c,e);return a}var MZg;function NZg(a){this.D={};this.H={};this.F=a}H(NZg,K);NZg.prototype.oa=function(){return new OZg(this)};function OZg(a){PZg();this.D=a.F;this.H=Xu(a.D);this.F=Xu(a.H)}H(OZg,K);function PZg(){PZg=r();tZg=(new NZg(KZg)).oa();sZg=(new NZg(IZg)).oa();MZg=(new NZg(JZg)).oa()}function QZg(a){this.D=a}H(QZg,K);D=QZg.prototype;D.lh=function(a,c){a=this.D.yn(a);return SXg(a,c,!1,!1).zd()};
D.Pm=function(a,c){c=JA(a)?(a=this.D.yn(a))?a.D.get(c):null:null;return c?c.zd():null};D.Pw=function(a){return(a=this.D.yn(a))?a.D.Yc():[]};D.IO=function(){return this.lh(Bh,0)};D.ho=function(){for(var a=[],c=this.D.J,e=0;e<c.length;e++){var f=a,g=a.length,h=c[e].getType();f[g]=h}return a};
function RZg(a,c){var e=new lpd(c),f=new QZg(a);if(!e.fib(0,a.Xa(),f))return a.Xa(),e;a=a.yn(id);if(!a)return e;a=a.D;for(var g=a.Yc(),h=0;h<g.length;h++){var k=g[h],l=a.get(k).zd();if(c.Ha(of)){var p=e,q=f;(l.Md(aqa)||l.Md(jqa))&&ppd(p,k,k,q)}else e.eib(k,k,f,l.xd())}return e}
function SZg(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F){this.D=a;this.Ca=this.za=this.R=this.Na=this.Ja=!1;this.F=c;this.V=f;this.Sa=g;this.Za=h;this.Eb=k;this.Ra=l;this.Kb=p;this.wb=q;this.Ub=u;this.J=e;this.Ja=!0===w;this.O=y?y:(PZg(),sZg);this.Fa=z;this.ob=A;this.Da=C;this.qc=E;this.Ua=F;a=this.F.J;c=L(this.O,(PZg(),tZg))?2:3;c=new LXb(c);for(e=0;e<a.length;e++){f=g=a[e].getType();a:{g=uZg(this.O,g);switch(g.ordinal()){case 0:case 1:case 2:g=3;break a;case 3:g=2;break a}throw Lx("Unknown state "+M(g)).Ea;
}EXg(c,f,g)}this.Qb=c.oa()}H(SZg,AG);
SZg.prototype.El=function(){var a=this.getContext().ub().Aa();this.Fa&&(this.F=this.Fa.za(this.F,this.Ra,this.J,this.qc));this.F.yn(id)&&(this.ma=RZg(this.F,this.getContext().lb()));var c=this.F.yn(Mi);if(c){var e=c.D,f=e.Yc();if(f.length!=0){var g=e.get(+f[0]|0).zd();if(this.H=MC(g))this.ib=O(vZg(this.H,NC(g),c));e=e.get(+f[f.length-1|0]|0).zd();if(this.W=MC(e))this.Ib=O(vZg(this.W,NC(e),c))}}if(c=!this.H)a:{c=this.F;if(e=c.yn(Mi))for(e=e.D,f=e.Yc(),g=0;g<f.length;g++){var h=f[g];if(!this.ma||!this.ma.bG(h))if(h=
e.get(h).zd(),h=MC(h),h!=null&&c.D[h]){c=!1;break a}}c=!0}this.Na=c;c=this.J.D;this.R=fG(a,c);this.za=!this.R&&c!=1&&fG(a,c-1|0);this.Ca=!this.R&&c<zA(a.Xa(),c)&&fG(a,c+1|0);a=this.F;c=CZg(this,a.J);f=a.yn(Jj);var k=a.yn(Mi);g=this.V.D.list;h=this.V.D.text;if(k&&h&&g){var l=f?f.D:MB();e=new LB;for(var p=k.D,q=new LB,u=pXg(qDb(l.Yc(),p.Yc())),w=0;w<u.length;w++){var y=u[w],z=p.get(y),A=z?z.zd():null;z=null;A&&(z=this.ma&&this.ma.bG(y)?A:FZg(this,g,h,A),q.set(y,z));(A=l.get(y))||(A=new QB(b5b()));z=
AZg(this,A,z);e.set(y,z)}p=k.H;l=null;p&&(l=FZg(this,g,h,p.zd()));p=k.F;k=null;p&&(k=FZg(this,g,h,p.zd()));this.ea=AWg(Mi,(Vmc(),Ymc),q,l,k);c.push(this.ea);g=f?AZg(this,f.H,l):null;f=f?AZg(this,f.F,k):null;e=AWg(Jj,(qB(),a5b),e,g,f);c.push(e)}else f&&(e=BZg(this,f),c.push(e));f=a.yn(ml);e=this.V.D.text;if(f)if(e)if(uZg(this.O,ml).F)e=BZg(this,f),c.push(e);else{g=a.Xa();f=Ifc(this.getContext().D);f.insert(0,g);g=wZg(a,this.getContext().D);h=new LB;q=g.Yc();for(k=0;k<q.length;k++)l=q[k],p=g.get(l),
w=oG(f,l),u=0,this.ea&&(w=this.ea.D.get(w)?this.ea.D.get(w):this.ea.F)&&(u=NC(w.zd())),h.set(l,zZg(this,e,p,O(u)));e=BWg(ml,(jB(),kB),h);c.push(e)}else c.push(f);e=CZg(this,a.V);g=a.D;f={};for(C in g){h=g[C].zd();if(Lo(h.getType(),Mi))if(q=h.getId(),L(q,this.H)&&(this.R||this.za)||L(q,this.W)&&this.Ca)h=null;else{k=$fd(h.D,0);p=l=!1;Kv(this.getContext().lb(),XNa)&&(p=k.getValue(Ooa));p||(l=bB(k));q=this.Sa.Dd(q,l);b:switch(k=this.O,(Mi in k.F?k.F.list:k.D).ordinal()){case 1:k=CXg;break b;case 2:k=
DXg;break b;default:k=Vz}h=h.Hb(k);q.Oc(h);h=q}else if(Lo(h.getType(),Xi))continue;h&&Ru(f,C,new inc(h,g[C].J))}var C=a.R;g=xZg(a.H,Ny(Qu(f)));C=new WB(a.Xa(),ru(c),ru(e),a.O,a.W,a.F,f,C,a.ea,g);return O(FD(this,this.getContext().m_(C,this.J,this.Za,this.Eb,this.Kb,this.wb,this.Ja,this.Ub,this.Qb,this.ob,this.Ua)).D)};function TZg(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F){return new SZg(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A,C,E,F)}
function UZg(a,c,e,f,g,h,k,l,p,q,u,w,y,z,A){this.D=a;this.V=c;this.J=e;this.H=f;this.O=g;this.ea=h;this.F=k;this.ma=l;this.W=p;this.va=q;this.Da=u?u:(PZg(),sZg);this.R=w;this.Ja=y;this.za=z;this.Ca=A}H(UZg,AG);
UZg.prototype.El=function(){var a=this.getContext().ub().hb(),c,e=null,f=[],g=a.getSelection();if(g.Qd){g=FD(this,HG(this.getContext(),g.D,!0,!0,null)).D;for(var h=0;h<g.length;h=h+1|0)f.push(tC(+g[h]|0));a=a.getSelection();a.Qd?c=tC(+g[0]|0):c=a.zc}else{h=g.zc.getType();c=g.zc;a=a.Bh();var k=this.getContext().ub().Aa();switch(h){case 4:a=a+1|0;break;case 1:e=SG(k,g);FD(this,new Rnd(this.getContext(),c.getId()));break;case 5:e=SG(k,g);FD(this,GG(this.getContext(),[new Yv(a,a)]));break;case 6:FD(this,
GG(this.getContext(),[new Yv(a,a)]));FD(this,new Rnd(this.getContext(),c.getId()));break;case 8:return O(0)}c=tC(a);f.push(c)}a=null;g=0;c=c.D;for(h=f.length-1|0;h>=0;h=h-1|0){k=f[h];a=TZg(this.getContext(),this.V,k,this.J,this.H,this.O,this.ea,this.F,this.ma,this.W,this.va,!1,this.Da,this.R,this.Ja,this.za,e,this.Ca);var l=FD(this,a).yb();c>=k.D&&(c=c+l|0,g=g+l|0)}a&&ED(this,BC(tC(c)),!0);return O(g)};UZg.prototype.Rh=x("V");
function VZg(a){var c={ts_un:a.D.ea,ts_un_i:a.getValue(keb)},e=a.getValue(Gl);MVb(e)?(e=e.xd(),cv(c,Gl,e)):av(c,Gl,e);e=nz(a.F,Gl);!e||dv(c,e,a.getValue(e));return c}function WZg(a,c){var e=a.D();a=c.xd();if(vz(c,e))for(var f in e)(e=nz(c.F,f))&&(a[e]=!0);return a}function XZg(a,c){c=c.F[0].D;a=a.ld().Kc(c);c=a.D;a=new xC(c-1|0,a.F,tC(c));return Gjc(a,null,null)}var YZg=0;function ZZg(){ZZg=r();$dd();YZg=0}function $Zg(a){return ew(a.getValue())}function a_g(a){return fw(a.getValue())}
function b_g(a){return a.O!==ml}function c_g(a,c){if(a.Qc()>0&&$Zg(c)<=a_g(a.Hc(a.Qc()-1|0)))throw en("Ls").Ea;Zdd.prototype.eb.call(a,c)}function d_g(a,c,e){ZZg();var f=O(YZg);a=new Yv(a,c);$dd();this.F=f;this.J=a;YZg=YZg+1|0;this.O=e?e:ml}H(d_g,Zdd);d_g.prototype.clone=function(){var a=this.getValue();return new d_g(Ln(a.start),Ln(a.end),null)};d_g.prototype.getType=x("O");d_g.prototype.eb=function(a){c_g(this,a)};
function e_g(a){switch(a.getType()){case ZQg:return a.R;case YQg:return a.R}throw en("Ps").Ea;}function f_g(a,c,e,f){ZZg();d_g.call(this,e,f,YQg);this.R=a}H(f_g,d_g);function g_g(a,c,e){ZZg();d_g.call(this,c,e,ZQg);this.R=a}H(g_g,d_g);function h_g(a,c){return a.D[c]}function i_g(a,c,e,f){this.D=a;this.R=!1;this.O=c;this.J=e;this.R=!0===f}H(i_g,BG);
i_g.prototype.H=function(){var a=this.getContext().ub().Aa(),c=a.Xa().slice(ew(this.J),fw(this.J));this.R&&(c=rZg(c));if(!L(c,this.O)){c={};for(var e=a.ho(),f=0;f<e.length;f=f+1|0){var g=e[f];if(!JA(g)&&!WZb(g)){var h=a.getStyle(g,ew(this.J));cv(c,g,h.Hb(Uz))}}e=this.R?qZg(a,[this.J]):[this.J];Mt(e)||jF(this,HG(this.getContext(),e,null,null,null));if(this.O.length>0){e=ew(this.J);a=a.Xa();for(f=xA(a);e<f&&!DA(a,e);)e=e+1|0;jF(this,Lnd(this.getContext(),this.O,tC(e),null,null));for(var k in c)jF(this,
new CG(this.getContext(),k,c[k],e,e+this.O.length-1|0,null))}}};function j_g(a,c,e){return new i_g(a,c,e,null)}function k_g(a,c,e){this.offsetTop=this.offsetLeft=this.D=0;this.D=a;this.offsetLeft=c;this.offsetTop=e}H(k_g,K);function l_g(a,c,e,f){var g=a.Xa();if(c){var h=c.Xa();L(g,h)}e&&(h=e.Xa(),L(g,h));this.D=a;this.H=c;this.J=e;this.F=f}H(l_g,K);function m_g(a,c,e){this.F=!1;this.H=a;this.D=c;this.J=e}H(m_g,tw);m_g.prototype.getId=x("H");m_g.prototype.Yr=x("D");m_g.prototype.hc=x("J");
m_g.prototype.toString=function(){return JSON.stringify({id:this.getId(),index:this.hc(),creationTime:this.Yr()})};function n_g(a,c){return L(a,c)?!0:a&&c?Eo(a.getId(),c.getId())&&a.hc()==c.hc()&&a.Yr()==c.Yr():!1}function o_g(a,c){return L(a,c)?!0:a&&c?$v(a.D,c.D)&&n_g(a.H,c.H):!1}
function p_g(a,c){if(o_g(a,c))return 0;var e=a.D,f=c.D;if(ew(e)!=ew(f))return ew(e)-ew(f)|0;if(fw(e)!=fw(f))return fw(e)-fw(f)|0;a=a.H;c=c.H;if(!a)return-1;if(!c)return 1;e=a.Yr();f=c.Yr();return e==null||f==null||L(e,f)?Lo(a.getId(),c.getId())?a.hc()-c.hc()|0:onb(a.getId(),c.getId()):e<f?-1:1}function q_g(a,c){return p_g(a,c)}function r_g(a,c,e){if(Mt(a))return-1;c=ZTb(a,c,!0,q_g);c<0&&(c=-c-1|0,e&&(c=c-1|0),c>=a.length&&(c=0),c<0&&(c=a.length-1|0));return c}
function s_g(a,c,e,f){this.F=!1;this.D=a;c!=null?this.H=new m_g(c,e,Ln(f)):this.H=null}H(s_g,tw);function t_g(a,c){this.F=a;this.D=c}H(t_g,K);function u_g(a,c,e){this.F=a;this.D=c;this.H=e}H(u_g,K);function v_g(a,c){if(!c)return-1;var e=r_g(a.D,c,!0);if(e<0)return-1;for(;e<a.D.length&&$v(a.D[e].D,c.D);){if(o_g(a.D[e],c))return e;e=e+1|0}return-1}function w_g(a,c,e){c=CC(fw(c)+1|0,ew(c));a=a.D.D(c,e);return a.Qd?mC(a.Qd):null}
function x_g(a){if(!a)return null;a=a.jg();for(var c=Lfc(a),e=0;e<c.length;e++){var f=c[e];if(Lo(a.getType(),Mi)&&(f=f.zd(),xod(),zod(f))){var g=LC(Ct(f)).Hb(Uz);g.c_tdai=null;f.Oc({ls_c:g})}}return a}function y_g(a){if(!a)return null;a=a.jg();for(var c=Lfc(a),e=0;e<c.length;e++){var f=c[e];if(Lo(a.getType(),zk)&&(f=f.zd())&&!f.O.jb()){var g={row_trid:(new Bnc(null)).xd()};f.Oc(g)}}return a}function z_g(a,c){return Obe(a,c,!0)>Nbe(a,c)}
function A_g(a,c){MI();var e=Hbe(a,c);c=e?e.yb():c;return c>zA(a.Xa(),0)?!1:LI(a,c).Vh().length>1}function B_g(a,c){MI();var e=c.D;if(e.length==0)return c=a.og(c.zc),A_g(a,c);c=ew(e[0]);e=fw(e[e.length-1|0]);if(!A_g(a,c)||!A_g(a,e))return!1;var f=Hbe(a,c);c=O(NI(a,f?f.yb():c));if(!c)return!1;f=Hbe(a,e);a=NI(a,f?f.yb():e);return c.yb()==a}function C_g(a,c){c=$F(a,c).Xp();return RG(a,c.ce)}function D_g(a){return EVg(a.Aa(),a.hb().getSelection())}
function E_g(a,c){var e=Wn([0],to,uo);CVg(a,c,function(f){switch(f){case 28:e[0]=e[0]+1|0;break;case 16:case 18:return!1}return!0});return e[0]}function F_g(a,c){if(mv().Ha(pf))return(a=a.ld().Kc(c))?a.Id():0;var e=Wn([0],to,uo);CVg(a,c,function(f){f==18&&(e[0]=e[0]+1|0);return!0});return e[0]}
function G_g(a,c,e){var f=a.Xa();ut(Lo(BA(f,c),"\u0010"),"gz");if(e)return a.ld().Kc(c).ae();var g=Wn([0],to,uo),h=Wn([0],to,uo);xfd(f.D,c,function(k){switch(k){case 18:case 17:g[0]=Math.max(g[0],h[0]);h[0]=0;break;case 28:h[0]=h[0]+1|0}return!0});return g[0]}function H_g(a,c){var e=EVg(a,c);return GVg(a,c,e)}function I_g(a){return H_g(a.Aa(),a.hb().getSelection())}
function J_g(a){if(a.ve()!=0&&a.D.H!=0)return a;var c=a.clone(),e={};a.ve()==0&&(e.cell_rs=1);a.D.H==0&&(e.cell_cs=1);c.Oc(e);return c}function K_g(a,c,e){if(e<0||e>=c.Id())return!1;c=NG(c,e);return a.getStyle(zk,c).ea.D}function L_g(a,c,e){var f=PG(c,e);c=QG(c,e);return a.slice(f+1|0,c-1|0)}function M_g(a,c){return qXg(YF(a,c).filter(function(e){return e!=null}).map(function(e){return O(e.ce)}))}function N_g(a,c){this.D=a;this.F=c}H(N_g,K);N_g.prototype.Cf=x("F");
function O_g(a,c){sx(a.V,en("yz`"+M(c)))}
function P_g(a,c,e,f){if(c==null)return!e&&f&&O_g(a,"clipData is null and the value of isExternalDocumentSlice is false"),e;if(!(c instanceof N_g))return!e&&f&&O_g(a,"clipData is not a KixClipData and the value of isExternalDocumentSlice is false"),e;if(c.D instanceof oYg)return(c=jXg(a.O.D)==c.D.D)&&f&&Co(a.O.D)&&O_g(a,"both documents have empty cosmo IDs and the value of isExternalDocumentSlice is "+e),!c;if(c.D instanceof l_g)return f&&O_g(a,"clipData is from the current document but the value of isExternalDocumentSlice is "+e),
!1;!e&&f&&O_g(a,"no additional information to distinguish clipData and the value of isExternalDocumentSlice is false");return e}function Q_g(a,c){this.F=a;this.D=c}H(Q_g,K);function R_g(a,c,e){a=a(c||Pze,e);return String(a)}function S_g(a,c,e,f){(f[c]||f.__default)(a,c,e)}var T_g=[],U_g=0;function V_g(a,c,e,f){T_g.push(S_g);T_g.push(a);T_g.push(c);T_g.push(e);T_g.push(f)}
function W_g(a,c,e){var f=qIe;c=c.D||(c.D=YHe(f.length));for(var g=!c.length||!1,h=0;h<f.length;h+=2){var k=f[h];if(g)c[h]=k;else if(c[h]!==k)break;var l=f[h+1];if(g||c[h+1]!==l)c[h+1]=l,V_g(a,k,l,e)}if(h<f.length||h<c.length){for(h=g=h;h<c.length;h+=2)zIe[c[h]]=c[h+1];for(h=g;h<f.length;h+=2)g=f[h],k=f[h+1],zIe[g]!==k&&V_g(a,g,k,e),c[h]=g,c[h+1]=k,delete zIe[g];XHe(c,f.length);for(var p in zIe)V_g(a,p,void 0,e),delete zIe[p]}a=U_g;U_g=e=T_g.length;for(p=a;p<e;p+=5)(0,T_g[p])(T_g[p+1],T_g[p+2],T_g[p+
3],T_g[p+4]);U_g=a;XHe(T_g,a);XHe(f,0)}function X_g(a,c,e,f){if(!c.H&&(c.H=!0,e&&e.length)){var g=c.D;if(g&&g.length){for(g=0;g<e.length;g+=2)AIe[e[g]]=g+1;c=c.D||(c.D=YHe(0));for(var h=g=0;h<c.length;h+=2){var k=c[h],l=c[h+1],p=AIe[k];p?e[p]===l&&delete AIe[k]:(c[g]=k,c[g+1]=l,g+=2)}XHe(c,g);for(var q in AIe)S_g(a,q,e[AIe[q]],f),delete AIe[q]}else for(q=0;q<e.length;q+=2)S_g(a,e[q],e[q+1],f)}}function Y_g(a,c){var e=qIe;e.push(a);e.push(c)}
function Z_g(a){a=a===void 0?cIe:a;var c=SK,e=jIe(c);W_g(c,e,a)}function $_g(a){var c=a.__soy_tagged_for_skip;a.__soy_tagged_for_skip=!1;return c}function a0g(a){a=sK(dGe(a.ma,a.F));a.Ei();return a}function b0g(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}
function c0g(a){try{return Am.JSON.parse(a)}catch(c){}a=String(a);if(b0g(a))try{return eval("("+a+")")}catch(c){}throw Error("sE`"+a);}function d0g(a){if(Am.JSON)try{return Am.JSON.parse(a)}catch(c){}return c0g(a)}function e0g(a){var c=a.D.hb().getSelection();try{return a.O.qt(zC(c))}catch(e){throw ns(e,{hasCursorSelectedRange:!!c.Qd});}}function f0g(a){return a.D.Aa().getStyle(Jj,a.D.hb().Bh())}function g0g(a,c){return.4*Qbe(a.Aa(),c)}
function h0g(a,c){var e=e0g(a)!=-1?e0g(a):0;c?(a=a.D.Aa(),e=.4*Obe(a,e,!0)):e=g0g(a.D,e);return e}function i0g(a){return!!a.V&&a.V.getValue()==0}function j0g(){this.D=0}H(j0g,K);function k0g(){var a=new j0g;a.D=0;return a}function l0g(a,c){var e=a.getData();return e.getType()===Ci?!1:e.getType()===Ag?(c.D(),e instanceof cyd&&(e.za&&c.D(),e.W&&c.D()),!0):a.D.every(function(f){return l0g(f.D,c)})}function m0g(a){var c=k0g();return l0g(a,ho(function(){c.D=c.D+1|0}))?c.D:-1}
function n0g(a,c,e){return function(f,g,h){return Math.min(Math.max(f,h-c-a.Rb()-e),g-a.Rb()-e-h)}}function o0g(a,c,e,f,g,h,k){var l=Nbe(a.O.Aa(),k),p=ZSe(a,g).x;return function(q,u,w,y){var z=g.Es,A=p;if(!y)return Math.min(Math.max(q,w-c-e.Rb()-f),u-e.Rb()-f-w);if(h||z==0)u=l-A;h&&z!=0&&(A=0);return Math.min(Math.max(q,w-c-e.Rb()-f-A),u-e.Rb()-f-w)}}
function p0g(a,c,e,f,g,h,k,l){var p=nTe(a,c,f),q=a.F[c].D[p].Ca,u=kTe(a,new Kr(q?e:e+g,f),c,!0,!0);if(!u)return null;f=u.F;if(!a.H.Qu(f))return null;c=u.D.y;u=u.D.x;q||(u=ZSe(a,f),u=e-u.x);e=fQe(a.H,f);g=o0g(a,g,h,k,f,q,p);return a.J.mE(0,e,u,c,g,l)}
function q0g(a,c,e,f,g,h,k){f=oKd(a.V,f);if(!f)return null;f=hKd(a.V,f.getId()).Rm();e=new Kr(c,e);c=mxe(a.H,0,e.y,LJ(a.R));var l=e.x,p=e.y,q=LJ(a.R);e=mxe(a.H,0,p,q);q=MJ(a.H,e,q).D;l-=q.Rb();p-=q.Vb();f||(q=a.J.getHeight(e,!1),p-=Q5b(a.O.D.D[e].D,!0)-q);e=new Kr(l,p);l=a.D;a=e.x;e=e.y;p=OPe(l.H.D[c],f);f=mL(l.D,c,f);p!=null&&f?(c=l.F.Te(p),h=n0g(g,h,k),g=f.mE(c,0,a-g.Rb(),e-g.Vb(),h,!1)):g=null;return g}
function r0g(a,c){var e=c.x;c=c.y;var f=LJ(a.F),g=mxe(a.H,0,c,f);f=MJ(a.H,g,f).D;e-=f.Rb();a=a.O.getHeight(g,!0);a=c-f.Vb()-a;return new Kr(e,a)}function s0g(a,c){var e=a.J.Aa();return yA(e.Xa(),c.D)<0?(sx(a.J.D,en("UE")),null):(a=a.Y1(c,null))?a.D:null}function t0g(a){a.F(new EG(ll,a.J,a.J,{tbls_cols:a.O}))}function u0g(a){return a.getContext().ub().Aa().getStyle(ll,a.J).Vh().length}function v0g(a,c){for(var e=u0g(a);e<c;e=e+1|0){var f=a,g={tbls_cols:GXg(e,{})};f.F(new EG(ll,f.J,f.J,g))}}
function hR(a,c,e){this.D=a;this.J=c;this.O=e}H(hR,BG);hR.prototype.H=function(){var a=$u(this.O,Ge);if(a){var c=a.opIndex;switch(a.op){case fi:v0g(this,c);t0g(this);break;case pk:v0g(this,c+1|0);t0g(this);break;case Se:a=u0g(this)-1|0,c>a||t0g(this)}}};function w0g(a){oI.call(this,s3a);this.D=a}H(w0g,oI);
function x0g(a,c,e){if(!c.Qd)return c;var f=c.D;var g=[];var h=Pfc(a.eg(id),ew(f[0]),fw(f[f.length-1|0]));for(var k=0;k<h.length;k++)for(var l=h[k],p=f,q=0;q<p.length;q++)if(dw(p[q],l)){g.push(l);break}if(It(g))h=[];else{h=new LB;k=a.ld();for(l=0;l<g.length;l++)p=g[l],q=k.Kc(p).D,h.get(q)?h.get(q).push(p):h.set(q,[p]);g=[];k=h.Yc();for(l=0;l<k.length;l++){q=k[l];var u=p=h.get(q);p=a.ld().Kc(q);q={};for(var w=2147483647,y=-2147483648,z=2147483647,A=-2147483648,C=0;C<u.length;C++){var E=u[C];q[E]=!0;
var F=RG(p,E);E=F.D;F=F.F;var I=p.Bc(E,F);w=Math.min(w,E);y=Math.max(y,E+I.ve()-1|0);z=Math.min(z,F);A=Math.max(A,F+I.Ge()-1|0)}for(u=[];w<=y;w=w+1|0)for(C=z;C<=A;C=C+1|0)if(E=p.Bc(w,C))E=E.ce,E in q||u.push(E);Eu(g,u)}h=g}if(It(h))return c;f=$gd(f);a=a.ld();for(g=0;g<h.length;g++)l=h[g],k=a.Kc(l),l=RG(k,l),k=$F(k,l),e?f.add(k.ce,k.Dk):(f.add(k.ce,k.ce),f.add(k.Dk,k.Dk));e=f.D;zjc(e);a=e[0];f=e[e.length-1|0];h=!0;k=!1;g=!0;c.Qd&&(g=c.F.F,c=c.Qd.F,h=g.D<c.D,k=g.F,g=c.F);c=h?a:f;c=new xC(ew(c),fw(c),
k?uC(fw(c)+1|0,!0):tC(ew(c)+1|0));a=h?f:a;a=new xC(ew(a),fw(a),g?uC(fw(a)+1|0,!0):tC(ew(a)));f=[];for(h=1;h<(e.length-1|0);h=h+1|0)f.push(e[h]);return Gjc(a,c,f)}function y0g(){}H(y0g,K);function z0g(){}H(z0g,y0g);z0g.prototype.to=B("To");var A0g,B0g,C0g,D0g=0;function E0g(a,c){var e=new EB(c.D,0);if($F(a,e).Zf()!=0||YF(a,c.D).length!=2||!ZF(a,c.D,1))return!1;c=new EB(c.D,1);return $F(a,c).Zf()==1&&C_g(a,c).Va(e)}
function F0g(a,c){for(var e=F_g(a.J.Aa(),c.D),f=[],g=0;g<e;g=g+1|0)if(ZF(c,g,0)){var h=new EB(g,0),k=E0g(c,h)?"":L_g(a.J.Aa().Xa(),c,h);h=f;k=Oo(k,(So(),Ro));h.push(k)}return f}function G0g(a,c){var e=a.J.Aa();if((a.R?c.ae():G_g(e,c.D,!1))!=2||a.R&&c.Id()<D0g)return!1;a=Ny(F0g(a,c));a=Fy(C0g,a);return Wu(a)}function H0g(a,c){return(c=a.J.Aa().ld().Kc(c))?G0g(a,c):!1}
function I0g(a,c){var e=a.J.hb().getSelection();if(yC(e)||e.zc.getType()!=0)return!1;var f=PI(a.J);if(!f||!G0g(a,f))return!1;e=RG(f,a.J.hb().Bh());if(e.F!=1||!ZF(f,e.D,0))return!1;var g=new EB(e.D,0),h=L_g(a.J.Aa().Xa(),f,g);g=null;for(var k in c)if(Lo(k,Oo(h,(So(),Ro)))){g=k;break}if(g==null)return!1;a=F0g(a,f);return Nt(a,g)==e.D}function J0g(a){var c={},e;for(e in a){a=c;var f=Oo(e,(So(),Ro));a[f]=!0}return c}
function K0g(){K0g=r();A0g=new z0g;C0g=J0g(vOb($4f,A0g.to(),""));D0g=Pu(C0g);B0g=J0g(vOb(A0g.to(),"Cc","Bcc"))}function L0g(a,c){K0g();this.J=a;this.R=c}H(L0g,K);L0g.prototype.H=function(){var a=PI(this.J);return a?G0g(this,a):!1};L0g.prototype.D=G(897);L0g.prototype.O=G(1222);L0g.prototype.F=function(){for(var a=[],c=this.J.Aa().pe().QF(ll),e=0;e<c.length;e++){var f=c[e];H0g(this,f)&&a.push(f)}return a};
function M0g(a,c,e,f,g,h){var k=0,l=0,p=Ifc(h);p.insert(0,f.Xa());for(var q=p.indexOf("\u001c",null),u=xA(p)-3|0;q<u;){l==0&&a.push([]);var w=VI(p,q),y=e,z=UXg(f,h,g,q+1|0,O(w),null);y.push(z);y=OXg(f,id,q);q=c;y=y?y.zd().Hb(Vz):null;q.push(y);q=e.length-1|0;a[k].push(new nZg(q,q,null));Lo(BA(p,w+1|0),"\u0012")?(k=k+1|0,l=0,q=w+2|0):(l=l+1|0,q=w+1|0)}}function N0g(){this.D=this.F=0}H(N0g,K);function O0g(){this.H=this.J=this.D=this.F=this.O=0}H(O0g,K);
function P0g(a,c,e,f){this.J=a;this.H=c;this.F=e;this.D=f}H(P0g,K);D=P0g.prototype;D.sbc=x("J");D.vxb=function(){return this.F.F};D.uxb=function(){return this.F.D};D.Ylb=function(){return this.F.O};D.txb=function(){return this.F.J};D.i7a=function(){return this.F.H};D.xUb=function(){return[]};D.jva=function(){return O(this.D.O)};D.r7a=function(){return this.D.R};D.Fxb=function(){return this.D.F};D.Exb=function(){return this.D.D};D.H6b=function(){return this.D.J};D.G6b=function(){return this.D.H};
D.Zac=x("H");var Q0g={cell_bgc:!0,cell_bgc_i:!0,cell_bgc2:!0,cell_bgc2_i:!0,cell_pb:!0,cell_pb_i:!0,cell_pl:!0,cell_pl_i:!0,cell_pr:!0,cell_pr_i:!0,cell_pt:!0,cell_pt_i:!0,cell_va:!0,cell_va_i:!0};function iR(a,c,e,f){this.D=a;this.J=!1;this.O=c;this.R=e;this.J=!0===f;a=H$b(this.getContext().J,id);for(var g in c){if(this.J&&!nVb(a,g))throw en("iG`"+M(g)).Ea;if(!this.J&&nVb(a,g)&&c[g])throw en("mr`"+M(g)).Ea;}}H(iR,BG);
iR.prototype.H=function(){for(var a=this.getContext().ub().Aa(),c=this.R,e=0;e<c.length;e++){var f=c[e],g=this.J?this.O:a.xja(this.O,id,f);this.F(new EG(id,f,f,g))}a:{a=this.O;if(!(cqa in a))for(h in a)if(h in Q0g){var h=!0;break a}h=!1}h&&(h=this.getContext().b9(!1),jF(this,h))};function jR(a,c,e){return new iR(a,c,e,null)}function R0g(){}H(R0g,K);function S0g(a,c,e,f){f=f?f:{};f.cell_cs=e;FD(a,jR(a.getContext(),f,[c]))}function T0g(a,c){this.D=a;this.J=c}H(T0g,BG);
T0g.prototype.H=function(){for(var a=IXg(null),c=Zmc().xd(),e=this.J,f=0;f<e.length;f++){var g=e[f];jF(this,new CG(this.getContext(),Jj,a,g,g,!0));jF(this,new CG(this.getContext(),Mi,c,g,g,!0))}};function U0g(a,c,e,f,g){this.D=a;this.J=!1;this.O=c;this.R=e;this.V=f;this.J=!0===g}H(U0g,BG);
U0g.prototype.H=function(){for(var a=this.getContext(),c=a.ub().Aa(),e=c.ld().Kc(this.R),f=RG(e,this.R),g=null,h=this.O.length-1|0;h>=0;h=h-1|0){var k=+this.O[h]|0,l=k+1|0;k=QG(e,RG(e,k));if(l!=k){var p=c.SR(l,k);g=g?VXg(p,g):p;jF(this,GG(a,[new Yv(l,k-1|0)]))}jF(this,new T0g(a,[l]))}g&&(h=PG(e,f),l=QG(e,f),k=(h+1|0)!=l,this.J?(k&&jF(this,GG(a,[new Yv(h+1|0,l-1|0)])),l=QG(e,f)):k&&(g=VXg(c.SR(l,l),g)),jF(this,pZg(a,g,tC(l),this.V,!0)))};
function V0g(a,c,e,f){this.D=a;this.F=a.ub().Aa().ld().Kc(c);this.H=e;this.J=f}H(V0g,AG);
V0g.prototype.El=function(){var a=this.getContext().ub();var c=[];var e=this.F.D+2|0;e=E_g(a.Aa(),e)-1|0;for(var f=0;f<=e;f=f+1|0)fz(c,f);e=Oy(this.H);a:{for(f=0;f<c.length;f++)if(!(c[f]in e)){c=!1;break a}c=!0}if(c)a=[new Yv(this.F.D,this.F.F)],a=Ht(FD(this,HG(this.getContext(),a,null,null,!0)).D,0);else{c=this.F.D;e=this.F.Id();f=this.F.ae();for(var g=this.H.slice(0,this.H.length),h={},k=0;k<g.length;k++)h[g[k]]=!0;k=new LB;for(var l=new LB,p=0;p<this.F.Id();p=p+1|0)for(var q=0;q<this.F.ae();q=
q+1|0){var u=this.F.Bc(p,q);if(u&&u.Zf()==0){var w=new EB(p,q);var y=u.Ge();w=w.F;var z=y;y=w+y-1|0;for(var A=0;A<g.length;A++){var C=g[A];if(!(C<w))if(C>y)break;else z=z-1|0}w=z;w!=0&&(q in h?k.set(u.ce,O(w)):l.set(u.ce,O(w)),q=q+(u.Ge()-1)|0)}}g=new R0g;g.F=l;g.D=k;k=g.F;l=k.Yc();for(p=0;p<l.length;p++)q=l[p],u=k.get(q),S0g(this,q,u.yb(),null);g=g.D;k=g.Yc();l=this.getContext().ub().Aa();for(p=k.length-1|0;p>=0;p=p-1|0){w=+k[p]|0;y=RG(this.F,w);z=y.D;q=this.F.Bc(z,y.F);u=null;for(y=y.F+1|0;y<this.F.ae();y=
y+1|0)if(!(y in h)){u=this.F.Bc(z,y);break}w=g.get(w).yb();z=l.getStyle(id,q.ce);S0g(this,u.ce,w,z.xd());FD(this,new U0g(this.getContext(),[q.ce],u.ce,this.J,!0))}for(h=this.H.length-1|0;h>=0;h=h-1|0){l=+this.H[h]|0;p=c;q=e;u=[];w=p+1|0;z=a.Aa();y=z.Xa();for(A=0;A<q;A=A+1|0)E_g(z,w+1|0)>l&&(k=oce(z,w,l),g=VI(y,k),u.push(new Yv(k,g))),w=mce(y,w)+1|0;FD(this,HG(this.getContext(),u,null,null,!0));FD(this,new hR(this.getContext(),p,r3b(l)))}a=aG(this.F,0,(+this.H[0]|0)>(f-this.H.length-1|0)?(+this.H[0]|
0)-1|0:+this.H[0]|0);a=(a=this.F.Bc(a.D,a.F))?a.ce+1|0:c+3|0}return O(a)};function W0g(a,c){var e=[];nu(a,function(f){f=YF(c,f.yb());for(var g=0;g<f.length;g++){var h=f[g];if(h!=null)if(h.Zf()==1){var k=h.Xp(),l=e[k.ce];l?l.push(h.ce):Lt(e,k.ce,[h.ce])}else h.Zf()==0&&Lt(e,h.ce,[h.ce])}});return e}function X0g(a,c){for(var e=pu(UBb),f=0;f<c.length;f++){var g=RG(a.F,c[f]);ou(e,O(g.D))}return FCb(e)}
function Y0g(a,c){var e=[];nu(c,function(f){f=new Yv(NG(a.F,f.yb()),OG(a.F,f.yb()));e.push(f)});if(e.length==a.F.Id())return[new Yv(a.F.D,a.F.F)];zjc(e);return e}function Z0g(a,c,e,f){this.D=a;this.F=a.ub().Aa().ld().Kc(c);this.J=e;this.H=f}H(Z0g,AG);
Z0g.prototype.El=function(){for(var a=this.getContext().ub(),c=pu(UBb),e=this.J,f=0;f<e.length;f++)ou(c,O(e[f]));e=W0g(c,this.F);f=NAb(e);Fu(f);for(var g=f.length-1|0;g>=0;g=g-1|0){var h=+f[g]|0,k=RG(this.F,+f[g]|0);if(lu(c,O(k.D))){var l=a.Aa(),p=c,q=e[h],u=RG(this.F,h);k=this.F.Bc(u.D,u.F);h=X0g(this,q);q=-1;u=yVg(this.F,u);for(var w=0;w<u.length;w++){var y=u[w];if(!lu(p,O(RG(this.F,y).D))){q=y;break}}q>=0&&(p=l=l.getStyle(id,k.ce).xd(),h=k.ve()-h|0,p.cell_rs=h,FD(this,jR(this.getContext(),l,[q])),
q=RG(this.F,q),FD(this,new U0g(this.getContext(),[k.ce],PG(this.F,q),this.H,!0)))}else k=h,q={},l=X0g(this,e[h]),p=RG(this.F,k),h=this.F.Bc(p.D,p.F),p=q,l=h.ve()-l|0,p.cell_rs=l,FD(this,jR(this.getContext(),q,[k]))}a=Y0g(this,c);return FD(this,HG(this.getContext(),a,null,null,!0)).D};function $0g(){}H($0g,K);function a1g(a){for(var c=0,e=0;e<a.length;e++)c+=a[e];return c}function b1g(a,c,e){c.ld().Kc(a.J);return Gce(e,a.J,c)}
function c1g(a,c,e,f,g){var h=c.ld().Kc(a.J);c=Fce(h,c);a=[];for(var k=0;k<h.ae();k=k+1|0)a.push(k);a.sort(function(u,w){return Dn(e[u],e[w])});h=[];for(k=0;k<a.length;k++){var l=a[k],p=c[l],q=g/f*e[l];q<p&&(q=p,f-=p,g-=p);h[l]=q}return h}function d1g(a,c,e){this.D=a;this.J=c;this.O=e}H(d1g,BG);d1g.prototype.H=function(){for(var a=this.J,c=0;c<a.length;c++){var e=a[c];this.F(new EG(zk,e,e,this.O))}};function e1g(a,c,e,f){c={cell_rs:c,cell_cs:e};jF(a,jR(a.getContext(),c,f))}
function f1g(a,c,e,f,g){this.D=a;this.J=c;this.V=e;this.R=f;this.O=g}H(f1g,BG);
f1g.prototype.H=function(){var a=+this.J[0]|0;e1g(this,this.V,this.R,[a]);var c=this.J.slice(1,this.J.length);e1g(this,1,1,c);for(var e=this.J,f=this.getContext().ub().Aa(),g=f.ld().Kc(+e[0]|0),h=0;h<e.length;h++){var k=e[h],l=RG(g,k);l=NG(g,l.D);var p=f.getStyle(zk,l).W,q=f.getStyle(ml,k+1|0);k=f.getStyle(id,k);k=Vlc(k)+Wlc(k)+lB(q);k>p&&(p={row_mh:k},jF(this,new d1g(this.getContext(),[l],p)))}jF(this,new U0g(this.getContext(),c,a,this.O,null))};function g1g(a,c,e){this.D=a;this.J=c;this.O=e}
H(g1g,BG);g1g.prototype.H=function(){var a=this.getContext(),c=a.ub().Aa(),e=c.Xa();wt(Lo(BA(e,this.J),"\u0010"),"The spacer index %s is not the start of a table.",this.J);e=c.ld().Kc(this.J);for(var f=e.Id(),g=e.ae(),h=0;h<f;h=h+1|0){var k=e,l=k.Bc(h,0);(l==null||l.Ge()!=k.ae())&&K_g(c,e,h)&&jF(this,new f1g(a,M_g(e,h),1,g,this.O))}};function h1g(a,c,e,f,g,h,k){this.D=a;this.O=c;this.V=e;this.J=f;this.R=g;this.W=h;this.ea=k}H(h1g,BG);
h1g.prototype.H=function(){var a=this.getContext().ub().Aa();if(!a.ld().bG(this.J))throw en("jG`"+this.J).Ea;var c=this.W.D(tC(this.J-1|0));c-=a.getStyle(ll,this.J).W;var e=a1g(b1g(this,a,c));c=Math.max(c,e);e=this.J+1|0;for(var f=KKb("\u001c\n",this.O),g=F_g(a,this.J),h=[],k=0;k<g;k=k+1|0){var l=oce(a,e,this.R),p=a,q=l;l=p.lh(ml,q+1|0);l=p.getStyle(Li,q+1|0).Ni()?WZg(this.getContext().F,l):l.xd();var u=p.lh(Jj,q+1|0).xd(),w=p.lh(id,q).xd();bqa in w&&jv(w,bqa);cqa in w&&jv(w,cqa);w.cell_cs=1;w.cell_rs=
1;q=p=new $0g;q.H=l;q.F=u;q.D=w;l=p;u=oce(a,e,this.V);var y=a;p=e;w=u;var z=y.pe();q=z.Aq(p);p=[];if(q.length>0&&(y=BA(y.Xa(),w),y==="\u0012"||y==="\u0011"))for(w=z.Aq(w),z=0;z<q.length;z++)y=q[z],Nt(w,y)<0&&p.push(y);q=f;w=u;if(p.length==0)jF(this,gR(this.getContext(),q,tC(w)));else for(z=0;z<p.length;z=z+1|0)z==0?jF(this,Lnd(this.getContext(),q,tC(w),null,p[z])):this.F(new AMd(p[z],w,w+q.length-1|0));for(p=0;p<this.O;p=p+1|0)z=q=u+Math.imul(2,p)|0,y=l,w=z+1|0,jF(this,new CG(this.getContext(),Jj,
y.F,w,w,!0)),jF(this,new CG(this.getContext(),ml,y.H,z,w,!0)),jF(this,new CG(this.getContext(),id,y.D,z,z,!0)),z=Zmc().xd(),jF(this,new CG(this.getContext(),Mi,z,w,w,!0)),h.push(q+1|0);e=mce(a.Xa(),e)+1|0}e=null;f=a.getStyle(ll,this.J).Vh();this.R<f.length&&(e=f[this.R]);for(f=0;f<this.O;f=f+1|0)g=this.V+f|0,h=e,jF(this,new hR(this.getContext(),this.J,GXg(g,{}))),h&&yoc(h)!=1&&(k={},k.col_wt=yoc(h),k.col_wv=zoc(h),jF(this,new hR(this.getContext(),this.J,cR(g,k))));if(!(sJ(a)||(e=b1g(this,a,c),f=a1g(e),
f<=c)))for(c=c1g(this,a,e,f,c),a=a.g