$wnd.jsme.runAsyncCallback2('var r8="OK";function s8(a){a=a.nd.b.c++;return Oi+a}x(509,510,e1);_.bg=function(){return s8(this)};_.mg=function(){this.xd=new t8((LJ(),m),this)};_.sg=function(){return(null==this.ud&&(this.ud=s8(this)),this.ud)+Ub+this.xd.kg()+Ub+this.xd.lg()+Ub+this.Cd+pm+this.rd+(this.Bd?m:",hidden")+",title="+this.r+(this.q?",resizable":m)+(this.xd.c.B?",modal":m)};\nfunction u8(a,b,c){K4.call(this);this.xd&&this.xd.$g(!1);p4(this,!1);ZJ(this,new x4(0));a=new z4(a,1);T3(this,a,null);a=new dK;T3(a,this.j,null);T3(this,a,null);b&&(this.k=zJ(b),o4(this),I4(this.k,~~(KF(b.hd)/2)-~~(this.Cd/2),~~(JF(b.hd)/2)-~~(this.rd/2)));c&&P3(this,c)}x(717,718,e1,u8);_.Lj=function(){return r8};\nfunction v8(a){var b,c,d;c=new j4(r8);b=new j4("Cancel");this.a=new SL(nd,4);this.b=a;new r4;this.c=new w8(this,c);this.c.xd.c.cb=!0;ZJ(this.c,new eK);T3(this.c,new y4("New atom "+a.Nj()),null);T3(this.c,c,null);T3(this.c,b,null);ZJ(this.c,new g4(2));d=new dK;T3(d,new z4("new atom "+a.Nj(),1),null);T3(d,this.a,null);T3(this.c,d,W0);d=new dK;T3(d,c,null);T3(d,b,null);T3(this.c,d,V0);rK(this.c.s,new x8(this))}x(720,1,{},v8);_.a=null;_.b=null;_.c=null;\nfunction w8(a,b){this.a=a;this.b=b;q4.call(this);this.r=m;this.xd&&this.xd._g(m);this.xd.c.cb=!1;p4(this,!0)}x(721,509,e1,w8);_.ag=function(a){var b;n4(this);if(yD(a.f)===yD(this.b)){a=qs(MI(this.a.a.xd.a));try{b=os(a,10),this.a.b.Rj(b)}catch(c){if(c=$o(c),E(c,109))this.a.b.Qj("invalid atom "+this.a.b.Nj()+Ld+a);else throw c;}}this.a.b.Oj();return!0};_.a=null;_.b=null;function x8(a){this.a=a}x(722,555,h1,x8);_.Sg=function(){n4(this.a.c)};_.a=null;x(725,1,{});_.c=null;x(742,644,Cn);\n_.me=function(){var a;a=null;this.b.a==(oO(),gf)||this.b.a==hf?(a=this.b.a==gf?Uj:"mark",a=new y8(this,a)):this.b.a==ff&&(a=new z8(this));if(a){a.c=RU(this.a.d,this.a.a);a=new v8(a);HT(this.a.c,this.a.e,this.a.a);var b=this.a,c;if(0<b.a){c="Change "+a.b.Nj()+" of atom  "+a.b.c+" #"+b.a;var d=a.c;d.r=c;d.xd&&d.xd._g(c);QL(a.a,m+a.b.Pj());o4(a.c);a.c.xd.Zg(new yL(b.f+30,b.i));a=a.c;!vJ(a)&&X3(a);R3(a)}}};function y8(a,b){this.a=a;this.b=b}x(743,725,{},y8);_.Nj=function(){return this.b};_.Oj=Ay;\n_.Pj=function(){return UU(this.a.a.d,this.a.a.a)};_.Qj=Jt;_.Rj=function(a){var b=this.a.a;if(0<=a){var c=b.c,d=b.a,b=b.d.b[d];0>=a?CN(b):!c._b.e?b.j=a:b.B=a;sP(c,"changeAtomMap",st(c.ac,c.r),d,0,!0);IS(c)}else C4(b.c,"Atom map or mark should be positive")};_.a=null;_.b=null;function z8(a){this.a=a}x(744,725,{},z8);_.Nj=function(){return"charge"};_.Oj=Ay;_.Pj=function(){var a=this.a.a.d,b=this.a.a.a,c;c=0;0<b&&b<=a.q&&(a=a.b[b],c=a.p);return c};_.Qj=Jt;\n_.Rj=function(a){var b=this.a.a,c=b.c,d=b.a;b.d.b[d].p=a;sP(c,yi,st(c.ac,c.r),d,0,!0);IS(c)};_.a=null;x(755,644,Cn);_.me=function(){J4(new u8(this.b,this.a,this.a.L))};function t8(a,b){I_();t4.call(this,a,b)}x(870,871,{},t8);Z(717);Z(725);Z(720);Z(743);Z(744);Z(509);Z(721);Z(722);Z(870);M(c1)(2);function Jt(a){C4(this.a.a.c,a)}function Ay(){HT(this.a.a.c,this.a.a.e,0);this.a.a.c.xd.Yg().ob.focus({preventScroll:!0})};\n//# sourceURL=2.js\n')
