2011-12-06 08:48:24 +01:00
// Input 0
/ *
@ licstart
The JavaScript code in this page is free software : you can redistribute it
and / or modify it under the terms of the GNU Affero General Public License
( GNU AGPL ) as published by the Free Software Foundation , either version 3 of
the License , or ( at your option ) any later version . The code is distributed
WITHOUT ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE . See the GNU AGPL for more details .
As additional permission under GNU AGPL version 3 section 7 , you
may distribute non - source ( e . g . , minimized or compacted ) forms of
that code without the copy of the GNU GPL normally required by
section 4 , provided you include this license notice and a URL
through which recipients can access the Corresponding Source .
As a special exception to the AGPL , any HTML file which merely makes function
calls to this code , and for that purpose includes it by reference shall be
deemed a separate work for copyright law purposes . In addition , the copyright
holders of this code give you permission to combine this code with free
software libraries that are released under the GNU LGPL . You may copy and
distribute such a system following the terms of the GNU AGPL for this code
and the LGPL for the libraries . If you modify this code , you may extend this
exception to your version of the code , but you are not obligated to do so .
If you do not wish to do so , delete this exception statement from your
version .
This license applies to this entire compilation .
@ licend
@ source : http : //www.webodf.org/
@ source : http : //gitorious.org/odfkit/webodf/
* /
var core = { } , gui = { } , xmldom = { } , odf = { } ;
// Input 1
function Runtime ( ) { } Runtime . ByteArray = function ( ) { } ; Runtime . ByteArray . prototype . slice = function ( ) { } ; Runtime . prototype . byteArrayFromArray = function ( ) { } ; Runtime . prototype . byteArrayFromString = function ( ) { } ; Runtime . prototype . byteArrayToString = function ( ) { } ; Runtime . prototype . concatByteArrays = function ( ) { } ; Runtime . prototype . read = function ( ) { } ; Runtime . prototype . readFile = function ( ) { } ; Runtime . prototype . readFileSync = function ( ) { } ; Runtime . prototype . loadXML = function ( ) { } ; Runtime . prototype . writeFile = function ( ) { } ;
2012-03-16 21:26:34 +01:00
Runtime . prototype . isFile = function ( ) { } ; Runtime . prototype . getFileSize = function ( ) { } ; Runtime . prototype . deleteFile = function ( ) { } ; Runtime . prototype . log = function ( ) { } ; Runtime . prototype . setTimeout = function ( ) { } ; Runtime . prototype . libraryPaths = function ( ) { } ; Runtime . prototype . type = function ( ) { } ; Runtime . prototype . getDOMImplementation = function ( ) { } ; Runtime . prototype . getWindow = function ( ) { } ; var IS _COMPILED _CODE = ! 0 ;
Runtime . byteArrayToString = function ( g , m ) { function e ( e ) { var a = "" , c , b = e . length , d , o , f ; for ( c = 0 ; c < b ; c += 1 ) d = e [ c ] , 128 > d ? a += String . fromCharCode ( d ) : ( c += 1 , o = e [ c ] , 224 > d ? a += String . fromCharCode ( ( d & 31 ) << 6 | o & 63 ) : ( c += 1 , f = e [ c ] , a += String . fromCharCode ( ( d & 15 ) << 12 | ( o & 63 ) << 6 | f & 63 ) ) ) ; return a } if ( "utf8" === m ) return e ( g ) ; "binary" !== m && this . log ( "Unsupported encoding: " + m ) ; return function ( e ) { var a = "" , c , b = e . length ; for ( c = 0 ; c < b ; c += 1 ) a += String . fromCharCode ( e [ c ] & 255 ) ; return a } ( g ) } ;
Runtime . getFunctionName = function ( g ) { return void 0 === g . name ? ( g = /function\s+(\w+)/ . exec ( g ) ) && g [ 1 ] : g . name } ;
function BrowserRuntime ( g ) { function m ( c , b ) { var d , a , f ; b ? f = c : b = c ; g ? ( a = g . ownerDocument , f && ( d = a . createElement ( "span" ) , d . className = f , d . appendChild ( a . createTextNode ( f ) ) , g . appendChild ( d ) , g . appendChild ( a . createTextNode ( " " ) ) ) , d = a . createElement ( "span" ) , d . appendChild ( a . createTextNode ( b ) ) , g . appendChild ( d ) , g . appendChild ( a . createElement ( "br" ) ) ) : console && console . log ( b ) } var e = this , k = { } , a = window . ArrayBuffer && window . Uint8Array ; this . ByteArray = a ? function ( c ) { Uint8Array . prototype . slice = function ( c , d ) { void 0 === d && ( void 0 ===
c && ( c = 0 ) , d = this . length ) ; var a = this . subarray ( c , d ) , f , h , d = d - c ; f = new Uint8Array ( new ArrayBuffer ( d ) ) ; for ( h = 0 ; h < d ; h += 1 ) f [ h ] = a [ h ] ; return f } ; return new Uint8Array ( new ArrayBuffer ( c ) ) } : function ( c ) { var b = [ ] ; b . length = c ; return b } ; this . concatByteArrays = a ? function ( c , b ) { var d , a = c . length , f = b . length , h = new this . ByteArray ( a + f ) ; for ( d = 0 ; d < a ; d += 1 ) h [ d ] = c [ d ] ; for ( d = 0 ; d < f ; d += 1 ) h [ d + a ] = b [ d ] ; return h } : function ( c , b ) { return c . concat ( b ) } ; this . byteArrayFromArray = function ( c ) { return c . slice ( ) } ; this . byteArrayFromString = function ( c , b ) { if ( "utf8" ===
b ) { var d = c . length , a , f , h , i = 0 ; for ( f = 0 ; f < d ; f += 1 ) h = c . charCodeAt ( f ) , i += 1 + ( 128 < h ) + ( 2048 < h ) ; a = new e . ByteArray ( i ) ; for ( f = i = 0 ; f < d ; f += 1 ) h = c . charCodeAt ( f ) , 128 > h ? ( a [ i ] = h , i += 1 ) : 2048 > h ? ( a [ i ] = 192 | h >>> 6 , a [ i + 1 ] = 128 | h & 63 , i += 2 ) : ( a [ i ] = 224 | h >>> 12 & 15 , a [ i + 1 ] = 128 | h >>> 6 & 63 , a [ i + 2 ] = 128 | h & 63 , i += 3 ) ; return a } "binary" !== b && e . log ( "unknown encoding: " + b ) ; d = c . length ; a = new e . ByteArray ( d ) ; for ( f = 0 ; f < d ; f += 1 ) a [ f ] = c . charCodeAt ( f ) & 255 ; return a } ; this . byteArrayToString = Runtime . byteArrayToString ; this . readFile = function ( c , b , d ) { if ( k . hasOwnProperty ( c ) ) d ( null ,
k [ c ] ) ; else { var a = new XMLHttpRequest ; a . open ( "GET" , c , ! 0 ) ; a . onreadystatechange = function ( ) { var f ; 4 === a . readyState && ( 0 === a . status && ! a . responseText ? d ( "File " + c + " is empty." ) : 200 === a . status || 0 === a . status ? ( f = "binary" === b ? "undefined" !== typeof VBArray ? ( new VBArray ( a . responseBody ) ) . toArray ( ) : e . byteArrayFromString ( a . responseText , "binary" ) : a . responseText , k [ c ] = f , d ( null , f ) ) : d ( a . responseText || a . statusText ) ) } ; a . overrideMimeType && ( "binary" !== b ? a . overrideMimeType ( "text/plain; charset=" + b ) : a . overrideMimeType ( "text/plain; charset=x-user-defined" ) ) ;
try { a . send ( null ) } catch ( f ) { d ( f . message ) } } } ; this . read = function ( c , a , d , o ) { if ( k . hasOwnProperty ( c ) ) o ( null , k [ c ] . slice ( a , a + d ) ) ; else { var f = new XMLHttpRequest ; f . open ( "GET" , c , ! 0 ) ; f . onreadystatechange = function ( ) { var i ; 4 === f . readyState && ( 0 === f . status && ! f . responseText ? o ( "File " + c + " is empty." ) : 200 === f . status || 0 === f . status ? ( i = "undefined" !== typeof VBArray ? ( new VBArray ( f . responseBody ) ) . toArray ( ) : e . byteArrayFromString ( f . responseText , "binary" ) , k [ c ] = i , o ( null , i . slice ( a , a + d ) ) ) : o ( f . responseText || f . statusText ) ) } ; f . overrideMimeType &&
f . overrideMimeType ( "text/plain; charset=x-user-defined" ) ; try { f . send ( null ) } catch ( h ) { o ( h . message ) } } } ; this . readFileSync = function ( c , a ) { var d = new XMLHttpRequest , o ; d . open ( "GET" , c , ! 1 ) ; d . overrideMimeType && ( "binary" !== a ? d . overrideMimeType ( "text/plain; charset=" + a ) : d . overrideMimeType ( "text/plain; charset=x-user-defined" ) ) ; try { if ( d . send ( null ) , 200 === d . status || 0 === d . status ) o = d . responseText } catch ( f ) { } return o } ; this . writeFile = function ( c , a , d ) { k [ c ] = a ; var o = new XMLHttpRequest ; o . open ( "PUT" , c , ! 0 ) ; o . onreadystatechange =
function ( ) { 4 === o . readyState && ( 0 === o . status && ! o . responseText ? d ( "File " + c + " is empty." ) : 200 <= o . status && 300 > o . status || 0 === o . status ? d ( null ) : d ( "Status " + o . status + ": " + o . responseText || o . statusText ) ) } ; a = a . buffer && ! o . sendAsBinary ? a . buffer : e . byteArrayToString ( a , "binary" ) ; try { o . sendAsBinary ? o . sendAsBinary ( a ) : o . send ( a ) } catch ( f ) { e . log ( "HUH? " + f + " " + a ) , d ( f . message ) } } ; this . deleteFile = function ( c , a ) { var d = new XMLHttpRequest ; d . open ( "DELETE" , c , ! 0 ) ; d . onreadystatechange = function ( ) { 4 === d . readyState && ( 200 > d . status && 300 <=
d . status ? a ( d . responseText ) : a ( null ) ) } ; d . send ( null ) } ; this . loadXML = function ( a , b ) { var d = new XMLHttpRequest ; d . open ( "GET" , a , ! 0 ) ; d . overrideMimeType && d . overrideMimeType ( "text/xml" ) ; d . onreadystatechange = function ( ) { 4 === d . readyState && ( 0 === d . status && ! d . responseText ? b ( "File " + a + " is empty." ) : 200 === d . status || 0 === d . status ? b ( null , d . responseXML ) : b ( d . responseText ) ) } ; try { d . send ( null ) } catch ( o ) { b ( o . message ) } } ; this . isFile = function ( a , b ) { e . getFileSize ( a , function ( a ) { b ( - 1 !== a ) } ) } ; this . getFileSize = function ( a , b ) { var d = new XMLHttpRequest ;
d . open ( "HEAD" , a , ! 0 ) ; d . onreadystatechange = function ( ) { if ( 4 === d . readyState ) { var a = d . getResponseHeader ( "Content-Length" ) ; a ? b ( parseInt ( a , 10 ) ) : b ( - 1 ) } } ; d . send ( null ) } ; this . log = m ; this . setTimeout = function ( a , b ) { setTimeout ( function ( ) { a ( ) } , b ) } ; this . libraryPaths = function ( ) { return [ "lib" ] } ; this . setCurrentDirectory = function ( ) { } ; this . type = function ( ) { return "BrowserRuntime" } ; this . getDOMImplementation = function ( ) { return window . document . implementation } ; this . exit = function ( a ) { m ( "Calling exit with code " + a + ", but exit() is not implemented." ) } ;
this . getWindow = function ( ) { return window } }
function NodeJSRuntime ( ) { var g = require ( "fs" ) , m = "" ; this . ByteArray = function ( e ) { return new Buffer ( e ) } ; this . byteArrayFromArray = function ( e ) { var k = new Buffer ( e . length ) , a , c = e . length ; for ( a = 0 ; a < c ; a += 1 ) k [ a ] = e [ a ] ; return k } ; this . concatByteArrays = function ( e , k ) { var a = new Buffer ( e . length + k . length ) ; e . copy ( a , 0 , 0 ) ; k . copy ( a , e . length , 0 ) ; return a } ; this . byteArrayFromString = function ( e , k ) { return new Buffer ( e , k ) } ; this . byteArrayToString = function ( e , k ) { return e . toString ( k ) } ; this . readFile = function ( e , k , a ) { "binary" !== k ? g . readFile ( e ,
k , a ) : g . readFile ( e , null , a ) } ; this . writeFile = function ( e , k , a ) { g . writeFile ( e , k , "binary" , function ( c ) { a ( c || null ) } ) } ; this . deleteFile = g . unlink ; this . read = function ( e , k , a , c ) { m && ( e = m + "/" + e ) ; g . open ( e , "r+" , 666 , function ( b , d ) { if ( b ) c ( b ) ; else { var o = new Buffer ( a ) ; g . read ( d , o , 0 , a , k , function ( a ) { g . close ( d ) ; c ( a , o ) } ) } } ) } ; this . readFileSync = function ( e , k ) { return ! k ? "" : g . readFileSync ( e , k ) } ; this . loadXML = function ( ) { throw "Not implemented." ; } ; this . isFile = function ( e , k ) { m && ( e = m + "/" + e ) ; g . stat ( e , function ( a , c ) { k ( ! a && c . isFile ( ) ) } ) } ; this . getFileSize =
function ( e , k ) { m && ( e = m + "/" + e ) ; g . stat ( e , function ( a , c ) { a ? k ( - 1 ) : k ( c . size ) } ) } ; this . log = function ( e ) { process . stderr . write ( e + "\n" ) } ; this . setTimeout = function ( e , k ) { setTimeout ( function ( ) { e ( ) } , k ) } ; this . libraryPaths = function ( ) { return [ _ _dirname ] } ; this . setCurrentDirectory = function ( e ) { m = e } ; this . currentDirectory = function ( ) { return m } ; this . type = function ( ) { return "NodeJSRuntime" } ; this . getDOMImplementation = function ( ) { return null } ; this . exit = process . exit ; this . getWindow = function ( ) { return null } }
function RhinoRuntime ( ) { var g = this , m = Packages . javax . xml . parsers . DocumentBuilderFactory . newInstance ( ) , e , k , a = "" ; m . setValidating ( ! 1 ) ; m . setNamespaceAware ( ! 0 ) ; m . setExpandEntityReferences ( ! 1 ) ; m . setSchema ( null ) ; k = Packages . org . xml . sax . EntityResolver ( { resolveEntity : function ( a , b ) { var d = new Packages . java . io . FileReader ( b ) ; return new Packages . org . xml . sax . InputSource ( d ) } } ) ; e = m . newDocumentBuilder ( ) ; e . setEntityResolver ( k ) ; this . ByteArray = function ( a ) { return [ a ] } ; this . byteArrayFromArray = function ( a ) { return a } ; this . byteArrayFromString =
function ( a ) { var b = [ ] , d , o = a . length ; for ( d = 0 ; d < o ; d += 1 ) b [ d ] = a . charCodeAt ( d ) & 255 ; return b } ; this . byteArrayToString = Runtime . byteArrayToString ; this . concatByteArrays = function ( a , b ) { return a . concat ( b ) } ; this . loadXML = function ( a , b ) { var d = new Packages . java . io . File ( a ) , o ; try { o = e . parse ( d ) } catch ( f ) { print ( f ) ; b ( f ) ; return } b ( null , o ) } ; this . readFile = function ( a , b , d ) { var o = new Packages . java . io . File ( a ) , f = "binary" === b ? "latin1" : b ; o . isFile ( ) ? ( a = readFile ( a , f ) , "binary" === b && ( a = g . byteArrayFromString ( a , "binary" ) ) , d ( null , a ) ) : d ( a + " is not a file." ) } ;
this . writeFile = function ( a , b , d ) { var a = new Packages . java . io . FileOutputStream ( a ) , o , f = b . length ; for ( o = 0 ; o < f ; o += 1 ) a . write ( b [ o ] ) ; a . close ( ) ; d ( null ) } ; this . deleteFile = function ( a , b ) { ( new Packages . java . io . File ( a ) ) [ "delete" ] ( ) ? b ( null ) : b ( "Could not delete " + a ) } ; this . read = function ( c , b , d , o ) { a && ( c = a + "/" + c ) ; var f ; f = c ; var h = "binary" ; ( new Packages . java . io . File ( f ) ) . isFile ( ) ? ( "binary" === h && ( h = "latin1" ) , f = readFile ( f , h ) ) : f = null ; f ? o ( null , this . byteArrayFromString ( f . substring ( b , b + d ) , "binary" ) ) : o ( "Cannot read " + c ) } ; this . readFileSync =
function ( a , b ) { return ! b ? "" : readFile ( a , b ) } ; this . isFile = function ( c , b ) { a && ( c = a + "/" + c ) ; var d = new Packages . java . io . File ( c ) ; b ( d . isFile ( ) ) } ; this . getFileSize = function ( c , b ) { a && ( c = a + "/" + c ) ; var d = new Packages . java . io . File ( c ) ; b ( d . length ( ) ) } ; this . log = print ; this . setTimeout = function ( a ) { a ( ) } ; this . libraryPaths = function ( ) { return [ "lib" ] } ; this . setCurrentDirectory = function ( c ) { a = c } ; this . currentDirectory = function ( ) { return a } ; this . type = function ( ) { return "RhinoRuntime" } ; this . getDOMImplementation = function ( ) { return e . getDOMImplementation ( ) } ;
this . exit = quit ; this . getWindow = function ( ) { return null } } var runtime = function ( ) { return "undefined" !== typeof window ? new BrowserRuntime ( window . document . getElementById ( "logoutput" ) ) : "undefined" !== typeof require ? new NodeJSRuntime : new RhinoRuntime } ( ) ;
( function ( ) { function g ( e ) { var a = e [ 0 ] , c ; c = eval ( "if (typeof " + a + " === 'undefined') {eval('" + a + " = {};');}" + a ) ; for ( a = 1 ; a < e . length - 1 ; a += 1 ) c . hasOwnProperty ( e [ a ] ) || ( c = c [ e [ a ] ] = { } ) ; return c [ e [ e . length - 1 ] ] } var m = { } , e = { } ; runtime . loadClass = function ( k ) { function a ( a ) { var a = a . replace ( "." , "/" ) + ".js" , b = runtime . libraryPaths ( ) , c , h , i ; runtime . currentDirectory && b . push ( runtime . currentDirectory ( ) ) ; for ( c = 0 ; c < b . length ; c += 1 ) { h = b [ c ] ; if ( ! e . hasOwnProperty ( h ) ) if ( ( i = runtime . readFileSync ( b [ c ] + "/manifest.js" , "utf8" ) ) && i . length ) try { e [ h ] =
eval ( i ) } catch ( j ) { e [ h ] = null , runtime . log ( "Cannot load manifest for " + h + "." ) } else e [ h ] = null ; if ( ( h = e [ h ] ) && h . indexOf && - 1 !== h . indexOf ( a ) ) return b [ c ] + "/" + a } return null } if ( ! IS _COMPILED _CODE && ! m . hasOwnProperty ( k ) ) { var c = k . split ( "." ) , b ; b = g ( c ) ; if ( ! b && ( b = function ( c ) { var b , f ; f = a ( c ) ; if ( ! f ) throw c + " is not listed in any manifest.js." ; try { b = runtime . readFileSync ( f , "utf8" ) } catch ( e ) { throw runtime . log ( "Error loading " + c + " " + e ) , e ; } if ( void 0 === b ) throw "Cannot load class " + c ; try { b = eval ( c + " = eval(code);" ) } catch ( i ) { throw runtime . log ( "Error loading " +
c + " " + i ) , i ; } return b } ( k ) , ! b || Runtime . getFunctionName ( b ) !== c [ c . length - 1 ] ) ) throw runtime . log ( "Loaded code is not for " + c [ c . length - 1 ] ) , "Loaded code is not for " + c [ c . length - 1 ] ; m [ k ] = ! 0 } } } ) ( ) ;
( function ( g ) { function m ( e ) { if ( e . length ) { var g = e [ 0 ] ; runtime . readFile ( g , "utf8" , function ( a , c ) { function b ( ) { var a ; ( a = eval ( c ) ) && runtime . exit ( a ) } var d = "" ; runtime . libraryPaths ( ) ; - 1 !== g . indexOf ( "/" ) && ( d = g . substring ( 0 , g . indexOf ( "/" ) ) ) ; runtime . setCurrentDirectory ( d ) ; a ? ( runtime . log ( a ) , runtime . exit ( 1 ) ) : b . apply ( null , e ) } ) } } g = Array . prototype . slice . call ( g ) ; "NodeJSRuntime" === runtime . type ( ) ? m ( process . argv . slice ( 2 ) ) : "RhinoRuntime" === runtime . type ( ) ? m ( g ) : m ( g . slice ( 1 ) ) } ) ( "undefined" !== typeof arguments && arguments ) ;
2011-12-06 08:48:24 +01:00
// Input 2
2012-03-16 21:26:34 +01:00
core . Base64 = function ( ) { function g ( a ) { var c = [ ] , b , d = a . length ; for ( b = 0 ; b < d ; b += 1 ) c [ b ] = a . charCodeAt ( b ) & 255 ; return c } function m ( a ) { var b , c = "" , d , f = a . length - 2 ; for ( d = 0 ; d < f ; d += 3 ) b = a [ d ] << 16 | a [ d + 1 ] << 8 | a [ d + 2 ] , c += x [ b >>> 18 ] , c += x [ b >>> 12 & 63 ] , c += x [ b >>> 6 & 63 ] , c += x [ b & 63 ] ; d === f + 1 ? ( b = a [ d ] << 4 , c += x [ b >>> 6 ] , c += x [ b & 63 ] , c += "==" ) : d === f && ( b = a [ d ] << 10 | a [ d + 1 ] << 2 , c += x [ b >>> 12 ] , c += x [ b >>> 6 & 63 ] , c += x [ b & 63 ] , c += "=" ) ; return c } function e ( a ) { var a = a . replace ( /[^A-Za-z0-9+\/]+/g , "" ) , c = [ ] , b = a . length % 4 , d , f = a . length , e ; for ( d = 0 ; d < f ; d += 4 ) e = ( p [ a . charAt ( d ) ] ||
0 ) << 18 | ( p [ a . charAt ( d + 1 ) ] || 0 ) << 12 | ( p [ a . charAt ( d + 2 ) ] || 0 ) << 6 | ( p [ a . charAt ( d + 3 ) ] || 0 ) , c . push ( e >> 16 , e >> 8 & 255 , e & 255 ) ; c . length -= [ 0 , 0 , 2 , 1 ] [ b ] ; return c } function k ( a ) { var c = [ ] , b , d = a . length , f ; for ( b = 0 ; b < d ; b += 1 ) f = a [ b ] , 128 > f ? c . push ( f ) : 2048 > f ? c . push ( 192 | f >>> 6 , 128 | f & 63 ) : c . push ( 224 | f >>> 12 & 15 , 128 | f >>> 6 & 63 , 128 | f & 63 ) ; return c } function a ( a ) { var c = [ ] , b , d = a . length , f , e , l ; for ( b = 0 ; b < d ; b += 1 ) f = a [ b ] , 128 > f ? c . push ( f ) : ( b += 1 , e = a [ b ] , 224 > f ? c . push ( ( f & 31 ) << 6 | e & 63 ) : ( b += 1 , l = a [ b ] , c . push ( ( f & 15 ) << 12 | ( e & 63 ) << 6 | l & 63 ) ) ) ; return c } function c ( a ) { return m ( g ( a ) ) }
function b ( a ) { return String . fromCharCode . apply ( String , e ( a ) ) } function d ( c ) { return a ( g ( c ) ) } function o ( c ) { for ( var c = a ( c ) , b = "" , d = 0 ; d < c . length ; ) b += String . fromCharCode . apply ( String , c . slice ( d , d + 45E3 ) ) , d += 45E3 ; return b } function f ( a , c , b ) { var d = "" , f , e , l ; for ( l = c ; l < b ; l += 1 ) c = a . charCodeAt ( l ) & 255 , 128 > c ? d += String . fromCharCode ( c ) : ( l += 1 , f = a . charCodeAt ( l ) & 255 , 224 > c ? d += String . fromCharCode ( ( c & 31 ) << 6 | f & 63 ) : ( l += 1 , e = a . charCodeAt ( l ) & 255 , d += String . fromCharCode ( ( c & 15 ) << 12 | ( f & 63 ) << 6 | e & 63 ) ) ) ; return d } function h ( a , c ) { function b ( ) { var l =
j + d ; l > a . length && ( l = a . length ) ; e += f ( a , j , l ) ; j = l ; l = j === a . length ; c ( e , l ) && ! l && runtime . setTimeout ( b , 0 ) } var d = 1E5 , e = "" , j = 0 ; a . length < d ? c ( f ( a , 0 , a . length ) , ! 0 ) : ( "string" !== typeof a && ( a = a . slice ( ) ) , b ( ) ) } function i ( a ) { return k ( g ( a ) ) } function j ( a ) { return String . fromCharCode . apply ( String , k ( a ) ) } function n ( a ) { return String . fromCharCode . apply ( String , k ( g ( a ) ) ) } var x = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" ; ( function ( ) { var a = [ ] , c ; for ( c = 0 ; 26 > c ; c += 1 ) a . push ( 65 + c ) ; for ( c = 0 ; 26 > c ; c += 1 ) a . push ( 97 + c ) ; for ( c =
0 ; 10 > c ; c += 1 ) a . push ( 48 + c ) ; a . push ( 43 ) ; a . push ( 47 ) ; return a } ) ( ) ; var p = function ( a ) { var c = { } , b , d ; for ( b = 0 , d = a . length ; b < d ; b += 1 ) c [ a . charAt ( b ) ] = b ; return c } ( x ) , t , r , z , s ; ( z = runtime . getWindow ( ) && runtime . getWindow ( ) . btoa ) ? t = function ( a ) { return z ( n ( a ) ) } : ( z = c , t = function ( a ) { return m ( i ( a ) ) } ) ; ( s = runtime . getWindow ( ) && runtime . getWindow ( ) . atob ) ? r = function ( a ) { a = s ( a ) ; return f ( a , 0 , a . length ) } : ( s = b , r = function ( a ) { return o ( e ( a ) ) } ) ; return function ( ) { this . convertByteArrayToBase64 = this . convertUTF8ArrayToBase64 = m ; this . convertBase64ToByteArray =
this . convertBase64ToUTF8Array = e ; this . convertUTF16ArrayToByteArray = this . convertUTF16ArrayToUTF8Array = k ; this . convertByteArrayToUTF16Array = this . convertUTF8ArrayToUTF16Array = a ; this . convertUTF8StringToBase64 = c ; this . convertBase64ToUTF8String = b ; this . convertUTF8StringToUTF16Array = d ; this . convertByteArrayToUTF16String = this . convertUTF8ArrayToUTF16String = o ; this . convertUTF8StringToUTF16String = h ; this . convertUTF16StringToByteArray = this . convertUTF16StringToUTF8Array = i ; this . convertUTF16ArrayToUTF8String = j ; this . convertUTF16StringToUTF8String =
n ; this . convertUTF16StringToBase64 = t ; this . convertBase64ToUTF16String = r ; this . fromBase64 = b ; this . toBase64 = c ; this . atob = s ; this . btoa = z ; this . utob = n ; this . btou = h ; this . encode = t ; this . encodeURI = function ( a ) { return t ( a ) . replace ( /[+\/]/g , function ( a ) { return "+" === a ? "-" : "_" } ) . replace ( /\\=+$/ , "" ) } ; this . decode = function ( a ) { return r ( a . replace ( /[\-_]/g , function ( a ) { return "-" === a ? "+" : "/" } ) ) } } } ( ) ;
2011-12-06 08:48:24 +01:00
// Input 3
2012-03-16 21:26:34 +01:00
core . RawDeflate = function ( ) { function g ( ) { this . dl = this . fc = 0 } function m ( ) { this . extra _bits = this . static _tree = this . dyn _tree = null ; this . max _code = this . max _length = this . elems = this . extra _base = 0 } function e ( a , c , b , d ) { this . good _length = a ; this . max _lazy = c ; this . nice _length = b ; this . max _chain = d } function k ( ) { this . next = null ; this . len = 0 ; this . ptr = [ ] ; this . ptr . length = a ; this . off = 0 } var a = 8192 , c , b , d , o , f = null , h , i , j , n , x , p , t , r , z , s , q , u , E , C , w , G , l , v , y , B , M , F , R , S , A , K , I , P , L , H , D , U , N , J , V , aa , T , ba , Q , $ , W , ea , X , ia , pa , ca , fa , Y , da , ja , qa , ra = [ 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , 5 , 0 ] , ga = [ 0 , 0 , 0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 5 , 6 , 6 , 7 , 7 , 8 , 8 , 9 , 9 , 10 , 10 , 11 , 11 , 12 , 12 , 13 , 13 ] , Ha = [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 3 , 7 ] , va = [ 16 , 17 , 18 , 0 , 8 , 7 , 9 , 6 , 10 , 5 , 11 , 4 , 12 , 3 , 13 , 2 , 14 , 1 , 15 ] , ka ; ka = [ new e ( 0 , 0 , 0 , 0 ) , new e ( 4 , 4 , 8 , 4 ) , new e ( 4 , 5 , 16 , 8 ) , new e ( 4 , 6 , 32 , 32 ) , new e ( 4 , 4 , 16 , 16 ) , new e ( 8 , 16 , 32 , 32 ) , new e ( 8 , 16 , 128 , 128 ) , new e ( 8 , 32 , 128 , 256 ) , new e ( 32 , 128 , 258 , 1024 ) , new e ( 32 , 258 , 258 , 4096 ) ] ; var la = function ( l ) { f [ i + h ++ ] = l ; if ( i + h === a ) { var e ; if ( 0 !== h ) { null !== c ? ( l = c , c = c . next ) : l = new k ;
l . next = null ; l . len = l . off = 0 ; null === b ? b = d = l : d = d . next = l ; l . len = h - i ; for ( e = 0 ; e < l . len ; e ++ ) l . ptr [ e ] = f [ i + e ] ; h = i = 0 } } } , ma = function ( c ) { c &= 65535 ; i + h < a - 2 ? ( f [ i + h ++ ] = c & 255 , f [ i + h ++ ] = c >>> 8 ) : ( la ( c & 255 ) , la ( c >>> 8 ) ) } , na = function ( ) { q = ( q << 5 ^ n [ l + 3 - 1 ] & 255 ) & 8191 ; u = t [ 32768 + q ] ; t [ l & 32767 ] = u ; t [ 32768 + q ] = l } , O = function ( a , c ) { z > 16 - c ? ( r |= a << z , ma ( r ) , r = a >> 16 - z , z += c - 16 ) : ( r |= a << z , z += c ) } , Z = function ( a , c ) { O ( c [ a ] . fc , c [ a ] . dl ) } , wa = function ( a , c , b ) { return a [ c ] . fc < a [ b ] . fc || a [ c ] . fc === a [ b ] . fc && T [ c ] <= T [ b ] } , xa = function ( a , c , b ) { var d ; for ( d = 0 ; d < b && qa < ja . length ; d ++ ) a [ c +
d ] = ja . charCodeAt ( qa ++ ) & 255 ; return d } , sa = function ( ) { var a , c , b = 65536 - B - l ; if ( - 1 === b ) b -- ; else if ( 65274 <= l ) { for ( a = 0 ; 32768 > a ; a ++ ) n [ a ] = n [ a + 32768 ] ; v -= 32768 ; l -= 32768 ; s -= 32768 ; for ( a = 0 ; 8192 > a ; a ++ ) c = t [ 32768 + a ] , t [ 32768 + a ] = 32768 <= c ? c - 32768 : 0 ; for ( a = 0 ; 32768 > a ; a ++ ) c = t [ a ] , t [ a ] = 32768 <= c ? c - 32768 : 0 ; b += 32768 } y || ( a = xa ( n , l + B , b ) , 0 >= a ? y = ! 0 : B += a ) } , ya = function ( a ) { var c = M , b = l , d , f = G , e = 32506 < l ? l - 32506 : 0 , j = l + 258 , i = n [ b + f - 1 ] , q = n [ b + f ] ; G >= S && ( c >>= 2 ) ; do if ( d = a , ! ( n [ d + f ] !== q || n [ d + f - 1 ] !== i || n [ d ] !== n [ b ] || n [ ++ d ] !== n [ b + 1 ] ) ) { b += 2 ; d ++ ; do ++ b ;
while ( n [ b ] === n [ ++ d ] && n [ ++ b ] === n [ ++ d ] && n [ ++ b ] === n [ ++ d ] && n [ ++ b ] === n [ ++ d ] && n [ ++ b ] === n [ ++ d ] && n [ ++ b ] === n [ ++ d ] && n [ ++ b ] === n [ ++ d ] && n [ ++ b ] === n [ ++ d ] && b < j ) ; d = 258 - ( j - b ) ; b = j - 258 ; if ( d > f ) { v = a ; f = d ; if ( 258 <= d ) break ; i = n [ b + f - 1 ] ; q = n [ b + f ] } } while ( ( a = t [ a & 32767 ] ) > e && 0 !== -- c ) ; return f } , ha = function ( a , c ) { p [ X ++ ] = c ; 0 === a ? A [ c ] . fc ++ : ( a -- , A [ ba [ c ] + 256 + 1 ] . fc ++ , K [ ( 256 > a ? Q [ a ] : Q [ 256 + ( a >> 7 ) ] ) & 255 ] . fc ++ , x [ ia ++ ] = a , ca |= fa ) ; fa <<= 1 ; 0 === ( X & 7 ) && ( ea [ pa ++ ] = ca , ca = 0 , fa = 1 ) ; if ( 2 < R && 0 === ( X & 4095 ) ) { var b = 8 * X , d = l - s , f ; for ( f = 0 ; 30 > f ; f ++ ) b += K [ f ] . fc * ( 5 + ga [ f ] ) ;
b >>= 3 ; if ( ia < parseInt ( X / 2 , 10 ) && b < parseInt ( d / 2 , 10 ) ) return ! 0 } return 8191 === X || 8192 === ia } , ta = function ( a , c ) { for ( var b = J [ c ] , d = c << 1 ; d <= V ; ) { d < V && wa ( a , J [ d + 1 ] , J [ d ] ) && d ++ ; if ( wa ( a , b , J [ d ] ) ) break ; J [ c ] = J [ d ] ; c = d ; d <<= 1 } J [ c ] = b } , za = function ( a , c ) { var b = 0 ; do b |= a & 1 , a >>= 1 , b <<= 1 ; while ( 0 < -- c ) ; return b >> 1 } , Aa = function ( a , c ) { var b = [ ] ; b . length = 16 ; var d = 0 , f ; for ( f = 1 ; 15 >= f ; f ++ ) d = d + N [ f - 1 ] << 1 , b [ f ] = d ; for ( d = 0 ; d <= c ; d ++ ) f = a [ d ] . dl , 0 !== f && ( a [ d ] . fc = za ( b [ f ] ++ , f ) ) } , ua = function ( a ) { var c = a . dyn _tree , b = a . static _tree , d = a . elems , f , l = - 1 , e = d ; V = 0 ;
aa = 573 ; for ( f = 0 ; f < d ; f ++ ) 0 !== c [ f ] . fc ? ( J [ ++ V ] = l = f , T [ f ] = 0 ) : c [ f ] . dl = 0 ; for ( ; 2 > V ; ) f = J [ ++ V ] = 2 > l ? ++ l : 0 , c [ f ] . fc = 1 , T [ f ] = 0 , Y -- , null !== b && ( da -= b [ f ] . dl ) ; a . max _code = l ; for ( f = V >> 1 ; 1 <= f ; f -- ) ta ( c , f ) ; do f = J [ 1 ] , J [ 1 ] = J [ V -- ] , ta ( c , 1 ) , b = J [ 1 ] , J [ -- aa ] = f , J [ -- aa ] = b , c [ e ] . fc = c [ f ] . fc + c [ b ] . fc , T [ e ] = T [ f ] > T [ b ] + 1 ? T [ f ] : T [ b ] + 1 , c [ f ] . dl = c [ b ] . dl = e , J [ 1 ] = e ++ , ta ( c , 1 ) ; while ( 2 <= V ) ; J [ -- aa ] = J [ 1 ] ; e = a . dyn _tree ; f = a . extra _bits ; var d = a . extra _base , b = a . max _code , j = a . max _length , i = a . static _tree , q , h , o , s , v = 0 ; for ( h = 0 ; 15 >= h ; h ++ ) N [ h ] = 0 ; e [ J [ aa ] ] . dl = 0 ; for ( a = aa +
1 ; 573 > a ; a ++ ) q = J [ a ] , h = e [ e [ q ] . dl ] . dl + 1 , h > j && ( h = j , v ++ ) , e [ q ] . dl = h , q > b || ( N [ h ] ++ , o = 0 , q >= d && ( o = f [ q - d ] ) , s = e [ q ] . fc , Y += s * ( h + o ) , null !== i && ( da += s * ( i [ q ] . dl + o ) ) ) ; if ( 0 !== v ) { do { for ( h = j - 1 ; 0 === N [ h ] ; ) h -- ; N [ h ] -- ; N [ h + 1 ] += 2 ; N [ j ] -- ; v -= 2 } while ( 0 < v ) ; for ( h = j ; 0 !== h ; h -- ) for ( q = N [ h ] ; 0 !== q ; ) f = J [ -- a ] , f > b || ( e [ f ] . dl !== h && ( Y += ( h - e [ f ] . dl ) * e [ f ] . fc , e [ f ] . fc = h ) , q -- ) } Aa ( c , l ) } , Ba = function ( a , c ) { var b , d = - 1 , f , l = a [ 0 ] . dl , e = 0 , h = 7 , j = 4 ; 0 === l && ( h = 138 , j = 3 ) ; a [ c + 1 ] . dl = 65535 ; for ( b = 0 ; b <= c ; b ++ ) f = l , l = a [ b + 1 ] . dl , ++ e < h && f === l || ( e < j ? L [ f ] . fc += e : 0 !== f ? ( f !== d &&
L [ f ] . fc ++ , L [ 16 ] . fc ++ ) : 10 >= e ? L [ 17 ] . fc ++ : L [ 18 ] . fc ++ , e = 0 , d = f , 0 === l ? ( h = 138 , j = 3 ) : f === l ? ( h = 6 , j = 3 ) : ( h = 7 , j = 4 ) ) } , Ca = function ( ) { 8 < z ? ma ( r ) : 0 < z && la ( r ) ; z = r = 0 } , Da = function ( a , c ) { var b , d = 0 , f = 0 , l = 0 , e = 0 , h , j ; if ( 0 !== X ) { do 0 === ( d & 7 ) && ( e = ea [ l ++ ] ) , b = p [ d ++ ] & 255 , 0 === ( e & 1 ) ? Z ( b , a ) : ( h = ba [ b ] , Z ( h + 256 + 1 , a ) , j = ra [ h ] , 0 !== j && ( b -= $ [ h ] , O ( b , j ) ) , b = x [ f ++ ] , h = ( 256 > b ? Q [ b ] : Q [ 256 + ( b >> 7 ) ] ) & 255 , Z ( h , c ) , j = ga [ h ] , 0 !== j && ( b -= W [ h ] , O ( b , j ) ) ) , e >>= 1 ; while ( d < X ) } Z ( 256 , a ) } , Ea = function ( a , c ) { var b , d = - 1 , f , l = a [ 0 ] . dl , e = 0 , h = 7 , j = 4 ; 0 === l && ( h = 138 , j = 3 ) ; for ( b = 0 ; b <= c ; b ++ ) if ( f =
l , l = a [ b + 1 ] . dl , ! ( ++ e < h && f === l ) ) { if ( e < j ) { do Z ( f , L ) ; while ( 0 !== -- e ) } else 0 !== f ? ( f !== d && ( Z ( f , L ) , e -- ) , Z ( 16 , L ) , O ( e - 3 , 2 ) ) : 10 >= e ? ( Z ( 17 , L ) , O ( e - 3 , 3 ) ) : ( Z ( 18 , L ) , O ( e - 11 , 7 ) ) ; e = 0 ; d = f ; 0 === l ? ( h = 138 , j = 3 ) : f === l ? ( h = 6 , j = 3 ) : ( h = 7 , j = 4 ) } } , Fa = function ( ) { var a ; for ( a = 0 ; 286 > a ; a ++ ) A [ a ] . fc = 0 ; for ( a = 0 ; 30 > a ; a ++ ) K [ a ] . fc = 0 ; for ( a = 0 ; 19 > a ; a ++ ) L [ a ] . fc = 0 ; A [ 256 ] . fc = 1 ; ca = X = ia = pa = Y = da = 0 ; fa = 1 } , oa = function ( a ) { var c , b , d , f ; f = l - s ; ea [ pa ] = ca ; ua ( H ) ; ua ( D ) ; Ba ( A , H . max _code ) ; Ba ( K , D . max _code ) ; ua ( U ) ; for ( d = 18 ; 3 <= d && ! ( 0 !== L [ va [ d ] ] . dl ) ; d -- ) ; Y += 3 * ( d + 1 ) + 14 ; c =
Y + 3 + 7 >> 3 ; b = da + 3 + 7 >> 3 ; b <= c && ( c = b ) ; if ( f + 4 <= c && 0 <= s ) { O ( 0 + a , 3 ) ; Ca ( ) ; ma ( f ) ; ma ( ~ f ) ; for ( d = 0 ; d < f ; d ++ ) la ( n [ s + d ] ) } else if ( b === c ) O ( 2 + a , 3 ) , Da ( I , P ) ; else { O ( 4 + a , 3 ) ; f = H . max _code + 1 ; c = D . max _code + 1 ; d += 1 ; O ( f - 257 , 5 ) ; O ( c - 1 , 5 ) ; O ( d - 4 , 4 ) ; for ( b = 0 ; b < d ; b ++ ) O ( L [ va [ b ] ] . dl , 3 ) ; Ea ( A , f - 1 ) ; Ea ( K , c - 1 ) ; Da ( A , K ) } Fa ( ) ; 0 !== a && Ca ( ) } , Ga = function ( a , d , l ) { var e , j , q ; for ( e = 0 ; null !== b && e < l ; ) { j = l - e ; j > b . len && ( j = b . len ) ; for ( q = 0 ; q < j ; q ++ ) a [ d + e + q ] = b . ptr [ b . off + q ] ; b . off += j ; b . len -= j ; e += j ; 0 === b . len && ( j = b , b = b . next , j . next = c , c = j ) } if ( e === l ) return e ; if ( i < h ) { j = l -
e ; j > h - i && ( j = h - i ) ; for ( q = 0 ; q < j ; q ++ ) a [ d + e + q ] = f [ i + q ] ; i += j ; e += j ; h === i && ( h = i = 0 ) } return e } , Ia = function ( a , c , d ) { var f ; if ( ! o ) { if ( ! y ) { z = r = 0 ; var e , g ; if ( 0 === P [ 0 ] . dl ) { H . dyn _tree = A ; H . static _tree = I ; H . extra _bits = ra ; H . extra _base = 257 ; H . elems = 286 ; H . max _length = 15 ; H . max _code = 0 ; D . dyn _tree = K ; D . static _tree = P ; D . extra _bits = ga ; D . extra _base = 0 ; D . elems = 30 ; D . max _length = 15 ; D . max _code = 0 ; U . dyn _tree = L ; U . static _tree = null ; U . extra _bits = Ha ; U . extra _base = 0 ; U . elems = 19 ; U . max _length = 7 ; for ( g = e = U . max _code = 0 ; 28 > g ; g ++ ) { $ [ g ] = e ; for ( f = 0 ; f < 1 << ra [ g ] ; f ++ ) ba [ e ++ ] =
g } ba [ e - 1 ] = g ; for ( g = e = 0 ; 16 > g ; g ++ ) { W [ g ] = e ; for ( f = 0 ; f < 1 << ga [ g ] ; f ++ ) Q [ e ++ ] = g } for ( e >>= 7 ; 30 > g ; g ++ ) { W [ g ] = e << 7 ; for ( f = 0 ; f < 1 << ga [ g ] - 7 ; f ++ ) Q [ 256 + e ++ ] = g } for ( f = 0 ; 15 >= f ; f ++ ) N [ f ] = 0 ; for ( f = 0 ; 143 >= f ; ) I [ f ++ ] . dl = 8 , N [ 8 ] ++ ; for ( ; 255 >= f ; ) I [ f ++ ] . dl = 9 , N [ 9 ] ++ ; for ( ; 279 >= f ; ) I [ f ++ ] . dl = 7 , N [ 7 ] ++ ; for ( ; 287 >= f ; ) I [ f ++ ] . dl = 8 , N [ 8 ] ++ ; Aa ( I , 287 ) ; for ( f = 0 ; 30 > f ; f ++ ) P [ f ] . dl = 5 , P [ f ] . fc = za ( f , 5 ) ; Fa ( ) } for ( f = 0 ; 8192 > f ; f ++ ) t [ 32768 + f ] = 0 ; F = ka [ R ] . max _lazy ; S = ka [ R ] . good _length ; M = ka [ R ] . max _chain ; s = l = 0 ; B = xa ( n , 0 , 65536 ) ; if ( 0 >= B ) y = ! 0 , B = 0 ; else { for ( y = ! 1 ; 262 > B && ! y ; ) sa ( ) ;
for ( f = q = 0 ; 2 > f ; f ++ ) q = ( q << 5 ^ n [ f ] & 255 ) & 8191 } b = null ; i = h = 0 ; 3 >= R ? ( G = 2 , w = 0 ) : ( w = 2 , C = 0 ) ; j = ! 1 } o = ! 0 ; if ( 0 === B ) return j = ! 0 , 0 } if ( ( f = Ga ( a , c , d ) ) === d ) return d ; if ( j ) return f ; if ( 3 >= R ) for ( ; 0 !== B && null === b ; ) { na ( ) ; 0 !== u && 32506 >= l - u && ( w = ya ( u ) , w > B && ( w = B ) ) ; if ( 3 <= w ) if ( g = ha ( l - v , w - 3 ) , B -= w , w <= F ) { w -- ; do l ++ , na ( ) ; while ( 0 !== -- w ) ; l ++ } else l += w , w = 0 , q = n [ l ] & 255 , q = ( q << 5 ^ n [ l + 1 ] & 255 ) & 8191 ; else g = ha ( 0 , n [ l ] & 255 ) , B -- , l ++ ; g && ( oa ( 0 ) , s = l ) ; for ( ; 262 > B && ! y ; ) sa ( ) } else for ( ; 0 !== B && null === b ; ) { na ( ) ; G = w ; E = v ; w = 2 ; 0 !== u && G < F && 32506 >= l - u && ( w = ya ( u ) , w > B &&
( w = B ) , 3 === w && 4096 < l - v && w -- ) ; if ( 3 <= G && w <= G ) { g = ha ( l - 1 - E , G - 3 ) ; B -= G - 1 ; G -= 2 ; do l ++ , na ( ) ; while ( 0 !== -- G ) ; C = 0 ; w = 2 ; l ++ ; g && ( oa ( 0 ) , s = l ) } else 0 !== C ? ha ( 0 , n [ l - 1 ] & 255 ) && ( oa ( 0 ) , s = l ) : C = 1 , l ++ , B -- ; for ( ; 262 > B && ! y ; ) sa ( ) } 0 === B && ( 0 !== C && ha ( 0 , n [ l - 1 ] & 255 ) , oa ( 1 ) , j = ! 0 ) ; return f + Ga ( a , f + c , d - f ) } ; this . deflate = function ( e , l ) { var j , h ; ja = e ; qa = 0 ; "undefined" === typeof l && ( l = 6 ) ; ( j = l ) ? 1 > j ? j = 1 : 9 < j && ( j = 9 ) : j = 6 ; R = j ; y = o = ! 1 ; if ( null === f ) { c = b = d = null ; f = [ ] ; f . length = a ; n = [ ] ; n . length = 65536 ; x = [ ] ; x . length = 8192 ; p = [ ] ; p . length = 32832 ; t = [ ] ; t . length = 65536 ;
A = [ ] ; A . length = 573 ; for ( j = 0 ; 573 > j ; j ++ ) A [ j ] = new g ; K = [ ] ; K . length = 61 ; for ( j = 0 ; 61 > j ; j ++ ) K [ j ] = new g ; I = [ ] ; I . length = 288 ; for ( j = 0 ; 288 > j ; j ++ ) I [ j ] = new g ; P = [ ] ; P . length = 30 ; for ( j = 0 ; 30 > j ; j ++ ) P [ j ] = new g ; L = [ ] ; L . length = 39 ; for ( j = 0 ; 39 > j ; j ++ ) L [ j ] = new g ; H = new m ; D = new m ; U = new m ; N = [ ] ; N . length = 16 ; J = [ ] ; J . length = 573 ; T = [ ] ; T . length = 573 ; ba = [ ] ; ba . length = 256 ; Q = [ ] ; Q . length = 512 ; $ = [ ] ; $ . length = 29 ; W = [ ] ; W . length = 30 ; ea = [ ] ; ea . length = 1024 } for ( var q = Array ( 1024 ) , i = [ ] ; 0 < ( j = Ia ( q , 0 , q . length ) ) ; ) { var s = [ ] ; s . length = j ; for ( h = 0 ; h < j ; h ++ ) s [ h ] = String . fromCharCode ( q [ h ] ) ;
i [ i . length ] = s . join ( "" ) } ja = null ; return i . join ( "" ) } } ;
2011-12-06 08:48:24 +01:00
// Input 4
2012-03-16 21:26:34 +01:00
core . ByteArray = function ( g ) { this . pos = 0 ; this . data = g ; this . readUInt32LE = function ( ) { var g = this . data , e = this . pos += 4 ; return g [ -- e ] << 24 | g [ -- e ] << 16 | g [ -- e ] << 8 | g [ -- e ] } ; this . readUInt16LE = function ( ) { var g = this . data , e = this . pos += 2 ; return g [ -- e ] << 8 | g [ -- e ] } } ;
2011-12-06 08:48:24 +01:00
// Input 5
2012-03-16 21:26:34 +01:00
core . ByteArrayWriter = function ( g ) { var m = this , e = new runtime . ByteArray ( 0 ) ; this . appendByteArrayWriter = function ( g ) { e = runtime . concatByteArrays ( e , g . getByteArray ( ) ) } ; this . appendByteArray = function ( g ) { e = runtime . concatByteArrays ( e , g ) } ; this . appendArray = function ( g ) { e = runtime . concatByteArrays ( e , runtime . byteArrayFromArray ( g ) ) } ; this . appendUInt16LE = function ( e ) { m . appendArray ( [ e & 255 , e >> 8 & 255 ] ) } ; this . appendUInt32LE = function ( e ) { m . appendArray ( [ e & 255 , e >> 8 & 255 , e >> 16 & 255 , e >> 24 & 255 ] ) } ; this . appendString = function ( k ) { e = runtime . concatByteArrays ( e ,
runtime . byteArrayFromString ( k , g ) ) } ; this . getLength = function ( ) { return e . length } ; this . getByteArray = function ( ) { return e } } ;
2011-12-06 08:48:24 +01:00
// Input 6
2012-03-16 21:26:34 +01:00
core . RawInflate = function ( ) { var g , m , e = null , k , a , c , b , d , o , f , h , i , j , n , x , p , t , r = [ 0 , 1 , 3 , 7 , 15 , 31 , 63 , 127 , 255 , 511 , 1023 , 2047 , 4095 , 8191 , 16383 , 32767 , 65535 ] , z = [ 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 13 , 15 , 17 , 19 , 23 , 27 , 31 , 35 , 43 , 51 , 59 , 67 , 83 , 99 , 115 , 131 , 163 , 195 , 227 , 258 , 0 , 0 ] , s = [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , 5 , 0 , 99 , 99 ] , q = [ 1 , 2 , 3 , 4 , 5 , 7 , 9 , 13 , 17 , 25 , 33 , 49 , 65 , 97 , 129 , 193 , 257 , 385 , 513 , 769 , 1025 , 1537 , 2049 , 3073 , 4097 , 6145 , 8193 , 12289 , 16385 , 24577 ] , u = [ 0 , 0 , 0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 5 , 6 , 6 , 7 , 7 , 8 , 8 , 9 , 9 , 10 , 10 , 11 , 11 , 12 , 12 , 13 , 13 ] , E = [ 16 , 17 , 18 ,
0 , 8 , 7 , 9 , 6 , 10 , 5 , 11 , 4 , 12 , 3 , 13 , 2 , 14 , 1 , 15 ] , C = function ( ) { this . list = this . next = null } , w = function ( ) { this . n = this . b = this . e = 0 ; this . t = null } , G = function ( a , c , b , f , d , e ) { this . BMAX = 16 ; this . N _MAX = 288 ; this . status = 0 ; this . root = null ; this . m = 0 ; var j = Array ( this . BMAX + 1 ) , l , h , q , i , g , s , o , v = Array ( this . BMAX + 1 ) , n , y , u , t = new w , k = Array ( this . BMAX ) ; i = Array ( this . N _MAX ) ; var p , z = Array ( this . BMAX + 1 ) , B , r , x ; x = this . root = null ; for ( g = 0 ; g < j . length ; g ++ ) j [ g ] = 0 ; for ( g = 0 ; g < v . length ; g ++ ) v [ g ] = 0 ; for ( g = 0 ; g < k . length ; g ++ ) k [ g ] = null ; for ( g = 0 ; g < i . length ; g ++ ) i [ g ] =
0 ; for ( g = 0 ; g < z . length ; g ++ ) z [ g ] = 0 ; l = 256 < c ? a [ 256 ] : this . BMAX ; n = a ; y = 0 ; g = c ; do j [ n [ y ] ] ++ , y ++ ; while ( 0 < -- g ) ; if ( j [ 0 ] == c ) this . root = null , this . status = this . m = 0 ; else { for ( s = 1 ; s <= this . BMAX && ! ( 0 != j [ s ] ) ; s ++ ) ; o = s ; e < s && ( e = s ) ; for ( g = this . BMAX ; 0 != g && ! ( 0 != j [ g ] ) ; g -- ) ; q = g ; e > g && ( e = g ) ; for ( B = 1 << s ; s < g ; s ++ , B <<= 1 ) if ( 0 > ( B -= j [ s ] ) ) { this . status = 2 ; this . m = e ; return } if ( 0 > ( B -= j [ g ] ) ) this . status = 2 , this . m = e ; else { j [ g ] += B ; z [ 1 ] = s = 0 ; n = j ; y = 1 ; for ( u = 2 ; 0 < -- g ; ) z [ u ++ ] = s += n [ y ++ ] ; n = a ; g = y = 0 ; do if ( 0 != ( s = n [ y ++ ] ) ) i [ z [ s ] ++ ] = g ; while ( ++ g < c ) ; c = z [ q ] ; z [ 0 ] = g = 0 ; n =
i ; y = 0 ; i = - 1 ; p = v [ 0 ] = 0 ; u = null ; for ( r = 0 ; o <= q ; o ++ ) for ( a = j [ o ] ; 0 < a -- ; ) { for ( ; o > p + v [ 1 + i ] ; ) { p += v [ 1 + i ] ; i ++ ; r = ( r = q - p ) > e ? e : r ; if ( ( h = 1 << ( s = o - p ) ) > a + 1 ) { h -= a + 1 ; for ( u = o ; ++ s < r && ! ( ( h <<= 1 ) <= j [ ++ u ] ) ; ) h -= j [ u ] } p + s > l && p < l && ( s = l - p ) ; r = 1 << s ; v [ 1 + i ] = s ; u = Array ( r ) ; for ( h = 0 ; h < r ; h ++ ) u [ h ] = new w ; x = null == x ? this . root = new C : x . next = new C ; x . next = null ; x . list = u ; k [ i ] = u ; 0 < i && ( z [ i ] = g , t . b = v [ i ] , t . e = 16 + s , t . t = u , s = ( g & ( 1 << p ) - 1 ) >> p - v [ i ] , k [ i - 1 ] [ s ] . e = t . e , k [ i - 1 ] [ s ] . b = t . b , k [ i - 1 ] [ s ] . n = t . n , k [ i - 1 ] [ s ] . t = t . t ) } t . b = o - p ; y >= c ? t . e = 99 : n [ y ] < b ? ( t . e = 256 > n [ y ] ? 16 : 15 , t . n =
n [ y ++ ] ) : ( t . e = d [ n [ y ] - b ] , t . n = f [ n [ y ++ ] - b ] ) ; h = 1 << o - p ; for ( s = g >> p ; s < r ; s += h ) u [ s ] . e = t . e , u [ s ] . b = t . b , u [ s ] . n = t . n , u [ s ] . t = t . t ; for ( s = 1 << o - 1 ; 0 != ( g & s ) ; s >>= 1 ) g ^= s ; for ( g ^= s ; ( g & ( 1 << p ) - 1 ) != z [ i ] ; ) p -= v [ i ] , i -- } this . m = v [ 1 ] ; this . status = 0 != B && 1 != q ? 1 : 0 } } } , l = function ( a ) { for ( ; b < a ; ) c |= ( p . length == t ? - 1 : p [ t ++ ] ) << b , b += 8 } , v = function ( a ) { return c & r [ a ] } , y = function ( a ) { c >>= a ; b -= a } , B = function ( a , c , b ) { var e , s , q ; if ( 0 == b ) return 0 ; for ( q = 0 ; ; ) { l ( n ) ; s = i . list [ v ( n ) ] ; for ( e = s . e ; 16 < e ; ) { if ( 99 == e ) return - 1 ; y ( s . b ) ; e -= 16 ; l ( e ) ; s = s . t [ v ( e ) ] ; e = s . e } y ( s . b ) ; if ( 16 ==
e ) m &= 32767 , a [ c + q ++ ] = g [ m ++ ] = s . n ; else { if ( 15 == e ) break ; l ( e ) ; f = s . n + v ( e ) ; y ( e ) ; l ( x ) ; s = j . list [ v ( x ) ] ; for ( e = s . e ; 16 < e ; ) { if ( 99 == e ) return - 1 ; y ( s . b ) ; e -= 16 ; l ( e ) ; s = s . t [ v ( e ) ] ; e = s . e } y ( s . b ) ; l ( e ) ; h = m - s . n - v ( e ) ; for ( y ( e ) ; 0 < f && q < b ; ) f -- , h &= 32767 , m &= 32767 , a [ c + q ++ ] = g [ m ++ ] = g [ h ++ ] } if ( q == b ) return b } d = - 1 ; return q } , M , F = function ( a , c , b ) { var f , d , e , h , g , o , t , p = Array ( 316 ) ; for ( f = 0 ; f < p . length ; f ++ ) p [ f ] = 0 ; l ( 5 ) ; o = 257 + v ( 5 ) ; y ( 5 ) ; l ( 5 ) ; t = 1 + v ( 5 ) ; y ( 5 ) ; l ( 4 ) ; f = 4 + v ( 4 ) ; y ( 4 ) ; if ( 286 < o || 30 < t ) return - 1 ; for ( d = 0 ; d < f ; d ++ ) l ( 3 ) , p [ E [ d ] ] = v ( 3 ) , y ( 3 ) ; for ( ; 19 > d ; d ++ ) p [ E [ d ] ] =
0 ; n = 7 ; d = new G ( p , 19 , 19 , null , null , n ) ; if ( 0 != d . status ) return - 1 ; i = d . root ; n = d . m ; h = o + t ; for ( f = e = 0 ; f < h ; ) if ( l ( n ) , g = i . list [ v ( n ) ] , d = g . b , y ( d ) , d = g . n , 16 > d ) p [ f ++ ] = e = d ; else if ( 16 == d ) { l ( 2 ) ; d = 3 + v ( 2 ) ; y ( 2 ) ; if ( f + d > h ) return - 1 ; for ( ; 0 < d -- ; ) p [ f ++ ] = e } else { 17 == d ? ( l ( 3 ) , d = 3 + v ( 3 ) , y ( 3 ) ) : ( l ( 7 ) , d = 11 + v ( 7 ) , y ( 7 ) ) ; if ( f + d > h ) return - 1 ; for ( ; 0 < d -- ; ) p [ f ++ ] = 0 ; e = 0 } n = 9 ; d = new G ( p , o , 257 , z , s , n ) ; 0 == n && ( d . status = 1 ) ; if ( 0 != d . status ) return - 1 ; i = d . root ; n = d . m ; for ( f = 0 ; f < t ; f ++ ) p [ f ] = p [ f + o ] ; x = 6 ; d = new G ( p , t , 0 , q , u , x ) ; j = d . root ; x = d . m ; return 0 == x && 257 < o || 0 != d . status ?
- 1 : B ( a , c , b ) } ; this . inflate = function ( r , w ) { null == g && ( g = Array ( 65536 ) ) ; b = c = m = 0 ; d = - 1 ; o = ! 1 ; f = h = 0 ; i = null ; p = r ; t = 0 ; var C = new runtime . ByteArray ( w ) ; a : { var E , I ; for ( E = 0 ; E < w && ! ( o && - 1 == d ) ; ) { if ( 0 < f ) { if ( 0 != d ) for ( ; 0 < f && E < w ; ) f -- , h &= 32767 , m &= 32767 , C [ 0 + E ++ ] = g [ m ++ ] = g [ h ++ ] ; else { for ( ; 0 < f && E < w ; ) f -- , m &= 32767 , l ( 8 ) , C [ 0 + E ++ ] = g [ m ++ ] = v ( 8 ) , y ( 8 ) ; 0 == f && ( d = - 1 ) } if ( E == w ) break } if ( - 1 == d ) { if ( o ) break ; l ( 1 ) ; 0 != v ( 1 ) && ( o = ! 0 ) ; y ( 1 ) ; l ( 2 ) ; d = v ( 2 ) ; y ( 2 ) ; i = null ; f = 0 } switch ( d ) { case 0 : I = C ; var P = 0 + E , L = w - E , H = void 0 , H = b & 7 ; y ( H ) ; l ( 16 ) ; H = v ( 16 ) ; y ( 16 ) ; l ( 16 ) ; if ( H !=
( ~ c & 65535 ) ) I = - 1 ; else { y ( 16 ) ; f = H ; for ( H = 0 ; 0 < f && H < L ; ) f -- , m &= 32767 , l ( 8 ) , I [ P + H ++ ] = g [ m ++ ] = v ( 8 ) , y ( 8 ) ; 0 == f && ( d = - 1 ) ; I = H } break ; case 1 : if ( null != i ) I = B ( C , 0 + E , w - E ) ; else b : { I = C ; P = 0 + E ; L = w - E ; if ( null == e ) { for ( var D = void 0 , H = Array ( 288 ) , D = void 0 , D = 0 ; 144 > D ; D ++ ) H [ D ] = 8 ; for ( ; 256 > D ; D ++ ) H [ D ] = 9 ; for ( ; 280 > D ; D ++ ) H [ D ] = 7 ; for ( ; 288 > D ; D ++ ) H [ D ] = 8 ; a = 7 ; D = new G ( H , 288 , 257 , z , s , a ) ; if ( 0 != D . status ) { alert ( "HufBuild error: " + D . status ) ; I = - 1 ; break b } e = D . root ; a = D . m ; for ( D = 0 ; 30 > D ; D ++ ) H [ D ] = 5 ; M = 5 ; D = new G ( H , 30 , 0 , q , u , M ) ; if ( 1 < D . status ) { e = null ; alert ( "HufBuild error: " +
D . status ) ; I = - 1 ; break b } k = D . root ; M = D . m } i = e ; j = k ; n = a ; x = M ; I = B ( I , P , L ) } break ; case 2 : I = null != i ? B ( C , 0 + E , w - E ) : F ( C , 0 + E , w - E ) ; break ; default : I = - 1 } if ( - 1 == I ) break a ; E += I } } p = null ; return C } } ;
2011-12-06 08:48:24 +01:00
// Input 7
2012-03-16 21:26:34 +01:00
core . Cursor = function ( g , m ) { function e ( a , b ) { for ( var d = b ; d && d !== a ; ) d = d . parentNode ; return d || b } function k ( ) { var c , b , d ; if ( a . parentNode ) { b = 0 ; for ( c = a . parentNode . firstChild ; c && c !== a ; ) b += 1 , c = c . nextSibling ; a . previousSibling && 3 === a . previousSibling . nodeType && a . nextSibling && 3 === a . nextSibling . nodeType && ( d = a . nextSibling , a . previousSibling . appendData ( d . nodeValue ) ) ; for ( c = 0 ; c < g . rangeCount ; c += 1 ) { var o = g . getRangeAt ( c ) , f = b , h = void 0 , i = void 0 , h = a . parentNode , i = e ( a , o . startContainer ) ; e ( a , o . endContainer ) ; i === a ? o . setStart ( h ,
f ) : i === h && o . startOffset > f && o . setStart ( h , o . startOffset - 1 ) ; o . endContainer === a ? o . setEnd ( h , f ) : o . endContainer === h && o . endOffset > f && o . setEnd ( h , o . endOffset - 1 ) } if ( d ) { for ( c = 0 ; c < g . rangeCount ; c += 1 ) { var o = g . getRangeAt ( c ) , f = a . previousSibling , h = d , i = b , j = f . length - h . length ; o . startContainer === h ? o . setStart ( f , j + o . startOffset ) : o . startContainer === f . parentNode && o . startOffset === i && o . setStart ( f , j ) ; o . endContainer === h ? o . setEnd ( f , j + o . endOffset ) : o . endContainer === f . parentNode && o . endOffset === i && o . setEnd ( f , j ) } d . parentNode . removeChild ( d ) } a . parentNode . removeChild ( a ) } }
var a ; a = m . createElementNS ( "urn:webodf:names:cursor" , "cursor" ) ; this . getNode = function ( ) { return a } ; this . updateToSelection = function ( ) { k ( ) ; if ( g . focusNode ) { var c = g . focusNode , b = g . focusOffset ; if ( 3 === c . nodeType ) { var d , e , f , h ; h = c . parentNode ; 0 === b ? h . insertBefore ( a , c ) : b === c . length ? h . appendChild ( a ) : ( d = c . length , e = c . nextSibling , f = m . createTextNode ( c . substringData ( b , d ) ) , c . deleteData ( b , d ) , e ? h . insertBefore ( f , e ) : h . appendChild ( f ) , h . insertBefore ( a , f ) ) } else if ( 9 !== c . nodeType ) { for ( d = c . firstChild ; d && b ; ) d = d . nextSibling , b -=
1 ; c . insertBefore ( a , d ) } } } ; this . remove = function ( ) { k ( ) } } ;
2011-12-06 08:48:24 +01:00
// Input 8
core . UnitTest = function ( ) { } ; core . UnitTest . prototype . setUp = function ( ) { } ; core . UnitTest . prototype . tearDown = function ( ) { } ; core . UnitTest . prototype . description = function ( ) { } ; core . UnitTest . prototype . tests = function ( ) { } ; core . UnitTest . prototype . asyncTests = function ( ) { } ;
2012-03-16 21:26:34 +01:00
core . UnitTestRunner = function ( ) { function g ( a ) { k += 1 ; runtime . log ( "fail" , a ) } function m ( a , c ) { var b ; try { if ( a . length !== c . length ) return ! 1 ; for ( b = 0 ; b < a . length ; b += 1 ) if ( a [ b ] !== c [ b ] ) return ! 1 } catch ( d ) { return ! 1 } return ! 0 } function e ( a , c , b ) { ( "string" !== typeof c || "string" !== typeof b ) && runtime . log ( "WARN: shouldBe() expects string arguments" ) ; var d , e ; try { e = eval ( c ) } catch ( f ) { d = f } a = eval ( b ) ; d ? g ( c + " should be " + a + ". Threw exception " + d ) : ( 0 === a ? e === a && 1 / e === 1 / a : e === a || ( "number" === typeof a && isNaN ( a ) ? "number" === typeof e && isNaN ( e ) :
Object . prototype . toString . call ( a ) === Object . prototype . toString . call ( [ ] ) && m ( e , a ) ) ) ? runtime . log ( "pass" , c + " is " + b ) : typeof e === typeof a ? g ( c + " should be " + a + ". Was " + ( 0 === e && 0 > 1 / e ? "-0" : "" + e ) + "." ) : g ( c + " should be " + a + " (of type " + typeof a + "). Was " + e + " (of type " + typeof e + ")." ) } var k = 0 ; this . shouldBeNull = function ( a , c ) { e ( a , c , "null" ) } ; this . shouldBeNonNull = function ( a , c ) { var b , d ; try { d = eval ( c ) } catch ( e ) { b = e } b ? g ( c + " should be non-null. Threw exception " + b ) : null !== d ? runtime . log ( "pass" , c + " is non-null." ) : g ( c + " should be non-null. Was " +
d ) } ; this . shouldBe = e ; this . countFailedTests = function ( ) { return k } } ;
core . UnitTester = function ( ) { var g = 0 , m = { } ; this . runTests = function ( e , k ) { function a ( b ) { if ( 0 === b . length ) m [ c ] = f , g += d . countFailedTests ( ) , k ( ) ; else { i = b [ 0 ] ; var e = Runtime . getFunctionName ( i ) ; runtime . log ( "Running " + e ) ; n = d . countFailedTests ( ) ; o . setUp ( ) ; i ( function ( ) { o . tearDown ( ) ; f [ e ] = n === d . countFailedTests ( ) ; a ( b . slice ( 1 ) ) } ) } } var c = Runtime . getFunctionName ( e ) , b , d = new core . UnitTestRunner , o = new e ( d ) , f = { } , h , i , j , n ; if ( c . hasOwnProperty ( m ) ) runtime . log ( "Test " + c + " has already run." ) ; else { runtime . log ( "Running " + c + ": " + o . description ( ) ) ;
j = o . tests ( ) ; for ( h = 0 ; h < j . length ; h += 1 ) i = j [ h ] , b = Runtime . getFunctionName ( i ) , runtime . log ( "Running " + b ) , n = d . countFailedTests ( ) , o . setUp ( ) , i ( ) , o . tearDown ( ) , f [ b ] = n === d . countFailedTests ( ) ; a ( o . asyncTests ( ) ) } } ; this . countFailedTests = function ( ) { return g } ; this . results = function ( ) { return m } } ;
2011-12-06 08:48:24 +01:00
// Input 9
2012-03-16 21:26:34 +01:00
core . PointWalker = function ( g ) { function m ( a ) { for ( var c = - 1 ; a ; ) a = a . previousSibling , c += 1 ; return c } var e = g , k = null , a = g && g . firstChild , c = 0 ; this . setPoint = function ( b , d ) { e = b ; c = d ; if ( 3 === e . nodeType ) k = a = null ; else { for ( a = e . firstChild ; d ; ) d -= 1 , a = a . nextSibling ; k = a ? a . previousSibling : e . lastChild } } ; this . stepForward = function ( ) { var b ; if ( 3 === e . nodeType && ( b = "number" === typeof e . nodeValue . length ? e . nodeValue . length : e . nodeValue . length ( ) , c < b ) ) return c += 1 , ! 0 ; if ( a ) return 1 === a . nodeType ? ( e = a , k = null , a = e . firstChild , c = 0 ) : 3 === a . nodeType ?
( e = a , a = k = null , c = 0 ) : ( k = a , a = a . nextSibling , c += 1 ) , ! 0 ; return e !== g ? ( k = e , a = k . nextSibling , e = e . parentNode , c = m ( k ) + 1 , ! 0 ) : ! 1 } ; this . stepBackward = function ( ) { if ( 3 === e . nodeType && 0 < c ) return c -= 1 , ! 0 ; if ( k ) return 1 === k . nodeType ? ( e = k , k = e . lastChild , a = null , c = m ( k ) + 1 ) : 3 === k . nodeType ? ( e = k , a = k = null , c = "number" === typeof e . nodeValue . length ? e . nodeValue . length : e . nodeValue . length ( ) ) : ( a = k , k = k . previousSibling , c -= 1 ) , ! 0 ; return e !== g ? ( a = e , k = a . previousSibling , e = e . parentNode , c = m ( a ) , ! 0 ) : ! 1 } ; this . node = function ( ) { return e } ; this . position =
function ( ) { return c } ; this . precedingSibling = function ( ) { return k } ; this . followingSibling = function ( ) { return a } } ;
2011-12-06 08:48:24 +01:00
// Input 10
2012-03-16 21:26:34 +01:00
core . Async = function ( ) { this . forEach = function ( g , m , e ) { function k ( a ) { b !== c && ( a ? ( b = c , e ( a ) ) : ( b += 1 , b === c && e ( null ) ) ) } var a , c = g . length , b = 0 ; for ( a = 0 ; a < c ; a += 1 ) m ( g [ a ] , k ) } } ;
2011-12-06 08:48:24 +01:00
// Input 11
2012-03-16 21:26:34 +01:00
runtime . loadClass ( "core.RawInflate" ) ; runtime . loadClass ( "core.ByteArray" ) ; runtime . loadClass ( "core.ByteArrayWriter" ) ; runtime . loadClass ( "core.Base64" ) ;
core . Zip = function ( g , m ) { function e ( a ) { var c = [ 0 , 1996959894 , 3993919788 , 2567524794 , 124634137 , 1886057615 , 3915621685 , 2657392035 , 249268274 , 2044508324 , 3772115230 , 2547177864 , 162941995 , 2125561021 , 3887607047 , 2428444049 , 498536548 , 1789927666 , 4089016648 , 2227061214 , 450548861 , 1843258603 , 4107580753 , 2211677639 , 325883990 , 1684777152 , 4251122042 , 2321926636 , 335633487 , 1661365465 , 4195302755 , 2366115317 , 997073096 , 1281953886 , 3579855332 , 2724688242 , 1006888145 , 1258607687 , 3524101629 , 2768942443 , 901097722 , 1119000684 , 3686517206 , 2898065728 ,
2011-12-06 08:48:24 +01:00
853044451 , 1172266101 , 3705015759 , 2882616665 , 651767980 , 1373503546 , 3369554304 , 3218104598 , 565507253 , 1454621731 , 3485111705 , 3099436303 , 671266974 , 1594198024 , 3322730930 , 2970347812 , 795835527 , 1483230225 , 3244367275 , 3060149565 , 1994146192 , 31158534 , 2563907772 , 4023717930 , 1907459465 , 112637215 , 2680153253 , 3904427059 , 2013776290 , 251722036 , 2517215374 , 3775830040 , 2137656763 , 141376813 , 2439277719 , 3865271297 , 1802195444 , 476864866 , 2238001368 , 4066508878 , 1812370925 , 453092731 , 2181625025 , 4111451223 , 1706088902 , 314042704 , 2344532202 ,
4240017532 , 1658658271 , 366619977 , 2362670323 , 4224994405 , 1303535960 , 984961486 , 2747007092 , 3569037538 , 1256170817 , 1037604311 , 2765210733 , 3554079995 , 1131014506 , 879679996 , 2909243462 , 3663771856 , 1141124467 , 855842277 , 2852801631 , 3708648649 , 1342533948 , 654459306 , 3188396048 , 3373015174 , 1466479909 , 544179635 , 3110523913 , 3462522015 , 1591671054 , 702138776 , 2966460450 , 3352799412 , 1504918807 , 783551873 , 3082640443 , 3233442989 , 3988292384 , 2596254646 , 62317068 , 1957810842 , 3939845945 , 2647816111 , 81470997 , 1943803523 , 3814918930 , 2489596804 ,
225274430 , 2053790376 , 3826175755 , 2466906013 , 167816743 , 2097651377 , 4027552580 , 2265490386 , 503444072 , 1762050814 , 4150417245 , 2154129355 , 426522225 , 1852507879 , 4275313526 , 2312317920 , 282753626 , 1742555852 , 4189708143 , 2394877945 , 397917763 , 1622183637 , 3604390888 , 2714866558 , 953729732 , 1340076626 , 3518719985 , 2797360999 , 1068828381 , 1219638859 , 3624741850 , 2936675148 , 906185462 , 1090812512 , 3747672003 , 2825379669 , 829329135 , 1181335161 , 3412177804 , 3160834842 , 628085408 , 1382605366 , 3423369109 , 3138078467 , 570562233 , 1426400815 , 3317316542 ,
2998733608 , 733239954 , 1555261956 , 3268935591 , 3050360625 , 752459403 , 1541320221 , 2607071920 , 3965973030 , 1969922972 , 40735498 , 2617837225 , 3943577151 , 1913087877 , 83908371 , 2512341634 , 3803740692 , 2075208622 , 213261112 , 2463272603 , 3855990285 , 2094854071 , 198958881 , 2262029012 , 4057260610 , 1759359992 , 534414190 , 2176718541 , 4139329115 , 1873836001 , 414664567 , 2282248934 , 4279200368 , 1711684554 , 285281116 , 2405801727 , 4167216745 , 1634467795 , 376229701 , 2685067896 , 3608007406 , 1308918612 , 956543938 , 2808555105 , 3495958263 , 1231636301 , 1047427035 ,
2012-03-16 21:26:34 +01:00
2932959818 , 3654703836 , 1088359270 , 936918E3 , 2847714899 , 3736837829 , 1202900863 , 817233897 , 3183342108 , 3401237130 , 1404277552 , 615818150 , 3134207493 , 3453421203 , 1423857449 , 601450431 , 3009837614 , 3294710456 , 1567103746 , 711928724 , 3020668471 , 3272380065 , 1510334235 , 755167117 ] , b , f , d = a . length , e = 0 , e = 0 ; b = - 1 ; for ( f = 0 ; f < d ; f += 1 ) e = ( b ^ a [ f ] ) & 255 , e = c [ e ] , b = b >>> 8 ^ e ; return b ^ - 1 } function k ( a ) { return new Date ( ( a >> 25 & 127 ) + 1980 , ( a >> 21 & 15 ) - 1 , a >> 16 & 31 , a >> 11 & 15 , a >> 5 & 63 , ( a & 31 ) << 1 ) } function a ( a ) { var c = a . getFullYear ( ) ; return 1980 > c ? 0 : c - 1980 <<
25 | a . getMonth ( ) + 1 << 21 | a . getDate ( ) << 16 | a . getHours ( ) << 11 | a . getMinutes ( ) << 5 | a . getSeconds ( ) >> 1 } function c ( a , c ) { var b , f , d , e , j , h , l , g = this ; this . load = function ( c ) { if ( void 0 !== g . data ) c ( null , g . data ) ; else { var d = j + 34 + b + f + 256 ; d + l > n && ( d = n - l ) ; runtime . read ( a , l , d , function ( b , f ) { if ( b ) c ( b , f ) ; else a : { var d = f , l = new core . ByteArray ( d ) , i = l . readUInt32LE ( ) , q ; if ( 67324752 !== i ) c ( "File entry signature is wrong." + i . toString ( ) + " " + d . length . toString ( ) , null ) ; else { l . pos += 22 ; i = l . readUInt16LE ( ) ; q = l . readUInt16LE ( ) ; l . pos += i + q ; if ( e ) { d = d . slice ( l . pos ,
l . pos + j ) ; if ( j !== d . length ) { c ( "The amount of compressed bytes read was " + d . length . toString ( ) + " instead of " + j . toString ( ) + " for " + g . filename + " in " + a + "." , null ) ; break a } d = p ( d , h ) } else d = d . slice ( l . pos , l . pos + h ) ; h !== d . length ? c ( "The amount of bytes read was " + d . length . toString ( ) + " instead of " + h . toString ( ) + " for " + g . filename + " in " + a + "." , null ) : ( g . data = d , c ( null , d ) ) } } } ) } } ; this . set = function ( a , c , b , d ) { g . filename = a ; g . data = c ; g . compressed = b ; g . date = d } ; this . error = null ; c && ( 33639248 !== c . readUInt32LE ( ) ? this . error = "Central directory entry has wrong signature at position " +
( c . pos - 4 ) . toString ( ) + ' for file "' + a + '": ' + c . data . length . toString ( ) : ( c . pos += 6 , e = c . readUInt16LE ( ) , this . date = k ( c . readUInt32LE ( ) ) , c . readUInt32LE ( ) , j = c . readUInt32LE ( ) , h = c . readUInt32LE ( ) , b = c . readUInt16LE ( ) , f = c . readUInt16LE ( ) , d = c . readUInt16LE ( ) , c . pos += 8 , l = c . readUInt32LE ( ) , this . filename = runtime . byteArrayToString ( c . data . slice ( c . pos , c . pos + b ) , "utf8" ) , c . pos += b + f + d ) ) } function b ( a , b ) { if ( 22 !== a . length ) b ( "Central directory length should be 22." , t ) ; else { var d = new core . ByteArray ( a ) , f ; f = d . readUInt32LE ( ) ; 101010256 !==
f ? b ( "Central directory signature is wrong: " + f . toString ( ) , t ) : 0 !== d . readUInt16LE ( ) ? b ( "Zip files with non-zero disk numbers are not supported." , t ) : 0 !== d . readUInt16LE ( ) ? b ( "Zip files with non-zero disk numbers are not supported." , t ) : ( f = d . readUInt16LE ( ) , x = d . readUInt16LE ( ) , f !== x ? b ( "Number of entries is inconsistent." , t ) : ( f = d . readUInt32LE ( ) , d = d . readUInt16LE ( ) , d = n - 22 - f , runtime . read ( g , d , n - d , function ( a , d ) { a : { var f = new core . ByteArray ( d ) , e , l ; j = [ ] ; for ( e = 0 ; e < x ; e += 1 ) { l = new c ( g , f ) ; if ( l . error ) { b ( l . error , t ) ; break a } j [ j . length ] =
l } b ( null , t ) } } ) ) ) } } function d ( a , c ) { var b = null , d , f ; for ( f = 0 ; f < j . length ; f += 1 ) if ( d = j [ f ] , d . filename === a ) { b = d ; break } b ? b . data ? c ( null , b . data ) : b . load ( c ) : c ( a + " not found." , null ) } function o ( a , c ) { d ( a , function ( a , b ) { if ( a ) return c ( a , null ) ; b = runtime . byteArrayToString ( b , "utf8" ) ; c ( null , b ) } ) } function f ( c ) { var b = new core . ByteArrayWriter ( "utf8" ) , d = 0 ; b . appendArray ( [ 80 , 75 , 3 , 4 , 20 , 0 , 0 , 0 , 0 , 0 ] ) ; c . data && ( d = c . data . length ) ; b . appendUInt32LE ( a ( c . date ) ) ; b . appendUInt32LE ( e ( c . data ) ) ; b . appendUInt32LE ( d ) ; b . appendUInt32LE ( d ) ; b . appendUInt16LE ( c . filename . length ) ;
b . appendUInt16LE ( 0 ) ; b . appendString ( c . filename ) ; c . data && b . appendByteArray ( c . data ) ; return b } function h ( c , b ) { var d = new core . ByteArrayWriter ( "utf8" ) , f = 0 ; d . appendArray ( [ 80 , 75 , 1 , 2 , 20 , 0 , 20 , 0 , 0 , 0 , 0 , 0 ] ) ; c . data && ( f = c . data . length ) ; d . appendUInt32LE ( a ( c . date ) ) ; d . appendUInt32LE ( e ( c . data ) ) ; d . appendUInt32LE ( f ) ; d . appendUInt32LE ( f ) ; d . appendUInt16LE ( c . filename . length ) ; d . appendArray ( [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ] ) ; d . appendUInt32LE ( b ) ; d . appendString ( c . filename ) ; return d } function i ( a , c ) { if ( a === j . length ) c ( null ) ; else { var b = j [ a ] ;
void 0 !== b . data ? i ( a + 1 , c ) : b . load ( function ( b ) { b ? c ( b ) : i ( a + 1 , c ) } ) } } var j , n , x , p = ( new core . RawInflate ) . inflate , t = this , r = new core . Base64 ; this . load = d ; this . save = function ( a , b , d , f ) { var e , h ; for ( e = 0 ; e < j . length ; e += 1 ) if ( h = j [ e ] , h . filename === a ) { h . set ( a , b , d , f ) ; return } h = new c ( g ) ; h . set ( a , b , d , f ) ; j . push ( h ) } ; this . write = function ( a ) { i ( 0 , function ( c ) { if ( c ) a ( c ) ; else { var c = new core . ByteArrayWriter ( "utf8" ) , b , d , e , i = [ 0 ] ; for ( b = 0 ; b < j . length ; b += 1 ) c . appendByteArrayWriter ( f ( j [ b ] ) ) , i . push ( c . getLength ( ) ) ; e = c . getLength ( ) ; for ( b = 0 ; b < j . length ; b +=
1 ) d = j [ b ] , c . appendByteArrayWriter ( h ( d , i [ b ] ) ) ; b = c . getLength ( ) - e ; c . appendArray ( [ 80 , 75 , 5 , 6 , 0 , 0 , 0 , 0 ] ) ; c . appendUInt16LE ( j . length ) ; c . appendUInt16LE ( j . length ) ; c . appendUInt32LE ( b ) ; c . appendUInt32LE ( e ) ; c . appendArray ( [ 0 , 0 ] ) ; runtime . writeFile ( g , c . getByteArray ( ) , a ) } } ) } ; this . loadContentXmlAsFragments = function ( a , c ) { o ( a , function ( a , b ) { if ( a ) return c . rootElementReady ( a ) ; c . rootElementReady ( null , b , ! 0 ) } ) } ; this . loadAsString = o ; this . loadAsDOM = function ( a , c ) { o ( a , function ( a , b ) { a ? c ( a , null ) : ( b = ( new DOMParser ) . parseFromString ( b ,
"text/xml" ) , c ( null , b ) ) } ) } ; this . loadAsDataURL = function ( a , c , b ) { d ( a , function ( a , d ) { if ( a ) return b ( a , null ) ; var f = 0 , e ; c || ( c = 80 === d [ 1 ] && 78 === d [ 2 ] && 71 === d [ 3 ] ? "image/png" : 255 === d [ 0 ] && 216 === d [ 1 ] && 255 === d [ 2 ] ? "image/jpeg" : 71 === d [ 0 ] && 73 === d [ 1 ] && 70 === d [ 2 ] ? "image/gif" : "" ) ; for ( e = "data:" + c + ";base64," ; f < d . length ; ) e += r . convertUTF8ArrayToBase64 ( d . slice ( f , Math . min ( f + 45E3 , d . length ) ) ) , f += 45E3 ; b ( null , e ) } ) } ; this . getEntries = function ( ) { return j . slice ( ) } ; n = - 1 ; null === m ? j = [ ] : runtime . getFileSize ( g , function ( a ) { n = a ; 0 > n ? m ( "File '" +
g + "' cannot be read." , t ) : runtime . read ( g , n - 22 , 22 , function ( a , c ) { a || null === m ? m ( a , t ) : b ( c , m ) } ) } ) } ;
2011-12-06 08:48:24 +01:00
// Input 12
xmldom . LSSerializerFilter = function ( ) { } ;
// Input 13
2012-03-16 21:26:34 +01:00
"function" !== typeof Object . create && ( Object . create = function ( g ) { var m = function ( ) { } ; m . prototype = g ; return new m } ) ;
xmldom . LSSerializer = function ( ) { function g ( e , k ) { var a = "" , c = Object . create ( e ) , b = m . filter ? m . filter . acceptNode ( k ) : 1 , d ; if ( 1 === b ) { d = "" ; var o = k . attributes , f , h , i , j = "" , n ; if ( o ) { c [ k . namespaceURI ] !== k . prefix && ( c [ k . namespaceURI ] = k . prefix ) ; d += "<" + k . nodeName ; f = o . length ; for ( h = 0 ; h < f ; h += 1 ) if ( i = o . item ( h ) , "http://www.w3.org/2000/xmlns/" !== i . namespaceURI && ( n = m . filter ? m . filter . acceptNode ( i ) : 1 , 1 === n ) ) { if ( i . namespaceURI ) { n = i . prefix ; var x = i . namespaceURI ; c . hasOwnProperty ( x ) ? n = c [ x ] + ":" : ( c [ x ] !== n && ( c [ x ] = n ) , n += ":" ) } else n = "" ;
j += " " + ( n + i . localName + '="' + i . nodeValue + '"' ) } for ( h in c ) c . hasOwnProperty ( h ) && ( ( n = c [ h ] ) ? "xmlns" !== n && ( d += " xmlns:" + c [ h ] + '="' + h + '"' ) : d += ' xmlns="' + h + '"' ) ; d += j + ">" } a += d } if ( 1 === b || 3 === b ) { for ( d = k . firstChild ; d ; ) a += g ( c , d ) , d = d . nextSibling ; k . nodeValue && ( a += k . nodeValue ) } 1 === b && ( c = "" , 1 === k . nodeType && ( c += "</" + k . nodeName + ">" ) , a += c ) ; return a } var m = this ; this . filter = null ; this . writeToString = function ( e , k ) { if ( ! e ) return "" ; var a ; if ( k ) { a = k ; var c = { } , b ; for ( b in a ) a . hasOwnProperty ( b ) && ( c [ a [ b ] ] = b ) ; a = c } else a = { } ; return g ( a ,
2011-12-06 08:48:24 +01:00
e ) } } ;
// Input 14
2012-03-16 21:26:34 +01:00
xmldom . RelaxNGParser = function ( ) { function g ( a , c ) { this . message = function ( ) { c && ( a += 1 === c . nodeType ? " Element " : " Node " , a += c . nodeName , c . nodeValue && ( a += " with value '" + c . nodeValue + "'" ) , a += "." ) ; return a } } function m ( a ) { if ( 2 >= a . e . length ) return a ; var c = { name : a . name , e : a . e . slice ( 0 , 2 ) } ; return m ( { name : a . name , e : [ c ] . concat ( a . e . slice ( 2 ) ) } ) } function e ( a ) { var a = a . split ( ":" , 2 ) , c = "" , b ; 1 === a . length ? a = [ "" , a [ 0 ] ] : c = a [ 0 ] ; for ( b in d ) d [ b ] === c && ( a [ 0 ] = b ) ; return a } function k ( a , c ) { for ( var b = 0 , d , g , o = a . name ; a . e && b < a . e . length ; ) if ( d =
a . e [ b ] , "ref" === d . name ) { g = c [ d . a . name ] ; if ( ! g ) throw d . a . name + " was not defined." ; d = a . e . slice ( b + 1 ) ; a . e = a . e . slice ( 0 , b ) ; a . e = a . e . concat ( g . e ) ; a . e = a . e . concat ( d ) } else b += 1 , k ( d , c ) ; d = a . e ; if ( "choice" === o && ( ! d || ! d [ 1 ] || "empty" === d [ 1 ] . name ) ) ! d || ! d [ 0 ] || "empty" === d [ 0 ] . name ? ( delete a . e , a . name = "empty" ) : ( d [ 1 ] = d [ 0 ] , d [ 0 ] = { name : "empty" } ) ; if ( "group" === o || "interleave" === o ) "empty" === d [ 0 ] . name ? "empty" === d [ 1 ] . name ? ( delete a . e , a . name = "empty" ) : ( o = a . name = d [ 1 ] . name , a . names = d [ 1 ] . names , d = a . e = d [ 1 ] . e ) : "empty" === d [ 1 ] . name && ( o = a . name =
d [ 0 ] . name , a . names = d [ 0 ] . names , d = a . e = d [ 0 ] . e ) ; "oneOrMore" === o && "empty" === d [ 0 ] . name && ( delete a . e , a . name = "empty" ) ; if ( "attribute" === o ) { g = a . names ? a . names . length : 0 ; for ( var p , t = a . localnames = [ g ] , r = a . namespaces = [ g ] , b = 0 ; b < g ; b += 1 ) p = e ( a . names [ b ] ) , r [ b ] = p [ 0 ] , t [ b ] = p [ 1 ] } "interleave" === o && ( "interleave" === d [ 0 ] . name ? "interleave" === d [ 1 ] . name ? a . e = d [ 0 ] . e . concat ( d [ 1 ] . e ) : a . e = [ d [ 1 ] ] . concat ( d [ 0 ] . e ) : "interleave" === d [ 1 ] . name && ( a . e = [ d [ 0 ] ] . concat ( d [ 1 ] . e ) ) ) } function a ( c , d ) { for ( var b = 0 , e ; c . e && b < c . e . length ; ) e = c . e [ b ] , "elementref" ===
e . name ? ( e . id = e . id || 0 , c . e [ b ] = d [ e . id ] ) : "element" !== e . name && a ( e , d ) , b += 1 } var c = this , b , d = { "http://www.w3.org/XML/1998/namespace" : "xml" } , o ; o = function ( a , c , b ) { var g = [ ] , n , k , p = a . localName , t = [ ] ; n = a . attributes ; var r = p , z = t , s = { } , q , u ; for ( q = 0 ; q < n . length ; q += 1 ) if ( u = n . item ( q ) , u . namespaceURI ) "http://www.w3.org/2000/xmlns/" === u . namespaceURI && ( d [ u . value ] = u . localName ) ; else { "name" === u . localName && ( "element" === r || "attribute" === r ) && z . push ( u . value ) ; if ( "name" === u . localName || "combine" === u . localName || "type" === u . localName ) { var E =
u , C ; C = u . value ; C = C . replace ( /^\s\s*/ , "" ) ; for ( var w = /\s/ , G = C . length - 1 ; w . test ( C . charAt ( G ) ) ; ) G -= 1 ; C = C . slice ( 0 , G + 1 ) ; E . value = C } s [ u . localName ] = u . value } n = s ; n . combine = n . combine || void 0 ; a = a . firstChild ; r = g ; z = t ; for ( s = "" ; a ; ) { if ( 1 === a . nodeType && "http://relaxng.org/ns/structure/1.0" === a . namespaceURI ) { if ( q = o ( a , c , r ) ) "name" === q . name ? z . push ( d [ q . a . ns ] + ":" + q . text ) : "choice" === q . name && q . names && q . names . length && ( z = z . concat ( q . names ) , delete q . names ) , r . push ( q ) } else 3 === a . nodeType && ( s += a . nodeValue ) ; a = a . nextSibling } a = s ; "value" !==
p && "param" !== p && ( a = /^\s*([\s\S]*\S)?\s*$/ . exec ( a ) [ 1 ] ) ; "value" === p && void 0 === n . type && ( n . type = "token" , n . datatypeLibrary = "" ) ; if ( ( "attribute" === p || "element" === p ) && void 0 !== n . name ) k = e ( n . name ) , g = [ { name : "name" , text : k [ 1 ] , a : { ns : k [ 0 ] } } ] . concat ( g ) , delete n . name ; "name" === p || "nsName" === p || "value" === p ? void 0 === n . ns && ( n . ns = "" ) : delete n . ns ; "name" === p && ( k = e ( a ) , n . ns = k [ 0 ] , a = k [ 1 ] ) ; if ( 1 < g . length && ( "define" === p || "oneOrMore" === p || "zeroOrMore" === p || "optional" === p || "list" === p || "mixed" === p ) ) g = [ { name : "group" , e : m ( { name : "group" ,
e : g } ) . e } ] ; 2 < g . length && "element" === p && ( g = [ g [ 0 ] ] . concat ( { name : "group" , e : m ( { name : "group" , e : g . slice ( 1 ) } ) . e } ) ) ; 1 === g . length && "attribute" === p && g . push ( { name : "text" , text : a } ) ; if ( 1 === g . length && ( "choice" === p || "group" === p || "interleave" === p ) ) p = g [ 0 ] . name , t = g [ 0 ] . names , n = g [ 0 ] . a , a = g [ 0 ] . text , g = g [ 0 ] . e ; else if ( 2 < g . length && ( "choice" === p || "group" === p || "interleave" === p ) ) g = m ( { name : p , e : g } ) . e ; "mixed" === p && ( p = "interleave" , g = [ g [ 0 ] , { name : "text" } ] ) ; "optional" === p && ( p = "choice" , g = [ g [ 0 ] , { name : "empty" } ] ) ; "zeroOrMore" === p && ( p = "choice" ,
g = [ { name : "oneOrMore" , e : [ g [ 0 ] ] } , { name : "empty" } ] ) ; if ( "define" === p && n . combine ) { a : { r = n . combine ; z = n . name ; s = g ; for ( q = 0 ; b && q < b . length ; q += 1 ) if ( u = b [ q ] , "define" === u . name && u . a && u . a . name === z ) { u . e = [ { name : r , e : u . e . concat ( s ) } ] ; b = u ; break a } b = null } if ( b ) return } b = { name : p } ; g && 0 < g . length && ( b . e = g ) ; for ( k in n ) if ( n . hasOwnProperty ( k ) ) { b . a = n ; break } void 0 !== a && ( b . text = a ) ; t && 0 < t . length && ( b . names = t ) ; "element" === p && ( b . id = c . length , c . push ( b ) , b = { name : "elementref" , id : b . id } ) ; return b } ; this . parseRelaxNGDOM = function ( f , e ) { var i = [ ] , j = o ( f &&
f . documentElement , i , void 0 ) , n , m , p = { } ; for ( n = 0 ; n < j . e . length ; n += 1 ) m = j . e [ n ] , "define" === m . name ? p [ m . a . name ] = m : "start" === m . name && ( b = m ) ; if ( ! b ) return [ new g ( "No Relax NG start element was found." ) ] ; k ( b , p ) ; for ( n in p ) p . hasOwnProperty ( n ) && k ( p [ n ] , p ) ; for ( n = 0 ; n < i . length ; n += 1 ) k ( i [ n ] , p ) ; e && ( c . rootPattern = e ( b . e [ 0 ] , i ) ) ; a ( b , i ) ; for ( n = 0 ; n < i . length ; n += 1 ) a ( i [ n ] , i ) ; c . start = b ; c . elements = i ; c . nsmap = d ; return null } } ;
2011-12-06 08:48:24 +01:00
// Input 15
runtime . loadClass ( "xmldom.RelaxNGParser" ) ;
2012-03-16 21:26:34 +01:00
xmldom . RelaxNG = function ( ) { function g ( a ) { return function ( ) { var c ; return function ( ) { void 0 === c && ( c = a ( ) ) ; return c } } ( ) } function m ( a , c ) { return function ( ) { var b = { } , d = 0 ; return function ( f ) { var e = f . hash || f . toString ( ) , g ; g = b [ e ] ; if ( void 0 !== g ) return g ; b [ e ] = g = c ( f ) ; g . hash = a + d . toString ( ) ; d += 1 ; return g } } ( ) } function e ( a ) { return function ( ) { var c = { } ; return function ( b ) { var d , f ; f = c [ b . localName ] ; if ( void 0 === f ) c [ b . localName ] = f = { } ; else if ( d = f [ b . namespaceURI ] , void 0 !== d ) return d ; return f [ b . namespaceURI ] = d = a ( b ) } } ( ) } function k ( a ,
c , b ) { return function ( ) { var d = { } , f = 0 ; return function ( e , g ) { var h = c && c ( e , g ) , j , i ; if ( void 0 !== h ) return h ; h = e . hash || e . toString ( ) ; j = g . hash || g . toString ( ) ; i = d [ h ] ; if ( void 0 === i ) d [ h ] = i = { } ; else if ( h = i [ j ] , void 0 !== h ) return h ; i [ j ] = h = b ( e , g ) ; h . hash = a + f . toString ( ) ; f += 1 ; return h } } ( ) } function a ( c , b ) { "choice" === b . p1 . type ? a ( c , b . p1 ) : c [ b . p1 . hash ] = b . p1 ; "choice" === b . p2 . type ? a ( c , b . p2 ) : c [ b . p2 . hash ] = b . p2 } function c ( a , c ) { return { type : "element" , nc : a , nullable : ! 1 , textDeriv : function ( ) { return q } , startTagOpenDeriv : function ( b ) { return a . contains ( b ) ?
n ( c , u ) : q } , attDeriv : function ( ) { return q } , startTagCloseDeriv : function ( ) { return this } } } function b ( ) { return { type : "list" , nullable : ! 1 , hash : "list" , textDeriv : function ( ) { return u } } } function d ( a , c , b , e ) { if ( c === q ) return q ; if ( e >= b . length ) return c ; 0 === e && ( e = 0 ) ; for ( var g = b . item ( e ) ; g . namespaceURI === f ; ) { e += 1 ; if ( e >= b . length ) return c ; g = b . item ( e ) } return g = d ( a , c . attDeriv ( a , b . item ( e ) ) , b , e + 1 ) } function o ( a , c , b ) { b . e [ 0 ] . a ? ( a . push ( b . e [ 0 ] . text ) , c . push ( b . e [ 0 ] . a . ns ) ) : o ( a , c , b . e [ 0 ] ) ; b . e [ 1 ] . a ? ( a . push ( b . e [ 1 ] . text ) , c . push ( b . e [ 1 ] . a . ns ) ) :
o ( a , c , b . e [ 1 ] ) } var f = "http://www.w3.org/2000/xmlns/" , h , i , j , n , x , p , t , r , z , s , q = { type : "notAllowed" , nullable : ! 1 , hash : "notAllowed" , textDeriv : function ( ) { return q } , startTagOpenDeriv : function ( ) { return q } , attDeriv : function ( ) { return q } , startTagCloseDeriv : function ( ) { return q } , endTagDeriv : function ( ) { return q } } , u = { type : "empty" , nullable : ! 0 , hash : "empty" , textDeriv : function ( ) { return q } , startTagOpenDeriv : function ( ) { return q } , attDeriv : function ( ) { return q } , startTagCloseDeriv : function ( ) { return u } , endTagDeriv : function ( ) { return q } } ,
E = { type : "text" , nullable : ! 0 , hash : "text" , textDeriv : function ( ) { return E } , startTagOpenDeriv : function ( ) { return q } , attDeriv : function ( ) { return q } , startTagCloseDeriv : function ( ) { return E } , endTagDeriv : function ( ) { return q } } , C , w , G ; h = k ( "choice" , function ( a , b ) { if ( a === q ) return b ; if ( b === q || a === b ) return a } , function ( b , c ) { var d = { } , f ; a ( d , { p1 : b , p2 : c } ) ; c = b = void 0 ; for ( f in d ) d . hasOwnProperty ( f ) && ( void 0 === b ? b = d [ f ] : c = void 0 === c ? d [ f ] : h ( c , d [ f ] ) ) ; return function ( a , b ) { return { type : "choice" , p1 : a , p2 : b , nullable : a . nullable || b . nullable ,
textDeriv : function ( c , d ) { return h ( a . textDeriv ( c , d ) , b . textDeriv ( c , d ) ) } , startTagOpenDeriv : e ( function ( c ) { return h ( a . startTagOpenDeriv ( c ) , b . startTagOpenDeriv ( c ) ) } ) , attDeriv : function ( c , d ) { return h ( a . attDeriv ( c , d ) , b . attDeriv ( c , d ) ) } , startTagCloseDeriv : g ( function ( ) { return h ( a . startTagCloseDeriv ( ) , b . startTagCloseDeriv ( ) ) } ) , endTagDeriv : g ( function ( ) { return h ( a . endTagDeriv ( ) , b . endTagDeriv ( ) ) } ) } } ( b , c ) } ) ; i = function ( a , b , c ) { return function ( ) { var d = { } , f = 0 ; return function ( e , g ) { var h = b && b ( e , g ) , j , i ; if ( void 0 !== h ) return h ;
h = e . hash || e . toString ( ) ; j = g . hash || g . toString ( ) ; h < j && ( i = h , h = j , j = i , i = e , e = g , g = i ) ; i = d [ h ] ; if ( void 0 === i ) d [ h ] = i = { } ; else if ( h = i [ j ] , void 0 !== h ) return h ; i [ j ] = h = c ( e , g ) ; h . hash = a + f . toString ( ) ; f += 1 ; return h } } ( ) } ( "interleave" , function ( a , b ) { if ( a === q || b === q ) return q ; if ( a === u ) return b ; if ( b === u ) return a } , function ( a , b ) { return { type : "interleave" , p1 : a , p2 : b , nullable : a . nullable && b . nullable , textDeriv : function ( c , d ) { return h ( i ( a . textDeriv ( c , d ) , b ) , i ( a , b . textDeriv ( c , d ) ) ) } , startTagOpenDeriv : e ( function ( c ) { return h ( C ( function ( a ) { return i ( a ,
b ) } , a . startTagOpenDeriv ( c ) ) , C ( function ( b ) { return i ( a , b ) } , b . startTagOpenDeriv ( c ) ) ) } ) , attDeriv : function ( c , d ) { return h ( i ( a . attDeriv ( c , d ) , b ) , i ( a , b . attDeriv ( c , d ) ) ) } , startTagCloseDeriv : g ( function ( ) { return i ( a . startTagCloseDeriv ( ) , b . startTagCloseDeriv ( ) ) } ) } } ) ; j = k ( "group" , function ( a , b ) { if ( a === q || b === q ) return q ; if ( a === u ) return b ; if ( b === u ) return a } , function ( a , b ) { return { type : "group" , p1 : a , p2 : b , nullable : a . nullable && b . nullable , textDeriv : function ( c , d ) { var f = j ( a . textDeriv ( c , d ) , b ) ; return a . nullable ? h ( f , b . textDeriv ( c ,
d ) ) : f } , startTagOpenDeriv : function ( c ) { var d = C ( function ( a ) { return j ( a , b ) } , a . startTagOpenDeriv ( c ) ) ; return a . nullable ? h ( d , b . startTagOpenDeriv ( c ) ) : d } , attDeriv : function ( c , d ) { return h ( j ( a . attDeriv ( c , d ) , b ) , j ( a , b . attDeriv ( c , d ) ) ) } , startTagCloseDeriv : g ( function ( ) { return j ( a . startTagCloseDeriv ( ) , b . startTagCloseDeriv ( ) ) } ) } } ) ; n = k ( "after" , function ( a , b ) { if ( a === q || b === q ) return q } , function ( a , b ) { return { type : "after" , p1 : a , p2 : b , nullable : ! 1 , textDeriv : function ( c , d ) { return n ( a . textDeriv ( c , d ) , b ) } , startTagOpenDeriv : e ( function ( c ) { return C ( function ( a ) { return n ( a ,
b ) } , a . startTagOpenDeriv ( c ) ) } ) , attDeriv : function ( c , d ) { return n ( a . attDeriv ( c , d ) , b ) } , startTagCloseDeriv : g ( function ( ) { return n ( a . startTagCloseDeriv ( ) , b ) } ) , endTagDeriv : g ( function ( ) { return a . nullable ? b : q } ) } } ) ; x = m ( "oneormore" , function ( a ) { return a === q ? q : { type : "oneOrMore" , p : a , nullable : a . nullable , textDeriv : function ( b , c ) { return j ( a . textDeriv ( b , c ) , h ( this , u ) ) } , startTagOpenDeriv : function ( b ) { var c = this ; return C ( function ( a ) { return j ( a , h ( c , u ) ) } , a . startTagOpenDeriv ( b ) ) } , attDeriv : function ( b , c ) { return j ( a . attDeriv ( b ,
c ) , h ( this , u ) ) } , startTagCloseDeriv : g ( function ( ) { return x ( a . startTagCloseDeriv ( ) ) } ) } } ) ; t = k ( "attribute" , void 0 , function ( a , b ) { return { type : "attribute" , nullable : ! 1 , nc : a , p : b , attDeriv : function ( c , d ) { return a . contains ( d ) && ( b . nullable && /^\s+$/ . test ( d . nodeValue ) || b . textDeriv ( c , d . nodeValue ) . nullable ) ? u : q } , startTagCloseDeriv : function ( ) { return q } } } ) ; p = m ( "value" , function ( a ) { return { type : "value" , nullable : ! 1 , value : a , textDeriv : function ( b , c ) { return c === a ? u : q } , attDeriv : function ( ) { return q } , startTagCloseDeriv : function ( ) { return this } } } ) ;
z = m ( "data" , function ( a ) { return { type : "data" , nullable : ! 1 , dataType : a , textDeriv : function ( ) { return u } , attDeriv : function ( ) { return q } , startTagCloseDeriv : function ( ) { return this } } } ) ; C = function v ( a , b ) { return "after" === b . type ? n ( b . p1 , a ( b . p2 ) ) : "choice" === b . type ? h ( v ( a , b . p1 ) , v ( a , b . p2 ) ) : b } ; w = function ( a , b , c ) { for ( var f = c . currentNode , b = b . startTagOpenDeriv ( f ) , b = d ( a , b , f . attributes , 0 ) , e = b = b . startTagCloseDeriv ( ) , f = c . currentNode , b = c . firstChild ( ) , g = [ ] , j ; b ; ) 1 === b . nodeType ? g . push ( b ) : 3 === b . nodeType && ! /^\s*$/ . test ( b . nodeValue ) &&
g . push ( b . nodeValue ) , b = c . nextSibling ( ) ; 0 === g . length && ( g = [ "" ] ) ; j = e ; for ( e = 0 ; j !== q && e < g . length ; e += 1 ) b = g [ e ] , "string" === typeof b ? j = /^\s*$/ . test ( b ) ? h ( j , j . textDeriv ( a , b ) ) : j . textDeriv ( a , b ) : ( c . currentNode = b , j = w ( a , j , c ) ) ; c . currentNode = f ; return b = j . endTagDeriv ( ) } ; r = function ( a ) { var b , c , d ; if ( "name" === a . name ) return b = a . text , c = a . a . ns , { name : b , ns : c , hash : "{" + c + "}" + b , contains : function ( a ) { return a . namespaceURI === c && a . localName === b } } ; if ( "choice" === a . name ) { b = [ ] ; c = [ ] ; o ( b , c , a ) ; a = "" ; for ( d = 0 ; d < b . length ; d += 1 ) a += "{" + c [ d ] + "}" +
b [ d ] + "," ; return { hash : a , contains : function ( a ) { var d ; for ( d = 0 ; d < b . length ; d += 1 ) if ( b [ d ] === a . localName && c [ d ] === a . namespaceURI ) return ! 0 ; return ! 1 } } } return { hash : "anyName" , contains : function ( ) { return ! 0 } } } ; s = function y ( a , d ) { var f , e ; if ( "elementref" === a . name ) { f = a . id || 0 ; a = d [ f ] ; if ( void 0 !== a . name ) { var g = a ; f = d [ g . id ] = { hash : "element" + g . id . toString ( ) } ; g = c ( r ( g . e [ 0 ] ) , s ( g . e [ 1 ] , d ) ) ; for ( e in g ) g . hasOwnProperty ( e ) && ( f [ e ] = g [ e ] ) ; e = f } else e = a ; return e } switch ( a . name ) { case "empty" : return u ; case "notAllowed" : return q ; case "text" : return E ;
case "choice" : return h ( y ( a . e [ 0 ] , d ) , y ( a . e [ 1 ] , d ) ) ; case "interleave" : f = y ( a . e [ 0 ] , d ) ; for ( e = 1 ; e < a . e . length ; e += 1 ) f = i ( f , y ( a . e [ e ] , d ) ) ; return f ; case "group" : return j ( y ( a . e [ 0 ] , d ) , y ( a . e [ 1 ] , d ) ) ; case "oneOrMore" : return x ( y ( a . e [ 0 ] , d ) ) ; case "attribute" : return t ( r ( a . e [ 0 ] ) , y ( a . e [ 1 ] , d ) ) ; case "value" : return p ( a . text ) ; case "data" : return f = a . a && a . a . type , void 0 === f && ( f = "" ) , z ( f ) ; case "list" : return b ( ) } throw "No support for " + a . name ; } ; this . makePattern = function ( a , b ) { var c = { } , d ; for ( d in b ) b . hasOwnProperty ( d ) && ( c [ d ] = b [ d ] ) ; return d =
s ( a , c ) } ; this . validate = function ( a , b ) { var c ; a . currentNode = a . root ; c = w ( null , G , a ) ; c . nullable ? b ( null ) : ( runtime . log ( "Error in Relax NG validation: " + c ) , b ( [ "Error in Relax NG validation: " + c ] ) ) } ; this . init = function ( a ) { G = a } } ;
2011-12-06 08:48:24 +01:00
// Input 16
runtime . loadClass ( "xmldom.RelaxNGParser" ) ;
2012-03-16 21:26:34 +01:00
xmldom . RelaxNG2 = function ( ) { function g ( a , c ) { this . message = function ( ) { c && ( a += 1 === c . nodeType ? " Element " : " Node " , a += c . nodeName , c . nodeValue && ( a += " with value '" + c . nodeValue + "'" ) , a += "." ) ; return a } } function m ( b , c , e , f ) { return "empty" === b . name ? null : a ( b , c , e , f ) } function e ( a , d ) { if ( 2 !== a . e . length ) throw "Element with wrong # of elements: " + a . e . length ; for ( var e = d . currentNode , f = e ? e . nodeType : 0 , h = null ; 1 < f ; ) { if ( 8 !== f && ( 3 !== f || ! /^\s+$/ . test ( d . currentNode . nodeValue ) ) ) return [ new g ( "Not allowed node of type " + f + "." ) ] ; f =
( e = d . nextSibling ( ) ) ? e . nodeType : 0 } if ( ! e ) return [ new g ( "Missing element " + a . names ) ] ; if ( a . names && - 1 === a . names . indexOf ( c [ e . namespaceURI ] + ":" + e . localName ) ) return [ new g ( "Found " + e . nodeName + " instead of " + a . names + "." , e ) ] ; if ( d . firstChild ( ) ) { for ( h = m ( a . e [ 1 ] , d , e ) ; d . nextSibling ( ) ; ) if ( f = d . currentNode . nodeType , ( ! d . currentNode || ! ( 3 === d . currentNode . nodeType && /^\s+$/ . test ( d . currentNode . nodeValue ) ) ) && 8 !== f ) return [ new g ( "Spurious content." , d . currentNode ) ] ; if ( d . parentNode ( ) !== e ) return [ new g ( "Implementation error." ) ] } else h =
m ( a . e [ 1 ] , d , e ) ; d . nextSibling ( ) ; return h } var k , a , c ; a = function ( b , c , o , f ) { var h = b . name , i = null ; if ( "text" === h ) a : { for ( var j = ( b = c . currentNode ) ? b . nodeType : 0 ; b !== o && 3 !== j ; ) { if ( 1 === j ) { i = [ new g ( "Element not allowed here." , b ) ] ; break a } j = ( b = c . nextSibling ( ) ) ? b . nodeType : 0 } c . nextSibling ( ) ; i = null } else if ( "data" === h ) i = null ; else if ( "value" === h ) f !== b . text && ( i = [ new g ( "Wrong value, should be '" + b . text + "', not '" + f + "'" , o ) ] ) ; else if ( "list" === h ) i = null ; else if ( "attribute" === h ) a : { if ( 2 !== b . e . length ) throw "Attribute with wrong # of elements: " +
b . e . length ; h = b . localnames . length ; for ( i = 0 ; i < h ; i += 1 ) { f = o . getAttributeNS ( b . namespaces [ i ] , b . localnames [ i ] ) ; "" === f && ! o . hasAttributeNS ( b . namespaces [ i ] , b . localnames [ i ] ) && ( f = void 0 ) ; if ( void 0 !== j && void 0 !== f ) { i = [ new g ( "Attribute defined too often." , o ) ] ; break a } j = f } i = void 0 === j ? [ new g ( "Attribute not found: " + b . names , o ) ] : m ( b . e [ 1 ] , c , o , j ) } else if ( "element" === h ) i = e ( b , c , o ) ; else if ( "oneOrMore" === h ) { f = 0 ; do j = c . currentNode , h = a ( b . e [ 0 ] , c , o ) , f += 1 ; while ( ! h && j !== c . currentNode ) ; 1 < f ? ( c . currentNode = j , i = null ) : i = h } else if ( "choice" ===
h ) { if ( 2 !== b . e . length ) throw "Choice with wrong # of options: " + b . e . length ; j = c . currentNode ; if ( "empty" === b . e [ 0 ] . name ) { if ( h = a ( b . e [ 1 ] , c , o , f ) ) c . currentNode = j ; i = null } else { if ( h = m ( b . e [ 0 ] , c , o , f ) ) c . currentNode = j , h = a ( b . e [ 1 ] , c , o , f ) ; i = h } } else if ( "group" === h ) { if ( 2 !== b . e . length ) throw "Group with wrong # of members: " + b . e . length ; i = a ( b . e [ 0 ] , c , o ) || a ( b . e [ 1 ] , c , o ) } else if ( "interleave" === h ) a : { for ( var j = b . e . length , f = [ j ] , n = j , k , p , t , r ; 0 < n ; ) { k = 0 ; p = c . currentNode ; for ( i = 0 ; i < j ; i += 1 ) t = c . currentNode , ! 0 !== f [ i ] && f [ i ] !== t && ( r = b . e [ i ] , ( h =
a ( r , c , o ) ) ? ( c . currentNode = t , void 0 === f [ i ] && ( f [ i ] = ! 1 ) ) : t === c . currentNode || "oneOrMore" === r . name || "choice" === r . name && ( "oneOrMore" === r . e [ 0 ] . name || "oneOrMore" === r . e [ 1 ] . name ) ? ( k += 1 , f [ i ] = t ) : ( k += 1 , f [ i ] = ! 0 ) ) ; if ( p === c . currentNode && k === n ) break ; if ( 0 === k ) { for ( i = 0 ; i < j ; i += 1 ) if ( ! 1 === f [ i ] ) { i = [ new g ( "Interleave does not match." , o ) ] ; break a } break } for ( i = n = 0 ; i < j ; i += 1 ) ! 0 !== f [ i ] && ( n += 1 ) } i = null } else throw h + " not allowed in nonEmptyPattern." ; return i } ; this . validate = function ( a , c ) { a . currentNode = a . root ; var e = m ( k . e [ 0 ] , a , a . root ) ;
c ( e ) } ; this . init = function ( a , d ) { k = a ; c = d } } ;
2011-12-06 08:48:24 +01:00
// Input 17
xmldom . OperationalTransformInterface = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . retain = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . insertCharacters = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . insertElementStart = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . insertElementEnd = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . deleteCharacters = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . deleteElementStart = function ( ) { } ;
xmldom . OperationalTransformInterface . prototype . deleteElementEnd = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . replaceAttributes = function ( ) { } ; xmldom . OperationalTransformInterface . prototype . updateAttributes = function ( ) { } ;
// Input 18
2012-03-16 21:26:34 +01:00
xmldom . OperationalTransformDOM = function ( ) { this . retain = function ( ) { } ; this . insertCharacters = function ( ) { } ; this . insertElementStart = function ( ) { } ; this . insertElementEnd = function ( ) { } ; this . deleteCharacters = function ( ) { } ; this . deleteElementStart = function ( ) { } ; this . deleteElementEnd = function ( ) { } ; this . replaceAttributes = function ( ) { } ; this . updateAttributes = function ( ) { } ; this . atEnd = function ( ) { return ! 0 } } ;
2011-12-06 08:48:24 +01:00
// Input 19
2012-03-16 21:26:34 +01:00
xmldom . XPath = function ( ) { function g ( a , c , b ) { return - 1 !== a && ( a < c || - 1 === c ) && ( a < b || - 1 === b ) } function m ( a ) { for ( var c = [ ] , b = 0 , d = a . length , f ; b < d ; ) { var e = a , h = d , o = c , k = "" , u = [ ] , m = e . indexOf ( "[" , b ) , C = e . indexOf ( "/" , b ) , w = e . indexOf ( "=" , b ) ; g ( C , m , w ) ? ( k = e . substring ( b , C ) , b = C + 1 ) : g ( m , C , w ) ? ( k = e . substring ( b , m ) , b = i ( e , m , u ) ) : g ( w , C , m ) ? ( k = e . substring ( b , w ) , b = w ) : ( k = e . substring ( b , h ) , b = h ) ; o . push ( { location : k , predicates : u } ) ; if ( b < d && "=" === a [ b ] ) { f = a . substring ( b + 1 , d ) ; if ( 2 < f . length && ( "'" === f [ 0 ] || '"' === f [ 0 ] ) ) f = f . slice ( 1 , f . length - 1 ) ; else try { f =
parseInt ( f , 10 ) } catch ( G ) { } b = d } } return { steps : c , value : f } } function e ( ) { } function k ( ) { var a , c = ! 1 ; this . setNode = function ( c ) { a = c } ; this . reset = function ( ) { c = ! 1 } ; this . next = function ( ) { var b = c ? null : a ; c = ! 0 ; return b } } function a ( a , c , b ) { this . reset = function ( ) { a . reset ( ) } ; this . next = function ( ) { for ( var d = a . next ( ) ; d && ! ( d = d . getAttributeNodeNS ( c , b ) ) ; ) d = a . next ( ) ; return d } } function c ( a , c ) { var b = a . next ( ) , d = null ; this . reset = function ( ) { a . reset ( ) ; b = a . next ( ) ; d = null } ; this . next = function ( ) { for ( ; b ; ) { if ( d ) if ( c && d . firstChild ) d = d . firstChild ;
else { for ( ; ! d . nextSibling && d !== b ; ) d = d . parentNode ; d === b ? b = a . next ( ) : d = d . nextSibling } else { do ( d = b . firstChild ) || ( b = a . next ( ) ) ; while ( b && ! d ) } if ( d && 1 === d . nodeType ) return d } return null } } function b ( a , b ) { this . reset = function ( ) { a . reset ( ) } ; this . next = function ( ) { for ( var c = a . next ( ) ; c && ! b ( c ) ; ) c = a . next ( ) ; return c } } function d ( a , c , d ) { var c = c . split ( ":" , 2 ) , f = d ( c [ 0 ] ) , e = c [ 1 ] ; return new b ( a , function ( a ) { return a . localName === e && a . namespaceURI === f } ) } function o ( a , c , d ) { var f = new k , e = h ( f , c , d ) , g = c . value ; return void 0 === g ? new b ( a , function ( a ) { f . setNode ( a ) ;
e . reset ( ) ; return e . next ( ) } ) : new b ( a , function ( a ) { f . setNode ( a ) ; e . reset ( ) ; return ( a = e . next ( ) ) && a . nodeValue === g } ) } function f ( a , c , b ) { var d = a . ownerDocument , f = [ ] , f = new k ; f . setNode ( a ) ; a = m ( c ) ; f = h ( f , a , b ) ; a = [ ] ; for ( b = f . next ( ) ; b ; ) a . push ( b ) , b = f . next ( ) ; return f = a } var h , i ; i = function ( a , c , b ) { for ( var d = c , f = a . length , e = 0 ; d < f ; ) "]" === a [ d ] ? ( e -= 1 , 0 >= e && b . push ( m ( a . substring ( c , d ) ) ) ) : "[" === a [ d ] && ( 0 >= e && ( c = d + 1 ) , e += 1 ) , d += 1 ; return d } ; e . prototype . next = function ( ) { } ; e . prototype . reset = function ( ) { } ; h = function ( b , f , e ) { var g , h , i , k ; for ( g =
0 ; g < f . steps . length ; g += 1 ) { i = f . steps [ g ] ; h = i . location ; "" === h ? b = new c ( b , ! 1 ) : "@" === h [ 0 ] ? ( k = h . slice ( 1 ) . split ( ":" , 2 ) , b = new a ( b , e ( k [ 0 ] ) , k [ 1 ] ) ) : "." !== h && ( b = new c ( b , ! 1 ) , - 1 !== h . indexOf ( ":" ) && ( b = d ( b , h , e ) ) ) ; for ( h = 0 ; h < i . predicates . length ; h += 1 ) k = i . predicates [ h ] , b = o ( b , k , e ) } return b } ; xmldom . XPath = function ( ) { this . getODFElementsWithXPath = f } ; return xmldom . XPath } ( ) ;
2011-12-06 08:48:24 +01:00
// Input 20
2012-03-16 21:26:34 +01:00
odf . StyleInfo = function ( ) { function g ( e , k ) { for ( var a = m [ e . localName ] , c = a && a [ e . namespaceURI ] , b = c ? c . length : 0 , d , o , f , a = 0 ; a < b ; a += 1 ) if ( d = e . getAttributeNS ( c [ a ] . ns , c [ a ] . localname ) ) o = c [ a ] . keygroup , ( f = k [ o ] ) || ( f = k [ o ] = { } ) , f [ d ] = 1 ; for ( a = e . firstChild ; a ; ) 1 === a . nodeType && ( c = a , g ( c , k ) ) , a = a . nextSibling } var m ; this . UsedKeysList = function ( e ) { var k = { } ; this . uses = function ( a ) { var c = a . localName , b = a . getAttributeNS ( "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , "name" ) || a . getAttributeNS ( "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
"name" ) , a = "style" === c ? a . getAttributeNS ( "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , "family" ) : "urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" === a . namespaceURI ? "data" : c ; return ( a = k [ a ] ) ? 0 < a [ b ] : ! 1 } ; g ( e , k ) } ; this . canElementHaveStyle = function ( e , g ) { var a = m [ g . localName ] ; return ( a = a && a [ g . namespaceURI ] ) && 0 < a . length } ; m = function ( e ) { var g , a , c , b , d , o = { } , f ; for ( g in e ) if ( e . hasOwnProperty ( g ) ) { c = e [ g ] ; d = c . length ; for ( a = 0 ; a < d ; a += 1 ) b = c [ a ] , f = o [ b . en ] = o [ b . en ] || { } , f = f [ b . ens ] = f [ b . ens ] || [ ] , f . push ( { ns : b . ans , localname : b . a ,
keygroup : g } ) } return o } ( { text : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "tab-stop" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "leader-text-style" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "drop-cap" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "notes-configuration" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "citation-body-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
2011-12-06 08:48:24 +01:00
en : "notes-configuration" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "citation-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "a" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "alphabetical-index" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "linenumbering-configuration" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "list-level-style-number" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "ruby-text" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "span" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "a" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
a : "visited-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "text-properties" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "text-line-through-text-style" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "alphabetical-index-source" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "main-entry-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-entry-bibliography" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-entry-chapter" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-entry-link-end" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-entry-link-start" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "index-entry-page-number" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-entry-span" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-entry-tab-stop" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-entry-text" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-title-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "list-level-style-bullet" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "outline-level-style" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } ] , paragraph : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
en : "caption" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "circle" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "connector" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "control" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "custom-shape" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "ellipse" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "frame" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
en : "line" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "measure" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "path" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "polygon" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "polyline" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "rect" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "regular-polygon" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:office:1.0" ,
en : "annotation" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:form:1.0" , en : "column" , ans : "urn:oasis:names:tc:opendocument:xmlns:form:1.0" , a : "text-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "style" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "next-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "body" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "even-columns" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "even-rows" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "first-column" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" ,
en : "first-row" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "last-column" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "last-row" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "odd-columns" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" ,
a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "odd-rows" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "paragraph-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "notes-configuration" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "default-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "alphabetical-index-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "bibliography-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "h" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "illustration-index-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-source-style" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "object-index-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "p" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "table-index-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "table-of-content-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "table-index-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "user-index-entry-template" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "page-layout-properties" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
a : "register-truth-ref-style-name" } ] , chart : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "axis" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "chart" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "data-label" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" ,
en : "data-point" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "equation" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "error-indicator" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "floor" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "footer" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "grid" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "legend" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "mean-value" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "plot-area" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "regression-curve" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "series" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "stock-gain-marker" ,
ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "stock-loss-marker" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "stock-range-line" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "subtitle" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "title" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , en : "wall" , ans : "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" , a : "style-name" } ] , section : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "alphabetical-index" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "bibliography" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "illustration-index" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "index-title" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "object-index" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "section" ,
ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "table-of-content" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "table-index" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "user-index" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } ] , ruby : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "ruby" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } ] , table : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , en : "query" , ans : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , en : "table-representation" , ans : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "background" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "table" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } ] , "table-column" : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , en : "column" , ans : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "table-column" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } ] , "table-row" : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" ,
en : "query" , ans : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , a : "default-row-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , en : "table-representation" , ans : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , a : "default-row-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "table-row" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } ] , "table-cell" : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" , en : "column" , ans : "urn:oasis:names:tc:opendocument:xmlns:database:1.0" ,
a : "default-cell-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "table-column" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "default-cell-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "table-row" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "default-cell-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "body" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" ,
en : "covered-table-cell" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "even-columns" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "covered-table-cell" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "even-columns" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "even-rows" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "first-column" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "first-row" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "last-column" ,
ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "last-row" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "odd-columns" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , en : "odd-rows" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" ,
en : "table-cell" , ans : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , a : "style-name" } ] , graphic : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "cube" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "extrude" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "rotate" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "scene" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "sphere" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "caption" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "circle" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "connector" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "control" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "custom-shape" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
en : "ellipse" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "frame" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "g" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "line" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
en : "measure" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "page-thumbnail" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "path" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "polygon" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "polyline" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "rect" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "regular-polygon" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:office:1.0" , en : "annotation" ,
ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } ] , presentation : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "cube" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "extrude" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "rotate" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "scene" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" , en : "sphere" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "caption" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "circle" ,
ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "connector" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "control" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "custom-shape" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "ellipse" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "frame" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "g" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
en : "line" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "measure" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "page-thumbnail" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "path" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "polygon" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "polyline" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "rect" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
en : "regular-polygon" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:office:1.0" , en : "annotation" , ans : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , a : "style-name" } ] , "drawing-page" : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , en : "page" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , en : "notes" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" ,
a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "handout-master" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "master-page" , ans : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , a : "style-name" } ] , "list-style" : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "list" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "numbered-paragraph" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "list-item" , ans : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , a : "style-override" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "style" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "list-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "style" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } ,
{ ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "style" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "percentage-data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , en : "date-time-decl" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "creation-date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "creation-time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "database-display" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "editing-duration" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "expression" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "meta-field" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "modification-date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "modification-time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "print-date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "print-time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "table-formula" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "user-defined" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "user-field-get" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "user-field-input" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "variable-get" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "variable-input" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "variable-set" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
a : "data-style-name" } ] , data : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "style" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "style" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "percentage-data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , en : "date-time-decl" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "creation-date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "creation-time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "database-display" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "editing-duration" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "expression" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "meta-field" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "modification-date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "modification-time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "print-date" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "print-time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "table-formula" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "time" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "user-defined" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" ,
en : "user-field-get" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "user-field-input" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "variable-get" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "variable-input" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
a : "data-style-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , en : "variable-set" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "data-style-name" } ] , "page-layout" : [ { ens : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , en : "notes" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "page-layout-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , en : "handout-master" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "page-layout-name" } , { ens : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" ,
en : "master-page" , ans : "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , a : "page-layout-name" } ] } ) } ;
// Input 21
2012-03-16 21:26:34 +01:00
odf . Style2CSS = function ( ) { function g ( a , b ) { var c = { } , d , f , e ; if ( ! b ) return c ; for ( d = b . firstChild ; d ; ) { d . namespaceURI === i && "style" === d . localName ? e = d . getAttributeNS ( i , "family" ) : d . namespaceURI === j && "list-style" === d . localName && ( e = "list" ) ; if ( f = e && d . getAttributeNS && d . getAttributeNS ( i , "name" ) ) c [ e ] || ( c [ e ] = { } ) , c [ e ] [ f ] = d ; d = d . nextSibling } return c } function m ( a , b ) { if ( ! b || ! a ) return null ; if ( a [ b ] ) return a [ b ] ; var c , d ; for ( c in a ) if ( a . hasOwnProperty ( c ) && ( d = m ( a [ c ] . derivedStyles , b ) ) ) return d ; return null } function e ( a , b , c ) { var d =
b [ a ] , f , g ; d && ( f = d . getAttributeNS ( i , "parent-style-name" ) , g = null , f && ( g = m ( c , f ) , ! g && b [ f ] && ( e ( f , b , c ) , g = b [ f ] , b [ f ] = null ) ) , g ? ( g . derivedStyles || ( g . derivedStyles = { } ) , g . derivedStyles [ a ] = d ) : c [ a ] = d ) } function k ( a , b ) { for ( var c in a ) a . hasOwnProperty ( c ) && ( e ( c , a , b ) , a [ c ] = null ) } function a ( a , b ) { var c = x [ a ] , d ; if ( null === c ) return null ; d = "[" + c + '|style-name="' + b + '"]' ; "presentation" === c && ( c = "draw" , d = '[presentation|style-name="' + b + '"]' ) ; return c + "|" + p [ a ] . join ( d + "," + c + "|" ) + d } function c ( b , d , f ) { var e = [ ] , g , h ; e . push ( a ( b , d ) ) ; for ( g in f . derivedStyles ) if ( f . derivedStyles . hasOwnProperty ( g ) ) for ( h in d =
c ( b , g , f . derivedStyles [ g ] ) , d ) d . hasOwnProperty ( h ) && e . push ( d [ h ] ) ; return e } function b ( a , b , c ) { if ( ! a ) return null ; for ( a = a . firstChild ; a ; ) { if ( a . namespaceURI === b && a . localName === c ) return b = a ; a = a . nextSibling } return null } function d ( a , b ) { var c = "" , d , f ; for ( d in b ) b . hasOwnProperty ( d ) && ( d = b [ d ] , ( f = a . getAttributeNS ( d [ 0 ] , d [ 1 ] ) ) && ( c += d [ 2 ] + ":" + f + ";" ) ) ; return c } function o ( a , b , c , d ) { b = 'text|list[text|style-name="' + b + '"]' ; for ( c = ( c = c . getAttributeNS ( j , "level" ) ) && parseInt ( c , 10 ) ; 1 < c ; ) b += " > text|list-item > text|list" , c -= 1 ; try { a . insertRule ( b +
" > list-item:before{" + d + "}" , a . cssRules . length ) } catch ( f ) { throw f ; } } function f ( a , e , g , k ) { if ( "list" === e ) for ( var n = k . firstChild , l , m ; n ; ) { if ( n . namespaceURI === j ) if ( l = n , "list-level-style-number" === n . localName ) { m = l ; var p = m . getAttributeNS ( i , "num-format" ) , x = m . getAttributeNS ( i , "num-suffix" ) , M = "" , M = { 1 : "decimal" , a : "lower-latin" , A : "upper-latin" , i : "lower-roman" , I : "upper-roman" } , F = "" , F = m . getAttributeNS ( i , "num-prefix" ) || "" , F = M . hasOwnProperty ( p ) ? F + ( " counter(list, " + M [ p ] + ")" ) : p ? F + ( "'" + p + "';" ) : F + " ''" ; x && ( F += " '" + x +
"'" ) ; m = M = "content: " + F + ";" ; o ( a , g , l , m ) } else "list-level-style-image" === n . localName ? ( m = "content: none;" , o ( a , g , l , m ) ) : "list-level-style-bullet" === n . localName && ( m = "content: '" + l . getAttributeNS ( j , "bullet-char" ) + "';" , o ( a , g , l , m ) ) ; n = n . nextSibling } else { g = c ( e , g , k ) . join ( "," ) ; n = "" ; if ( l = b ( k , i , "text-properties" ) ) { m = "" + d ( l , t ) ; p = l . getAttributeNS ( i , "text-underline-style" ) ; "solid" === p && ( m += "text-decoration: underline;" ) ; if ( p = l . getAttributeNS ( i , "font-name" ) ) ( p = '"' + p + '"' ) && ( m += "font-family: " + p + ";" ) ; n += m } if ( l = b ( k , i , "paragraph-properties" ) ) { m =
l ; l = "" + d ( m , z ) ; m = m . getElementsByTagNameNS ( i , "background-image" ) ; if ( 0 < m . length && ( p = m . item ( 0 ) . getAttributeNS ( h , "href" ) ) ) l += "background-image: url('odfkit:" + p + "');" , m = m . item ( 0 ) , l += d ( m , r ) ; n += l } if ( l = b ( k , i , "graphic-properties" ) ) l = "" + d ( l , s ) , n += l ; if ( l = b ( k , i , "table-cell-properties" ) ) l = "" + d ( l , q ) , n += l ; if ( 0 !== n . length ) try { a . insertRule ( g + "{" + n + "}" , a . cssRules . length ) } catch ( R ) { throw R ; } } for ( var S in k . derivedStyles ) k . derivedStyles . hasOwnProperty ( S ) && f ( a , e , S , k . derivedStyles [ S ] ) } var h = "http://www.w3.org/1999/xlink" ,
i = "urn:oasis:names:tc:opendocument:xmlns:style:1.0" , j = "urn:oasis:names:tc:opendocument:xmlns:text:1.0" , n = { draw : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , fo : "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , office : "urn:oasis:names:tc:opendocument:xmlns:office:1.0" , presentation : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" , style : i , svg : "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" , table : "urn:oasis:names:tc:opendocument:xmlns:table:1.0" , text : j , xlink : h } , x =
{ graphic : "draw" , paragraph : "text" , presentation : "presentation" , ruby : "text" , section : "text" , table : "table" , "table-cell" : "table" , "table-column" : "table" , "table-row" : "table" , text : "text" , list : "text" } , p = { graphic : "circle,connected,control,custom-shape,ellipse,frame,g,line,measure,page,page-thumbnail,path,polygon,polyline,rect,regular-polygon" . split ( "," ) , paragraph : "alphabetical-index-entry-template,h,illustration-index-entry-template,index-source-style,object-index-entry-template,p,table-index-entry-template,table-of-content-entry-template,user-index-entry-template" . split ( "," ) ,
2011-12-06 08:48:24 +01:00
presentation : "caption,circle,connector,control,custom-shape,ellipse,frame,g,line,measure,page-thumbnail,path,polygon,polyline,rect,regular-polygon" . split ( "," ) , ruby : [ "ruby" , "ruby-text" ] , section : "alphabetical-index,bibliography,illustration-index,index-title,object-index,section,table-of-content,table-index,user-index" . split ( "," ) , table : [ "background" , "table" ] , "table-cell" : "body,covered-table-cell,even-columns,even-rows,first-column,first-row,last-column,last-row,odd-columns,odd-rows,table-cell" . split ( "," ) ,
2012-03-16 21:26:34 +01:00
"table-column" : [ "table-column" ] , "table-row" : [ "table-row" ] , text : "a,index-entry-chapter,index-entry-link-end,index-entry-link-start,index-entry-page-number,index-entry-span,index-entry-tab-stop,index-entry-text,index-title-template,linenumbering-configuration,list-level-style-number,list-level-style-bullet,outline-level-style,span" . split ( "," ) , list : [ "list-item" ] } , t = [ [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "color" , "color" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" ,
"background-color" , "background-color" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "font-weight" , "font-weight" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "font-style" , "font-style" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "font-size" , "font-size" ] ] , r = [ [ i , "repeat" , "background-repeat" ] ] , z = [ [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "background-color" , "background-color" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" ,
2011-12-06 08:48:24 +01:00
"text-align" , "text-align" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "padding-left" , "padding-left" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "padding-right" , "padding-right" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "padding-top" , "padding-top" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "padding-bottom" , "padding-bottom" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border-left" , "border-left" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" ,
"border-right" , "border-right" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border-top" , "border-top" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border-bottom" , "border-bottom" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "margin-left" , "margin-left" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "margin-right" , "margin-right" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "margin-top" , "margin-top" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" ,
2012-03-16 21:26:34 +01:00
"margin-bottom" , "margin-bottom" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border" , "border" ] ] , s = [ [ "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , "fill-color" , "background-color" ] , [ "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , "fill" , "background" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "min-height" , "min-height" ] , [ "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" , "stroke" , "border" ] , [ "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" ,
"stroke-color" , "border-color" ] ] , q = [ [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "background-color" , "background-color" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border-left" , "border-left" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border-right" , "border-right" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border-top" , "border-top" ] , [ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" , "border-bottom" , "border-bottom" ] ] ;
this . namespaces = n ; this . namespaceResolver = function ( a ) { return n [ a ] || null } ; this . namespaceResolver . lookupNamespaceURI = this . namespaceResolver ; this . style2css = function ( a , b , c ) { for ( var d , e , h , i , j ; a . cssRules . length ; ) a . deleteRule ( a . cssRules . length - 1 ) ; d = null ; b && ( d = b . ownerDocument ) ; c && ( d = c . ownerDocument ) ; if ( d ) { for ( e in n ) if ( n . hasOwnProperty ( e ) ) { i = "@namespace " + e + " url(" + n [ e ] + ");" ; try { a . insertRule ( i , a . cssRules . length ) } catch ( o ) { } } b = g ( d , b ) ; e = g ( d , c ) ; c = { } ; for ( j in x ) if ( x . hasOwnProperty ( j ) ) for ( h in d = c [ j ] = { } , k ( b [ j ] ,
d ) , k ( e [ j ] , d ) , d ) d . hasOwnProperty ( h ) && f ( a , j , h , d [ h ] ) } } } ;
2011-12-06 08:48:24 +01:00
// Input 22
runtime . loadClass ( "core.Base64" ) ; runtime . loadClass ( "xmldom.XPath" ) ; runtime . loadClass ( "odf.Style2CSS" ) ;
2012-03-16 21:26:34 +01:00
odf . FontLoader = function ( ) { function g ( c , b , d , e , f ) { var h , i = 0 , j ; for ( j in c ) c . hasOwnProperty ( j ) && ( i === d && ( h = j ) , i += 1 ) ; if ( ! h ) return f ( ) ; b . load ( c [ h ] . href , function ( i , j ) { if ( i ) runtime . log ( i ) ; else { var k = e , k = document . styleSheets [ 0 ] , m = '@font-face { font-family: "' + h + '"; src: url(data:application/x-font-ttf;charset=binary;base64,' + a . convertUTF8ArrayToBase64 ( j ) + ') format("truetype"); }' ; try { k . insertRule ( m , k . cssRules . length ) } catch ( r ) { runtime . log ( "Problem inserting rule in CSS: " + m ) } } return g ( c , b , d + 1 , e , f ) } ) } function m ( a ,
b , d ) { g ( a , b , 0 , d , function ( ) { } ) } var e = new odf . Style2CSS , k = new xmldom . XPath , a = new core . Base64 ; odf . FontLoader = function ( ) { this . loadFonts = function ( a , b , d ) { var g = { } , f , h , i ; if ( a ) { a = k . getODFElementsWithXPath ( a , "style:font-face[svg:font-face-src]" , e . namespaceResolver ) ; for ( f = 0 ; f < a . length ; f += 1 ) h = a [ f ] , i = h . getAttributeNS ( e . namespaces . style , "name" ) , h = k . getODFElementsWithXPath ( h , "svg:font-face-src/svg:font-face-uri" , e . namespaceResolver ) , 0 < h . length && ( h = h [ 0 ] . getAttributeNS ( e . namespaces . xlink , "href" ) , g [ i ] = { href : h } ) } m ( g ,
b , d ) } } ; return odf . FontLoader } ( ) ;
2011-12-06 08:48:24 +01:00
// Input 23
runtime . loadClass ( "core.Base64" ) ; runtime . loadClass ( "core.Zip" ) ; runtime . loadClass ( "xmldom.LSSerializer" ) ; runtime . loadClass ( "odf.StyleInfo" ) ; runtime . loadClass ( "odf.Style2CSS" ) ; runtime . loadClass ( "odf.FontLoader" ) ;
2012-03-16 21:26:34 +01:00
odf . OdfContainer = function ( ) { function g ( a , b , c ) { for ( a = a ? a . firstChild : null ; a ; ) { if ( a . localName === c && a . namespaceURI === b ) return a ; a = a . nextSibling } return null } function m ( a ) { var b , c = i . length ; for ( b = 0 ; b < c ; b += 1 ) if ( a . namespaceURI === f && a . localName === i [ b ] ) return b ; return - 1 } function e ( a , b ) { var c = a . automaticStyles , f ; b && ( f = new d . UsedKeysList ( b ) ) ; this . acceptNode = function ( a ) { return "http://www.w3.org/1999/xhtml" === a . namespaceURI ? 3 : f && a . parentNode === c && 1 === a . nodeType ? f . uses ( a ) ? 1 : 2 : 1 } } function k ( a , b ) { if ( b ) { var c = m ( b ) ,
d , f = a . firstChild ; if ( - 1 !== c ) { for ( ; f ; ) { d = m ( f ) ; if ( - 1 !== d && d > c ) break ; f = f . nextSibling } a . insertBefore ( b , f ) } } } function a ( a ) { this . OdfContainer = a } function c ( a , b , c ) { var d = this ; this . size = 0 ; this . type = null ; this . name = a ; this . container = b ; this . onchange = this . onreadystatechange = this . document = this . url = null ; this . EMPTY = 0 ; this . LOADING = 1 ; this . DONE = 2 ; this . state = this . EMPTY ; this . load = function ( ) { c . loadAsDataURL ( a , x [ a ] , function ( a , b ) { d . url = b ; if ( d . onchange ) d . onchange ( d ) ; if ( d . onstatereadychange ) d . onstatereadychange ( d ) } ) } ; this . abort =
function ( ) { } } function b ( ) { this . length = 0 ; this . item = function ( ) { } } var d = new odf . StyleInfo , o = new odf . Style2CSS , f = "urn:oasis:names:tc:opendocument:xmlns:office:1.0" , h = "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" , i = "meta,settings,scripts,font-face-decls,styles,automatic-styles,master-styles,body" . split ( "," ) , j = new core . Base64 , n = new odf . FontLoader , x = { } ; a . prototype = new function ( ) { } ; a . prototype . constructor = a ; a . namespaceURI = f ; a . localName = "document" ; c . prototype . load = function ( ) { } ; c . prototype . getUrl = function ( ) { return this . data ?
"data:;base64," + j . toBase64 ( this . data ) : null } ; odf . OdfContainer = function t ( d , i ) { function j ( a ) { for ( var b = a . firstChild , c ; b ; ) c = b . nextSibling , 1 === b . nodeType ? j ( b ) : 7 === b . nodeType && a . removeChild ( b ) , b = c } function q ( a ) { var b = A . rootElement . ownerDocument , c ; if ( a ) { j ( a . documentElement ) ; try { c = b . importNode ( a . documentElement , ! 0 ) } catch ( d ) { } } return c } function m ( a ) { A . state = a ; if ( A . onchange ) A . onchange ( A ) ; if ( A . onstatereadychange ) A . onstatereadychange ( A ) } function E ( a ) { var a = q ( a ) , b = A . rootElement ; ! a || "document-styles" !== a . localName ||
a . namespaceURI !== f ? m ( t . INVALID ) : ( b . fontFaceDecls = g ( a , f , "font-face-decls" ) , k ( b , b . fontFaceDecls ) , b . styles = g ( a , f , "styles" ) , k ( b , b . styles ) , b . automaticStyles = g ( a , f , "automatic-styles" ) , k ( b , b . automaticStyles ) , b . masterStyles = g ( a , f , "master-styles" ) , k ( b , b . masterStyles ) , n . loadFonts ( b . fontFaceDecls , K , null ) ) } function C ( a ) { var a = q ( a ) , b , c , d ; if ( ! a || "document-content" !== a . localName || a . namespaceURI !== f ) m ( t . INVALID ) ; else { b = A . rootElement ; c = g ( a , f , "font-face-decls" ) ; if ( b . fontFaceDecls && c ) for ( d = c . firstChild ; d ; ) b . fontFaceDecls . appendChild ( d ) ,
d = c . firstChild ; else c && ( b . fontFaceDecls = c , k ( b , c ) ) ; c = g ( a , f , "automatic-styles" ) ; if ( b . automaticStyles && c ) for ( d = c . firstChild ; d ; ) b . automaticStyles . appendChild ( d ) , d = c . firstChild ; else c && ( b . automaticStyles = c , k ( b , c ) ) ; b . body = g ( a , f , "body" ) ; k ( b , b . body ) } } function w ( a ) { var a = q ( a ) , b ; if ( a && ! ( "document-meta" !== a . localName || a . namespaceURI !== f ) ) b = A . rootElement , b . meta = g ( a , f , "meta" ) , k ( b , b . meta ) } function G ( a ) { var a = q ( a ) , b ; if ( a && ! ( "document-settings" !== a . localName || a . namespaceURI !== f ) ) b = A . rootElement , b . settings = g ( a , f ,
"settings" ) , k ( b , b . settings ) } function l ( a , b ) { K . loadAsDOM ( a , b ) } function v ( ) { l ( "styles.xml" , function ( a , b ) { E ( b ) ; A . state !== t . INVALID && l ( "content.xml" , function ( a , b ) { C ( b ) ; A . state !== t . INVALID && l ( "meta.xml" , function ( a , b ) { w ( b ) ; A . state !== t . INVALID && l ( "settings.xml" , function ( a , b ) { b && G ( b ) ; l ( "META-INF/manifest.xml" , function ( a , b ) { if ( b ) { var c = q ( b ) , d ; if ( c && ! ( "manifest" !== c . localName || c . namespaceURI !== h ) ) { d = A . rootElement ; d . manifest = c ; for ( c = d . manifest . firstChild ; c ; ) 1 === c . nodeType && "file-entry" === c . localName && c . namespaceURI ===
h && ( x [ c . getAttributeNS ( h , "full-path" ) ] = c . getAttributeNS ( h , "media-type" ) ) , c = c . nextSibling } } A . state !== t . INVALID && m ( t . DONE ) } ) } ) } ) } ) } ) } function y ( a , b ) { var c = "" , d ; for ( d in b ) b . hasOwnProperty ( d ) && ( c += " xmlns:" + d + '="' + b [ d ] + '"' ) ; return '<?xml version="1.0" encoding="UTF-8"?><office:' + a + " " + c + ' office:version="1.2">' } function B ( ) { var a = o . namespaces , b = new xmldom . LSSerializer , c = y ( "document-meta" , a ) ; b . filter = new e ( A . rootElement ) ; c += b . writeToString ( A . rootElement . meta , a ) ; return c + "</office:document-meta>" } function M ( ) { var a =
o . namespaces , b = new xmldom . LSSerializer , c = y ( "document-settings" , a ) ; b . filter = new e ( A . rootElement ) ; c += b . writeToString ( A . rootElement . settings , a ) ; return c + "</office:document-settings>" } function F ( ) { var a = o . namespaces , b = new xmldom . LSSerializer , c = y ( "document-styles" , a ) ; b . filter = new e ( A . rootElement , A . rootElement . masterStyles ) ; c += b . writeToString ( A . rootElement . fontFaceDecls , a ) ; c += b . writeToString ( A . rootElement . styles , a ) ; c += b . writeToString ( A . rootElement . automaticStyles , a ) ; c += b . writeToString ( A . rootElement . masterStyles ,
a ) ; return c + "</office:document-styles>" } function R ( ) { var a = o . namespaces , b = new xmldom . LSSerializer , c = y ( "document-content" , a ) ; b . filter = new e ( A . rootElement , A . rootElement . body ) ; c += b . writeToString ( A . rootElement . automaticStyles , a ) ; c += b . writeToString ( A . rootElement . body , a ) ; return c + "</office:document-content>" } function S ( a , b ) { runtime . loadXML ( a , function ( a , c ) { if ( a ) b ( a ) ; else { var d = q ( c ) ; ! d || "document" !== d . localName || d . namespaceURI !== f ? m ( t . INVALID ) : ( A . rootElement = d , d . fontFaceDecls = g ( d , f , "font-face-decls" ) , d . styles =
g ( d , f , "styles" ) , d . automaticStyles = g ( d , f , "automatic-styles" ) , d . masterStyles = g ( d , f , "master-styles" ) , d . body = g ( d , f , "body" ) , d . meta = g ( d , f , "meta" ) , m ( t . DONE ) ) } } ) } var A = this , K = null ; this . onstatereadychange = i ; this . parts = this . rootElement = this . state = this . onchange = null ; this . getPart = function ( a ) { return new c ( a , A , K ) } ; this . save = function ( a ) { var b ; b = runtime . byteArrayFromString ( M ( ) , "utf8" ) ; K . save ( "settings.xml" , b , ! 0 , new Date ) ; b = runtime . byteArrayFromString ( B ( ) , "utf8" ) ; K . save ( "meta.xml" , b , ! 0 , new Date ) ; b = runtime . byteArrayFromString ( F ( ) ,
"utf8" ) ; K . save ( "styles.xml" , b , ! 0 , new Date ) ; b = runtime . byteArrayFromString ( R ( ) , "utf8" ) ; K . save ( "content.xml" , b , ! 0 , new Date ) ; K . write ( function ( b ) { a ( b ) } ) } ; this . state = t . LOADING ; this . rootElement = function ( a ) { var b = document . createElementNS ( a . namespaceURI , a . localName ) , c , a = new a ; for ( c in a ) a . hasOwnProperty ( c ) && ( b [ c ] = a [ c ] ) ; return b } ( a ) ; this . parts = new b ( this ) ; K = new core . Zip ( d , function ( a , b ) { K = b ; a ? S ( d , function ( b ) { a && ( K . error = a + "\n" + b , m ( t . INVALID ) ) } ) : v ( ) } ) } ; odf . OdfContainer . EMPTY = 0 ; odf . OdfContainer . LOADING = 1 ; odf . OdfContainer . DONE =
2 ; odf . OdfContainer . INVALID = 3 ; odf . OdfContainer . SAVING = 4 ; odf . OdfContainer . MODIFIED = 5 ; odf . OdfContainer . getContainer = function ( a ) { return new odf . OdfContainer ( a , null ) } ; return odf . OdfContainer } ( ) ;
2011-12-06 08:48:24 +01:00
// Input 24
2012-03-16 21:26:34 +01:00
odf . Formatting = function ( ) { function g ( e ) { function g ( a , b ) { for ( var d = a && a . firstChild ; d && b ; ) d = d . nextSibling , b -= 1 ; return d } var a = g ( e . startContainer , e . startOffset ) ; g ( e . endContainer , e . endOffset ) ; this . next = function ( ) { return null === a ? a : null } } var m = new odf . StyleInfo ; this . setOdfContainer = function ( ) { } ; this . isCompletelyBold = function ( ) { return ! 1 } ; this . getAlignment = function ( e ) { this . getParagraphStyles ( e ) } ; this . getParagraphStyles = function ( e ) { var k , a , c , b = [ ] ; for ( k = 0 ; k < e . length ; k += 0 ) { a = void 0 ; c = [ ] ; for ( a = ( new g ( e [ k ] ) ) . next ( ) ; a ; ) m . canElementHaveStyle ( "paragraph" ,
a ) && c . push ( a ) ; for ( a = 0 ; a < c . length ; a += 1 ) - 1 === b . indexOf ( c [ a ] ) && b . push ( c [ a ] ) } return b } ; this . getTextStyles = function ( ) { return [ ] } } ;
2011-12-06 08:48:24 +01:00
// Input 25
runtime . loadClass ( "odf.OdfContainer" ) ; runtime . loadClass ( "odf.Formatting" ) ; runtime . loadClass ( "xmldom.XPath" ) ;
2012-03-16 21:26:34 +01:00
odf . OdfCanvas = function ( ) { function g ( a , b , c ) { a . addEventListener ? a . addEventListener ( b , c , ! 1 ) : a . attachEvent ? a . attachEvent ( "on" + b , c ) : a [ "on" + b ] = c } function m ( a ) { function b ( a , c ) { for ( ; c ; ) { if ( c === a ) return ! 0 ; c = c . parentNode } return ! 1 } function c ( ) { var e = [ ] , g = runtime . getWindow ( ) . getSelection ( ) , h , i ; for ( h = 0 ; h < g . rangeCount ; h += 1 ) i = g . getRangeAt ( h ) , null !== i && b ( a , i . startContainer ) && b ( a , i . endContainer ) && e . push ( i ) ; if ( e . length === d . length ) { for ( g = 0 ; g < e . length && ! ( h = e [ g ] , i = d [ g ] , h = h === i ? ! 1 : null === h || null === i ? ! 0 : h . startContainer !==
i . startContainer || h . startOffset !== i . startOffset || h . endContainer !== i . endContainer || h . endOffset !== i . endOffset , h ) ; g += 1 ) ; if ( g === e . length ) return } d = e ; var g = [ e . length ] , j , k = a . ownerDocument ; for ( h = 0 ; h < e . length ; h += 1 ) i = e [ h ] , j = k . createRange ( ) , j . setStart ( i . startContainer , i . startOffset ) , j . setEnd ( i . endContainer , i . endOffset ) , g [ h ] = j ; d = g ; g = f . length ; for ( e = 0 ; e < g ; e += 1 ) f [ e ] ( a , d ) } var d = [ ] , f = [ ] ; this . addListener = function ( a , b ) { var c , d = f . length ; for ( c = 0 ; c < d ; c += 1 ) if ( f [ c ] === b ) return ; f . push ( b ) } ; g ( a , "mouseup" , c ) ; g ( a , "keyup" , c ) ; g ( a ,
"keydown" , c ) } function e ( a ) { for ( a = a . firstChild ; a ; ) { if ( a . namespaceURI === h && "binary-data" === a . localName ) return "data:image/png;base64," + a . textContent ; a = a . nextSibling } return "" } function k ( a , b , c , d ) { function f ( b ) { b = 'draw|image[styleid="' + a + '"] {' + ( "background-image: url(" + b + ");" ) + "}" ; d . insertRule ( b , d . cssRules . length ) } c . setAttribute ( "styleid" , a ) ; var g = c . getAttributeNS ( n , "href" ) , h ; if ( g ) try { b . getPartUrl ? ( g = b . getPartUrl ( g ) , f ( g ) ) : ( h = b . getPart ( g ) , h . onchange = function ( a ) { f ( a . url ) } , h . load ( ) ) } catch ( i ) { runtime . log ( "slight problem: " +
i ) } else g = e ( c ) , f ( g ) } function a ( a , b , c ) { function d ( a , b , c , f ) { z . addToQueue ( function ( ) { k ( a , b , c , f ) } ) } var f , e ; f = b . getElementsByTagNameNS ( o , "image" ) ; for ( b = 0 ; b < f . length ; b += 1 ) e = f . item ( b ) , d ( "image" + b , a , e , c ) } function c ( a ) { var b = a . getElementsByTagName ( "style" ) , c = a . getElementsByTagName ( "head" ) [ 0 ] , f = "" , e , b = b && 0 < b . length ? b [ 0 ] . cloneNode ( ! 1 ) : a . createElement ( "style" ) ; for ( e in d ) d . hasOwnProperty ( e ) && e && ( f += "@namespace " + e + " url(" + d [ e ] + ");\n" ) ; b . appendChild ( a . createTextNode ( f ) ) ; c . appendChild ( b ) ; return b } var b = new odf . Style2CSS ,
d = b . namespaces , o = d . draw , f = d . fo , h = d . office , i = d . svg , j = d . text , n = d . xlink , x = runtime . getWindow ( ) , p = new xmldom . XPath , t = { } , r , z = new function ( ) { function a ( d ) { c = ! 0 ; runtime . setTimeout ( function ( ) { try { d ( ) } catch ( f ) { runtime . log ( f ) } c = ! 1 ; 0 < b . length && a ( b . pop ( ) ) } , 10 ) } var b = [ ] , c = ! 1 ; this . clearQueue = function ( ) { b . length = 0 } ; this . addToQueue = function ( d ) { if ( 0 === b . length && ! c ) return a ( d ) ; b . push ( d ) } } ; odf . OdfCanvas = function ( d ) { function e ( ) { var a = d . firstChild . firstChild ; a && ( d . style . WebkitTransform = "scale(" + F + ")" , d . style . WebkitTransformOrigin =
"left top" , d . style . width = Math . round ( F * a . offsetWidth ) + "px" , d . style . height = Math . round ( F * a . offsetHeight ) + "px" ) } function h ( c ) { function g ( ) { for ( var h = d ; h . firstChild ; ) h . removeChild ( h . firstChild ) ; d . style . display = "inline-block" ; h = c . rootElement ; d . ownerDocument . importNode ( h , ! 0 ) ; G . setOdfContainer ( c ) ; var k = y ; ( new odf . Style2CSS ) . style2css ( k . sheet , h . styles , h . automaticStyles ) ; var k = c , m = B . sheet , l ; l = h . body ; var r , z , u ; z = [ ] ; for ( r = l . firstChild ; r && r !== l ; ) if ( r . namespaceURI === o && ( z [ z . length ] = r ) , r . firstChild ) r = r . firstChild ;
else { for ( ; r && r !== l && ! r . nextSibling ; ) r = r . parentNode ; r && r . nextSibling && ( r = r . nextSibling ) } for ( u = 0 ; u < z . length ; u += 1 ) { r = z [ u ] ; var w = "frame" + u , x = m ; r . setAttribute ( "styleid" , w ) ; var v = void 0 , S = r . getAttributeNS ( j , "anchor-type" ) , E = r . getAttributeNS ( i , "x" ) , F = r . getAttributeNS ( i , "y" ) , M = r . getAttributeNS ( i , "width" ) , Q = r . getAttributeNS ( i , "height" ) , $ = r . getAttributeNS ( f , "min-height" ) , W = r . getAttributeNS ( f , "min-width" ) ; if ( "as-char" === S ) v = "display: inline-block;" ; else if ( S || E || F ) v = "position: absolute;" ; else if ( M || Q || $ || W ) v =
"display: block;" ; E && ( v += "left: " + E + ";" ) ; F && ( v += "top: " + F + ";" ) ; M && ( v += "width: " + M + ";" ) ; Q && ( v += "height: " + Q + ";" ) ; $ && ( v += "min-height: " + $ + ";" ) ; W && ( v += "min-width: " + W + ";" ) ; v && ( v = "draw|" + r . localName + '[styleid="' + w + '"] {' + v + "}" , x . insertRule ( v , x . cssRules . length ) ) } u = p . getODFElementsWithXPath ( l , ".//*[*[@text:anchor-type='paragraph']]" , b . namespaceResolver ) ; for ( z = 0 ; z < u . length ; z += 1 ) l = u [ z ] , l . setAttributeNS && l . setAttributeNS ( "urn:webodf" , "containsparagraphanchor" , ! 0 ) ; m . insertRule ( "office|presentation draw|page:nth-child(1n) {display:block;}" ,
m . cssRules . length ) ; m . insertRule ( "draw|page { background-color:#fff; }" , m . cssRules . length ) ; for ( l = d ; l . firstChild ; ) l . removeChild ( l . firstChild ) ; l = n . createElement ( "div" ) ; l . style . display = "inline-block" ; l . style . background = "white" ; l . appendChild ( h ) ; d . appendChild ( l ) ; a ( k , h . body , m ) ; e ( ) ; if ( t . hasOwnProperty ( "statereadychange" ) ) { h = t . statereadychange ; for ( k = 0 ; k < h . length ; k += 1 ) h [ k ] ( void 0 ) } } w === c && ( w . state === odf . OdfContainer . DONE ? g ( ) : w . onchange = g ) } function k ( ) { if ( r ) { for ( var a = r . ownerDocument . createDocumentFragment ( ) ; r . firstChild ; ) a . insertBefore ( r . firstChild ,
null ) ; r . parentNode . replaceChild ( a , r ) } } var n = d . ownerDocument , w , G = new odf . Formatting , l = new m ( d ) , v = c ( n ) , y = c ( n ) , B = c ( n ) , M = ! 1 , F = 1 ; this . odfContainer = function ( ) { return w } ; this . slidevisibilitycss = function ( ) { return v } ; this . load = this . load = function ( a ) { z . clearQueue ( ) ; d . innerHTML = "loading " + a ; w = new odf . OdfContainer ( a , function ( a ) { w = a ; h ( a ) } ) ; w . onstatereadychange = h } ; this . save = function ( a ) { k ( ) ; w . save ( a ) } ; this . setEditable = function ( a ) { ( M = a ) || k ( ) } ; this . addListener = function ( a , b ) { if ( "selectionchange" === a ) l . addListener ( a ,
b ) ; else { var c = t [ a ] ; void 0 === c && ( c = t [ a ] = [ ] ) ; b && - 1 === c . indexOf ( b ) && c . push ( b ) } } ; this . getFormatting = function ( ) { return G } ; this . setZoomLevel = function ( a ) { F = a ; e ( ) } ; this . getZoomLevel = function ( ) { return F } ; this . fitToContainingElement = function ( a , b ) { var c = d . offsetHeight / F ; F = a / ( d . offsetWidth / F ) ; b / c < F && ( F = b / c ) ; e ( ) } ; this . fitToWidth = function ( a ) { F = a / ( d . offsetWidth / F ) ; e ( ) } ; this . fitToHeight = function ( a ) { F = a / ( d . offsetHeight / F ) ; e ( ) } ; g ( d , "click" , function ( a ) { for ( var a = a || x . event , b = a . target , c = x . getSelection ( ) , d = 0 < c . rangeCount ?
c . getRangeAt ( 0 ) : null , f = d && d . startContainer , e = d && d . startOffset , g = d && d . endContainer , h = d && d . endOffset ; b && ! ( ( "p" === b . localName || "h" === b . localName ) && b . namespaceURI === j ) ; ) b = b . parentNode ; M && b && b . parentNode !== r && ( r ? r . parentNode && k ( ) : ( r = b . ownerDocument . createElement ( "p" ) , r . style || ( r = b . ownerDocument . createElementNS ( "http://www.w3.org/1999/xhtml" , "p" ) ) , r . style . margin = "0px" , r . style . padding = "0px" , r . style . border = "0px" , r . setAttribute ( "contenteditable" , ! 0 ) ) , b . parentNode . replaceChild ( r , b ) , r . appendChild ( b ) , r . focus ( ) ,
d && ( c . removeAllRanges ( ) , d = b . ownerDocument . createRange ( ) , d . setStart ( f , e ) , d . setEnd ( g , h ) , c . addRange ( d ) ) , a . preventDefault ? ( a . preventDefault ( ) , a . stopPropagation ( ) ) : ( a . returnValue = ! 1 , a . cancelBubble = ! 0 ) ) } ) } ; return odf . OdfCanvas } ( ) ;
2011-12-06 08:48:24 +01:00
// Input 26
runtime . loadClass ( "xmldom.XPath" ) ; runtime . loadClass ( "odf.Style2CSS" ) ;
2012-03-16 21:26:34 +01:00
gui . PresenterUI = function ( ) { var g = new odf . Style2CSS , m = new xmldom . XPath , e = g . namespaceResolver ; return function ( g ) { var a = this ; a . setInitialSlideMode = function ( ) { a . startSlideMode ( "single" ) } ; a . keyDownHandler = function ( c ) { if ( ! ( c . target . isContentEditable || "input" === c . target . nodeName ) ) switch ( c . keyCode ) { case 84 : a . toggleToolbar ( ) ; break ; case 37 : case 8 : a . prevSlide ( ) ; break ; case 39 : case 32 : a . nextSlide ( ) ; break ; case 36 : a . firstSlide ( ) ; break ; case 35 : a . lastSlide ( ) } } ; a . root = function ( ) { return a . odf _canvas . odfContainer ( ) . rootElement } ;
a . firstSlide = function ( ) { a . slideChange ( function ( ) { return 0 } ) } ; a . lastSlide = function ( ) { a . slideChange ( function ( a , b ) { return b - 1 } ) } ; a . nextSlide = function ( ) { a . slideChange ( function ( a , b ) { return a + 1 < b ? a + 1 : - 1 } ) } ; a . prevSlide = function ( ) { a . slideChange ( function ( a ) { return 1 > a ? - 1 : a - 1 } ) } ; a . slideChange = function ( c ) { var b = a . getPages ( a . odf _canvas . odfContainer ( ) . rootElement ) , d = - 1 , e = 0 ; b . forEach ( function ( a ) { a = a [ 1 ] ; a . hasAttribute ( "slide_current" ) && ( d = e , a . removeAttribute ( "slide_current" ) ) ; e += 1 } ) ; c = c ( d , b . length ) ; - 1 === c && ( c = d ) ;
b [ c ] [ 1 ] . setAttribute ( "slide_current" , "1" ) ; document . getElementById ( "pagelist" ) . selectedIndex = c ; "cont" === a . slide _mode && window . scrollBy ( 0 , b [ c ] [ 1 ] . getBoundingClientRect ( ) . top - 30 ) } ; a . selectSlide = function ( c ) { a . slideChange ( function ( a , d ) { return c >= d || 0 > c ? - 1 : c } ) } ; a . scrollIntoContView = function ( c ) { var b = a . getPages ( a . odf _canvas . odfContainer ( ) . rootElement ) ; 0 !== b . length && window . scrollBy ( 0 , b [ c ] [ 1 ] . getBoundingClientRect ( ) . top - 30 ) } ; a . getPages = function ( a ) { var a = a . getElementsByTagNameNS ( e ( "draw" ) , "page" ) , b = [ ] , d ; for ( d =
0 ; d < a . length ; d += 1 ) b . push ( [ a [ d ] . getAttribute ( "draw:name" ) , a [ d ] ] ) ; return b } ; a . fillPageList = function ( c , b ) { for ( var d = a . getPages ( c ) , e , f , g ; b . firstChild ; ) b . removeChild ( b . firstChild ) ; for ( e = 0 ; e < d . length ; e += 1 ) f = document . createElement ( "option" ) , g = m . getODFElementsWithXPath ( d [ e ] [ 1 ] , './draw:frame[@presentation:class="title"]//draw:text-box/text:p' , xmldom . XPath ) , g = 0 < g . length ? g [ 0 ] . textContent : d [ e ] [ 0 ] , f . textContent = e + 1 + ": " + g , b . appendChild ( f ) } ; a . startSlideMode = function ( c ) { var b = document . getElementById ( "pagelist" ) ,
d = a . odf _canvas . slidevisibilitycss ( ) . sheet ; for ( a . slide _mode = c ; 0 < d . cssRules . length ; ) d . deleteRule ( 0 ) ; a . selectSlide ( 0 ) ; "single" === a . slide _mode ? ( d . insertRule ( "draw|page { position:fixed; left:0px;top:30px; z-index:1; }" , 0 ) , d . insertRule ( "draw|page[slide_current] { z-index:2;}" , 1 ) , d . insertRule ( "draw|page { -webkit-transform: scale(1);}" , 2 ) , a . fitToWindow ( ) , window . addEventListener ( "resize" , a . fitToWindow , ! 1 ) ) : "cont" === a . slide _mode && window . removeEventListener ( "resize" , a . fitToWindow , ! 1 ) ; a . fillPageList ( a . odf _canvas . odfContainer ( ) . rootElement ,
b ) } ; a . toggleToolbar = function ( ) { var c , b , d ; c = a . odf _canvas . slidevisibilitycss ( ) . sheet ; b = - 1 ; for ( d = 0 ; d < c . cssRules . length ; d += 1 ) if ( ".toolbar" === c . cssRules [ d ] . cssText . substring ( 0 , 8 ) ) { b = d ; break } - 1 < b ? c . deleteRule ( b ) : c . insertRule ( ".toolbar { position:fixed; left:0px;top:-200px; z-index:0; }" , 0 ) } ; a . fitToWindow = function ( ) { var c = a . getPages ( a . root ( ) ) , b = ( window . innerHeight - 40 ) / c [ 0 ] [ 1 ] . clientHeight , c = ( window . innerWidth - 10 ) / c [ 0 ] [ 1 ] . clientWidth , b = b < c ? b : c , c = a . odf _canvas . slidevisibilitycss ( ) . sheet ; c . deleteRule ( 2 ) ; c . insertRule ( "draw|page { \n-moz-transform: scale(" +
b + "); \n-moz-transform-origin: 0% 0%; -webkit-transform-origin: 0% 0%; -webkit-transform: scale(" + b + "); -o-transform-origin: 0% 0%; -o-transform: scale(" + b + "); -ms-transform-origin: 0% 0%; -ms-transform: scale(" + b + "); }" , 2 ) } ; a . load = function ( c ) { a . odf _canvas . load ( c ) } ; a . odf _element = g ; a . odf _canvas = new odf . OdfCanvas ( a . odf _element ) ; a . odf _canvas . addListener ( "statereadychange" , a . setInitialSlideMode ) ; a . slide _mode = "undefined" ; document . addEventListener ( "keydown" , a . keyDownHandler , ! 1 ) } } ( ) ;
2011-12-06 08:48:24 +01:00
// Input 27
2012-03-16 21:26:34 +01:00
gui . Caret = function ( g , m ) { m . ownerDocument . createElementNS ( "urn:webodf:names:cursor" , "cursor" ) ; this . updateToSelection = function ( ) { 1 === g . rangeCount && g . getRangeAt ( 0 ) } } ;
2011-12-06 08:48:24 +01:00
// Input 28
runtime . loadClass ( "core.Cursor" ) ;
2012-03-16 21:26:34 +01:00
gui . SelectionMover = function ( g , m ) { function e ( a , c ) { if ( 0 !== g . rangeCount ) { var e = g . getRangeAt ( 0 ) ; if ( e . startContainer && 1 === e . startContainer . nodeType ) { m . setPoint ( e . startContainer , e . startOffset ) ; c ( ) ; e = m . node ( ) ; m . position ( ) ; var f = [ ] , h ; for ( h = 0 ; h < g . rangeCount ; h += 1 ) f [ h ] = g . getRangeAt ( h ) ; g . removeAllRanges ( ) ; 0 === f . length && ( f [ 0 ] = e . ownerDocument . createRange ( ) ) ; f [ f . length - 1 ] . setStart ( m . node ( ) , m . position ( ) ) ; for ( h = 0 ; h < f . length ; h += 1 ) g . addRange ( f [ h ] ) } } } function k ( ) { c . updateToSelection ( ) ; for ( var a = c . getNode ( ) . getBoundingClientRect ( ) ,
d = a . left , e = a . top , a = ! 1 ; ! a ; ) { c . remove ( ) ; if ( g . focusNode && 1 === g . focusNode . nodeType ) { m . setPoint ( g . focusNode , g . focusOffset ) ; m . stepForward ( ) ; var a = m . node ( ) , f = m . position ( ) ; g . collapse ( a , f ) ; c . updateToSelection ( ) } a = c . getNode ( ) . getBoundingClientRect ( ) ; a = a . top !== e && a . left > d } } var a = m . node ( ) . ownerDocument , c = new core . Cursor ( g , a ) ; this . movePointForward = function ( a ) { e ( a , m . stepForward ) } ; this . movePointBackward = function ( a ) { e ( a , m . stepBackward ) } ; this . moveLineForward = function ( a ) { g . modify ? g . modify ( a ? "extend" : "move" , "forward" ,
"line" ) : e ( a , k ) } ; this . moveLineBackward = function ( a ) { g . modify ? g . modify ( a ? "extend" : "move" , "backward" , "line" ) : e ( a , function ( ) { } ) } ; return this } ;
2011-12-06 08:48:24 +01:00
// Input 29
runtime . loadClass ( "core.PointWalker" ) ; runtime . loadClass ( "core.Cursor" ) ;
2012-03-16 21:26:34 +01:00
gui . XMLEdit = function ( g , m ) { function e ( a , b , c ) { a . addEventListener ? a . addEventListener ( b , c , ! 1 ) : a . attachEvent ? a . attachEvent ( "on" + b , c ) : a [ "on" + b ] = c } function k ( a ) { a . preventDefault ? a . preventDefault ( ) : a . returnValue = ! 1 } function a ( ) { var a = g . ownerDocument . defaultView . getSelection ( ) ; a && ! ( 0 >= a . rangeCount ) && p && ( a = a . getRangeAt ( 0 ) , p . setPoint ( a . startContainer , a . startOffset ) ) } function c ( ) { var a = g . ownerDocument . defaultView . getSelection ( ) , b , c ; a . removeAllRanges ( ) ; p && p . node ( ) && ( b = p . node ( ) , c = b . ownerDocument . createRange ( ) ,
c . setStart ( b , p . position ( ) ) , c . collapse ( ! 0 ) , a . addRange ( c ) ) } function b ( b ) { var d = b . charCode || b . keyCode ; if ( p = null , p && 37 === d ) a ( ) , p . stepBackward ( ) , c ( ) ; else if ( 16 <= d && 20 >= d || 33 <= d && 40 >= d ) return ; k ( b ) } function d ( ) { } function o ( a ) { g . ownerDocument . defaultView . getSelection ( ) . getRangeAt ( 0 ) ; k ( a ) } function f ( a ) { for ( var b = a . firstChild ; b && b !== a ; ) 1 === b . nodeType && f ( b ) , b = b . nextSibling || b . parentNode ; var c , d , e , b = a . attributes ; c = "" ; for ( e = b . length - 1 ; 0 <= e ; e -= 1 ) d = b . item ( e ) , c = c + " " + d . nodeName + '="' + d . nodeValue + '"' ; a . setAttribute ( "customns_name" ,
a . nodeName ) ; a . setAttribute ( "customns_atts" , c ) ; b = a . firstChild ; for ( d = /^\s*$/ ; b && b !== a ; ) c = b , b = b . nextSibling || b . parentNode , 3 === c . nodeType && d . test ( c . nodeValue ) && c . parentNode . removeChild ( c ) } function h ( a , b ) { for ( var c = a . firstChild , d , e , f ; c && c !== a ; ) { if ( 1 === c . nodeType ) { h ( c , b ) ; d = c . attributes ; for ( f = d . length - 1 ; 0 <= f ; f -= 1 ) e = d . item ( f ) , "http://www.w3.org/2000/xmlns/" === e . namespaceURI && ! b [ e . nodeValue ] && ( b [ e . nodeValue ] = e . localName ) } c = c . nextSibling || c . parentNode } } function i ( ) { var a = g . ownerDocument . createElement ( "style" ) ,
b ; b = { } ; h ( g , b ) ; var c = { } , d , e , f = 0 ; for ( d in b ) if ( b . hasOwnProperty ( d ) && d ) { e = b [ d ] ; if ( ! e || c . hasOwnProperty ( e ) || "xmlns" === e ) { do e = "ns" + f , f += 1 ; while ( c . hasOwnProperty ( e ) ) ; b [ d ] = e } c [ e ] = ! 0 } a . type = "text/css" ; b = "@namespace customns url(customns);\n" + j ; a . appendChild ( g . ownerDocument . createTextNode ( b ) ) ; m = m . parentNode . replaceChild ( a , m ) } var j , n , x , p = null ; g . id || ( g . id = "xml" + ( "" + Math . random ( ) ) . substring ( 2 ) ) ; n = "#" + g . id + " " ; j = n + "*," + n + ":visited, " + n + ":link {display:block; margin: 0px; margin-left: 10px; font-size: medium; color: black; background: white; font-variant: normal; font-weight: normal; font-style: normal; font-family: sans-serif; text-decoration: none; white-space: pre-wrap; height: auto; width: auto}\n" +
n + ":before {color: blue; content: '<' attr(customns_name) attr(customns_atts) '>';}\n" + n + ":after {color: blue; content: '</' attr(customns_name) '>';}\n" + n + "{overflow: auto;}\n" ; ( function ( a ) { e ( a , "click" , o ) ; e ( a , "keydown" , b ) ; e ( a , "keypress" , d ) ; e ( a , "drop" , k ) ; e ( a , "dragend" , k ) ; e ( a , "beforepaste" , k ) ; e ( a , "paste" , k ) } ) ( g ) ; this . updateCSS = i ; this . setXML = function ( a ) { a = a . documentElement || a ; x = a = g . ownerDocument . importNode ( a , ! 0 ) ; for ( f ( a ) ; g . lastChild ; ) g . removeChild ( g . lastChild ) ; g . appendChild ( a ) ; i ( ) ; p = new core . PointWalker ( a ) } ;
this . getXML = function ( ) { return x } } ;
// Input 30
( function ( ) { return "core/Async.js,core/Base64.js,core/ByteArray.js,core/ByteArrayWriter.js,core/Cursor.js,core/JSLint.js,core/PointWalker.js,core/RawDeflate.js,core/RawInflate.js,core/UnitTester.js,core/Zip.js,gui/Caret.js,gui/SelectionMover.js,gui/XMLEdit.js,gui/PresenterUI.js,odf/FontLoader.js,odf/Formatting.js,odf/OdfCanvas.js,odf/OdfContainer.js,odf/Style2CSS.js,odf/StyleInfo.js,xmldom/LSSerializer.js,xmldom/LSSerializerFilter.js,xmldom/OperationalTransformDOM.js,xmldom/OperationalTransformInterface.js,xmldom/RelaxNG.js,xmldom/RelaxNG2.js,xmldom/RelaxNGParser.js,xmldom/XPath.js" . split ( "," ) } ) ( ) ;