Team:Mingdao/Javascript-fire-0.62.min
/*Jquery fire plugin: http://www.computableminds.com/jquery-plugin-fire-animation-texture-generator.html */
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('(m($){g f=v C();g 1H=v C();g 1V=v C();g H=v C();g 17=v C();g 2Z=m(1q,c,b){e(f[b].1I){g 29=1d.2a.1J?1d.2a.1J:1d.31.1J;g W=u[b][c];g 1r=W.2b;32(W.2c&&1r<=0){W=W.2c;1r+=W.2b}17[b][c]=1q.33-1r+29}};g 34=m(1q,c,b){e(f[b].1I){g 29=1d.2a.1J?1d.2a.1J:1d.31.1J;g W=1d.3N(f[b].1W);g 1r=W.2b;32(W.2c&&1r<=0){W=W.2c;1r+=W.2b}17[b][c]=1q.33-1r+29}};g 35=m(){g 2u=-1;e(36.3O==\'3P 3Q 3R\'){g 37=36.3S;g 38=v 39("3T ([0-9]{1,}[\\.0-9]{0,})");e(38.3U(37)!=w){2u=3V(39.$1)}}1c 2u};g 3a=m(){g 2e=35();e(2e>-1){e(2e>=8.0&&2e<9.0){1c 2f}}1c 1s};g 3b=m(l,k,q,17,b){g A=0,D=0,2g,2h;g 3c=q-6;g O=f[b].O;g F=f[b].18;g 1t=f[b].18;g 3W=0;g S=f[b].S;g 1C=f[b].1C;g 2i=5;g 1u=0;g 1e=19.2v(k/S);g 1v=0;g L=f[b].L;e(f[b].O==5){O=1a(19.1K()*5)}2w(O){T 1:1u=((F-L)/1e)*-1;X;T 2:1u=(F-L)/1e;1t=L;X;T 3:1v=19.2v(1e/2);1e=0;1u=(F-L)/1v;1t=L;1v++;X;T 4:1v=19.2v(1e/2);1e=0;1u=((F-L)/1v)*-1;1v++;X}U(g i=0;i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}j++;e(j==q){j=0;i++;1w=i+1;1x=i-1;1M=(i!=K)}}};g R=v C();g V=v C();g u=v C();g E=v C();g I=v C();g k=v C();g q=v C();m 2k(c,b){3b(R[b][c].2l,k[b][c],q[b][c],17[b][c],b);1V[b][c]^=1;e(!f[b].1X){e(1V[b][c]==1){3f(R[b][c].2l,k[b][c],q[b][c],f[b].z,f[b].M,f[b].N,1H[b])}B{3g(R[b][c].2l,k[b][c],q[b][c],f[b].z,f[b].M,f[b].N,1H[b])}}B{3e(R[b][c].2l,k[b][c],q[b][c],f[b].z,f[b].M,f[b].N,1H[b])}}g 1N=m(c,b){g 3h=v 3i();E[b][c].2m(R[b][c],0,0);2k(c,b);g 2A=(v 3i())-3h;g 2B=f[b].P-2A;I[b][c]=1n(m(){1N(c,b)},2B);e(f[b].1Y){g 13=1a(19.2C(2D/f[b].P));e(2B<0){13=1a(19.2C(2D/2A))}g 1O=k[b][c];g 1P=20+H[b][c];E[b][c].3X="3Y 3Z-41";E[b][c].3j="42";E[b][c].1Z(13+" 13",1O-45,1P-(H[b][c]+5));E[b][c].1Z(13+" 13",1O-47,1P-(H[b][c]+7));E[b][c].1Z(13+" 13",1O-45,1P-(H[b][c]+7));E[b][c].1Z(13+" 13",1O-47,1P-(H[b][c]+5));E[b][c].3j="43";E[b][c].1Z(13+" 13",1O-46,1P-(H[b][c]+6))}};g 2E=m(c,b,14){e(f[b].21){e(14!=f[b].1o){V[b][c].3k("p:3l-3m").3n()}}e(14>0){14--;2k(c,b);e(f[b].21){V[b][c].2n(""+f[b].2F+" "+1a((f[b].1o-14)*1p/f[b].1o)+"%
")}I[b][c]=15(\'1n ( m() {2E(\'+c+\',\'+b+\',\'+14+\');}, 0);\')}B{E[b][c].2m(R[b][c],0,0);V[b][c].3p(0).44.48="49(\'"+u[b][c].2G()+"\')"}};g 2H=m(c,b,14){e(f[b].21){e(14!=f[b].1o){V[b][c].3k("p:3l-3m").3n()}}e(14>0){14--;2k(c,b);e(f[b].21){V[b][c].2n(""+f[b].2F+" "+1a((f[b].1o-14)*1p/f[b].1o)+"%
")}I[b][c]=15(\'1n ( m() {2H(\'+c+\',\'+b+\',\'+14+\');}, 0);\')}B{E[b][c].2m(R[b][c],0,0);g 1E=1d.3q("1E");1E.1y("k",k[b][c]);1E.1y("q",q[b][c]-H[b][c]);1E.1y("4a","2I 4b");1E.1y("4c",u[b][c].2G());V[b][c].2n(1E)}};g 4d=1s;m 2J(1Q,b){e(1Q<0){1Q=0}e(1Q>10){1Q=10}f[b].1R=1Q/40.0}m 22(b){1H[b]=v C();U(g i=0;i<4e;i++){g 1b=i/(f[b].1R+4.8);e(1b>J){1b=J}e(1b>f[b].1F){1b-=f[b].1F}e(f[b].23){e(1b<4f&&1b>30){1b=1b-(1b%20)}}1H[b][i]=1a(1b)}}m 2K(r,b){e(r<0){r=0}e(r>1p){r=1p}f[b].M=1a((1p-r)*7.4g-4h)}m 2L(r,b){e(r<0){r=0}e(r>1p){r=1p}f[b].N=1a((1p-r)*J/1p)}m 2M(3r,b){f[b].S=3r;e(f[b].S<0){f[b].S=0}e(f[b].S>4){f[b].S=4}f[b].S++}m 2N(3s,b){f[b].z=3s;e(f[b].z<0){f[b].z=0}e(f[b].z>4){f[b].z=4}f[b].z++}m 2p(P,b){e(P<=0){P=1}f[b].P=1a(19.2C(2D/P))}m 2O(2q,b){e(2q<0){2q=0}f[b].1G=2q}m 2P(F,b){e(F<0){F=0}e(F>10){F=10}f[b].18=F+1;e(f[b].18<f[b].L){f[b].L=f[b].18}}m 2Q(F,b){e(F<0){F=0}e(F>10){F=10}f[b].L=F+1;e(f[b].18<f[b].L){f[b].L=f[b].18}}m 2R(1S,b){e(1S<0){1S=0}e(1S>20){1S=20}f[b].1F=1S+1}m 2S(3t,b){2w(3t){T\'3u\':f[b].O=0;X;T\'4i\':f[b].O=1;X;T\'4j\':f[b].O=2;X;T\'4k\':f[b].O=3;X;T\'4l\':f[b].O=4;X;T\'1K\':f[b].O=5;X}}m 1T(V){g 1z=0;e(V.4m("u")){1z=V.3v("2o")}B{1z=V.4n("u").3v("2o")}e(2T(1z)==\'3w\'){2r(v 2s("2U 4o 4p 2V 3x 4q 3y 4r a m 4s 4t 4u 4v 4w 4x 4y 4z 2V G 4A"));}g b=1z.4B(1z.2W("2X")+16,1z.2W("3z")-(1z.2W("2X")+16));1c b}g d={n:0,h:-1,3A:m(o){e(3a()&&2T($(G).3B)!=\'3w\'){$(G).3B(o);1c G}e(!4C.4D){1c G}d.h++;d.n=0;f[d.h]={1A:\'24\',k:w,q:w,18:3,L:1,1R:5,M:0,N:0,S:2,z:2,1F:2,1G:0,1X:1s,23:1s,1C:2f,O:\'3u\',P:20,1I:2f,1Y:1s,2F:\'\',21:2f,1o:4E,1W:\'\'};e(o){$.4F(f[d.h],o)}1c G.4G(m(){e(d.n==0){2O(f[d.h].1G,d.h);2P(f[d.h].18,d.h);2Q(f[d.h].L,d.h);2M(f[d.h].S,d.h);2N(f[d.h].z,d.h);2K(f[d.h].M,d.h);2L(f[d.h].N,d.h);2J(f[d.h].1R,d.h);2R(f[d.h].1F,d.h);22(d.h);2p(f[d.h].P,d.h);2S(f[d.h].O,d.h);H[d.h]=v C()}H[d.h][d.n]=10+f[d.h].z*5+f[d.h].1G;g 25=$(G).k();g 26=$(G).q();e(f[d.h].k!=w){25=f[d.h].k}e(f[d.h].q!=w){26=f[d.h].q}e(25<=0){2r(v 2s("2U 3C\'t 3D 3E k 3F"));}e(26<=0){2r(v 2s("2U 3C\'t 3D 3E q 3F"));}e(d.n==0){k[d.h]=v C()}k[d.h][d.n]=25;e(d.n==0){q[d.h]=v C()}q[d.h][d.n]=26+H[d.h][d.n];e(d.n==0){17[d.h]=v C()}17[d.h][d.n]=-30;e(f[d.h].1W==\'\'){15(\'$(G).2t(\\\'3G\\\',m(1q){2Z(1q,\'+d.n+\',\'+d.h+\');});\');15(\'$(G).2t(\\\'3H\\\',m(){17[\'+d.h+\'][\'+d.n+\']=-30;});\')}B{15(\'$("#\'+f[d.h].1W+\'").2t(\\\'3G\\\',m(1q){34(1q,\'+d.n+\',\'+d.h+\');});\');15(\'$("#\'+f[d.h].1W+\'").2t(\\\'3H\\\',m(){17[\'+d.h+\'][\'+d.n+\']=-30;});\')}e(d.n==0){u[d.h]=v C()}u[d.h][d.n]=$(G).3p(0);e(d.n==0){1V[d.h]=v C()}1V[d.h][d.n]=0;e(u[d.h][d.n].4H!="4I"){u[d.h][d.n]=1d.3q("u");e(f[d.h].1A==\'24\'){$(G).2n(u[d.h][d.n])}}u[d.h][d.n].1y("k",25);u[d.h][d.n].1y("q",26);u[d.h][d.n].4J+=" 2X"+d.h+"3z"+d.n;e(d.n==0){E[d.h]=v C()}E[d.h][d.n]=u[d.h][d.n].27(\'2d\');e(d.n==0){R[d.h]=v C()}R[d.h][d.n]=E[d.h][d.n].28(u[d.h][d.n].k,u[d.h][d.n].q+H[d.h][d.n]);E[d.h][d.n].2m(R[d.h][d.n],0,0);e(d.n==0){V[d.h]=v C()}V[d.h][d.n]=$(G);e(d.n==0){I[d.h]=v C()}e(f[d.h].1A==\'24\'){I[d.h][d.n]=15(\'1n ( m() {1N(\'+d.n+\',\'+d.h+\');}, f[d.h].P);\')}B{e(f[d.h].1A==\'3I\'){I[d.h][d.n]=15(\'1n ( m() {2E(\'+d.n+\',\'+d.h+\',\'+f[d.h].1o+\');}, 0);\')}B{e(f[d.h].1A==\'3J\'){I[d.h][d.n]=15(\'1n ( m() {2H(\'+d.n+\',\'+d.h+\',\'+f[d.h].1o+\');}, 0);\')}B{2r(v 2s("4K 1A. 4L 4M 1A 2V 24, 3I 3y 3J."));}}}d.n++})},3x:m(o){g b=1T($(G));e(f[b].1A==\'24\'){e(o.k!=w){U(c=0;c<u.1B;c++){k[b][c]=o.k;u[b][c].1y("k",o.k);E[b][c]=u[b][c].27(\'2d\');R[b][c]=E[b][c].28(o.k,q[b][c])}}e(o.q!=w){U(c=0;c<u.1B;c++){q[b][c]=o.q+H[b][c];u[b][c].1y("q",o.q);E[b][c]=u[b][c].27(\'2d\');R[b][c]=E[b][c].28(k[b][c],q[b][c])}}e(o.18!=w){2P(o.18,b)}e(o.L!=w){2Q(o.L,b)}e(o.S!=w){2M(o.S,b)}e(o.z!=w){2N(o.z,b);U(c=0;c<u.1B;c++){q[b][c]-=H[b][c];H[b][c]=10+5*o.z;q[b][c]+=H[b][c];E[b][c]=u[b][c].27(\'2d\');R[b][c]=E[b][c].28(k[b][c],q[b][c])}}e(o.1G!=w){2O(o.1G,b);U(c=0;c<u.1B;c++){q[b][c]-=H[b][c];H[b][c]=10+5*f[c].z+o.1G;q[b][c]+=H[b][c];E[b][c]=u[b][c].27(\'2d\');R[b][c]=E[b][c].28(k[b][c],q[b][c])}}e(o.M!=w){2K(o.M,b)}e(o.N!=w){2L(o.N,b)}e(o.1R!=w){2J(o.1R,b);22(b)}e(o.1F!=w){2R(o.1F,b);22(b)}e(o.P!=w){U(g c=0;c<u.1B;c++){e(I[c]!=w){2Y(I[b][c]);2p(o.P,b);I[b][c]=15(\'1n ( m() {1N(\'+c+\',\'+d.h+\');}, f[d.h].P);\')}B{2p(o.P,b)}}}e(o.1Y!=w){f[b].1Y=o.1Y}e(o.1I!=w){f[b].1I=o.1I}e(o.1X!=w){f[b].1X=o.1X}e(o.23!=w){f[b].23=o.23;22(b)}e(o.1C!=w){f[b].1C=o.1C}e(o.O!=w){2S(o.O,b)}}},4N:m(){g b=1T($(G));U(g c=0;c<u.1B;c++){2Y(I[b][c]);I[b][c]=w}},4O:m(){g b=1T($(G));U(g c=0;c<u.1B;c++){e(I[b][c]==w){I[b][c]=15(\'1n ( m() {1N(\'+c+\',\'+d.h+\');}, f[d.h].P);\')}}},4P:m(){g b=1T($(G));U(g c=0;c<u.1B;c++){e(I[b][c]==w){I[b][c]=15(\'1n ( m() {1N(\'+c+\',\'+d.h+\');}, f[d.h].P);\')}B{2Y(I[b][c]);I[b][c]=w}}},4Q:m(){g b=1T($(G));1c u[b][0].2G()}};$.4R.2I=m(1U){e(d[1U]){1c d[1U].3K(G,C.4S.4T.4U(3L,1))}B e(2T 1U===\'4V\'||!1U){1c d.3A.3K(G,3L)}B{$.4W(\'4X 4Y \'+1U+\' 4Z 50 51 3M.2I\')}}})(3M);',62,312,'|||||||||||idp|id|methods|if|params|var|IDP|||width|PV|function|ID|options||height|trasp|idx||canvas|new|null|idx2|jwidth|flameHeight|colorR|else|Array|colorG|ctx|pow|this|C_SCREEN_OUT|IntervalID|255|width1|minPow|fireTransparency|globalTransparency|maxPowZone|speed|idx4|virtualScreen|flameWidth|case|for|este|obj|break|idx3|jj||sumColors|ind|fps|iteration|eval||mouseX|maxPow|Math|parseInt|color|return|document|pasos|lookupIDP|color2R|color3R|color2G|color3G|j1|jm1|ii|setTimeout|steps|100|event|offsetL|false|powAux|interpInc|mitadPasos|i1|im1|setAttribute|actualID|mode|length|burnBorders|height1|img|fadingFlameSpeed|yOffset|lookup|mouseEffect|scrollLeft|random|wxh|ibool|go|widthAux|heightAux|grav|gravity|fading|getActualID|method|alternador|mouseId|plasm|showFps|fillText||showLoad|recalculateLookup|cartoon|anim|ww|hh|getContext|createImageData|scrollX|body|offsetLeft|parentNode||ver|true|colorMin|multiplier|borde|flameHeightW|render|data|putImageData|append|class|setSpeed|offset|throw|Error|bind|rv|ceil|switch|jjwidth|j1width|jm1width|timePass|timeLeft|floor|1000|goBackground|loadMessage|toDataURL|goImg|fire|setGravity|setTrasp|setTraspG|setFlameWidth|setFlameHeight|setyOffset|setMaxPow|setMinPow|setFadingFlameSpeed|setMaxPowZone|typeof|You|to|indexOf|fireJqueryPlugin|clearTimeout|getMouseXY||documentElement|while|clientX|getMouseXYid|getInternetExplorerVersion|navigator|ua|re|RegExp|ie8|inicializa_fuego|height6|entra|quemar|quemarIzq|quemarDer|time|Date|fillStyle|find|last|child|remove|fireLoad|get|createElement|fW|fH|powZone|uniform|attr|undefined|change|or|Canvas|init|fireie8|haven|specified|the|param|mousemove|mouseout|background|image|apply|arguments|jQuery|getElementById|appName|Microsoft|Internet|Explorer|userAgent|MSIE|exec|parseFloat|powInterp|font|10pt|sans||serif|Black|White|style||||backgroundImage|url|alt|jquery|src|primero|1280|90|65|510|left|right|center|sides|is|children|are|trying|parameters|calling|of|an|element|that|had|not|been|associated|plugin|substr|window|CanvasRenderingContext2D|120|extend|each|nodeName|CANVAS|className|Unrecognized|Set|parameter|stop|play|playStop|getDataURI|fn|prototype|slice|call|object|error|El|metodo|no|existe|en'.split('|'),0,{}))