F=c;this.H=e;this.J=f;this.O=g}H(oZh,K);function nZh(a,c,e,f){this.Xc=KNa;this.H=a;this.O=c;this.D=e;this.F=f}H(nZh,GD);nZh.prototype.Xfa=x("O");nZh.prototype.rk=x("H");function pZh(a,c,e){this.D=this.F=!1;this.type=a;this.F=c;this.D=e}H(pZh,K);function qZh(a,c){pZh.call(this,"bullet-remove",!1,!1);this.H=a;this.J=c}H(qZh,pZh);function rZh(a,c){pZh.call(this,zag,!1,!1);this.H=a;this.J=c}H(rZh,pZh);function sZh(a,c,e){pZh.call(this,fi,a,c);this.H=e}H(sZh,pZh);function mZh(a,c){this.D=a;this.F=c}H(mZh,AG);
mZh.prototype.El=function(){var a=this.getContext().ub(),c=a.Aa(),e=a.hb();a=e.getSelection().Qd;var f=e.Bh();if(!a&&Cgd(c,f)&&fG(c,f))return a=c.getStyle(Mi,f),c=NC(a),a=this.getContext(),c==0?(e=a.ub(),c=e.Aa(),f=e.hb().Bh(),e=jfd(c,f)?xzd(c,f,null):"",c=wfd(c,f),FD(this,new lzd(a,!1)),a=new qZh(e,c)):(a=FD(this,new SYh(a,!1,this.F)),a=new rZh(a.D,a.F)),a;var g=e.ifa();a=FD(this,new tZh(this.getContext(),1));var h=f+1|0;a.D?e.sW():e.t8(g);f=null;if(e=ush(c,h))f=new dgd(sfd(c,h,null,!1)),h=c.getStyle(Mi,
h),c=c.Dd(MC(h)),g=NC(h),e=tfd(e,g),f=new oZh(e,f,c,h,g);return new sZh(a.H,a.F,f)};function uZh(a,c,e){this.H=a;this.F=c;this.D=e}H(uZh,K);function tZh(a,c){this.D=a;this.F=c}H(tZh,AG);
tZh.prototype.El=function(){var a=this.getContext().ub(),c=a.Aa(),e=a.hb().Bh();a=c.getStyle(Jj,e);var f=wB(a);f=!(f==0||f==102)&&AA(c.Xa(),e);var g=FD(this,new uH(this.getContext(),KKb("\n",this.F))),h=e+1|0;e=e+this.F|0;ED(this,BC(tC(e)),!0);c=Hsh(c,new Yv(h,e));if(f){var k={ps_hd:0,ps_hdid:(D3b(),H3b).Gb};a.D.Da&&(k.ps_shd=!1);FD(this,new bzd(this.getContext(),k,null,c));FD(this,new Aah(this.getContext(),h,e))}else h=vv(),a.D.Da&&xR(h,p8a,!1),a.D.Fa&&xR(xR(h,i8a,!1),j8a,!0),a=h.oa(),Wu(a)||FD(this,
new bzd(this.getContext(),a,null,c));return new uZh(g.H,g.F,f)};function vZh(a,c,e,f){this.J=a;this.D=c;this.F=e;this.H=f?Qo(f):""}H(vZh,K);function wZh(a){return new vZh(a,null,null,"")};function xZh(a,c){this.D=0;this.D=a;this.F=c}H(xZh,K);function yZh(){}H(yZh,K);function zZh(a,c,e){this.D=a;this.H=c;this.F=e}H(zZh,AG);
zZh.prototype.El=function(){var a=this.getContext().ub().Aa(),c=a.Xa();a:{var e=a.Xa();for(var f=ew(this.F);f<=fw(this.F);f=f+1|0)if(!Lo(BA(e,f),AZh(this,f,a))){e=!0;break a}e=!1}if(!e)return new xZh(0,this.F);f=[];e=a.ho();for(var g=0;g<e.length;g++){var h=e[g];JA(h)||WZb(h)||f.push(h)}e={};for(g=0;g<f.length;g++){h=f[g];var k=a.eg(h);var l=this.F,p=$Tb(k,ew(l),!0);p=p>=0?p+1|0:-p-1|0;l=$Tb(k,fw(l),!0);k=k.slice(p,l>=0?l+1|0:-l-1|0);p=[];for(l=0;l<k.length;l=l+1|0){var q=a.getStyle(h,+k[l]|0).Hb(Uz),
u=p,w=new yZh,y=w,z=new Yv(+k[l]|0,(l+1|0)<k.length?+k[l+1|0]|0:fw(this.F));y.F=q;y.D=z;u.push(w)}Ru(e,h,p)}k=null;p=vo();f=l=0;g={};h=[];for(q=ew(this.F);q<=fw(this.F);q=q+1|0)u=q+l|0,w=CA(BA(c,u))&&!(vA(),bZb).test(BA(c,u)),!w&&k&&(FD(this,j_g(this.getContext(),p.toString(),new Yv(k.yb(),u-1|0))),l=f,k=null,p=vo()),w&&(k||(k=O(u)),u=AZh(this,u,a),Bo(p,u),u.length>1&&(f=f+(u.length-1)|0,h.push(q),g[q]=f));k&&FD(this,j_g(this.getContext(),p.toString(),new Yv(k.yb(),fw(this.F)+l|0)));for(var A in e)for(a=
e[A],c=0;c<a.length;c++)k=a[c],f!=0?(p=k.D,l=h,q=g,l.length!=0&&(u=ew(p),(+l[0]|0)<ew(p)&&(u=$Tb(l,ew(p),!0),u=(u>=0?u:-u-1|0)-1|0,u=ew(p)+(q[+l[u]|0]|0)|0),w=fw(p),(+l[0]|0)<=fw(p)&&(w=$Tb(l,fw(p),!0),w=w>=0?w:-w-2|0,w=fw(p)+(q[+l[w]|0]|0)|0),p=u==ew(p)&&w==fw(p)?p:new Yv(u,w))):p=k.D,FD(this,DG(this.getContext(),A,k.F,ew(p),fw(p)));return new xZh(f,f>0?new Yv(ew(this.F),fw(this.F)+f|0):this.F)};
function AZh(a,c,e){var f=e.Xa();switch(a.H){case 0:return lth(c,e,a.getContext().V.D())?Po(BA(f,c),Bnb()):Oo(BA(f,c),Bnb());case 1:return Oo(BA(f,c),Bnb());case 2:return Po(BA(f,c),Bnb());default:return BA(f,c)}};function BZh(){}H(BZh,fH);BZh.prototype.D=function(a){return new CZh(a)};function CZh(a){DZh();nF.call(this,blg,a)}var EZh;H(CZh,gH);
CZh.prototype.Vc=function(a){var c=a.J,e=a.H,f=this.getContext().ub(),g=f.Aa(),h=g.Xa();f=f.hb().getSelection();var k=this.getContext().V.D(),l=0,p=[];if(Co(e))f.Qd?g=f.D:(a=f.zc,g=a.getType()!=0?[]:(g=mth(a.D,g,k))?[g]:[]);else{if(a=bbh(a.D,a.F,e)){var q=lth(ew(a),g,k)?ew(a):uhd(ew(a),g,k);if(q>=fw(a))a=null;else{var u=fw(a),w=u,y=thd(g);w=rhd(y,w);cid(w,y)||Lo(vG(tG(y,w)),"w")&&fw(bid(w,y,k))==w||(u=Bhd(fw(a),g,k));a=new Yv(q,u)}}g=a?[a]:[]}for(k=0;k<g.length;k++)a=g[k],a=l>0?new Yv(ew(a)+l|0,fw(a)+
l|0):a,a=qF(this,new zZh(this.getContext(),c,a)),l=l+a.D|0,p.push(a.F);Co(e)&&f.Qd&&l!=0&&!Mt(p)&&(l=Hjc(tC(ew(p[0])),p),pF(this,l,!1));!Co(e)||f.Qd||Mt(p)||pF(this,BC(tC(fw(p[p.length-1|0])+1|0)),!0);e=null;l=!1;f.Qd?l=!0:p.length>0&&(e=h.slice(ew(p[0]),fw(p[0])));this.D=new FZh(c,l,e)};function DZh(){DZh=r();EZh=new BZh};function FZh(a,c,e){this.Xc=blg;this.F=a;this.H=c;this.D=e}H(FZh,GD);function GZh(a){this.D=a;this.J=a.wa}H(GZh,BG);
GZh.prototype.H=function(){var a=this.getContext(),c=a.ub(),e=c.hb().getSelection(),f=e.D;if(f.length!=0){for(c=0;c<f.length;c++)e=f[c],jF(this,new Aah(a,ew(e),fw(e)));a=this.getContext().ub();a=Dsh(a.Aa(),a.hb().getSelection().D);f=z2b().xd();this.J||a1b(f,!0);c={b_ts:f};f={};for(e=0;e<=8;e=e+1|0)cv(f,kG(e),c);c={};cv(c,Gi,f);f=null;Kv(this.getContext().lb(),lg)&&(f=Mi);for(e=0;e<a.length;e++)this.F(new FG(f,a[e],c))}else{f=e.zc;switch(f.getType()){case 0:a=this.getContext();c=a.ub();f=c.Aa();c=
c.hb();e=c.Jd();var g=z2b();g=f.gta(g,e);Qth(f,c.getSelection())&&g.Oc(a.F.J(!0));c.Uaa(g);AA(f.Xa(),e)&&jF(this,new Aah(a,e,e));break;case 2:HZh(this,f.H);break;case 3:a=f.J;f=f.F;this.getContext().ub().Aa().wq(a)&&(c=z2b().xd(),this.J||a1b(c,!0),c={b_ts:c},e=Av(vv(),kG(f),c).oa(),c={},cv(c,Gi,e),e=null,Kv(this.getContext().lb(),lg)&&(e=Mi),this.F(new FG(e,a,c)));a=gfd(this.getContext().ub().Aa(),a,f);for(f=0;f<a.length;f++)HZh(this,a[f]);break;case 6:f=c.Aa().og(f),jF(this,new Aah(a,f,f))}(a=this.getContext().b9(!0))&&
jF(this,a)}};function HZh(a,c){jF(a,new CG(a.getContext(),Mi,{ls_ts:null},c,c,!0))};function IZh(){}H(IZh,fH);IZh.prototype.D=function(a){return new JZh(a)};function JZh(a){KZh();nF.call(this,flg,a)}var LZh;H(JZh,gH);JZh.prototype.Vc=function(){qF(this,new GZh(this.getContext()))};function KZh(){KZh=r();LZh=new IZh};function MZh(a){this.D=a}function NZh(a,c,e){return e.Va(a)?null:e}H(MZh,K);function OZh(a,c){var e;if(a=(e=a.D,e())){e=a.Aa();var f=a.hb().Jd();e=Ard(e,ml,NZh,f,!1,c);e==0&&(e=1);e>0&&(e=BC(tC(e)),a.Mh(e,!0,!0,c?PRg:FRg))}};function PZh(){}H(PZh,fH);PZh.prototype.D=function(a){return new QZh(a)};function QZh(a){RZh();nF.call(this,llg,a)}var SZh;H(QZh,gH);
QZh.prototype.Vc=function(){var a=this.getContext().ub().Aa(),c=this.getContext().ub().hb(),e=c.getSelection().Qd;if(e){c=e.D;if(!a.getStyle(Li,c).Ni())return;e=e.Cg()}else{e=Rth(a,c.getSelection());if(e==-1)return;c=a.gr(Li,e);e=a.yp(Li,e)}var f=a.getStyle(Li,c),g=new Fdc(null);if(!f.Va(g)){oF(this,new EG(Li,c,e,{lnks_link:null}));g=c>1?a.getStyle(Li,c-1|0):null;var h=c>1?a.getStyle(Jj,c-1|0):null,k=a.getStyle(Jj,c);f=!1;!g||g.Ni()||h&&k&&wB(h)!=wB(k)?(a=Y5g(this.getContext().J,ml),f=!0):a=a.getStyle(ml,
c-1|0);qF(this,new CG(this.getContext(),ml,this.getContext().F.H(a),c,e,f))}};function RZh(){RZh=r();SZh=new PZh};function TZh(a,c){this.F=a;this.D=c}H(TZh,K);function UZh(){}H(UZh,fH);UZh.prototype.D=function(a){return new VZh(a)};function VZh(a){WZh();nF.call(this,qlg,a)}var XZh;H(VZh,gH);VZh.prototype.Vc=function(a){var c=a.F;a=qF(this,new SYh(this.getContext(),c,a.D));this.D=new YZh(new vzd(c,!1,a.D,a.H,a.F))};function WZh(){WZh=r();XZh=new UZh};function YZh(a){this.Xc=qlg;this.D=a}H(YZh,GD);function ZZh(){}H(ZZh,fH);ZZh.prototype.D=function(a){return new $Zh(a)};function $Zh(a){a_h();nF.call(this,plg,a)}var b_h;H($Zh,gH);
$Zh.prototype.Vc=function(a){var c=a.getUrl(),e=a.Ic(),f=this.getContext().ub(),g=f.Aa(),h=Sth(g,f.hb()),k=h.H;f=h.F;h=h.D;if((e||k!=2)&&c){var l=!0;e&&(k==2?qF(this,new uH(this.getContext(),e)):(iZb(BA(g.Xa(),fw(f)))&&(f.end=fw(f)-1|0),Lo(rZg(g.Xa().slice(ew(f),fw(f))),e)?l=!1:qF(this,new i_g(this.getContext(),e,f,!0))),f.end=f.start+e.length-1,HYc(this,CC(fw(f)+1|0,ew(f)),!0,null));a:{e=g.Xa();a_h();for(k=ew(f);k<=fw(f);k=k+1|0)if(DA(e,k)&&!AA(e,k)){e=!0;break a}e=!1}if(e){c=jVg(c);for(e=0;e<h.length;e++){k=
h[e];k.start==f.start&&(k.end=f.end);var p=g.Xa(),q=Bgd(g,ew(k),fw(k));(q.length==0||k.start<(+q[0]|0))&&q.unshift(ew(k));for(var u=0;u<q.length;u++){var w=q[u],y=Math.max(k.start,w);w=Math.min(k.end,oG(p,w)-1|0);y<=w&&qF(this,new PUh(this.getContext(),new Yv(y,w),c,l))}}g=fw(f)+1|0;!0===a.D&&(qF(this,gR(this.getContext()," ",tC(g))),g=g+1|0);h.length==1&&pF(this,BC(tC(g)),!0)}}};function a_h(){a_h=r();b_h=new ZZh};function c_h(){}H(c_h,K);c_h.prototype.D=function(a,c){return!!d_h(a,c)};function d_h(a,c){return c.D.length>1?null:Pth(a,c,!0,!0)};function e_h(){}H(e_h,K);e_h.prototype.D=function(a){var c=null,e=!1,f=!1;a&&(e=a.hb().getSelection().D.length>1,c=Qth(a.Aa(),a.hb().getSelection()),f=a.Aa(),a=a.hb().getSelection(),f=mnh(lnh(f,a))!=null);f=(c=(e=!e&&!!c)&&(c.getType()!=0||jC(c.getUrl())!=null))||f;a=new Kx;a.put(kMg,e);a.put(vNg,!e);a.put(BTg,c);a.put(ATg,f);return a};function f_h(){}H(f_h,K);
f_h.prototype.D=function(a){var c=!1,e=!1,f=!1,g=!1,h=!1,k=!1,l=!1,p=!1,q=!1,u=!1,w=!1,y=!0;if(a){var z=a.Aa();g=a.hb();a=g.getSelection();var A=a.zc;u=A.getType();var C=u!=4;c=u==2||u==3;y=sgd(A);q=C&&jfd(z,y);f=C&&hG(z,y);w=!!Aod(y,z);e=u==3;u=u==2;g=C&&dfd(z,g);y=Cgd(z,y);if(g){if(!e||Bsh(z,A))l=Ish(z,a),l=zsh(z,l);p=e?pG(z,a):Ish(z,a);p=xsh(z,p);if(c)a:switch(eG(),A.getType()){case 2:h=A.H;break a;case 3:h=A.O;break a;default:throw en("Zp").Ea;}else h=Gsh(z,a);h=yB(z.getStyle(Jj,h));k=!h}}z=new Kx;
z.put(Lag,l);z.put(Kag,p);z.put("list-selection",c);z.put("in-checklist",f);z.put(btg,g);z.put("in-ltr-list",h);z.put("in-rtl-list",k);z.put(dtg,q);z.put("not-in-list",!g);z.put(GNg,!u);z.put(HNg,!e);z.put(wj,!c);z.put("ordered-list-selection",q&&c);z.put($sg,f&&w);z.put(atg,f&&!w);z.put("in-non-empty-plain-checklist",f&&!w&&!y);z.put(ENg,!f||f&&!w);z.put("in_non_checklist_list_ltr",h&&!f);z.put("in_non_checklist_list_rtl",k&&!f);return z};function g_h(a){this.D=a}H(g_h,K);function h_h(a){var c=a.D.hb().getSelection().D;if(c.length<=0)return!0;a=a.D.Aa();for(var e=a.getStyle(ml,ew(c[0])),f=0;f<c.length;f++){var g=c[f];if(!g)break;var h=a.yp(ml,ew(g)),k=a.getStyle(ml,ew(g));if(h<g.end||!k.Va(e))return!1}return!0};function i_h(a){Hx.call(this);j_h(this,a)}H(i_h,Hx);function j_h(a,c){a.D.Pa(c.D,function(){var e=new Kx;e.put(gUg,!0);Jx(a,e)});a.D.Pa(c.H,function(){var e=new Kx;e.put(fUg,!0);Jx(a,e)});a.gs(gUg,c.O);a.gs(fUg,c.J)};function k_h(a,c){this.F=a;this.D=c}H(k_h,K);function l_h(){}H(l_h,fH);l_h.prototype.D=function(a){return new m_h(a)};function m_h(a){n_h();nF.call(this,ulg,a)}var o_h;H(m_h,gH);
m_h.prototype.Vc=function(a){var c=a.F;a=a.D;var e=this.getContext().ub(),f=e.Aa(),g=f.Xa(),h=e.hb().getSelection();e=pG(f,h).length;this.D=new p_h(0,0);var k=ygd(f,h),l=GG(this.getContext(),[k]);if(!(l.H.length>1||(h=Mt(l.H)?k:l.H[0],fw(k)==zA(g,fw(k))&&(fw(h)+1|0)==fw(k)&&(h=new Yv(h.start,k.end)),c===Reb&&h.start-1<=yA(g,ew(h))||c===ASa&&h.end+1>=zA(g,fw(h))))){k=f.Rh(ew(h),fw(h),!1,null,null,!0,null,null);qF(this,new lzd(this.getContext(),!1));qF(this,l);l=g.F("\n");var p=1;switch(c){case Reb:c=
Hu(l,ew(h));p=rG(f,+l[c<0?-c-2|0:c-1|0]|0);this.D=new p_h(1,e);break;case ASa:c=zA(g,ew(h)),f=Hu(l,ew(h)),f=+l[f<0?-f-1|0:f+1|0]|0,p=f+1|0,f>=c&&(qF(this,gR(this.getContext(),"\n",tC(c))),p=c+1|0),this.D=new p_h(2,e)}qF(this,Dah(this.getContext(),k,tC(p),a,!1));a=CC(p,p+fw(h)-ew(h)|0);pF(this,a,!0)}};function n_h(){n_h=r();o_h=new l_h};function p_h(a,c){this.Xc=ulg;this.F=a;this.D=c}H(p_h,GD);p_h.prototype.rk=x("F");p_h.prototype.kK=x("D");function q_h(){}H(q_h,K);q_h.prototype.D=function(a){var c=!1,e=!1,f=!1;if(a){var g=a.hb().getSelection();if(c=g.zc.getType()==0)e=a.Aa(),f=Gsh(e,g),e=yB(e.getStyle(Jj,f)),f=!e}g=new Kx;g.put("in-paragraph",c);g.put(ctg,e);g.put("in-rtl-paragraph",f);return g};function r_h(a,c,e){Hx.call(this);this.H=!1;s_h(this,a,c,e)}H(r_h,Hx);function s_h(a,c,e,f){a.R=e;a.O=f;a.H=mv().Ha(pf);a.D.Pa(c.gg(),function(g){g.F||Jx(a,t_h(a))});a.D.Pa(c.Ji(),function(){Jx(a,t_h(a))});Ix(a,t_h(a))}function t_h(a){var c,e=a.O.D((c=a.R,c()));if(a.H)return e;var f=new Kx;jEb(e.D).Qv(Fn(function(g){f.put(g,e.get(g))}));return f};function u_h(a){v_h();this.D=a}H(u_h,K);function w_h(a){new u_h(function(){return a})}function v_h(){v_h=r();w_h(!0);w_h(!1)};function x_h(){}H(x_h,fH);x_h.prototype.D=function(a){return new y_h(a,0)};function z_h(){}H(z_h,fH);z_h.prototype.D=function(a){return new y_h(a,1)};function A_h(){this.D=!1}H(A_h,K);D=A_h.prototype;D.URa=function(a,c){return B_h(a,c,(C_h(),D_h))};function E_h(a,c){return(a=F_h(H2b(a),a.D.za,nB(a),c))?{ts_ff:a.H,ts_bd:a.D,ts_tw:a.F}:{}}D.p7a=function(a,c,e,f){a=a.getStyle(ml,ew(c[f]));return E_h(a,this.D)};D.Loa=function(a){a=a.Fy();return E_h(a,this.D)};D.WNa=function(a,c,e){a=a.Eg(Mi,e);return E_h(OC(a),this.D)};D.o7a=function(a,c){a=OC(a.Pm(Mi,c));return Gn(!0,a.getValue(Zdb))&&Gn(!0,a.getValue(Udb))?null:E_h(a,this.D)};
D.n7a=function(a,c,e,f){a=a.Dd(e);if(!a)return{};f=gG(a,f).J;return E_h(f,this.D)};function G_h(a,c,e){this.H=a;this.D=c;this.F=e}H(G_h,K);function F_h(a,c,e,f){var g=a>=700;if(f==g)return null;c=a!=400&&a!=700||g==c>=700?400:c;c!=400||g||(c=700);g=c==700;e=vVb(new xVb(e,c==700?400:c));return new G_h(e,g,a==700?400:a)}function H_h(a,c,e,f){var g=!1;e||(e=O(swh(a,f)));e.yb()==700&&(e=O(400),g=!0);a=vVb(new xVb(c,e.yb()));return new G_h(a,g,400)};function B_h(a,c,e){if(Mt(e))return a;for(var f=[],g=0;g<a.length;g++){for(var h=a[g],k=e,l=[],p=c.yn(ml,ew(h),fw(h),null,null,null).D,q=p.Yc(),u={},w=null,y=0;y<q.length;y=y+1|0){var z=+q[y]|0;var A=p.get(z).zd();var C=k,E={};if(A)for(var F=0;F<C.length;F++){var I=C[F];dv(E,I,CXb(A.getValue(I)))}A=E;y==0?(w=O(z),u=A):UDb(u,A)||(l.push(new Yv(h.start+w.yb(),h.start+z-1)),u=A,w=O(z))}It(q)||l.push(new Yv(h.start+w.yb(),h.end));Xt(f,l)}return f};function y_h(a,c){C_h();nF.call(this,Glg,a);this.H=c}var D_h=[Tdb,Fl,jeb],I_h,J_h;H(y_h,gH);y_h.prototype.Vc=function(a){var c;a=(c=a.D,c());c=new A_h;c.D=a;c=qF(this,new dZh(this.getContext(),c,this.H));var e={};e.ts_bd=a;this.D=new JYh(Glg,e,c);(a=this.getContext().b9(!0))&&qF(this,a)};y_h.prototype.R=function(){return[$8f,b9f]};function C_h(){C_h=r();I_h=new z_h;J_h=new x_h};function K_h(a,c,e,f){nF.call(this,a,f);this.za=c;this.ea=e}H(K_h,gH);K_h.prototype.Vc=function(a){var c=this.ma(a);if(c.length!=0&&this.wa(a)){for(var e=this.getContext().ub().Aa(),f=this.hg(a),g=0;g<c.length;g++){for(var h=c[g],k=ew(h),l=e.yp(this.ea,k);l<h.end;)L_h(this,k,l,f),k=l+1|0,l=e.yp(this.ea,k);L_h(this,k,fw(h),f)}this.H(a,f)}};
K_h.prototype.ma=function(){var a=this.getContext().ub(),c=a.Aa();if(c.jb())return[];var e=a.hb().getSelection(),f=e.zc;if(f.getType()!=0&&f.getType()!=5&&f.getType()!=6)return[];if(f.getType()==5||f.getType()==6)return c=c.og(f),[new Yv(c,c)];a=[];if(Bfd(c,e)&&Cfd(c,e))a=e.D;else if(yC(e)){f=c.Xa();e=e.D;for(var g=0;g<e.length;g++){var h=e[g],k=ew(h);h=fw(h);if(h!=k||h!=zA(f,k))h>k&&AA(f,h)&&(h=h-1|0),a.push(new Yv(k,h))}}else(f=mth(f.D,c,this.getContext().V.D()))&&a.push(f);return a.length==1&&
ew(a[0])==fw(a[0])?a:qZg(c,a)};function L_h(a,c,e,f){f=Av(vv(),a.za,GXg(0,f)).oa();oF(a,new EG(a.ea,c,e,f))}K_h.prototype.wa=B(!0);function M_h(a,c){a=Xx(Vx(aAa).Ia(30703).label(H4f).hint(H4f).category(Sa).selected(!0),a);c||a.key(Tda);return a.oa()};function N_h(){return WS([],[3,6,7,8,19,17,18],Eth(Cth("\u001d\u001e\u001b\u0019\u001f\u001a".split("")),[bh,DVa]).oa())};function O_h(){return WS([],[5],Eth(Cth(["\u001e","\u001a"]),[bh]).oa())};function P_h(a,c,e){this.F=a;this.D=c;this.H=e}H(P_h,K);function Q_h(a,c,e){this.D=a;this.O=0;this.J=c;this.O=e?e.yb():0}H(Q_h,BG);
Q_h.prototype.H=function(){var a=this.getContext().ub(),c=a.Aa(),e=a.hb();a=e.getSelection();var f=a.zc;if((a=a.Qd)||f.getType()==0)if(e=a?a.D:e.Jd(),xid(c.Xa(),e)&&this.J.F in Iid&&(Iid[this.J.F]|0)==this.J.D){f=this.J.D==0?"\u001f":"\u0019"+M(KKb("\u001d",this.J.D-1|0))+"\u001b";var g=null;a&&this.J.D>0&&(g=c.SR(a.D,a.Cg()));jF(this,new uH(this.getContext(),f));g?(c=jF(this,Dah(this.getContext(),g,tC(e+1|0),this.J.H,!1)).D,iF(this,BC(tC(e+1+c+this.O|0)),!0)):iF(this,BC(tC(e+1|0)),!0);this.F(new EG(DVa,
e,e,{eqfs_c:this.J.F}))}};function R_h(a,c){this.F=!1;S_h(this,a,c)}H(R_h,tw);function S_h(a,c,e){a.D=c;c=new hx;a.xa(c);c.Pa(e,function(f){f.D&&!f.D.H&&(f=fw(f.D.D),f<1&&(f=1),a.D.AP(tC(f),null))})};function T_h(){this.D=this.J=this.F=this.H=this.W=!1}H(T_h,gw);function U_h(a,c,e,f,g,h,k,l,p){this.R=this.V=this.ma=this.za=this.va=this.F=!1;this.ea="";this.wa=a;this.Ra=c;this.H=e;this.Ca=f;this.Fa=g;this.Ja=h;this.Na=k;this.O=bx();this.xa(this.O);this.J=new hx;this.xa(this.J);this.V=l.Ha(NAa);this.W=V_h(this,p);this.xa(this.W)}H(U_h,tw);function V_h(a,c){return a.V?new rSh(function(){a.D&&(W_h(a,a.D.R,a.D.W,a.D.H,a.D.F,a.D.J,a.D.D,a.D.wa,a.D.ea,a.D.va,a.D.V,a.D.O,a.D.ma),a.Ua=a.D,a.D=null,a.O.callback(null))},100,c):null}
function X_h(a,c,e,f,g,h,k,l,p,q,u,w,y,z){if(a.V)return go(z,!0)&&(a.O.Ei()||(a.W.stop(),a.W.Gn()),a.W.stop()),a.O.Ei()&&(a.O.dispose(),a.O=bx(),a.xa(a.O)),z=new T_h,Fo(c),z.R=c,z.W=e,z.H=f,z.F=g,z.J=h,z.D=k,z.wa=l,z.ea=p,z.va=q,z.V=u,z.O=w,z.ma=y,void 0,a.D=z,a.W.Gn(),a.O;W_h(a,c,e,f,g,h,k,l,p,q,u,w,y);return dx(null)}
function W_h(a,c,e,f,g,h,k,l,p,q,u,w,y){kx(a.J);Y_h(a);a.ea=c;a.va=f;a.za=h;a.ma=k;a.R=w!=null?!0===w:a.R;p=!0===p;w=!0===q;q=!a.R;var z=a.H.AJ(),A=a.D,C=a.Ua;a.V&&A&&C&&!0===A.ea&&L(A.R,C.R)&&A.H==C.H&&A.F==C.F&&A.J==C.J&&A.D==C.D&&go(A.V,C.V)&&go(A.O,C.O)&&go(q,a.Sa)||(f=Z_h(a.wa.Aa(),c,a.Ra,a.Ca,f,h,k,q,a.Na,u,y),a.H.Eta(f,p));if(l==null||l)if(c)if(c=a.H.VY(),l=a.H.sU(),l>=0?e=g?l:e?l==0?c.length-1|0:l-1|0:l==(c.length-1|0)?0:l+1|0:(l=null,z&&g?l=O(ew(z.D)):w||(l=O(a.wa.hb().Jd())),l?(g=l.yb(),
e=r_g(c,new s_g(new Yv(g,g),null,null,null),e)):e=e?c.length-1|0:0),e>=0){a.H.MDa(e,p);var E;e=(E=a.Ca,E());(E=a.H.AJ()?a.H.AJ().H:null)?e.select(E):e&&e.kva()}else a.reset(p);else a.reset(p);a.Sa=q}
function Y_h(a){a.J.Pa(a.wa.Ph(),function(e){e.ih&&a.H.zFa(e.ih)});a.J.Pa(a.V?a.Fa.D():a.Fa.H(),function(){X_h(a,a.ea,!1,a.va,!0,a.za,a.ma,a.H.sU()!=-1,null,null,null,a.R,null,!0)});var c=$_h(a);c&&a.J.Pa(c.X5a(),function(){var e=a.ea,f=a.va,g=a.za,h=a.ma,k=a.H.sU()!=-1;X_h(a,e,!1,f,!0,g,h,k,null,null,null,a.R,null,null)});a.J.Pa(a.wa.gg(),function(e){e.D&&(a.H.M8(!0),$_h(a)&&$_h(a).kva())});a.J.Pa(a.Ja.H,function(){var e=a.ea,f=a.va,g=a.za,h=a.ma,k=a.H.sU()!=-1;X_h(a,e,!1,f,!0,g,h,k,null,null,null,
a.R,null,null)})}U_h.prototype.reset=function(a){this.ea="";this.H.M8(!0===a);this.H.OJa(!0===a);kx(this.J);$_h(this)&&$_h(this).o0a()};U_h.prototype.oq=function(){this.H.M8(!0)};
function Z_h(a,c,e,f,g,h,k,l,p,q,u){var w=[];e=e.D(c,a,g,h,k);for(g=0;g<e.length;g++)h=e[g],p&&EH(a,Ln(h.start))||w.push(new s_g(h,null,null,null));f=f();q&&f&&f.hoc(q);if(l){l=[];q=[];for(p=0;p<HXb.length;p++)for(e=gnh(a,HXb[p]),g=0;g<e.length;g++){h=e[g];var y=hC(a,h);a:{k=void 0;var z=a;if(y){try{k=new RegExp(ky(c),"gmi")}catch(A){k=Zm(A);if(fn(k)){k=!1;break a}throw k.Ea;}z=iC(z,y);k=Co(z)?!1:!!k.exec(z)}else k=!1}k&&q.push(new Yv(h,h))}Xt(l,q);l=Fuh(l);JC();q=[];p=dgc(a);for(e=0;e<p.length;e++){g=
p[e];a:{h=void 0;k=egc(a,g);try{h=new RegExp(ky(c),"gmi")}catch(A){h=Zm(A);if(fn(h)){h=!1;break a}throw h.Ea;}h=!!h.exec(k)}h&&q.push(new Yv(g,g+1|0))}a=Fuh(q);q=!1;f&&(c=f.f5a(c,u),Xt(w,c),q=!0);Mt(l)||(Xt(w,l),q=!0);Mt(a)||(Xt(w,a),q=!0);q&&du(w,q_g)}return w}function $_h(a){if(!a.Da){var c;a.Da=(c=a.Ca,c())}return a.Da};function a0h(a,c,e,f,g){this.J=this.F=!1;b0h(this,a,c,e,f,g)}H(a0h,tw);function b0h(a,c,e,f,g,h){a.H=new hx;a.D=g;a.O=c;a.H.Pa(e,function(k){if(!o_g(k.F,k.D)){k=k.F;var l=[],p=a.O.AJ();!k||o_g(k,p)||k.H||l.push(k.D);p&&!p.H&&l.push(p.D);l.length>0&&a.D.D(XOa,l)}});a.H.Pa(f,function(k){k.H&&c0h(a,k)});a.xa(a.H);a.J=h.Ha(NAa)}
function c0h(a,c){if(a.J)if((c.F.length+c.D.length|0)>1E3)a.D.D(WOa,[new Yv(0,2147483647)]);else{var e=[];yu(e,c.F.map(function(f){return f.D}));yu(e,c.D.map(function(f){return f.D}));a.D.D(WOa,e)}else a.D.D(WOa,[new Yv(0,2147483647)])};function d0h(a,c,e,f,g,h){this.F=a;this.D=c;this.O=e;this.J=f;this.R=g;this.H=h}H(d0h,K);function e0h(a){this.Xc=zlg;this.D=a}H(e0h,GD);e0h.prototype.FQ=function(a){return a instanceof e0h?new e0h(this.D+a.D|0):null};function f0h(){}H(f0h,fH);f0h.prototype.D=function(a){return new g0h(a)};f0h.prototype.Ul=B(Mk);function g0h(a){h0h();nF.call(this,xlg,a)}var i0h;H(g0h,gH);g0h.prototype.Vc=function(a){var c=a.D,e=CZb(a.F);a=a.H;qF(this,new nXh(this.getContext(),c,e,a,null))};function h0h(){h0h=r();i0h=new f0h};function j0h(a){this.D=a}H(j0h,K);function k0h(){}H(k0h,fH);k0h.prototype.D=function(a){return new l0h(a,0)};function m0h(){}H(m0h,fH);m0h.prototype.D=function(a){return new l0h(a,1)};function n0h(){}H(n0h,K);D=n0h.prototype;D.URa=function(a,c){for(var e=[],f=0;f<a.length;f=f+1|0){for(var g=a[f],h=c.yn(ml,ew(g),fw(g),null,null,null).D,k=null,l=null,p=h.Yc(),q=0;q<p.length;q=q+1|0){var u=+p[q]|0,w=lB(h.get(u).zd());q==0?(k=w,l=O(u)):go(k,w)||(e.push(new Yv(g.start+l.yb(),g.start+u-1)),k=w,l=O(u))}k!=null&&e.push(new Yv(g.start+l.yb(),g.end))}return e};D.p7a=function(a,c,e,f){a=lB(a.getStyle(ml,ew(c[f])));c={};c.ts_fs=o0h(this,a);return c};
D.Loa=function(a){a=lB(a.Fy());var c={};c.ts_fs=o0h(this,a);return c};D.WNa=function(a,c,e){a=a.Eg(Mi,e);a=lB(OC(a));c={};c.ts_fs=o0h(this,a);return c};D.o7a=function(a,c){a=a.Pm(Mi,c);a=OC(a);if(Gn(!0,a.getValue(ceb)))return null;c={};c.ts_fs=o0h(this,lB(a));return c};D.n7a=function(a,c,e,f){a=a.Dd(e);if(!a)return{};f=lB(gG(a,f).J);a={};a.ts_fs=o0h(this,f);return a};function o0h(a,c){if(a.D.D>0){if(c>400)return c}else if(c<1)return c;return w8g(c+a.D.D)};function l0h(a,c){p0h();nF.call(this,Lkg,a);this.H=c}var q0h,r0h;H(l0h,gH);l0h.prototype.Vc=function(a){var c=new n0h;c.D=a;c=new dZh(this.getContext(),c,this.H);qF(this,c);this.D=new s0h(a.D)};l0h.prototype.R=function(){return[$8f,b9f]};function p0h(){p0h=r();q0h=new m0h;r0h=new k0h};function s0h(a){this.Xc=Lkg;this.D=a;this.F=0}H(s0h,GD);function t0h(a,c,e){if(!Jt(c,400)||!Jt(c,700))throw en("xt").Ea;if(e&&!Jt(c,e.yb()))throw Vm("CP").Ea;this.D=a;this.H=c;this.F=e}H(t0h,K);function u0h(){}H(u0h,fH);u0h.prototype.D=function(a){return new v0h(a,0)};function w0h(){}H(w0h,fH);w0h.prototype.D=function(a){return new v0h(a,1)};function x0h(){}var y0h=[Fl,Tdb];H(x0h,K);D=x0h.prototype;D.URa=function(a,c){return B_h(a,c,y0h)};D.p7a=function(a,c,e,f){a=a.getStyle(ml,ew(c[f]));return z0h(this,a)};D.Loa=function(a){a=a.Fy();return z0h(this,a)};function z0h(a,c){var e={};a=H_h(H2b(c),a.D.D,a.D.F,a.D.H);av(e,Fl,a.H);e.ts_bd=a.D;e.ts_tw=a.F;return e}D.WNa=function(a,c,e){a=a.Eg(Mi,e);return z0h(this,OC(a))};D.o7a=function(a,c){a=OC(a.Pm(Mi,c));return Gn(!0,a.getValue(Zdb))?null:z0h(this,a)};
D.n7a=function(a,c,e,f){a=a.Dd(e);if(!a)return{};f=gG(a,f).J;return z0h(this,f)};function v0h(a,c){A0h();nF.call(this,Kkg,a);this.H=c}var B0h,C0h;H(v0h,gH);v0h.prototype.Vc=function(a){var c=new x0h;c.D=a;c=new dZh(this.getContext(),c,this.H);qF(this,c);this.D=new D0h(a.D,a.F)};v0h.prototype.R=function(){return[$8f,b9f]};function A0h(){A0h=r();B0h=new w0h;C0h=new u0h};function D0h(a,c){this.Xc=Kkg;this.D=a;this.F=c}H(D0h,GD);function E0h(){}H(E0h,fH);E0h.prototype.D=function(a){return new F0h(a)};function F0h(a){G0h();nF.call(this,Wkg,a)}var H0h;H(F0h,gH);
F0h.prototype.Vc=function(a){var c=Xu(a.O),e=Xu(a.J),f=Xu(a.H),g=a.F?a.F.clone():null,h=a.D,k=this.getContext().ub();a=k.Aa();k=k.hb();var l=k.getSelection().zc;if(g&&!a.wq(g.getId())){var p=kF(ui);av(f,Si,p);var q=g.xd();a.T$(g.getType())&&(q=a.nca(q,g.getType()));oF(this,dM(g.getType(),p,q,this.getContext().lb().Ha(mg)))}switch(l.getType()){case 0:g=k.getSelection().D;g.length>0?l=g:(l=[Fhd(a,l,!1,this.getContext().V.D())],l[0].end--);if(!h)for(p=0;p<l.length;p=p+1|0)q=l[p],qF(this,DG(this.getContext(),
ml,c,ew(q),fw(q)));c=k.getSelection();if(h||e&&(g.length<=0||Esh(a,c)||Fsh(a,c)))if(qF(this,czd(this.getContext(),e,!0)),f)for(a=pG(a,c),e=0;e<a.length;e=e+1|0)qF(this,DG(this.getContext(),Mi,f,+a[e]|0,+a[e]|0));break;case 2:case 3:for(f=Xu(c),a1b(f,!1),f={ls_ts:f},a=qfd(a,l),e=0;e<a.length;e=e+1|0)qF(this,DG(this.getContext(),Mi,f,+a[e]|0,+a[e]|0))}};F0h.prototype.R=function(){return[$8f,a9f,b9f]};function G0h(){G0h=r();H0h=new E0h};function I0h(a,c,e,f,g){this.D=!1;this.O=a?Xu(a):{};this.J=c?Xu(c):{};this.H=e?Xu(e):{};this.F=f?f.clone():null;this.D=g}H(I0h,K);
function J0h(a){var c=a.hb(),e=c.getSelection(),f=e.zc,g=a.Aa(),h=null,k=null;a=null;if(tgd(f))h=sgd(f),(k=g.getStyle(Mi,h))&&MC(k)&&(a=g.Dd(MC(k)).clone()),c=OC(k).Hb(Uz),k=k.Hb(Uz),h=g.getStyle(Jj,h).Hb(Uz),g=!0;else{var l=c.Bh();c=g.getStyle(ml,l).Hb(Uz);f=Esh(g,e);if(!e.Qd||f||Fsh(g,e))h=g.getStyle(Jj,l).Hb(Uz),e=g.getStyle(Mi,l),k=e.Hb(Uz),e&&MC(e)&&(a=g.Dd(MC(e)).clone(),$0b(gG(a,NC(e)))&&f&&cv(k,Ri,Xu(Gmc())));g=!1}return new I0h(c,h,k,a,g)};function K0h(){}H(K0h,fH);K0h.prototype.D=function(a){return new L0h(a)};function L0h(a){M0h();nF.call(this,Rkg,a)}var N0h;H(L0h,gH);L0h.prototype.Vc=function(a){var c=this.getContext();N0h.canApply(c)&&(c=Cah(this.getContext(),a.D,!0),qF(this,c),a=this.getContext().ub().hb().getSelection(),this.D=new PWh(Rkg,c.O,!!a.Qd,!0),(c=this.getContext().b9(!0))&&qF(this,c),pF(this,a,!0))};function M0h(){M0h=r();N0h=new K0h};function O0h(a){this.D=a}H(O0h,K);function P0h(){}H(P0h,fH);P0h.prototype.D=function(a){return new Q0h(a)};P0h.prototype.Ul=B(Mk);P0h.prototype.wC=B(!0);function Q0h(a){R0h();nF.call(this,Clg,a)}var S0h;H(Q0h,gH);Q0h.prototype.Ar=B(!1);Q0h.prototype.eT=B(!0);Q0h.prototype.Vc=function(a){qF(this,new YAd(this.getContext(),a.F,a.D));CBd();var c=$v(DBd.F,a.F)&&cu(DBd.D,a.D);this.D=new T0h(a.H,c)};Q0h.prototype.R=function(){return["setComposingRegion"]};function R0h(){R0h=r();S0h=new P0h};function T0h(a,c){this.Xc=Clg;this.F=a;this.D=c}H(T0h,GD);T0h.prototype.wN=B(!1);T0h.prototype.VNa=function(){return this.D?this.F:null};T0h.prototype.WWa=!0;function U0h(a,c,e,f){var g=a.Aa(),h=Sth(g,a.hb()),k=h.H,l=h.F,p=h.D,q=h="",u=0,w=!1;if(k==0){k=Tth(g,l);for(var y=0;y<p.length;y=y+1|0){var z=p[y];h=y>0?M(h)+"\n":h;h=M(h)+M(g.Xa().slice(ew(z),fw(z)));k||(k=Tth(g,z));z.start==l.start&&(u=y)}Ko(h,"\n")&&(h=Cn(h,0,h.length-1|0));if(k)k.getType()==0&&(q=k.getUrl()),w=!0;else if((c=qQh(h,c,e))&&(q=c.D),Co(q)&&(q=sQh(h,e),!q||(q=$mh(q))),f&&Co(q)&&V0h(g)&&(q=tQh(h),!q||(q=anh(q))),!Co(q))return new W0h(q,rZg(h),!0)}else k==1&&(h=g.Xa().slice(ew(l),fw(l)),
e=g.getStyle(Li,fw(l)).Ni(),e.getType()==0&&(q=e.getUrl()),w=!0);w&&(e=new xC(ew(l),fw(l),tC(fw(l)+1|0)),l=new xC(ew(l),fw(l),tC(ew(l))),p.splice(u,1),a.yv(Gjc(e,l,p),!0,!0));a=q;h=rZg(h);return new W0h(a,h,null)}function V0h(a){return(a=a.getStyle(z2a,0))&&a.D?a.D===Vg:!1};function W0h(a,c,e){this.D=!1;this.H=a;this.F=c;this.D=!0===e}H(W0h,K);W0h.prototype.getUrl=x("H");W0h.prototype.Ic=x("F");function X0h(){}H(X0h,fH);X0h.prototype.D=function(a){return new Y0h(a)};function Y0h(a){Z0h();nF.call(this,ylg,a)}var $0h;H(Y0h,gH);Y0h.prototype.Vc=function(a){var c=this.getContext().ub().Aa();a=a.D;if(!a){a=this.getContext().ub().hb();if(!Uth(c,a))return;a=Sth(c,a).D[0]}c=c.Xa().slice(ew(a),fw(a));var e=MOh(c);if(LOh(c)&&e!=null){qF(this,new i_g(this.getContext(),e,a,!0));var f=ew(a)+e.length|0;HYc(this,BC(tC(f)),!0,null);var g=jVg(c);a=new Yv(a.start,f-1|0);qF(this,new PUh(this.getContext(),a,g,!0));this.D=new a1h(c,e)}};function Z0h(){Z0h=r();$0h=new X0h};function a1h(){this.Xc=ylg}H(a1h,GD);function b1h(){this.F=0}H(b1h,K);function c1h(){}H(c1h,K);function d1h(a,c,e){this.D=a;this.F=c;this.H=e}H(d1h,AG);
d1h.prototype.El=function(){for(var a=this.getContext().ub().Aa(),c=this.F,e=[],f=[],g=[],h={},k=0,l=null,p=0;p<c.length;p++){var q=c[p],u=a.getStyle(Mi,q),w=MC(u);w?(l=null,k=NC(u),w in h||(h[w]=!0,g.push(w),Eu(f,efd(a,w)))):(l||(u=l=new b1h,u.F=k,u.D=[],e.push(l)),l.D.push(q))}c=new c1h;c.D=g;c.H=f;c.F=e;if(!(c.D.length>0))return a=rG(a,+this.F[0]|0)-1|0,a=new TUh(this.getContext(),this.F,a,this.H),FD(this,a);a=c.D[0];e=this.getContext();FD(this,new e1h(e,a,this.H,null));e=c.H;for(f=0;f<e.length;f++)g=
e[f],h={ls_id:a},FD(this,new lYh(this.getContext(),h,g));e=c.F;f=!1;for(g=e.length-1|0;g>=0;g=g-1|0)p=e[g],c=this.getContext(),h=p.D,k=a,p=O(p.F),c=new xah(c,h,k,!0,!0,p,null,null),f=f||FD(this,c).D;return new $Uh(2,this.F.length,VUh(this.H,0),f)};function f1h(a,c,e){this.D=a;this.J=c;this.O=e}H(f1h,BG);f1h.prototype.H=function(){var a=this.getContext().ub().Aa().Dd(this.J),c={},e=$u(this.O,Gi);if(e)for(var f=0;f<=8;f=f+1|0){var g=gG(a,f).D,h=CDb(e,kG(f));h=h?Zu(h,Noa):null;nsh(O(g),h)&&(c[f]=!0)}if(!Wu(c))for(a=this.getContext().ub().Aa(),e=this.J,eG(),c=ifd(a,e,c,2147483647,2147483647),a={ls_c:Xu(Gmc())},e=0;e<c.length;e++)f=c[e],jF(this,new CG(this.getContext(),Mi,a,f,f,!0));jF(this,vah(this.getContext(),Mi,this.J,this.O))};function e1h(a,c,e,f){this.D=a;this.O=c;this.R=e;this.J=f}H(e1h,BG);
e1h.prototype.H=function(){var a=this.getContext().ub().Aa(),c={},e;if(!(e=!this.J))a:{var f=this.J;e=+f[0]|0;f=+f[f.length-1|0]|0;for(var g=a.eg(Mi),h=0;h<g.length;h=h+1|0){var k=+g[h]|0;if((k<e||k>f)&&(k=a.Eg(Mi,k))&&MC(k)!=null&&L(MC(k),this.O)){e=!1;break a}}e=!0}if(e)for(a=0;a<=8;a=a+1|0)e=kG(a),cv(c,e,Xu(this.R.D[a].Jc()));else for(e=0;e<this.J.length;e=e+1|0)f=NC(a.Eg(Mi,+this.J[e]|0)),g=kG(f),c[g]==null&&cv(c,g,Xu(this.R.D[f].Jc()));a={};cv(a,Gi,c);jF(this,new f1h(this.getContext(),this.O,
a))};function g1h(a,c){this.D=!1;this.F=a;this.D=c!=null&&c}H(g1h,K);function h1h(){}H(h1h,fH);h1h.prototype.D=function(a){return new i1h(a)};function i1h(a){j1h();nF.call(this,Qkg,a)}var k1h;H(i1h,gH);
i1h.prototype.Vc=function(a){var c=a instanceof pVh?new g1h(a.D,null):a;a=c.F;var e=this.getContext().ub(),f=e.Aa(),g=e.hb().getSelection();e=Ish(f,g);if(c.D&&l1h(f,e,a))e=f.Eg(Mi,+e[0]|0),c=qF(this,new lzd(this.getContext(),!1)).yb(),this.D=new m1h(3,c,VUh(a,NC(e)),0);else for(c=!1,f=Ksh(f,g),g=0;g<f.length;g++){var h=f[g],k=qF(this,new d1h(this.getContext(),h,a)),l=+e[0]|0;h=new Yv(+h[0]|0,+h[h.length-1|0]|0);!c&&dw(h,l)&&(this.D=new m1h(k.getType(),k.kK(),k.F,k.D?1:2),c=!0)}};
function j1h(){j1h=r();k1h=new h1h};function m1h(a,c,e,f){this.Xc=Qkg;this.O=a;this.H=c;this.D=e;this.F=f}H(m1h,GD);m1h.prototype.rk=x("O");m1h.prototype.kK=x("H");function n1h(a,c,e){for(var f=0;f<c.length;f++){var g=a.Eg(Mi,c[f]);if(!g)return!1;var h=MC(g);if(!h)return!1;g=NC(g);h=a.Dd(h);if(!h)return!1;h=gG(h,g);if(bB(h)!=X0b(e.D[g].D.b_gt)||$0b(h)!=Z0b(e.D[g].D.b_gt))return!1}return!0}function l1h(a,c,e){for(var f={},g=0;g<c.length;g++){var h=a.Eg(Mi,c[g]);if(!h)return!1;h=MC(h);if(!h)return!1;h=a.Dd(h);if(!h)return!1;if(!By(f,h.getId())){var k=f,l=h.getId();k[l]=!0;if(!ZUh(e,h))return!1}}return!0};function o1h(){}H(o1h,fH);o1h.prototype.D=function(a){return new p1h(a)};function p1h(a){q1h();nF.call(this,dlg,a)}var r1h;H(p1h,gH);
p1h.prototype.Vc=function(){var a=this.getContext().ub(),c=a.Aa();a=a.hb().getSelection();for(var e=Ksh(c,a),f=0;f<e.length;f++){var g=e[f];if(xsh(c,g)){g=+g[0]|0;var h=wsh(c,g),k=c.getStyle(Mi,g);k=MC(k);for(var l=efd(c,k),p=0;p<l.length;p++){var q=l[p];if(!(q<g)){var u={ls_id:h};qF(this,DG(this.getContext(),Mi,u,q,q));u=c;var w=h,y=NC(u.Eg(Mi,q));u=gG(u.Dd(w),y);u={ps_ifl:u.R,ps_il:u.H};qF(this,DG(this.getContext(),Jj,u,q,q))}}It(efd(c,k))&&qF(this,new Rnd(this.getContext(),k));a.zc.getType()==
3&&pF(this,BC(new mG(h,0,g)),!1)}}};function q1h(){q1h=r();r1h=new o1h};function s1h(){}var t1h=[Qkg,Hlg,Jlg];H(s1h,K);s1h.prototype.F=function(a){var c=[],e=a.Xc;if(e===Qkg){switch(a.F){case 1:c.push(41070);break;case 2:c.push(41071)}a.D==2&&c.push(41115)}else if(e===Hlg)switch(a.F){case 1:c.push(41070);break;case 2:c.push(41071)}else e===Jlg&&a.D==17&&c.push(41113);return c.map(function(f){return mph(f)})};s1h.prototype.D=function(){return t1h};function u1h(a,c,e,f){this.Xc=Hlg;this.O=a;this.H=c;this.D=e;this.F=f}H(u1h,GD);u1h.prototype.rk=x("O");u1h.prototype.kK=x("H");function v1h(a,c){this.Xc=Jlg;this.F=a;this.D=c}H(v1h,GD);v1h.prototype.getSelection=x("F");function w1h(a){this.D=a}H(w1h,K);function x1h(a){var c;if(a=(c=a.D,c())){c=a.Aa();var e=oG(c.Xa(),a.hb().Jd());fG(c,e)&&(c=BC(new lG(e)),a.Mh(c,!0,!0,"text-listItem"))}}function y1h(a){var c;if(a=(c=a.D,c())){var e=a.Aa();c=oG(e.Xa(),a.hb().Jd());fG(e,c)&&(e=e.getStyle(Mi,c),c=BC(new mG(MC(e),NC(e),c)),a.Mh(c,!0,!0,"text-listNestingLevel"))}}
function z1h(a,c){var e;if(a=(e=a.D,e())){var f=a.Aa();e=wA(f.Xa(),"\n",a.hb().Jd());e=Ard(f,Mi,function(g,h,k){return A1h(f,!1,g,h,k)},e,!0,c);e>=1&&(e=rG(f,e),e=BC(tC(e)),a.Mh(e,!0,!0,c?RRg:HRg))}}function B1h(a,c){var e,f=(e=a.D,e());if(f){var g=f.Aa();e=wA(g.Xa(),"\n",f.hb().Jd());fG(g,e)?(a=Ard(g,Mi,function(h,k,l){return A1h(g,!0,h,k,l)},e,!0,c),a>=1&&(a=rG(g,a),a=BC(tC(a)),f.Mh(a,!0,!0,c?SRg:IRg))):z1h(a,c)}}
function A1h(a,c,e,f,g){f=MC(e);var h=MC(g);return h==null||!a.wq(h)||L(e,g)||!c&&L(h,f)||c&&!L(h,f)?null:g};function eU(a){this.D=0;this.J=a;this.H=[];this.F=[]}H(eU,K);function C1h(a,c,e,f,g){c=new cVh(c,e,f,g);a.H.push(c);a.D=a.D+1|0;return a}function fU(a,c,e,f){return C1h(a,c,e,f,null)}function gU(a,c,e){return C1h(a,"%"+a.D,9,e,c)}function mU(a,c,e){return C1h(a,"%"+a.D,e,c,null)}function D1h(a,c){a.F=c;return a}eU.prototype.oa=function(){return new dVh(this.H,this.J,!1,this.F)};function E1h(a){this.D=a}H(E1h,K);function F1h(a,c){var e;a=(e=a.D,e());if(!a)return-1;e=a.Aa();a=a.hb();a=Ish(e,a.getSelection());if(msh(e,a))for(a=e.Eg(Mi,+a[0]|0),e=e.Dd(MC(a)),a=0;a<c.length;a=a+1|0)if(ZUh(c[a].D,e))return a;return-1};var G1h=[f$f,e$f,yag,td,Tqa,$ag,ota,fdg,idg,hdg,gdg,jdg,kdg,odg,pdg,qdg,HLg,JLg,ILg,LLg,MLg,KLg,OLg,"plus",SPg,XQg];function H1h(a,c){I1h();this.J=!1;this.H=a;this.F=c;this.D={}}var J1h,K1h,L1h,M1h,N1h,O1h,P1h,Q1h,R1h,S1h,T1h,U1h,V1h,W1h,X1h,Y1h,Z1h;H(H1h,K);
H1h.prototype.oa=function(){for(var a=0;a<G1h.length;a=a+1|0){var c=G1h[a];if(!this.D[c]&&(c!==Tqa&&c!==$ag||this.J))throw kn("DP`"+M(G1h[a])).Ea;}a=[this.D[gdg],this.D[fdg],this.D[jdg],this.D[ILg],this.D[KLg],this.D[SPg],this.D[kdg],this.D[idg],this.D[hdg],this.D[HLg],this.D[JLg],this.D[LLg],this.D[MLg]];c=[this.D[yag],this.D[qdg],this.D[pdg],this.D.checkbox,this.D.dash,this.D.plus,this.D[OLg],this.D[e$f],this.D[XQg],this.D[odg],this.D[f$f]];var e=this.J?[this.D.checklist,this.D[$ag]]:[],f=$1h(a),
g=$1h(c),h=$1h(e);return new a2h(a,c,e,f,g,h,a[0],c[0],e[0])};function $1h(a){for(var c=[],e=0;e<a.length;e=e+1|0){var f=a[e];f.O&&c.push(f)}return c}function nU(a,c,e,f,g,h){Ru(a.D,e,new pVh(c,e,f,g,h,a.H))}
function I1h(){I1h=r();J1h=RegExp("^\\*$","g");K1h=RegExp("^\\u2022$","g");M1h=RegExp("^-$","g");Q1h=RegExp("^1\\.$","g");N1h=RegExp("^1\\)$","g");O1h=RegExp("^\\(1\\)$","g");P1h=RegExp("^1\\.\\)$","g");R1h=RegExp("^01\\.$","g");S1h=RegExp("^a\\.$","g");T1h=RegExp("^a\\)$","g");U1h=RegExp("^\\(a\\)$","g");V1h=RegExp("^A\\.$","g");W1h=RegExp("^A\\)$","g");X1h=RegExp("^\\(A\\)$","g");Y1h=RegExp("^\\+$","g");Z1h=RegExp("^I\\.$","g");L1h=RegExp("^\\[\\]$","g")};function a2h(a,c,e,f,g,h,k,l){this.V=a;this.O=c;this.F=f;this.H=g;this.J=h;this.R=k;this.D=l}H(a2h,K);function b2h(a,c,e){return"Bulleted list: "+a+ua+c+ua+e}function c2h(a,c,e){return"Numbered list: "+a+ua+c+ua+e};function d2h(a){this.D=0;this.D=a?a.yb():1}H(d2h,K);function e2h(){}H(e2h,fH);e2h.prototype.D=function(a){return new f2h(a)};function f2h(a){g2h();nF.call(this,Blg,a)}var h2h;H(f2h,gH);
f2h.prototype.Vc=function(a){var c=this.getContext().ub(),e=c.Aa();a=a.D;this.D=new i2h(a);var f=c.hb().getSelection().zc;if(f.getType()==3)c=f.J,e=j2h(e,a,c,f.F),qF(this,vah(this.getContext(),Mi,c,e));else for(c=Ksh(e,c.hb().getSelection()),f=0;f<c.length&&c[f];f=f+1|0){var g=c[f];if(zsh(e,g)){g=+g[0]|0;var h=e.Eg(Mi,g),k=MC(h);h=NC(h);var l=j2h(e,a,k,h),p=e,q=g;eG();if(fG(p,q)&&osh(p,q).D.length==0)qF(this,vah(this.getContext(),Mi,k,l));else for(p=kF(ui),qF(this,new YUh(this.getContext(),p,l)),
k=efd(e,k),l=0;l<k.length;l++)if(q=k[l],q>=g){var u=NC(e.Eg(Mi,q));if(u<h)break;u>=h&&(u={ls_id:p},qF(this,DG(this.getContext(),Mi,u,q,q)))}}}};function j2h(a,c,e,f){a=a.Dd(e);if(!a)throw en("EP").Ea;a=a.xd();CDb($u(a,Gi),kG(f)).b_sn=c;return a}function g2h(){g2h=r();h2h=new e2h};function i2h(a){this.Xc=Blg;this.D=a}H(i2h,GD);function k2h(a){this.D=a}H(k2h,K);function l2h(){}H(l2h,K);function m2h(a,c){var e=new l2h;e.D=a;e.F=c;return e};function n2h(){}H(n2h,fH);n2h.prototype.D=function(a){return new o2h(a)};function o2h(a){p2h();nF.call(this,Hlg,a)}var q2h;H(o2h,gH);
o2h.prototype.Vc=function(a){a=a.D;var c=this.getContext().ub(),e=c.Aa(),f=c.hb().getSelection(),g=f.zc;switch(g.getType()){case 2:g=[g.H];break;case 3:g=[g.O];break;default:g=Ish(e,f)}if(n1h(e,g,a))e=e.Eg(Mi,+g[0]|0),g=qF(this,new lzd(this.getContext(),!1)).yb(),this.D=new u1h(0,g,VUh(a,NC(e)),0);else{g=+g[0]|0;c=c.hb().Jd();nZb(e.Xa(),c)&&!yC(f)&&rG(e,c)==c&&(g=new Pod(c,"\n"),oF(this,g),g=c);f=Ksh(e,f);c=[];for(var h=0;h<f.length;h++)Eu(c,f[h]);var k=Kt(c),l=r2h(c,c);for(h=0;h<f.length;h++){for(var p=
f[h],q=[],u=p,w=0;w<u.length;w++)q.push(l[u[w]]|0);a:{u=e;l=q;q=a;b:{w=u;for(var y=l,z=0;z<y.length;z++)if(!fG(w,y[z])){var A=!1;break b}A=!0}w=MC(u.getStyle(Mi,+l[0]|0));z=+l[l.length-1|0]|0;y=MC(u.getStyle(Mi,z));if(fG(u,+l[0]|0)&&!A&&n1h(u,[+l[0]|0],q))q=s2h(this,l,w,q,k,null);else{A=rG(u,+l[0]|0)-1|0;if(w==null&&(A=t2h(this,u,l,A,q,k))){q=A;break a}A=zA(u.Xa(),z);z=z<A?oG(u.Xa(),z+1|0):-1;if(z>0&&y==null&&(A=t2h(this,u,l,z,q,k))){q=A;break a}msh(u,l)?(qF(this,new e1h(this.getContext(),w,q,l)),
q=m2h(new u1h(3,l.length,VUh(q,0),0),k)):(z=Ezd(this.getContext().O),u=this.getContext(),w=l,y=aVh(q,z),z=bVh(q,z),k=qF(this,new WUh(u,w,y,0,z,k)),q=m2h(new u1h(1,l.length,VUh(q,0),k.D?1:2),k.F))}}k=q.F;l=r2h(c,k);dw(new Yv(+p[0]|0,+p[p.length-1|0]|0),g)&&(this.D=q.D)}}};
function t2h(a,c,e,f,g,h){if(!fG(c,f))return null;var k=c.getStyle(Mi,f),l=MC(k);if(n1h(c,[f],g))return s2h(a,e,l,g,h,O(NC(k)));a:{if(c=c.Dd(l))for(c=c.D,f=0;f<=8;f=f+1|0)if(gVh(g,$fd(c,f),f)){c=f;break a}c=-1}return c>=0?s2h(a,e,l,g,h,O(c)):null}function s2h(a,c,e,f,g,h){var k=a.getContext();a=qF(a,new xah(k,c,e,!0,!0,h,null,g));return m2h(new u1h(2,c.length,VUh(f,h?h.yb():0),a.D?1:2),a.F)}
function r2h(a,c){Wzb(a.length==c.length,"Properties: %s, Values: %s",a,c);for(var e={},f=0;f<a.length;f=f+1|0)e[+a[f]|0]=+c[f]|0;return e}function p2h(){p2h=r();q2h=new n2h};function u2h(a,c,e,f){this.J=a;this.D=c||null;this.H=e||null;this.F=f}H(u2h,K);u2h.prototype.Vk=x("F");function v2h(a){return new u2h(a.b_gt,a.b_gs,a.b_gf,a.b_a==null?null:O(a.b_a))};function w2h(){}H(w2h,fH);w2h.prototype.D=function(a){return new x2h(a)};w2h.prototype.canApply=function(a){if(!fH.prototype.canApply.call(this,a))return!1;a=a.ub().hb().getSelection().zc.getType();return a==0||a==3||a==2};function x2h(a){y2h();nF.call(this,Jlg,a)}var z2h;H(x2h,gH);
x2h.prototype.Vc=function(a){var c=a.J,e=mAb(a.D?lnb(Bjb(nnb(a.D,0))):a.D),f=a.H||null,g=a.Vk();a=this.getContext().ub();var h=a.Aa();a=a.hb();var k=a.getSelection().zc;if(k.getType()==2||k.getType()==3&&Bsh(h,k)){a=sgd(k);var l=h.getStyle(Mi,a),p=MC(l),q=h.Dd(p);l=NC(l);q=gG(q,l);var u=rG(h,a)-1|0;u=MC(h.getStyle(Mi,u));var w=null;zA(h.Xa(),a)>a&&(w=oG(h.Xa(),a+1|0),w=MC(h.getStyle(Mi,w)));A2h(h,u,q,l,c,e,f,g)?c=B2h(this,a,u,c):A2h(h,w,q,l,c,e,f,g)?c=B2h(this,a,w,c):k.getType()==3||Bsh(h,k)?c=C2h(this,
h,p,l,c,e,f,g):(k=h.getStyle(Mi,a),p=h.Dd(MC(k)),h=NC(k),k=gG(p,h),p=p.D.clone(),l=p.Oc,e=Av(vv(),kG(h),D2h(k,h,c,e,f,g)).oa(),l.call(p,e),e={le_nb:p.xd()},f=kF(ui),qF(this,new YUh(this.getContext(),f,e)),e={ls_id:f},qF(this,new CG(this.getContext(),Mi,e,a,a,!0)),c=new v1h(0,c));this.D=c}else k.getType()==3?this.D=C2h(this,h,k.J,k.F,c,e,f,g):k.getType()==0&&dfd(h,a)&&(a=h.getStyle(Mi,k.D-(k.F?1:0)|0),this.D=C2h(this,h,MC(a),NC(a),c,e,f,g))};
function A2h(a,c,e,f,g,h,k,l){if(c==null)return!1;a=a.Dd(c);if(!a)return!1;a=gG(a,f);g=D2h(e,f,g,h,k,l);Joa in g||av(g,Joa,e.W);return vz(Y0b(a.D)?hVh(a,f):a,g)}function B2h(a,c,e,f){e={ls_id:e};qF(a,new lYh(a.getContext(),e,c));return new v1h(0,f)}function C2h(a,c,e,f,g,h,k,l){c=gG(c.Dd(e),f);f={le_nb:Av(vv(),kG(f),D2h(c,f,g,h,k,l)).oa()};qF(a,new f1h(a.getContext(),e,f));return new v1h(1,g)}
function D2h(a,c,e,f,g,h){f={b_gt:e,b_gs:f||""};e=X0b(e);var k=tfd(a,c);!(g||c>0&&(new RegExp("%([0-"+(c-1|0)+"])")).test(k.D))&&(bB(a)&&!e?g="%"+c:!bB(a)&&e?g="%"+c+".":Y0b(a.D)&&(g=k.D));!g||av(f,Joa,g);h&&(f.b_a=h.yb());return f}function y2h(){y2h=r();z2h=new w2h};function E2h(a){return new wth([],[],Hth(Gth(Eth(Fth(new XS,[l5a]),[n5a]),function(c){return a.xg()&&c instanceof ZUd}),function(c){return a.xg()&&c instanceof xjd}).oa(),function(){return a.xg()})};function F2h(){this.D=!1;this.F=0}H(F2h,K);function G2h(a,c){var e=new F2h;e.D=a;e.F=c;return e};function H2h(a){this.H=a;this.D=new LB;this.F=new Yv(0,0)}H(H2h,K);H2h.prototype.initialize=function(a){this.D=new LB;this.F=new Yv(0,0);for(var c=0;c<a.length;c=c+1|0){var e=$Wg(this.H.CD(),a,c);e&&(c=e.D,I2h(this,e))}this.D.size();return this.F=new Yv(0,a.length-1|0)};
H2h.prototype.J=function(a,c,e){this.F=new Yv(Infinity,-Infinity);var f=PB(this.D,c,!1),g=this.D.get(f);if(g){var h=c==(f+g.F|0);var k=c==(f+(e?0:-1)|0)||h}else k=!1;h=e&&GUg(Vn(a.charCodeAt(c)));if(k&&h)return this.D.shift(c,1),new Yv(c,c);h=!!g&&c>=f&&c<(f+g.F|0);if(!g||!h&&!g.D){for(g=f=e?c+1|0:c;g>0&&!GUg(Vn(a.charCodeAt(g-1|0)));)g=g-1|0;for(;f<(a.length-1|0)&&!GUg(Vn(a.charCodeAt(f+1|0)));)f=f+1|0;this.F=new Yv(g,f);e?this.D.shift(c,1):this.D.splice(c,1);(c=J2h(this,a,c))?I2h(this,c):(c=J2h(this,
a,ew(this.F)))&&I2h(this,c);return this.F}a=k;k=f;var l=g;h&&!g.D?(k=PB(this.D,f-1|0,!1),this.D.get(k)):(f=PB(this.D,k+1|0,!0),l=this.D.get(f));!a&&h&&(this.D.remove(k),this.D.remove(f));e?this.D.shift(c,1):this.D.splice(c,1);return new Yv(k,f+l.F-1+(e?1:-1)|0)};function J2h(a,c,e){var f=$Wg(a.H.CD(),c,e);if(f&&!a.D.get(f.D))return f;f=a.H.CD();return(c=ZWg(f,c,e,!1))&&!a.D.get(c.F)?c:null}
function I2h(a,c){if(!K2h(a,c)){var e=c.F,f=c.H.D.length,g=c.D,h=g-f+1|0;a.D.set(e,G2h(!0,c.H.F.length));a.D.set(h,G2h(!1,f));a.F=new Yv(Math.min(e,ew(a.F)),Math.max(g,fw(a.F)))}}function K2h(a,c){var e=PB(a.D,c.F,!1);if(e==-1)return!1;if((e=a.D.get(e))&&e.D)return!0;c=PB(a.D,c.D,!1);if(c==-1)return!1;a=a.D.get(c);return!!a&&a.D};function L2h(){this.D=0}H(L2h,K);L2h.prototype.initialize=function(a){a=this.F.initialize(a);return a=M2h(this,a)};L2h.prototype.J=function(a,c,e){a=this.F.J(a,(c-this.D|0)+(e?-1:0)|0,e);return a=M2h(this,a)};function M2h(a,c){c=new Yv(ew(c)+a.D|0,fw(c)+a.D|0);a.D=0;return c};function N2h(a,c){lw.call(this,a,c);Tm(this,Error(this))}H(N2h,lw);function O2h(a){a=new N2h(a,null);Tm(a,Error(a));return a};var P2h,Q2h,R2h,S2h="\u00bd\u2153\u00bc\u2155\u2159\u215b\u2154\u2156\u00be\u2157\u215c\u2158\u215a\u215d\u215e".split("");function T2h(a,c){if(my(gy(a,c)))return!1;var e;return!!(e=U2h(gy(a,c)))&&e.getType()===5||V2h(a,c)}function V2h(a,c){if(W2h(a,c))return!0;if(gy(a,c)!=="-")return!1;for(var e=c-1|0;e>=0&&my(gy(a,e));)e=e-1|0;if(e<0)return(c+1|0)<a.length&&W2h(a,c+1|0);a=gy(a,e);a=U2h(a);return!!a&&a.getType()!==6}function W2h(a,c){a=gy(a,c);return QKb(a)||!!ny(P2h,a)||!!ny(R2h,a)}
function X2h(){X2h=r();Q2h=new RegExp("[\\d+\\-xX*/\\^\\.,\\(\\)\u00d7\u22c5\u00f7%$#|{}\\[\\] "+M(S2h.join(""))+"]");P2h=RegExp("[.,]");R2h=new RegExp("["+M(S2h.join(""))+"]")};function Y2h(){this.H=!1;this.F=[];this.D=[]}H(Y2h,K);function Z2h(a,c){for(a.H=!1;$2h(a,c);)a3h(a);if(c.getType()!==6)a.D.push(c);else{if(Mt(a.D)||a.D[a.D.length-1|0].getType()!==5)throw O2h(G6f).Ea;a.D.pop()}}function $2h(a,c){if(Mt(a.D)||c.getType()===5||c.getType()===4)return!1;a=a.D[a.D.length-1|0];return c.getType()===6?a.getType()!==5:c.O4()<=a.O4()}function a3h(a){if(a.F.length<2||Mt(a.D))throw O2h(l0f).Ea;var c=a.F.pop(),e=a.F.pop();c=b3h(a.D.pop(),e,c);a.F.push(c)};function c3h(){};function d3h(){}H(d3h,K);function e3h(a){var c=new d3h;c.D=a;return c}function U2h(a){switch(a){case "+":return e3h(0);case "-":return e3h(1);case "*":case "x":case "X":case "\u00d7":case "\u22c5":return e3h(2);case "/":case "\u00f7":return e3h(3);case "^":return e3h(4);case "(":return e3h(5);case ")":return e3h(6);default:return null}}d3h.prototype.getType=x("D");d3h.prototype.O4=function(){switch(this.D){case 0:case 1:return 1;case 2:case 3:return 2;case 4:return 3;default:return-1}};
function b3h(a,c,e){switch(a.D){case 0:return c+e;case 1:return c-e;case 2:return c*e;case 3:if(e==0)throw O2h("Division by 0 is not allowed").Ea;return c/e;case 4:return Math.pow(c,e);default:throw O2h("Tried to apply operation with inapplicable operator type").Ea;}}d3h.prototype.Va=function(a){return L(this,a)?!0:a instanceof d3h?L(this.D,a.D):!1};d3h.prototype.Yb=function(){return jo(qo(this.D,c3h))};function f3h(){this.F=new Y2h;this.D=2}H(f3h,K);function g3h(a,c,e,f,g){this.F=!1;h3h(this,a,c,e,f,g)}H(g3h,tw);function h3h(a,c,e,f,g,h){a.D=c;a.O=e;a.R=f;a.H=g;a.J=h;c=new hx;a.xa(c);c.Pa(a.O.Hf(),function(){a.O.getValue()||i3h(a)});c.Pa(a.J,function(){a.J.getValue()||i3h(a)})}D=g3h.prototype;D.Sta=B(7);D.Tta=function(){j3h(this);return!1};D.aY=function(){j3h(this);return!1};D.fH=r();D.handleError=r();D.DCa=r();
function j3h(a){if(a.J.getValue()&&a.O.getValue())if(k3h(a.D)){var c=(c=a.H.D)&&c.D===10?c:null;var e;if(e=c)if(e=a.D.CE(),e<c.W.yb())e=!1;else{e=a.D.Z4(c.ea.yb(),e-1|0);var f=c.ma;Co(e)||!No(f,e)?e=!1:(L(f,e)?(i3h(a),ich(a.R,c)):$bh(a.H,l3h(c,f.substr(e.length))),e=!0)}if(!e)if(c=a.D.CE(),f=my(a.D.jM(c-1|0))?c-2|0:c-1|0,Lo(a.D.jM(f),"=")){e=f;for(var g=a.D.oya();e>g;){var h=a.D.jM(e-1|0),k=a.D.jM(e);X2h();if(ny(P2h,h)&&(k==null||my(k))||!ny(Q2h,h))break;e=e-1|0}if(e==f)var l=-1;else k=a.D.jM(e),
h=e>g?a.D.jM(e-1|0):null,g=a.D.jM(e+1|0),X2h(),k=my(k)||h==null||lZb(h)||rZb(h)?!0:!!(l=U2h(k))&&l.getType()===6&&my(g),l=k?e:-1;if(l<0)i3h(a);else{e=a.D.Z4(l,c-1|0);a:{g=a.D.Z4(l,f-1|0);X2h();f=new f3h;try{k=g;for(h=0;h<k.length&&!T2h(k,h);)h=h+1|0;if(h>0&&!my(gy(k,h-1|0)))throw O2h(m0f).Ea;g=h>0?k.substr(h):k;if(Co(g))throw O2h(m0f).Ea;for(k=0;k<g.length;k=k+1|0){var p=gy(g,k),q=h=void 0;var u=g,w=k;if(V2h(u,w)){for(var y=w+1|0;y<u.length&&W2h(u,y);)y=y+1|0;var z=Cn(u,w,y);var A=z.length!=1||QKb(z)||
ny(R2h,z)?z:null}else A=null;if((h=A)!=null){k=k+(h.length-1)|0;u=q=void 0;w=f;y=h;var C=ly(y,","),E=ly(y,".");if(C.length>2||E.length>2)throw O2h("Thousands separators unsupported: more than one separator").Ea;if(C.length>1&&E.length>1)throw O2h("Thousands separators unsupported: number has commas and points").Ea;var F=C.length==2;if(F){if(L(w.D,0))throw O2h("Mismatched decimal separators: number has comma when previous number used point for decimal").Ea;if(C[1].length==3)throw O2h("Uncertain decimal separator: 3 numbers after comma separator, which could be either decimal or thousands separator").Ea;
}var I=E.length==2;if(I){if(w.D===1)throw O2h("Mismatched decimal separators: number has point when previous number used comma for decimal").Ea;if(E[1].length==3)throw O2h("Uncertain decimal separator: 3 numbers after point separator, which could be either decimal or thousands separator").Ea;}w.D===2&&(F||I)&&(w.D=F?1:0);h=F?Go(y,"[,]","."):y;try{var J=w.F,N=No(h,"-");h=Cn(h,N?1:0,h.length);switch(h){case "\u00bd":q=.5;break;case "\u2153":q=1/3;break;case "\u00bc":q=.25;break;case "\u2155":q=.2;break;
case "\u2159":q=1/6;break;case "\u215b":q=.125;break;case "\u2154":q=2/3;break;case "\u2156":q=.4;break;case "\u00be":q=.75;break;case "\u2157":q=.6;break;case "\u215c":q=.375;break;case "\u2158":q=.8;break;case "\u215a":q=5/6;break;case "\u215d":q=.625;break;case "\u215e":q=.875;break;default:q=zn(h)}u=N?-1*q:q;J.H=!0;J.F.push(u)}catch(qa){var W=Zm(qa);if(Ho(W))throw(new N2h("Invalid number format",W)).Ea;throw W.Ea;}}else if(q=U2h(p))h=f,q.getType()===5&&h.F.H&&Z2h(h.F,e3h(2)),Z2h(h.F,q);else if(!my(p))throw O2h("Undefined character in equation.").Ea;
}for(var Y,aa=f.F;!Mt(aa.D);){if(aa.D[aa.D.length-1|0].getType()===5)throw O2h(G6f).Ea;a3h(aa)}if(aa.F.length!=1)throw O2h(l0f).Ea;var fa=aa.F.pop();if(!isFinite(fa))throw O2h("Number not finite").Ea;p=""+fa;Y=Jo(p,"E")||Jo(p,"e")?p:""+Wv(fa*1E3)/1E3;var ka=f.D===1?Go(Y,"[.]",","):Y;break a}catch(qa){ka=Zm(qa);if(ka instanceof N2h){ka=null;break a}throw ka.Ea;}ka=void 0}ka!=null?(Y=dch(a.R,2,null,e.length,ka.length,ka.length,0,0,0,null),a=a.H,ka=new m3h(10,ka,"",e,ka,M(e)+M(ka),c,l,null,Y,null,!1,
!1),$bh(a,ka)):i3h(a)}}else i3h(a)}else i3h(a);else i3h(a)}function i3h(a){THd(a.H,10)};function l3h(a,c){a=a.Ca();a.F=c;return a.D.oa()};function n3h(a){Xbh.call(this,a);this.wa=a.za;this.za=O(a.W.yb());this.Ca=O(a.ea.yb());this.Da=a.ma}H(n3h,Xbh);n3h.prototype.oa=function(){return new m3h(this.ea,this.F,this.V,this.ma,this.W,this.Da,this.za.yb(),this.Ca.yb(),this.wa,this.R,this.O,this.J,this.H)};function m3h(a,c,e,f,g,h,k,l,p,q,u,w,y){Wbh();Ybh.call(this,a,c,e,f,g,u,null,q,w,y);this.ma=h;this.W=O(k);this.ea=O(l);this.za=p}H(m3h,Ybh);m3h.prototype.Va=function(a){return L(this,a)?!0:a instanceof m3h?Ybh.prototype.Va.call(this,a)&&L(this.ma,a.ma)&&go(this.W,a.W)&&go(this.ea,a.ea)&&L(this.za,a.za):!1};m3h.prototype.Yb=function(){return Do([this.ma,this.W,this.ea])};m3h.prototype.Ca=function(){return new n3h(this)};function k3h(a){var c=a.CE()-1|0,e;if(e=a.Iac())a:{e=c;for(c=Math.max(c-3|0,0);e>c&&a.Lac(e);){var f=a.jM(e);if(f==="\t")break;if(f!==" "){e=!0;break a}e=e-1|0}e=!1}return e};function o3h(a){var c=a.Lh(),e=a.F,f=a.ji(),g=a.mR(),h=a.H,k=a.O;a=a.R;return{dat_df:{fres_frt:1,dfie_ts:MTb(c),dfie_l:e,dfie_dt:f,dfie_p:{fres_frt:0,tres_tv:g},dfie_pt:h,dfie_tpt:k,dfie_tzi:a}}};function p3h(){}H(p3h,K);
p3h.prototype.D=function(a,c,e,f,g,h,k,l,p,q,u,w){if(!f||!q||!u)return c;e={};for(var y in c)if(f=c[y],Hhc(f)){g=f;f={};l=g.D;var z=k.D[l].zd();p=Yuh(a,z);h=kF(ui);var A=kF(WSa);if(p){h=p.getId();a:{A=g.H;bDd();z=nC(z);for(var C=0;C<z.length;C++){var E=z[C];if(Lo(E.getId(),A)){A=E.Gm();break a}}A=null}a:{z=p;p=A;bDd();A=nC(z);for(z=0;z<A.length;z++)if(C=A[z],Lo(C.Gm(),p)){A=C.getId();break a}A=null}w[l]=!0}else l in q?h=q[l]:Ru(q,l,h),l=g.H,l in u?A=u[l]:Ru(u,l,A);av(f,xta,h);av(f,wta,A);g=g.clone();
g.Oc(f);Ru(e,y,g)}return e};p3h.prototype.H=function(a,c,e,f){if(!(c&&e&&f&&a instanceof lic))return a;c=[];e=nC(a);for(var g=0;g<e.length;g++){var h=e[g],k=h.getId(),l=kF(WSa);k in f&&(l=f[k]);h=h.Hb(Vz);av(h,Pta,l);c.push(h)}f={};cv(f,yta,pB(c));a=a.clone();a.Oc(f);return a};function q3h(a,c,e,f,g){this.D=a;this.H=c;this.F=e;this.O=f;this.J=g}H(q3h,AG);q3h.prototype.El=function(){var a=this.getContext().ub().Aa().Dd(this.F);a=Wuh(a,this.O);var c=kF(ui);FD(this,new r3h(this.getContext(),this.H,Lg,c,a,this.J));return c};function r3h(a,c,e,f,g,h){this.D=a;this.J=0;this.O=!1;KXb(e);this.J=c;this.W=e;this.R=f;this.V=g;this.O=h}H(r3h,BG);function s3h(a,c,e,f,g){return new r3h(a,c,e,f,g,!0)}r3h.prototype.H=function(){var a=this.getContext().ub();t3h(a.Aa(),this.J);a=a.hb().getSelection();this.O&&yC(a)&&(this.J=Ht(jF(this,this.getContext().Mma()).D,0));jF(this,gR(this.getContext(),"\ue909",tC(this.J)));this.F(dM(this.W,this.R,this.V,this.getContext().lb().Ha(mg)));jF(this,new JG(this.getContext(),this.R,this.J))};function t3h(a,c){a=a.Xa();At(!xid(a,c),"GP")};function u3h(a){return{ds_s:0,ds_lsct:MTb(WRb(a)),ds_perd:EVb(new IQb(0,0))}};function v3h(a,c){this.D=a;this.F=c}H(v3h,K);v3h.prototype.Va=function(a){return a instanceof v3h?cu(this.D,a.D)&&L(this.F,a.F):!1};v3h.prototype.Yb=function(){return Do([O(Pt(this.D)),this.F])};function w3h(a,c,e,f){this.D=e;this.F=f;this.J=a;this.O=c}H(w3h,v3h);w3h.prototype.Wb=x("J");w3h.prototype.getUrl=x("O");w3h.prototype.Va=function(a){return a instanceof w3h?v3h.prototype.Va.call(this,a)&&Lo(this.Wb(),a.Wb())&&Lo(this.getUrl(),a.getUrl()):!1};w3h.prototype.Yb=function(){return Do([O(v3h.prototype.Yb.call(this)),this.Wb(),this.getUrl()])};function x3h(a){this.F=a}H(x3h,fH);x3h.prototype.D=function(a){return new y3h(a,this.F)};function y3h(a,c){nF.call(this,glg,a);this.H=c}H(y3h,gH);y3h.prototype.Vc=function(a){var c=qF(this,this.H.D(a,this.getContext()));this.D=c==null?new $Mh:new z3h(this.getType(),c,a.Wb())};function z3h(a,c,e){this.Xc=a;this.D=c;this.F=e}H(z3h,GD);z3h.prototype.Wb=x("F");function A3h(a,c,e,f,g,h){this.D=a;this.F=c;this.R=f;this.J=g;this.O=e;Ot(HXb,e);this.H=h}H(A3h,AG);A3h.prototype.El=function(){var a=this.getContext(),c=a.ub().Aa(),e=a.ub().hb();if(Mt(this.F))return null;var f=null;if(this.H!=null&&(f=this.F[0],c=c.Xa().slice(ew(f),fw(f)),!L(this.H,c)))return null;c=Nnd(a,this.F,!0);FD(this,c);c=f?ew(f):e.Jd();f=kF(this.R);a=s3h(a,c,this.O,f,this.J);FD(this,a);e=e.Jd();e=BC(tC(e+1|0));ED(this,e,!0);return f};
A3h.prototype.Va=function(a){return L(this,a)?!0:a instanceof A3h?cu(this.F,a.F)&&L(this.R,a.R)&&UDb(this.J,a.J)&&L(this.O,a.O)&&L(this.H,a.H):!1};A3h.prototype.Yb=function(){return Do([O(Pt(this.F)),this.R,O(WDb(this.J)),this.O,this.H])};function B3h(a,c){this.D=a;this.F=c}H(B3h,K);function C3h(){}H(C3h,fH);C3h.prototype.D=function(a){return new D3h(a)};function D3h(a){E3h();nF.call(this,Ilg,a)}var F3h=[mh,ql],G3h;H(D3h,gH);D3h.prototype.Vc=function(a){var c=this.getContext().ub().Aa(),e=a.D;if(c.wq(e)){var f=c.Dd(e),g=f.getType();Ot(F3h,g);c=iC(c,f);a=a.F;this.D=new H3h(c,a);c={};av(c,g===mh?GWa:udb,a);qF(this,new uah(this.getContext(),g,e,c,null))}};function E3h(){E3h=r();G3h=new C3h};function H3h(a,c){this.Xc=Ilg;this.F=a;this.D=c}H(H3h,GD);function I3h(a,c,e,f,g){w3h.call(this,a,c,f,g);this.H=e}H(I3h,w3h);I3h.prototype.getMimeType=x("H");I3h.prototype.Va=function(a){return a instanceof I3h?w3h.prototype.Va.call(this,a)&&L(this.H,a.H):!1};I3h.prototype.Y