-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comicbubbles_editor.min.js
executable file
·11 lines (11 loc) · 18 KB
/
comicbubbles_editor.min.js
1
2
3
4
5
6
7
8
9
10
11
/**
* @project: ComicBubbles
* @description: Speech balloon JavaScript library
* @version: 1.2
* @file: comicbubbles_editor.min.js
* @author: Wojciech Gajewski (comicbubbles.com)
* @contact: comicbubbles.com/contact
* @copyright: Copyright 2016-2017 Wojciech Gajewski
* @license: Released under the MIT license
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('11 5g=1d(K,D,J,b,W,o,y,H,O,s,V,C,1i,F,c,n){11 5f=1f,f=1m.1J("1H"),G,w=0,a=0,P=0,N=0,e=0,p=0,l=1g,Z,u={},r="<3Z 3j=\'2m:4c/3A;4a,5e/5d/5h+/v//5i//5m/5l/f/5k////5j+5c\'/>",Y="<3Z 3j=\'2m:4c/3A;4a,5b////54+53==\'>";1d X(1b){11 12=1m.52(\'1H[2m-3d="\'+1b+\'"]\');11 14=f.3B("1H");1G(11 1b=0;1b<14.1L;1b++){14[1b].1y=""}10(12){12.1y="18-19-1t"}}1d h(12){12.2K();11 14=S("18-19-1t-2s");10(14){14.2J.4N(f)}}1d j(16){16.2K();11 1b=16.4J;f.1y="18-19-1t-2s";11 12="";1G(11 17 2j s){12+=\'<1H 1s="3c: \'+s[17]+\'" 2m-3d="\'+s[17]+\'" 2r="\'+17+\'"></1H>\'}f.1Z=12;11 1h=S("18-19-1t-2s");10(!1h){1b.2J.1A(f)}13{10(1b.2J.1y!=1h.2J.1y){1b.2J.1A(f)}}f.27=1d(1e){1e.2K()};11 14=f.3B("1H");1G(11 15=0;15<14.1L;15++){14[15].27=1d(1z){11 1e=1z.4J.51("2m-3d");1b.1a=1e;10(1b.1y=="18-19-3k-1t"){y[K.9()].40=1e;y[K.9()].1K.1s.4d=1e;K.4j(1e,0)}13{y[K.9()].1t=1e;y[K.9()].1K.1s.1t=1e;K.4G(1e,0)}X(1e);k();M()}}}1f.55=1d(1z){11 2g=1m.2d("3P-3N-4T-1s");10(!2g){2g=1m.1J("1s");2g.2L="20/56";2g.28="3P-3N-4T-1s";1m.3B("5a")[0].1A(2g);11 1j=".18-19 { 3c: #3M; 1F: 2b 2b 1E; 1N: 0; 1u: 1E 1W 59; -3b-1o-1T: 1u-1o; -3a-1o-1T: 1u-1o; 1o-1T: 1u-1o; 2e: 41; 1n: 2l; 1l: 0; }\\n";1j+=".18-19.4F { 1n: 58; 1l: 1M; }\\n";1j+=".18-19-1t-2s { 1F: 0 0 0 1E; 1N: 2b 0 1E 0; 1u: 0; 1n: 1M; 4x-1l: 57; 2U: 1M; }\\n";1j+=".18-19-1t-2s > 1H { 5n: 2A; 1n: 5o; 1l: 5E; 1F: 0; 1N: 0 1E 1E 0; 2I: 4u; -3b-1o-1T: 1u-1o; -3a-1o-1T: 1u-1o; 1o-1T: 1u-1o; }\\n";1j+=\'.18-19-1t-2s > 1H[2m-3d="#5D"] { 5C: 2A; }\\n\';1j+=".18-19-1o-2x { 1n: 2l !1R; 1l: 2l !1R; 2e: 41 !1R; 3G: -1E; 2y: -1E; 2I: 4u; 1F: 0 !1R; 1N: 0 !1R; 1u: 0 !1R; -3b-1o-1T: 1u-1o !1R; -3a-1o-1T: 1u-1o !1R; 1o-1T: 1u-1o !1R; }\\n";1j+=".18-19-1o-2x > 3Z { 2e: 41 !1R; 2A: 0 !1R; 2y: 0 !1R; }\\n";1j+=".18-19-4D { 1N: 0; 1F: 0; 1u: 0; 1n: 1B%; 1l: 1B%; 2U: 4L; -3b-1o-1T: 1u-1o; -3a-1o-1T: 1u-1o; 1o-1T: 1u-1o; 3c: #3M; 20-2p: 2A; }\\n";1j+=".18-19-1x-31 { 1N: 1V 0 0 1V; 1F: 0; 1u: 1E 1W 26; 1x: 1C 1C 4w 29; 1l: 2F; 1n: 5B; }\\n";1j+=".18-19-1x-34 { 1N: 1V 0 0 1V; 1F: 0; 1u: 1E 1W 26; 1x: 1C 1C 4w 29; 1l: 2F; 1n: 4y; }\\n";1j+=".18-19-1x-2T { 1N: 30 0 0 1V; 1F: 0; 1u: 1E 1W 26; 1x: 1C 1C 3S 29; 1l: 2F; 1n: 5F; }\\n";1j+=".18-19-20-2p { 1N: 30 0 0 1V; 1F: 0; 1u: 1E 1W 26; 1x: 1C 1C 3S 29; 1l: 2F; 1n: 5G; }\\n";1j+=".18-19-36-1l { 1N: 30 0 0 1V; 1F: 0; 1u: 1E 1W 26; 1x: 1C 1C 3S 29; 1l: 2F; 1n: 4y; }\\n";1j+=".18-19-1t-3E, .18-19-1t-4P, .18-19-1Y-1H { 2e: 5K; 4Z: 5J; 1n: 5I; 1x: 1C 1C 2l 29; 1t: #5H; 20-2p: 3G; 1N: 0 0 0 2b; 1u: 1E 1W #3M; 1F: 2b 1V 2b 0; }\\n";1j+=".18-19-1t-3E { 1u-2y: 1E 1W 26; 1F-2y: 30; 1F-5A: 0; }\\n";1j+=".18-19-1Y-1H { 1F-2y: 1V; }\\n";1j+=".18-19-3k-1t, .18-19-1x-1t { 1N: 0; 1F: 1V; 1u: 1E 1W 26; 1x: 1C 1C 2l 29; 1l: 4r; 1n: 5z; }\\n";1j+=".18-19-1Y { 1N: 0; 1F: 1V; 1u: 1E 1W 26; 1x: 1C 1C 2l 29; 1l: 4r; 1n: 5s; }\\n";1j+=".18-19-1t { 1u: 2b 1W 5r; }\\n";1j+=".18-19-1Y-3T { 1n: 1B%; 1N: 1M; 1F: 0; }\\n";2g.1A(1m.38(1j))}H.1y="18-19";H.27=1d(1r){h(1r)};11 12=1m.1J("1H"),1U="27",5q="";12.1y="18-19-1o-2x";12.1Z=r;H.1A(12);12.27=1d(1S){1S.2K();10(H.4E<1B){H.1y="18-19 4F";S("18-19-1o-2x").1Z=Y;h(1S);10(K.9()>-1){S("18-19-1x-31").1a=y[K.9()].3F;S("18-19-1x-34").1a=y[K.9()].3D;S("18-19-3k-1t").1a=y[K.9()].40;S("18-19-1x-1t").1a=y[K.9()].1t;S("18-19-1x-2T").1a=y[K.9()].3V+" "+y[K.9()].3O;S("18-19-20-2p").1a=y[K.9()].3U;S("18-19-36-1l").1a=y[K.9()].3Q;11 1r=35.4q((1-y[K.9()].2R)*1B);S("18-19-1Y").1a=1r;S("18-19-1Y-3T").1a=1r}1m.2d(D.28).1s.2U="5p"}13{H.1y="18-19";S("18-19-1o-2x").1Z=r;1m.2d(D.28).1s.2U="4L"}};11 1c=1m.1J("1H");1c.1y="18-19-4D";H.1A(1c);11 1h=1m.1J("2G");1h.1y="18-19-1x-31";1h.2H("2r","1x 31");11 17="";1G(11 2E=0;2E<O.1L;2E++){11 4b=O[2E].43(",")[0];17+="<24 1a=\'"+O[2E]+"\'>"+4b.5t(/\\"/g,"")+"</24>"}1h.1Z=17;1h.2t=1d(1r){y[K.9()].3F=1f.1a;y[K.9()].1K.1s.3F=1f.1a;K.5u(1f.1a,0);K.2Q(y[K.9()]);k();M()};1c.1A(1h);11 2z=1m.1J("2G");2z.1y="18-19-1x-34";2z.2H("2r","1x 34");17="";1G(11 2O=8;2O<1B;2O++){17+=\'<24 1a="\'+2O+\'3I">\'+2O+"</24>"}2z.1Z=17;2z.2t=1d(1r){y[K.9()].3D=1f.1a;y[K.9()].1K.1s.3D=1f.1a;K.5y(1f.1a,0);K.2Q(y[K.9()]);k();M()};1c.1A(2z);11 2o=1m.1J("2G");2o.1y="18-19-1x-2T";2o.2H("2r","1x 2T 5x 1s");11 14=["1C 1C","4f 1C","1C 47","4f 47"];17="";1G(11 16=0;16<14.1L;16++){17+=\'<24 1a="\'+14[16]+\'">\'+14[16]+"</24>"}2o.1Z=17;2o.2t=1d(1S){11 1r=1f.1a.43(" ");y[K.9()].3V=1r[0];y[K.9()].1K.1s.3V=1r[0];K.5w(1r[0],0);y[K.9()].3O=1r[1];y[K.9()].1K.1s.3O=1r[1];K.5v(1r[1],0);K.2Q(y[K.9()]);k();M()};1c.1A(2o);11 15=1m.1J("2G");15.1y="18-19-20-2p";15.2H("2r","20 2p");11 1e=["2A","5L","3G","4X"];17="";1G(11 2B=0;2B<1e.1L;2B++){17+=\'<24 1a="\'+1e[2B]+\'">\'+1e[2B]+"</24>"}15.1Z=17;15.2t=1d(1r){y[K.9()].3U=1f.1a;y[K.9()].1K.1s.3U=1f.1a;K.4Y(1f.1a,0);K.2Q(y[K.9()]);k();M()};1c.1A(15);11 2k=1m.1J("2G");2k.1y="18-19-36-1l";2k.2H("2r","36 1l");17="";1G(11 1k=0;1k<n.1L;1k++){17+=\'<24 1a="\'+n[1k]+\'">\'+n[1k]+"</24>"}2k.1Z=17;2k.2t=1d(1r){y[K.9()].3Q=1f.1a;y[K.9()].1K.1s.3Q=1f.1a;K.66(1f.1a,0);K.2Q(y[K.9()]);k();M()};1c.1A(2k);11 2i=1m.1J("3h");2i.2L="20";2i.1y="18-19-3k-1t";2i.33=1d(1S){11 1r=/(^#[0-3t-F]{6}$)|(^#[0-3t-F]{3}$)/i.45(1f.1a);10(1r){y[K.9()].40=1f.1a;y[K.9()].1K.1s.4d=1f.1a;K.4j(1f.1a,0);X(1f.1a);k();M()}};2i.27=1d(1r){j(1r);X(1f.1a)};11 42=1m.38("3c: ");11 2S=1m.1J("1H");2S.1y="18-19-1t-3E";2S.1A(42);2S.1A(2i);11 2w=1m.1J("3h");2w.2L="20";2w.1y="18-19-1x-1t";2w.33=1d(1S){11 1r=/(^#[0-3t-F]{6}$)|(^#[0-3t-F]{3}$)/i.45(1f.1a);10(1r){y[K.9()].1t=1f.1a;y[K.9()].1K.1s.1t=1f.1a;K.4G(1f.1a,0);X(1f.1a);k();M()}};2w.27=1d(1r){j(1r);X(1f.1a)};11 1P=1m.38("1x 1t: ");11 2C=1m.1J("1H");2C.1y="18-19-1t-4P";2C.1A(1P);2C.1A(2w);1c.1A(2C);1c.1A(2S);11 1b=1m.1J("3h");1b.2L="20";1b.1y="18-19-1Y";1b.33=1d(1r){10(1f.1a!=""&&1f.1a>=0&&1f.1a<=1B){y[K.9()].2R=(1B-1f.1a)/1B;K.3z(((1B-1f.1a)/1B),0);M()}13{10(1f.1a!=""){1f.1a=35.4q((1-y[K.9()].2R)*1B)}13{y[K.9()].2R=1;K.3z(1,0);M()}}10(1f.1a==""){1D.1a=0}13{1D.1a=1f.1a}};11 1D=1m.1J("3h");1D.2L="6n";1D.1y="18-19-1Y-3T";1D.6m=0;1D.4x=1B;1D.6o=1;1D.33=1d(1r){11 1S=1f.1a;3R(G);G=2M(1d(){1b.1a=1S;L(1S)},50)};1D.2t=1d(1r){11 1S=1f.1a;3R(G);G=2M(1d(){1b.1a=1S;L(1S)},50)};11 1Q=1m.38("1Y: ");11 2f=1m.1J("1H");2f.1y="18-19-1Y-1H";2f.1A(1Q);2f.1A(1b);2f.1A(1D);2f.27=1d(1r){1r.2K()};1c.1A(2f);1z()};1f.6l=1d(){3R(Z);Z=2M(1d(){11 16=1g,1b={},1e={},12=[],1h=[];1G(11 17=0;17<y.1L;17++){11 15=y[17].1K.28;11 1U=y[17].6g();1U.3Y="6f";1b[15]=1U;10(15 2j u){10(2u.2Z(u[15])!==2u.2Z(1U)){16=1O;1e[15]="6h"}}13{16=1O;1e[15]="6i"}}11 14=2u.4h(2u.2Z(u));1G(11 1c 2j 14){10(14.3L(1c)){10(1c 2j 1b){}13{16=1O;14[1c].3Y="6s";1h.3K(14[1c])}}}10(16){11 1z=2u.4h(2u.2Z(1b));1G(11 1c 2j 1e){10(1e.3L(1c)){1z[1c].3Y=1e[1c]}}1G(11 1c 2j 1z){10(1z.3L(1c)){12.3K(1z[1c])}}K.6r(12.6B(1h));u=1b}},1B)};1d L(12){y[K.9()].2R=(1B-12)/1B;K.3z(((1B-12)/1B),0);M()}1d k(){K.6x(y[K.9()]);b.4e="4k-6t";y[K.9()].4i(K.9());y[K.9()].44(K.9(),0);b.4e="4k-6y"}1d M(){b.6v(0,0,W,o);11 12=y.1L;1G(11 14=0;14<12;14++){y[14].4i(14);10(K.9()!=14){y[14].1K.1s.6w="6j"}}K.3w=6d;10(K.3X){K.3w=J.6e()}10(K.9()>-1){y[K.9()].44(K.9(),0)}K.5V()}1d U(12){q(12);K.5U()}1d d(){y[K.9()].2X=y[K.9()].x-60;y[K.9()].2W=y[K.9()].y-60;y[K.9()].32=y[K.9()].x+2Y(y[K.9()].1n/2);y[K.9()].3f=y[K.9()].y-37;y[K.9()].3n=y[K.9()].x+y[K.9()].1n+60;y[K.9()].3q=y[K.9()].y-60;y[K.9()].3r=y[K.9()].x-37;y[K.9()].3v=y[K.9()].y+2Y(y[K.9()].1l/2);y[K.9()].3o=y[K.9()].x+y[K.9()].1n+37;y[K.9()].3s=y[K.9()].y+2Y(y[K.9()].1l/2);y[K.9()].39=y[K.9()].x-60;y[K.9()].3u=y[K.9()].y+y[K.9()].1l+60;y[K.9()].3p=y[K.9()].x+2Y(y[K.9()].1n/2);y[K.9()].3l=y[K.9()].y+y[K.9()].1l+37;y[K.9()].3e=y[K.9()].x+y[K.9()].1n+60;y[K.9()].3m=y[K.9()].y+y[K.9()].1l+60}1d t(12){d();10(!y[K.9()].2h){y[K.9()].2h=1O;y[K.9()].25=0}10(y[K.9()].2h){y[K.9()].2D=12}}1d i(12){10(D.1s.2e=="4K"){21 12.3C}13{21 12.5Y}}1d g(12){10(D.1s.2e=="4K"){21 12.3J}13{21 12.5M}}1d A(15){5S.5O(D.1s.2e);15.2P();10(K.1X=="2v"){21}10(K.9()>-1){11 12=v(J);K.1q=i(15)-12.x;K.1p=g(15)-12.y;11 14=y[K.9()].x;11 1c=y[K.9()].y;11 1z=y[K.9()].1n;11 1b=y[K.9()].1l;11 1e=15.x||15.3C;11 1h=15.y||15.3J;11 17=1e-K.1q;11 16=1h-K.1p;10(1e>=C[0].x+17-F&&1e<=C[0].x+1i+17+F&&1h>=C[0].y+16-F&&1h<=C[0].y+1i+16+F){t(0)}13{10(1e>=C[1].x+17-F&&1e<=C[1].x+1i+17+F&&1h>=C[1].y+16-F&&1h<=C[1].y+1i+16+F){t(1)}13{10(1e>=C[2].x+17-F&&1e<=C[2].x+1i+17+F&&1h>=C[2].y+16-F&&1h<=C[2].y+1i+16+F){t(2)}13{10(1e>=C[3].x+17-F&&1e<=C[3].x+1i+17+F&&1h>=C[3].y+16-F&&1h<=C[3].y+1i+16+F){t(3)}13{10(1e>=C[4].x+17-F&&1e<=C[4].x+1i+17+F&&1h>=C[4].y+16-F&&1h<=C[4].y+1i+16+F){t(4)}13{10(1e>=C[5].x+17-F&&1e<=C[5].x+1i+17+F&&1h>=C[5].y+16-F&&1h<=C[5].y+1i+16+F){t(5)}13{10(1e>=C[6].x+17-F&&1e<=C[6].x+1i+17+F&&1h>=C[6].y+16-F&&1h<=C[6].y+1i+16+F){t(6)}13{10(1e>=C[7].x+17-F&&1e<=C[7].x+1i+17+F&&1h>=C[7].y+16-F&&1h<=C[7].y+1i+16+F){t(7)}13{10(K.1X=="2V"){d();y[K.9()].2h=1g;y[K.9()].2D=-1;y[K.9()].25=-1}13{10(!K.3i&&!K.4H()){U(15)}13{10(y[K.9()].25==0){y[K.9()].25=1}13{10(y[K.9()].25==1){y[K.9()].25=2}13{10(y[K.9()].25==2){y[K.9()].25=3}13{y[K.9()].25=0}}}}}}}}}}}}}}13{10(!K.3i&&!K.4H()){U(15);2M(1d(){K.3g()},1B)}}}1d z(1b){1b.2P();10(K.9()>-1){w=y[K.9()].x;a=y[K.9()].y;e=y[K.9()].1n;p=y[K.9()].1l;l=1O;K.1X=I(1b);10(y[K.9()].2h){11 14=y[K.9()].2D;10(14==0){P=y[K.9()].2X;N=y[K.9()].2W}13{10(14==1){P=y[K.9()].32;N=y[K.9()].3f}13{10(14==2){P=y[K.9()].3n;N=y[K.9()].3q}13{10(14==3){P=y[K.9()].3r;N=y[K.9()].3v}13{10(14==4){P=y[K.9()].3o;N=y[K.9()].3s}13{10(14==5){P=y[K.9()].39;N=y[K.9()].3u}13{10(14==6){P=y[K.9()].3p;N=y[K.9()].3l}13{10(14==7){P=y[K.9()].3e;N=y[K.9()].3m}}}}}}}}}11 12=y.1L-1;y.2v(K.9(),12);K.3y(12);10(!y[K.9()].4m){K.3x(1O)}}K.2N=1O;q(1b)}1d I(1U){11 1j="1M";10(K.9()>-1&&!y[K.9()].5R){11 14=v(J);K.1q=i(1U)-14.x;K.1p=g(1U)-14.y;11 1b=y[K.9()].x;11 1P=y[K.9()].y;11 12=y[K.9()].1n;11 1h=y[K.9()].1l;11 1z=12/2*(35.4W(2)-1);11 1D=1h/2*(35.4W(2)-1);11 1k=1U.x||1U.3C;11 1c=1U.y||1U.3J;11 15=1k-K.1q;11 16=1c-K.1p;11 1e=-1;11 17=-1,1Q=-1;10(1z<8){1z=8}10(1D<8){1D=8}10(!y[K.9()].2h){1z=8;1D=8}13{1e=y[K.9()].2D;10(1e==0){17=y[K.9()].2X;1Q=y[K.9()].2W}13{10(1e==1){17=y[K.9()].32;1Q=y[K.9()].3f}13{10(1e==2){17=y[K.9()].3n;1Q=y[K.9()].3q}13{10(1e==3){17=y[K.9()].3r;1Q=y[K.9()].3v}13{10(1e==4){17=y[K.9()].3o;1Q=y[K.9()].3s}13{10(1e==5){17=y[K.9()].39;1Q=y[K.9()].3u}13{10(1e==6){17=y[K.9()].3p;1Q=y[K.9()].3l}13{10(1e==7){17=y[K.9()].3e;1Q=y[K.9()].3m}}}}}}}}}10(V){1z=1i;1D=1i}10(1k>17+15-2-1i/2&&1k<17+15+3+1i/2&&1c>1Q+16-2-1i/2&&1c<1Q+16+3+1i/2){1j="2V"}13{10(1k>=C[0].x+15-F&&1k<=C[0].x+1i+15+F&&1c>=C[0].y+16-F&&1c<=C[0].y+1i+16+F){1j="4v-1I"}13{10(1k>=C[1].x+15-F&&1k<=C[1].x+1i+15+F&&1c>=C[1].y+16-F&&1c<=C[1].y+1i+16+F){1j="n-1I"}13{10(1k>=C[2].x+15-F&&1k<=C[2].x+1i+15+F&&1c>=C[2].y+16-F&&1c<=C[2].y+1i+16+F){1j="4B-1I"}13{10(1k>=C[3].x+15-F&&1k<=C[3].x+1i+15+F&&1c>=C[3].y+16-F&&1c<=C[3].y+1i+16+F){1j="w-1I"}13{10(1k>=C[4].x+15-F&&1k<=C[4].x+1i+15+F&&1c>=C[4].y+16-F&&1c<=C[4].y+1i+16+F){1j="e-1I"}13{10(1k>=C[5].x+15-F&&1k<=C[5].x+1i+15+F&&1c>=C[5].y+16-F&&1c<=C[5].y+1i+16+F){1j="4C-1I"}13{10(1k>=C[6].x+15-F&&1k<=C[6].x+1i+15+F&&1c>=C[6].y+16-F&&1c<=C[6].y+1i+16+F){1j="s-1I"}13{10(1k>=C[7].x+15-F&&1k<=C[7].x+1i+15+F&&1c>=C[7].y+16-F&&1c<=C[7].y+1i+16+F){1j="4A-1I"}13{10((1k<1b+15&&1k>1b+15-1z&&1c>1P+16&&1c<1P+1h+16)||(1k>1b+12+15&&1k<1b+12+15+1z&&1c>1P+16&&1c<1P+1h+16)||(1k>1b+15&&1k<1b+12+15&&1c>1P+16-1D&&1c<1P+16)||(1k>1b+15&&1k<1b+12+15&&1c>1P+1h+16&&1c<1P+1h+16+1D)){1j="2v"}13{10(1k>1b+15&&1k<1b+15+12&&1c>1P+16&&1c<1P+16+1h){1j="1M"}13{1j="1M"}}}}}}}}}}}}21 1j}1d m(14){14.2P();K.6a();K.2N=1g;K.1q=-1B;K.1p=-1B;10(K.1X=="1M"&&!K.3i){K.3y(-1);K.4R=0}10(K.4s()){K.3g();K.3x(1O)}13{1G(11 12=0;12<y.1L;12++){10(1m.2d(y[12].1K.28)){1m.2d(y[12].1K.28).6b();4p.6c().68()}}K.3x(1O)}10(K.4s()&&K.1X=="1M"&&K.9()>-1&&K.67()<y.1L-1){2M(1d(){K.2N=1O;K.3g();K.2N=1g},63)}10(!V){1m.62=x}}1d E(1h){1h.2P();11 14=v(J);K.4n=i(1h)-14.x;K.4o=g(1h)-14.y;10(K.9()>-1){10(y[K.9()].4m){21 1g}K.1q=K.4n;K.1p=K.4o;10(!K.2N){J.1s.2I=I(1h)}13{65(K.1X){23"4v-1I":l=1g;10(p+K.1v-K.1p>c){y[K.9()].1l=p+K.1v-K.1p;y[K.9()].y=a+K.1p-K.1v;y[K.9()].2n=1g}10(e+K.1w-K.1q>c){y[K.9()].1n=e+K.1w-K.1q;y[K.9()].x=w+K.1q-K.1w;y[K.9()].2q=1g}22;23"n-1I":l=1g;10(p+K.1v-K.1p>c){y[K.9()].1l=p+K.1v-K.1p;y[K.9()].y=a+K.1p-K.1v;y[K.9()].2n=1g}22;23"4B-1I":l=1g;10(p+K.1v-K.1p>c){y[K.9()].1l=p+K.1v-K.1p;y[K.9()].y=a+K.1p-K.1v;y[K.9()].2n=1g}10(e+K.1q-K.1w>c){y[K.9()].1n=e+K.1q-K.1w;y[K.9()].2q=1g}22;23"w-1I":l=1g;10(e+K.1w-K.1q>c){y[K.9()].1n=e+K.1w-K.1q;y[K.9()].x=w+K.1q-K.1w;y[K.9()].2q=1g}22;23"e-1I":l=1g;10(e+K.1q-K.1w>c){y[K.9()].1n=e+K.1q-K.1w;y[K.9()].2q=1g}22;23"4C-1I":l=1g;10(p+K.1p-K.1v>c){y[K.9()].1l=p+K.1p-K.1v;y[K.9()].2n=1g}10(e+K.1w-K.1q>c){y[K.9()].1n=e+K.1w-K.1q;y[K.9()].x=w+K.1q-K.1w;y[K.9()].2q=1g}22;23"s-1I":l=1g;10(p+K.1p-K.1v>c){y[K.9()].1l=p+K.1p-K.1v;y[K.9()].2n=1g}22;23"4A-1I":l=1g;10(p+K.1p-K.1v>c){y[K.9()].1l=p+K.1p-K.1v;y[K.9()].2n=1g}10(e+K.1q-K.1w>c){y[K.9()].1n=e+K.1q-K.1w;y[K.9()].2q=1g}22;23"2v":10(l){11 17=y[K.9()].x,1b=y[K.9()].y;11 1e=17+y[K.9()].1n;11 16=1b+y[K.9()].1l;11 12=w+K.1q-K.1w;11 1z=a+K.1p-K.1v;10((17>12&&17<1)||(17<12&&1e>W-1)){10(17>12){y[K.9()].x=0}10(17<12){y[K.9()].x=W-y[K.9()].1n}}13{y[K.9()].x=12}10((1b>1z&&1b<1)||(1b<1z&&16>o-1)){10(1b>1z){y[K.9()].y=0}10(1b<1z){y[K.9()].y=o-y[K.9()].1l}}13{y[K.9()].y=1z}}22;23"2V":22}10(y[K.9()].2h&&K.1X!="1M"){10(K.1X=="2v"||K.1X=="2V"){11 15=-1;15=y[K.9()].2D;10(15==0){y[K.9()].2X=P+K.1q-K.1w;y[K.9()].2W=N+K.1p-K.1v}13{10(15==1){y[K.9()].32=P+K.1q-K.1w;y[K.9()].3f=N+K.1p-K.1v}13{10(15==2){y[K.9()].3n=P+K.1q-K.1w;y[K.9()].3q=N+K.1p-K.1v}13{10(15==3){y[K.9()].3r=P+K.1q-K.1w;y[K.9()].3v=N+K.1p-K.1v}13{10(15==4){y[K.9()].3o=P+K.1q-K.1w;y[K.9()].3s=N+K.1p-K.1v}13{10(15==5){y[K.9()].39=P+K.1q-K.1w;y[K.9()].3u=N+K.1p-K.1v}13{10(15==6){y[K.9()].3p=P+K.1q-K.1w;y[K.9()].3l=N+K.1p-K.1v}13{10(15==7){y[K.9()].3e=P+K.1q-K.1w;y[K.9()].3m=N+K.1p-K.1v}}}}}}}}}13{}}}}13{J.1s.2I="1M";K.1X="1M"}}1d T(12){}1d R(12){}1d B(12){}1d v(14){11 12=3W=0;10(14.4z){6A{12+=14.6k;3W+=14.6q}4Q(14=14.4z);21{x:12,y:3W}}}1d q(14){11 12=v(J);K.1w=i(14)-12.x;K.1v=g(14)-12.y}1d x(14){11 14=4p.6C||14;11 12=1m.4t?(1m.4t.5X.5N()!="p"?1O:1g):1O;10(14.5P==46&&K.9()>-1&&12&&H.4E<1B){14.2P();10(1m.2d(y[K.9()].1K.28)){D.4N(y[K.9()].1K)}y.3H(K.9(),1);K.3i=1g;K.3y(-1);K.4R=0;J.1s.2I="1M";K.3g()}}5Z.61.2v=1d(1b,12){10(12>=1f.1L){11 14=12-1f.1L;4Q((14--)+1){1f.3K(69)}}1f.3H(12,0,1f.3H(1b,1)[0])};1f.64=1d(12){10(J){10(12){10(V){J.2a("4S",T,1g);J.2a("4l",R,1g);J.2a("4V",B,1g)}13{J.2a("4U",A,1g);J.2a("4O",z,1g);J.2a("4I",m,1g);J.2a("4M",E,1g)}K.48=1O}13{10(V){J.2c("4S",T,1g);J.2c("4l",R,1g);J.2c("4V",B,1g)}13{J.2c("4U",A,1g);J.2c("4O",z,1g);J.2c("4I",m,1g);J.2c("4M",E,1g)}K.48=1g}}};1f.5Q=1d(14,12){12=12+6;H.1s.2A=14+"3I";H.1s.2y=12+"3I";Q();D.1s.4g=1;D.1A(H);S("18-19-1o-2x").1Z=r};1f.5T=1d(14){11 1b="",16="";K.3X=1O;1G(11 12=0;12<y.1L;12++){y[12].5W=[]}M();10(14.6u("3j")){16=14.3j}1b={6z:16,3A:K.3w};K.3X=1g;M();21 1b};1d Q(){11 14=1;11 1b=1m.49("3P-3N-6p");1G(11 12=0;12<1b.1L;12++){1b[12].1s.4g="1M"}}1d S(12){21 1m.2d(D.28).49(12)[0]}};',62,411,'|||||||||getBID|||||||||||||||||||||||||||||||||||||||||||||||||||||if|var|ac|else|ad|ah|af|ag|cb|settings|value|ae|al|function|aj|this|false|ai|aa|an|ap|height|document|width|box|mY|mX|aI|style|color|border|mouseY|mouseX|font|className|ak|appendChild|100|normal|aq|1px|padding|for|div|resize|createElement|txtarea|length|auto|margin|true|ar|ao|important|aJ|sizing|am|2px|solid|action|transparency|innerHTML|text|return|break|case|option|bubbleStyle|gray|onmousedown|id|Arial|addEventListener|3px|removeEventListener|getElementById|position|au|aH|ellipse|aA|in|aE|14px|data|autoHeight|aB|align|autoWidth|title|picker|onchange|JSON|move|aG|button|top|az|left|at|aw|tailLocation|aD|22px|select|setAttribute|cursor|parentNode|stopPropagation|type|setTimeout|mousePressed|ay|preventDefault|prepareText|opacity|ax|weight|overflow|crosshair|tailY0|tailX0|parseInt|stringify|4px|family|tailX1|oninput|size|Math|line|80|createTextNode|tailX5|webkit|moz|background|bgc|tailX7|tailY1|refreshBubbles|input|insideTail|src|bg|tailY6|tailY7|tailX2|tailX4|tailX6|tailY2|tailX3|tailY4|9A|tailY5|tailY3|encoded_canvas|refreshBubbleCanvas|setBID|setOpacity|png|getElementsByTagName|clientX|fontSize|div1|fontFamily|right|splice|px|clientY|push|hasOwnProperty|f2f2f2|bubbles|fontStyle|comic|lineHeight|clearTimeout|12px|slider|textAlign|fontWeight|curY|png_in_progress|state|img|fill|absolute|av|split|drawSelectedBubble|test||italic|events_added|getElementsByClassName|base64|aC|image|backgroundColor|globalCompositeOperation|bold|zIndex|parse|draw|setBackground|source|touchend|readonly|currentX|currentY|window|round|16px|isTextDrawn|activeElement|pointer|nw|13px|max|44px|offsetParent|se|ne|sw|container|offsetWidth|expanded|setColor|isReadonly|mouseup|target|fixed|hidden|mousemove|removeChild|mousedown|div2|while|selectedBubbleID|touchstart|editor|dblclick|touchmove|sqrt|justify|setTextAlign|display||getAttribute|querySelector|pa8COYFwy1ASvAnr3aTHh0WnX94nqUQAAOw|8AACH5BAAAAAAALAAAAAAOAA4AAAIajI|Settings|css|45px|227px|black|head|R0lGODlhDgAOAIAAAP|SgEJSJwKo1waAIlBbHBQFiyGRMgwIqQoLpCD8LAUNs6iKAAA7|f3|R0lGODlhDgAOALMAAP|ab|ComicBubblesEditor|8gIP|Pz|8AAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAOAA4AAAQ9cMlJK0XpHDsTUSDAIcRgLAi3FMqmSoECnO|8QEP9gYP|9AQP8wMP9|v7|float|18px|visible|aF|red|38px|replace|setFontFamily|setFontStyle|setFontWeight|and|setFontSize|101px|bottom|156px|clear|ffffff|15px|106px|61px|0000cd|213px|block|relative|center|pageY|toLowerCase|log|keyCode|addSettingsBox|off|console|getBubbles|drawBubble|updateConsole|lettersCoordinates|tagName|pageX|Array||prototype|onkeydown|150|setEventListeners|switch|setLineHeight|getTextDrawingCount|removeAllRanges|undefined|enableEditing|blur|getSelection|null|toDataURL|unchanged|getBubbleSettings|changed|new|none|offsetLeft|bStateChanged|min|range|step|wrapper|offsetTop|bubbleStateChanged|removed|atop|hasAttribute|clearRect|pointerEvents|applyStyleToChild|over|img_src|do|concat|event'.split('|'),0,{}))