// SpryHTMLDataSet.js - version 0.20 - 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(1S,n,28){2.n=n;2.m=o;2.2E=g;2.1d=(1S!=o)?A:g;2.1D=A;2.2y=g;2.r=o;2.1t=A;2.y=o;2.x=o;2.2w=A;5.6.1v.2H(2,1S,28)};5.6.7.l=k 5.6.1v();5.6.7.l.2C=5.6.7;5.6.7.l.2L=9(){3 1s=[];4(2.10)1s.17(2.10);4(2b 2.n=="29")1s.17(2.n);8 1s};5.6.7.l.2s=9(1K,1G){4(1K)1K.2W.1G=1G};5.6.7.l.2a=9(2z){4(!2.2h())8;4(!2.1d){2.1y();4(2.1t)2.2s(2.m,"2D")}};5.6.7.l.1y=9(12){2.m=o;4(!2.n){4(12)2.m=12;w{2.1t=g;2.m=2k.2B}8}3 n=5.6.1u.1w(o,2.n,2.1a);4(!2.1d)2.m=5.$(n);w 4(12){3 1E=g;3 2m=5.1R.1P(12,9(j){4(1E)8 g;4(j.1U!=1)8 g;4(j.J&&j.J.14()==n.14()){1E=A;8 A}});2.m=2m[0]}4(!2.m)5.1x.1C("5.6.7: \'"+n+"\' 2V 2X a 2Z 1Q 2U")};5.6.7.l.2T=9(){8 2.m};5.6.7.l.2O=9(){8 2.n};5.6.7.l.2N=9(n){4(2.n!=n){2.n=n;2.2P();2.P=g}};5.6.7.l.2Q=9(){8 2.x};5.6.7.l.2S=9(x){4(2.x!=x){2.x=x;2.P=g}};5.6.7.l.2R=9(){8 2.y};5.6.7.l.2A=9(y){4(2.y!=y){2.y=y;2.P=g}};5.6.7.l.2Y=9(2e){3 1r=2e;1r=5.6.7.2j(1r);3 X=2k.2G("X");X.J="30"+2.2M;X.1h=1r;2.1y(X);4(2.m){3 q=2.1z();4(q){2.I=q.I;2.H=q.H}}2.P=A;X=o};5.6.7.l.2h=9(){4(2.2J){3 1o=A;p(3 i=0;i<2.1a.h;i++){3 1n=2.1a[i];4(1n.2K())1o=g;w 4(!1n.2I()){1n.1B();1o=g}}4(!1o)8 g}8 A};5.6.7.l.1B=9(){2.2F();2.2a();3 v=2;4(!2.1d){2.1k("27");2.I=k Z;2.H=k B;2.P=g;2.2c=o;2.2d=0;2.13=k Z;2.13.39=3u(9(){v.13=o;3 q=v.1z();4(q){v.I=q.I;v.H=q.H}v.P=A;v.3v();v.3w();v.3t();v.1k("3s");v.1k("3o")},0)}w{3 10=5.6.1u.1w(o,2.10,2.1a);3 K=2.2i.K;4(K&&(2b K)=="29")K=5.6.1u.1w(o,K,2.1a);2.1k("27");2.I=k Z;2.H=k B;2.P=g;2.2c=o;2.2d=0;3 1m=2.2i.3p();1m.10=10;1m.K=K;2.13=k Z;2.13.H=5.6.1v.3y.1B(1m,2,2.3r)}};5.6.7.2j=9(O){O=O.D(/<(1X|1Y|24|23|1Z|22)([^>]+)>/S,9(a,b,c){8\'<\'+b+c.D(/\\b(21|20)\\s*=/S,9(a,b){8\'3x\'+b+\'=\'})+\'>\'});8 O};5.6.7.1q=9(O){O=O.D(/<(1X|1Y|24|23|1Z|22)([^>]+)>/S,9(a,b,c){8\'<\'+b+c.D(/\\3D(21|20)\\s*=/S,9(a,b){8 b+\'=\'})+\'>\'});8 O};5.6.7.2t=9(L){L=L.D(/(?:^[\\s\\t]+|[\\s\\t]+$)/S,"");L=L.D(/<\\/?([a-z]+)([^>]+)>/S,"");L=L.D(/[\\s\\t]+/S,"3B");8 L};5.6.7.l.1z=9(){4(!2.m)8 o;3 e;3 1e=(2.2w&&2.m.26.14()=="3C");4(1e)e=2.2p();w e=2.2x();4(!e)8 o;4(2.2y){3 16=k B;p(3 f=0;f<e.h;f++){3 u=e[f];p(3 d=0;d<u.h;d++){4(!16[d])16[d]=k B;16[d][f]=u[d]}}e=16}3 q=k Z();q.I=k Z;q.H=k B;4(e.h==0)8 q;3 r=k B;3 1A=e[0];p(3 d=0;d<1A.h;d++){4(1e&&2.1D)r[d]=5.6.7.2t(1A[d]);w r[d]="2o"+d}4(2.r&&2.r.h){4(2.r.h<r.h)5.1x.1C("3z 3A 3q 3m 2u r 38. 3n 3a h 37 36 2u 32 31 33 34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d++)e[f][d]=5.6.7.1q(C[d].1h)}8 e};5.6.7.1H=9(1W,1i,U){3 1V=[];p(3 M=0;M<1W.h;M++){3 j=1W[M];4(5.6.7.1j(j,U?U:j.2f,1i))1V.17(j)}8 1V};5.6.7.1j=9(j,U,1i){4(j.1U!=1)8 g;4(j==U)8 g;3 1M=1i.1L(",");p(3 M=0;M<1M.h;M++){3 G=1M[M].D(/^\\s+/,"").D(/\\s+$/,"");3 R=o;3 18=o;3 J=o;3 E=A;4(G.25(0,1)==">"){4(j.2f!=U)E=g;w G=G.25(1).D(/^\\s+/,"")}4(E){R=G.14();4(G.2g(".")!=-1){3 11=G.1L(".");R=11[0];18=11[1]}w 4(G.2g("#")!=-1){3 11=G.1L("#");R=11[0];J=11[1]}}4(E&&R!=\'\'&&R!=\'*\')4(j.26.14()!=R)E=g;4(E&&J&&j.J!=J)E=g;4(E&&18&&j.18.3f(k 3g(\'\\\\b\'+18+\'\\\\b\',\'i\'))==-1)E=g;4(E)8 A}8 g};',62,226,'||this|var|if|Spry|Data|HTMLDataSet|return|function||||cellIdx|extractedData|rowIdx|false|length||node|new|prototype|sourceElement|sourceElementID|null|for|parsedStructure|columnNames|||row|self|else|dataSelector|rowSelector||true|Array|cells|replace|selected|rows|currentSelector|data|dataHash|id|postData|colName|idx|nextCellIndex|source|dataWasLoaded|dataRow|tagName|gi|child|root|rowObj|offIdx|div|offset|Object|url|parts|externalDataElement|pendingRequest|toLowerCase|colspan|flipedData|push|className|nextDataRow|dataSetsForDataRefStrings|rowOffIdx|tHead|usesExternalFile|usesTable|cell|rowspan|innerHTML|selector|evalSelector|notifyObservers|cellValue|req|ds|allDataSetsReady|nextRowIndex|undoCleanupSource|responseText|dep|hideDataSourceElement|Region|HTTPSourceDataSet|processDataRefString|Debug|setSourceElement|getDataFromSourceElement|firstRowOfData|loadData|reportError|firstRowAsHeaders|foundElement|children|display|applySelector|rowsHead|rowsBody|ele|split|selectors|tBody|getElementChildren|getNodesByFunc|element|Utils|dataSetURL|rowSpanCellOffset|nodeType|newCollection|collection|img|script|iframe|href|src|input|frame|link|substring|nodeName|onPreLoad|dataSetOptions|string|initDataSource|typeof|unfilteredData|curRowID|rawDataDoc|parentNode|indexOf|loadDependentDataSets|requestInfo|cleanupSource|document|firstDataRowIndex|sources|while|column|getDataFromHTMLTable|ds_RowID|nextID|setDisplay|normalizeColumnName|the|startOffset|tableModeEnabled|getDataFromNestedStructure|useColumnsAsRows|callLoadData|setRowSelector|body|constructor|none|sourceWasInitialized|cancelLoadData|createElement|call|getDataWasLoaded|hasDataRefStrings|getLoadDataRequestIsPending|getDataRefStrings|internalID|setSourceElementID|getSourceElementID|recalculateDataSetDependencies|getDataSelector|getRowSelector|setDataSelector|getSourceElement|ID|is|style|not|loadDataIntoDataSet|valid|htmlsource|number|actual|of|columns|Unbalanced|match|must|array|timer|columNames|names|Skipping|colSpan|rowSpan|search|RegExp|concat|tBodies|continue|firstChild|nextSibling|in|The|onDataChanged|clone|elements|useCache|onPostLoad|enableNotifications|setTimeout|disableNotifications|filterAndSortData|spry_|LoadManager|Too|few|_|table|bspry_'.split('|'),0,{}))
