jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r627259 [3/3] - in /incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs: applets/ applets/WiWi-INF/ applets/WiWi-INF/extensions/ error/ images/ scripts/ scripts/fckeditor/ scripts/json-rpc/ templates/ templates/default/ templates/...
Date Wed, 13 Feb 2008 06:11:28 GMT
Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/mootools.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/mootools.js?rev=627259&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/mootools.js (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/mootools.js Tue Feb 12 22:11:16 2008
@@ -0,0 +1,3 @@
+//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style 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}('o bc={bd:\'1.11\'};h $6m(M){k(M!=85)};h $C(M){m(!$6m(M))k R;m(M.48)k\'L\';o C=68 M;m(C==\'2h\'&&M.bb){1Y(M.7w){14 1:k\'L\';14 3:k(/\\S/).2b(M.8K)?\'ba\':\'b7\'}}m(C==\'2h\'||C==\'h\'){1Y(M.88){14 2l:k\'1o\';14 7k:k\'5d\';14 1b:k\'4h\'}m(68 M.P==\'4J\'){m(M.2S)k\'b8\';m(M.7d)k\'17\'}}k C};h $1R(){o 4G={};J(o i=0;i<17.P;i++){J(o F 18 17[i]){o ap=17[i][F];o 62=4G[F];m(62&&$C(ap)==\'2h\'&&$C(62)==\'2h\')4G[F]=$1R(62,ap);15 4G[F]=ap}}k 4G};o $T=h(){o 1g=17;m(!1g[1])1g=[c,1g[0]];J(o F 18 1g[1])1g[0][F]=1g[1][F];k 1g[0]};o $4d=h(){J(o i=0,l=17.P;i<l;i++){17[i].T=h(1G){J(o 1I 18 1G){m(!c.1B[1I])c.1B[1I]=1G[1I];m(!c[1I])c[1I]=$4d.5S(1I)}}}};$4d.5S=h(1I){k h(12
 ){k c.1B[1I].3n(12,2l.1B.7X.1T(17,1))}};$4d(6Y,2l,6b,83);h $2L(M){k!!(M||M===0)};h $4e(M,89){k $6m(M)?M:89};h $7c(3M,3k){k 1i.b9(1i.7c()*(3k-3M+1)+3M)};h $2W(){k N 9z().9s()};h $4D(1K){be(1K);bf(1K);k 1j};o 35=h(M){M=M||{};M.T=$T;k M};o bk=N 35(Q);o bl=N 35(U);U.5U=U.2D(\'5U\')[0];Q.3D=!!(U.4N);m(Q.9B)Q.2q=Q[Q.5F?\'bj\':\'7V\']=1c;15 m(U.8J&&!U.bi&&!bg.bh)Q.3K=Q[Q.3D?\'b6\':\'5Q\']=1c;15 m(U.b5!=1j)Q.6O=1c;Q.aU=Q.3K;7e.T=$T;m(68 54==\'85\'){o 54=h(){};m(Q.3K)U.84("aV");54.1B=(Q.3K)?Q["[[aT.1B]]"]:{}}54.1B.48=h(){};m(Q.7V)4q{U.aS("aP",R,1c)}4s(e){};o 1b=h(1x){o 4X=h(){k(17[0]!==1j&&c.1r&&$C(c.1r)==\'h\')?c.1r.3n(c,17):c};$T(4X,c);4X.1B=1x;4X.88=1b;k 4X};1b.1k=h(){};1b.1B={T:h(1x){o 5Y=N c(1j);J(o F 18 1x){o 80=5Y[F];5Y[F]=1b.81(80,1x[F])}k N 1b(5Y)},4n:h(){J(o i=0,l=17.P;i<l;i++)$T(c.1B,17[i])}};1b.81=h(2z,23){m(2z&&2z!=23){o C=$C(23);m(C!=$C(2z))k 23;1Y(C){14\'h\':o 79=h(){c.1E=17.7d.1E;k 23.3n(c,17)};79.1E=2z;k 79;14\'2h\':k $1R(2z,23)}}k 23};o 7P=N 1b({aR:h(V){c.3S=c.3S||[
 ];c.3S.1f(V);k c},7A:h(){m(c.3S&&c.3S.P)c.3S.8s().1X(10,c)},aW:h(){c.3S=[]}});o 2n=N 1b({1P:h(C,V){m(V!=1b.1k){c.$19=c.$19||{};c.$19[C]=c.$19[C]||[];c.$19[C].5h(V)}k c},1u:h(C,1g,1X){m(c.$19&&c.$19[C]){c.$19[C].1v(h(V){V.2F({\'12\':c,\'1X\':1X,\'17\':1g})()},c)}k c},4K:h(C,V){m(c.$19&&c.$19[C])c.$19[C].2E(V);k c}});o 4L=N 1b({3l:h(){c.q=$1R.3n(1j,[c.q].T(17));m(c.1P){J(o 3c 18 c.q){m($C(c.q[3c]==\'h\')&&(/^5b[A-Z]/).2b(3c))c.1P(3c,c.q[3c])}}k c}});2l.T({66:h(V,12){J(o i=0,j=c.P;i<j;i++)V.1T(12,c[i],i,c)},2M:h(V,12){o 4b=[];J(o i=0,j=c.P;i<j;i++){m(V.1T(12,c[i],i,c))4b.1f(c[i])}k 4b},2t:h(V,12){o 4b=[];J(o i=0,j=c.P;i<j;i++)4b[i]=V.1T(12,c[i],i,c);k 4b},6o:h(V,12){J(o i=0,j=c.P;i<j;i++){m(!V.1T(12,c[i],i,c))k R}k 1c},aX:h(V,12){J(o i=0,j=c.P;i<j;i++){m(V.1T(12,c[i],i,c))k 1c}k R},3t:h(2S,Y){o 36=c.P;J(o i=(Y<0)?1i.3k(0,36+Y):Y||0;i<36;i++){m(c[i]===2S)k i}k-1},7W:h(1l,P){1l=1l||0;m(1l<0)1l=c.P+1l;P=P||(c.P-1l);o 7t=[];J(o i=0;i<P;i++)7t[i]=c[1l++];k 7t},2E:h(2S){o i=0;o 36=c.
 P;72(i<36){m(c[i]===2S){c.5p(i,1);36--}15{i++}}k c},1h:h(2S,Y){k c.3t(2S,Y)!=-1},b4:h(1D){o M={},P=1i.3M(c.P,1D.P);J(o i=0;i<P;i++)M[1D[i]]=c[i];k M},T:h(1o){J(o i=0,j=1o.P;i<j;i++)c.1f(1o[i]);k c},1R:h(1o){J(o i=0,l=1o.P;i<l;i++)c.5h(1o[i]);k c},5h:h(2S){m(!c.1h(2S))c.1f(2S);k c},b2:h(){k c[$7c(0,c.P-1)]||1j},8a:h(){k c[c.P-1]||1j}});2l.1B.1v=2l.1B.66;2l.1v=2l.66;h $A(1o){k 2l.7W(1o)};h $1v(3x,V,12){m(3x&&68 3x.P==\'4J\'&&$C(3x)!=\'2h\'){2l.66(3x,V,12)}15{J(o 1n 18 3x)V.1T(12||3x,3x[1n],1n)}};2l.1B.2b=2l.1B.1h;6b.T({2b:h(67,2x){k(($C(67)==\'2c\')?N 7k(67,2x):67).2b(c)},3e:h(){k 4M(c,10)},87:h(){k 4Q(c)},7f:h(){k c.2O(/-\\D/g,h(2G){k 2G.70(1).7B()})},8D:h(){k c.2O(/\\w[A-Z]/g,h(2G){k(2G.70(0)+\'-\'+2G.70(1).4C())})},8h:h(){k c.2O(/\\b[a-z]/g,h(2G){k 2G.7B()})},4V:h(){k c.2O(/^\\s+|\\s+$/g,\'\')},7a:h(){k c.2O(/\\s{2,}/g,\' \').4V()},6e:h(1o){o 2v=c.2G(/\\d{1,3}/g);k(2v)?2v.6e(1o):R},5O:h(1o){o 3Z=c.2G(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);k(3Z)?3Z.7X(1).5O(1o):R},1h:h(2c,s){
 k(s)?(s+c+s).3t(s+2c+s)>-1:c.3t(2c)>-1},9p:h(){k c.2O(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});2l.T({6e:h(1o){m(c.P<3)k R;m(c.P==4&&c[3]==0&&!1o)k\'aY\';o 3Z=[];J(o i=0;i<3;i++){o 4w=(c[i]-0).41(16);3Z.1f((4w.P==1)?\'0\'+4w:4w)}k 1o?3Z:\'#\'+3Z.1U(\'\')},5O:h(1o){m(c.P!=3)k R;o 2v=[];J(o i=0;i<3;i++){2v.1f(4M((c[i].P==1)?c[i]+c[i]:c[i],16))}k 1o?2v:\'2v(\'+2v.1U(\',\')+\')\'}});6Y.T({2F:h(q){o V=c;q=$1R({\'12\':V,\'G\':R,\'17\':1j,\'1X\':R,\'3F\':R,\'5W\':R},q);m($2L(q.17)&&$C(q.17)!=\'1o\')q.17=[q.17];k h(G){o 1g;m(q.G){G=G||Q.G;1g=[(q.G===1c)?G:N q.G(G)];m(q.17)1g.T(q.17)}15 1g=q.17||17;o 3b=h(){k V.3n($4e(q.12,V),1g)};m(q.1X)k 92(3b,q.1X);m(q.3F)k b0(3b,q.3F);m(q.5W)4q{k 3b()}4s(bm){k R};k 3b()}},bn:h(1g,12){k c.2F({\'17\':1g,\'12\':12})},5W:h(1g,12){k c.2F({\'17\':1g,\'12\':12,\'5W\':1c})()},12:h(12,1g){k c.2F({\'12\':12,\'17\':1g})},bK:h(12,1g){k c.2F({\'12\':12,\'G\':1c,\'17\':1g})},1X:h(1X,12,1g){k c.2F({\'1X\':1X,\'12\':12,\'17\':1g})()},3F:h(82,12,1g){k c.2F({\'
 3F\':82,\'12\':12,\'17\':1g})()}});83.T({3e:h(){k 4M(c)},87:h(){k 4Q(c)},1M:h(3M,3k){k 1i.3M(3k,1i.3k(3M,c))},3G:h(5i){5i=1i.3i(10,5i||0);k 1i.3G(c*5i)/5i},bL:h(V){J(o i=0;i<c;i++)V(i)}});o K=N 1b({1r:h(B,1G){m($C(B)==\'2c\'){m(Q.2q&&1G&&(1G.1n||1G.C)){o 1n=(1G.1n)?\' 1n="\'+1G.1n+\'"\':\'\';o C=(1G.C)?\' C="\'+1G.C+\'"\':\'\';4m 1G.1n;4m 1G.C;B=\'<\'+B+1n+C+\'>\'}B=U.84(B)}B=$(B);k(!1G||!B)?B:B.1Z(1G)}});o 1N=N 1b({1r:h(O){k(O)?$T(O,c):c}});1N.T=h(1G){J(o 1I 18 1G){c.1B[1I]=1G[1I];c[1I]=$4d.5S(1I)}};h $(B){m(!B)k 1j;m(B.48)k 2g.49(B);m([Q,U].1h(B))k B;o C=$C(B);m(C==\'2c\'){B=U.5H(B);C=(B)?\'L\':R}m(C!=\'L\')k 1j;m(B.48)k 2g.49(B);m([\'2h\',\'bJ\'].1h(B.6d.4C()))k B;$T(B,K.1B);B.48=h(){};k 2g.49(B)};U.5P=U.2D;h $$(){o O=[];J(o i=0,j=17.P;i<j;i++){o 1C=17[i];1Y($C(1C)){14\'L\':O.1f(1C);14\'bI\':1w;14 R:1w;14\'2c\':1C=U.5P(1C,1c);5V:O.T(1C)}}k $$.56(O)};$$.56=h(1o){o O=[];J(o i=0,l=1o.P;i<l;i++){m(1o[i].$5T)5t;o L=$(1o[i]);m(L&&!L.$5T){L.$5T=1c;O.1f(L)}}J(o n=0,d=O.P;n<d;n++)
 O[n].$5T=1j;k N 1N(O)};1N.5M=h(F){k h(){o 1g=17;o 1q=[];o O=1c;J(o i=0,j=c.P,3b;i<j;i++){3b=c[i][F].3n(c[i],1g);m($C(3b)!=\'L\')O=R;1q.1f(3b)};k(O)?$$.56(1q):1q}};K.T=h(1x){J(o F 18 1x){54.1B[F]=1x[F];K.1B[F]=1x[F];K[F]=$4d.5S(F);o 7U=(2l.1B[F])?F+\'1N\':F;1N.1B[7U]=1N.5M(F)}};K.T({1Z:h(1G){J(o 1I 18 1G){o 3X=1G[1I];1Y(1I){14\'7b\':c.4Y(3X);1w;14\'19\':m(c.6c)c.6c(3X);1w;14\'1x\':c.5N(3X);1w;5V:c.6i(1I,3X)}}k c},1V:h(B,7Q){B=$(B);1Y(7Q){14\'7R\':B.2I.7m(c,B);1w;14\'7T\':o 4H=B.8z();m(!4H)B.2I.7i(c);15 B.2I.7m(c,4H);1w;14\'2H\':o 7l=B.74;m(7l){B.7m(c,7l);1w}5V:B.7i(c)}k c},9t:h(B){k c.1V(B,\'7R\')},7h:h(B){k c.1V(B,\'7T\')},bD:h(B){k c.1V(B,\'5r\')},bt:h(B){k c.1V(B,\'2H\')},a0:h(){o O=[];$1v(17,h(3I){O=O.6K(3I)});$$(O).1V(c);k c},2E:h(){k c.2I.8R(c)},bu:h(7S){o B=$(c.bs(7S!==R));m(!B.$19)k B;B.$19={};J(o C 18 c.$19)B.$19[C]={\'1D\':$A(c.$19[C].1D),\'26\':$A(c.$19[C].26)};k B.5C()},br:h(B){B=$(B);c.2I.bo(B,c);k B},8S:h(1y){c.7i(U.bq(1y));k c},7j:h(1s){k c.1s.1h(1s,\' \')},8F:
 h(1s){m(!c.7j(1s))c.1s=(c.1s+\' \'+1s).7a();k c},8V:h(1s){c.1s=c.1s.2O(N 7k(\'(^|\\\\s)\'+1s+\'(?:\\\\s|$)\'),\'$1\').7a();k c},bw:h(1s){k c.7j(1s)?c.8V(1s):c.8F(1s)},29:h(F,I){1Y(F){14\'1W\':k c.8H(4Q(I));14\'bB\':F=(Q.2q)?\'bC\':\'bA\'}F=F.7f();1Y($C(I)){14\'4J\':m(![\'bz\',\'8I\'].1h(F))I+=\'4f\';1w;14\'1o\':I=\'2v(\'+I.1U(\',\')+\')\'}c.1A[F]=I;k c},4Y:h(1J){1Y($C(1J)){14\'2h\':K.5w(c,\'29\',1J);1w;14\'2c\':c.1A.73=1J}k c},8H:h(1W){m(1W==0){m(c.1A.3P!="3R")c.1A.3P="3R"}15{m(c.1A.3P!="71")c.1A.3P="71"}m(!c.6g||!c.6g.by)c.1A.8I=1;m(Q.2q)c.1A.2M=(1W==1)?\'\':"bU(1W="+1W*77+")";c.1A.1W=c.$1H.1W=1W;k c},2r:h(F){F=F.7f();o 1z=c.1A[F];m(!$2L(1z)){m(F==\'1W\')k c.$1H.1W;1z=[];J(o 1A 18 K.3v){m(F==1A){K.3v[1A].1v(h(s){o 1A=c.2r(s);1z.1f(4M(1A)?1A:\'8k\')},c);m(F==\'2y\'){o 6o=1z.6o(h(4w){k(4w==1z[0])});k(6o)?1z[0]:R}k 1z.1U(\' \')}}m(F.1h(\'2y\')){m(K.3v.2y.1h(F)){k[\'8j\',\'6I\',\'6P\'].2t(h(p){k c.2r(F+p)},c).1U(\' \')}15 m(K.8m.1h(F)){k[\'8f\',\'8c\',\'8d\',\'8e\'].2t(h(p){k c
 .2r(\'2y\'+p+F.2O(\'2y\',\'\'))},c).1U(\' \')}}m(U.8E)1z=U.8E.a5(c,1j).an(F.8D());15 m(c.6g)1z=c.6g[F]}m(Q.2q)1z=K.8y(F,1z,c);m(1z&&F.2b(/69/i)&&1z.1h(\'2v\')){k 1z.4W(\'2v\').5p(1,4).2t(h(69){k 69.6e()}).1U(\' \')}k 1z},9Z:h(){k K.7v(c,\'2r\',17)},4F:h(6h,1l){6h+=\'a8\';o B=(1l)?c[1l]:c[6h];72(B&&$C(B)!=\'L\')B=B[6h];k $(B)},a9:h(){k c.4F(\'2z\')},8z:h(){k c.4F(\'4H\')},ak:h(){k c.4F(\'4H\',\'74\')},8a:h(){k c.4F(\'2z\',\'a7\')},a6:h(){k $(c.2I)},ab:h(){k $$(c.8J)},6N:h(B){k!!$A(c.2D(\'*\')).1h(B)},4z:h(F){o 1O=K.5A[F];m(1O)k c[1O];o 7n=K.8t[F]||0;m(!Q.2q||7n)k c.aN(F,7n);o 7o=c.aG[F];k(7o)?7o.8K:1j},aE:h(F){o 1O=K.5A[F];m(1O)c[1O]=\'\';15 c.9c(F);k c},aD:h(){k K.7v(c,\'4z\',17)},6i:h(F,I){o 1O=K.5A[F];m(1O)c[1O]=I;15 c.aH(F,I);k c},5N:h(1J){k K.5w(c,\'6i\',1J)},57:h(){c.8M=$A(17).1U(\'\');k c},aM:h(1y){o 2P=c.3V();m([\'1A\',\'2f\'].1h(2P)){m(Q.2q){m(2P==\'1A\')c.8T.73=1y;15 m(2P==\'2f\')c.6i(\'1y\',1y);k c}15{c.8R(c.74);k c.8S(1y)}}c[$6m(c.76)?\'76\':\'8O\']=1y;k c},aB:h()
 {o 2P=c.3V();m([\'1A\',\'2f\'].1h(2P)){m(Q.2q){m(2P==\'1A\')k c.8T.73;15 m(2P==\'2f\')k c.4z(\'1y\')}15{k c.8M}}k($4e(c.76,c.8O))},3V:h(){k c.6d.4C()},1k:h(){2g.4Z(c.2D(\'*\'));k c.57(\'\')}});K.8y=h(F,1z,L){m($2L(4M(1z)))k 1z;m([\'3q\',\'2K\'].1h(F)){o 26=(F==\'2K\')?[\'3g\',\'5D\']:[\'2H\',\'5r\'];o 5Z=0;26.1v(h(I){5Z+=L.2r(\'2y-\'+I+\'-2K\').3e()+L.2r(\'3Y-\'+I).3e()});k L[\'3Q\'+F.8h()]-5Z+\'4f\'}15 m(F.2b(/2y(.+)8j|2B|3Y/)){k\'8k\'}k 1z};K.3v={\'2y\':[],\'3Y\':[],\'2B\':[]};[\'8f\',\'8c\',\'8d\',\'8e\'].1v(h(8l){J(o 1A 18 K.3v)K.3v[1A].1f(1A+8l)});K.8m=[\'aC\',\'aJ\',\'aL\'];K.7v=h(B,1L,1D){o 1z={};$1v(1D,h(1m){1z[1m]=B[1L](1m)});k 1z};K.5w=h(B,1L,7y){J(o 1m 18 7y)B[1L](1m,7y[1m]);k B};K.5A=N 35({\'4h\':\'1s\',\'J\':\'aj\',\'ai\':\'ag\',\'am\':\'af\',\'ac\':\'bO\',\'bW\':\'dg\',\'dh\':\'df\',\'de\':\'dc\',\'bV\':\'di\',\'I\':\'I\',\'6y\':\'6y\',\'6A\':\'6A\',\'6C\':\'6C\',\'6q\':\'6q\'});K.8t={\'64\':2,\'3N\':2};K.2k={5B:{2N:h(C,V){m(c.6J)c.6J(C,V,R);15 c.dj(\'5b\'+C,V)
 ;k c},43:h(C,V){m(c.8u)c.8u(C,V,R);15 c.dp(\'5b\'+C,V);k c}}};Q.T(K.2k.5B);U.T(K.2k.5B);K.T(K.2k.5B);o 2g={O:[],49:h(B){m(!B.$1H){2g.O.1f(B);B.$1H={\'1W\':1}}k B},4Z:h(O){J(o i=0,j=O.P,B;i<j;i++){m(!(B=O[i])||!B.$1H)5t;m(B.$19)B.1u(\'4Z\').5C();J(o p 18 B.$1H)B.$1H[p]=1j;J(o d 18 K.1B)B[d]=1j;2g.O[2g.O.3t(B)]=1j;B.48=B.$1H=B=1j}2g.O.2E(1j)},1k:h(){2g.49(Q);2g.49(U);2g.4Z(2g.O)}};Q.2N(\'8g\',h(){Q.2N(\'6S\',2g.1k);m(Q.2q)Q.2N(\'6S\',db)});o 2w=N 1b({1r:h(G){m(G&&G.$8v)k G;c.$8v=1c;G=G||Q.G;c.G=G;c.C=G.C;c.4k=G.4k||G.d0;m(c.4k.7w==3)c.4k=c.4k.2I;c.8s=G.cZ;c.cY=G.cV;c.cW=G.d2;c.d3=G.d8;m([\'6U\',\'5z\'].1h(c.C)){c.d7=(G.8r)?G.8r/d4:-(G.d5||0)/3}15 m(c.C.1h(\'1m\')){c.5v=G.8p||G.dr;J(o 1n 18 2w.1D){m(2w.1D[1n]==c.5v){c.1m=1n;1w}}m(c.C==\'8b\'){o 5l=c.5v-dq;m(5l>0&&5l<13)c.1m=\'f\'+5l}c.1m=c.1m||6b.dF(c.5v).4C()}15 m(c.C.2b(/(7g|3h|dK)/)){c.3y={\'x\':G.7E||G.8n+U.2s.9Q,\'y\':G.7D||G.8o+U.2s.9S};c.dM={\'x\':G.7E?G.7E-Q.9E:G.8n,\'y\':G.7D?G.7D-Q.9P:G.8o};c.dP=(G.8p==3)||(G.dE==2);1
 Y(c.C){14\'6T\':c.21=G.21||G.dD;1w;14\'6Q\':c.21=G.21||G.dw}c.8q()}k c},2p:h(){k c.5o().5n()},5o:h(){m(c.G.5o)c.G.5o();15 c.G.dx=1c;k c},5n:h(){m(c.G.5n)c.G.5n();15 c.G.dC=R;k c}});2w.5s={21:h(){m(c.21&&c.21.7w==3)c.21=c.21.2I},8A:h(){4q{2w.5s.21.1T(c)}4s(e){c.21=c.4k}}};2w.1B.8q=(Q.6O)?2w.5s.8A:2w.5s.21;2w.1D=N 35({\'dJ\':13,\'ds\':38,\'dv\':40,\'3g\':37,\'5D\':39,\'ch\':27,\'cc\':32,\'ci\':8,\'cj\':9,\'4m\':46});K.2k.2n={1P:h(C,V){c.$19=c.$19||{};c.$19[C]=c.$19[C]||{\'1D\':[],\'26\':[]};m(c.$19[C].1D.1h(V))k c;c.$19[C].1D.1f(V);o 5u=C;o 2d=K.2n[C];m(2d){m(2d.6z)2d.6z.1T(c,V);m(2d.2t)V=2d.2t;m(2d.C)5u=2d.C}m(!c.6J)V=V.2F({\'12\':c,\'G\':1c});c.$19[C].26.1f(V);k(K.6V.1h(5u))?c.2N(5u,V):c},4K:h(C,V){m(!c.$19||!c.$19[C])k c;o 1t=c.$19[C].1D.3t(V);m(1t==-1)k c;o 1m=c.$19[C].1D.5p(1t,1)[0];o I=c.$19[C].26.5p(1t,1)[0];o 2d=K.2n[C];m(2d){m(2d.2E)2d.2E.1T(c,V);m(2d.C)C=2d.C}k(K.6V.1h(C))?c.43(C,I):c},6c:h(1J){k K.5w(c,\'1P\',1J)},5C:h(C){m(!c.$19)k c;m(!C){J(o 5x 18 c.$19)c.5C(5x);
 c.$19=1j}15 m(c.$19[C]){c.$19[C].1D.1v(h(V){c.4K(C,V)},c);c.$19[C]=1j}k c},1u:h(C,1g,1X){m(c.$19&&c.$19[C]){c.$19[C].1D.1v(h(V){V.2F({\'12\':c,\'1X\':1X,\'17\':1g})()},c)}k c},8w:h(Y,C){m(!Y.$19)k c;m(!C){J(o 5x 18 Y.$19)c.8w(Y,5x)}15 m(Y.$19[C]){Y.$19[C].1D.1v(h(V){c.1P(C,V)},c)}k c}};Q.T(K.2k.2n);U.T(K.2k.2n);K.T(K.2k.2n);K.2n=N 35({\'7L\':{C:\'6T\',2t:h(G){G=N 2w(G);m(G.21!=c&&!c.6N(G.21))c.1u(\'7L\',G)}},\'7x\':{C:\'6Q\',2t:h(G){G=N 2w(G);m(G.21!=c&&!c.6N(G.21))c.1u(\'7x\',G)}},\'5z\':{C:(Q.6O)?\'6U\':\'5z\'}});K.6V=[\'7g\',\'c2\',\'7G\',\'6X\',\'5z\',\'6U\',\'6T\',\'6Q\',\'3U\',\'8b\',\'c7\',\'c6\',\'3j\',\'6S\',\'8g\',\'cp\',\'cq\',\'cK\',\'cL\',\'9L\',\'cJ\',\'cI\',\'3s\',\'9v\',\'7p\',\'cG\',\'61\'];6Y.T({51:h(12,1g){k c.2F({\'12\':12,\'17\':1g,\'G\':2w})}});1N.T({cS:h(2P){k N 1N(c.2M(h(B){k(K.3V(B)==2P)}))},8L:h(1s,2j){o O=c.2M(h(B){k(B.1s&&B.1s.1h(1s,\' \'))});k(2j)?O:N 1N(O)},8N:h(3O,2j){o O=c.2M(h(B){k(B.3O==3O)});k(2j)?O:N 1N(O)},8P:h(1n,6D,I,2j){o O=c.2M(h(B){o
  23=K.4z(B,1n);m(!23)k R;m(!6D)k 1c;1Y(6D){14\'=\':k(23==I);14\'*=\':k(23.1h(I));14\'^=\':k(23.7s(0,I.P)==I);14\'$=\':k(23.7s(23.P-I.P)==I);14\'!=\':k(23!=I);14\'~=\':k 23.1h(I,\' \')}k R});k(2j)?O:N 1N(O)}});h $E(1C,2M){k($(2M)||U).8G(1C)};h $cv(1C,2M){k($(2M)||U).5P(1C)};$$.33={\'5d\':/^(\\w*|\\*)(?:#([\\w-]+)|\\.([\\w-]+))?(?:\\[(\\w+)(?:([!*^$]?=)["\']?([^"\'\\]]*)["\']?)?])?$/,\'3D\':{6E:h(1q,2A,1a,i){o 25=[2A.cu?\'6B:\':\'\',1a[1]];m(1a[2])25.1f(\'[@3O="\',1a[2],\'"]\');m(1a[3])25.1f(\'[1h(6K(" ", @4h, " "), " \',1a[3],\' ")]\');m(1a[4]){m(1a[5]&&1a[6]){1Y(1a[5]){14\'*=\':25.1f(\'[1h(@\',1a[4],\', "\',1a[6],\'")]\');1w;14\'^=\':25.1f(\'[ct-cr(@\',1a[4],\', "\',1a[6],\'")]\');1w;14\'$=\':25.1f(\'[cs(@\',1a[4],\', 2c-P(@\',1a[4],\') - \',1a[6].P,\' + 1) = "\',1a[6],\'"]\');1w;14\'=\':25.1f(\'[@\',1a[4],\'="\',1a[6],\'"]\');1w;14\'!=\':25.1f(\'[@\',1a[4],\'!="\',1a[6],\'"]\')}}15{25.1f(\'[@\',1a[4],\']\')}}1q.1f(25.1U(\'\'));k 1q},6L:h(1q,2A,2j){o O=[];o 3D=U.4N(\'.//\'+1
 q.1U(\'//\'),2A,$$.33.8Q,cD.cC,1j);J(o i=0,j=3D.cB;i<j;i++)O.1f(3D.cz(i));k(2j)?O:N 1N(O.2t($))}},\'8C\':{6E:h(1q,2A,1a,i){m(i==0){m(1a[2]){o B=2A.5H(1a[2]);m(!B||((1a[1]!=\'*\')&&(K.3V(B)!=1a[1])))k R;1q=[B]}15{1q=$A(2A.2D(1a[1]))}}15{1q=$$.33.2D(1q,1a[1]);m(1a[2])1q=1N.8N(1q,1a[2],1c)}m(1a[3])1q=1N.8L(1q,1a[3],1c);m(1a[4])1q=1N.8P(1q,1a[4],1a[5],1a[6],1c);k 1q},6L:h(1q,2A,2j){k(2j)?1q:$$.56(1q)}},8Q:h(8U){k(8U==\'6B\')?\'9g://9w.cF.cP/c4/6B\':R},2D:h(2A,6d){o 6v=[];J(o i=0,j=2A.P;i<j;i++)6v.T(2A[i].2D(6d));k 6v}};$$.33.1L=(Q.3D)?\'3D\':\'8C\';K.2k.6p={6a:h(1C,2j){o 1q=[];1C=1C.4V().4W(\' \');J(o i=0,j=1C.P;i<j;i++){o 8B=1C[i];o 1a=8B.2G($$.33.5d);m(!1a)1w;1a[1]=1a[1]||\'*\';o 25=$$.33[$$.33.1L].6E(1q,c,1a,i);m(!25)1w;1q=25}k $$.33[$$.33.1L].6L(1q,c,2j)},8G:h(1C){k $(c.6a(1C,1c)[0]||R)},5P:h(1C,2j){o O=[];1C=1C.4W(\',\');J(o i=0,j=1C.P;i<j;i++)O=O.6K(c.6a(1C[i],1c));k(2j)?O:$$.56(O)}};K.T({5H:h(3O){o B=U.5H(3O);m(!B)k R;J(o 1E=B.2I;1E!=c;1E=1E.2I){m(!1E)k R}k B},co:h(1s){k 
 c.6a(\'.\'+1s)}});U.T(K.2k.6p);K.T(K.2k.6p);K.T({3r:h(){1Y(c.3V()){14\'3s\':o 26=[];$1v(c.q,h(3c){m(3c.6q)26.1f($4e(3c.I,3c.1y))});k(c.6C)?26:26[0];14\'86\':m(!(c.6A&&[\'ce\',\'cU\'].1h(c.C))&&![\'3R\',\'1y\',\'cg\'].1h(c.C))1w;14\'7Z\':k c.I}k R},7Y:h(){k $$(c.2D(\'86\'),c.2D(\'3s\'),c.2D(\'7Z\'))},4E:h(){o 4l=[];c.7Y().1v(h(B){o 1n=B.1n;o I=B.3r();m(I===R||!1n||B.6y)k;o 6x=h(3X){4l.1f(1n+\'=\'+6k(3X))};m($C(I)==\'1o\')I.1v(6x);15 6x(I)});k 4l.1U(\'&\')}});K.2n.6t={6z:h(V){m(Q.63){V.1T(c);k}o 4I=h(){m(Q.63)k;Q.63=1c;Q.1K=$4D(Q.1K);c.1u(\'6t\')}.12(c);m(U.4g&&Q.3K){Q.1K=h(){m([\'63\',\'7q\'].1h(U.4g))4I()}.3F(50)}15 m(U.4g&&Q.2q){m(!$(\'6s\')){o 3N=(Q.dt.dB==\'dz:\')?\'://0\':\'7r:dI(0)\';U.d9(\'<2f 3O="6s" cX 3N="\'+3N+\'"><\\/2f>\');$(\'6s\').5y=h(){m(c.4g==\'7q\')4I()}}}15{Q.2N("3j",4I);U.2N("d1",4I)}}};Q.dn=h(V){k c.1P(\'6t\',V)};Q.T({7C:h(){m(c.5Q)k c.dd;m(c.a4)k U.4U.8x;k U.2s.8x},7z:h(){m(c.5Q)k c.do;m(c.a4)k U.4U.9H;k U.2s.9H},9N:h(){m(c.2q)k 1i.3k(U.2s.4O,U.2s.6r);m
 (c.3K)k U.4U.6r;k U.2s.6r},8W:h(){m(c.2q)k 1i.3k(U.2s.4P,U.2s.5L);m(c.3K)k U.4U.5L;k U.2s.5L},7u:h(){k c.9E||U.2s.9Q},7J:h(){k c.9P||U.2s.9S},du:h(){k{\'5Z\':{\'x\':c.7C(),\'y\':c.7z()},\'dH\':{\'x\':c.9N(),\'y\':c.8W()},\'61\':{\'x\':c.7u(),\'y\':c.7J()}}},9G:h(){k{\'x\':0,\'y\':0}}});o 1d={};1d.2X=N 1b({q:{5q:1b.1k,2a:1b.1k,7O:1b.1k,1S:h(p){k-(1i.9m(1i.6W*p)-1)/2},3A:cT,2e:\'4f\',3z:1c,9K:50},1r:h(q){c.L=c.L||1j;c.3l(q);m(c.q.1r)c.q.1r.1T(c)},9W:h(){o 2W=$2W();m(2W<c.2W+c.q.3A){c.9I=c.q.1S((2W-c.2W)/c.q.3A);c.4y();c.4i()}15{c.2p(1c);c.1Z(c.W);c.1u(\'2a\',c.L,10);c.7A()}},1Z:h(W){c.1e=W;c.4i();k c},4y:h(){c.1e=c.4u(c.Y,c.W)},4u:h(Y,W){k(W-Y)*c.9I+Y},1l:h(Y,W){m(!c.q.3z)c.2p();15 m(c.1K)k c;c.Y=Y;c.W=W;c.9L=c.W-c.Y;c.2W=$2W();c.1K=c.9W.3F(1i.3G(9o/c.q.9K),c);c.1u(\'5q\',c.L);k c},2p:h(3f){m(!c.1K)k c;c.1K=$4D(c.1K);m(!3f)c.1u(\'7O\',c.L);k c},2d:h(Y,W){k c.1l(Y,W)},cd:h(3f){k c.2p(3f)}});1d.2X.4n(N 7P,N 2n,N 4L);1d.2Q={3s:h(F,W){m(F.2b(/69/i))k c.6P;o C=$C(W);m((C==\'1o\')||
 (C==\'2c\'&&W.1h(\' \')))k c.5M;k c.9V},2u:h(B,F,4p){m(!4p.1f)4p=[4p];o Y=4p[0],W=4p[1];m(!$2L(W)){W=Y;Y=B.2r(F)}o 1p=c.3s(F,W);k{\'Y\':1p.2u(Y),\'W\':1p.2u(W),\'1p\':1p}}};1d.2Q.9V={2u:h(I){k 4Q(I)},4a:h(Y,W,2o){k 2o.4u(Y,W)},3r:h(I,2e,F){m(2e==\'4f\'&&F!=\'1W\')I=1i.3G(I);k I+2e}};1d.2Q.5M={2u:h(I){k I.1f?I:I.4W(\' \').2t(h(v){k 4Q(v)})},4a:h(Y,W,2o){o 1e=[];J(o i=0;i<Y.P;i++)1e[i]=2o.4u(Y[i],W[i]);k 1e},3r:h(I,2e,F){m(2e==\'4f\'&&F!=\'1W\')I=I.2t(1i.3G);k I.1U(2e+\' \')+2e}};1d.2Q.6P={2u:h(I){k I.1f?I:I.5O(1c)},4a:h(Y,W,2o){o 1e=[];J(o i=0;i<Y.P;i++)1e[i]=1i.3G(2o.4u(Y[i],W[i]));k 1e},3r:h(I){k\'2v(\'+I.1U(\',\')+\')\'}};1d.6I=1d.2X.T({1r:h(B,F,q){c.L=$(B);c.F=F;c.1E(q)},3w:h(){k c.1Z(0)},4y:h(){c.1e=c.1p.4a(c.Y,c.W,c)},1Z:h(W){c.1p=1d.2Q.3s(c.F,W);k c.1E(c.1p.2u(W))},1l:h(Y,W){m(c.1K&&c.q.3z)k c;o 1Q=1d.2Q.2u(c.L,c.F,[Y,W]);c.1p=1Q.1p;k c.1E(1Q.Y,1Q.W)},4i:h(){c.L.29(c.F,c.1p.3r(c.1e,c.q.2e,c.F))}});K.T({ck:h(F,q){k N 1d.6I(c,F,q)}});1d.3v=1d.2X.T({1r:h(B,q){c.L=$(B);c.1
 E(q)},4y:h(){J(o p 18 c.Y)c.1e[p]=c.1p[p].4a(c.Y[p],c.W[p],c)},1Z:h(W){o 1Q={};c.1p={};J(o p 18 W){c.1p[p]=1d.2Q.3s(p,W[p]);1Q[p]=c.1p[p].2u(W[p])}k c.1E(1Q)},1l:h(M){m(c.1K&&c.q.3z)k c;c.1e={};c.1p={};o Y={},W={};J(o p 18 M){o 1Q=1d.2Q.2u(c.L,p,M[p]);Y[p]=1Q.Y;W[p]=1Q.W;c.1p[p]=1Q.1p}k c.1E(Y,W)},4i:h(){J(o p 18 c.1e)c.L.29(p,c.1p[p].3r(c.1e[p],c.q.2e,p))}});K.T({34:h(q){k N 1d.3v(c,q)}});1d.1N=1d.2X.T({1r:h(O,q){c.O=$$(O);c.1E(q)},4y:h(){J(o i 18 c.Y){o 52=c.Y[i],3u=c.W[i],31=c.1p[i],4B=c.1e[i]={};J(o p 18 52)4B[p]=31[p].4a(52[p],3u[p],c)}},1Z:h(W){o 1Q={};c.1p={};J(o i 18 W){o 3u=W[i],31=c.1p[i]={},9X=1Q[i]={};J(o p 18 3u){31[p]=1d.2Q.3s(p,3u[p]);9X[p]=31[p].2u(3u[p])}}k c.1E(1Q)},1l:h(M){m(c.1K&&c.q.3z)k c;c.1e={};c.1p={};o Y={},W={};J(o i 18 M){o 6F=M[i],52=Y[i]={},3u=W[i]={},31=c.1p[i]={};J(o p 18 6F){o 1Q=1d.2Q.2u(c.O[i],p,6F[p]);52[p]=1Q.Y;3u[p]=1Q.W;31[p]=1Q.1p}}k c.1E(Y,W)},4i:h(){J(o i 18 c.1e){o 4B=c.1e[i],31=c.1p[i];J(o p 18 4B)c.O[i].29(p,31[p].3r(4B[p],c.q.2e,
 p))}}});1d.cl=1d.2X.T({q:{22:\'9b\'},1r:h(B,q){c.L=$(B);c.2C=N K(\'5e\',{\'7b\':$T(c.L.9Z(\'2B\'),{\'9O\':\'3R\'})}).7h(c.L).a0(c.L);c.L.29(\'2B\',0);c.3l(q);c.1e=[];c.1E(c.q);c.45=1c;c.1P(\'2a\',h(){c.45=(c.1e[0]===0)});m(Q.5Q)c.1P(\'2a\',h(){m(c.45)c.L.2E().1V(c.2C)})},4y:h(){J(o i=0;i<2;i++)c.1e[i]=c.4u(c.Y[i],c.W[i])},9b:h(){c.2B=\'2B-2H\';c.5f=\'3q\';c.3Q=c.L.4P},cb:h(){c.2B=\'2B-3g\';c.5f=\'2K\';c.3Q=c.L.4O},9a:h(22){c[22||c.q.22]();k c.1l([c.L.2r(c.2B).3e(),c.2C.2r(c.5f).3e()],[0,c.3Q])},99:h(22){c[22||c.q.22]();k c.1l([c.L.2r(c.2B).3e(),c.2C.2r(c.5f).3e()],[-c.3Q,0])},3w:h(22){c[22||c.q.22]();c.45=R;k c.1Z([-c.3Q,0])},3o:h(22){c[22||c.q.22]();c.45=1c;k c.1Z([0,c.3Q])},c0:h(22){m(c.2C.4P==0||c.2C.4O==0)k c.9a(22);k c.99(22)},4i:h(){c.L.29(c.2B,c.1e[0]+c.q.2e);c.2C.29(c.5f,c.1e[1]+c.q.2e)}});1d.6R=h(1S,2x){2x=2x||[];m($C(2x)!=\'1o\')2x=[2x];k $T(1S,{bX:h(1t){k 1S(1t,2x)},c3:h(1t){k 1-1S(1-1t,2x)},c9:h(1t){k(1t<=0.5)?1S(2*1t,2x)/2:(2-1S(2*(1-1t),2x))/2}})};1d.2T=N 35({c
 E:h(p){k p}});1d.2T.T=h(6H){J(o 1S 18 6H){1d.2T[1S]=N 1d.6R(6H[1S]);1d.2T.6M(1S)}};1d.2T.6M=h(1S){[\'cx\',\'cy\',\'cA\'].1v(h(6w){1d.2T[1S.4C()+6w]=1d.2T[1S][\'cf\'+6w]})};1d.2T.T({cw:h(p,x){k 1i.3i(p,x[0]||6)},cO:h(p){k 1i.3i(2,8*(p-1))},cQ:h(p){k 1-1i.9u(1i.cR(p))},cN:h(p){k 1-1i.9u((1-p)*1i.6W/2)},cM:h(p,x){x=x[0]||1.cH;k 1i.3i(p,2)*((x+1)*p-x)},c5:h(p){o I;J(o a=0,b=1;1;a+=b,b/=2){m(p>=(7-4*a)/11){I=-1i.3i((11-6*a-11*p)/4,2)+b*b;1w}}k I},c8:h(p,x){k 1i.3i(2,10*--p)*1i.9m(20*p*1i.6W*(x[0]||1)/3)}});[\'bY\',\'bZ\',\'c1\',\'ca\'].1v(h(1S,i){1d.2T[1S]=N 1d.6R(h(p){k 1i.3i(p,[i+2])});1d.2T.6M(1S)});o 5m={};5m.2X=N 1b({q:{53:R,2e:\'4f\',5q:1b.1k,9q:1b.1k,2a:1b.1k,9k:1b.1k,9l:1b.1k,1M:R,3C:{x:\'3g\',y:\'2H\'},3T:R,9j:6},1r:h(B,q){c.3l(q);c.L=$(B);c.53=$(c.q.53)||c.L;c.3h={\'1e\':{},\'1t\':{}};c.I={\'1l\':{},\'1e\':{}};c.2J={\'1l\':c.1l.51(c),\'44\':c.44.51(c),\'4c\':c.4c.51(c),\'2p\':c.2p.12(c)};c.9r();m(c.q.1r)c.q.1r.1T(c)},9r:h(){c.53.1P(\'6X\',c.2J.1l);k c},cm:h(){c.53.4K(\'
 6X\',c.2J.1l);k c},1l:h(G){c.1u(\'9q\',c.L);c.3h.1l=G.3y;o 1M=c.q.1M;c.1M={\'x\':[],\'y\':[]};J(o z 18 c.q.3C){m(!c.q.3C[z])5t;c.I.1e[z]=c.L.2r(c.q.3C[z]).3e();c.3h.1t[z]=G.3y[z]-c.I.1e[z];m(1M&&1M[z]){J(o i=0;i<2;i++){m($2L(1M[z][i]))c.1M[z][i]=($C(1M[z][i])==\'h\')?1M[z][i]():1M[z][i]}}}m($C(c.q.3T)==\'4J\')c.q.3T={\'x\':c.q.3T,\'y\':c.q.3T};U.2N(\'3U\',c.2J.44);U.2N(\'7G\',c.2J.2p);c.1u(\'5q\',c.L);G.2p()},44:h(G){o 9n=1i.3G(1i.cn(1i.3i(G.3y.x-c.3h.1l.x,2)+1i.3i(G.3y.y-c.3h.1l.y,2)));m(9n>c.q.9j){U.43(\'3U\',c.2J.44);U.2N(\'3U\',c.2J.4c);c.4c(G);c.1u(\'9k\',c.L)}G.2p()},4c:h(G){c.7I=R;c.3h.1e=G.3y;J(o z 18 c.q.3C){m(!c.q.3C[z])5t;c.I.1e[z]=c.3h.1e[z]-c.3h.1t[z];m(c.1M[z]){m($2L(c.1M[z][1])&&(c.I.1e[z]>c.1M[z][1])){c.I.1e[z]=c.1M[z][1];c.7I=1c}15 m($2L(c.1M[z][0])&&(c.I.1e[z]<c.1M[z][0])){c.I.1e[z]=c.1M[z][0];c.7I=1c}}m(c.q.3T[z])c.I.1e[z]-=(c.I.1e[z]%c.q.3T[z]);c.L.29(c.q.3C[z],c.I.1e[z]+c.q.2e)}c.1u(\'9l\',c.L);G.2p()},2p:h(){U.43(\'3U\',c.2J.44);U.43(\'3U\',c.2J.4c);U.4
 3(\'7G\',c.2J.2p);c.1u(\'2a\',c.L)}});5m.2X.4n(N 2n,N 4L);K.T({dA:h(q){k N 5m.2X(c,$1R({3C:{x:\'2K\',y:\'3q\'}},q))}});o 5G=N 1b({q:{1L:\'4o\',9M:1c,9J:1b.1k,47:1b.1k,5E:1b.1k,9x:1c,5c:\'dy-8\',9F:R,3J:{}},7M:h(){c.28=(Q.5F)?N 5F():(Q.2q?N 9B(\'dL.dN\'):R);k c},1r:h(q){c.7M().3l(q);c.q.55=c.q.55||c.55;c.3J={};m(c.q.9x&&c.q.1L==\'4o\'){o 5c=(c.q.5c)?\'; dO=\'+c.q.5c:\'\';c.4t(\'9e-C\',\'9f/x-9w-dG-d6\'+5c)}m(c.q.1r)c.q.1r.1T(c)},9U:h(){m(c.28.4g!=4||!c.4j)k;c.4j=R;o 3E=0;4q{3E=c.28.3E}4s(e){};m(c.q.55.1T(c,3E))c.47();15 c.5E();c.28.5y=1b.1k},55:h(3E){k((3E>=da)&&(3E<dl))},47:h(){c.2Z={\'1y\':c.28.dk,\'4A\':c.28.dm};c.1u(\'47\',[c.2Z.1y,c.2Z.4A]);c.7A()},5E:h(){c.1u(\'5E\',c.28)},4t:h(1n,I){c.3J[1n]=I;k c},5a:h(2m,1F){m(c.q.9F)c.a3();15 m(c.4j)k c;c.4j=1c;m(1F&&c.q.1L==\'4S\'){2m=2m+(2m.1h(\'?\')?\'&\':\'?\')+1F;1F=1j}c.28.45(c.q.1L.7B(),2m,c.q.9M);c.28.5y=c.9U.12(c);m((c.q.1L==\'4o\')&&c.28.al)c.4t(\'ao\',\'aI\');$T(c.3J,c.q.3J);J(o C 18 c.3J)4q{c.28.au(C,c.3J[C])}4s(e){};c.1
 u(\'9J\');c.28.5a($4e(1F,1j));k c},a3:h(){m(!c.4j)k c;c.4j=R;c.28.7p();c.28.5y=1b.1k;c.7M();c.1u(\'7O\');k c}});5G.4n(N 7P,N 2n,N 4L);o 94=5G.T({q:{1F:1j,78:1j,2a:1b.1k,5j:R,6Z:R},1r:h(2m,q){c.1P(\'47\',c.2a);c.3l(q);c.q.1F=c.q.1F||c.q.aA;m(![\'4o\',\'4S\'].1h(c.q.1L)){c.59=\'59=\'+c.q.1L;c.q.1L=\'4o\'}c.1E();c.4t(\'X-az-ax\',\'5F\');c.4t(\'ay\',\'1y/7r, 1y/aw, 9f/4A, 1y/4A, */*\');c.2m=2m},2a:h(){m(c.q.78)$(c.q.78).1k().57(c.2Z.1y);m(c.q.5j||c.q.6Z)c.5j();c.1u(\'2a\',[c.2Z.1y,c.2Z.4A],20)},9A:h(1F){1F=1F||c.q.1F;1Y($C(1F)){14\'L\':1F=$(1F).4E();1w;14\'2h\':1F=7e.4E(1F)}m(c.59)1F=(1F)?[c.59,1F].1U(\'&\'):c.59;k c.5a(c.2m,1F)},5j:h(){o 2f,2V;m(c.q.6Z||(/(av|aq)2f/).2b(c.95(\'9e-C\')))2V=c.2Z.1y;15{2V=[];o 5d=/<2f[^>]*>([\\s\\S]*?)<\\/2f>/as;72((2f=5d.at(c.2Z.1y)))2V.1f(2f[1]);2V=2V.1U(\'\\n\')}m(2V)(Q.97)?Q.97(2V):Q.92(2V,0)},95:h(1n){4q{k c.28.aK(1n)}4s(e){};k 1j}});7e.4E=h(1J){o 4l=[];J(o F 18 1J)4l.1f(6k(F)+\'=\'+6k(1J[F]));k 4l.1U(\'&\')};K.T({5a:h(q){k N 94(c.4z(\'aF\'),
 $1R({1F:c.4E()},q,{1L:\'4o\'})).9A()}});o 2U=N 35({q:{6f:R,6j:R,3A:R,42:R},1Z:h(1m,I,q){q=$1R(c.q,q);I=6k(I);m(q.6f)I+=\'; 6f=\'+q.6f;m(q.6j)I+=\'; 6j=\'+q.6j;m(q.3A){o 6n=N 9z();6n.ad(6n.9s()+q.3A*24*60*60*9o);I+=\'; ah=\'+6n.ae()}m(q.42)I+=\'; 42\';U.3H=1m+\'=\'+I;k $T(q,{\'1m\':1m,\'I\':I})},4S:h(1m){o I=U.3H.2G(\'(?:^|;)\\\\s*\'+1m.9p()+\'=([^;]*)\');k I?aa(I[1]):R},2E:h(3H,q){m($C(3H)==\'2h\')c.1Z(3H.1m,\'\',$1R(3H,{3A:-1}));15 c.1Z(3H,\'\',$1R(q,{3A:-1}))}});o 3a={41:h(M){1Y($C(M)){14\'2c\':k\'"\'+M.2O(/(["\\\\])/g,\'\\\\$1\')+\'"\';14\'1o\':k\'[\'+M.2t(3a.41).1U(\',\')+\']\';14\'2h\':o 2c=[];J(o F 18 M)2c.1f(3a.41(F)+\':\'+3a.41(M[F]));k\'{\'+2c.1U(\',\')+\'}\';14\'4J\':m(ar(M))1w;14 R:k\'1j\'}k 6b(M)},4N:h(3W,42){k(($C(3W)!=\'2c\')||(42&&!3W.2b(/^("(\\\\.|[^"\\\\\\n\\r])*?"|[,:{}\\[\\]0-9.\\-+bx-u \\n\\r\\t])+?$/)))?1j:bv(\'(\'+3W+\')\')}};3a.bp=5G.T({1r:h(2m,q){c.2m=2m;c.1P(\'47\',c.2a);c.1E(q);c.4t(\'X-bE\',\'bP\')},5a:h(M){k c.1E(c.2m,\'aO=\'+3a.41(M))},2a:h(){c.1
 u(\'2a\',[3a.4N(c.2Z.1y,c.q.42)])}});o 9i=N 35({7r:h(1J,1x){1x=$1R({\'5g\':1b.1k},1x);o 2f=N K(\'2f\',{\'3N\':1J}).6c({\'3j\':1x.5g,\'bQ\':h(){m(c.4g==\'7q\')c.1u(\'3j\')}});4m 1x.5g;k 2f.5N(1x).1V(U.5U)},1p:h(1J,1x){k N K(\'bT\',$1R({\'9d\':\'bS\',\'bN\':\'bM\',\'C\':\'1y/1p\',\'64\':1J},1x)).1V(U.5U)},4x:h(1J,1x){1x=$1R({\'5g\':1b.1k,\'bH\':1b.1k,\'bG\':1b.1k},1x);o 4x=N bF();4x.3N=1J;o L=N K(\'75\',{\'3N\':1J});[\'3j\',\'7p\',\'9v\'].1v(h(C){o G=1x[\'5b\'+C];4m 1x[\'5b\'+C];L.1P(C,h(){c.4K(C,17.7d);G.1T(c)})});m(4x.2K&&4x.3q)L.1u(\'3j\',L,1);k L.5N(1x)},5J:h(4v,q){q=$1R({2a:1b.1k,93:1b.1k},q);m(!4v.1f)4v=[4v];o 5J=[];o 5I=0;4v.1v(h(1J){o 75=N 9i.4x(1J,{\'5g\':h(){q.93.1T(c,5I);5I++;m(5I==4v.P)q.2a()}});5J.1f(75)});k N 1N(5J)}});o 3d=N 1b({P:0,1r:h(2h){c.M=2h||{};c.4T()},4S:h(1m){k(c.5K(1m))?c.M[1m]:1j},5K:h(1m){k(1m 18 c.M)},1Z:h(1m,I){m(!c.5K(1m))c.P++;c.M[1m]=I;k c},4T:h(){c.P=0;J(o p 18 c.M)c.P++;k c},2E:h(1m){m(c.5K(1m)){4m c.M[1m];c.P--}k c},1v:h(V,12){$1v(c.M,V,12)}
 ,T:h(M){$T(c.M,M);k c.4T()},1R:h(){c.M=$1R.3n(1j,[c.M].T(17));k c.4T()},1k:h(){c.M={};c.P=0;k c},1D:h(){o 1D=[];J(o F 18 c.M)1D.1f(F);k 1D},26:h(){o 26=[];J(o F 18 c.M)26.1f(c.M[F]);k 26}});h $H(M){k N 3d(M)};3d.2U=3d.T({1r:h(1n,q){c.1n=1n;c.q=$T({\'8Z\':1c},q||{});c.3j()},90:h(){m(c.P==0){2U.2E(c.1n,c.q);k 1c}o 3W=3a.41(c.M);m(3W.P>aZ)k R;2U.1Z(c.1n,3W,c.q);k 1c},3j:h(){c.M=3a.4N(2U.4S(c.1n),1c)||{};c.4T()}});3d.2U.2k={};[\'T\',\'1Z\',\'1R\',\'1k\',\'2E\'].1v(h(1L){3d.2U.2k[1L]=h(){3d.1B[1L].3n(c,17);m(c.q.8Z)c.90();k c}});3d.2U.4n(3d.2U.2k);o 91=N 1b({q:{8Y:h(3B){3B.29(\'3P\',\'71\')},8X:h(3B){3B.29(\'3P\',\'3R\')},7H:30,a2:77,9R:77,1s:\'b1\',4R:{\'x\':16,\'y\':16},7F:R},1r:h(O,q){c.3l(q);c.3p=N K(\'5e\',{\'4h\':c.q.1s+\'-3B\',\'7b\':{\'7K\':\'b3\',\'2H\':\'0\',\'3g\':\'0\',\'3P\':\'3R\'}}).1V(U.4U);c.2C=N K(\'5e\').1V(c.3p);$$(O).1v(c.9D,c);m(c.q.1r)c.q.1r.1T(c)},9D:h(B){B.$1H.3m=(B.64&&B.3V()==\'a\')?B.64.2O(\'9g://\',\'\'):(B.9d||R);m(B.4r){o 5X=B.4r.4W(\'::\');m(5X.P>1
 ){B.$1H.3m=5X[0].4V();B.$1H.58=5X[1].4V()}15{B.$1H.58=B.4r}B.9c(\'4r\')}15{B.$1H.58=R}m(B.$1H.3m&&B.$1H.3m.P>c.q.7H)B.$1H.3m=B.$1H.3m.7s(0,c.q.7H-1)+"&aQ;";B.1P(\'7L\',h(G){c.1l(B);m(!c.q.7F)c.7N(G);15 c.7K(B)}.12(c));m(!c.q.7F)B.1P(\'3U\',c.7N.51(c));o 3f=c.3f.12(c);B.1P(\'7x\',3f);B.1P(\'4Z\',3f)},1l:h(B){c.2C.1k();m(B.$1H.3m){c.4r=N K(\'98\').1V(N K(\'5e\',{\'4h\':c.q.1s+\'-4r\'}).1V(c.2C)).57(B.$1H.3m)}m(B.$1H.58){c.1y=N K(\'98\').1V(N K(\'5e\',{\'4h\':c.q.1s+\'-1y\'}).1V(c.2C)).57(B.$1H.58)}$4D(c.1K);c.1K=c.3o.1X(c.q.a2,c)},3f:h(G){$4D(c.1K);c.1K=c.3w.1X(c.q.9R,c)},7K:h(L){o 1t=L.9G();c.3p.4Y({\'3g\':1t.x+c.q.4R.x,\'2H\':1t.y+c.q.4R.y})},7N:h(G){o 9T={\'x\':Q.7C(),\'y\':Q.7z()};o 61={\'x\':Q.7u(),\'y\':Q.7J()};o 3B={\'x\':c.3p.4O,\'y\':c.3p.4P};o 1I={\'x\':\'3g\',\'y\':\'2H\'};J(o z 18 1I){o 1t=G.3y[z]+c.q.4R[z];m((1t+3B[z]-61[z])>9T[z])1t=G.3y[z]-c.q.4R[z]-3B[z];c.3p.29(1I[z],1t)}},3o:h(){m(c.q.96)c.1K=c.3w.1X(c.q.96,c);c.1u(\'8Y\',[c.3p])},3w:h(){c.1u(\'8X\',[c.3p])}}
 );91.4n(N 2n,N 4L);o 6u=1d.1N.T({q:{6G:1b.1k,8i:1b.1k,2Y:0,3o:R,3q:1c,2K:R,1W:1c,65:R,5R:R,3z:R,5k:R},1r:h(){o q,2i,O,3L;$1v(17,h(3I,i){1Y($C(3I)){14\'2h\':q=3I;1w;14\'L\':3L=$(3I);1w;5V:o 25=$$(3I);m(!2i)2i=25;15 O=25}});c.2i=2i||[];c.O=O||[];c.3L=$(3L);c.3l(q);c.2z=-1;m(c.q.5k)c.q.3z=1c;m($2L(c.q.3o)){c.q.2Y=R;c.2z=c.q.3o}m(c.q.1l){c.q.2Y=R;c.q.3o=R}c.34={};m(c.q.1W)c.34.1W=\'9C\';m(c.q.2K)c.34.2K=c.q.5R?\'9Y\':\'4O\';m(c.q.3q)c.34.3q=c.q.65?\'a1\':\'5L\';J(o i=0,l=c.2i.P;i<l;i++)c.9h(c.2i[i],c.O[i]);c.O.1v(h(B,i){m(c.q.3o===i){c.1u(\'6G\',[c.2i[i],B])}15{J(o 2o 18 c.34)B.29(2o,0)}},c);c.1E(c.O);m($2L(c.q.2Y))c.2Y(c.q.2Y)},9h:h(2R,L,1t){2R=$(2R);L=$(L);o 2b=c.2i.1h(2R);o 36=c.2i.P;c.2i.5h(2R);c.O.5h(L);m(36&&(!2b||1t)){1t=$4e(1t,36-1);2R.9t(c.2i[1t]);L.7h(2R)}15 m(c.3L&&!2b){2R.1V(c.3L);L.1V(c.3L)}o 9y=c.2i.3t(2R);2R.1P(\'7g\',c.2Y.12(c,9y));m(c.q.3q)L.4Y({\'3Y-2H\':0,\'2y-2H\':\'6l\',\'3Y-5r\':0,\'2y-5r\':\'6l\'});m(c.q.2K)L.4Y({\'3Y-3g\':0,\'2y-3g\':\'6l\',\'3Y-5D\':0,\'
 2y-5D\':\'6l\'});L.9C=1;m(c.q.5R)L.9Y=c.q.5R;m(c.q.65)L.a1=c.q.65;L.29(\'9O\',\'3R\');m(!2b){J(o 2o 18 c.34)L.29(2o,0)}k c},2Y:h(1O){1O=($C(1O)==\'L\')?c.O.3t(1O):1O;m((c.1K&&c.q.3z)||(1O===c.2z&&!c.q.5k))k c;c.2z=1O;o M={};c.O.1v(h(B,i){M[i]={};o 3w=(i!=1O)||(c.q.5k&&(B.4P>0));c.1u(3w?\'8i\':\'6G\',[c.2i[i],B]);J(o 2o 18 c.34)M[i][2o]=3w?0:B[c.34[2o]]},c);k c.1l(M)},bR:h(1O){k c.2Y(1O)}});1d.6u=6u;',62,858,'||||||||||||this|||||function|||return||if||var||options|||||||||||el|type|||property|event||value|for|Element|element|obj|new|elements|length|window|false||extend|document|fn|to||from||||bind||case|else||arguments|in|events|param|Class|true|Fx|now|push|args|contains|Math|null|empty|start|key|name|array|css|items|initialize|className|pos|fireEvent|each|break|properties|text|result|style|prototype|selector|keys|parent|data|props|tmp|prop|source|timer|method|limit|Elements|index|addEvent|parsed|merge|transition|call|join|inject|opacity|delay|switch|set||relatedTarget|mode|
 current||temp|values||transport|setStyle|onComplete|test|string|custom|unit|script|Garbage|object|togglers|nocash|Methods|Array|url|Events|fx|stop|ie|getStyle|documentElement|map|parse|rgb|Event|params|border|previous|context|margin|wrapper|getElementsByTagName|remove|create|match|top|parentNode|bound|width|chk|filter|addListener|replace|tag|CSS|toggler|item|Transitions|Cookie|scripts|time|Base|display|response||iCss||shared|effects|Abstract|len||||Json|returns|option|Hash|toInt|end|left|mouse|pow|load|max|setOptions|myTitle|apply|show|toolTip|height|getValue|select|indexOf|iTo|Styles|hide|iterable|page|wait|duration|tip|modifiers|xpath|status|periodical|round|cookie|argument|headers|webkit|container|min|src|id|visibility|offset|hidden|chains|grid|mousemove|getTag|str|val|padding|hex||toString|secure|removeListener|check|open||onSuccess|htmlElement|collect|getNow|results|drag|native|pick|px|readyState|class|increase|running|target|queryString|delete|implement|post|fromTo|try
 |title|catch|setHeader|compute|sources|bit|image|setNow|getProperty|xml|iNow|toLowerCase|clear|toQueryString|walk|mix|next|domReady|number|removeEvent|Options|parseInt|evaluate|offsetWidth|offsetHeight|parseFloat|offsets|get|setLength|body|trim|split|klass|setStyles|trash||bindWithEvent|iFrom|handle|HTMLElement|isSuccess|unique|setHTML|myText|_method|send|on|encoding|regexp|div|layout|onload|include|precision|evalScripts|alwaysHide|fKey|Drag|preventDefault|stopPropagation|splice|onStart|bottom|fix|continue|realType|code|setMany|evType|onreadystatechange|mousewheel|Properties|Listeners|removeEvents|right|onFailure|XMLHttpRequest|XHR|getElementById|counter|images|hasKey|scrollHeight|Multi|setProperties|hexToRgb|getElementsBySelector|webkit419|fixedWidth|generic|included|head|default|attempt|dual|proto|size||scroll|mp|loaded|href|fixedHeight|forEach|regex|typeof|color|getElements|String|addEvents|tagName|rgbToHex|domain|currentStyle|brother|setProperty|path|encodeURIComponent|n
 one|defined|date|every|Dom|selected|scrollWidth|ie_ready|domready|Accordion|found|easeType|qs|disabled|add|checked|xhtml|multiple|operator|getParam|iProps|onActive|transitions|Style|addEventListener|concat|getItems|compat|hasChild|gecko|Color|mouseout|Transition|unload|mouseover|DOMMouseScroll|NativeEvents|PI|mousedown|Function|evalResponse|charAt|visible|while|cssText|firstChild|img|innerText|100|update|merged|clean|styles|random|callee|Object|camelCase|click|injectAfter|appendChild|hasClass|RegExp|first|insertBefore|flag|node|abort|complete|javascript|substr|newArray|getScrollLeft|getMany|nodeType|mouseleave|pairs|getHeight|callChain|toUpperCase|getWidth|pageY|pageX|fixed|mouseup|maxTitleChars|out|getScrollTop|position|mouseenter|setTransport|locate|onCancel|Chain|where|before|contents|after|elementsProperty|ie6|copy|slice|getFormElements|textarea|pp|Merge|interval|Number|createElement|undefined|input|toFloat|constructor|picked|getLast|keydown|Right|Bottom|Left|Top|beforeu
 nload|capitalize|onBackground|Width|0px|direction|borderShort|clientX|clientY|which|fixRelatedTarget|wheelDelta|shift|PropertiesIFlag|removeEventListener|extended|cloneEvents|clientWidth|fixStyle|getNext|relatedTargetGecko|sel|normal|hyphenate|defaultView|addClass|getElement|setOpacity|zoom|childNodes|nodeValue|filterByClass|innerHTML|filterById|textContent|filterByAttribute|resolver|removeChild|appendText|styleSheet|prefix|removeClass|getScrollHeight|onHide|onShow|autoSave|save|Tips|setTimeout|onProgress|Ajax|getHeader|timeout|execScript|span|slideOut|slideIn|vertical|removeAttribute|rel|Content|application|http|addSection|Asset|snap|onSnap|onDrag|cos|distance|1000|escapeRegExp|onBeforeStart|attach|getTime|injectBefore|sin|error|www|urlEncoded|idx|Date|request|ActiveXObject|fullOpacity|build|pageXOffset|autoCancel|getPosition|clientHeight|delta|onRequest|fps|change|async|getScrollWidth|overflow|pageYOffset|scrollLeft|hideDelay|scrollTop|win|onStateChange|Single|step|iParsed
 |fullWidth|getStyles|adopt|fullHeight|showDelay|cancel|opera|getComputedStyle|getParent|lastChild|Sibling|getPrevious|decodeURIComponent|getChildren|accesskey|setTime|toGMTString|rowSpan|colSpan|expires|colspan|htmlFor|getFirst|overrideMimeType|rowspan|getPropertyValue|Connection||java|isFinite|gi|exec|setRequestHeader|ecma|html|With|Accept|Requested|postBody|getText|borderWidth|getProperties|removeProperty|action|attributes|setAttribute|close|borderStyle|getResponseHeader|borderColor|setText|getAttribute|json|BackgroundImageCache|hellip|chain|execCommand|DOMElement|khtml|iframe|clearChain|some|transparent|4096|setInterval|tool|getRandom|absolute|associate|getBoxObjectFor|webkit420|whitespace|collection|floor|textnode|nodeName|MooTools|version|clearTimeout|clearInterval|navigator|taintEnabled|all|ie7|Window|Document|err|pass|replaceChild|Remote|createTextNode|replaceWith|cloneNode|injectTop|clone|eval|toggleClass|Eaeflnr|hasLayout|zIndex|cssFloat|float|styleFloat|injectInsid
 e|Request|Image|onerror|onabort|boolean|embed|bindAsEventListener|times|screen|media|accessKey|JSON|readystatechange|showThisHideOpen|stylesheet|link|alpha|frameborder|tabindex|easeIn|Quad|Cubic|toggle|Quart|dblclick|easeOut|1999|Bounce|keyup|keypress|Elastic|easeInOut|Quint|horizontal|space|clearTimer|checkbox|ease|password|esc|backspace|tab|effect|Slide|detach|sqrt|getElementsByClassName|resize|move|with|substring|starts|namespaceURI|ES|Pow|In|Out|snapshotItem|InOut|snapshotLength|UNORDERED_NODE_SNAPSHOT_TYPE|XPathResult|linear|w3|contextmenu|618|reset|submit|focus|blur|Back|Sine|Expo|org|Circ|acos|filterByTag|500|radio|ctrlKey|alt|defer|control|shiftKey|srcElement|DOMContentLoaded|altKey|meta|120|detail|urlencoded|wheel|metaKey|write|200|CollectGarbage|readOnly|innerWidth|readonly|maxLength|tabIndex|maxlength|frameBorder|attachEvent|responseText|300|responseXML|onDomReady|innerHeight|detachEvent|111|keyCode|up|location|getSize|down|toElement|cancelBubble|utf|https|makeRes
 izable|protocol|returnValue|fromElement|button|fromCharCode|form|scrollSize|void|enter|menu|Microsoft|client|XMLHTTP|charset|rightClick'.split('|'),0,{}))

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/posteditor.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/posteditor.js?rev=627259&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/posteditor.js (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/posteditor.js Tue Feb 12 22:11:16 2008
@@ -0,0 +1 @@
+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}('k 1K={};1K.2q=2h 2a({r:"    ",22:q(G){b.G=1G.12({Z:{},X:{},1g:{}},G||{})},2n:q(1U,N,G){d(2g.2f)t;b.v=$(1U);b.N=$(N);b.22(G);b.15={1a:b.v.1u(\'1t-W\').1q()||14,2p:b.v.1u(\'2o-2m\').1q()||11,W:b.v.1u(\'W\').1q()};b.h=B;b.I=0;b.M=0;b.u=B;b.K=b.r.f;b.v.2e=b.1O.2c(b)},2b:q(Z){b.G.Z=Z||{}},29:q(X){b.G.X=X||{}},28:q(1g){b.G.1g=1g||{}},c:q(){t b.v.1D},j:q(){t b.v.1B},y:q(l,E){t b.v.o.y(l,E)},o:q(o){b.v.o=o.Y("")},F:q(O){k O=O?O.f:0;t b.y(0,b.c()-O)},J:q(O){k O=O?O.f:0;t b.v.o.y(b.j()-O)},w:q(l,E){b.v.1D=l;b.v.1B=l+E},S:q(S,P){d(P){b.10=b.v.10;b.1k=b.v.1k}z{b.v.10=b.10;b.v.1k=b.1k}d(S)b.v.S()},1Z:q(){k 1X=b.F().1j("\\n").f,W=(1X-2l.2k(b.v.10/b.15.1a))*b.15.1a;W+=b
 .15.1a;d(W>=b.15.W)b.v.10+=b.15.1a;b.S(H,1)},1O:q(e){d(b.1S(e))t;d(b.1R(e))t;b.1Q(e);d(b.1P(e))t;d([13,9,8,1w].1c(e.1b))b.S(R,H);2d(e.1b){18 27:b.u=B;b.h=B;T;18 1N:b.1M(e);T;18 13:b.1L(e);T;18 9:b.1v(e);T;18 8:b.1I(e);T;18 1w:b.1H(e);T}d([13,9,8,1w].1c(e.1b))b.S(H,R)},1S:q(e){d(e.1F&&e.1b==13){d(b.N){e.U();b.N.S();t H}}t R},1R:q(e){k L=1E.1J(e.L),C=b.G.X[L];d(C){d($P(C)==\'1C\')C={16:C};d(!C.V||b.V(C.V)){k c=b.c(),j=b.j(),l=b.F();d(c==j){b.o([l,C.16,b.J()]);b.w(l.f,0)}z{e.U();b.I=c;b.M=j;b.o([l,L,b.y(c,j),C.16,b.J()]);b.w(c+1,j-c)}}C=B;t H}t R},1Q:q(e){k L=1E.1J(e.L);d(e.26&&e.1F){d([0,1,2,3,4,5,6,7,8,9].1c(L)){k 1s=b.G.1g[L];d(1s){k c=b.c(),j=b.j(),x=1s.1A(b,[b.y(c,j)]);d(x){k l=b.F();d($P(x)==\'1r\'){b.o([l,x.Y(""),b.J()]);b.w(l.f+x[0].f,x[1].f)}z{d(x.19){d(x.p){l=b.y(0,x.19[0]);k E=b.y(x.19[1],b.v.o.f);b.o([l,x.p.Y(""),E]);b.w(l.f+x.p[0].f,x.p[1].f)}z{b.w(x.19[0],x.19[1])}}z{b.o([l,x.p.Y(""),b.J()]);b.w(l.f+x.p[0].f,x.p[1].f)}}}}}}},1P:q(e){d(b.h){k c=b.c(),j=b.j(),D=b.I,
 E=b.M;d(![D+1,D,D-1,E].1c(c)){b.u=B;b.h=B}d(b.h&&[25,1N].1c(e.1b)&&c==j){b.u=B;b.h=B}b.I=c;b.M=j}z{b.I=0;b.M=0}t R},V:q(1p){k c=b.c(),Q=b.F();1z(k D 1y 1p){d(!D)t H;k 1n=Q.1o(D);d(1n>-1){k 1m=b.y(1n+D.f,c).1o(1p[D]);d(1m==-1)t H}}t R},1M:q(e){k c=b.c(),j=b.j(),l=b.F();d(c!=j){e.U();b.w(j,0)}},1L:q(e){b.1Z();k c=b.c(),j=b.j(),l=b.F();d(c==j){k 1t=l.1j("\\n").23(),r=1t.1l(/^\\s+/21);d(r){e.U();r=r.Y("");b.o([l,"\\n",r,b.J()]);b.w(c+1+r.f,0)}}},1I:q(e){k c=b.c(),j=b.j();d(c==j&&b.y(c-b.K,c)==b.r){e.U();k l=b.F(b.r),E=b.y(c,b.v.o.f);d(l.1l(/\\n$/g)&&E.1l(/^\\n/g)){b.o([l,b.y(c-1,b.v.o.f)])}z{b.o([l,E])}b.w(c-b.K,0)}z d(c==j){k L=b.y(c-1,c),1m=b.y(c,c+1),C=b.G.X[L];d($P(C)==\'1C\')C={16:C};d(C&&C.16==1m){b.o([b.F(C.16),b.y(c,b.v.o.f)]);b.w(c,0)}}},1H:q(e){k c=b.c(),j=b.j();d(c==j&&b.y(c,c+b.K)==b.r){e.U();b.o([b.F(),b.y(c+b.K,b.v.o.f)]);b.w(c,0)}},1v:q(e){e.U();k c=b.c(),j=b.j(),x=b.y(c,j),Q=b.F();d(b.20(e,c,j))t;d(b.24(e,c,j))t;d(c!=j&&x.1i("\\n")!=-1){k 1Y=x.1h(/\\n/g,"\\n"+b.r
 );b.o([Q,b.r,1Y,b.J()]);b.w(c+b.K,j+(b.K*x.1j("\\n").f)-c-b.K)}z{k A=B;1z(k D 1y b.G.Z){k o=b.G.Z[D];d($P(o)==\'q\')1W;d(Q.f-D.f==-1)1W;d(Q.f-D.f==Q.1o(D)){d($P(o)==\'1r\')o={p:o};A=1G.12({},o);T}}d(A&&(!A.V||b.V(A.V))){d(A.17){k 17=A.17.1A(b,[D]);d($P(17)==\'1r\')A.p=17;z A=17}k p=A.p.1f(),r=Q.1j("\\n").23().1l(/^\\s+/21),l=b.F(A.D||D);d(r){r=r.Y("");p[0]=p[0].1h(/\\n/g,"\\n"+r);p[1]=p[1].1h(/\\n/g,"\\n"+r);p[2]=p[2].1h(/\\n/g,"\\n"+r)}b.o([l,p[0],p[1],p[2],b.J()]);d(A.r){b.h={r:A.r.1f(),p:p.1f(),l:A.l};k m=b.h.r.1V();b.h.c=p[1].1i(m);d(b.h.c>-1){b.h.1e=l.f+p[0].f+b.h.c;b.I=b.h.1e;b.M=b.I+m.f;b.u=B;d(A.u){b.h.u=A.u;b.h.m=m;b.h.1d=H;d(2j A.1d==\'2i\')b.h.1d=A.1d;k u=b.h.u[m];d(u){k i=[m].12(u);k a=u.1f().12([\'\']);b.h.1x=m;b.u=a.1T(i)}}b.w(l.f+p[0].f+b.h.c,m.f)}z{b.h=B;b.w(l.f+p[0].f,p[1].f)}}z{b.w(l.f+p[0].f,p[1].f)}p=B}z{b.o([Q,b.r,b.y(c,b.v.o.f)]);d(c==j)b.w(c+b.K,0);z b.w(c+b.K,j-c)}}},24:q(e,c,j){d(b.h){k f=b.h.r.f;d(f){d(b.h.1e<=c){k m=b.h.r.1V(),N=b.y(c,c+b.h.p[1].f-
 b.h.c).1i(m);d(f==1&&!m){k E=b.h.p[2].f;d($P(b.h.l)==\'2r\')E=b.h.l;z d(b.h.l)E=0;b.w(j+b.J().1i(b.h.p[2])+E,0);b.u=B;t H}z d(N>-1){b.h.c=N;b.h.1e=N+c;b.I=b.h.1e;b.M=b.I+m.f;b.h.m=m;d(b.u){k u=b.h.u[m];d(u){k i=[m].12(u);k a=u.1f().12([\'\']);b.h.1x=m;b.u=a.1T(i)}z{b.u=B}}b.w(c+N,m.f);t H}z{b.1v(e);t H}}}b.h=B}t R},20:q(e,c,j){d(b.u&&c==b.I&&j==b.M&&b.h.m.f==j-c){k m=b.u[b.h.m];d(m){b.M=b.I+m.f;b.h.m=m;b.o([b.F(),m,b.J()]);b.w(c,m.f);t H}z d(b.h.1d){m=b.h.1x;b.h.m=m;b.M=b.I+m.f;b.o([b.F(),m,b.J()]);b.w(c,m.f);t H}}b.u=B;t R}});',62,152,'|||||||||||this|ss|if||length||autoTab||se|var|start|item||value|snippet|function|tab||return|completion|element|selectRange|sel|slice|else|snippetObj|null|stpair|key|end|getStart|options|true|ssKey|getEnd|tabl|charCode|seKey|next|rest|type|text|false|focus|break|preventDefault|scope|height|smartTypingPairs|join|snippets|scrollTop||extend|||styles|pair|command|case|selection|line_height|keyCode|test|loop|ssLast|copy|selections|replace|indexOf
 |split|scrollLeft|match|close|open|lastIndexOf|scopes|toInt|array|fn|line|getStyle|onTab|46|index|in|for|apply|selectionEnd|string|selectionStart|String|shiftKey|Object|onDelete|onBackspace|fromCharCode|postEditor|onEnter|onKeyRight|39|onKeyPress|filterByTab|filterBySelect|filterByPairs|filterByNext|associate|el|shift|continue|lines|newsel|updateScroll|filterCompletion|gi|setOptions|pop|filterAutoTab|38|ctrlKey||changeSelections|changeSmartTypingPairs|Class|changeSnippets|bind|switch|onkeypress|ActiveXObject|window|new|boolean|typeof|round|Math|size|initialize|font|font_size|create|number'.split('|'),0,{}))
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/prettify.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/prettify.js?rev=627259&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/prettify.js (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/prettify.js Tue Feb 12 22:11:16 2008
@@ -0,0 +1,29 @@
+// See http://code.google.com/p/google-code-prettify/
+(function () { 
+var F={};(function(){var b=["abstract bool break case catch char class const const_cast continue default delete deprecated dllexport dllimport do double dynamic_cast else enum explicit extern false float for friend goto if inline int long mutable naked namespace new noinline noreturn nothrow novtable operator private property protected public register reinterpret_cast return selectany short signed sizeof static static_cast struct switch template this thread throw true try typedef typeid typename union unsigned using declaration, directive uuid virtual void volatile while typeof",
+"as base by byte checked decimal delegate descending event finally fixed foreach from group implicit in interface internal into is lock null object out override orderby params readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var","package synchronized boolean implements import throws instanceof transient extends final strictfp native super","debugger export function with NaN Infinity","require sub unless until use elsif BEGIN END","and assert def del elif except exec global lambda not or pass print raise yield False True None",
+"then end begin rescue ensure module when undef next redo retry alias defined","done fi"];for(var c=0;c<b.length;c++){var a=b[c].split(" ");for(var d=0;d<a.length;d++){if(a[d]){F[a[d]]=true}}}}).call(this);function r(b,c){if(undefined===c){throw new Error("BAD");}if("number"!=typeof b){throw new Error("BAD");}this.end=b;this.style=c}r.prototype.toString=function(){return"[PR_TokenEnd "+this.end+(this.style?":"+this.style:"")+"]"};function q(b,c){if(undefined===c){throw new Error("BAD");}this.token=
+b;this.style=c}q.prototype.toString=function(){return"[PR_Token "+this.token+(this.style?":"+this.style:"")+"]"};function u(){this.next=0;this.ch="\u0000"}var J={lt:"<",gt:">",quot:'"',apos:"'",amp:"&"};u.prototype.decode=function(b,c){var a=c+1,d=b.charAt(c);if("&"===d){var f=b.indexOf(";",a);if(f>=0&&f<a+4){var h=b.substring(a,f),i=null;if(h.charAt(0)==="#"){var e=h.charAt(1),g;if(e==="x"||e==="X"){g=parseInt(h.substring(2),16)}else{g=parseInt(h.substring(1),10)}if(!isNaN(g)){i=String.fromCharCode(g)}}if(!i){i=
+J[h.toLowerCase()]}if(i){d=i;a=f+1}else{a=c+1;d="\u0000"}}}this.next=a;this.ch=d;return this.ch};function x(b){return b>="a"&&b<="z"||b>="A"&&b<="Z"}function z(b){return x(b)||b=="_"||b=="$"||b=="@"}function s(b){return"\t \r\n".indexOf(b)>=0}function w(b){return b>="0"&&b<="9"}function I(b){var c=0,a=b.length-1;while(c<=a&&s(b.charAt(c))){++c}while(a>c&&s(b.charAt(a))){--a}return b.substring(c,a+1)}function y(b,c){return b.length>=c.length&&c==b.substring(0,c.length)}function L(b,c){return b.length>=
+c.length&&c==b.substring(b.length-c.length,b.length)}function A(b,c,a){if(c<a.length){return false}for(var d=0,f=a.length;d<f;++d){if(a.charAt(d)!=b[d]){return false}}return true}function H(b){return b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\xa0/g,"&nbsp;")}function E(b){return"XMP"==b.tagName}var B=null;function N(b){if(null==B){var c=document.createElement("PRE");c.appendChild(document.createTextNode('<!DOCTYPE foo PUBLIC "foo bar">\n<foo />'));B=!/</.test(c.innerHTML)}if(B){var a=
+b.innerHTML;if(E(b)){a=H(a)}return a}var d=[];for(var f=b.firstChild;f;f=f.nextSibling){D(f,d)}return d.join("")}function D(b,c){switch(b.nodeType){case 1:var a=b.tagName.toLowerCase();c.push("<",a);for(var d=0;d<b.attributes.length;++d){var f=b.attributes[d];if(!f.specified){continue}c.push(" ");D(f,c)}c.push(">");for(var h=b.firstChild;h;h=h.nextSibling){D(h,c)}if(b.firstChild||!/^(?:br|link|img)$/.test(a)){c.push("</",a,">")}break;case 2:c.push(b.name.toLowerCase(),'="',b.value.replace(/&/g,"&amp;").replace(/</g,
+"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\xa0/,"&nbsp;"),'"');break;case 3:case 4:c.push(H(b.nodeValue));break}}function M(b,c){var a=0,d=new u,f=[];for(var h=0;h<b.length;++h){var i=b[h];if(i.style==null){f.push(i);continue}var e=i.token,g=0,k=[];for(var l=0,j=e.length;l<j;l=d.next){d.decode(e,l);var o=d.ch;switch(o){case "\t":k.push(e.substring(g,l));var m=c-a%c;a+=m;for(;m>=0;m-="                ".length){k.push("                ".substring(0,m))}g=d.next;break;case "\n":case "\r":a=
+0;break;default:++a}}k.push(e.substring(g));f.push(new q(k.join(""),i.style))}return f}function K(b){var c=/(?:[^<]+|<\/?[a-zA-Z][^>]*>|<)/g,a=b.match(c),d=[];if(a){var f=null;for(var h=0,i=a.length;h<i;++h){var e=a[h],g;if(e.length<2||e.charAt(0)!=="<"){if(f&&f.style==="pln"){f.token+=e;continue}g="pln"}else{g=null}f=new q(e,g);d.push(f)}}return d}function G(b,c){var a=[],d=0,f=0,h=0,i=new q("",null);for(var e=0,g=c.length,k=0;e<g;++e){var l=c[e],j=l.end;if(j===k){continue}var o=j-f,m=i.token.length-
+h;while(m<=o){if(m>0){a.push(new q(i.token.substring(h,i.token.length),null==i.style?null:l.style))}f+=m;h=0;if(d<b.length){i=b[d++]}o=j-f;m=i.token.length-h}if(o){a.push(new q(i.token.substring(h,h+o),l.style));f+=o;h+=o}}return a}function R(b){var c=[],a=0,d=0,f=-1,h=new Array(12),i=0,e=null,g=new u;for(var k=0,l=b.length;k<l;++k){var j=b[k];if("pln"!=j.style){d+=j.token.length;continue}var o=j.token;for(var m=0,n=o.length;m<n;){g.decode(o,m);var p=g.ch,v=g.next,t=null;switch(a){case 0:if("<"==
+p){a=1}break;case 1:i=0;if("/"==p){a=7}else if(null==e){if("!"==p){a=2}else if(x(p)){a=8}else if("?"==p){a=9}else if("%"==p){a=11}else if("<"!=p){a=0}}else if("<"!=p){a=0}break;case 2:if("-"==p){a=4}else if(x(p)){a=3}else if("<"==p){a=1}else{a=0}break;case 3:if(">"==p){a=0;t="dec"}break;case 4:if("-"==p){a=5}break;case 5:if("-"==p){a=6}break;case 6:if(">"==p){a=0;t="com"}else if("-"==p){a=6}else{a=4}break;case 7:if(x(p)){a=8}else if("<"==p){a=1}else{a=0}break;case 8:if(">"==p){a=0;t="tag"}break;case 9:if("?"==
+p){a=10}break;case 10:if(">"==p){a=0;t="src"}else if("?"!=p){a=9}break;case 11:if("%"==p){a=12}break;case 12:if(">"==p){a=0;t="src"}else if("%"!=p){a=11}break}if(i<h.length){h[i++]=p.toLowerCase()}if(1==a){f=d+m}m=v;if(t!=null){if(null!=t){if(e){if(A(h,i,e)){e=null}}else{if(A(h,i,"script")){e="/script"}else if(A(h,i,"style")){e="/style"}else if(A(h,i,"xmp")){e="/xmp"}}if(e&&i&&"/"==h[0]){t=null}}if(null!=t){c.push(new r(f,"pln"));c.push(new r(d+v,t))}}}d+=j.token.length}c.push(new r(d,"pln"));return c}
+function V(b){var c=[],a=0,d=-1,f=0;for(var h=0,i=b.length;h<i;++h){var e=b[h],g=e.token;if("pln"==e.style){var k=new u,l=-1,j;for(var o=0,m=g.length;o<m;l=o,o=j){k.decode(g,o);var n=k.ch;j=k.next;if(0==a){if(n=='"'||n=="'"||n=="`"){c.push(new r(f+o,"pln"));a=1;d=n}else if(n=="/"){a=3}else if(n=="#"){c.push(new r(f+o,"pln"));a=4}}else if(1==a){if(n==d){a=0;c.push(new r(f+j,"str"))}else if(n=="\\"){a=2}}else if(2==a){a=1}else if(3==a){if(n=="/"){a=4;c.push(new r(f+l,"pln"))}else if(n=="*"){a=5;c.push(new r(f+
+l,"pln"))}else{a=0;j=o}}else if(4==a){if(n=="\r"||n=="\n"){a=0;c.push(new r(f+o,"com"))}}else if(5==a){if(n=="*"){a=6}}else if(6==a){if(n=="/"){a=0;c.push(new r(f+j,"com"))}else if(n!="*"){a=5}}}}f+=g.length}var p;switch(a){case 1:case 2:p="str";break;case 4:case 5:case 6:p="com";break;default:p="pln";break}c.push(new r(f,p));return G(b,c)}function S(b,c){var a=0,d=0,f=new u,h;for(var i=0;i<=b.length;i=h){if(i==b.length){g=-2;h=i+1}else{f.decode(b,i);h=f.next;var e=f.ch,g=d;switch(d){case 0:if(z(e)){g=
+1}else if(w(e)){g=2}else if(!s(e)){g=3}if(g&&a<i){var k=b.substring(a,i);c.push(new q(k,"pln"));a=i}break;case 1:if(!(z(e)||w(e))){g=-1}break;case 2:if(!(w(e)||x(e)||e=="_")){g=-1}break;case 3:if(z(e)||w(e)||s(e)){g=-1}break}}if(g!=d){if(g<0){if(i>a){var k=b.substring(a,i),l=new u;l.decode(k,0);var j=l.ch,o=l.next==k.length,m;if(z(j)){if(F[k]){m="kwd"}else if(j==="@"){m="lit"}else{var n=false;if(j>="A"&&j<="Z"){for(var p=l.next;p<k.length;p=l.next){l.decode(k,p);var v=l.ch;if(v>="a"&&v<="z"){n=true;
+break}}if(!n&&!o&&k.substring(k.length-2)=="_t"){n=true}}m=n?"typ":"pln"}}else if(w(j)){m="lit"}else if(!s(j)){m="pun"}else{m="pln"}a=i;c.push(new q(k,m))}d=0;if(g==-1){h=i;continue}}d=g}}}function X(b){if(!(b&&b.length)){return b}var c=R(b);return G(b,c)}function W(b){var c=[],a=0,d="tag",f=null,h=new u;for(var i=0;i<b.length;++i){var e=b[i];if("tag"==e.style){var g=e.token,k=0;for(var l=0;l<g.length;){h.decode(g,l);var j=h.ch,o=h.next,m=null,n=null;if(j==">"){if("tag"!=d){m=l;n="tag"}}else{switch(a){case 0:if("<"==
+j){a=1}break;case 1:if(s(j)){a=2}break;case 2:if(!s(j)){n="atn";m=l;a=3}break;case 3:if("="==j){m=l;n="tag";a=5}else if(s(j)){m=l;n="tag";a=4}break;case 4:if("="==j){a=5}else if(!s(j)){m=l;n="atn";a=3}break;case 5:if('"'==j||"'"==j){m=l;n="atv";a=6;f=j}else if(!s(j)){m=l;n="atv";a=7}break;case 6:if(j==f){m=o;n="tag";a=2}break;case 7:if(s(j)){m=l;n="tag";a=2}break}}if(m){if(m>k){c.push(new q(g.substring(k,m),d));k=m}d=n}l=o}if(g.length>k){c.push(new q(g.substring(k,g.length),d))}}else{if(e.style){a=
+0;d="tag"}c.push(e)}}return c}function U(b){var c=[],a=null,d=new u,f=null;for(var h=0,i=b.length;;++h){var e;if(h<i){e=b[h];if(null==e.style){b.push(e);continue}}else if(!a){break}else{e=new q("",null)}var g=e.token;if(null==a){if("src"==e.style){if("<"==d.decode(g,0)){d.decode(g,d.next);if("%"==d.ch||"?"==d.ch){a=d.ch;c.push(new q(g.substring(0,d.next),"tag"));g=g.substring(d.next,g.length)}}}else if("tag"==e.style){if("<"==d.decode(g,0)&&"/"!=g.charAt(d.next)){var k=g.substring(d.next).toLowerCase();
+if(y(k,"script")||y(k,"style")||y(k,"xmp")){a="/"}}}}if(null!=a){var l=null;if("src"==e.style){if(a=="%"||a=="?"){var j=g.lastIndexOf(a);if(j>=0&&">"==d.decode(g,j+1)&&g.length==d.next){l=new q(g.substring(j,g.length),"tag");g=g.substring(0,j)}}if(null==f){f=[]}f.push(new q(g,"pln"))}else if("pln"==e.style){if(null==f){f=[]}f.push(e)}else if("tag"==e.style){if("<"==d.decode(e.token,0)&&e.token.length>d.next&&"/"==d.decode(e.token,d.next)){l=e}else{c.push(e)}}else if(h>=i){l=e}else{if(f){f.push(e)}else{c.push(e)}}if(l){if(f){var o=
+C(f);c.push(new q("<span class=embsrc>",null));for(var m=0,n=o.length;m<n;++m){c.push(o[m])}c.push(new q("</span>",null));f=null}if(l.token){c.push(l)}a=null}}else{c.push(e)}}return c}function Q(b){var c=null,a=null;for(var d=0;d<b.length;++d){if("pln"==b[d].style){c=d;break}}for(var d=b.length;--d>=0;){if("pln"==b[d].style){a=d;break}}if(null==c){return b}var f=new u,h=b[c].token,i=f.decode(h,0);if('"'!=i&&"'"!=i){return b}var e=f.next,g=b[a].token,k=g.lastIndexOf("&");if(k<0){k=g.length-1}var l=
+f.decode(g,k);if(l!=i||f.next!=g.length){l=null;k=g.length}var j=[];for(var d=0;d<c;++d){j.push(b[d])}j.push(new q(h.substring(0,e),"atv"));if(a==c){j.push(new q(h.substring(e,k),"pln"))}else{j.push(new q(h.substring(e,h.length),"pln"));for(var d=c+1;d<a;++d){j.push(b[d])}if(l){b.push(new q(g.substring(0,k),"pln"))}else{b.push(b[a])}}if(l){j.push(new q(g.substring(k,g.length),"pln"))}for(var d=a+1;d<b.length;++d){j.push(b[d])}return j}function T(b){var c=[],a=null,d=false,f="";for(var h=0,i=b.length;h<
+i;++h){var e=b[h],g=c;if("tag"==e.style){if(d){d=false;f="";if(a){c.push(new q("<span class=embsrc>",null));var k=C(Q(a));for(var l=0,j=k.length;l<j;++l){c.push(k[l])}c.push(new q("</span>",null));a=null}}else if(f&&e.token.indexOf("=")>=0){var o=f.toLowerCase();if(y(o,"on")||"style"==o){d=true}}else{f=""}}else if("atn"==e.style){f+=e.token}else if("atv"==e.style){if(d){if(null==a){a=[]}g=a;e=new q(e.token,"pln")}}else{if(a){g=a}}g.push(e)}return c}function C(b){var c=V(b),a=[];for(var d=0;d<c.length;++d){var f=
+c[d];if("pln"===f.style){S(f.token,a);continue}a.push(f)}return a}function O(b){var c=X(b);c=W(c);c=U(c);c=T(c);return c}function P(b){var c=M(K(b),8),a=false;for(var d=0;d<c.length;++d){if("pln"==c[d].style){if(y(I(c[d].token),"&lt;")){for(var f=c.length;--f>=0;){if("pln"==c[f].style){a=L(I(c[f].token),"&gt;");break}}}break}}return a?O(c):C(c)}function Z(b){try{var c=P(b),a=[],d=null;for(var f=0;f<c.length;f++){var h=c[f];if(h.style!=d){if(d!=null){a.push("</span>")}if(h.style!=null){a.push("<span class=",
+h.style,">")}d=h.style}var i=h.token;if(null!=h.style){i=i.replace(/(\r\n?|\n| ) /g,"$1&nbsp;").replace(/\r\n?|\n/g,"<br>")}a.push(i)}if(d!=null){a.push("</span>")}return a.join("")}catch(e){if("console"in window){console.log(e);console.trace()}return b}}function Y(){var b=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],c=[];for(var a=0;a<b.length;++a){for(var d=0;d<b[a].length;++d){c.push(b[a][d])}}b=null;var f=0;function h(){var i=
+(new Date).getTime()+250;for(;f<c.length&&(new Date).getTime()<i;f++){var e=c[f];if(e.className&&e.className.indexOf("prettyprint")>=0){var g=false;for(var k=e.parentNode;k!=null;k=k.parentNode){if((k.tagName=="pre"||k.tagName=="code"||k.tagName=="xmp")&&k.className&&k.className.indexOf("prettyprint")>=0){g=true;break}}if(!g){var l=N(e);l=l.replace(/(?:\r\n?|\n)$/,"");var j=Z(l);if(!E(e)){e.innerHTML=j}else{var o=document.createElement("PRE");for(var m=0;m<e.attributes.length;++m){var n=e.attributes[m];
+if(n.specified){o.setAttribute(n.name,n.value)}}o.innerHTML=j;e.parentNode.replaceChild(o,e)}}}}if(f<c.length){setTimeout(h,250)}}h()};this.prettyPrint=Y;
+; })();

Propchange: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/prettify.js
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/wikiwizard-jspwiki.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/wikiwizard-jspwiki.js?rev=627259&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/wikiwizard-jspwiki.js (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/scripts/wikiwizard-jspwiki.js Tue Feb 12 22:11:16 2008
@@ -0,0 +1,108 @@
+// This file is intended to be used with JSPWiki v2.3.x and later
+var ie = (window.navigator.appName == "Microsoft Internet Explorer") ? true : false;
+
+// Call changeWidth when page is loaded.
+// http://dean.edwards.name/weblog/2005/09/busted/
+document.addEventListener("DOMContentLoaded", changeWidth, null);
+
+function Cancel(var1)
+{
+    document.editform.cancel.click();
+}
+
+function Preview(var1)
+{
+    document.editform._editedtext.value=var1;
+    document.editform.preview.click();
+}
+
+function Attach(var1)
+{
+    window.open('Upload.jsp?page='+var1,'Upload','width=640,height=480,toolbar=1,menubar=1,scrollbars=1,resizable=1,').focus()
+}
+
+function Save(var1)
+{
+    document.editform._editedtext.value=var1;
+    document.editform.ok.click();
+}
+
+function unloadFunction()
+{
+	document.WikiWizard.getText();
+}
+
+function GetText(var1)
+{
+	document.editform._editedtext.value=var1;
+}
+
+function setTextPane(var1)
+{
+    document.WikiWizard.setTextPane(document.editform._editedtext.value);
+}
+
+function onTabChange()
+{
+	if ( document.WikiWizard )
+    {
+		document.WikiWizard.getText();
+	}
+}
+
+// Browser detection needed for Netscape (others added for possible future need)
+function changeWidth() {
+	var detect = navigator.userAgent.toLowerCase();
+	var OS,browser,version,total,thestring;
+	
+	if (checkIt('konqueror'))
+	{
+	    browser = "Konqueror";
+	    OS = "Linux";
+	}
+	else if (checkIt('safari')) browser = "Safari"
+	else if (checkIt('omniweb')) browser = "OmniWeb"
+	else if (checkIt('opera')) browser = "Opera"
+	else if (checkIt('webtv')) browser = "WebTV";
+	else if (checkIt('icab')) browser = "iCab"
+	else if (checkIt('msie')) browser = "Internet Explorer"
+	else if (!checkIt('compatible'))
+	{
+	    browser = "Netscape Navigator"
+	    version = detect.charAt(8);
+	}
+	else browser = "An unknown browser";
+	
+	if (!version) version = detect.charAt(place + thestring.length);
+	
+	if (!OS)
+	{
+	    if (checkIt('linux')) OS = "Linux";
+	    else if (checkIt('x11')) OS = "Unix";
+	    else if (checkIt('mac')) OS = "Mac"
+	    else if (checkIt('win')) OS = "Windows"
+	    else OS = "an unknown operating system";
+	}
+	
+	function checkIt(string)
+	{
+	    place = detect.indexOf(string) + 1;
+	    thestring = string;
+	    return place;
+	}
+	
+	var myWidth = 0, myHeight = 0;
+	if( typeof( window.innerWidth ) == 'number' )
+	{
+	    //Non-IE
+	    myWidth = window.innerWidth;
+	    myHeight = window.innerHeight;
+	}
+	
+	if ( browser == "Netscape Navigator" || 
+	     browser == "Opera" )
+	{
+		document.getElementById("editarea").setAttribute("style","height:" + myHeight * .70 + "px");
+		document.getElementById("WikiWizard").setAttribute("height","100%");
+	}
+}
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/preview.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/preview.jsp?rev=627259&view=auto
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/preview.jsp (added)
+++ incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/editors/preview.jsp Tue Feb 12 22:11:16 2008
@@ -0,0 +1,56 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki"%>
+<%@ page import="com.ecyrd.jspwiki.*" %>
+<%@ page import="com.ecyrd.jspwiki.ui.*" %>
+<%@ page import="com.ecyrd.jspwiki.filters.*" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+<fmt:setBundle basename="templates.default"/>
+<%--
+        This is a special editor component for JSPWiki preview storage.
+--%>
+<% 
+   WikiContext context = WikiContext.findContext( pageContext ); 
+   String usertext = (String)pageContext.getAttribute( EditorManager.ATTR_EDITEDTEXT, PageContext.REQUEST_SCOPE ); 
+   if( usertext == null ) usertext = ""; 
+ 
+   String action = "comment".equals(request.getParameter("action")) ? 
+                   context.getURL(WikiContext.COMMENT,context.getName()) : 
+                   context.getURL(WikiContext.EDIT,context.getName());
+ %>
+<form action="<%=action%>"
+      method="post" accept-charset="<wiki:ContentEncoding/>" 
+       class="wikiform"
+          id="editform"
+    onsubmit="return Wiki.submitOnce( this );"
+     enctype="application/x-www-form-urlencoded">
+
+  <p>
+    <%-- Edit.jsp & Comment.jsp rely on these being found.  So be careful, if you make changes. --%>
+    <input type="hidden" name="author" value="<c:out value='${author}' />" />
+    <input type="hidden" name="link" value="<c:out value='${link}' />" />
+    <input type="hidden" name="remember" value="<c:out value='${remember}' />" />
+
+    <input type="hidden" name="page" value="<wiki:Variable var='pagename' />" />
+    <input type="hidden" name="action" value="save" />
+    <input name="<%=SpamFilter.getHashFieldName(request)%>" type="hidden" value="<c:out value='${lastchange}' />" />
+  </p>
+  <div>
+  <textarea style="display:none;" readonly="readonly"
+              id="editorarea" name="<%=EditorManager.REQ_EDITEDTEXT%>" 
+            rows="4" 
+            cols="80"><%=TextUtil.replaceEntities(usertext)%></textarea>
+  </div>
+  <div id="submitbuttons">
+    <input type="submit" name="edit" value="<fmt:message key='editor.preview.edit.submit'/>" 
+      accesskey="e"
+          title="<fmt:message key='editor.preview.edit.title'/>" />
+    <input type="submit" name="ok" value="<fmt:message key='editor.preview.save.submit'/>" 
+      accesskey="s"
+          title="<fmt:message key='editor.preview.save.title'/>" />
+    <input type="submit" name="cancel" value="<fmt:message key='editor.preview.cancel.submit'/>"  
+      accesskey="q" 
+          title="<fmt:message key='editor.preview.cancel.title'/>" />
+  </div>
+  
+</form>
\ No newline at end of file

Added: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/skins/OrderedList/images/text_allcaps.png
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/skins/OrderedList/images/text_allcaps.png?rev=627259&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/jspwiki/branches/JSPWIKI_STRIPES_BRANCH/src/webdocs/templates/default/skins/OrderedList/images/text_allcaps.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message