[KSS-checkins] r53777 - in kukit/kukit.js/branch/ree-service-layer-and-refactoring: . 3rd_party 3rd_party/johnnydebris.net 3rd_party/johnnydebris.net/dommer 3rd_party/johnnydebris.net/jsbase 3rd_party/johnnydebris.net/jsbase/testing 3rd_party/johnnydebris.net/minisax.js doc kukit tests
reebalazs at codespeak.net
reebalazs at codespeak.net
Tue Apr 15 11:35:26 CEST 2008
Author: reebalazs
Date: Tue Apr 15 11:35:22 2008
New Revision: 53777
Added:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/base2-dom-fp-20070816.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/CHANGES.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/LICENSE.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/README.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/conftest.py (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/dommer.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/example.html (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/run_tests.html (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/test_dommer.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/version.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/LICENSE.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/README.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/__init__.py (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/array.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/conftest.py (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/exception.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/function.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/misclib.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/number.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/server.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/string.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/test_array.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/test_misclib.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/test_number.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/test_string.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/testing/
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/testing.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/testing/findtests.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/testing/testbase.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/jsbase/version.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/LICENSE.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/conftest.py (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/example.html (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/helpers.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/minisax.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/test_minisax.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/testhandler.js (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/minisax.js/version.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/doc/draganddrop.kss.txt (contents, props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/values.js (contents, props changed)
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/base2-dom-fp.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/doc/HISTORY.txt
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/actionreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/commandprocessor.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/commandreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/dom.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/errors.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/eventreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/forms.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/interfaces.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kssparser.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kukit.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/oper.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/plugin.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/providerreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/requestmanager.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/resourcedata.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/selectorreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/serveraction.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/service.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/tokenizer.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/utils.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/runner.html
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/runtests.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/runtests.sh
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_interfaces.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_kssparser.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_requestmanager.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_tokenizer.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_utils.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/unittestUtilities.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/version.txt
Log:
Rebase on current trunk.
Added: kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/base2-dom-fp-20070816.js
==============================================================================
--- (empty file)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/base2-dom-fp-20070816.js Tue Apr 15 11:35:22 2008
@@ -0,0 +1 @@
+eval(function(p,a,c,k,e,r){var b,e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)a[c]=(r[b=e(c)]=k[c])?b:'\\x0';e=function(){return a.join('|')||'^'};k=[function(e){return r[e]}];c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b('+e(c)+')\\b','g'),k[c]);return p}('u U={1v:"U",4I:"0.9 (4J)",2c:q,1h:C o(1w){u 2c=1w;u 4K/*@3S=@3T@*/;u 30=1w.30;v(1w.31){u 1l=10.3U("span");u 1U=31.1U+" "+31.userAgent;v(!4K)1U=1U.D(/1m\\s[\\d.]+/,"");1U=1U.D(/([a-z])[\\s\\/](\\d)/4L,"$1$2");30=31.javaEnabled()&&30}t o(a){u r=L;u b=a.1V(0)=="!";v(b)a=a.J(1);a=a.D(/^([^\\(].*)$/,"/($1)/i.P(1U)");32{1W("r=!!"+a)}33(2d){}t!!(b^r)}}(q)};C o(1w){u 1h=U.1h;u J=2e.J||o(a){t 3V.X(a,3V.15(A,1))};u 34=1;u 3W=/^[1w$]/;u _3=/%([1-9])/g;u 4M=/^\\s\\s*/;u 4N=/\\s\\s*$/;u 4O=/([\\/()[\\]{}|*+-.,^$?\\\\])/g;u 3X=/1W/.P(1h)?/\\bbase\\b/:/./;u 4P=["V","1X","35"];u 4Q=R(C 19);u 3V=2e.M.J;u 2x=4R();o N(){v(q.V==N){q.x(A[0])}E{t x(A[0],N.M)}};N.M={V:N,y:o(){},x:1F(x)};N.2f=2g;N.36=1F(3Y);N.y=N.M.y;N.x=o(a,b){U.37=11;u c=C q;x(c,a);2y U.37;u d=c.V;o 1p(){v(!U.37){v(q.V==A.1G||q.3Z){q.3Z=11;d.X(q,A);2y q.3Z}E{t x(A[0],c)}}};c.V=1p;13(u i 1Y N)1p[i]=q[i];1p.2f=q;1p.y=1Z;1p.14=1Z;1p.M=c;x(1p,b);1p.14();t 1p};N.F=1F(2x),N.1a=o(a){v(1b(a,1H)){v(N.36(a)){a(q.M)}}E{x(q.M,a)}t q};N.14=1Z;u 2z=N.x({V:o(c,d){q.x(d);v(G q.14=="o")q.14();v(q.1v!="U"){U.40(q.1v,q);q.2h=H("u %1=U.%1;",q.1v)}u e=/[^\\s,]+/g;c.38=20.2A(q.38.1I(e),o(a,b){21(U[b],H("2z 18 found: \'%1\'.",b));t a+=U[b].2h},U.2h);c.1J=20.2A(q.1J.1I(e),o(a,b){q.2h+=H("u %2=%1.%2;",q.1v,b);t a+=H("v(!%1.%2)%1.%2=%2;",q.1v,b)},"",q)},1J:"",38:"",2h:"",1v:"",40:o(a,b){q[a]=b;q.1J+=","+a;q.2h+=H("u %1=%2.%1;",a,q.1v)}});u 41=N.x({V:o(){1K C 4S("Class cannot be instantiated.");}});u 1i=41.x(I,{x:o(c,d){u e=q.y();F(q,o(a,b){v(!1i[b]&&G a=="o"&&!3W.P(b)){x(e,b,a)}});e.1a(c);x(e,d);e.14();t e},1a:o(c){u d=q;v(G c=="o"){d.y(c);v(1i.36(c)){F(c,o(a,b){v(!1i[b]&&G a=="o"&&!3W.P(b)){x(d,b,a)}})}}E{2x(2g,c,o(a,b){v(b.1V(0)=="@"){v(1h(b.J(1))){F(a,A.1G)}}E v(!1i[b]&&G a=="o"){o 42(){t d[b].X(d,[q].1n(J(A)))};42.39=3X.P(a);x(d.M,b,42)}});x(d,c)}t d}});u 22=1i.x({4T:o(c,d,e){u f=11;32{q.F(c,o(a,b){f=d.15(e,a,b,c);v(!f)1K 2B;})}33(2d){v(2d!=2B)1K 2d;}t!!f},filter:o(d,e,f){u i=0;t q.2A(d,o(a,b,c){v(e.15(f,b,c,d)){a[i++]=b}t a},[])},invoke:o(b,c){u d=J(A,2);t q.2C(b,(G c=="o")?o(a){v(a!=I)t c.X(a,d)}:o(a){v(a!=I)t a[c].X(a,d)})},2C:o(c,d,e){u f=[],i=0;q.F(c,o(a,b){f[i++]=d.15(e,a,b,c)});t f},pluck:o(b,c){t q.2C(b,o(a){v(a!=I)t a[c]})},2A:o(c,d,e,f){u g=A.B>2;q.F(c,o(a,b){v(g){e=d.15(f,e,a,b,c)}E{e=a;g=11}});t e},some:o(c,d,e){t!q.4T(c,o(a,b){t!d.15(e,a,b,c)})}},{F:F});u 1c="#";u 3a=N.x({V:o(a){q.43(a)},1x:1F(1x),23:o(a){/*@3S@*//*@v(@3T<5.5)t $4U.23(q,1c+a);@E@*/t 1c+a 1Y q;/*@4V@*/},4W:o(a){t q[1c+a]},F:o(a,b){13(u c 1Y q)v(c.1V(0)==1c){a.15(b,q[c],c.J(1),q)}},43:o(d){F(A,o(c){F(c,o(a,b){q.24(b,a)},q)},q);t q},2i:o(a){u b=q[1c+a];2y q[1c+a];t b},24:o(a,b){v(A.B==1)b=a;t q[1c+a]=b},union:o(a){t q.43.X(q.1x(),A)}});3a.1a(22);u S="~";u 44=3a.x({V:o(a){q[S]=C 20;q.y(a)},3b:o(a,b){21(!q.23(a),"4X 4Y \'"+a+"\'.");t q.24.X(q,A)},1x:o(){u a=q.y();a[S]=q[S].1x();t a},2j:o(){t q[S].B},4Z:o(a){v(a<0)a+=q[S].B;u b=q[S][a];v(b!==1j)t q[1c+b]},F:o(a,b){u c=q[S];u d=c.B,i;13(i=0;i<d;i++){a.15(b,q[1c+c[i]],c[i],q)}},25:o(a){t q[S].25(R(a))},45:o(a,b,c){21(3c.50(a)<q[S].B,"51 52 53 54.");21(!q.23(b),"4X 4Y \'"+b+"\'.");q[S].45(a,R(b));t q.24.X(q,A)},1q:1Z,keys:o(a,b){3d(A.B){1d 0:t q[S].1x();1d 1:t q[S].1q(a);46:t q[S].J(a,b)}},2i:o(a){u b=A[1];v(b||q.23(a)){v(!b){q[S].2i(R(a))}t q.y(a)}},3e:o(a){u b=q[S].3e(a);v(b!==1j)t q.2i(b,11)},47:o(){q[S].47();t q},3f:o(c){v(c){u d=q;q[S].3f(o(a,b){t c(d[1c+a],d[1c+b],a,b)})}E q[S].3f();t q},24:o(a,b){v(A.B==1)b=a;v(!q.23(a)){q[S].2D(R(a))}u c=q.V;v(c.1f&&!1b(b,c.1f)){b=c.3g.X(c,A)}t q[1c+a]=b},55:o(a,b){21(3c.50(a)<q[S].B,"51 52 53 54.");A[0]=q[S].1q(a);t q.24.X(q,A)},1X:o(){t R(q[S])}},{1f:I,14:o(){q.M.1q=q.M.4Z},3g:o(a,b){v(q.1f)t C q.1f(a,b)},x:o(a,b){u c=q.y(a);c.3g=q.3g;x(c,b);v(!c.1f){c.1f=q.1f}E v(G c.1f!="o"){c.1f=(q.1f||N).x(c.1f)}c.14();t c}});u 26=44.x({V:o(a,b){q.y(a);v(G b=="27"){q.2c=/g/.P(b);q.3h=/i/.P(b)}},2c:11,3h:L,1e:o(h,j){h=R(h);v(A.B==1){u k=q;u l=q[S];j=o(a){v(!a)t"";u b,c=1,i=0;1o(b=k[1c+l[i++]]){u d=c+b.B+1;v(A[c]){u e=b.48;3d(G e){1d"o":u f=J(A,c,d);u g=A[A.B-2];t e.X(k,f.1n(g,h));1d"49":t A[c+e];46:t e}}c=d}}}t h.D(q.35(),j)},P:o(a){t q.1e(a)!=a},1X:o(){u e=/\\\\(\\d+)/g;u f=0;t"("+q.2C(o(c){u d=R(c).D(e,o(a,b){t"\\\\"+(1+57(b)+f)});f+=c.B+1;t d}).2E(")|(")+")"},35:o(a){v(a=="3i")t q;u b=(q.2c?"g":"")+(q.3h?"i":"");t C 19(q,b)}},{58:"$0",2j:o(a){t 1I(R(a).D(/\\\\./g,"").D(/\\(\\?[:=!]|\\[[^\\]]+\\]/g,""),/\\(/g).B},14:o(){F("3b,23,4W,2i,24".1y(","),o(b){x(q,b,o(a){v(1b(a,19)){a=a.3j}t y(q,A)})},q.M)}});26.1f=N.x({V:o(a,b){a=1b(a,19)?a.3j:R(a);v(G b=="49")b=R(b);E v(b==I)b="";v(G b=="27"&&/\\$(\\d+)/.P(b)){v(/^\\$\\d+$/.P(b)){b=4a(b.J(1))}E{u Q=/\'/.P(b.D(/\\\\./g,""))?\'"\':"\'";b=b.D(/\\n/g,"\\\\n").D(/\\r/g,"\\\\r").D(/\\$(\\d+)/g,Q+"+(A[$1]||"+Q+Q+")+"+Q);b=C 1H("t "+Q+b.D(/([\'"])\\1\\+(.*)\\+\\1\\1$/,"$1")+Q)}}q.B=26.2j(a);q.48=b;q.1X=3k(R,a)},B:0,48:""});1H.M.M={};v("".D(/^/,R)){u 59=/(g|4L)$/;x(R.M,"D",o(a,b){v(G b=="o"){v(1b(a,19)){u c=a;u d=c.2c;v(d==I)d=59.P(c);v(d)c=C 19(c.3j)}E{c=C 19(1L(a))}u e,f=q,g="";1o(f&&(e=c.1e(f))){g+=f.J(0,e.5a)+b.X(q,e);f=f.J(e.5a+e[0].B);v(!d)2F}t g+f}t q.y(a,b)})}u 20=4b(2e,"1n,2E,pop,2D,47,shift,J,3f,3l,unshift",[22,{5b:o(d,e){v(!e)e=d;t q.2A(d,o(a,b,c){a[b]=e[c];t a},{})},1x:o(a){t q(q.1n(a))},17:o(a,b){t q.25(a,b)!=-1},F:3m,25:o(a,b,c){u d=a.B;v(c==I){c=0}E v(c<0){c=3c.5c(0,d+c)}13(u i=c;i<d;i++){v(a[i]===b)t i}t-1},45:o(a,b,c){q.3l(a,c,0,b);t b},1q:o(a,b){v(b<0)b+=a.B;t a[b]},5d:o(a,b,c){u d=a.B;v(c==I){c=d-1}E v(from<0){c=3c.5c(0,d+c)}13(u i=c;i>=0;i--){v(a[i]===b)t i}t-1},2C:o(c,d,e){u f=[];q.F(c,o(a,b){f[b]=d.15(e,a,b,c)});t f},2i:o(a,b){u c=q.25(a,b);v(c!=-1)q.3e(a,c);t b},3e:o(a,b){t q.3l(a,b,1)}}]);20.M.F=1F(3m);u String2=4b(R,"1V,charCodeAt,1n,25,5d,1I,D,search,J,1y,substr,5e,4c,3n",[{2k:2k}]);o 4b(c,d,e){u f=1i.x();F(d.1y(","),o(a){f[a]=3o(c.M[a])});F(e,f.1a,f);u g=o(){t f(q.V==f?c.X(c,A):A[0])};g.M=f.M;F(f,o(a,b){v(c[b]){f[b]=c[b];2y f.M[b]}g[b]=f[b]});t g};o y(a,b){t a.y.X(a,b)};o x(c,d){u e=A.1G;v(c!=I){v(A.B>2){u f=R(d);u g=A[2];v(f.1V(0)=="@"){t 1h(f.J(1))?e(c,g):c}v(c.x==e&&/^(y|x)$/.P(f)){t c}v(G g=="o"){u h=c[f];v(g!=h&&!3Y(g,h)){v(g.39||3X.P(g)){u i=g;o 39(){u a=q.y;q.y=h;u b=i.X(q,A);q.y=a;t b};g=39;g.method=i;g.2f=h}c[f]=g}}E{c[f]=g}}E v(d){u j=1b(d,1H)?1H:2g;v(U.37){F(4P,o(a){v(d[a]!=j.M[a]){e(c,a,d[a])}})}E{v(G c.x=="o"&&G c!="o"&&c.x!=e){e=3o(c.x)}}2x(j,d,o(a,b){e(c,b,a)})}}t c};o 3Y(a,b){1o(b&&b.2f!=a)b=b.2f;t!!b};v(G 2B=="1j"){2B=C 5f("2B")}o F(a,b,c,d){v(a==I)t;v(!d){v(1b(a,1H)){d=1H}E v(G a.F=="o"&&a.F!=A.1G){a.F(b,c);t}E v(G a.B=="49"){3m(a,b,c);t}}2x(d||2g,a,b,c)};o 3m(a,b,c){v(a==I)t;u d=a.B,i;v(G a=="27"){13(i=0;i<d;i++){b.15(c,a.1V(i),i,a)}}E{13(i=0;i<d;i++){v(a[i]!==1j){b.15(c,a[i],i,a)}}}};o 4R(){u g=o(){q.i=1};g.M={i:1};u h=0;13(u i 1Y C g)h++;t(h>1)?o(a,b,c,d){u e={};13(u f 1Y b){v(!e[f]&&a.M[f]===1j){e[f]=11;c.15(d,b[f],f,b)}}}:o(a,b,c,d){13(u e 1Y b){v(a.M[e]===1j){c.15(d,b[e],e,b)}}}};o 1b(a,b){4d(b,"o","5g \'1b\' operand.");/*@3S@*//*@v(@3T<5.1)v($4U.1b(a,b))t 11;@E@*/v(a instanceof b)t 11;/*@4V@*/v(4e(b))t L;v(4e(a.V))t b==2g;v(a!=I)3d(b){1d 2e:t!!(G a=="3i"&&a.2E&&a.3l);1d 1H:t!!(G a=="o"&&a.15);1d 19:t a.V.M.1X()==4Q;1d Date:t!!a.getTimezoneOffset;1d R:1d 57:1d Boolean:t G a==G b.M.35();1d 2g:t G a=="3i"&&G a.V=="o"}t L};o 4e(a){t a==N||N.36(a)};o 21(a,b,c){v(!a){1K C(c||5f)(b||"Assertion failed.");}};o 5h(a,b,c){v(b==I)b=a.1G.B;v(a.B<b){1K C 5i(c||"Not enough A.");}};o 4d(a,b,c){v(b&&(G b=="o"?!1b(a,b):G a!=b)){1K C 4S(c||"5g 3p.");}};o 1M(a){v(!a.2l)a.2l="b2_"+34++;t a.2l};o 1x(a){u b=o(){};b.M=a;t C b};o H(c){u d=A;u e=C 19("%([1-"+A.B+"])","g");t R(c).D(e,o(a,b){t b<d.B?d[b]:a})};o 1I(a,b){t R(a).1I(b)||[]};o 1L(a){t R(a).D(4O,"\\\\$1")};o 2k(a){t R(a).D(4M,"").D(4N,"")};o 1Z(){t 1j};o K(k){t k};o O(a,b){u c=J(A,2);o 4f(){t a.X(b,c.1n(J(A)))};4f.4g=1M(a);t 4f};o 1F(a,b){o 5j(){t a.X(b,[q].1n(J(A)))};t 5j};o 3k(a){u b=J(A,1);o 5k(){t a.X(q,b.1n(J(A)))};t 5k};o 3o(b){o 5l(a){t b.X(a,J(A,1))};t 5l};U.1J="N,41,1i,22,20,3a,44,26,2z,"+"K,1Z,21,5h,4d,1M,y,O,1x,1F,1h,x,F,H,1b,1I,3k,1L,J,2k,3o";U=C 2z(q,U);1W(q.1J);U.y=y;U.x=x;F(22,o(a,b){v(!1i[b])U.40(b,O(a,22))})};C o(1w){u 1N=C U.2z(q,{1v:"1N",4I:"0.9 (4J)",1J:"28,1O,1z,3q,2m,1g,3r,4h,4i,3s,4j,4k,2G,Y,T,2o",O:o(a){v(a&&a.1A){u b=1M(a);v(!A.1G[b]){3d(a.1A){1d 1:v(G a.1r=="27"){(2G.4l[a.29]||2G).O(a)}E{1z.O(a)}2F;1d 9:v(a.links){4k.O(a)}E{1O.O(a)}2F;46:28.O(a)}A.1G[b]=11}}t a}});1W(q.38);v(1h("1m[56].+2H")&&!1h("SV1")){u 1P={};x(U,"O",o(b,c){v(!c||c.1A!=1){t q.y(b,c)}u d=c.uniqueID;u e=1M(b);1P[e]=b;b=I;c=I;v(!1P[d])1P[d]={};u f=1P[d][e];v(f)t f;u g=o(){u a=10.1B[d];v(a)t 1P[e].X(a,A)};g.4g=e;1P[d][e]=g;t g});4m("onunload",o(){1P=I})}u 2p=1i.x(I,{1a:o(c){v(G c=="3i"){F(c,o(a,b){v(b.1V(0)=="@"){F(a,A.1G,q)}E v(!q[b]&&G a=="o"){q.3t(b,a.B)}},q)}t q.y(c)},3t:o(a,b){v(!q[a]){u c="u 1Q=o 1w%1(%2){%3.y=%3.%1.2f;u m=%3.y?\'y\':\'%1\';t %3[m](%4)}";u d="abcdefghij".1y("").J(-b);1W(H(c,a,d,d[0],d.J(1)));q[a]=1Q}}});u 3u=2p.x(I,{O:o(a){t q(a)}});u T=1i.x({3v:o(a){t q.2q(a).2I},3w:o(a){1o(a&&(a=a.3x)&&!q.2J(a))4n;t a},5m:o(a){u b=0;1o(a&&(a=a.5n))b++;t b},2r:o(a){t a.3y},4o:o(a){1o(a&&(a=a.5n)&&!q.2J(a))4n;t a},getTextContent:o(a){t a[T.$2K]},5o:o(a){a=a.5p;1o(a){v(a.1A==3||q.2J(a))t L;a=a.3x}t 11},setTextContent:o(a,b){t a[T.$2K]=b},"@1m":{3v:o(a){t q.2q(a).5q},"@3z":{2r:o(a){t a.3y||a.10}}}},{$2K:"textContent",17:o(a,b){1o(b&&(b=b.2L)&&a!=b)4n;t!!b},2q:o(a){t q.4p(a)?a:q.2r(a)},4p:o(a){t!!(a&&a.4q)},2J:o(a){t!!(a&&a.1A==1)},"@(1l.17)":{17:o(a,b){t a!=b&&q.4p(a)?a==q.2r(b):a.17(b)}},"@1m":{$2K:"innerText"},"@3z":{2J:o(a){t!!(a&&a.1A==1&&a.29!="!")}}});u 3q=3u.x();u 2m=3u.x({"@!(10.1R)":{4r:o(a,b,c,d){a.3p=b;a.5r=c;a.4s=d},"@1m":{4r:o(a,b,c,d){q.y(a,b,c,d);a.5s=!a.5r},5t:o(a){v(a.4s!==L){a.4t=L}},stopPropagation:o(a){a.5s=11}}}},{"@1m":{"@Mac":{O:o(a){t q.y(x({5t:o(){v(q.4s!==L){q.4t=L}}},a))}},"@Windows":{O:o(a){q.y(a);v(!a.3A){a.3A=a.srcElement}t a}}}});u 1g=2p.x({"@!(1l.1C)":{1C:o(a,b,c,d){u e=1M(a);u f=c.4g||1M(c);u g=1g.$1B[e];v(!g)g=1g.$1B[e]={};u h=g[b];u i=a["5u"+b];v(!h){h=g[b]={};v(i)h[0]=i}h[f]=c;v(i!==1j){a["5u"+b]=1F(1g.$2s)}},3B:o(a,b){t 1g.$2s(a,b)},removeEventListener:o(a,b,c,d){u e=1g.$1B[a.2l];v(e&&e[b]){2y e[b][c.2l]}},"@1m.+2H":{1C:o(a,b,c,d){v(G c=="o"){c=O(c,a)}q.y(a,b,c,d)},3B:o(a,b){b.3A=a;32{t a.fireEvent(b.3p,b)}33(2d){t q.y(a,b)}}}}},{3B:o(a,b){v(G b=="27"){u c=b;b=3r.1R(a,"4u");2m.4r(b,c,L,L)}q.y(a,b)},"@!(1l.1C)":{$1B:{},$2s:o(a,b){u c=11;u d=1g.$1B[a.2l];v(d){b=2m.O(b);u e=d[b.3p];13(u i 1Y e){u 3C=e[i];v(3C.2s){c=3C.2s(b)}E{c=3C.15(a,b)}v(b.4t===L)c=L;v(c===L)2F}}t c},"@1m":{$2s:o(a,b){v(a.Infinity){a=a.10.5q;v(!b)b=a.5v}t q.y(a,b||T.3v(a).5v)}}}});u 3r=2p.x({"@!(10.1R)":{1R:o(a,b){t 2m.O({})},"@(10.5w)":{1R:o(a,b){t 2m.O(a.5w())}}},"@(10.1R)":{"@!(10.1R(\'4u\'))":{1R:o(a,b){t q.y(a,b=="4u"?"UIEvents":b)}}}});u 1S=1i.x(I,{3D:L,2t:o(){v(!1S.3D){1S.3D=11;setTimeout("U.1N.1g.3B(10,\'1S\')",0)}},14:o(){1g.1C(10,"1S",o(){1S.3D=11},L);1g.1C(window,"5x",q.2t,L)},"@(1C)":{14:o(){q.y();1C("5x",q.2t,L)}},"@(4m)":{14:o(){q.y();4m("onload",q.2t)}},"@1m.+2H":{14:o(){q.y();10.write("<5y 2M=5z defer 4v=//:><\\/5y>");10.1B.5z.onreadystatechange=o(){v(q.5A=="5B"){q.removeNode();1S.2t()}}}},"@4w":{14:o(){q.y();u a=setInterval(o(){v(/loaded|5B/.P(10.5A)){clearInterval(a);1S.2t()}},100)}}});u 4j=2p.x({"@!(10.2I.5C)":{5C:o(a,b,c){t b.currentStyle}}},{toCamelCase:o(c){t R(c).D(/\\-([a-z])/g,o(a,b){t b.3n()})}});u 3E=2p.x({"@!(1l.5D)":{5D:o(a,b){v(1b(b,2e)){b=b.2E(".")}t q.4x(a,"."+b)}},"@!(1l.4y)":{4x:o(a,b){t C Y(b).1e(a)},4y:o(a,b){t C Y(b).1e(a,1)}}});x(3E.M,{4x:o(b){t x(q.y(b),"1q",o(a){t 1N.O(q.y(a))})},4y:o(a){t 1N.O(q.y(a))}});u 4h=3E.x();u 4i=3E.x({"@!(1l.5E)":{5E:o(a,b){t C Y(b).P(a)}}});u 3s=N.x({V:o(b){b=b||[];q.B=b.B;q.1q=o(a){t b[a]}},B:0,F:o(a,b){u c=q.B;13(u i=0;i<c;i++){a.15(b,q.1q(i),i,q)}},1q:1Z,"@(5F)":{V:o(b){v(b&&b.5G){q.B=b.snapshotLength;q.1q=o(a){t b.5G(a)}}E q.y(b)}}});3s.1a(22);u Y=N.x({V:o(a){q.1X=3k(R,2k(a))},1e:o(a,b){32{u c=q.$2N(a||10,b)}33(2d){1K C 5i(H("\'%1\' is 18 a valid CSS selector.",q));}t b?c:C 3s(c)},P:o(a){a.5H("4z",11);u b=C Y(q+"[4z]");u c=b.1e(T.2r(a),11);a.removeAttribute("4z");t c==a},$2N:o(a,b){t Y.3F(q)(a,b)}});u 1s=26.x({V:o(a){q.y(a);q.3G={};q.2O=C 26;q.2O.3b(/:18\\([^)]*\\)/,26.58);q.2O.3b(/([ >](\\*|[\\w-]+))([^: >+~]*)(:\\w+-Z(\\([^)]+\\))?)([^: >+~]*)/,"$1$3$6$4")},3G:I,3h:11,3H:o(b){u c=/\'/g;u d=q.5I=[];t q.5J(q.H(R(b).D(1s.5K,o(a){d.2D(a.J(1,-1).D(c,"\\\\\'"));t"\\5L"+d.B})))},H:o(a){t a.D(1s.5M,"$1").D(1s.5N,"$1 $2").D(1s.5O,"$1*$2")},5J:o(a){t q.2O.1e(a.D(1s.5P,">* "))},3F:o(a){t q.3G[a]||(q.3G[a]=q.2u(q.1e(q.3H(a))))},2u:o(c){u d=q.5I;t c.D(/\\5L(\\d+)/g,o(a,b){t d[b-1]})}},{5K:/(["\'])[^\\1]*\\1/g,5O:/([\\s>+~,]|[^(]\\+|^)([#.:@])/g,5N:/(^|,)([^\\s>+~])/g,5M:/\\s*([\\s>+~(),]|^|$)\\s*/g,5P:/\\s\\*\\s/g,2a:o(c,d,e,f,g,h,i,j){f=/1k/i.P(c)?f+"+1-":"";v(!isNaN(d))d="0n+"+d;E v(d=="even")d="2n";E v(d=="odd")d="2n+1";d=d.1y(/n\\+?/);u a=d[0]?(d[0]=="-")?-1:4a(d[0]):1;u b=4a(d[1])||0;u g=a<0;v(g){a=-a;v(a==1)b++}u l=H(a==0?"%3%7"+(f+b):"(%4%3-%2)%6%1%70%5%4%3>=%2",a,b,e,f,h,i,j);v(g)l=g+"("+l+")";t l}});Y.4A={"=":"%1==\'%2\'","!=":"%1!=\'%2\'","~=":/(^| )%1( |$)/,"|=":/^%1(-|$)/,"^=":/^%1/,"$=":/%1$/,"*=":/%1/};Y.4A[""]="%1!=I";Y.1t={"3I":"e%1.3I","17":"e%1[T.$2K].25(\'%2\')!=-1","2P":"e%1.2P","5Q":"T.5o(e%1)","4B":"e%1.2P===L","4C-Z":"!T.4o(e%1)","1k-Z":"!T.3w(e%1)","2Q-Z":"!T.4o(e%1)&&!T.3w(e%1)","4D":"e%1==T.2q(e%1).4q"};C o(1w){u 2b=1h("2b");u 2R=1h("2R");u 5R=1h("(1l.3J)");u 4E="u p%2=0,i%2,e%2,n%2=e%1.";u 34=5R?"e%1.3J":"1M(e%1)";u 5S="u g="+34+";v(!p[g]){p[g]=1;";u 5T="r[r.B]=e%1;v(s)t e%1;";u 5U="1Q=o(5V,s){2v++;u r=[],p={},1u=[%1],"+"d=T.2q(5V),c=d.body?\'3n\':\'1X\';";u 5W=2b?o(a,b){u c=a.1B[b]||I;v(!c||c.2M==b)t c;13(u i=0;i<c.B;i++){v(c[i].2M==b)t c[i]}t I}:o(a,b){t a.getElementById(b)};u 2v=1;o 5X(a){v(a.5Y!=2v){u b=0;u c=a.5p;1o(c){v(c.1A==1&&c.29!="!"){c.5Z=++b}c=c.3x}a.60=b;a.5Y=2v}t a};u 1Q;u 1u;u W;u 12;u 1D;u 2S;u 3K={};u 2w=C 1s({"^ \\\\*:4D":o(a){12=L;u b="e%2=d.4q;v(T.17(e%1,e%2)){";t H(b,W++,W)}," (\\\\*|[\\\\w-]+)#([\\\\w-]+)":o(a,b,c){12=L;u d="u e%2=5W(d,\'%4\');v(e%2&&";v(b!="*")d+="e%2.2T==\'%3\'[c]()&&";d+="T.17(e%1,e%2)){";v(1D)d+=H("i%1=n%1.B;",1D);t H(d,W++,W,b,c)}," (\\\\*|[\\\\w-]+)":o(a,b){2S++;12=b=="*";u c=4E;c+=(12&&2R)?"1B":"getElementsByTagName(\'%3\')";c+=";13(i%2=0;(e%2=n%2[i%2]);i%2++){";t H(c,W++,1D=W,b)},">(\\\\*|[\\\\w-]+)":o(a,b){u c=2b&&1D;12=b=="*";u d=4E;d+=c?"children":"childNodes";v(!12&&c)d+=".4F(\'%3\')";d+=";13(i%2=0;(e%2=n%2[i%2]);i%2++){";v(12){d+="v(e%2.1A==1){";12=2R}E{v(!c)d+="v(e%2.2T==\'%3\'[c]()){"}t H(d,W++,1D=W,b)},"\\\\+(\\\\*|[\\\\w-]+)":o(a,b){u c="";v(12&&2b)c+="v(e%1.29!=\'!\'){";12=L;c+="e%1=T.3w(e%1);v(e%1";v(b!="*")c+="&&e%1.2T==\'%2\'[c]()";c+="){";t H(c,W,b)},"~(\\\\*|[\\\\w-]+)":o(a,b){u c="";v(12&&2b)c+="v(e%1.29!=\'!\'){";12=L;2S=2;c+="1o(e%1=e%1.3x){v(e%1.61==2v)2F;e%1.61=2v;v(";v(b=="*"){c+="e%1.1A==1";v(2R)c+="&&e%1.29!=\'!\'"}E c+="e%1.2T==\'%2\'[c]()";c+="){";t H(c,W,b)},"#([\\\\w-]+)":o(a,b){12=L;u c="v(e%1.2M==\'%2\'){";v(1D)c+=H("i%1=n%1.B;",1D);t H(c,W,b)},"\\\\.([\\\\w-]+)":o(a,b){12=L;1u.2D(C 19("(^|\\\\s)"+1L(b)+"(\\\\s|$)"));t H("v(1u[%2].P(e%1.1r)){",W,1u.B-1)},":18\\\\((\\\\*|[\\\\w-]+)?([^)]*)\\\\)":o(a,b,c){u d=(b&&b!="*")?H("v(e%1.2T==\'%2\'[c]()){",W,b):"";d+=2w.1e(c);t"v(!"+d.J(2,-1).D(/\\)\\{v\\(/g,"&&")+"){"},":2U(-1k)?-Z\\\\(([^)]+)\\\\)":o(a,b,c){12=L;b=H("e%1.2L.60",W);u d="v(p%1!==e%1.2L)";d+="p%1=5X(e%1.2L);u i=e%1.5Z;v(";t H(d,W)+1s.2a(a,c,"i",b,"!","&&","%","==")+"){"},":([\\\\w-]+)(\\\\(([^)]+)\\\\))?":o(a,b,c,d){t"v("+H(Y.1t[b],W,d||"")+"){"},"\\\\[([\\\\w-]+)\\\\s*([^=]?=)?\\\\s*([^\\\\]]*)\\\\]":o(a,b,c,d){u e=1z.$1T[b]||b;v(b=="62")e="1r";E v(b=="13")e="htmlFor";v(c){b=H("(e%1.%3||e%1.3L(\'%2\'))",W,b,e)}E{b=H("1z.3L(e%1,\'%2\')",W,b)}u f=Y.4A[c||""];v(1b(f,19)){1u.2D(C 19(H(f.3j,1L(2w.2u(d)))));f="1u[%2].P(%1)";d=1u.B-1}t"v("+H(f,b,d)+"){"}});Y.3F=o(a){v(!3K[a]){1u=[];1Q="";u b=2w.3H(a).1y(",");13(u i=0;i<b.B;i++){12=W=1D=0;2S=b.B>1?2:0;u c=2w.1e(b[i])||"1K;";v(12&&2b){c+=H("v(e%1.29!=\'!\'){",W)}u d=(2S>1)?5S:"";c+=H(d+5T,W);c+=2e(1I(c,/\\{/g).B+1).2E("}");1Q+=c}1W(H(5U,1u)+2w.2u(1Q)+"t s?I:r}");3K[a]=1Q}t 3K[a]}};u 2o=1s.x({V:o(){q.y(2o.4G);q.2O.55(1,"$1$4$3$6")},3H:o(a){t q.y(a).D(/,/g,"\\3M")},2u:o(a){t q.y(a.D(/\\[2V::\\*\\]/g,"").D(/(^|\\3M)\\//g,"$1./").D(/\\3M/g," | "))},"@63":{2u:o(a){t q.y(a.D(/1k\\(\\)/g,"2j(3N-1E::*)+2j(2W-1E::*)+1"))}}},{14:o(){q.2X.1T[""]="[@$1]";F(q.64,o(a,b){F(q.2X[b],a,q.4G)},q)},3O:{1t:{"4C-Z":"[1]","1k-Z":"[1k()]","2Q-Z":"[1k()=1]"}},4G:x({},{"@!4w":{"(^|\\\\3M) (\\\\*|[\\\\w-]+)#([\\\\w-]+)":"$1id(\'$3\')[2V::$2]","([ >])(\\\\*|[\\\\w-]+):([\\\\w-]+-Z(\\\\(([^)]+)\\\\))?)":o(a,b,c,d,e,f){u g=(b==" ")?"//*":"/*";v(/^2U/i.P(d)){g+=2a(d,f,"position()")}E{g+=2o.3O.1t[d]}t g+"[2V::"+c+"]"}}}),64:{65:o(a,b){q[1L(b)+"([\\\\w-]+)"]=a},66:o(a,b){q[1L(b)+"(\\\\*|[\\\\w-]+)"]=a},1T:o(a,b){q["\\\\[([\\\\w-]+)\\\\s*"+1L(b)+"\\\\s*([^\\\\]]*)\\\\]"]=a},1t:o(a,b){q[":"+b.D(/\\(\\)$/,"\\\\(([^)]+)\\\\)")]=a}},2X:{65:{"#":"[@2M=\'$1\'][1]",".":"[17(1n(\' \', at 62,\' \'),\' $1 \')]"},66:{" ":"/descendant::$1",">":"/Z::$1","+":"/2W-1E::*[1][2V::$1]","~":"/2W-1E::$1"},1T:{"*=":"[17(@$1,\'$2\')]","^=":"[starts-with(@$1,\'$2\')]","$=":"[5e(@$1,27-B(@$1)-27-B(\'$2\')+1)=\'$2\']","~=":"[17(1n(\' \',@$1,\' \'),\' $2 \')]","|=":"[17(1n(\'-\',@$1,\'-\'),\'-$2-\')]","!=":"[18(@$1=\'$2\')]","=":"[@$1=\'$2\']"},1t:{"5Q":"[18(Z::*) 3P 18(text())]","4C-Z":"[18(3N-1E::*)]","1k-Z":"[18(2W-1E::*)]","18()":68,"2U-Z()":2a,"2U-1k-Z()":2a,"2Q-Z":"[18(3N-1E::*) 3P 18(2W-1E::*)]","4D":"[18(parent::*)]"}},"@63":{14:o(){q.3O.1t["1k-Z"]=q.2X.1t["1k-Z"];q.3O.1t["2Q-Z"]=q.2X.1t["2Q-Z"];q.y()}}});o 68(a,b){u c=C 2o;t"[18("+c.1e(2k(b)).D(/\\[1\\]/g,"").D(/^(\\*|[\\w-]+)/,"[2V::$1]").D(/\\]\\[/g," 3P ").J(1,-1)+")]"};o 2a(a,b,c){t"["+1s.2a(a,b,c||"2j(3N-1E::*)+1","1k()","18"," 3P "," mod ","=")+"]"};Y.1a({2Y:o(){t Y.2Y(q)},"@(5F)":{$2N:o(a,b){v(Y.$2Z.P(q)){t q.y(a,b)}u c=T.2q(a);u d=b?9:7;u e=c.2N(q.2Y(),a,I,d,I);t b?e.singleNodeValue:e}},"@1m":{$2N:o(a,b){v(G a.69!="1j"&&!Y.$2Z.P(q)){u c=b?"selectSingleNode":"69";t a[c](q.2Y())}t q.y(a,b)}}});x(Y,{3Q:I,2Y:o(a){v(!q.3Q)q.3Q=C 2o;t q.3Q.3F(a)},$2Z:/:(3I|2P|4B|17)|^(#[\\w-]+\\s*)?\\w+$/,"@4w":{$2Z:/:(3I|2P|4B|17)|^(#[\\w-]+\\s*)?\\w+$|2U\\-/,"@!WebKit5":{$2Z:/./}}});u 28=3u.x({"@!(1l.6a)":{6a:o(a,b){v(T.17(a,b)){t 4|16}E v(T.17(b,a)){t 2|8}u c=28.3R(a);u d=28.3R(b);v(c<d){t 4}E v(c>d){t 2}t 0}}},{3R:o(a){u b=0;1o(a){b=T.5m(a)+"."+b;a=a.2L}t b},"@(1l.3J)":{3R:o(a){t a.3J}}});u 1O=28.x(I,{O:o(b){q.y(b);x(b,"3U",o(a){t 1N.O(q.y(a))});3q.O(b.2I);t b},"@!(10.2I)":{O:o(a){a.2I=T.3v(a);t q.y(a)}}});1O.3t("3U",2);u 1z=28.x({"@1m[67]":{3L:o(a,b,c){v(a.1r===1j||b=="6b"||b=="4v"){t q.y(a,b,2)}u d=a.getAttributeNode(b);t d&&d.6c?d.6d:I}},"@3z.+2H":{3L:o(a,b,c){v(a.1r===1j||b=="6b"||b=="4v"){t q.y(a,b,2)}u d=a.1T[q.$1T[b.4c()]||b];t d?d.6c?d.6d:I:q.y(a,b)}}},{$1T:{},"@3z.+2H":{14:o(){u a="colSpan,rowSpan,vAlign,dateTime,accessKey,tabIndex,encType,maxLength,readOnly,longDesc";u b=a.4c().1y(",");u c=a.1y(",");q.$1T=20.5b(b,c)}}});1z.3t("5H",3);3q.1a(4j);1O.1a(4h);1O.1a(3r);1O.1a(1g);1z.1a(4i);1z.1a(1g);u 4k=1O.x(I,{"@(10.4H===1j)":{O:o(b){q.y(b);b.4H=I;b.1C("focus",o(a){b.4H=a.3A},L);t b}}});u 2G=1z.x({addClass:o(a,b){v(!q.6e(a,b)){a.1r+=(a.1r?" ":"")+b;t b}},6e:o(a,b){u c=C 19("(^|\\\\s)"+b+"(\\\\s|$)");t c.P(a.1r)},removeClass:o(a,b){u c=C 19("(^|\\\\s)"+b+"(\\\\s|$)");a.1r=a.1r.D(c,"$2");t b}},{4l:{},4F:"*",x:o(){u b=y(q,A);u c=(b.4F||"").3n().1y(",");F(c,o(a){2G.4l[a]=b});t b},"@!(1l.3y)":{O:o(a){q.y(a);a.3y=T.2r(a);t a}}});1N.$=o(a,b){t C Y(a).1e(b,1)};1N.$$=o(a,b){t C Y(a).1e(b)};1W(q.1J)};',[],494,'||||||||||||||||||||||||function||this|||return|var|if||extend|base||arguments|length|new|replace|else|forEach|typeof|format|null|slice||false|prototype|Base|bind|test||String|_16|Traversal|base2|constructor|_35|apply|Selector|child|document|true|_36|for|init|call||contains|not|RegExp|implement|instanceOf|_15|case|exec|Item|EventTarget|detect|Module|undefined|last|element|MSIE|concat|while|klass|item|className|Parser|pseudoClasses|reg|name|_|copy|split|Element|nodeType|all|addEventListener|_37|sibling|delegate|callee|Function|match|exports|throw|rescape|assignID|DOM|Document|closures|fn|createEvent|DOMContentLoaded|attributes|platform|charAt|eval|toString|in|Undefined|Array2|assert|Enumerable|exists|store|indexOf|RegGrp|string|Node|tagName|_27|_28|global|error|Array|ancestor|Object|namespace|remove|count|trim|base2ID|Event||XPathParser|Interface|getDocument|getOwnerDocument|handleEvent|fire|unescape|indexed|parser|_10|delete|Namespace|reduce|StopIteration|map|push|join|break|HTMLElement|win|defaultView|isElement|TEXT|parentNode|id|evaluate|sorter|disabled|only|_29|_38|nodeName|nth|self|following|values|toXPath|NOT_XPATH|java|navigator|try|catch|_1|valueOf|ancestorOf|__prototyping|imports|_14|Hash|add|Math|switch|removeAt|sort|create|ignoreCase|object|source|partial|splice|_19|toUpperCase|unbind|type|AbstractView|DocumentEvent|StaticNodeList|createDelegate|Binding|getDefaultView|getNextElementSibling|nextSibling|ownerDocument|MSIE5|target|dispatchEvent|listener|fired|NodeSelector|parse|cache|escape|checked|sourceIndex|_39|getAttribute|x02|preceding|optimised|and|xpathParser|_41|cc_on|_jscript_version|createElement|_0|_2|_7|_12|__constructing|addName|Abstract|_13|merge|Collection|insertAt|default|reverse|replacement|number|parseInt|_18|toLowerCase|assertType|_20|_21|_22|DocumentSelector|ElementSelector|ViewCSS|HTMLDocument|bindings|attachEvent|continue|getPreviousElementSibling|isDocument|documentElement|initEvent|cancelable|returnValue|Events|src|KHTML|matchAll|matchSingle|b2_test|operators|enabled|first|root|_31|tags|rules|activeElement|version|alpha|jscript|gi|_4|_5|_6|_8|_9|_11|TypeError|every|Legacy|end|fetch|Duplicate|key|fetchAt|abs|Index|out|of|bounds|storeAt||Number|IGNORE|_17|index|combine|max|lastIndexOf|substring|Error|Invalid|assertArity|SyntaxError|_23|_24|_25|getNodeIndex|previousSibling|isEmpty|firstChild|parentWindow|bubbles|cancelBubble|preventDefault|on|event|createEventObject|load|script|__ready|readyState|complete|getComputedStyle|getElementsByClassName|matchesSelector|XPathResult|snapshotItem|setAttribute|_26|optimise|ESCAPE|x01|WHITESPACE|IMPLIED_SPACE|IMPLIED_ASTERISK|WILD_CARD|empty|_30|_32|_33|_34|e0|byId|register|b2_indexed|b2_index|b2_length|b2_adjacent|class|opera|types|identifiers|combinators||_40|selectNodes|compareDocumentPosition|href|specified|nodeValue|hasClass'.split('|'),0,{}));
\ No newline at end of file
Modified: kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/base2-dom-fp.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/base2-dom-fp.js (original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/base2-dom-fp.js Tue Apr 15 11:35:22 2008
@@ -1 +1 @@
-eval(function(p,a,c,k,e,r){var b,e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)a[c]=(r[b=e(c)]=k[c])?b:'\\x0';e=function(){return a.join('|')||'^'};k=[function(e){return r[e]}];c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b('+e(c)+')\\b','g'),k[c]);return p}('u U={1v:"U",4I:"0.9 (4J)",2c:q,1h:C o(1w){u 2c=1w;u 4K/*@3S=@3T@*/;u 30=1w.30;v(1w.31){u 1l=10.3U("span");u 1U=31.1U+" "+31.userAgent;v(!4K)1U=1U.D(/1m\\s[\\d.]+/,"");1U=1U.D(/([a-z])[\\s\\/](\\d)/4L,"$1$2");30=31.javaEnabled()&&30}t o(a){u r=L;u b=a.1V(0)=="!";v(b)a=a.J(1);a=a.D(/^([^\\(].*)$/,"/($1)/i.P(1U)");32{1W("r=!!"+a)}33(2d){}t!!(b^r)}}(q)};C o(1w){u 1h=U.1h;u J=2e.J||o(a){t 3V.X(a,3V.15(A,1))};u 34=1;u 3W=/^[1w$]/;u _3=/%([1-9])/g;u 4M=/^\\s\\s*/;u 4N=/\\s\\s*$/;u 4O=/([\\/()[\\]{}|*+-.,^$?\\\\])/g;u 3X=/1W/.P(1h)?/\\bbase\\b/:/./;u 4P=["V","1X","35"];u 4Q=R(C 19);u 3V=2e.M.J;u 2x=4R();o N(){v(q.V==N){q.x(A[0])}E{t x(A[0],N.M)}};N.M={V:N,y:o(){},x:1F(x)};N.2f=2g;N.36=1F(3Y);N.y=N.M.y;N.x=o(a,b){U.37=11;u c=C q;x(c,a);2y U.37;u d=c.V;o 1p(){v(!U.37){v(q.V==A.1G||q.3Z){q.3Z=11;d.X(q,A);2y q.3Z}E{t x(A[0],c)}}};c.V=1p;13(u i 1Y N)1p[i]=q[i];1p.2f=q;1p.y=1Z;1p.14=1Z;1p.M=c;x(1p,b);1p.14();t 1p};N.F=1F(2x),N.1a=o(a){v(1b(a,1H)){v(N.36(a)){a(q.M)}}E{x(q.M,a)}t q};N.14=1Z;u 2z=N.x({V:o(c,d){q.x(d);v(G q.14=="o")q.14();v(q.1v!="U"){U.40(q.1v,q);q.2h=H("u %1=U.%1;",q.1v)}u e=/[^\\s,]+/g;c.38=20.2A(q.38.1I(e),o(a,b){21(U[b],H("2z 18 found: \'%1\'.",b));t a+=U[b].2h},U.2h);c.1J=20.2A(q.1J.1I(e),o(a,b){q.2h+=H("u %2=%1.%2;",q.1v,b);t a+=H("v(!%1.%2)%1.%2=%2;",q.1v,b)},"",q)},1J:"",38:"",2h:"",1v:"",40:o(a,b){q[a]=b;q.1J+=","+a;q.2h+=H("u %1=%2.%1;",a,q.1v)}});u 41=N.x({V:o(){1K C 4S("Class cannot be instantiated.");}});u 1i=41.x(I,{x:o(c,d){u e=q.y();F(q,o(a,b){v(!1i[b]&&G a=="o"&&!3W.P(b)){x(e,b,a)}});e.1a(c);x(e,d);e.14();t e},1a:o(c){u d=q;v(G c=="o"){d.y(c);v(1i.36(c)){F(c,o(a,b){v(!1i[b]&&G a=="o"&&!3W.P(b)){x(d,b,a)}})}}E{2x(2g,c,o(a,b){v(b.1V(0)=="@"){v(1h(b.J(1))){F(a,A.1G)}}E v(!1i[b]&&G a=="o"){o 42(){t d[b].X(d,[q].1n(J(A)))};42.39=3X.P(a);x(d.M,b,42)}});x(d,c)}t d}});u 22=1i.x({4T:o(c,d,e){u f=11;32{q.F(c,o(a,b){f=d.15(e,a,b,c);v(!f)1K 2B;})}33(2d){v(2d!=2B)1K 2d;}t!!f},filter:o(d,e,f){u i=0;t q.2A(d,o(a,b,c){v(e.15(f,b,c,d)){a[i++]=b}t a},[])},invoke:o(b,c){u d=J(A,2);t q.2C(b,(G c=="o")?o(a){v(a!=I)t c.X(a,d)}:o(a){v(a!=I)t a[c].X(a,d)})},2C:o(c,d,e){u f=[],i=0;q.F(c,o(a,b){f[i++]=d.15(e,a,b,c)});t f},pluck:o(b,c){t q.2C(b,o(a){v(a!=I)t a[c]})},2A:o(c,d,e,f){u g=A.B>2;q.F(c,o(a,b){v(g){e=d.15(f,e,a,b,c)}E{e=a;g=11}});t e},some:o(c,d,e){t!q.4T(c,o(a,b){t!d.15(e,a,b,c)})}},{F:F});u 1c="#";u 3a=N.x({V:o(a){q.43(a)},1x:1F(1x),23:o(a){/*@3S@*//*@v(@3T<5.5)t $4U.23(q,1c+a);@E@*/t 1c+a 1Y q;/*@4V@*/},4W:o(a){t q[1c+a]},F:o(a,b){13(u c 1Y q)v(c.1V(0)==1c){a.15(b,q[c],c.J(1),q)}},43:o(d){F(A,o(c){F(c,o(a,b){q.24(b,a)},q)},q);t q},2i:o(a){u b=q[1c+a];2y q[1c+a];t b},24:o(a,b){v(A.B==1)b=a;t q[1c+a]=b},union:o(a){t q.43.X(q.1x(),A)}});3a.1a(22);u S="~";u 44=3a.x({V:o(a){q[S]=C 20;q.y(a)},3b:o(a,b){21(!q.23(a),"4X 4Y \'"+a+"\'.");t q.24.X(q,A)},1x:o(){u a=q.y();a[S]=q[S].1x();t a},2j:o(){t q[S].B},4Z:o(a){v(a<0)a+=q[S].B;u b=q[S][a];v(b!==1j)t q[1c+b]},F:o(a,b){u c=q[S];u d=c.B,i;13(i=0;i<d;i++){a.15(b,q[1c+c[i]],c[i],q)}},25:o(a){t q[S].25(R(a))},45:o(a,b,c){21(3c.50(a)<q[S].B,"51 52 53 54.");21(!q.23(b),"4X 4Y \'"+b+"\'.");q[S].45(a,R(b));t q.24.X(q,A)},1q:1Z,keys:o(a,b){3d(A.B){1d 0:t q[S].1x();1d 1:t q[S].1q(a);46:t q[S].J(a,b)}},2i:o(a){u b=A[1];v(b||q.23(a)){v(!b){q[S].2i(R(a))}t q.y(a)}},3e:o(a){u b=q[S].3e(a);v(b!==1j)t q.2i(b,11)},47:o(){q[S].47();t q},3f:o(c){v(c){u d=q;q[S].3f(o(a,b){t c(d[1c+a],d[1c+b],a,b)})}E q[S].3f();t q},24:o(a,b){v(A.B==1)b=a;v(!q.23(a)){q[S].2D(R(a))}u c=q.V;v(c.1f&&!1b(b,c.1f)){b=c.3g.X(c,A)}t q[1c+a]=b},55:o(a,b){21(3c.50(a)<q[S].B,"51 52 53 54.");A[0]=q[S].1q(a);t q.24.X(q,A)},1X:o(){t R(q[S])}},{1f:I,14:o(){q.M.1q=q.M.4Z},3g:o(a,b){v(q.1f)t C q.1f(a,b)},x:o(a,b){u c=q.y(a);c.3g=q.3g;x(c,b);v(!c.1f){c.1f=q.1f}E v(G c.1f!="o"){c.1f=(q.1f||N).x(c.1f)}c.14();t c}});u 26=44.x({V:o(a,b){q.y(a);v(G b=="27"){q.2c=/g/.P(b);q.3h=/i/.P(b)}},2c:11,3h:L,1e:o(h,j){h=R(h);v(A.B==1){u k=q;u l=q[S];j=o(a){v(!a)t"";u b,c=1,i=0;1o(b=k[1c+l[i++]]){u d=c+b.B+1;v(A[c]){u e=b.48;3d(G e){1d"o":u f=J(A,c,d);u g=A[A.B-2];t e.X(k,f.1n(g,h));1d"49":t A[c+e];46:t e}}c=d}}}t h.D(q.35(),j)},P:o(a){t q.1e(a)!=a},1X:o(){u e=/\\\\(\\d+)/g;u f=0;t"("+q.2C(o(c){u d=R(c).D(e,o(a,b){t"\\\\"+(1+57(b)+f)});f+=c.B+1;t d}).2E(")|(")+")"},35:o(a){v(a=="3i")t q;u b=(q.2c?"g":"")+(q.3h?"i":"");t C 19(q,b)}},{58:"$0",2j:o(a){t 1I(R(a).D(/\\\\./g,"").D(/\\(\\?[:=!]|\\[[^\\]]+\\]/g,""),/\\(/g).B},14:o(){F("3b,23,4W,2i,24".1y(","),o(b){x(q,b,o(a){v(1b(a,19)){a=a.3j}t y(q,A)})},q.M)}});26.1f=N.x({V:o(a,b){a=1b(a,19)?a.3j:R(a);v(G b=="49")b=R(b);E v(b==I)b="";v(G b=="27"&&/\\$(\\d+)/.P(b)){v(/^\\$\\d+$/.P(b)){b=4a(b.J(1))}E{u Q=/\'/.P(b.D(/\\\\./g,""))?\'"\':"\'";b=b.D(/\\n/g,"\\\\n").D(/\\r/g,"\\\\r").D(/\\$(\\d+)/g,Q+"+(A[$1]||"+Q+Q+")+"+Q);b=C 1H("t "+Q+b.D(/([\'"])\\1\\+(.*)\\+\\1\\1$/,"$1")+Q)}}q.B=26.2j(a);q.48=b;q.1X=3k(R,a)},B:0,48:""});1H.M.M={};v("".D(/^/,R)){u 59=/(g|4L)$/;x(R.M,"D",o(a,b){v(G b=="o"){v(1b(a,19)){u c=a;u d=c.2c;v(d==I)d=59.P(c);v(d)c=C 19(c.3j)}E{c=C 19(1L(a))}u e,f=q,g="";1o(f&&(e=c.1e(f))){g+=f.J(0,e.5a)+b.X(q,e);f=f.J(e.5a+e[0].B);v(!d)2F}t g+f}t q.y(a,b)})}u 20=4b(2e,"1n,2E,pop,2D,47,shift,J,3f,3l,unshift",[22,{5b:o(d,e){v(!e)e=d;t q.2A(d,o(a,b,c){a[b]=e[c];t a},{})},1x:o(a){t q(q.1n(a))},17:o(a,b){t q.25(a,b)!=-1},F:3m,25:o(a,b,c){u d=a.B;v(c==I){c=0}E v(c<0){c=3c.5c(0,d+c)}13(u i=c;i<d;i++){v(a[i]===b)t i}t-1},45:o(a,b,c){q.3l(a,c,0,b);t b},1q:o(a,b){v(b<0)b+=a.B;t a[b]},5d:o(a,b,c){u d=a.B;v(c==I){c=d-1}E v(from<0){c=3c.5c(0,d+c)}13(u i=c;i>=0;i--){v(a[i]===b)t i}t-1},2C:o(c,d,e){u f=[];q.F(c,o(a,b){f[b]=d.15(e,a,b,c)});t f},2i:o(a,b){u c=q.25(a,b);v(c!=-1)q.3e(a,c);t b},3e:o(a,b){t q.3l(a,b,1)}}]);20.M.F=1F(3m);u String2=4b(R,"1V,charCodeAt,1n,25,5d,1I,D,search,J,1y,substr,5e,4c,3n",[{2k:2k}]);o 4b(c,d,e){u f=1i.x();F(d.1y(","),o(a){f[a]=3o(c.M[a])});F(e,f.1a,f);u g=o(){t f(q.V==f?c.X(c,A):A[0])};g.M=f.M;F(f,o(a,b){v(c[b]){f[b]=c[b];2y f.M[b]}g[b]=f[b]});t g};o y(a,b){t a.y.X(a,b)};o x(c,d){u e=A.1G;v(c!=I){v(A.B>2){u f=R(d);u g=A[2];v(f.1V(0)=="@"){t 1h(f.J(1))?e(c,g):c}v(c.x==e&&/^(y|x)$/.P(f)){t c}v(G g=="o"){u h=c[f];v(g!=h&&!3Y(g,h)){v(g.39||3X.P(g)){u i=g;o 39(){u a=q.y;q.y=h;u b=i.X(q,A);q.y=a;t b};g=39;g.method=i;g.2f=h}c[f]=g}}E{c[f]=g}}E v(d){u j=1b(d,1H)?1H:2g;v(U.37){F(4P,o(a){v(d[a]!=j.M[a]){e(c,a,d[a])}})}E{v(G c.x=="o"&&G c!="o"&&c.x!=e){e=3o(c.x)}}2x(j,d,o(a,b){e(c,b,a)})}}t c};o 3Y(a,b){1o(b&&b.2f!=a)b=b.2f;t!!b};v(G 2B=="1j"){2B=C 5f("2B")}o F(a,b,c,d){v(a==I)t;v(!d){v(1b(a,1H)){d=1H}E v(G a.F=="o"&&a.F!=A.1G){a.F(b,c);t}E v(G a.B=="49"){3m(a,b,c);t}}2x(d||2g,a,b,c)};o 3m(a,b,c){v(a==I)t;u d=a.B,i;v(G a=="27"){13(i=0;i<d;i++){b.15(c,a.1V(i),i,a)}}E{13(i=0;i<d;i++){v(a[i]!==1j){b.15(c,a[i],i,a)}}}};o 4R(){u g=o(){q.i=1};g.M={i:1};u h=0;13(u i 1Y C g)h++;t(h>1)?o(a,b,c,d){u e={};13(u f 1Y b){v(!e[f]&&a.M[f]===1j){e[f]=11;c.15(d,b[f],f,b)}}}:o(a,b,c,d){13(u e 1Y b){v(a.M[e]===1j){c.15(d,b[e],e,b)}}}};o 1b(a,b){4d(b,"o","5g \'1b\' operand.");/*@3S@*//*@v(@3T<5.1)v($4U.1b(a,b))t 11;@E@*/v(a instanceof b)t 11;/*@4V@*/v(4e(b))t L;v(4e(a.V))t b==2g;v(a!=I)3d(b){1d 2e:t!!(G a=="3i"&&a.2E&&a.3l);1d 1H:t!!(G a=="o"&&a.15);1d 19:t a.V.M.1X()==4Q;1d Date:t!!a.getTimezoneOffset;1d R:1d 57:1d Boolean:t G a==G b.M.35();1d 2g:t G a=="3i"&&G a.V=="o"}t L};o 4e(a){t a==N||N.36(a)};o 21(a,b,c){v(!a){1K C(c||5f)(b||"Assertion failed.");}};o 5h(a,b,c){v(b==I)b=a.1G.B;v(a.B<b){1K C 5i(c||"Not enough A.");}};o 4d(a,b,c){v(b&&(G b=="o"?!1b(a,b):G a!=b)){1K C 4S(c||"5g 3p.");}};o 1M(a){v(!a.2l)a.2l="b2_"+34++;t a.2l};o 1x(a){u b=o(){};b.M=a;t C b};o H(c){u d=A;u e=C 19("%([1-"+A.B+"])","g");t R(c).D(e,o(a,b){t b<d.B?d[b]:a})};o 1I(a,b){t R(a).1I(b)||[]};o 1L(a){t R(a).D(4O,"\\\\$1")};o 2k(a){t R(a).D(4M,"").D(4N,"")};o 1Z(){t 1j};o K(k){t k};o O(a,b){u c=J(A,2);o 4f(){t a.X(b,c.1n(J(A)))};4f.4g=1M(a);t 4f};o 1F(a,b){o 5j(){t a.X(b,[q].1n(J(A)))};t 5j};o 3k(a){u b=J(A,1);o 5k(){t a.X(q,b.1n(J(A)))};t 5k};o 3o(b){o 5l(a){t b.X(a,J(A,1))};t 5l};U.1J="N,41,1i,22,20,3a,44,26,2z,"+"K,1Z,21,5h,4d,1M,y,O,1x,1F,1h,x,F,H,1b,1I,3k,1L,J,2k,3o";U=C 2z(q,U);1W(q.1J);U.y=y;U.x=x;F(22,o(a,b){v(!1i[b])U.40(b,O(a,22))})};C o(1w){u 1N=C U.2z(q,{1v:"1N",4I:"0.9 (4J)",1J:"28,1O,1z,3q,2m,1g,3r,4h,4i,3s,4j,4k,2G,Y,T,2o",O:o(a){v(a&&a.1A){u b=1M(a);v(!A.1G[b]){3d(a.1A){1d 1:v(G a.1r=="27"){(2G.4l[a.29]||2G).O(a)}E{1z.O(a)}2F;1d 9:v(a.links){4k.O(a)}E{1O.O(a)}2F;46:28.O(a)}A.1G[b]=11}}t a}});1W(q.38);v(1h("1m[56].+2H")&&!1h("SV1")){u 1P={};x(U,"O",o(b,c){v(!c||c.1A!=1){t q.y(b,c)}u d=c.uniqueID;u e=1M(b);1P[e]=b;b=I;c=I;v(!1P[d])1P[d]={};u f=1P[d][e];v(f)t f;u g=o(){u a=10.1B[d];v(a)t 1P[e].X(a,A)};g.4g=e;1P[d][e]=g;t g});4m("onunload",o(){1P=I})}u 2p=1i.x(I,{1a:o(c){v(G c=="3i"){F(c,o(a,b){v(b.1V(0)=="@"){F(a,A.1G,q)}E v(!q[b]&&G a=="o"){q.3t(b,a.B)}},q)}t q.y(c)},3t:o(a,b){v(!q[a]){u c="u 1Q=o 1w%1(%2){%3.y=%3.%1.2f;u m=%3.y?\'y\':\'%1\';t %3[m](%4)}";u d="abcdefghij".1y("").J(-b);1W(H(c,a,d,d[0],d.J(1)));q[a]=1Q}}});u 3u=2p.x(I,{O:o(a){t q(a)}});u T=1i.x({3v:o(a){t q.2q(a).2I},3w:o(a){1o(a&&(a=a.3x)&&!q.2J(a))4n;t a},5m:o(a){u b=0;1o(a&&(a=a.5n))b++;t b},2r:o(a){t a.3y},4o:o(a){1o(a&&(a=a.5n)&&!q.2J(a))4n;t a},getTextContent:o(a){t a[T.$2K]},5o:o(a){a=a.5p;1o(a){v(a.1A==3||q.2J(a))t L;a=a.3x}t 11},setTextContent:o(a,b){t a[T.$2K]=b},"@1m":{3v:o(a){t q.2q(a).5q},"@3z":{2r:o(a){t a.3y||a.10}}}},{$2K:"textContent",17:o(a,b){1o(b&&(b=b.2L)&&a!=b)4n;t!!b},2q:o(a){t q.4p(a)?a:q.2r(a)},4p:o(a){t!!(a&&a.4q)},2J:o(a){t!!(a&&a.1A==1)},"@(1l.17)":{17:o(a,b){t a!=b&&q.4p(a)?a==q.2r(b):a.17(b)}},"@1m":{$2K:"innerText"},"@3z":{2J:o(a){t!!(a&&a.1A==1&&a.29!="!")}}});u 3q=3u.x();u 2m=3u.x({"@!(10.1R)":{4r:o(a,b,c,d){a.3p=b;a.5r=c;a.4s=d},"@1m":{4r:o(a,b,c,d){q.y(a,b,c,d);a.5s=!a.5r},5t:o(a){v(a.4s!==L){a.4t=L}},stopPropagation:o(a){a.5s=11}}}},{"@1m":{"@Mac":{O:o(a){t q.y(x({5t:o(){v(q.4s!==L){q.4t=L}}},a))}},"@Windows":{O:o(a){q.y(a);v(!a.3A){a.3A=a.srcElement}t a}}}});u 1g=2p.x({"@!(1l.1C)":{1C:o(a,b,c,d){u e=1M(a);u f=c.4g||1M(c);u g=1g.$1B[e];v(!g)g=1g.$1B[e]={};u h=g[b];u i=a["5u"+b];v(!h){h=g[b]={};v(i)h[0]=i}h[f]=c;v(i!==1j){a["5u"+b]=1F(1g.$2s)}},3B:o(a,b){t 1g.$2s(a,b)},removeEventListener:o(a,b,c,d){u e=1g.$1B[a.2l];v(e&&e[b]){2y e[b][c.2l]}},"@1m.+2H":{1C:o(a,b,c,d){v(G c=="o"){c=O(c,a)}q.y(a,b,c,d)},3B:o(a,b){b.3A=a;32{t a.fireEvent(b.3p,b)}33(2d){t q.y(a,b)}}}}},{3B:o(a,b){v(G b=="27"){u c=b;b=3r.1R(a,"4u");2m.4r(b,c,L,L)}q.y(a,b)},"@!(1l.1C)":{$1B:{},$2s:o(a,b){u c=11;u d=1g.$1B[a.2l];v(d){b=2m.O(b);u e=d[b.3p];13(u i 1Y e){u 3C=e[i];v(3C.2s){c=3C.2s(b)}E{c=3C.15(a,b)}v(b.4t===L)c=L;v(c===L)2F}}t c},"@1m":{$2s:o(a,b){v(a.Infinity){a=a.10.5q;v(!b)b=a.5v}t q.y(a,b||T.3v(a).5v)}}}});u 3r=2p.x({"@!(10.1R)":{1R:o(a,b){t 2m.O({})},"@(10.5w)":{1R:o(a,b){t 2m.O(a.5w())}}},"@(10.1R)":{"@!(10.1R(\'4u\'))":{1R:o(a,b){t q.y(a,b=="4u"?"UIEvents":b)}}}});u 1S=1i.x(I,{3D:L,2t:o(){v(!1S.3D){1S.3D=11;setTimeout("U.1N.1g.3B(10,\'1S\')",0)}},14:o(){1g.1C(10,"1S",o(){1S.3D=11},L);1g.1C(window,"5x",q.2t,L)},"@(1C)":{14:o(){q.y();1C("5x",q.2t,L)}},"@(4m)":{14:o(){q.y();4m("onload",q.2t)}},"@1m.+2H":{14:o(){q.y();10.write("<5y 2M=5z defer 4v=//:><\\/5y>");10.1B.5z.onreadystatechange=o(){v(q.5A=="5B"){q.removeNode();1S.2t()}}}},"@4w":{14:o(){q.y();u a=setInterval(o(){v(/loaded|5B/.P(10.5A)){clearInterval(a);1S.2t()}},100)}}});u 4j=2p.x({"@!(10.2I.5C)":{5C:o(a,b,c){t b.currentStyle}}},{toCamelCase:o(c){t R(c).D(/\\-([a-z])/g,o(a,b){t b.3n()})}});u 3E=2p.x({"@!(1l.5D)":{5D:o(a,b){v(1b(b,2e)){b=b.2E(".")}t q.4x(a,"."+b)}},"@!(1l.4y)":{4x:o(a,b){t C Y(b).1e(a)},4y:o(a,b){t C Y(b).1e(a,1)}}});x(3E.M,{4x:o(b){t x(q.y(b),"1q",o(a){t 1N.O(q.y(a))})},4y:o(a){t 1N.O(q.y(a))}});u 4h=3E.x();u 4i=3E.x({"@!(1l.5E)":{5E:o(a,b){t C Y(b).P(a)}}});u 3s=N.x({V:o(b){b=b||[];q.B=b.B;q.1q=o(a){t b[a]}},B:0,F:o(a,b){u c=q.B;13(u i=0;i<c;i++){a.15(b,q.1q(i),i,q)}},1q:1Z,"@(5F)":{V:o(b){v(b&&b.5G){q.B=b.snapshotLength;q.1q=o(a){t b.5G(a)}}E q.y(b)}}});3s.1a(22);u Y=N.x({V:o(a){q.1X=3k(R,2k(a))},1e:o(a,b){32{u c=q.$2N(a||10,b)}33(2d){1K C 5i(H("\'%1\' is 18 a valid CSS selector.",q));}t b?c:C 3s(c)},P:o(a){a.5H("4z",11);u b=C Y(q+"[4z]");u c=b.1e(T.2r(a),11);a.removeAttribute("4z");t c==a},$2N:o(a,b){t Y.3F(q)(a,b)}});u 1s=26.x({V:o(a){q.y(a);q.3G={};q.2O=C 26;q.2O.3b(/:18\\([^)]*\\)/,26.58);q.2O.3b(/([ >](\\*|[\\w-]+))([^: >+~]*)(:\\w+-Z(\\([^)]+\\))?)([^: >+~]*)/,"$1$3$6$4")},3G:I,3h:11,3H:o(b){u c=/\'/g;u d=q.5I=[];t q.5J(q.H(R(b).D(1s.5K,o(a){d.2D(a.J(1,-1).D(c,"\\\\\'"));t"\\5L"+d.B})))},H:o(a){t a.D(1s.5M,"$1").D(1s.5N,"$1 $2").D(1s.5O,"$1*$2")},5J:o(a){t q.2O.1e(a.D(1s.5P,">* "))},3F:o(a){t q.3G[a]||(q.3G[a]=q.2u(q.1e(q.3H(a))))},2u:o(c){u d=q.5I;t c.D(/\\5L(\\d+)/g,o(a,b){t d[b-1]})}},{5K:/(["\'])[^\\1]*\\1/g,5O:/([\\s>+~,]|[^(]\\+|^)([#.:@])/g,5N:/(^|,)([^\\s>+~])/g,5M:/\\s*([\\s>+~(),]|^|$)\\s*/g,5P:/\\s\\*\\s/g,2a:o(c,d,e,f,g,h,i,j){f=/1k/i.P(c)?f+"+1-":"";v(!isNaN(d))d="0n+"+d;E v(d=="even")d="2n";E v(d=="odd")d="2n+1";d=d.1y(/n\\+?/);u a=d[0]?(d[0]=="-")?-1:4a(d[0]):1;u b=4a(d[1])||0;u g=a<0;v(g){a=-a;v(a==1)b++}u l=H(a==0?"%3%7"+(f+b):"(%4%3-%2)%6%1%70%5%4%3>=%2",a,b,e,f,h,i,j);v(g)l=g+"("+l+")";t l}});Y.4A={"=":"%1==\'%2\'","!=":"%1!=\'%2\'","~=":/(^| )%1( |$)/,"|=":/^%1(-|$)/,"^=":/^%1/,"$=":/%1$/,"*=":/%1/};Y.4A[""]="%1!=I";Y.1t={"3I":"e%1.3I","17":"e%1[T.$2K].25(\'%2\')!=-1","2P":"e%1.2P","5Q":"T.5o(e%1)","4B":"e%1.2P===L","4C-Z":"!T.4o(e%1)","1k-Z":"!T.3w(e%1)","2Q-Z":"!T.4o(e%1)&&!T.3w(e%1)","4D":"e%1==T.2q(e%1).4q"};C o(1w){u 2b=1h("2b");u 2R=1h("2R");u 5R=1h("(1l.3J)");u 4E="u p%2=0,i%2,e%2,n%2=e%1.";u 34=5R?"e%1.3J":"1M(e%1)";u 5S="u g="+34+";v(!p[g]){p[g]=1;";u 5T="r[r.B]=e%1;v(s)t e%1;";u 5U="1Q=o(5V,s){2v++;u r=[],p={},1u=[%1],"+"d=T.2q(5V),c=d.body?\'3n\':\'1X\';";u 5W=2b?o(a,b){u c=a.1B[b]||I;v(!c||c.2M==b)t c;13(u i=0;i<c.B;i++){v(c[i].2M==b)t c[i]}t I}:o(a,b){t a.getElementById(b)};u 2v=1;o 5X(a){v(a.5Y!=2v){u b=0;u c=a.5p;1o(c){v(c.1A==1&&c.29!="!"){c.5Z=++b}c=c.3x}a.60=b;a.5Y=2v}t a};u 1Q;u 1u;u W;u 12;u 1D;u 2S;u 3K={};u 2w=C 1s({"^ \\\\*:4D":o(a){12=L;u b="e%2=d.4q;v(T.17(e%1,e%2)){";t H(b,W++,W)}," (\\\\*|[\\\\w-]+)#([\\\\w-]+)":o(a,b,c){12=L;u d="u e%2=5W(d,\'%4\');v(e%2&&";v(b!="*")d+="e%2.2T==\'%3\'[c]()&&";d+="T.17(e%1,e%2)){";v(1D)d+=H("i%1=n%1.B;",1D);t H(d,W++,W,b,c)}," (\\\\*|[\\\\w-]+)":o(a,b){2S++;12=b=="*";u c=4E;c+=(12&&2R)?"1B":"getElementsByTagName(\'%3\')";c+=";13(i%2=0;(e%2=n%2[i%2]);i%2++){";t H(c,W++,1D=W,b)},">(\\\\*|[\\\\w-]+)":o(a,b){u c=2b&&1D;12=b=="*";u d=4E;d+=c?"children":"childNodes";v(!12&&c)d+=".4F(\'%3\')";d+=";13(i%2=0;(e%2=n%2[i%2]);i%2++){";v(12){d+="v(e%2.1A==1){";12=2R}E{v(!c)d+="v(e%2.2T==\'%3\'[c]()){"}t H(d,W++,1D=W,b)},"\\\\+(\\\\*|[\\\\w-]+)":o(a,b){u c="";v(12&&2b)c+="v(e%1.29!=\'!\'){";12=L;c+="e%1=T.3w(e%1);v(e%1";v(b!="*")c+="&&e%1.2T==\'%2\'[c]()";c+="){";t H(c,W,b)},"~(\\\\*|[\\\\w-]+)":o(a,b){u c="";v(12&&2b)c+="v(e%1.29!=\'!\'){";12=L;2S=2;c+="1o(e%1=e%1.3x){v(e%1.61==2v)2F;e%1.61=2v;v(";v(b=="*"){c+="e%1.1A==1";v(2R)c+="&&e%1.29!=\'!\'"}E c+="e%1.2T==\'%2\'[c]()";c+="){";t H(c,W,b)},"#([\\\\w-]+)":o(a,b){12=L;u c="v(e%1.2M==\'%2\'){";v(1D)c+=H("i%1=n%1.B;",1D);t H(c,W,b)},"\\\\.([\\\\w-]+)":o(a,b){12=L;1u.2D(C 19("(^|\\\\s)"+1L(b)+"(\\\\s|$)"));t H("v(1u[%2].P(e%1.1r)){",W,1u.B-1)},":18\\\\((\\\\*|[\\\\w-]+)?([^)]*)\\\\)":o(a,b,c){u d=(b&&b!="*")?H("v(e%1.2T==\'%2\'[c]()){",W,b):"";d+=2w.1e(c);t"v(!"+d.J(2,-1).D(/\\)\\{v\\(/g,"&&")+"){"},":2U(-1k)?-Z\\\\(([^)]+)\\\\)":o(a,b,c){12=L;b=H("e%1.2L.60",W);u d="v(p%1!==e%1.2L)";d+="p%1=5X(e%1.2L);u i=e%1.5Z;v(";t H(d,W)+1s.2a(a,c,"i",b,"!","&&","%","==")+"){"},":([\\\\w-]+)(\\\\(([^)]+)\\\\))?":o(a,b,c,d){t"v("+H(Y.1t[b],W,d||"")+"){"},"\\\\[([\\\\w-]+)\\\\s*([^=]?=)?\\\\s*([^\\\\]]*)\\\\]":o(a,b,c,d){u e=1z.$1T[b]||b;v(b=="62")e="1r";E v(b=="13")e="htmlFor";v(c){b=H("(e%1.%3||e%1.3L(\'%2\'))",W,b,e)}E{b=H("1z.3L(e%1,\'%2\')",W,b)}u f=Y.4A[c||""];v(1b(f,19)){1u.2D(C 19(H(f.3j,1L(2w.2u(d)))));f="1u[%2].P(%1)";d=1u.B-1}t"v("+H(f,b,d)+"){"}});Y.3F=o(a){v(!3K[a]){1u=[];1Q="";u b=2w.3H(a).1y(",");13(u i=0;i<b.B;i++){12=W=1D=0;2S=b.B>1?2:0;u c=2w.1e(b[i])||"1K;";v(12&&2b){c+=H("v(e%1.29!=\'!\'){",W)}u d=(2S>1)?5S:"";c+=H(d+5T,W);c+=2e(1I(c,/\\{/g).B+1).2E("}");1Q+=c}1W(H(5U,1u)+2w.2u(1Q)+"t s?I:r}");3K[a]=1Q}t 3K[a]}};u 2o=1s.x({V:o(){q.y(2o.4G);q.2O.55(1,"$1$4$3$6")},3H:o(a){t q.y(a).D(/,/g,"\\3M")},2u:o(a){t q.y(a.D(/\\[2V::\\*\\]/g,"").D(/(^|\\3M)\\//g,"$1./").D(/\\3M/g," | "))},"@63":{2u:o(a){t q.y(a.D(/1k\\(\\)/g,"2j(3N-1E::*)+2j(2W-1E::*)+1"))}}},{14:o(){q.2X.1T[""]="[@$1]";F(q.64,o(a,b){F(q.2X[b],a,q.4G)},q)},3O:{1t:{"4C-Z":"[1]","1k-Z":"[1k()]","2Q-Z":"[1k()=1]"}},4G:x({},{"@!4w":{"(^|\\\\3M) (\\\\*|[\\\\w-]+)#([\\\\w-]+)":"$1id(\'$3\')[2V::$2]","([ >])(\\\\*|[\\\\w-]+):([\\\\w-]+-Z(\\\\(([^)]+)\\\\))?)":o(a,b,c,d,e,f){u g=(b==" ")?"//*":"/*";v(/^2U/i.P(d)){g+=2a(d,f,"position()")}E{g+=2o.3O.1t[d]}t g+"[2V::"+c+"]"}}}),64:{65:o(a,b){q[1L(b)+"([\\\\w-]+)"]=a},66:o(a,b){q[1L(b)+"(\\\\*|[\\\\w-]+)"]=a},1T:o(a,b){q["\\\\[([\\\\w-]+)\\\\s*"+1L(b)+"\\\\s*([^\\\\]]*)\\\\]"]=a},1t:o(a,b){q[":"+b.D(/\\(\\)$/,"\\\\(([^)]+)\\\\)")]=a}},2X:{65:{"#":"[@2M=\'$1\'][1]",".":"[17(1n(\' \', at 62,\' \'),\' $1 \')]"},66:{" ":"/descendant::$1",">":"/Z::$1","+":"/2W-1E::*[1][2V::$1]","~":"/2W-1E::$1"},1T:{"*=":"[17(@$1,\'$2\')]","^=":"[starts-with(@$1,\'$2\')]","$=":"[5e(@$1,27-B(@$1)-27-B(\'$2\')+1)=\'$2\']","~=":"[17(1n(\' \',@$1,\' \'),\' $2 \')]","|=":"[17(1n(\'-\',@$1,\'-\'),\'-$2-\')]","!=":"[18(@$1=\'$2\')]","=":"[@$1=\'$2\']"},1t:{"5Q":"[18(Z::*) 3P 18(text())]","4C-Z":"[18(3N-1E::*)]","1k-Z":"[18(2W-1E::*)]","18()":68,"2U-Z()":2a,"2U-1k-Z()":2a,"2Q-Z":"[18(3N-1E::*) 3P 18(2W-1E::*)]","4D":"[18(parent::*)]"}},"@63":{14:o(){q.3O.1t["1k-Z"]=q.2X.1t["1k-Z"];q.3O.1t["2Q-Z"]=q.2X.1t["2Q-Z"];q.y()}}});o 68(a,b){u c=C 2o;t"[18("+c.1e(2k(b)).D(/\\[1\\]/g,"").D(/^(\\*|[\\w-]+)/,"[2V::$1]").D(/\\]\\[/g," 3P ").J(1,-1)+")]"};o 2a(a,b,c){t"["+1s.2a(a,b,c||"2j(3N-1E::*)+1","1k()","18"," 3P "," mod ","=")+"]"};Y.1a({2Y:o(){t Y.2Y(q)},"@(5F)":{$2N:o(a,b){v(Y.$2Z.P(q)){t q.y(a,b)}u c=T.2q(a);u d=b?9:7;u e=c.2N(q.2Y(),a,I,d,I);t b?e.singleNodeValue:e}},"@1m":{$2N:o(a,b){v(G a.69!="1j"&&!Y.$2Z.P(q)){u c=b?"selectSingleNode":"69";t a[c](q.2Y())}t q.y(a,b)}}});x(Y,{3Q:I,2Y:o(a){v(!q.3Q)q.3Q=C 2o;t q.3Q.3F(a)},$2Z:/:(3I|2P|4B|17)|^(#[\\w-]+\\s*)?\\w+$/,"@4w":{$2Z:/:(3I|2P|4B|17)|^(#[\\w-]+\\s*)?\\w+$|2U\\-/,"@!WebKit5":{$2Z:/./}}});u 28=3u.x({"@!(1l.6a)":{6a:o(a,b){v(T.17(a,b)){t 4|16}E v(T.17(b,a)){t 2|8}u c=28.3R(a);u d=28.3R(b);v(c<d){t 4}E v(c>d){t 2}t 0}}},{3R:o(a){u b=0;1o(a){b=T.5m(a)+"."+b;a=a.2L}t b},"@(1l.3J)":{3R:o(a){t a.3J}}});u 1O=28.x(I,{O:o(b){q.y(b);x(b,"3U",o(a){t 1N.O(q.y(a))});3q.O(b.2I);t b},"@!(10.2I)":{O:o(a){a.2I=T.3v(a);t q.y(a)}}});1O.3t("3U",2);u 1z=28.x({"@1m[67]":{3L:o(a,b,c){v(a.1r===1j||b=="6b"||b=="4v"){t q.y(a,b,2)}u d=a.getAttributeNode(b);t d&&d.6c?d.6d:I}},"@3z.+2H":{3L:o(a,b,c){v(a.1r===1j||b=="6b"||b=="4v"){t q.y(a,b,2)}u d=a.1T[q.$1T[b.4c()]||b];t d?d.6c?d.6d:I:q.y(a,b)}}},{$1T:{},"@3z.+2H":{14:o(){u a="colSpan,rowSpan,vAlign,dateTime,accessKey,tabIndex,encType,maxLength,readOnly,longDesc";u b=a.4c().1y(",");u c=a.1y(",");q.$1T=20.5b(b,c)}}});1z.3t("5H",3);3q.1a(4j);1O.1a(4h);1O.1a(3r);1O.1a(1g);1z.1a(4i);1z.1a(1g);u 4k=1O.x(I,{"@(10.4H===1j)":{O:o(b){q.y(b);b.4H=I;b.1C("focus",o(a){b.4H=a.3A},L);t b}}});u 2G=1z.x({addClass:o(a,b){v(!q.6e(a,b)){a.1r+=(a.1r?" ":"")+b;t b}},6e:o(a,b){u c=C 19("(^|\\\\s)"+b+"(\\\\s|$)");t c.P(a.1r)},removeClass:o(a,b){u c=C 19("(^|\\\\s)"+b+"(\\\\s|$)");a.1r=a.1r.D(c,"$2");t b}},{4l:{},4F:"*",x:o(){u b=y(q,A);u c=(b.4F||"").3n().1y(",");F(c,o(a){2G.4l[a]=b});t b},"@!(1l.3y)":{O:o(a){q.y(a);a.3y=T.2r(a);t a}}});1N.$=o(a,b){t C Y(a).1e(b,1)};1N.$$=o(a,b){t C Y(a).1e(b)};1W(q.1J)};',[],494,'||||||||||||||||||||||||function||this|||return|var|if||extend|base||arguments|length|new|replace|else|forEach|typeof|format|null|slice||false|prototype|Base|bind|test||String|_16|Traversal|base2|constructor|_35|apply|Selector|child|document|true|_36|for|init|call||contains|not|RegExp|implement|instanceOf|_15|case|exec|Item|EventTarget|detect|Module|undefined|last|element|MSIE|concat|while|klass|item|className|Parser|pseudoClasses|reg|name|_|copy|split|Element|nodeType|all|addEventListener|_37|sibling|delegate|callee|Function|match|exports|throw|rescape|assignID|DOM|Document|closures|fn|createEvent|DOMContentLoaded|attributes|platform|charAt|eval|toString|in|Undefined|Array2|assert|Enumerable|exists|store|indexOf|RegGrp|string|Node|tagName|_27|_28|global|error|Array|ancestor|Object|namespace|remove|count|trim|base2ID|Event||XPathParser|Interface|getDocument|getOwnerDocument|handleEvent|fire|unescape|indexed|parser|_10|delete|Namespace|reduce|StopIteration|map|push|join|break|HTMLElement|win|defaultView|isElement|TEXT|parentNode|id|evaluate|sorter|disabled|only|_29|_38|nodeName|nth|self|following|values|toXPath|NOT_XPATH|java|navigator|try|catch|_1|valueOf|ancestorOf|__prototyping|imports|_14|Hash|add|Math|switch|removeAt|sort|create|ignoreCase|object|source|partial|splice|_19|toUpperCase|unbind|type|AbstractView|DocumentEvent|StaticNodeList|createDelegate|Binding|getDefaultView|getNextElementSibling|nextSibling|ownerDocument|MSIE5|target|dispatchEvent|listener|fired|NodeSelector|parse|cache|escape|checked|sourceIndex|_39|getAttribute|x02|preceding|optimised|and|xpathParser|_41|cc_on|_jscript_version|createElement|_0|_2|_7|_12|__constructing|addName|Abstract|_13|merge|Collection|insertAt|default|reverse|replacement|number|parseInt|_18|toLowerCase|assertType|_20|_21|_22|DocumentSelector|ElementSelector|ViewCSS|HTMLDocument|bindings|attachEvent|continue|getPreviousElementSibling|isDocument|documentElement|initEvent|cancelable|returnValue|Events|src|KHTML|matchAll|matchSingle|b2_test|operators|enabled|first|root|_31|tags|rules|activeElement|version|alpha|jscript|gi|_4|_5|_6|_8|_9|_11|TypeError|every|Legacy|end|fetch|Duplicate|key|fetchAt|abs|Index|out|of|bounds|storeAt||Number|IGNORE|_17|index|combine|max|lastIndexOf|substring|Error|Invalid|assertArity|SyntaxError|_23|_24|_25|getNodeIndex|previousSibling|isEmpty|firstChild|parentWindow|bubbles|cancelBubble|preventDefault|on|event|createEventObject|load|script|__ready|readyState|complete|getComputedStyle|getElementsByClassName|matchesSelector|XPathResult|snapshotItem|setAttribute|_26|optimise|ESCAPE|x01|WHITESPACE|IMPLIED_SPACE|IMPLIED_ASTERISK|WILD_CARD|empty|_30|_32|_33|_34|e0|byId|register|b2_indexed|b2_index|b2_length|b2_adjacent|class|opera|types|identifiers|combinators||_40|selectNodes|compareDocumentPosition|href|specified|nodeValue|hasClass'.split('|'),0,{}));
\ No newline at end of file
+var base2={name:"base2",version:"1.0 (beta 2)",exports:"Base,Package,Abstract,Module,Enumerable,Map,Collection,RegGrp,"+"assert,assertArity,assertType,assignID,copy,detect,extend,"+"forEach,format,global,instanceOf,match,rescape,slice,trim,typeOf,"+"I,K,Undefined,Null,True,False,bind,delegate,flip,not,unbind",global:this,detect:new function(_){var global=_;var jscript=NaN/*@cc_on||@_jscript_version@*/;var java=_.java?true:false;if(_.navigator){var MSIE=/MSIE[\d.]+/g;var element=document.createElement("span");var userAgent=navigator.userAgent.replace(/([a-z])[\s\/](\d)/gi,"$1$2");if(!jscript)userAgent=userAgent.replace(MSIE,"");if(MSIE.test(userAgent))userAgent=userAgent.match(MSIE)[0]+" "+userAgent.replace(MSIE,"");userAgent=navigator.platform+" "+userAgent;java&=navigator.javaEnabled()}return function(a){var r=false;var b=a.charAt(0)=="!";if(b)a=a.slice(1);if(a.charAt(0)=="("){try{eval("r=!!"+a)}catch(e){}}else{r=new RegExp("("+a+")","i").test(userAgent)}return!!(b^r)}}(this)};new function(_){var _0="function base(o,a){return o.base.apply(o,a)};";eval(_0);var detect=base2.detect;var Undefined=K(),Null=K(null),True=K(true),False=K(false);var _1=/%([1-9])/g;var _2=/^\s\s*/;var _3=/\s\s*$/;var _4=/([\/()[\]{}|*+-.,^$?\\])/g;var _5=/eval/.test(detect)?/\bbase\s*\(/:/.*/;var _6=["constructor","toString","valueOf"];var _7=detect("(jscript)")?new RegExp("^"+rescape(isNaN).replace(/isNaN/,"\\w+")+"$"):{test:False};var _8=1;var _9=Array.prototype.slice;var slice=Array.slice||function(a){return _9.apply(a,_9.call(arguments,1))};_10();var _11=function(a,b){base2.__prototyping=this.prototype;var c=new this;extend(c,a);delete base2.__prototyping;var d=c.constructor;function e(){if(!base2.__prototyping){if(this.constructor==arguments.callee||this.__constructing){this.__constructing=true;d.apply(this,arguments);delete this.__constructing}else{return extend(arguments[0],c)}}return this};c.constructor=e;for(var i in Base)e[i]=this[i];e.ancestor=this;e.base=Undefined;e.init=Undefined;extend(e,b);e.prototype=c;e.init();return e};var Base=_11.call(Object,{constructor:function(){if(arguments.length>0){this.extend(arguments[0])}},base:function(){},extend:delegate(extend)},Base={ancestorOf:delegate(_12),extend:_11,forEach:delegate(_10),implement:function(a){if(typeof a=="function"){if(_12(Base,a)){a(this.prototype)}}else{extend(this.prototype,a)}return this}});var Package=Base.extend({constructor:function(d,e){this.extend(e);if(this.init)this.init();if(this.name!="base2"){if(!this.parent)this.parent=base2;this.parent.addName(this.name,this);this.namespace=format("var %1=%2;",this.name,String(this).slice(1,-1))}var f=/[^\s,]+/g;if(d){d.imports=Array2.reduce(this.imports.match(f),function(a,b){eval("var ns=base2."+b);assert(ns,format("Package not found: '%1'.",b),ReferenceError);return a+=ns.namespace},_0+base2.namespace+JavaScript.namespace);d.exports=Array2.reduce(this.exports.match(f),function(a,b){var c=this.name+"."+b;this.namespace+="var "+b+"="+c+";";return a+="if(!"+c+")"+c+"="+b+";"},"",this)}},exports:"",imports:"",name:"",namespace:"",parent:null,addName:function(a,b){if(!this[a]){this[a]=b;this.exports+=","+a;this.namespace+=format("var %1=%2.%1;",a,this.name)}},addPackage:function(a){this.addName(a,new Package(null,{name:a,parent:this}))},toString:function(){return format("[%1]",this.parent?String(this.parent).slice(1,-1)+"."+this.name:this.name)}});var Abstract=Base.extend({constructor:function(){throw new TypeError("Class cannot be instantiated.");}});var Module=Abstract.extend(null,{extend:function(a,b){var c=this.base();c.implement(this);c.implement(a);extend(c,b);c.init();return c},implement:function(d){var e=this;if(typeof d=="function"){if(!_12(d,e)){this.base(d)}if(_12(Module,d)){forEach(d,function(a,b){if(!e[b]){if(typeof a=="function"&&a.call&&d.prototype[b]){a=function(){return d[b].apply(d,arguments)}}e[b]=a}})}}else{extend(e,d);_10(Object,d,function(b,c){if(c.charAt(0)=="@"){if(detect(c.slice(1))){forEach(b,arguments.callee)}}else if(typeof b=="function"&&b.call){e.prototype[c]=function(){var a=_9.call(arguments);a.unshift(this);return e[c].apply(e,a)}}})}return e}});var Enumerable=Module.extend({every:function(c,d,e){var f=true;try{this.forEach(c,function(a,b){f=d.call(e,a,b,c);if(!f)throw StopIteration;})}catch(error){if(error!=StopIteration)throw error;}return!!f},filter:function(d,e,f){var i=0;return this.reduce(d,function(a,b,c){if(e.call(f,b,c,d)){a[i++]=b}return a},[])},invoke:function(b,c){var d=_9.call(arguments,2);return this.map(b,(typeof c=="function")?function(a){return(a==null)?undefined:c.apply(a,d)}:function(a){return(a==null)?undefined:a[c].apply(a,d)})},map:function(c,d,e){var f=[],i=0;this.forEach(c,function(a,b){f[i++]=d.call(e,a,b,c)});return f},pluck:function(b,c){return this.map(b,function(a){return(a==null)?undefined:a[c]})},reduce:function(c,d,e,f){var g=arguments.length>2;this.forEach(c,function(a,b){if(g){e=d.call(f,e,a,b,c)}else{e=a;g=true}});return e},some:function(a,b,c){return!this.every(a,not(b),c)}},{forEach:forEach});var _13="#";var Map=Base.extend({constructor:function(a){this.merge(a)},copy:delegate(copy),forEach:function(a,b){for(var c in this)if(c.charAt(0)==_13){a.call(b,this[c],c.slice(1),this)}},get:function(a){return this[_13+a]},getKeys:function(){return this.map(flip(I))},getValues:function(){return this.map(I)},has:function(a){/*@cc_on@*//*@if(@_14<5.5)return $Legacy.has(this,_13+a);@else@*/return _13+a in this;/*@end@*/},merge:function(b){var c=flip(this.put);forEach(arguments,function(a){forEach(a,c,this)},this);return this},remove:function(a){delete this[_13+a]},put:function(a,b){if(arguments.length==1)b=a;this[_13+a]=b},size:function(){var a=0;for(var b in this)if(b.charAt(0)==_13)a++;return a},union:function(a){return this.merge.apply(this.copy(),arguments)}});Map.implement(Enumerable);var _15="~";var Collection=Map.extend({constructor:function(a){this[_15]=new Array2;this.base(a)},add:function(a,b){assert(!this.has(a),"Duplicate key '"+a+"'.");this.put.apply(this,arguments)},copy:function(){var a=this.base();a[_15]=this[_15].copy();return a},forEach:function(a,b){var c=this[_15];var d=c.length;for(var i=0;i<d;i++){a.call(b,this[_13+c[i]],c[i],this)}},getAt:function(a){if(a<0)a+=this[_15].length;var b=this[_15][a];return(b===undefined)?undefined:this[_13+b]},getKeys:function(){return this[_15].concat()},indexOf:function(a){return this[_15].indexOf(String(a))},insertAt:function(a,b,c){assert(Math.abs(a)<this[_15].length,"Index out of bounds.");assert(!this.has(b),"Duplicate key '"+b+"'.");this[_15].insertAt(a,String(b));this[_13+b]==null;this.put.apply(this,_9.call(arguments,1))},item:function(a){return this[typeof a=="number"?"getAt":"get"](a)},put:function(a,b){if(arguments.length==1)b=a;if(!this.has(a)){this[_15].push(String(a))}var c=this.constructor;if(c.Item&&!instanceOf(b,c.Item)){b=c.create.apply(c,arguments)}this[_13+a]=b},putAt:function(a,b){assert(Math.abs(a)<this[_15].length,"Index out of bounds.");arguments[0]=this[_15].item(a);this.put.apply(this,arguments)},remove:function(a){if(this.has(a)){this[_15].remove(String(a));delete this[_13+a]}},removeAt:function(a){var b=this[_15].removeAt(a);delete this[_13+b]},reverse:function(){this[_15].reverse();return this},size:function(){return this[_15].length},sort:function(c){if(c){var d=this;this[_15].sort(function(a,b){return c(d[_13+a],d[_13+b],a,b)})}else this[_15].sort();return this},toString:function(){return String(this[_15])}},{Item:null,create:function(a,b){return this.Item?new this.Item(a,b):b},extend:function(a,b){var c=this.base(a);c.create=this.create;extend(c,b);if(!c.Item){c.Item=this.Item}else if(typeof c.Item!="function"){c.Item=(this.Item||Base).extend(c.Item)}c.init();return c}});var _16=/\\(\d+)/g,_17=/\\./g,_18=/\(\?[:=!]|\[[^\]]+\]/g,_19=/\(/g,_20=/\$(\d+)/,_21=/^\$\d+$/;var RegGrp=Collection.extend({constructor:function(a,b){this.base(a);if(typeof b=="string"){this.global=/g/.test(b);this.ignoreCase=/i/.test(b)}},global:true,ignoreCase:false,exec:function(f,g){var h=(this.global?"g":"")+(this.ignoreCase?"i":"");f=String(f)+"";if(arguments.length==1){var j=this;var k=this[_15];g=function(a){if(a){var b,c=1,i=0;while((b=j[_13+k[i++]])){var d=c+b.length+1;if(arguments[c]){var e=b.replacement;switch(typeof e){case"function":return e.apply(j,_9.call(arguments,c,d));case"number":return arguments[c+e];default:return e}}c=d}}return""}}return f.replace(new RegExp(this,h),g)},insertAt:function(a,b,c){if(instanceOf(b,RegExp)){arguments[1]=b.source}return base(this,arguments)},test:function(a){return this.exec(a)!=a},toString:function(){var e=0;return"("+this.map(function(c){var d=String(c).replace(_16,function(a,b){return"\\"+(1+Number(b)+e)});e+=c.length+1;return d}).join(")|(")+")"}},{IGNORE:"$0",init:function(){forEach("add,get,has,put,remove".split(","),function(b){_22(this,b,function(a){if(instanceOf(a,RegExp)){arguments[0]=a.source}return base(this,arguments)})},this.prototype)},Item:{constructor:function(a,b){if(typeof b=="number")b=String(b);else if(b==null)b="";if(typeof b=="string"&&_20.test(b)){if(_21.test(b)){b=parseInt(b.slice(1))}else{var Q=/'/.test(b.replace(/\\./g,""))?'"':"'";b=b.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\$(\d+)/g,Q+"+(arguments[$1]||"+Q+Q+")+"+Q);b=new Function("return "+Q+b.replace(/(['"])\1\+(.*)\+\1\1$/,"$1")+Q)}}this.length=RegGrp.count(a);this.replacement=b;this.toString=K(String(a))},length:0,replacement:""},count:function(a){a=String(a).replace(_17,"").replace(_18,"");return match(a,_19).length}});var JavaScript={name:"JavaScript",version:base2.version,exports:"Array2,Date2,String2",namespace:"",bind:function(c){forEach(this.exports.match(/\w+/g),function(a){var b=a.slice(0,-1);extend(c[b],this[a]);this[a](c[b].prototype)},this);return this}};if((new Date).getYear()>1900){Date.prototype.getYear=function(){return this.getFullYear()-1900};Date.prototype.setYear=function(a){return this.setFullYear(a+1900)}}Function.prototype.prototype={};if("".replace(/^/,K("$$"))=="$"){extend(String.prototype,"replace",function(a,b){if(typeof b=="function"){var c=b;b=function(){return String(c.apply(null,arguments)).split("$").join("$$")}}return this.base(a,b)})}var Array2=_23(Array,Array,"concat,join,pop,push,reverse,shift,slice,sort,splice,unshift",[Enumerable,{combine:function(d,e){if(!e)e=d;return this.reduce(d,function(a,b,c){a[b]=e[c];return a},{})},contains:function(a,b){return this.indexOf(a,b)!=-1},copy:function(a){var b=_9.call(a);if(!b.swap)this(b);return b},flatten:function(c){var d=0;return this.reduce(c,function(a,b){if(this.like(b)){this.reduce(b,arguments.callee,a,this)}else{a[d++]=b}return a},[],this)},forEach:_24,indexOf:function(a,b,c){var d=a.length;if(c==null){c=0}else if(c<0){c=Math.max(0,d+c)}for(var i=c;i<d;i++){if(a[i]===b)return i}return-1},insertAt:function(a,b,c){this.splice(a,b,0,c);return c},item:function(a,b){if(b<0)b+=a.length;return a[b]},lastIndexOf:function(a,b,c){var d=a.length;if(c==null){c=d-1}else if(c<0){c=Math.max(0,d+c)}for(var i=c;i>=0;i--){if(a[i]===b)return i}return-1},map:function(c,d,e){var f=[];this.forEach(c,function(a,b){f[b]=d.call(e,a,b,c)});return f},remove:function(a,b){var c=this.indexOf(a,b);if(c!=-1)this.removeAt(a,c);return b},removeAt:function(a,b){return this.splice(a,b,1)},swap:function(a,b,c){if(b<0)b+=a.length;if(c<0)c+=a.length;var d=a[b];a[b]=a[c];a[c]=d;return a}}]);Array2.reduce=Enumerable.reduce;Array2.like=function(a){return!!(a&&typeof a=="object"&&typeof a.length=="number")};var _25=/^((-\d+|\d{4,})(-(\d{2})(-(\d{2}))?)?)?T((\d{2})(:(\d{2})(:(\d{2})(\.(\d{1,3})(\d)?\d*)?)?)?)?(([+-])(\d{2})(:(\d{2}))?|Z)?$/;var _26={FullYear:2,Month:4,Date:6,Hours:8,Minutes:10,Seconds:12,Milliseconds:14};var _27={Hectomicroseconds:15,UTC:16,Sign:17,Hours:18,Minutes:20};var _28=/(((00)?:0+)?:0+)?\.0+$/;var _29=/(T[0-9:.]+)$/;var Date2=_23(Date,function(a,b,c,h,m,s,d){switch(arguments.length){case 0:return new Date;case 1:return new Date(a);default:return new Date(a,b,arguments.length==2?1:c,h||0,m||0,s||0,d||0)}},"",[{toISOString:function(c){var d="####-##-##T##:##:##.###";for(var e in _26){d=d.replace(/#+/,function(a){var b=c["getUTC"+e]();if(e=="Month")b++;return("000"+b).slice(-a.length)})}return d.replace(_28,"").replace(_29,"$1Z")}}]);Date2.now=function(){return(new Date).valueOf()};Date2.parse=function(a,b){if(arguments.length>1){assertType(b,"number","defaultDate should be of type 'number'.")}var c=String(a).match(_25);if(c){if(c[_26.Month])c[_26.Month]--;if(c[_27.Hectomicroseconds]>=5)c[_26.Milliseconds]++;var d=new Date(b||0);var e=c[_27.UTC]||c[_27.Hours]?"UTC":"";for(var f in _26){var g=c[_26[f]];if(!g)continue;d["set"+e+f](g);if(d["get"+e+f]()!=c[_26[f]]){return NaN}}if(c[_27.Hours]){var h=Number(c[_27.Sign]+c[_27.Hours]);var i=Number(c[_27.Sign]+(c[_27.Minutes]||0));d.setUTCMinutes(d.getUTCMinutes()+(h*60)+i)}return d.valueOf()}else{return Date.parse(a)}};var String2=_23(String,function(a){return new String(arguments.length==0?"":a)},"charAt,charCodeAt,concat,indexOf,lastIndexOf,match,replace,search,slice,split,substr,substring,toLowerCase,toUpperCase",[{trim:trim}]);function _23(c,constructor,d,e){var f=Module.extend();forEach(d.match(/\w+/g),function(a){f[a]=unbind(c.prototype[a])});forEach(e,f.implement,f);var g=function(){return f(this.constructor==f?constructor.apply(null,arguments):arguments[0])};g.prototype=f.prototype;forEach(f,function(a,b){if(c[b]){f[b]=c[b];delete f.prototype[b]}g[b]=f[b]});g.ancestor=Object;delete g.extend;if(c!=Array)delete g.forEach;return g};function extend(a,b){if(a&&b){if(arguments.length>2){var c=b;b={};b[c]=arguments[2]}var d=(typeof b=="function"?Function:Object).prototype;var i=_6.length,c;if(base2.__prototyping){while(c=_6[--i]){var e=b[c];if(e!=d[c]){if(_5.test(e)){_22(a,c,e)}else{a[c]=e}}}}for(c in b){if(d[c]===undefined){var e=b[c];if(c.charAt(0)=="@"){if(detect(c.slice(1)))arguments.callee(a,e);continue}var f=a[c];if(f&&typeof e=="function"){if(e!=f&&(!f.method||!_12(e,f))){if(_5.test(e)){_22(a,c,e)}else{e.ancestor=f;a[c]=e}}}else{a[c]=e}}}}return a};function _12(a,b){while(b){if(!b.ancestor)return false;b=b.ancestor;if(b==a)return true}return false};function _22(c,d,e){var f=c[d];var g=base2.__prototyping;if(g&&f!=g[d])g=null;function h(){var a=this.base;this.base=g?g[d]:f;var b=e.apply(this,arguments);this.base=a;return b};h.ancestor=f;c[d]=h};if(typeof StopIteration=="undefined"){StopIteration=new Error("StopIteration")}function forEach(a,b,c,d){if(a==null)return;if(!d){if(typeof a=="function"&&a.call){d=Function}else if(typeof a.forEach=="function"&&a.forEach!=arguments.callee){a.forEach(b,c);return}else if(typeof a.length=="number"){_24(a,b,c);return}}_10(d||Object,a,b,c)};function _24(a,b,c){if(a==null)return;var d=a.length,i;if(typeof a=="string"){for(i=0;i<d;i++){b.call(c,a.charAt(i),i,a)}}else{for(i=0;i<d;i++){/*@cc_on@*//*@if(@_14<5.2)if($Legacy.has(a,i))@else@*/if(i in a)/*@end@*/b.call(c,a[i],i,a)}}};function _10(g,h,j,k){var l=function(){this.i=1};l.prototype={i:1};var m=0;for(var i in new l)m++;_10=(m>1)?function(a,b,c,d){var e={};for(var f in b){if(!e[f]&&a.prototype[f]===undefined){e[f]=true;c.call(d,b[f],f,b)}}}:function(a,b,c,d){for(var e in b){if(a.prototype[e]===undefined){c.call(d,b[e],e,b)}}};_10(g,h,j,k)};function typeOf(a){var b=typeof a;switch(b){case"object":return a===null?"null":typeof a.call=="function"||_7.test(a)?"function":b;case"function":return typeof a.call=="function"?b:"object";default:return b}};function instanceOf(a,b){if(typeof b!="function"){throw new TypeError("Invalid 'instanceOf' operand.");}if(a==null)return false;/*@cc_on if(typeof a.constructor!="function"){return typeOf(a)==typeof b.prototype.valueOf()}@*//*@if(@_14<5.1)if($Legacy.instanceOf(a,b))return true;@else@*/if(a instanceof b)return true;/*@end@*/if(Base.ancestorOf==b.ancestorOf)return false;if(Base.ancestorOf==a.constructor.ancestorOf)return b==Object;switch(b){case Array:return!!(typeof a=="object"&&a.join&&a.splice);case Function:return typeOf(a)=="function";case RegExp:return typeof a.constructor.$1=="string";case Date:return!!a.getTimezoneOffset;case String:case Number:case Boolean:return typeof a==typeof b.prototype.valueOf();case Object:return true}return false};function assert(a,b,c){if(!a){throw new(c||Error)(b||"Assertion failed.");}};function assertArity(a,b,c){if(b==null)b=a.callee.length;if(a.length<b){throw new SyntaxError(c||"Not enough arguments.");}};function assertType(a,b,c){if(b&&(typeof b=="function"?!instanceOf(a,b):typeOf(a)!=b)){throw new TypeError(c||"Invalid type.");}};function assignID(a){if(!a.base2ID)a.base2ID="b2_"+_8++;return a.base2ID};function copy(a){var b=function(){};b.prototype=a;return new b};function format(c){var d=arguments;var e=new RegExp("%([1-"+arguments.length+"])","g");return String(c).replace(e,function(a,b){return d[b]})};function match(a,b){return String(a).match(b)||[]};function rescape(a){return String(a).replace(_4,"\\$1")};function trim(a){return String(a).replace(_2,"").replace(_3,"")};function I(i){return i};function K(k){return function(){return k}};function bind(a,b){var c=_9.call(arguments,2);return c.length==0?function(){return a.apply(b,arguments)}:function(){return a.apply(b,c.concat.apply(c,arguments))}};function delegate(b,c){return function(){var a=_9.call(arguments);a.unshift(this);return b.apply(c,a)}};function flip(a){return function(){return a.apply(this,Array2.swap(arguments,0,1))}};function not(a){return function(){return!a.apply(this,arguments)}};function unbind(b){return function(a){return b.apply(a,_9.call(arguments,1))}};base2=new Package(this,base2);eval(this.exports);base2.extend=extend;forEach(Enumerable,function(a,b){if(!Module[b])base2.addName(b,bind(a,Enumerable))});JavaScript=new Package(this,JavaScript);eval(this.exports)};new function(_){var DOM=new base2.Package(this,{name:"DOM",version:"1.0 (beta 2)",exports:"Interface,Binding,Node,Document,Element,AbstractView,HTMLDocument,HTMLElement,"+"Selector,Traversal,XPathParser,NodeSelector,DocumentSelector,ElementSelector,"+"StaticNodeList,Event,EventTarget,DocumentEvent,ViewCSS,CSSStyleDeclaration",bind:function(a){if(a&&a.nodeType){var b=assignID(a);if(!DOM.bind[b]){switch(a.nodeType){case 1:if(typeof a.className=="string"){(HTMLElement.bindings[a.tagName]||HTMLElement).bind(a)}else{Element.bind(a)}break;case 9:if(a.writeln){HTMLDocument.bind(a)}else{Document.bind(a)}break;default:Node.bind(a)}DOM.bind[b]=true}}return a},"@MSIE5.+win":{bind:function(a){if(a&&a.writeln){a.nodeType=9}return this.base(a)}}});eval(this.imports);var _30=detect("MSIE");var _31=detect("MSIE5");var Interface=Module.extend(null,{implement:function(e){var f=this;if(Interface.ancestorOf(e)){forEach(e,function(a,b){if(e[b]._32){f[b]=function(){return e[b].apply(e,arguments)}}})}else if(typeof e=="object"){this.forEach(e,function(a,b){if(b.charAt(0)=="@"){forEach(a,arguments.callee)}else if(typeof a=="function"&&a.call){if(!f[b]){var c="var fn=function _%1(%2){%3.base=%3.%1.ancestor;var m=%3.base?'base':'%1';return %3[m](%4)}";var d="abcdefghij".split("").slice(-a.length);eval(format(c,b,d,d[0],d.slice(1)));fn._32=b;f[b]=fn}}})}return this.base(e)}});var Binding=Interface.extend(null,{bind:function(a){return extend(a,this.prototype)}});var Node=Binding.extend({"@!(element.compareDocumentPosition)":{compareDocumentPosition:function(a,b){if(Traversal.contains(a,b)){return 4|16}else if(Traversal.contains(b,a)){return 2|8}var c=_33(a);var d=_33(b);if(c<d){return 4}else if(c>d){return 2}return 0}}});var _33=document.documentElement.sourceIndex?function(a){return a.sourceIndex}:function(a){var b=0;while(a){b=Traversal.getNodeIndex(a)+"."+b;a=a.parentNode}return b};var Document=Node.extend(null,{bind:function(b){extend(b,"createElement",function(a){return DOM.bind(this.base(a))});AbstractView.bind(b.defaultView);if(b!=window.document)new DOMContentLoadedEvent(b);return this.base(b)},"@!(document.defaultView)":{bind:function(a){a.defaultView=Traversal.getDefaultView(a);return this.base(a)}}});var _34=/^(href|src)$/;var _35={"class":"className","for":"htmlFor"};var Element=Node.extend({"@MSIE.+win":{getAttribute:function(a,b,c){if(a.className===undefined){return this.base(a,b)}var d=_36(a,b);if(d&&(d.specified||b=="value")){if(_34.test(b)){return this.base(a,b,2)}else if(b=="style"){return a.style.cssText}else{return d.nodeValue}}return null},setAttribute:function(a,b,c){if(a.className===undefined){this.base(a,b,c)}else if(b=="style"){a.style.cssText=c}else{c=String(c);var d=_36(a,b);if(d){d.nodeValue=c}else{this.base(a,_35[b]||b,c)}}}},"@!(element.hasAttribute)":{hasAttribute:function(a,b){return this.getAttribute(a,b)!=null}}});extend(Element.prototype,"cloneNode",function(a){var b=this.base(a||false);b.base2ID=undefined;return b});if(_30){var _37="colSpan,rowSpan,vAlign,dateTime,accessKey,tabIndex,encType,maxLength,readOnly,longDesc";extend(_35,Array2.combine(_37.toLowerCase().split(","),_37.split(",")));var _36=_31?function(a,b){return a.attributes[b]||a.attributes[_35[b.toLowerCase()]]}:function(a,b){return a.getAttributeNode(b)}}var TEXT=_30?"innerText":"textContent";var Traversal=Module.extend({getDefaultView:function(a){return this.getDocument(a).defaultView},getNextElementSibling:function(a){while(a&&(a=a.nextSibling)&&!this.isElement(a))continue;return a},getNodeIndex:function(a){var b=0;while(a&&(a=a.previousSibling))b++;return b},getOwnerDocument:function(a){return a.ownerDocument},getPreviousElementSibling:function(a){while(a&&(a=a.previousSibling)&&!this.isElement(a))continue;return a},getTextContent:function(a){return a[TEXT]},isEmpty:function(a){a=a.firstChild;while(a){if(a.nodeType==3||this.isElement(a))return false;a=a.nextSibling}return true},setTextContent:function(a,b){return a[TEXT]=b},"@MSIE":{getDefaultView:function(a){return(a.document||a).parentWindow},"@MSIE5":{getOwnerDocument:function(a){return a.ownerDocument||a.document}}}},{contains:function(a,b){while(b&&(b=b.parentNode)&&a!=b)continue;return!!b},getDocument:function(a){return this.isDocument(a)?a:this.getOwnerDocument(a)},isDocument:function(a){return!!(a&&a.documentElement)},isElement:function(a){return!!(a&&a.nodeType==1)},"@(element.contains)":{contains:function(a,b){return a!=b&&(this.isDocument(a)?a==this.getOwnerDocument(b):a.contains(b))}},"@MSIE5":{isElement:function(a){return!!(a&&a.nodeType==1&&a.nodeName!="!")}}});var AbstractView=Binding.extend();var Event=Binding.extend({"@!(document.createEvent)":{initEvent:function(a,b,c,d){a.type=b;a.bubbles=c;a.cancelable=d;a.timeStamp=new Date().valueOf()},"@MSIE":{initEvent:function(a,b,c,d){this.base(a,b,c,d);a.cancelBubble=!a.bubbles},preventDefault:function(a){if(a.cancelable!==false){a.returnValue=false}},stopPropagation:function(a){a.cancelBubble=true}}}},{"@!(document.createEvent)":{"@MSIE":{bind:function(a){if(!a.timeStamp){a.bubbles=!!_38[a.type];a.cancelable=!!_39[a.type];a.timeStamp=new Date().valueOf()}if(!a.target){a.target=a.srcElement}a.relatedTarget=a[(a.type=="mouseout"?"to":"from")+"Element"];return this.base(a)}}}});if(_30){var _38="abort,error,select,change,resize,scroll";var _39="click,mousedown,mouseup,mouseover,mousemove,mouseout,keydown,keyup,submit,reset";_38=Array2.combine((_38+","+_39).split(","));_39=Array2.combine(_39.split(","))}var EventTarget=Interface.extend({"@!(element.addEventListener)":{addEventListener:function(a,b,c,d){var e=assignID(a);var f=assignID(c);var g=_40[e];if(!g)g=_40[e]={};var h=g[b];var i=a["on"+b];if(!h){h=g[b]={};if(i)h[0]=i}h[f]=c;if(i!==undefined){a["on"+b]=_40._41}},dispatchEvent:function(a,b){return _41.call(a,b)},removeEventListener:function(a,b,c,d){var e=_40[a.base2ID];if(e&&e[b]){delete e[b][c.base2ID]}},"@(element.fireEvent)":{dispatchEvent:function(a,b){var c="on"+b.type;b.target=a;if(a[c]===undefined){return this.base(a,b)}else{return a.fireEvent(c,b)}}}}});var _40=new Base({_41:_41,"@MSIE":{_41:function(){var a=this;var b=(a.document||a).parentWindow;if(a.Infinity)a=b;return _41.call(a,b.event)}}});function _41(a){var b=true;var c=_40[this.base2ID];if(c){Event.bind(a);var d=c[a.type];for(var i in d){var listener=d[i];if(listener.handleEvent){var result=listener.handleEvent(a)}else{result=listener.call(this,a)}if(result===false||a.returnValue===false)b=false}}return b};var DocumentEvent=Interface.extend({"@!(document.createEvent)":{createEvent:function(a,b){return Event.bind({})},"@(document.createEventObject)":{createEvent:function(a,b){return Event.bind(a.createEventObject())}}},"@(document.createEvent)":{"@!(document.createEvent('Events'))":{createEvent:function(a,b){return this.base(a,b=="Events"?"UIEvents":b)}}}});var DOMContentLoadedEvent=Base.extend({constructor:function(b){var c=false;this.fire=function(){if(!c){c=true;setTimeout(function(){var a=DocumentEvent.createEvent(b,"Events");Event.initEvent(a,"DOMContentLoaded",false,false);EventTarget.dispatchEvent(b,a)},1)}};EventTarget.addEventListener(b,"DOMContentLoaded",function(){c=true},false);this.listen(b)},listen:function(a){EventTarget.addEventListener(Traversal.getDefaultView(a),"load",this.fire,false)},"@MSIE.+win":{listen:function(a){if(a.readyState!="complete"){var b=this;a.write("<script id=__ready defer src=//:><\/script>");a.all.__ready.onreadystatechange=function(){if(this.readyState=="complete"){this.removeNode();b.fire()}}}}},"@KHTML":{listen:function(a){if(a.readyState!="complete"){var b=this;var c=setInterval(function(){if(/loaded|complete/.test(a.readyState)){clearInterval(c);b.fire()}},100)}}}});new DOMContentLoadedEvent(document);Document.implement(DocumentEvent);Document.implement(EventTarget);Element.implement(EventTarget);var _42=/^\d+(px)?$/i;var _43=/(width|height|top|bottom|left|right|fontSize)$/;var _44=/^(color|backgroundColor)$/;var ViewCSS=Interface.extend({"@!(document.defaultView.getComputedStyle)":{"@MSIE":{getComputedStyle:function(a,b,c){var d=b.currentStyle;var e={};for(var i in d){if(_43.test(i)){e[i]=_45(b,e[i])+"px"}else if(_44.test(i)){e[i]=_46(b,i=="color"?"ForeColor":"BackColor")}else{e[i]=d[i]}}return e}}},getComputedStyle:function(a,b,c){return _47.bind(this.base(a,b,c))}},{toCamelCase:function(c){return c.replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})}});function _45(a,b){if(_42.test(b))return parseInt(b);var c=a.style.left;var d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b||0;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return b};function _46(a,b){var c=a.document.body.createTextRange();c.moveToElementText(a);var d=c.queryCommandValue(b);return format("rgb(%1,%2,%3)",d&0xff,(d&0xff00)>>8,(d&0xff0000)>>16)};var _47=Binding.extend({getPropertyValue:function(a,b){return this.base(a,_48[b]||b)},"@MSIE.+win":{getPropertyValue:function(a,b){return b=="float"?a.styleFloat:a[ViewCSS.toCamelCase(b)]}}});var CSSStyleDeclaration=_47.extend({setProperty:function(a,b,c,d){return this.base(a,_48[b]||b,c,d)},"@MSIE.+win":{setProperty:function(a,b,c,d){if(b=="opacity"){c*=100;a.opacity=c;a.zoom=1;a.filter="Alpha(opacity="+c+")"}else{a.setAttribute(b,c)}}}},{"@MSIE":{bind:function(a){a.getPropertyValue=this.prototype.getPropertyValue;a.setProperty=this.prototype.setProperty;return a}}});var _48=new Base({"@Gecko":{opacity:"-moz-opacity"},"@KHTML":{opacity:"-khtml-opacity"}});with(CSSStyleDeclaration.prototype)getPropertyValue.toString=setProperty.toString=function(){return"[base2]"};AbstractView.implement(ViewCSS);var NodeSelector=Interface.extend({"@!(element.querySelector)":{querySelector:function(a,b){return new Selector(b).exec(a,1)},querySelectorAll:function(a,b){return new Selector(b).exec(a)}}});extend(NodeSelector.prototype,{querySelector:function(a){return DOM.bind(this.base(a))},querySelectorAll:function(b){return extend(this.base(b),"item",function(a){return DOM.bind(this.base(a))})}});var DocumentSelector=NodeSelector.extend();var ElementSelector=NodeSelector.extend({"@!(element.matchesSelector)":{matchesSelector:function(a,b){return new Selector(b).test(a)}}});var StaticNodeList=Base.extend({constructor:function(b){b=b||[];this.length=b.length;this.item=function(a){return b[a]}},length:0,forEach:function(a,b){for(var i=0;i<this.length;i++){a.call(b,this.item(i),i,this)}},item:Undefined,"@(XPathResult)":{constructor:function(b){if(b&&b.snapshotItem){this.length=b.snapshotLength;this.item=function(a){return b.snapshotItem(a)}}else this.base(b)}}});StaticNodeList.implement(Enumerable);var _49=/'(\\.|[^'\\])*'|"(\\.|[^"\\])*"/g,_50=/([\s>+~,]|[^(]\+|^)([#.:\[])/g,_51=/(^|,)([^\s>+~])/g,_52=/\s*([\s>+~(),]|^|$)\s*/g,_53=/\s\*\s/g,_54=/\x01(\d+)/g,_55=/'/g;var CSSParser=RegGrp.extend({constructor:function(a){this.base(a);this.cache={};this.sorter=new RegGrp;this.sorter.add(/:not\([^)]*\)/,RegGrp.IGNORE);this.sorter.add(/([ >](\*|[\w-]+))([^: >+~]*)(:\w+-child(\([^)]+\))?)([^: >+~]*)/,"$1$3$6$4")},cache:null,ignoreCase:true,escape:function(b){var c=this._56=[];return this.optimise(this.format(String(b).replace(_49,function(a){return"\x01"+c.push(a.slice(1,-1).replace(_55,"\\'"))})))},format:function(a){return a.replace(_52,"$1").replace(_51,"$1 $2").replace(_50,"$1*$2")},optimise:function(a){return this.sorter.exec(a.replace(_53,">* "))},parse:function(a){return this.cache[a]||(this.cache[a]=this.unescape(this.exec(this.escape(a))))},unescape:function(c){var d=this._56;return c.replace(_54,function(a,b){return d[b-1]})}});function _57(c,d,e,f,g,h,i,j){f=/last/i.test(c)?f+"+1-":"";if(!isNaN(d))d="0n+"+d;else if(d=="even")d="2n";else if(d=="odd")d="2n+1";d=d.split("n");var a=d[0]?(d[0]=="-")?-1:parseInt(d[0]):1;var b=parseInt(d[1])||0;var k=a<0;if(k){a=-a;if(a==1)b++}var l=format(a==0?"%3%7"+(f+b):"(%4%3-%2)%6%1%70%5%4%3>=%2",a,b,e,f,h,i,j);if(k)l=g+"("+l+")";return l};var XPathParser=CSSParser.extend({constructor:function(){this.base(XPathParser.rules);this.sorter.putAt(1,"$1$4$3$6")},escape:function(a){return this.base(a).replace(/,/g,"\x02")},unescape:function(b){return this.base(b.replace(/\[self::\*\]/g,"").replace(/(^|\x02)\//g,"$1./").replace(/\x02/g," | ")).replace(/'[^'\\]*\\'(\\.|[^'\\])*'/g,function(a){return"concat("+a.split("\\'").join("',\"'\",'")+")"})},"@opera":{unescape:function(a){return this.base(a.replace(/last\(\)/g,"count(preceding-sibling::*)+count(following-sibling::*)+1"))}}},{init:function(){this.values.attributes[""]="[@$1]";forEach(this.types,function(a,b){forEach(this.values[b],a,this.rules)},this)},optimised:{pseudoClasses:{"first-child":"[1]","last-child":"[last()]","only-child":"[last()=1]"}},rules:extend({},{"@!KHTML":{"(^|\\x02) (\\*|[\\w-]+)#([\\w-]+)":"$1id('$3')[self::$2]","([ >])(\\*|[\\w-]+):([\\w-]+-child(\\(([^)]+)\\))?)":function(a,b,c,d,e,f){var g=(b==" ")?"//*":"/*";if(/^nth/i.test(d)){g+=_58(d,f,"position()")}else{g+=XPathParser.optimised.pseudoClasses[d]}return g+"[self::"+c+"]"}}}),types:{identifiers:function(a,b){this[rescape(b)+"([\\w-]+)"]=a},combinators:function(a,b){this[rescape(b)+"(\\*|[\\w-]+)"]=a},attributes:function(a,b){this["\\[([\\w-]+)\\s*"+rescape(b)+"\\s*([^\\]]*)\\]"]=a},pseudoClasses:function(a,b){this[":"+b.replace(/\(\)$/,"\\(([^)]+)\\)")]=a}},values:{identifiers:{"#":"[@id='$1'][1]",".":"[contains(concat(' ', at class,' '),' $1 ')]"},combinators:{" ":"/descendant::$1",">":"/child::$1","+":"/following-sibling::*[1][self::$1]","~":"/following-sibling::$1"},attributes:{"*=":"[contains(@$1,'$2')]","^=":"[starts-with(@$1,'$2')]","$=":"[substring(@$1,string-length(@$1)-string-length('$2')+1)='$2']","~=":"[contains(concat(' ',@$1,' '),' $2 ')]","|=":"[contains(concat('-',@$1,'-'),'-$2-')]","!=":"[not(@$1='$2')]","=":"[@$1='$2']"},pseudoClasses:{"empty":"[not(child::*) and not(text())]","first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","not()":_59,"nth-child()":_58,"nth-last-child()":_58,"only-child":"[not(preceding-sibling::*) and not(following-sibling::*)]","root":"[not(parent::*)]"}},"@opera":{init:function(){this.optimised.pseudoClasses["last-child"]=this.values.pseudoClasses["last-child"];this.optimised.pseudoClasses["only-child"]=this.values.pseudoClasses["only-child"];this.base()}}});var _60=new XPathParser;function _59(a,b){return"[not("+_60.exec(trim(b)).replace(/\[1\]/g,"").replace(/^(\*|[\w-]+)/,"[self::$1]").replace(/\]\[/g," and ").slice(1,-1)+")]"};function _58(a,b,c){return"["+_57(a,b,c||"count(preceding-sibling::*)+1","last()","not"," and "," mod ","=")+"]"};var Selector=Base.extend({constructor:function(a){this.toString=K(trim(a))},exec:function(a,b){return Selector.parse(this)(a,b)},test:function(a){var b=new Selector(this+"[b2-test]");a.setAttribute("b2-test",true);var c=b.exec(Traversal.getOwnerDocument(a),true);a.removeAttribute("b2-test");return c==a},toXPath:function(){return Selector.toXPath(this)},"@(XPathResult)":{exec:function(a,b){if(_61.test(this)){return this.base(a,b)}var c=Traversal.getDocument(a);var d=b?9:7;var e=c.evaluate(this.toXPath(),a,null,d,null);return b?e.singleNodeValue:e}},"@MSIE":{exec:function(a,b){if(typeof a.selectNodes!="undefined"&&!_61.test(this)){var c=b?"selectSingleNode":"selectNodes";return a[c](this.toXPath())}return this.base(a,b)}},"@(true)":{exec:function(a,b){try{var c=this.base(a||document,b)}catch(error){throw new SyntaxError(format("'%1' is not a valid CSS selector.",this));}return b?c:new StaticNodeList(c)}}},{toXPath:function(a){if(!_62)_62=new XPathParser;return _62.parse(a)}});var _61=":(checked|disabled|enabled|contains)|^(#[\\w-]+\\s*)?\\w+$";if(detect("KHTML")){if(detect("WebKit5")){_61+="|nth\\-|,"}else{_61="."}}_61=new RegExp(_61);var _63={"=":"%1=='%2'","!=":"%1!='%2'","~=":/(^| )%1( |$)/,"|=":/^%1(-|$)/,"^=":/^%1/,"$=":/%1$/,"*=":/%1/};_63[""]="%1!=null";var _64={"checked":"e%1.checked","contains":"e%1[TEXT].indexOf('%2')!=-1","disabled":"e%1.disabled","empty":"Traversal.isEmpty(e%1)","enabled":"e%1.disabled===false","first-child":"!Traversal.getPreviousElementSibling(e%1)","last-child":"!Traversal.getNextElementSibling(e%1)","only-child":"!Traversal.getPreviousElementSibling(e%1)&&!Traversal.getNextElementSibling(e%1)","root":"e%1==Traversal.getDocument(e%1).documentElement"};var _65=detect("(element.sourceIndex)");var _66="var p%2=0,i%2,e%2,n%2=e%1.";var _67=_65?"e%1.sourceIndex":"assignID(e%1)";var _68="var g="+_67+";if(!p[g]){p[g]=1;";var _69="r[r.length]=e%1;if(s)return e%1;";var _70="var _71=function(e0,s){_72++;var r=[],p={},reg=[%1],"+"d=Traversal.getDocument(e0),c=d.body?'toUpperCase':'toString';";var _62;var _73;var _74;var _75;var _76;var _77;var _78={};var _79=new CSSParser({"^ \\*:root":function(a){_75=false;var b="e%2=d.documentElement;if(Traversal.contains(e%1,e%2)){";return format(b,_74++,_74)}," (\\*|[\\w-]+)#([\\w-]+)":function(a,b,c){_75=false;var d="var e%2=_80(d,'%4');if(e%2&&";if(b!="*")d+="e%2.nodeName=='%3'[c]()&&";d+="Traversal.contains(e%1,e%2)){";if(_76)d+=format("i%1=n%1.length;",_76);return format(d,_74++,_74,b,c)}," (\\*|[\\w-]+)":function(a,b){_77++;_75=b=="*";var c=_66;c+=(_75&&_31)?"all":"getElementsByTagName('%3')";c+=";for(i%2=0;(e%2=n%2[i%2]);i%2++){";return format(c,_74++,_76=_74,b)},">(\\*|[\\w-]+)":function(a,b){var c=_30&&_76;_75=b=="*";var d=_66;d+=c?"children":"childNodes";if(!_75&&c)d+=".tags('%3')";d+=";for(i%2=0;(e%2=n%2[i%2]);i%2++){";if(_75){d+="if(e%2.nodeType==1){";_75=_31}else{if(!c)d+="if(e%2.nodeName=='%3'[c]()){"}return format(d,_74++,_76=_74,b)},"\\+(\\*|[\\w-]+)":function(a,b){var c="";if(_75&&_30)c+="if(e%1.nodeName!='!'){";_75=false;c+="e%1=Traversal.getNextElementSibling(e%1);if(e%1";if(b!="*")c+="&&e%1.nodeName=='%2'[c]()";c+="){";return format(c,_74,b)},"~(\\*|[\\w-]+)":function(a,b){var c="";if(_75&&_30)c+="if(e%1.nodeName!='!'){";_75=false;_77=2;c+="while(e%1=e%1.nextSibling){if(e%1.b2_adjacent==_72)break;if(";if(b=="*"){c+="e%1.nodeType==1";if(_31)c+="&&e%1.nodeName!='!'"}else c+="e%1.nodeName=='%2'[c]()";c+="){e%1.b2_adjacent=_72;";return format(c,_74,b)},"#([\\w-]+)":function(a,b){_75=false;var c="if(e%1.id=='%2'){";if(_76)c+=format("i%1=n%1.length;",_76);return format(c,_74,b)},"\\.([\\w-]+)":function(a,b){_75=false;_73.push(new RegExp("(^|\\s)"+rescape(b)+"(\\s|$)"));return format("if(e%1.className&®[%2].test(e%1.className)){",_74,_73.length-1)},":not\\((\\*|[\\w-]+)?([^)]*)\\)":function(a,b,c){var d=(b&&b!="*")?format("if(e%1.nodeName=='%2'[c]()){",_74,b):"";d+=_79.exec(c);return"if(!"+d.slice(2,-1).replace(/\)\{if\(/g,"&&")+"){"},":nth(-last)?-child\\(([^)]+)\\)":function(a,b,c){_75=false;b=format("e%1.parentNode.b2_length",_74);var d="if(p%1!==e%1.parentNode)p%1=_81(e%1.parentNode);";d+="var i=e%1[p%1.b2_lookup];if(p%1.b2_lookup!='b2_index')i++;if(";return format(d,_74)+_57(a,c,"i",b,"!","&&","%","==")+"){"},":([\\w-]+)(\\(([^)]+)\\))?":function(a,b,c,d){return"if("+format(_64[b]||"throw",_74,d||"")+"){"},"\\[([\\w-]+)\\s*([^=]?=)?\\s*([^\\]]*)\\]":function(a,b,c,d){var e=_35[b]||b;if(c){var f="e%1.getAttribute('%2',2)";if(!_34.test(b)){f="e%1.%3||"+f}b=format("("+f+")",_74,b,e)}else{b=format("Element.getAttribute(e%1,'%2')",_74,b)}var g=_63[c||""];if(instanceOf(g,RegExp)){_73.push(new RegExp(format(g.source,rescape(_79.unescape(d)))));g="reg[%2].test(%1)";d=_73.length-1}return"if("+format(g,b,d)+"){"}});new function(_){var _80=_30?function(a,b){var c=a.all[b]||null;if(!c||c.id==b)return c;for(var i=0;i<c.length;i++){if(c[i].id==b)return c[i]}return null}:function(a,b){return a.getElementById(b)};var _72=1;function _81(a){if(a.rows){a.b2_length=a.rows.length;a.b2_lookup="rowIndex"}else if(a.cells){a.b2_length=a.cells.length;a.b2_lookup="cellIndex"}else if(a.b2_indexed!=_72){var b=0;var c=a.firstChild;while(c){if(c.nodeType==1&&c.nodeName!="!"){c.b2_index=++b}c=c.nextSibling}a.b2_length=b;a.b2_lookup="b2_index"}a.b2_indexed=_72;return a};Selector.parse=function(a){if(!_78[a]){_73=[];var b="";var c=_79.escape(a).split(",");for(var i=0;i<c.length;i++){_75=_74=_76=0;_77=c.length>1?2:0;var d=_79.exec(c[i])||"throw;";if(_75&&_30){d+=format("if(e%1.nodeName!='!'){",_74)}var e=(_77>1)?_68:"";d+=format(e+_69,_74);d+=Array(match(d,/\{/g).length+1).join("}");b+=d}eval(format(_70,_73)+_79.unescape(b)+"return s?null:r}");_78[a]=_71}return _78[a]}};Document.implement(DocumentSelector);Element.implement(ElementSelector);var HTMLDocument=Document.extend(null,{"@(document.activeElement===undefined)":{bind:function(b){b.activeElement=null;EventTarget.addEventListener(b,"focus",function(a){b.activeElement=a.target},false);return this.base(b)}}});var HTMLElement=Element.extend({addClass:function(a,b){if(!this.hasClass(a,b)){a.className+=(a.className?" ":"")+b}},hasClass:function(a,b){var c=new RegExp("(^|\\s)"+b+"(\\s|$)");return c.test(a.className)},removeClass:function(a,b){var c=new RegExp("(^|\\s)"+b+"(\\s|$)","g");a.className=trim(a.className.replace(c,"$2"))},toggleClass:function(a,b){if(this.hasClass(a,b)){this.removeClass(a,b)}else{this.addClass(a,b)}}},{bindings:{},tags:"*",bind:function(a){CSSStyleDeclaration.bind(a.style);return this.base(a)},extend:function(){var b=base(this,arguments);var c=(b.tags||"").toUpperCase().split(",");forEach(c,function(a){HTMLElement.bindings[a]=b});return b},"@!(element.ownerDocument)":{bind:function(a){a.ownerDocument=Traversal.getOwnerDocument(a);return this.base(a)}}});HTMLElement.extend(null,{tags:"APPLET,EMBED",bind:I});eval(this.exports)};
\ No newline at end of file
Added: kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/CHANGES.txt
==============================================================================
--- (empty file)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/CHANGES.txt Tue Apr 15 11:35:22 2008
@@ -0,0 +1,17 @@
+Changes in the Dommer library
+=============================
+
+Version 0.4
+-----------
+
+ * Changed the unit tests so they can be ran from py.test (using some
+ new JSBase feature, currently this rules out browser testing but that
+ should be fixed later).
+
+ * Fixed some bugs in comment handling.
+
+ * Replaced my old helpers lib with a new one, which has a slightly different
+ way of defining methods (uses a module namespace). Note that this does not
+ change the dependencies, as the functionality required is copied to the
+ main lib on release creation.
+
Added: kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/LICENSE.txt
==============================================================================
--- (empty file)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/3rd_party/johnnydebris.net/dommer/LICENSE.txt Tue Apr 15 11:35:22 2008
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <