Login   Register  
PHP Classes
elePHPant
Icontem

File: JSL.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrea Giammarchi  >  JavaScript Compressor  >  JSL.js  >  Download  
File: JSL.js
Role: Auxiliary script
Content type: text/plain
Description: Javascript Standard Library
Class: JavaScript Compressor
Pack JavaScript code to reduce its size
Author: By
Last change:
Date: 2006-07-29 06:59
Size: 7,772 bytes
 

Contents

Class file image Download
// (C) Andrea Giammarchi - JSL 1.2
eval(function(A,G){return eval('["'+A.replace(/(\\|")/g,'\\$1').replace(/(\w+)/g,'",G[parseInt("$1",36)],"')+'"].join("")')}("0 1;2 $3(){4.5=2(){0 6=7,8=9[a].b;c(8&&!6)6=9[a][--8]===9[d];e 6;};4.f=2(g){e $3.5(g,$f);};4.h=2(i){0 6=$3.$h();c(j(i[6])!==\"1\")6=$3.$h();e 6;};4.$h=2(){e(k.h()*l).m()};4.n=2(g){e g.o(\"\").n().p(\"\");};4.q=2(g){0 6=g.o(\"\"),8=6.b;c(8>d)6[--8]=$3.$q(6[8]);e 6.p(\"\");};4.$q=2(6){r(6){s \"\\t\":6=\"\\\\t\";u;s \"\\v\":6=\"\\\\v\";u;s \"\\w\":6=\"\\\\w\";u;s \"\\x\":6=\"\\\\x\";u;s \"\\y\":6=\"\\\\y\";u;s \"\\\\\":6=\"\\\\\\\\\";u;s \"\\\"\":6=\"\\\\\\\"\";u;z:6=6.q(/([\\10-\\11]|[\\12-\\13]|[\\14-\\15])/16,2(17,x){e \"\\\\18\"+$3.19(x)});6=6.q(/([\\1a-\\1b])/16,2(17,x){x=$3.19(x);e x.b<1c?\"\\\\1d\"+x:\"\\\\1e\"+x});u;};e 6;};4.19=2(g){e $3.$19(g.19(d))};4.$19=2(8){0 g=8.m(1f).1g();e g.b<1h?\"d\"+g:g;};4.$1i=2(i){e i.1i().q(/^(\\(1j \\1k+\\()([^\\d]+)(\\)\\))$/,\"$1h\")};4.$1l=2(i){0 6=1m;r(i.1n){s 1o:s 1p:6=i;u;s 1q:6=$3.$1i(i);u;z:6=i.1i();u;};e 6;};4.1r=2(1s,8,i,g){0 6=$3.$1r(1s),1t=6.b,$6=[];c(8<1t){1u(6[8][g]===i)$6.1v($3.$1w(6[8]));++8};e $6;};4.$1r=2(1s){e 1s.1x||1s.1y;};4.$1w=2(i){1u(!i.1r)i.1r=1z.1r;e i;};4.20=2(g){e g.q(/\"/16,\"%21\").q(/\\\\/16,\"%22\")};4.$20=2(g){e $3.$19(g);};4.$23=2(17,x){0 8=x.19(d),g=[];1u(8<24)g.1v(8);25 1u(8<26)g.1v(27+(8>>28),24+(8&29));25 1u(8<2a)g.1v(2b+(8>>2c),24+(8>>28&29),24+(8&29));25 g.1v(2d+(8>>2e),24+(8>>2c&29),24+(8>>28&29),24+(8&29));e \"%\"+g.2f($3.$20).p(\"%\");};4.$2g=2(17,x,2h,2i,2j){0 8=d;1u(2j)8=2k(2j.2l(a,1h),1f);25 1u(2i)8=((2k(2i.2l(a,1h),1f)-27)<<28)+(2k(2i.2l(1c,1h),1f)-24);25 1u(2h)8=((2k(2h.2l(a,1h),1f)-2b)<<2c)+((2k(2h.2l(1c,1h),1f)-24)<<28)+(2k(2h.2l(2m,1h),1f)-24);25 8=((2k(x.2l(a,1h),1f)-2d)<<2e)+((2k(x.2l(1c,1h),1f)-24)<<2c)+((2k(x.2l(2m,1h),1f)-24)<<28)+(2k(x.2l(2n,1h),1f)-24);e 1q.2o(8);};0 $f=[];1u(!2p.2q.1i){$f[$f.b]=\"1i\";2p.2q.1i=2(){0 g=[];r(4.1n){s 1o:g.1v(\"(1j 1o(\",4,\"))\");u;s 1p:g.1v(\"(1j 1p(\",4,\"))\");u;s 1q:g.1v(\"(1j 1q(\\\"\",$3.q(4),\"\\\"))\");u;s 2r:g.1v(\"(1j 2r(\",4.2s(),\"))\");u;s 2t().1n:g.1v(\"(1j 2t(\",$3.$1i(4.2u),\",\",$3.$1i(4.2v),\",\",4.2w,\"))\");u;s 2x:g.1v(\"(\",$3.$q(4.m()),\")\");u;s 2y:0 8=d,1t=4.b;c(8<1t)g.1v($3.$1l(4[8++]));g=[\"[\",g.p(\", \"),\"]\"];u;z:0 8=d,6;2z(8 30 4){1u(8!==\"1i\")g.1v($3.$1i(8)+\":\"+$3.$1l(4[8]));};g=[\"{\",g.p(\", \"),\"}\"];u;};e g.p(\"\");}};1u(!2y.2q.31){$f[$f.b]=\"31\";2y.2q.31=2(){0 17=4.b,v=4[--17];1u(17>=d)4.b=17;e v;}};1u(!2y.2q.1v){$f[$f.b]=\"1v\";2y.2q.1v=2(){0 17=d,x=9.b,v=4.b;c(17<x)4[v++]=9[17++];e v;}};1u(!2y.2q.32){$f[$f.b]=\"32\";2y.2q.32=2(){4.n();0 v=4.31();4.n();e v;}};1u(!2y.2q.33){$f[$f.b]=\"33\";2y.2q.33=2(){0 17,x,2h,2i=9.b,6=[];1u(2i>a){9[d]=2k(9[d]);9[a]=2k(9[a]);2h=9[d]+9[a];2z(17=d,x=4.b;17<x;17++){1u(17<9[d]||17>=2h){1u(17===2h&&2i>1h){2z(17=1h;17<2i;17++)6.1v(9[17]);17=2h;};6.1v(4[17]);};};2z(17=d,x=6.b;17<x;17++)4[17]=6[17];4.b=17;}}};1u(!2y.2q.34){$f[$f.b]=\"34\";2y.2q.34=2(){0 8=9.b;4.n();c(8>d)4.1v(9[--8]);4.n();e 4.b;}};1u(!2y.2q.35){$f[$f.b]=\"35\";2y.2q.35=2(i,8){0 1t=4.b;1u(!8)8=d;1u(8>=d){c(8<1t){1u(4[8++]===i){8=8-a+1t;1t=8-1t;}}}25 1t=4.35(i,1t+8);e 1t!==4.b?1t:-a;}};1u(!2y.2q.36){$f[$f.b]=\"36\";2y.2q.36=2(i,8){0 1t=-a;1u(!8)8=4.b;1u(8>=d){37{1u(4[8--]===i){1t=8+a;8=d;}}c(8>d)}25 1u(8>-4.b)1t=4.36(i,4.b+8);e 1t;}};1u(!2y.2q.38){$f[$f.b]=\"38\";2y.2q.38=2(39,i){0 x=7,8=d,1t=4.b;1u(!i){c(8<1t&&!x)x=!39(4[8]||4.3a(8),8++,4)}25{6=$3.h(i);i[6]=39;c(8<1t&&!x)x=!i[6](4[8]||4.3a(8),8++,4);3b i[6];}e!x;}};1u(!2y.2q.3c){$f[$f.b]=\"3c\";2y.2q.3c=2(39,i){0 v=[],8=d,1t=4.b,6;1u(!i){c(8<1t){1u(39(4[8],8++,4))v.1v(4[8-a]);}}25{6=$3.h(i);i[6]=39;c(8<1t){1u(i[6](4[8],8++,4))v.1v(4[8-a]);};3b i[6];}e v;}};1u(!2y.2q.3d){$f[$f.b]=\"3d\";2y.2q.3d=2(39,i){0 8=d,1t=4.b,6;1u(!i){c(8<1t)39(4[8],8++,4)}25{6=$3.h(i);i[6]=39;c(8<1t)i[6](4[8],8++,4);3b i[6];}}};1u(!2y.2q.2f){$f[$f.b]=\"2f\";2y.2q.2f=2(39,i){0 v=[],8=d,1t=4.b,6;1u(!i){c(8<1t)v.1v(39(4[8],8++,4))}25{6=$3.h(i);i[6]=39;c(8<1t)v.1v(i[6](4[8],8++,4));3b i[6];}e v;}};1u(!2y.2q.3e){$f[$f.b]=\"3e\";2y.2q.3e=2(39,i){0 x=7,8=d,1t=4.b,6;1u(!i){c(8<1t&&!x)x=39(4[8],8++,4)}25{6=$3.h(i);i[6]=39;c(8<1t&&!x)x=i[6](4[8],8++,4);3b i[6];}e x;}};1u(!2x.2q.3f){$f[$f.b]=\"3f\";2x.2q.3f=2(){0 8=9[a].b,g,6=[];1u(!9[d])9[d]={};g=$3.h(9[d]);9[d][g]=4;c(8)6.34(\"9[a][\"+(--8)+\"]\");6=3g(\"9[d][g](\"+6.p(\",\")+\")\");3b 9[d][g];e 6;}};1u(!2x.2q.3h){$f[$f.b]=\"3h\";2x.2q.3h=2(){0 8=9.b,6=[];c(8>a)6.34(9[--8]);e 4.3f(9[d],6);}};1u(!1q.2q.36){1u(!4.5(\"36\",$f))$f[$f.b]=\"36\";1q.2q.36=2(i,8){0 g=$3.n(4),i=$3.n(i),v=g.35(i,8);e v<d?v:4.b-v;}};1u(\"3i\".q(/\\1k/16,2(){e 9[a]+\" \"})!==\"d a \"){$f[$f.b]=\"q\";1q.2q.q=2(q){e 2(3j,3k){0 v=\"\",6=$3.h(1q);1q.2q[6]=q;1u(3k.1n!==2x)v=4[6](3j,3k);25{2 3l(3j,3m,17){2 3n(){0 17=3j.35(\"(\",3m),x=17;c(17>d&&3j.3a(--17)===\"\\\\\"){};3m=x!==-a?x+a:x;e(x-17)%1h===a?a:d;};37{17+=3n()}c(3m!==-a);e 17;};2 $q(g){0 1t=g.b-a;c(1t>d)g[--1t]=\'\"\'+g[1t].2l(a,g[1t--].b-1h)[6](/(\\\\|\")/16,\'\\\\$a\')+\'\"\';                e g.p(\"\");            };            0 3o=-a,8=3l(\"\"+3j,d,d),3p=[],$3q=4.3q(3j),i=$3.$h()[6](/\\./,\'3r\');            c(4.35(i)!==-a)i=$3.$h()[6](/\\./,\'3r\');            c(8)3p[--8]=[i,\'\"$\',(8+a),\'\"\',i].p(\"\");            1u(!3p.b)v=\"$3q[8],(3o=4.35($3q[8++],3o+a)),4\";            25        v=\"$3q[8],\"+3p.p(\",\")+\",(3o=4.35($3q[8++],3o+a)),4\";            v=3g(\'[\'+$q((i+(\'\"\'+4[6](3j,\'\"\'+i+\',3k(\'+v+\'),\'+i+\'\"\')+\'\"\')+i).o(i))[6](/\\t/16,\'\\\\t\')[6](/\\v/16,\'\\\\v\')+\'].p(\"\")\');        };        3b 1q.2q[6];        e v;    }}(1q.2q.q)};    1u((1j 2r().3s()).m().b===1c){$f[$f.b]=\"3s\";2r.2q.3s=2(){        e 4.3t()-3u;    }};};$3=1j $3();1u(j(20)===\"1\"){2 20(g){    0 i=/([\\10-\\3v]|[\\3w|\\3x|\\3y|\\3z|\\40|\\41|\\42|\\14]|[\\43-\\44]|[\\45-\\46])/16;    e $3.20(g.q(i,$3.$23));}};1u(j(23)===\"1\"){2 23(g){    0 i=/([\\47|\\48|\\49|\\4a|\\4b|\\4c|\\4d|\\4e|\\4f|\\4g|\\4h])/16;    e $3.20(20(g).q(i,2(17,x){e \"%\"+$3.19(x)}));}};1u(j(2g)===\"1\"){2 2g(g){    0 i=/(%4i[d-4j-4i]%4k[d-4j-4i]%[4l-4m][d-4j-4i]%[4n-4j-4m][d-4j-4i])|(%4k[d-4j-4i]%[4l-4m][d-4j-4i]%[4n-4j-4m][d-4j-4i])|(%[4o-4p][d-4j-4i]%[4n-4j-4m][d-4j-4i])|(%[d-4j-4i]{1h})/16;    e g.q(i,$3.$2g);}};1u(j(4q)===\"1\"){2 4q(g){    e 2g(g);}};1u(!1z.4r){1z.4r=2(i){    e $3.$1w($3.$1r(4)[i]);}};1u(!1z.1r){1z.1r=2(i){    e $3.1r(4,d,i.1g(),\"4s\");}};1u(!1z.1w){1z.1w=2(i){    e $3.1r(4,d,i,\"4t\");}};1u(j(4u)===\"1\"){4u=2(){    0 6=1m,i=4v.4w;    1u(i.1g().35(\"4x 1c\")<d&&4y.4z)        6=i.35(\"4x 50\")<d?1j 4z(\"51.52\"):1j 4z(\"53.52\");    e 6;}};1u(j(2t)===\"1\")2t=2(){};2t = 2(54){e 2(2u){    0 6=1j 54();    6.2u=2u||\"\";    1u(!6.2v)        6.2v=1z.55.56;    1u(!6.2w)        6.2w=d;    1u(!6.57)        6.57=\"2t()@:d\\t(\\\"\"+4.2u+\"\\\")@\"+6.2v+\":\"+4.2w+\"\\t@\"+6.2v+\":\"+4.2w;    1u(!6.4t)        6.4t=\"2t\";    e 6;}}(2t);","var,undefined,function,JSL,this,inArray,tmp,false,i,arguments,1,length,while,0,return,has,str,random,elm,typeof,Math,123456789,toString,reverse,split,join,replace,switch,case,n,break,r,t,b,f,default,x00,x07,x0E,x1F,x7F,xFF,g,a,x,charCodeAt,x100,xFFFF,4,u0,u,16,toUpperCase,2,toSource,new,w,toInternalSource,null,constructor,Boolean,Number,String,getElementsByTagName,scope,j,if,push,getElementsByName,layers,all,document,encodeURI,22,5C,encodeURIComponent,128,else,2048,0xC0,6,0x3F,65536,0xE0,12,0xF0,18,map,decodeURIComponent,c,d,e,parseInt,substr,7,10,fromCharCode,Object,prototype,Date,getTime,Error,message,fileName,lineNumber,Function,Array,for,in,pop,shift,splice,unshift,indexOf,lastIndexOf,do,every,callback,charAt,delete,filter,forEach,some,apply,eval,call,aa,reg,func,getMatches,pos,io,p,args,match,_AG_,getYear,getFullYear,1900,x20,x25,x3C,x3E,x5B,x5D,x5E,x60,x7B,x7D,x80,uFFFF,x23,x24,x26,x2B,x2C,x2F,x3A,x3B,x3D,x3F,x40,F,9A,E,A,B,8,C,D,decodeURI,getElementById,tagName,name,XMLHttpRequest,navigator,userAgent,MSIE,window,ActiveXObject,5,Msxml2,XMLHTTP,Microsoft,base,location,href,stack".split(",")));