// SpryHTMLDataSet.js - version 0.24 - Spry Pre-Release 1.6.1
//
// Copyright (c) 2007. Adobe Systems Incorporated.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   * Redistributions of source code must retain the above copyright notice,
//     this list of conditions and the following disclaimer.
//   * Redistributions in binary form must reproduce the above copyright notice,
//     this list of conditions and the following disclaimer in the documentation
//     and/or other materials provided with the distribution.
//   * Neither the name of Adobe Systems Incorporated nor the names of its
//     contributors may be used to endorse or promote products derived from this
//     software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5.6.7=9(2q,p,2m){2.p=p;2.q=o;2.2S=f;2.1K=z;2.2l=f;2.w=o;2.1J=z;2.B=o;2.A=o;2.2p=z;2.2n=z;5.6.1C.2T(2,2q,2m)};5.6.7.j=l 5.6.1C();5.6.7.j.2U=5.6.7;5.6.7.j.2R=9(){3 1e=[];4(2.S)1e.1d(2.S);4(1z 2.p=="2d")1e.1d(2.p);8 1e};5.6.7.j.2B=9(1y,1x){4(1y)1y.2Q.1x=1x};5.6.7.j.2z=9(2N){4(!2.2w())8;4(!2.1v()){2.1F();4(2.1J)2.2B(2.q,"2O")}};5.6.7.j.1F=9(18){2.q=o;4(!2.p){4(18)2.q=18;E{2.1J=f;2.q=2C.2V}8}3 p=5.6.1I.1H(o,2.p,2.19);4(!2.1v())2.q=5.$(p);E 4(18){3 1D=f;3 27=5.1M.1Q(18,9(k){4(1D)8 f;4(k.1U!=1)8 f;4(k.P&&k.P.16()==p.16()){1D=z;8 z}});2.q=27[0]}4(!2.q)5.32.2M("5.6.7: \'"+p+"\' 31 30 a 2X 1Y 2Y")};5.6.7.j.2Z=9(){8 2.q};5.6.7.j.34=9(){8 2.p};5.6.7.j.2H=9(p){4(2.p!=p){2.p=p;2.2J();2.R=f}};5.6.7.j.2E=9(){8 2.A};5.6.7.j.2I=9(A){4(2.A!=A){2.A=A;2.R=f}};5.6.7.j.2F=9(){8 2.B};5.6.7.j.2K=9(B){4(2.B!=B){2.B=B;2.R=f}};5.6.7.j.2D=9(2x){3 1w=2x;1w=5.6.7.23(1w);3 10=2C.2L("10");10.P="2G"+2.33;10.1q=1w;2.1F(10);4(2.q){3 v=2.1G();4(v){2.N=v.N;2.J=v.J}}2.R=z;10=o};5.6.7.j.2w=9(){4(2.3t){3 1m=z;t(3 i=0;i<2.19.m;i++){3 1s=2.19[i];4(1s.3v())1m=f;E 4(!1s.3m()){1s.1E();1m=f}}4(!1m)8 f}8 z};5.6.7.j.1E=9(){2.3o();2.2z();3 u=2;4(!2.1v()){2.1n("2b");2.N=l Y;2.J=l D;2.R=f;2.2e=o;2.2f=0;2.1c=l Y;2.1c.3p=3l(9(){u.1c=o;3 v=u.1G();4(v){u.N=v.N;u.J=v.J}u.R=z;u.3r();u.3q();u.3u();u.1n("35");u.1n("3s")},0)}E{3 S=5.6.1I.1H(o,2.S,2.19);3 O=2.2i.O;4(O&&(1z O)=="2d")O=5.6.1I.1H(o,O,2.19);2.1n("2b");2.N=l Y;2.J=l D;2.R=f;2.2e=o;2.2f=0;3 1t=2.2i.3j();1t.S=S;1t.O=O;2.1c=l Y;2.1c.J=5.6.1C.3b.1E(1t,2,2.3k)}};5.6.7.23=9(M){M=M.G(/<(22|21|20|24|25|28)([^>]+)>/1f,9(a,b,c){8\'<\'+b+c.G(/\\b(2g|2v)\\s*=/1f,9(a,b){8\'38\'+b+\'=\'})+\'>\'});8 M};5.6.7.1o=9(M){M=M.G(/<(22|21|20|24|25|28)([^>]+)>/1f,9(a,b,c){8\'<\'+b+c.G(/\\36(2g|2v)\\s*=/1f,9(a,b){8 b+\'=\'})+\'>\'});8 M};5.6.7.2t=9(I){4(I){I=I.G(/<\\/?[a-3c-Z]+[^>]+>/g,"");I=I.G(/^[\\s]+|[\\s\\r\\n]+$/g,"");I=I.G(/[\\s\\r\\n]+/g,"3d")}8 I};5.6.7.j.1G=9(){4(!2.q)8 o;3 d;3 1i=(2.2n&&2.q.2k.16()=="3h");4(1i)d=2.2a();E d=2.29();4(!d)8 o;4(2.2l){3 1b=l D;t(3 e=0;e<d.m;e++){3 y=d[e];t(3 h=0;h<y.m;h++){4(!1b[h])1b[h]=l D;1b[h][e]=y[h]}}d=1b}3 v=l Y();v.N=l Y;v.J=l D;4(d.m==0)8 v;3 12=0;t(3 i=0;i<d.m;i++){3 1B=d[i].m;4(12<1B)12=1B}3 w=l D;3 2s=d[0];t(3 h=0;h<12;h++){4(1i&&2.1K)w[h]=5.6.7.2t(2s[h]);4(!w[h])w[h]="3e"+h}4(2.w&&2.w.m){3 2h=(12<2.w.m)?12:2.w.m;t(3 i=0;i<2h;i++){4(2.w[i])w[i]=2.w[i]}}3 2j=0;3 2u=(1i&&2.1K)?1:0;t(3 e=2u;e<d.m;e++){3 y=d[e];4(2.2p&&w.m!=y.m){39}3 14={};t(3 h=0;h<w.m;h++){3 1A=y[h];14[w[h]]=(1z 1A=="3n")?"":1A}14[\'2c\']=2j++;v.N[14[\'2c\']]=14;v.J.1d(14)}8 v};5.6.7.1W=9(1Y){3 1Z=[];3 13=1Y.3w;2o(13){4(13.1U==1)1Z.1d(13);13=13.3a}8 1Z};5.6.7.j.2a=9(){3 1k=2.q.1k;3 1P=2.q.3f[0];3 1O=[];3 1N=[];4(1k)1O=5.6.7.1W(1k);4(1P)1N=5.6.7.1W(1P);3 d=l D;3 H=1O.3g(1N);4(2.B)H=5.6.7.1R(H,2.B);t(3 e=0;e<H.m;e++){3 y=H[e];3 T;4(d[e])T=d[e];E T=l D;3 11=0;3 C=y.C;4(2.A)C=5.6.7.1R(C,2.A);t(3 x=0;x<C.m;x++){3 1j=C[x];3 L=x+11;2o(T[L]){11++;L++}3 1p=5.6.7.1o(1j.1q);T[L]=1p;3 15=1j.3i;4(15==0)15=1;3 2A=11;t(3 X=1;X<15;X++){11++;L=x+11;T[L]=1p}3 1h=1j.37;4(1h==0)1h=1;t(3 1g=1;1g<1h;1g++){1l=e+1g;3 17;4(d[1l])17=d[1l];E 17=l D;3 1L=2A;t(3 X=0;X<15;X++){L=x+1L;17[L]=1p;1L++}d[1l]=17}}d[e]=T}8 d};5.6.7.j.29=9(){3 d=l D;4(2.p&&!2.B&&!2.A){d[0]=[5.6.7.1o(2.q.1q)];8 d}3 u=2;3 H=[];4(!2.B)H=[2.q];E H=5.1M.1Q(2.q,9(k){8 5.6.7.1u(k,u.q,u.B)});t(3 e=0;e<H.m;e++){3 y=H[e];3 C=[];4(!2.A)C=[y];E C=5.1M.1Q(y,9(k){8 5.6.7.1u(k,y,u.A)});d[e]=l D;t(3 x=0;x<C.m;x++)d[e][x]=5.6.7.1o(C[x].1q)}8 d};5.6.7.1R=9(1V,1r,W){3 1X=[];t(3 Q=0;Q<1V.m;Q++){3 k=1V[Q];4(5.6.7.1u(k,W?W:k.26,1r))1X.1d(k)}8 1X};5.6.7.j.1v=9(){8 2.S!=o};5.6.7.1u=9(k,W,1r){4(k.1U!=1)8 f;4(k==W)8 f;3 1T=1r.1S(",");t(3 Q=0;Q<1T.m;Q++){3 K=1T[Q].G(/^\\s+/,"").G(/\\s+$/,"");3 U=o;3 1a=o;3 P=o;3 F=z;4(K.2y(0,1)==">"){4(k.26!=W)F=f;E K=K.2y(1).G(/^\\s+/,"")}4(F){U=K.16();4(K.2r(".")!=-1){3 V=K.1S(".");U=V[0];1a=V[1]}E 4(K.2r("#")!=-1){3 V=K.1S("#");U=V[0];P=V[1]}}4(F&&U!=\'\'&&U!=\'*\')4(k.2k.16()!=U)F=f;4(F&&P&&k.P!=P)F=f;4(F&&1a&&k.1a.2W(l 2P(\'\\\\b\'+1a+\'\\\\b\',\'i\'))==-1)F=f;4(F)8 z}8 f};',62,219,'||this|var|if|Spry|Data|HTMLDataSet|return|function||||extractedData|rowIdx|false||colIdx||prototype|node|new|length||null|sourceElementID|sourceElement|||for|self|parsedStructure|columnNames|cellIdx|row|true|dataSelector|rowSelector|cells|Array|else|selected|replace|rows|colName|data|currentSelector|nextCellIndex|source|dataHash|postData|id|idx|dataWasLoaded|url|dataRow|tagName|parts|root|offIdx|Object||div|offset|maxColumnCount|child|rowObj|colspan|toLowerCase|nextDataRow|externalDataElement|dataSetsForDataRefStrings|className|flipedData|pendingRequest|push|dep|gi|rowOffIdx|rowspan|usesTable|cell|tHead|nextRowIndex|allDataSetsReady|notifyObservers|undoCleanupSource|cellValue|innerHTML|selector|ds|req|evalSelector|usesExternalFile|responseText|display|ele|typeof|colValue|len|HTTPSourceDataSet|foundElement|loadData|setSourceElement|getDataFromSourceElement|processDataRefString|Region|hideDataSourceElement|firstRowAsHeaders|rowSpanCellOffset|Utils|rowsBody|rowsHead|tBody|getNodesByFunc|applySelector|split|selectors|nodeType|collection|getElementChildren|newCollection|element|children|link|script|img|cleanupSource|frame|iframe|parentNode|sources|input|getDataFromNestedStructure|getDataFromHTMLTable|onPreLoad|ds_RowID|string|unfilteredData|curRowID|src|numCols|requestInfo|nextID|nodeName|useColumnsAsRows|dataSetOptions|tableModeEnabled|while|removeUnbalancedRows|dataSetURL|indexOf|firstRowOfData|normalizeColumnName|firstDataRowIndex|href|loadDependentDataSets|rawDataDoc|substring|initDataSource|startOffset|setDisplay|document|loadDataIntoDataSet|getDataSelector|getRowSelector|htmlsource|setSourceElementID|setDataSelector|recalculateDataSetDependencies|setRowSelector|createElement|reportError|callLoadData|none|RegExp|style|getDataRefStrings|sourceWasInitialized|call|constructor|body|search|valid|ID|getSourceElement|not|is|Debug|internalID|getSourceElementID|onPostLoad|bspry_|rowSpan|spry_|continue|nextSibling|LoadManager|zA|_|column|tBodies|concat|table|colSpan|clone|useCache|setTimeout|getDataWasLoaded|undefined|cancelLoadData|timer|filterAndSortData|disableNotifications|onDataChanged|hasDataRefStrings|enableNotifications|getLoadDataRequestIsPending|firstChild'.split('|'),0,{}))
