// 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(){};
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(h,l){function f(f){var a="",c,b=f.length,d,i,e;for(c=0;c<b;c+=1)d=f[c],128>d?a+=String.fromCharCode(d):(c+=1,i=f[c],224>d?a+=String.fromCharCode((d&31)<<6|i&63):(c+=1,e=f[c],a+=String.fromCharCode((d&15)<<12|(i&63)<<6|e&63)));return a}if("utf8"===l)return f(h);"binary"!==l&&this.log("Unsupported encoding: "+l);return function(f){var a="",c,b=f.length;for(c=0;c<b;c+=1)a+=String.fromCharCode(f[c]&255);return a}(h)};
Runtime.getFunctionName=function(h){return void 0===h.name?(h=/function\s+(\w+)/.exec(h))&&h[1]:h.name};
function BrowserRuntime(h){function l(c,b){var d,a,e;b?e=c:b=c;if(h){a=h.ownerDocument;if(e)d=a.createElement("span"),d.className=e,d.appendChild(a.createTextNode(e)),h.appendChild(d),h.appendChild(a.createTextNode(" "));d=a.createElement("span");d.appendChild(a.createTextNode(b));h.appendChild(d);h.appendChild(a.createElement("br"))}else console&&console.log(b)}var f=this,m={},a=window.ArrayBuffer&&window.Uint8Array;this.ByteArray=a?function(c){Uint8Array.prototype.slice=function(c,d){if(void 0===
d)void 0===c&&(c=0),d=this.length;var a=this.subarray(c,d),e,g,d=d-c;e=new Uint8Array(new ArrayBuffer(d));for(g=0;g<d;g+=1)e[g]=a[g];return e};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,e=b.length,g=new this.ByteArray(a+e);for(d=0;d<a;d+=1)g[d]=c[d];for(d=0;d<e;d+=1)g[d+a]=b[d];return g}: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,e,g,j=0;for(e=0;e<d;e+=1)g=c.charCodeAt(e),j+=1+(128<g)+(2048<g);a=new f.ByteArray(j);for(e=j=0;e<d;e+=1)g=c.charCodeAt(e),128>g?(a[j]=g,j+=1):2048>g?(a[j]=192|g>>>6,a[j+1]=128|g&63,j+=2):(a[j]=224|g>>>12&15,a[j+1]=128|g>>>6&63,a[j+2]=128|g&63,j+=3);return a}"binary"!==b&&f.log("unknown encoding: "+b);d=c.length;a=new f.ByteArray(d);for(e=0;e<d;e+=1)a[e]=c.charCodeAt(e)&255;return a};this.byteArrayToString=Runtime.byteArrayToString;this.readFile=function(c,b,a){if(m.hasOwnProperty(c))a(null,
m[c]);else{var i=new XMLHttpRequest;i.open("GET",c,!0);i.onreadystatechange=function(){var e;4===i.readyState&&(0===i.status&&!i.responseText?a("File "+c+" is empty."):200===i.status||0===i.status?(e="binary"===b?"undefined"!==typeof VBArray?(new VBArray(i.responseBody)).toArray():f.byteArrayFromString(i.responseText,"binary"):i.responseText,m[c]=e,a(null,e)):a(i.responseText||i.statusText))};i.overrideMimeType&&("binary"!==b?i.overrideMimeType("text/plain; charset="+b):i.overrideMimeType("text/plain; charset=x-user-defined"));
try{i.send(null)}catch(e){a(e.message)}}};this.read=function(c,b,a,i){if(m.hasOwnProperty(c))i(null,m[c].slice(b,b+a));else{var e=new XMLHttpRequest;e.open("GET",c,!0);e.onreadystatechange=function(){var g;4===e.readyState&&(0===e.status&&!e.responseText?i("File "+c+" is empty."):200===e.status||0===e.status?(g="undefined"!==typeof VBArray?(new VBArray(e.responseBody)).toArray():f.byteArrayFromString(e.responseText,"binary"),m[c]=g,i(null,g.slice(b,b+a))):i(e.responseText||e.statusText))};e.overrideMimeType&&
e.overrideMimeType("text/plain; charset=x-user-defined");try{e.send(null)}catch(g){i(g.message)}}};this.readFileSync=function(c,b){var a=new XMLHttpRequest,i;a.open("GET",c,!1);a.overrideMimeType&&("binary"!==b?a.overrideMimeType("text/plain; charset="+b):a.overrideMimeType("text/plain; charset=x-user-defined"));try{if(a.send(null),200===a.status||0===a.status)i=a.responseText}catch(e){}return i};this.writeFile=function(c,b,a){m[c]=b;var i=new XMLHttpRequest;i.open("PUT",c,!0);i.onreadystatechange=
function(){4===i.readyState&&(0===i.status&&!i.responseText?a("File "+c+" is empty."):200<=i.status&&300>i.status||0===i.status?a(null):a("Status "+i.status+": "+i.responseText||i.statusText))};b=b.buffer&&!i.sendAsBinary?b.buffer:f.byteArrayToString(b,"binary");try{i.sendAsBinary?i.sendAsBinary(b):i.send(b)}catch(e){f.log("HUH? "+e+" "+b),a(e.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(c,a){var d=new XMLHttpRequest;d.open("GET",c,!0);d.overrideMimeType&&d.overrideMimeType("text/xml");d.onreadystatechange=function(){4===d.readyState&&(0===d.status&&!d.responseText?a("File "+c+" is empty."):200===d.status||0===d.status?a(null,d.responseXML):a(d.responseText))};try{d.send(null)}catch(i){a(i.message)}};this.isFile=function(c,a){f.getFileSize(c,function(c){a(-1!==c)})};this.getFileSize=function(c,a){var d=new XMLHttpRequest;
d.open("HEAD",c,!0);d.onreadystatechange=function(){if(4===d.readyState){var c=d.getResponseHeader("Content-Length");c?a(parseInt(c,10)):a(-1)}};d.send(null)};this.log=l;this.setTimeout=function(c,a){setTimeout(function(){c()},a)};this.libraryPaths=function(){return["lib"]};this.setCurrentDirectory=function(){};this.type=function(){return"BrowserRuntime"};this.getDOMImplementation=function(){return window.document.implementation};this.exit=function(c){l("Calling exit with code "+c+", but exit() is not implemented.")};
this.getWindow=function(){return window}}
function NodeJSRuntime(){var h=require("fs"),l="";this.ByteArray=function(f){return new Buffer(f)};this.byteArrayFromArray=function(f){var m=new Buffer(f.length),a,c=f.length;for(a=0;a<c;a+=1)m[a]=f[a];return m};this.concatByteArrays=function(f,m){var a=new Buffer(f.length+m.length);f.copy(a,0,0);m.copy(a,f.length,0);return a};this.byteArrayFromString=function(f,m){return new Buffer(f,m)};this.byteArrayToString=function(f,m){return f.toString(m)};this.readFile=function(f,m,a){"binary"!==m?h.readFile(f,
m,a):h.readFile(f,null,a)};this.writeFile=function(f,m,a){h.writeFile(f,m,"binary",function(c){a(c||null)})};this.deleteFile=h.unlink;this.read=function(f,m,a,c){l&&(f=l+"/"+f);h.open(f,"r+",666,function(b,d){if(b)c(b);else{var i=new Buffer(a);h.read(d,i,0,a,m,function(a){h.close(d);c(a,i)})}})};this.readFileSync=function(f,m){return!m?"":h.readFileSync(f,m)};this.loadXML=function(){throw"Not implemented.";};this.isFile=function(f,m){l&&(f=l+"/"+f);h.stat(f,function(a,c){m(!a&&c.isFile())})};this.getFileSize=
function(f,m){l&&(f=l+"/"+f);h.stat(f,function(a,c){a?m(-1):m(c.size)})};this.log=function(f){process.stderr.write(f+"\n")};this.setTimeout=function(f,m){setTimeout(function(){f()},m)};this.libraryPaths=function(){return[__dirname]};this.setCurrentDirectory=function(f){l=f};this.currentDirectory=function(){return l};this.type=function(){return"NodeJSRuntime"};this.getDOMImplementation=function(){return null};this.exit=process.exit;this.getWindow=function(){return null}}
function RhinoRuntime(){var h=this,l=Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance(),f,m,a="";l.setValidating(!1);l.setNamespaceAware(!0);l.setExpandEntityReferences(!1);l.setSchema(null);m=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)}});f=l.newDocumentBuilder();f.setEntityResolver(m);this.ByteArray=function(a){return[a]};this.byteArrayFromArray=function(a){return a};this.byteArrayFromString=
function(a){var b=[],d,i=a.length;for(d=0;d<i;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),i;try{i=f.parse(d)}catch(e){print(e);b(e);return}b(null,i)};this.readFile=function(a,b,d){var i=new Packages.java.io.File(a),e="binary"===b?"latin1":b;i.isFile()?(a=readFile(a,e),"binary"===b&&(a=h.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),i,e=b.length;for(i=0;i<e;i+=1)a.write(b[i]);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,i){a&&(c=a+"/"+c);var e;e=c;var g="binary";(new Packages.java.io.File(e)).isFile()?("binary"===g&&(g="latin1"),e=readFile(e,g)):e=null;e?i(null,this.byteArrayFromString(e.substring(b,b+d),"binary")):i("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 f.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 h(f){var a=f[0],c;c=eval("if (typeof "+a+" === 'undefined') {eval('"+a+" = {};');}"+a);for(a=1;a<f.length-1;a+=1)c.hasOwnProperty(f[a])||(c=c[f[a]]={});return c[f[f.length-1]]}var l={},f={};runtime.loadClass=function(m){function a(a){var a=a.replace(".","/")+".js",c=runtime.libraryPaths(),b,g,j;runtime.currentDirectory&&c.push(runtime.currentDirectory());for(b=0;b<c.length;b+=1){g=c[b];if(!f.hasOwnProperty(g))if((j=runtime.readFileSync(c[b]+"/manifest.js","utf8"))&&j.length)try{f[g]=
eval(j)}catch(t){f[g]=null,runtime.log("Cannot load manifest for "+g+".")}else f[g]=null;if((g=f[g])&&g.indexOf&&-1!==g.indexOf(a))return c[b]+"/"+a}return null}if(!IS_COMPILED_CODE&&!l.hasOwnProperty(m)){var c=m.split("."),b;b=h(c);if(!b&&(b=function(c){var b,e;e=a(c);if(!e)throw c+" is not listed in any manifest.js.";try{b=runtime.readFileSync(e,"utf8")}catch(g){throw runtime.log("Error loading "+c+" "+g),g;}if(void 0===b)throw"Cannot load class "+c;try{b=eval(c+" = eval(code);")}catch(f){throw runtime.log("Error loading "+
c+" "+f),f;}return b}(m),!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];l[m]=!0}}})();
(function(h){function l(f){if(f.length){var h=f[0];runtime.readFile(h,"utf8",function(a,c){function b(){var a;(a=eval(c))&&runtime.exit(a)}var d="";runtime.libraryPaths();-1!==h.indexOf("/")&&(d=h.substring(0,h.indexOf("/")));runtime.setCurrentDirectory(d);a?(runtime.log(a),runtime.exit(1)):b.apply(null,f)})}}h=Array.prototype.slice.call(h);"NodeJSRuntime"===runtime.type()?l(process.argv.slice(2)):"RhinoRuntime"===runtime.type()?l(h):l(h.slice(1))})("undefined"!==typeof arguments&&arguments);
// Input 2
core.Base64=function(){function h(a){var c=[],b,e=a.length;for(b=0;b<e;b+=1)c[b]=a.charCodeAt(b)&255;return c}function l(a){var b,c="",e,d=a.length-2;for(e=0;e<d;e+=3)b=a[e]<<16|a[e+1]<<8|a[e+2],c+=u[b>>>18],c+=u[b>>>12&63],c+=u[b>>>6&63],c+=u[b&63];e===d+1?(b=a[e]<<4,c+=u[b>>>6],c+=u[b&63],c+="=="):e===d&&(b=a[e]<<10|a[e+1]<<2,c+=u[b>>>12],c+=u[b>>>6&63],c+=u[b&63],c+="=");return c}function f(a){var a=a.replace(/[^A-Za-z0-9+\/]+/g,""),c=[],b=a.length%4,e,d=a.length,k;for(e=0;e<d;e+=4)k=(o[a.charAt(e)]||
0)<<18|(o[a.charAt(e+1)]||0)<<12|(o[a.charAt(e+2)]||0)<<6|(o[a.charAt(e+3)]||0),c.push(k>>16,k>>8&255,k&255);c.length-=[0,0,2,1][b];return c}function m(a){var c=[],b,e=a.length,d;for(b=0;b<e;b+=1)d=a[b],128>d?c.push(d):2048>d?c.push(192|d>>>6,128|d&63):c.push(224|d>>>12&15,128|d>>>6&63,128|d&63);return c}function a(a){var c=[],b,e=a.length,d,k,g;for(b=0;b<e;b+=1)d=a[b],128>d?c.push(d):(b+=1,k=a[b],224>d?c.push((d&31)<<6|k&63):(b+=1,g=a[b],c.push((d&15)<<12|(k&63)<<6|g&63)));return c}function c(a){return l(h(a))}
function b(a){return String.fromCharCode.apply(String,f(a))}function d(c){return a(h(c))}function i(c){for(var c=a(c),b="",e=0;e<c.length;)b+=String.fromCharCode.apply(String,c.slice(e,45E3)),e+=45E3;return b}function e(a,c,b){var e="",d,k,g;for(g=c;g<b;g+=1)c=a.charCodeAt(g)&255,128>c?e+=String.fromCharCode(c):(g+=1,d=a.charCodeAt(g)&255,224>c?e+=String.fromCharCode((c&31)<<6|d&63):(g+=1,k=a.charCodeAt(g)&255,e+=String.fromCharCode((c&15)<<12|(d&63)<<6|k&63)));return e}function g(a,c){function b(){var p=
g+d;if(p>a.length)p=a.length;k+=e(a,g,p);g=p;p=g===a.length;c(k,p)&&!p&&runtime.setTimeout(b,0)}var d=1E5,k="",g=0;a.length<d?c(e(a,0,a.length),!0):("string"!==typeof a&&(a=a.slice()),b())}function j(a){return m(h(a))}function t(a){return String.fromCharCode.apply(String,m(a))}function n(a){return String.fromCharCode.apply(String,m(h(a)))}var u="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 o=function(a){var c={},b,e;for(b=0,e=a.length;b<e;b+=1)c[a.charAt(b)]=b;return c}(u),k,p,z,D;(z=runtime.getWindow()&&runtime.getWindow().btoa)?k=function(a){return z(n(a))}:(z=c,k=function(a){return l(j(a))});(D=runtime.getWindow()&&runtime.getWindow().atob)?p=function(a){a=D(a);return e(a,0,a.length)}:(D=b,p=function(a){return i(f(a))});return function(){this.convertByteArrayToBase64=this.convertUTF8ArrayToBase64=l;this.convertBase64ToByteArray=
this.convertBase64ToUTF8Array=f;this.convertUTF16ArrayToByteArray=this.convertUTF16ArrayToUTF8Array=m;this.convertByteArrayToUTF16Array=this.convertUTF8ArrayToUTF16Array=a;this.convertUTF8StringToBase64=c;this.convertBase64ToUTF8String=b;this.convertUTF8StringToUTF16Array=d;this.convertByteArrayToUTF16String=this.convertUTF8ArrayToUTF16String=i;this.convertUTF8StringToUTF16String=g;this.convertUTF16StringToByteArray=this.convertUTF16StringToUTF8Array=j;this.convertUTF16ArrayToUTF8String=t;this.convertUTF16StringToUTF8String=
n;this.convertUTF16StringToBase64=k;this.convertBase64ToUTF16String=p;this.fromBase64=b;this.toBase64=c;this.atob=D;this.btoa=z;this.utob=n;this.btou=g;this.encode=k;this.encodeURI=function(a){return k(a).replace(/[+\/]/g,function(a){return"+"===a?"-":"_"}).replace(/\\=+$/,"")};this.decode=function(a){return p(a.replace(/[\-_]/g,function(a){return"-"===a?"+":"/"}))}}}();
// Input 3
core.RawDeflate=function(){function h(){this.dl=this.fc=0}function l(){this.extra_bits=this.static_tree=this.dyn_tree=null;this.max_code=this.max_length=this.elems=this.extra_base=0}function f(a,c,b,e){this.good_length=a;this.max_lazy=c;this.nice_length=b;this.max_chain=e}function m(){this.next=null;this.len=0;this.ptr=[];this.ptr.length=a;this.off=0}var a=8192,c,b,d,i,e=null,g,j,t,n,u,o,k,p,z,D,r,s,E,A,v,F,q,y,w,x,T,L,R,Y,B,J,I,Q,K,G,C,U,M,H,O,S,N,$,Z,ha,ca,da,V,ia,pa,aa,ea,W,ba,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],fa=[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 f(0,0,0,0),new f(4,4,8,4),new f(4,5,16,8),new f(4,6,32,32),new f(4,4,16,16),new f(8,16,32,32),new f(8,16,128,128),new f(8,32,128,256),new f(32,128,258,1024),new f(32,258,258,4096)];var la=function(k){e[j+g++]=k;if(j+g===a){var p;if(0!==g){null!==c?(k=c,c=c.next):k=new m;
k.next=null;k.len=k.off=0;null===b?b=d=k:d=d.next=k;k.len=g-j;for(p=0;p<k.len;p++)k.ptr[p]=e[j+p];g=j=0}}},ma=function(c){c&=65535;j+g<a-2?(e[j+g++]=c&255,e[j+g++]=c>>>8):(la(c&255),la(c>>>8))},na=function(){r=(r<<5^n[q+3-1]&255)&8191;s=k[32768+r];k[q&32767]=s;k[32768+r]=q},P=function(a,c){z>16-c?(p|=a<<z,ma(p),p=a>>16-z,z+=c-16):(p|=a<<z,z+=c)},X=function(a,c){P(c[a].fc,c[a].dl)},wa=function(a,c,b){return a[c].fc<a[b].fc||a[c].fc===a[b].fc&&N[c]<=N[b]},xa=function(a,c,b){var e;for(e=0;e<b&&qa<ja.length;e++)a[c+
e]=ja.charCodeAt(qa++)&255;return e},sa=function(){var a,c,b=65536-x-q;if(-1===b)b--;else if(65274<=q){for(a=0;32768>a;a++)n[a]=n[a+32768];y-=32768;q-=32768;D-=32768;for(a=0;8192>a;a++)c=k[32768+a],k[32768+a]=32768<=c?c-32768:0;for(a=0;32768>a;a++)c=k[a],k[a]=32768<=c?c-32768:0;b+=32768}w||(a=xa(n,q+x,b),0>=a?w=!0:x+=a)},ya=function(a){var c=T,b=q,e,d=F,g=32506<q?q-32506:0,p=q+258,f=n[b+d-1],i=n[b+d];F>=Y&&(c>>=2);do if(e=a,!(n[e+d]!==i||n[e+d-1]!==f||n[e]!==n[b]||n[++e]!==n[b+1])){b+=2;e++;do++b;
while(n[b]===n[++e]&&n[++b]===n[++e]&&n[++b]===n[++e]&&n[++b]===n[++e]&&n[++b]===n[++e]&&n[++b]===n[++e]&&n[++b]===n[++e]&&n[++b]===n[++e]&&b<p);e=258-(p-b);b=p-258;if(e>d){y=a;d=e;if(258<=e)break;f=n[b+d-1];i=n[b+d]}}while((a=k[a&32767])>g&&0!==--c);return d},ga=function(a,c){o[V++]=c;0===a?B[c].fc++:(a--,B[$[c]+256+1].fc++,J[(256>a?Z[a]:Z[256+(a>>7)])&255].fc++,u[ia++]=a,aa|=ea);ea<<=1;0===(V&7)&&(da[pa++]=aa,aa=0,ea=1);if(2<R&&0===(V&4095)){var b=8*V,e=q-D,d;for(d=0;30>d;d++)b+=J[d].fc*(5+fa[d]);
b>>=3;if(ia<parseInt(V/2,10)&&b<parseInt(e/2,10))return!0}return 8191===V||8192===ia},ta=function(a,c){for(var b=H[c],e=c<<1;e<=O;){e<O&&wa(a,H[e+1],H[e])&&e++;if(wa(a,b,H[e]))break;H[c]=H[e];c=e;e<<=1}H[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 e=0,d;for(d=1;15>=d;d++)e=e+M[d-1]<<1,b[d]=e;for(e=0;e<=c;e++)if(d=a[e].dl,0!==d)a[e].fc=za(b[d]++,d)},ua=function(a){var c=a.dyn_tree,b=a.static_tree,e=a.elems,d,k=-1,g=e;O=0;
S=573;for(d=0;d<e;d++)0!==c[d].fc?(H[++O]=k=d,N[d]=0):c[d].dl=0;for(;2>O;)d=H[++O]=2>k?++k:0,c[d].fc=1,N[d]=0,W--,null!==b&&(ba-=b[d].dl);a.max_code=k;for(d=O>>1;1<=d;d--)ta(c,d);do d=H[1],H[1]=H[O--],ta(c,1),b=H[1],H[--S]=d,H[--S]=b,c[g].fc=c[d].fc+c[b].fc,N[g]=N[d]>N[b]+1?N[d]:N[b]+1,c[d].dl=c[b].dl=g,H[1]=g++,ta(c,1);while(2<=O);H[--S]=H[1];g=a.dyn_tree;d=a.extra_bits;var e=a.extra_base,b=a.max_code,p=a.max_length,f=a.static_tree,i,o,j,q,t=0;for(o=0;15>=o;o++)M[o]=0;g[H[S]].dl=0;for(a=S+1;573>
a;a++)if(i=H[a],o=g[g[i].dl].dl+1,o>p&&(o=p,t++),g[i].dl=o,!(i>b))M[o]++,j=0,i>=e&&(j=d[i-e]),q=g[i].fc,W+=q*(o+j),null!==f&&(ba+=q*(f[i].dl+j));if(0!==t){do{for(o=p-1;0===M[o];)o--;M[o]--;M[o+1]+=2;M[p]--;t-=2}while(0<t);for(o=p;0!==o;o--)for(i=M[o];0!==i;)if(d=H[--a],!(d>b)){if(g[d].dl!==o)W+=(o-g[d].dl)*g[d].fc,g[d].fc=o;i--}}Aa(c,k)},Ba=function(a,c){var b,e=-1,d,k=a[0].dl,g=0,p=7,o=4;0===k&&(p=138,o=3);a[c+1].dl=65535;for(b=0;b<=c;b++)d=k,k=a[b+1].dl,++g<p&&d===k||(g<o?K[d].fc+=g:0!==d?(d!==
e&&K[d].fc++,K[16].fc++):10>=g?K[17].fc++:K[18].fc++,g=0,e=d,0===k?(p=138,o=3):d===k?(p=6,o=3):(p=7,o=4))},Ca=function(){8<z?ma(p):0<z&&la(p);z=p=0},Da=function(a,c){var b,e=0,d=0,k=0,g=0,p,i;if(0!==V){do 0===(e&7)&&(g=da[k++]),b=o[e++]&255,0===(g&1)?X(b,a):(p=$[b],X(p+256+1,a),i=ra[p],0!==i&&(b-=ha[p],P(b,i)),b=u[d++],p=(256>b?Z[b]:Z[256+(b>>7)])&255,X(p,c),i=fa[p],0!==i&&(b-=ca[p],P(b,i))),g>>=1;while(e<V)}X(256,a)},Ea=function(a,c){var b,e=-1,d,k=a[0].dl,g=0,p=7,o=4;0===k&&(p=138,o=3);for(b=0;b<=
c;b++)if(d=k,k=a[b+1].dl,!(++g<p&&d===k)){if(g<o){do X(d,K);while(0!==--g)}else 0!==d?(d!==e&&(X(d,K),g--),X(16,K),P(g-3,2)):10>=g?(X(17,K),P(g-3,3)):(X(18,K),P(g-11,7));g=0;e=d;0===k?(p=138,o=3):d===k?(p=6,o=3):(p=7,o=4)}},Fa=function(){var a;for(a=0;286>a;a++)B[a].fc=0;for(a=0;30>a;a++)J[a].fc=0;for(a=0;19>a;a++)K[a].fc=0;B[256].fc=1;aa=V=ia=pa=W=ba=0;ea=1},oa=function(a){var c,b,e,d;d=q-D;da[pa]=aa;ua(G);ua(C);Ba(B,G.max_code);Ba(J,C.max_code);ua(U);for(e=18;3<=e&&!(0!==K[va[e]].dl);e--);W+=3*
(e+1)+14;c=W+3+7>>3;b=ba+3+7>>3;b<=c&&(c=b);if(d+4<=c&&0<=D){P(0+a,3);Ca();ma(d);ma(~d);for(e=0;e<d;e++)la(n[D+e])}else if(b===c)P(2+a,3),Da(I,Q);else{P(4+a,3);d=G.max_code+1;c=C.max_code+1;e+=1;P(d-257,5);P(c-1,5);P(e-4,4);for(b=0;b<e;b++)P(K[va[b]].dl,3);Ea(B,d-1);Ea(J,c-1);Da(B,J)}Fa();0!==a&&Ca()},Ga=function(a,d,k){var p,o,i;for(p=0;null!==b&&p<k;){o=k-p;if(o>b.len)o=b.len;for(i=0;i<o;i++)a[d+p+i]=b.ptr[b.off+i];b.off+=o;b.len-=o;p+=o;if(0===b.len)o=b,b=b.next,o.next=c,c=o}if(p===k)return p;
if(j<g){o=k-p;o>g-j&&(o=g-j);for(i=0;i<o;i++)a[d+p+i]=e[j+i];j+=o;p+=o;g===j&&(g=j=0)}return p},Ia=function(a,c,e){var d;if(!i){if(!w){z=p=0;var o,f;if(0===Q[0].dl){G.dyn_tree=B;G.static_tree=I;G.extra_bits=ra;G.extra_base=257;G.elems=286;G.max_length=15;G.max_code=0;C.dyn_tree=J;C.static_tree=Q;C.extra_bits=fa;C.extra_base=0;C.elems=30;C.max_length=15;C.max_code=0;U.dyn_tree=K;U.static_tree=null;U.extra_bits=Ha;U.extra_base=0;U.elems=19;U.max_length=7;for(f=o=U.max_code=0;28>f;f++){ha[f]=o;for(d=
0;d<1<<ra[f];d++)$[o++]=f}$[o-1]=f;for(f=o=0;16>f;f++){ca[f]=o;for(d=0;d<1<<fa[f];d++)Z[o++]=f}for(o>>=7;30>f;f++){ca[f]=o<<7;for(d=0;d<1<<fa[f]-7;d++)Z[256+o++]=f}for(d=0;15>=d;d++)M[d]=0;for(d=0;143>=d;)I[d++].dl=8,M[8]++;for(;255>=d;)I[d++].dl=9,M[9]++;for(;279>=d;)I[d++].dl=7,M[7]++;for(;287>=d;)I[d++].dl=8,M[8]++;Aa(I,287);for(d=0;30>d;d++)Q[d].dl=5,Q[d].fc=za(d,5);Fa()}for(d=0;8192>d;d++)k[32768+d]=0;L=ka[R].max_lazy;Y=ka[R].good_length;T=ka[R].max_chain;D=q=0;x=xa(n,0,65536);if(0>=x)w=!0,x=
0;else{for(w=!1;262>x&&!w;)sa();for(d=r=0;2>d;d++)r=(r<<5^n[d]&255)&8191}b=null;j=g=0;3>=R?(F=2,v=0):(v=2,A=0);t=!1}i=!0;if(0===x)return t=!0,0}if((d=Ga(a,c,e))===e)return e;if(t)return d;if(3>=R)for(;0!==x&&null===b;){na();0!==s&&32506>=q-s&&(v=ya(s),v>x&&(v=x));if(3<=v)if(f=ga(q-y,v-3),x-=v,v<=L){v--;do q++,na();while(0!==--v);q++}else q+=v,v=0,r=n[q]&255,r=(r<<5^n[q+1]&255)&8191;else f=ga(0,n[q]&255),x--,q++;f&&(oa(0),D=q);for(;262>x&&!w;)sa()}else for(;0!==x&&null===b;){na();F=v;E=y;v=2;0!==s&&
F<L&&32506>=q-s&&(v=ya(s),v>x&&(v=x),3===v&&4096<q-y&&v--);if(3<=F&&v<=F){f=ga(q-1-E,F-3);x-=F-1;F-=2;do q++,na();while(0!==--F);A=0;v=2;q++;f&&(oa(0),D=q)}else 0!==A?ga(0,n[q-1]&255)&&(oa(0),D=q):A=1,q++,x--;for(;262>x&&!w;)sa()}0===x&&(0!==A&&ga(0,n[q-1]&255),oa(1),t=!0);return d+Ga(a,d+c,e-d)};this.deflate=function(g,p){var f,j;ja=g;qa=0;"undefined"===typeof p&&(p=6);(f=p)?1>f?f=1:9<f&&(f=9):f=6;R=f;w=i=!1;if(null===e){c=b=d=null;e=[];e.length=a;n=[];n.length=65536;u=[];u.length=8192;o=[];o.length=
32832;k=[];k.length=65536;B=[];B.length=573;for(f=0;573>f;f++)B[f]=new h;J=[];J.length=61;for(f=0;61>f;f++)J[f]=new h;I=[];I.length=288;for(f=0;288>f;f++)I[f]=new h;Q=[];Q.length=30;for(f=0;30>f;f++)Q[f]=new h;K=[];K.length=39;for(f=0;39>f;f++)K[f]=new h;G=new l;C=new l;U=new l;M=[];M.length=16;H=[];H.length=573;N=[];N.length=573;$=[];$.length=256;Z=[];Z.length=512;ha=[];ha.length=29;ca=[];ca.length=30;da=[];da.length=1024}for(var q=Array(1024),t=[];0<(f=Ia(q,0,q.length));){var x=[];x.length=f;for(j=
0;j<f;j++)x[j]=String.fromCharCode(q[j]);t[t.length]=x.join("")}ja=null;return t.join("")}};
// Input 4
core.ByteArray=function(h){this.pos=0;this.data=h;this.readUInt32LE=function(){var h=this.data,f=this.pos+=4;return h[--f]<<24|h[--f]<<16|h[--f]<<8|h[--f]};this.readUInt16LE=function(){var h=this.data,f=this.pos+=2;return h[--f]<<8|h[--f]}};
// Input 5
core.ByteArrayWriter=function(h){var l=this,f=new runtime.ByteArray(0);this.appendByteArrayWriter=function(h){f=runtime.concatByteArrays(f,h.getByteArray())};this.appendByteArray=function(h){f=runtime.concatByteArrays(f,h)};this.appendArray=function(h){f=runtime.concatByteArrays(f,runtime.byteArrayFromArray(h))};this.appendUInt16LE=function(f){l.appendArray([f&255,f>>8&255])};this.appendUInt32LE=function(f){l.appendArray([f&255,f>>8&255,f>>16&255,f>>24&255])};this.appendString=function(m){f=runtime.concatByteArrays(f,
runtime.byteArrayFromString(m,h))};this.getLength=function(){return f.length};this.getByteArray=function(){return f}};
// Input 6
core.RawInflate=function(){var h,l,f=null,m,a,c,b,d,i,e,g,j,t,n,u,o,k,p=[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],D=[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],r=[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],s=[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],A=function(){this.list=this.next=null},v=function(){this.n=this.b=this.e=0;this.t=null},F=function(a,c,b,d,e,k){this.BMAX=16;this.N_MAX=288;this.status=0;this.root=null;this.m=0;var g=Array(this.BMAX+1),f,p,o,i,j,q,t,w=Array(this.BMAX+1),h,n,x,y=new v,m=Array(this.BMAX);i=Array(this.N_MAX);var z,s=Array(this.BMAX+1),u,r,l;l=this.root=null;for(j=0;j<g.length;j++)g[j]=0;for(j=0;j<w.length;j++)w[j]=0;for(j=0;j<m.length;j++)m[j]=null;for(j=0;j<i.length;j++)i[j]=
0;for(j=0;j<s.length;j++)s[j]=0;f=256<c?a[256]:this.BMAX;h=a;n=0;j=c;do g[h[n]]++,n++;while(0<--j);if(g[0]==c)this.root=null,this.status=this.m=0;else{for(q=1;q<=this.BMAX&&!(0!=g[q]);q++);t=q;k<q&&(k=q);for(j=this.BMAX;0!=j&&!(0!=g[j]);j--);o=j;k>j&&(k=j);for(u=1<<q;q<j;q++,u<<=1)if(0>(u-=g[q])){this.status=2;this.m=k;return}if(0>(u-=g[j]))this.status=2,this.m=k;else{g[j]+=u;s[1]=q=0;h=g;n=1;for(x=2;0<--j;)s[x++]=q+=h[n++];h=a;j=n=0;do if(0!=(q=h[n++]))i[s[q]++]=j;while(++j<c);c=s[o];s[0]=j=0;h=
i;n=0;i=-1;z=w[0]=0;x=null;for(r=0;t<=o;t++)for(a=g[t];0<a--;){for(;t>z+w[1+i];){z+=w[1+i];i++;r=(r=o-z)>k?k:r;if((p=1<<(q=t-z))>a+1){p-=a+1;for(x=t;++q<r&&!((p<<=1)<=g[++x]);)p-=g[x]}z+q>f&&z<f&&(q=f-z);r=1<<q;w[1+i]=q;x=Array(r);for(p=0;p<r;p++)x[p]=new v;l=null==l?this.root=new A:l.next=new A;l.next=null;l.list=x;m[i]=x;if(0<i)s[i]=j,y.b=w[i],y.e=16+q,y.t=x,q=(j&(1<<z)-1)>>z-w[i],m[i-1][q].e=y.e,m[i-1][q].b=y.b,m[i-1][q].n=y.n,m[i-1][q].t=y.t}y.b=t-z;n>=c?y.e=99:h[n]<b?(y.e=256>h[n]?16:15,y.n=
h[n++]):(y.e=e[h[n]-b],y.n=d[h[n++]-b]);p=1<<t-z;for(q=j>>z;q<r;q+=p)x[q].e=y.e,x[q].b=y.b,x[q].n=y.n,x[q].t=y.t;for(q=1<<t-1;0!=(j&q);q>>=1)j^=q;for(j^=q;(j&(1<<z)-1)!=s[i];)z-=w[i],i--}this.m=w[1];this.status=0!=u&&1!=o?1:0}}},q=function(a){for(;b<a;)c|=(o.length==k?-1:o[k++])<<b,b+=8},y=function(a){return c&p[a]},w=function(a){c>>=a;b-=a},x=function(a,c,b){var k,p,f;if(0==b)return 0;for(f=0;;){q(n);p=j.list[y(n)];for(k=p.e;16<k;){if(99==k)return-1;w(p.b);k-=16;q(k);p=p.t[y(k)];k=p.e}w(p.b);if(16==
k)l&=32767,a[c+f++]=h[l++]=p.n;else{if(15==k)break;q(k);e=p.n+y(k);w(k);q(u);p=t.list[y(u)];for(k=p.e;16<k;){if(99==k)return-1;w(p.b);k-=16;q(k);p=p.t[y(k)];k=p.e}w(p.b);q(k);g=l-p.n-y(k);for(w(k);0<e&&f<b;)e--,g&=32767,l&=32767,a[c+f++]=h[l++]=h[g++]}if(f==b)return b}d=-1;return f},T,L=function(a,c,b){var d,e,k,p,g,f,o,i=Array(316);for(d=0;d<i.length;d++)i[d]=0;q(5);f=257+y(5);w(5);q(5);o=1+y(5);w(5);q(4);d=4+y(4);w(4);if(286<f||30<o)return-1;for(e=0;e<d;e++)q(3),i[E[e]]=y(3),w(3);for(;19>e;e++)i[E[e]]=
0;n=7;e=new F(i,19,19,null,null,n);if(0!=e.status)return-1;j=e.root;n=e.m;p=f+o;for(d=k=0;d<p;)if(q(n),g=j.list[y(n)],e=g.b,w(e),e=g.n,16>e)i[d++]=k=e;else if(16==e){q(2);e=3+y(2);w(2);if(d+e>p)return-1;for(;0<e--;)i[d++]=k}else{17==e?(q(3),e=3+y(3),w(3)):(q(7),e=11+y(7),w(7));if(d+e>p)return-1;for(;0<e--;)i[d++]=0;k=0}n=9;e=new F(i,f,257,z,D,n);if(0==n)e.status=1;if(0!=e.status)return-1;j=e.root;n=e.m;for(d=0;d<o;d++)i[d]=i[d+f];u=6;e=new F(i,o,0,r,s,u);t=e.root;u=e.m;return 0==u&&257<f||0!=e.status?
-1:x(a,c,b)};this.inflate=function(p,v){null==h&&(h=Array(65536));b=c=l=0;d=-1;i=!1;e=g=0;j=null;o=p;k=0;var A=new runtime.ByteArray(v);a:{var E,I;for(E=0;E<v&&!(i&&-1==d);){if(0<e){if(0!=d)for(;0<e&&E<v;)e--,g&=32767,l&=32767,A[0+E++]=h[l++]=h[g++];else{for(;0<e&&E<v;)e--,l&=32767,q(8),A[0+E++]=h[l++]=y(8),w(8);0==e&&(d=-1)}if(E==v)break}if(-1==d){if(i)break;q(1);0!=y(1)&&(i=!0);w(1);q(2);d=y(2);w(2);j=null;e=0}switch(d){case 0:I=A;var Q=0+E,K=v-E,G=void 0,G=b&7;w(G);q(16);G=y(16);w(16);q(16);if(G!=
(~c&65535))I=-1;else{w(16);e=G;for(G=0;0<e&&G<K;)e--,l&=32767,q(8),I[Q+G++]=h[l++]=y(8),w(8);0==e&&(d=-1);I=G}break;case 1:if(null!=j)I=x(A,0+E,v-E);else b:{I=A;Q=0+E;K=v-E;if(null==f){for(var C=void 0,G=Array(288),C=void 0,C=0;144>C;C++)G[C]=8;for(;256>C;C++)G[C]=9;for(;280>C;C++)G[C]=7;for(;288>C;C++)G[C]=8;a=7;C=new F(G,288,257,z,D,a);if(0!=C.status){alert("HufBuild error: "+C.status);I=-1;break b}f=C.root;a=C.m;for(C=0;30>C;C++)G[C]=5;T=5;C=new F(G,30,0,r,s,T);if(1<C.status){f=null;alert("HufBuild error: "+
C.status);I=-1;break b}m=C.root;T=C.m}j=f;t=m;n=a;u=T;I=x(I,Q,K)}break;case 2:I=null!=j?x(A,0+E,v-E):L(A,0+E,v-E);break;default:I=-1}if(-1==I)break a;E+=I}}o=null;return A}};
// Input 7
core.Cursor=function(h,l){function f(a,b){for(var d=b;d&&d!==a;)d=d.parentNode;return d||b}function m(){var c,b,d;if(a.parentNode){b=0;for(c=a.parentNode.firstChild;c&&c!==a;)b+=1,c=c.nextSibling;if(a.previousSibling&&3===a.previousSibling.nodeType&&a.nextSibling&&3===a.nextSibling.nodeType)d=a.nextSibling,a.previousSibling.appendData(d.nodeValue);for(c=0;c<h.rangeCount;c+=1){var i=h.getRangeAt(c),e=b,g=void 0,j=void 0,g=a.parentNode,j=f(a,i.startContainer);f(a,i.endContainer);j===a?i.setStart(g,
e):j===g&&i.startOffset>e&&i.setStart(g,i.startOffset-1);i.endContainer===a?i.setEnd(g,e):i.endContainer===g&&i.endOffset>e&&i.setEnd(g,i.endOffset-1)}if(d){for(c=0;c<h.rangeCount;c+=1){var i=h.getRangeAt(c),e=a.previousSibling,g=d,j=b,t=e.length-g.length;i.startContainer===g?i.setStart(e,t+i.startOffset):i.startContainer===e.parentNode&&i.startOffset===j&&i.setStart(e,t);i.endContainer===g?i.setEnd(e,t+i.endOffset):i.endContainer===e.parentNode&&i.endOffset===j&&i.setEnd(e,t)}d.parentNode.removeChild(d)}a.parentNode.removeChild(a)}}
var a;a=l.createElementNS("urn:webodf:names:cursor","cursor");this.getNode=function(){return a};this.updateToSelection=function(){m();if(h.focusNode){var c=h.focusNode,b=h.focusOffset;if(3===c.nodeType){var d,f,e,g;g=c.parentNode;0===b?g.insertBefore(a,c):b===c.length?g.appendChild(a):(d=c.length,f=c.nextSibling,e=l.createTextNode(c.substringData(b,d)),c.deleteData(b,d),f?g.insertBefore(e,f):g.appendChild(e),g.insertBefore(a,e))}else if(9!==c.nodeType){for(d=c.firstChild;d&&b;)d=d.nextSibling,b-=
1;c.insertBefore(a,d)}}};this.remove=function(){m()}};
// 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(){};
core.UnitTestRunner=function(){function h(a){m+=1;runtime.log("fail",a)}function l(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 f(a,c,b){("string"!==typeof c||"string"!==typeof b)&&runtime.log("WARN: shouldBe() expects string arguments");var d,f;try{f=eval(c)}catch(e){d=e}a=eval(b);d?h(c+" should be "+a+". Threw exception "+d):(0===a?f===a&&1/f===1/a:f===a||("number"===typeof a&&isNaN(a)?"number"===typeof f&&isNaN(f):
Object.prototype.toString.call(a)===Object.prototype.toString.call([])&&l(f,a)))?runtime.log("pass",c+" is "+b):typeof f===typeof a?h(c+" should be "+a+". Was "+(0===f&&0>1/f?"-0":""+f)+"."):h(c+" should be "+a+" (of type "+typeof a+"). Was "+f+" (of type "+typeof f+").")}var m=0;this.shouldBeNull=function(a,c){f(a,c,"null")};this.shouldBeNonNull=function(a,c){var b,d;try{d=eval(c)}catch(f){b=f}b?h(c+" should be non-null. Threw exception "+b):null!==d?runtime.log("pass",c+" is non-null."):h(c+" should be non-null. Was "+
d)};this.shouldBe=f;this.countFailedTests=function(){return m}};
core.UnitTester=function(){var h=0,l={};this.runTests=function(f,m){function a(b){if(0===b.length)l[c]=e,h+=d.countFailedTests(),m();else{j=b[0];var f=Runtime.getFunctionName(j);runtime.log("Running "+f);n=d.countFailedTests();i.setUp();j(function(){i.tearDown();e[f]=n===d.countFailedTests();a(b.slice(1))})}}var c=Runtime.getFunctionName(f),b,d=new core.UnitTestRunner,i=new f(d),e={},g,j,t,n;if(c.hasOwnProperty(l))runtime.log("Test "+c+" has already run.");else{runtime.log("Running "+c+": "+i.description());
t=i.tests();for(g=0;g<t.length;g+=1)j=t[g],b=Runtime.getFunctionName(j),runtime.log("Running "+b),n=d.countFailedTests(),i.setUp(),j(),i.tearDown(),e[b]=n===d.countFailedTests();a(i.asyncTests())}};this.countFailedTests=function(){return h};this.results=function(){return l}};
// Input 9
core.PointWalker=function(h){function l(a){for(var c=-1;a;)a=a.previousSibling,c+=1;return c}var f=h,m=null,a=h&&h.firstChild,c=0;this.setPoint=function(b,d){f=b;c=d;if(3===f.nodeType)m=a=null;else{for(a=f.firstChild;d;)d-=1,a=a.nextSibling;m=a?a.previousSibling:f.lastChild}};this.stepForward=function(){var b;if(3===f.nodeType&&(b="number"===typeof f.nodeValue.length?f.nodeValue.length:f.nodeValue.length(),c<b))return c+=1,!0;if(a)return 1===a.nodeType?(f=a,m=null,a=f.firstChild,c=0):3===a.nodeType?
(f=a,a=m=null,c=0):(m=a,a=a.nextSibling,c+=1),!0;return f!==h?(m=f,a=m.nextSibling,f=f.parentNode,c=l(m)+1,!0):!1};this.stepBackward=function(){if(3===f.nodeType&&0<c)return c-=1,!0;if(m)return 1===m.nodeType?(f=m,m=f.lastChild,a=null,c=l(m)+1):3===m.nodeType?(f=m,a=m=null,c="number"===typeof f.nodeValue.length?f.nodeValue.length:f.nodeValue.length()):(a=m,m=m.previousSibling,c-=1),!0;return f!==h?(a=f,m=a.previousSibling,f=f.parentNode,c=l(a),!0):!1};this.node=function(){return f};this.position=
function(){return c};this.precedingSibling=function(){return m};this.followingSibling=function(){return a}};
// Input 10
core.Async=function(){this.forEach=function(h,l,f){function m(a){b!==c&&(a?(b=c,f(a)):(b+=1,b===c&&f(null)))}var a,c=h.length,b=0;for(a=0;a<c;a+=1)l(h[a],m)}};
// Input 11
runtime.loadClass("core.RawInflate");runtime.loadClass("core.ByteArray");runtime.loadClass("core.ByteArrayWriter");
core.Zip=function(h,l){function f(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,
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,
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,e,d=a.length,f=0,f=0;b=-1;for(e=0;e<d;e+=1)f=(b^a[e])&255,f=c[f],b=b>>>8^f;return b^-1}function m(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,e,d,f,g,i,t,h=this;this.load=function(c){if(void 0!==h.data)c(null,h.data);else{var d=g+34+b+e+256;d+t>j&&(d=j-t);runtime.read(a,t,d,function(b,e){if(b)c(b,e);else a:{var d=e,k=new core.ByteArray(d),p=k.readUInt32LE(),j;if(67324752!==p)c("File entry signature is wrong."+p.toString()+" "+d.length.toString(),null);else{k.pos+=22;p=k.readUInt16LE();j=k.readUInt16LE();k.pos+=p+j;if(f){d=d.slice(k.pos,
k.pos+g);if(g!==d.length){c("The amount of compressed bytes read was "+d.length.toString()+" instead of "+g.toString()+" for "+h.filename+" in "+a+".",null);break a}d=n(d,i)}else d=d.slice(k.pos,k.pos+i);i!==d.length?c("The amount of bytes read was "+d.length.toString()+" instead of "+i.toString()+" for "+h.filename+" in "+a+".",null):(h.data=d,c(null,d))}}})}};this.set=function(a,c,b,e){h.filename=a;h.data=c;h.compressed=b;h.date=e};this.error=null;if(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,f=c.readUInt16LE(),this.date=m(c.readUInt32LE()),c.readUInt32LE(),g=c.readUInt32LE(),i=c.readUInt32LE(),b=c.readUInt16LE(),e=c.readUInt16LE(),d=c.readUInt16LE(),c.pos+=8,t=c.readUInt32LE(),this.filename=runtime.byteArrayToString(c.data.slice(c.pos,c.pos+b),"utf8"),c.pos+=b+e+d)}function b(a,b){if(22!==a.length)b("Central directory length should be 22.",u);else{var e=new core.ByteArray(a),d;d=e.readUInt32LE();101010256!==
d?b("Central directory signature is wrong: "+d.toString(),u):0!==e.readUInt16LE()?b("Zip files with non-zero disk numbers are not supported.",u):0!==e.readUInt16LE()?b("Zip files with non-zero disk numbers are not supported.",u):(d=e.readUInt16LE(),t=e.readUInt16LE(),d!==t?b("Number of entries is inconsistent.",u):(d=e.readUInt32LE(),e=e.readUInt16LE(),e=j-22-d,runtime.read(h,e,j-e,function(a,e){a:{var d=new core.ByteArray(e),f,p;g=[];for(f=0;f<t;f+=1){p=new c(h,d);if(p.error){b(p.error,u);break a}g[g.length]=
p}b(null,u)}})))}}function d(c){var b=new core.ByteArrayWriter("utf8"),e=0;b.appendArray([80,75,3,4,20,0,0,0,0,0]);if(c.data)e=c.data.length;b.appendUInt32LE(a(c.date));b.appendUInt32LE(f(c.data));b.appendUInt32LE(e);b.appendUInt32LE(e);b.appendUInt16LE(c.filename.length);b.appendUInt16LE(0);b.appendString(c.filename);c.data&&b.appendByteArray(c.data);return b}function i(c,b){var e=new core.ByteArrayWriter("utf8"),d=0;e.appendArray([80,75,1,2,20,0,20,0,0,0,0,0]);if(c.data)d=c.data.length;e.appendUInt32LE(a(c.date));
e.appendUInt32LE(f(c.data));e.appendUInt32LE(d);e.appendUInt32LE(d);e.appendUInt16LE(c.filename.length);e.appendArray([0,0,0,0,0,0,0,0,0,0,0,0]);e.appendUInt32LE(b);e.appendString(c.filename);return e}function e(a,c){if(a===g.length)c(null);else{var b=g[a];void 0!==b.data?e(a+1,c):b.load(function(b){b?c(b):e(a+1,c)})}}var g,j,t,n=(new core.RawInflate).inflate,u=this;this.load=function(a,c){var b=null,e,d;for(d=0;d<g.length;d+=1)if(e=g[d],e.filename===a){b=e;break}b?b.data?c(null,b.data):b.load(c):
c(a+" not found.",null)};this.save=function(a,b,e,d){var f,j;for(f=0;f<g.length;f+=1)if(j=g[f],j.filename===a){j.set(a,b,e,d);return}j=new c(h);j.set(a,b,e,d);g.push(j)};this.write=function(a){e(0,function(c){if(c)a(c);else{var c=new core.ByteArrayWriter("utf8"),b,e,f,j=[0];for(b=0;b<g.length;b+=1)c.appendByteArrayWriter(d(g[b])),j.push(c.getLength());f=c.getLength();for(b=0;b<g.length;b+=1)e=g[b],c.appendByteArrayWriter(i(e,j[b]));b=c.getLength()-f;c.appendArray([80,75,5,6,0,0,0,0]);c.appendUInt16LE(g.length);
c.appendUInt16LE(g.length);c.appendUInt32LE(b);c.appendUInt32LE(f);c.appendArray([0,0]);runtime.writeFile(h,c.getByteArray(),a)}})};this.getEntries=function(){return g.slice()};j=-1;null===l?g=[]:runtime.getFileSize(h,function(a){j=a;0>j?l("File '"+h+"' cannot be read.",u):runtime.read(h,j-22,22,function(a,c){a||null===l?l(a,u):b(c,l)})})};
// Input 12
xmldom.LSSerializerFilter=function(){};
// Input 13
"function"!==typeof Object.create&&(Object.create=function(h){var l=function(){};l.prototype=h;return new l});
xmldom.LSSerializer=function(){function h(f,m){var a="",c=Object.create(f),b=l.filter?l.filter.acceptNode(m):1,d;if(1===b){d="";var i=m.attributes,e,g,j,t="",n;if(i){if(c[m.namespaceURI]!==m.prefix)c[m.namespaceURI]=m.prefix;d+="<"+m.nodeName;e=i.length;for(g=0;g<e;g+=1)if(j=i.item(g),"http://www.w3.org/2000/xmlns/"!==j.namespaceURI&&(n=l.filter?l.filter.acceptNode(j):1,1===n)){if(j.namespaceURI){n=j.prefix;var u=j.namespaceURI;c.hasOwnProperty(u)?n=c[u]+":":(c[u]!==n&&(c[u]=n),n+=":")}else n="";
t+=" "+(n+j.localName+'="'+j.nodeValue+'"')}for(g in c)c.hasOwnProperty(g)&&((n=c[g])?"xmlns"!==n&&(d+=" xmlns:"+c[g]+'="'+g+'"'):d+=' xmlns="'+g+'"');d+=t+">"}a+=d}if(1===b||3===b){for(d=m.firstChild;d;)a+=h(c,d),d=d.nextSibling;m.nodeValue&&(a+=m.nodeValue)}1===b&&(c="",1===m.nodeType&&(c+="</"+m.nodeName+">"),a+=c);return a}var l=this;this.filter=null;this.writeToString=function(f,m){if(!f)return"";var a;if(m){a=m;var c={},b;for(b in a)a.hasOwnProperty(b)&&(c[a[b]]=b);a=c}else a={};return h(a,
f)}};
// Input 14
xmldom.RelaxNGParser=function(){function h(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 l(a){if(2>=a.e.length)return a;var c={name:a.name,e:a.e.slice(0,2)};return l({name:a.name,e:[c].concat(a.e.slice(2))})}function f(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 m(a,c){var g;var e;for(var b=0,d,i,h=a.name;a.e&&b<a.e.length;)if(d=
a.e[b],"ref"===d.name){i=c[d.a.name];if(!i)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(i.e);a.e=a.e.concat(d)}else b+=1,m(d,c);d=a.e;if("choice"===h&&(!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"===h||"interleave"===h)if("empty"===d[0].name)"empty"===d[1].name?(delete a.e,a.name="empty"):(h=a.name=d[1].name,a.names=d[1].names,e=a.e=d[1].e,d=e);else if("empty"===d[1].name)h=
a.name=d[0].name,a.names=d[0].names,g=a.e=d[0].e,d=g;if("oneOrMore"===h&&"empty"===d[0].name)delete a.e,a.name="empty";if("attribute"===h){i=a.names?a.names.length:0;for(var o,k=a.localnames=[i],p=a.namespaces=[i],b=0;b<i;b+=1)o=f(a.names[b]),p[b]=o[0],k[b]=o[1]}if("interleave"===h)if("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);else if("interleave"===d[1].name)a.e=[d[0]].concat(d[1].e)}function a(c,b){for(var d=0,f;c.e&&d<c.e.length;)f=c.e[d],
"elementref"===f.name?(f.id=f.id||0,c.e[d]=b[f.id]):"element"!==f.name&&a(f,b),d+=1}var c=this,b,d={"http://www.w3.org/XML/1998/namespace":"xml"},i;i=function(a,c,b){var h=[],n,m,o=a.localName,k=[];n=a.attributes;var p=o,z=k,D={},r,s;for(r=0;r<n.length;r+=1)if(s=n.item(r),s.namespaceURI){if("http://www.w3.org/2000/xmlns/"===s.namespaceURI)d[s.value]=s.localName}else{"name"===s.localName&&("element"===p||"attribute"===p)&&z.push(s.value);if("name"===s.localName||"combine"===s.localName||"type"===s.localName){var E=
s,A;A=s.value;A=A.replace(/^\s\s*/,"");for(var v=/\s/,F=A.length-1;v.test(A.charAt(F));)F-=1;A=A.slice(0,F+1);E.value=A}D[s.localName]=s.value}n=D;n.combine=n.combine||void 0;a=a.firstChild;p=h;z=k;for(D="";a;){if(1===a.nodeType&&"http://relaxng.org/ns/structure/1.0"===a.namespaceURI){if(r=i(a,c,p))"name"===r.name?z.push(d[r.a.ns]+":"+r.text):"choice"===r.name&&r.names&&r.names.length&&(z=z.concat(r.names),delete r.names),p.push(r)}else 3===a.nodeType&&(D+=a.nodeValue);a=a.nextSibling}a=D;"value"!==
o&&"param"!==o&&(a=/^\s*([\s\S]*\S)?\s*$/.exec(a)[1]);if("value"===o&&void 0===n.type)n.type="token",n.datatypeLibrary="";if(("attribute"===o||"element"===o)&&void 0!==n.name)m=f(n.name),h=[{name:"name",text:m[1],a:{ns:m[0]}}].concat(h),delete n.name;if("name"===o||"nsName"===o||"value"===o){if(void 0===n.ns)n.ns=""}else delete n.ns;if("name"===o)m=f(a),n.ns=m[0],a=m[1];if(1<h.length&&("define"===o||"oneOrMore"===o||"zeroOrMore"===o||"optional"===o||"list"===o||"mixed"===o))h=[{name:"group",e:l({name:"group",
e:h}).e}];2<h.length&&"element"===o&&(h=[h[0]].concat({name:"group",e:l({name:"group",e:h.slice(1)}).e}));1===h.length&&"attribute"===o&&h.push({name:"text",text:a});if(1===h.length&&("choice"===o||"group"===o||"interleave"===o))o=h[0].name,k=h[0].names,n=h[0].a,a=h[0].text,h=h[0].e;else if(2<h.length&&("choice"===o||"group"===o||"interleave"===o))h=l({name:o,e:h}).e;"mixed"===o&&(o="interleave",h=[h[0],{name:"text"}]);"optional"===o&&(o="choice",h=[h[0],{name:"empty"}]);"zeroOrMore"===o&&(o="choice",
h=[{name:"oneOrMore",e:[h[0]]},{name:"empty"}]);if("define"===o&&n.combine){a:{p=n.combine;z=n.name;D=h;for(r=0;b&&r<b.length;r+=1)if(s=b[r],"define"===s.name&&s.a&&s.a.name===z){s.e=[{name:p,e:s.e.concat(D)}];b=s;break a}b=null}if(b)return}b={name:o};if(h&&0<h.length)b.e=h;for(m in n)if(n.hasOwnProperty(m)){b.a=n;break}if(void 0!==a)b.text=a;if(k&&0<k.length)b.names=k;if("element"===o)b.id=c.length,c.push(b),b={name:"elementref",id:b.id};return b};this.parseRelaxNGDOM=function(e,f){var j=[],t=i(e&&
e.documentElement,j,void 0),n,l,o={};for(n=0;n<t.e.length;n+=1)l=t.e[n],"define"===l.name?o[l.a.name]=l:"start"===l.name&&(b=l);if(!b)return[new h("No Relax NG start element was found.")];m(b,o);for(n in o)o.hasOwnProperty(n)&&m(o[n],o);for(n=0;n<j.length;n+=1)m(j[n],o);if(f)c.rootPattern=f(b.e[0],j);a(b,j);for(n=0;n<j.length;n+=1)a(j[n],j);c.start=b;c.elements=j;c.nsmap=d;return null}};
// Input 15
runtime.loadClass("xmldom.RelaxNGParser");
xmldom.RelaxNG=function(){function h(a){return function(){var c;return function(){void 0===c&&(c=a());return c}}()}function l(a,c){return function(){var b={},d=0;return function(e){var f=e.hash||e.toString(),g;g=b[f];if(void 0!==g)return g;b[f]=g=c(e);g.hash=a+d.toString();d+=1;return g}}()}function f(a){return function(){var c={};return function(b){var d,e;e=c[b.localName];if(void 0===e)c[b.localName]=e={};else if(d=e[b.namespaceURI],void 0!==d)return d;return e[b.namespaceURI]=d=a(b)}}()}function m(a,
c,b){return function(){var d={},e=0;return function(f,g){var k=c&&c(f,g),i,p;if(void 0!==k)return k;k=f.hash||f.toString();i=g.hash||g.toString();p=d[k];if(void 0===p)d[k]=p={};else if(k=p[i],void 0!==k)return k;p[i]=k=b(f,g);k.hash=a+e.toString();e+=1;return k}}()}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 r},startTagOpenDeriv:function(b){return a.contains(b)?
n(c,s):r},attDeriv:function(){return r},startTagCloseDeriv:function(){return this}}}function b(){return{type:"list",nullable:!1,hash:"list",textDeriv:function(){return s}}}function d(a,c,b,f){if(c===r)return r;if(f>=b.length)return c;0===f&&(f=0);for(var g=b.item(f);g.namespaceURI===e;){f+=1;if(f>=b.length)return c;g=b.item(f)}return g=d(a,c.attDeriv(a,b.item(f)),b,f+1)}function i(a,c,b){b.e[0].a?(a.push(b.e[0].text),c.push(b.e[0].a.ns)):i(a,c,b.e[0]);b.e[1].a?(a.push(b.e[1].text),c.push(b.e[1].a.ns)):
i(a,c,b.e[1])}var e="http://www.w3.org/2000/xmlns/",g,j,t,n,u,o,k,p,z,D,r={type:"notAllowed",nullable:!1,hash:"notAllowed",textDeriv:function(){return r},startTagOpenDeriv:function(){return r},attDeriv:function(){return r},startTagCloseDeriv:function(){return r},endTagDeriv:function(){return r}},s={type:"empty",nullable:!0,hash:"empty",textDeriv:function(){return r},startTagOpenDeriv:function(){return r},attDeriv:function(){return r},startTagCloseDeriv:function(){return s},endTagDeriv:function(){return r}},
E={type:"text",nullable:!0,hash:"text",textDeriv:function(){return E},startTagOpenDeriv:function(){return r},attDeriv:function(){return r},startTagCloseDeriv:function(){return E},endTagDeriv:function(){return r}},A,v,F;g=m("choice",function(a,b){if(a===r)return b;if(b===r||a===b)return a},function(b,c){var d={},e;a(d,{p1:b,p2:c});c=b=void 0;for(e in d)d.hasOwnProperty(e)&&(void 0===b?b=d[e]:c=void 0===c?d[e]:g(c,d[e]));return function(a,b){return{type:"choice",p1:a,p2:b,nullable:a.nullable||b.nullable,
textDeriv:function(c,d){return g(a.textDeriv(c,d),b.textDeriv(c,d))},startTagOpenDeriv:f(function(c){return g(a.startTagOpenDeriv(c),b.startTagOpenDeriv(c))}),attDeriv:function(c,d){return g(a.attDeriv(c,d),b.attDeriv(c,d))},startTagCloseDeriv:h(function(){return g(a.startTagCloseDeriv(),b.startTagCloseDeriv())}),endTagDeriv:h(function(){return g(a.endTagDeriv(),b.endTagDeriv())})}}(b,c)});j=function(a,b,c){return function(){var d={},e=0;return function(f,g){var k=b&&b(f,g),i,p;if(void 0!==k)return k;
k=f.hash||f.toString();i=g.hash||g.toString();k<i&&(p=k,k=i,i=p,p=f,f=g,g=p);p=d[k];if(void 0===p)d[k]=p={};else if(k=p[i],void 0!==k)return k;p[i]=k=c(f,g);k.hash=a+e.toString();e+=1;return k}}()}("interleave",function(a,b){if(a===r||b===r)return r;if(a===s)return b;if(b===s)return a},function(a,b){return{type:"interleave",p1:a,p2:b,nullable:a.nullable&&b.nullable,textDeriv:function(c,d){return g(j(a.textDeriv(c,d),b),j(a,b.textDeriv(c,d)))},startTagOpenDeriv:f(function(c){return g(A(function(a){return j(a,
b)},a.startTagOpenDeriv(c)),A(function(b){return j(a,b)},b.startTagOpenDeriv(c)))}),attDeriv:function(c,d){return g(j(a.attDeriv(c,d),b),j(a,b.attDeriv(c,d)))},startTagCloseDeriv:h(function(){return j(a.startTagCloseDeriv(),b.startTagCloseDeriv())})}});t=m("group",function(a,b){if(a===r||b===r)return r;if(a===s)return b;if(b===s)return a},function(a,b){return{type:"group",p1:a,p2:b,nullable:a.nullable&&b.nullable,textDeriv:function(c,d){var e=t(a.textDeriv(c,d),b);return a.nullable?g(e,b.textDeriv(c,
d)):e},startTagOpenDeriv:function(c){var d=A(function(a){return t(a,b)},a.startTagOpenDeriv(c));return a.nullable?g(d,b.startTagOpenDeriv(c)):d},attDeriv:function(c,d){return g(t(a.attDeriv(c,d),b),t(a,b.attDeriv(c,d)))},startTagCloseDeriv:h(function(){return t(a.startTagCloseDeriv(),b.startTagCloseDeriv())})}});n=m("after",function(a,b){if(a===r||b===r)return r},function(a,b){return{type:"after",p1:a,p2:b,nullable:!1,textDeriv:function(c,d){return n(a.textDeriv(c,d),b)},startTagOpenDeriv:f(function(c){return A(function(a){return n(a,
b)},a.startTagOpenDeriv(c))}),attDeriv:function(c,d){return n(a.attDeriv(c,d),b)},startTagCloseDeriv:h(function(){return n(a.startTagCloseDeriv(),b)}),endTagDeriv:h(function(){return a.nullable?b:r})}});u=l("oneormore",function(a){return a===r?r:{type:"oneOrMore",p:a,nullable:a.nullable,textDeriv:function(b,c){return t(a.textDeriv(b,c),g(this,s))},startTagOpenDeriv:function(b){var c=this;return A(function(a){return t(a,g(c,s))},a.startTagOpenDeriv(b))},attDeriv:function(b,c){return t(a.attDeriv(b,
c),g(this,s))},startTagCloseDeriv:h(function(){return u(a.startTagCloseDeriv())})}});k=m("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)?s:r},startTagCloseDeriv:function(){return r}}});o=l("value",function(a){return{type:"value",nullable:!1,value:a,textDeriv:function(b,c){return c===a?s:r},attDeriv:function(){return r},startTagCloseDeriv:function(){return this}}});
z=l("data",function(a){return{type:"data",nullable:!1,dataType:a,textDeriv:function(){return s},attDeriv:function(){return r},startTagCloseDeriv:function(){return this}}});A=function y(a,b){return"after"===b.type?n(b.p1,a(b.p2)):"choice"===b.type?g(y(a,b.p1),y(a,b.p2)):b};v=function(a,b,c){for(var e=c.currentNode,b=b.startTagOpenDeriv(e),b=d(a,b,e.attributes,0),f=b=b.startTagCloseDeriv(),e=c.currentNode,b=c.firstChild(),k=[],i;b;)1===b.nodeType?k.push(b):3===b.nodeType&&!/^\s*$/.test(b.nodeValue)&&
k.push(b.nodeValue),b=c.nextSibling();0===k.length&&(k=[""]);i=f;for(f=0;i!==r&&f<k.length;f+=1)b=k[f],"string"===typeof b?i=/^\s*$/.test(b)?g(i,i.textDeriv(a,b)):i.textDeriv(a,b):(c.currentNode=b,i=v(a,i,c));c.currentNode=e;return b=i.endTagDeriv()};p=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=[];i(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}}};D=function w(a,d){var e,f;if("elementref"===a.name){e=a.id||0;a=d[e];if(void 0!==a.name){var i=a;e=d[i.id]={hash:"element"+i.id.toString()};i=c(p(i.e[0]),D(i.e[1],d));for(f in i)i.hasOwnProperty(f)&&(e[f]=i[f]);f=e}else f=a;return f}switch(a.name){case "empty":return s;case "notAllowed":return r;case "text":return E;
case "choice":return g(w(a.e[0],d),w(a.e[1],d));case "interleave":e=w(a.e[0],d);for(f=1;f<a.e.length;f+=1)e=j(e,w(a.e[f],d));return e;case "group":return t(w(a.e[0],d),w(a.e[1],d));case "oneOrMore":return u(w(a.e[0],d));case "attribute":return k(p(a.e[0]),w(a.e[1],d));case "value":return o(a.text);case "data":return e=a.a&&a.a.type,void 0===e&&(e=""),z(e);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=
D(a,c)};this.validate=function(a,b){var c;a.currentNode=a.root;c=v(null,F,a);c.nullable?b(null):(runtime.log("Error in Relax NG validation: "+c),b(["Error in Relax NG validation: "+c]))};this.init=function(a){F=a}};
// Input 16
runtime.loadClass("xmldom.RelaxNGParser");
xmldom.RelaxNG2=function(){function h(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 l(b,c,f,e){return"empty"===b.name?null:a(b,c,f,e)}function f(a,d){if(2!==a.e.length)throw"Element with wrong # of elements: "+a.e.length;for(var f=d.currentNode,e=f?f.nodeType:0,g=null;1<e;){if(8!==e&&(3!==e||!/^\s+$/.test(d.currentNode.nodeValue)))return[new h("Not allowed node of type "+e+".")];e=
(f=d.nextSibling())?f.nodeType:0}if(!f)return[new h("Missing element "+a.names)];if(a.names&&-1===a.names.indexOf(c[f.namespaceURI]+":"+f.localName))return[new h("Found "+f.nodeName+" instead of "+a.names+".",f)];if(d.firstChild()){for(g=l(a.e[1],d,f);d.nextSibling();)if(e=d.currentNode.nodeType,(!d.currentNode||!(3===d.currentNode.nodeType&&/^\s+$/.test(d.currentNode.nodeValue)))&&8!==e)return[new h("Spurious content.",d.currentNode)];if(d.parentNode()!==f)return[new h("Implementation error.")]}else g=
l(a.e[1],d,f);d.nextSibling();return g}var m,a,c;a=function(b,c,i,e){var g=b.name,j=null;if("text"===g)a:{for(var m=(b=c.currentNode)?b.nodeType:0;b!==i&&3!==m;){if(1===m){j=[new h("Element not allowed here.",b)];break a}m=(b=c.nextSibling())?b.nodeType:0}c.nextSibling();j=null}else if("data"===g)j=null;else if("value"===g)e!==b.text&&(j=[new h("Wrong value, should be '"+b.text+"', not '"+e+"'",i)]);else if("list"===g)j=null;else if("attribute"===g)a:{if(2!==b.e.length)throw"Attribute with wrong # of elements: "+
b.e.length;g=b.localnames.length;for(j=0;j<g;j+=1){e=i.getAttributeNS(b.namespaces[j],b.localnames[j]);""===e&&!i.hasAttributeNS(b.namespaces[j],b.localnames[j])&&(e=void 0);if(void 0!==m&&void 0!==e){j=[new h("Attribute defined too often.",i)];break a}m=e}j=void 0===m?[new h("Attribute not found: "+b.names,i)]:l(b.e[1],c,i,m)}else if("element"===g)j=f(b,c,i);else if("oneOrMore"===g){e=0;do m=c.currentNode,g=a(b.e[0],c,i),e+=1;while(!g&&m!==c.currentNode);1<e?(c.currentNode=m,j=null):j=g}else if("choice"===
g){if(2!==b.e.length)throw"Choice with wrong # of options: "+b.e.length;m=c.currentNode;if("empty"===b.e[0].name){if(g=a(b.e[1],c,i,e))c.currentNode=m;j=null}else{if(g=l(b.e[0],c,i,e))c.currentNode=m,g=a(b.e[1],c,i,e);j=g}}else if("group"===g){if(2!==b.e.length)throw"Group with wrong # of members: "+b.e.length;j=a(b.e[0],c,i)||a(b.e[1],c,i)}else if("interleave"===g)a:{for(var m=b.e.length,e=[m],n=m,u,o,k,p;0<n;){u=0;o=c.currentNode;for(j=0;j<m;j+=1)if(k=c.currentNode,!0!==e[j]&&e[j]!==k)p=b.e[j],
(g=a(p,c,i))?(c.currentNode=k,void 0===e[j]&&(e[j]=!1)):k===c.currentNode||"oneOrMore"===p.name||"choice"===p.name&&("oneOrMore"===p.e[0].name||"oneOrMore"===p.e[1].name)?(u+=1,e[j]=k):(u+=1,e[j]=!0);if(o===c.currentNode&&u===n)break;if(0===u){for(j=0;j<m;j+=1)if(!1===e[j]){j=[new h("Interleave does not match.",i)];break a}break}for(j=n=0;j<m;j+=1)!0!==e[j]&&(n+=1)}j=null}else throw g+" not allowed in nonEmptyPattern.";return j};this.validate=function(a,c){a.currentNode=a.root;var f=l(m.e[0],a,a.root);
c(f)};this.init=function(a,d){m=a;c=d}};
// 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
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}};
// Input 19
xmldom.XPath=function(){function h(a,c,b){return-1!==a&&(a<c||-1===c)&&(a<b||-1===b)}function l(a){for(var c=[],b=0,d=a.length,e;b<d;){var f=a,g=d,i=c,m="",s=[],l=f.indexOf("[",b),A=f.indexOf("/",b),v=f.indexOf("=",b);h(A,l,v)?(m=f.substring(b,A),b=A+1):h(l,A,v)?(m=f.substring(b,l),b=j(f,l,s)):h(v,A,l)?(m=f.substring(b,v),b=v):(m=f.substring(b,g),b=g);i.push({location:m,predicates:s});if(b<d&&"="===a[b]){e=a.substring(b+1,d);if(2<e.length&&("'"===e[0]||'"'===e[0]))e=e.slice(1,e.length-1);else try{e=
parseInt(e,10)}catch(F){}b=d}}return{steps:c,value:e}}function f(){}function m(){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),e=d(c[0]),f=c[1];return new b(a,function(a){return a.localName===f&&a.namespaceURI===e})}function i(a,c,d){var e=new m,f=g(e,c,d),i=c.value;return void 0===i?new b(a,function(a){e.setNode(a);
f.reset();return f.next()}):new b(a,function(a){e.setNode(a);f.reset();return(a=f.next())&&a.nodeValue===i})}function e(a,c,b){var d=a.ownerDocument,e=[],e=new m;e.setNode(a);a=l(c);e=g(e,a,b);a=[];for(b=e.next();b;)a.push(b),b=e.next();return e=a}var g,j;j=function(a,c,b){for(var d=c,e=a.length,f=0;d<e;)"]"===a[d]?(f-=1,0>=f&&b.push(l(a.substring(c,d)))):"["===a[d]&&(0>=f&&(c=d+1),f+=1),d+=1;return d};f.prototype.next=function(){};f.prototype.reset=function(){};g=function(b,e,f){var g,k,h,j;for(g=
0;g<e.steps.length;g+=1){h=e.steps[g];k=h.location;""===k?b=new c(b,!1):"@"===k[0]?(j=k.slice(1).split(":",2),b=new a(b,f(j[0]),j[1])):"."!==k&&(b=new c(b,!1),-1!==k.indexOf(":")&&(b=d(b,k,f)));for(k=0;k<h.predicates.length;k+=1)j=h.predicates[k],b=i(b,j,f)}return b};xmldom.XPath=function(){this.getODFElementsWithXPath=e};return xmldom.XPath}();
// Input 20
odf.StyleInfo=function(){function h(f,m){for(var a=l[f.localName],c=a&&a[f.namespaceURI],b=c?c.length:0,d,i,e,a=0;a<b;a+=1)if(d=f.getAttributeNS(c[a].ns,c[a].localname))i=c[a].keygroup,(e=m[i])||(e=m[i]={}),e[d]=1;for(a=f.firstChild;a;)1===a.nodeType&&(c=a,h(c,m)),a=a.nextSibling}var l;this.UsedKeysList=function(f){var m={};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=m[a])?0<a[b]:!1};h(f,m)};this.canElementHaveStyle=function(f,h){var a=l[h.localName];return(a=a&&a[h.namespaceURI])&&0<a.length};l=function(f){var g;var h,a,c,b,d,i={},e;for(h in f)if(f.hasOwnProperty(h)){c=f[h];d=c.length;for(a=0;a<d;a+=1)b=c[a],e=i[b.en]=i[b.en]||{},g=e[b.ens]=e[b.ens]||[],e=g,e.push({ns:b.ans,
localname:b.a,keygroup:h})}return i}({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",
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
odf.Style2CSS=function(){function h(a,b){var c={},d,e,f;if(!b)return c;for(d=b.firstChild;d;){d.namespaceURI===j&&"style"===d.localName?f=d.getAttributeNS(j,"family"):d.namespaceURI===t&&"list-style"===d.localName&&(f="list");if(e=f&&d.getAttributeNS&&d.getAttributeNS(j,"name"))c[f]||(c[f]={}),c[f][e]=d;d=d.nextSibling}return c}function l(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=l(a[c].derivedStyles,b)))return d;return null}function f(a,b,c){var d=
b[a],e,g;if(d)if(e=d.getAttributeNS(j,"parent-style-name"),g=null,e&&(g=l(c,e),!g&&b[e]&&(f(e,b,c),g=b[e],b[e]=null)),g){if(!g.derivedStyles)g.derivedStyles={};g.derivedStyles[a]=d}else c[a]=d}function m(a,b){for(var c in a)a.hasOwnProperty(c)&&(f(c,a,b),a[c]=null)}function a(a,b){var c=u[a],d;if(null===c)return null;d="["+c+'|style-name="'+b+'"]';"presentation"===c&&(c="draw",d='[presentation|style-name="'+b+'"]');return c+"|"+o[a].join(d+","+c+"|")+d}function c(b,d,e){var f=[],g,i;f.push(a(b,d));
for(g in e.derivedStyles)if(e.derivedStyles.hasOwnProperty(g))for(i in d=c(b,g,e.derivedStyles[g]),d)d.hasOwnProperty(i)&&f.push(d[i]);return f}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,e;for(d in b)b.hasOwnProperty(d)&&(d=b[d],(e=a.getAttributeNS(d[0],d[1]))&&(c+=d[2]+":"+e+";"));return c}function i(a,b,c,d){for(var b='text|list[text|style-name="'+b+'"]',c=c.getAttributeNS(t,
"level"),e="",c=c&&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 e(a,f,h,m){if("list"===f)for(var o=m.firstChild,n,l;o;){if(o.namespaceURI===t)if(n=o,"list-level-style-number"===o.localName){l=n;var w=l.getAttributeNS(j,"num-format"),x=l.getAttributeNS(j,"num-suffix"),u="",u={1:"decimal",a:"lower-latin",A:"upper-latin",i:"lower-roman",I:"upper-roman"},L="",L=l.getAttributeNS(j,"num-prefix")||
"",L=u.hasOwnProperty(w)?L+(" counter(list, "+u[w]+")"):w?L+("'"+w+"';"):L+" ''";x&&(L+=" '"+x+"'");l=u="content: "+L+";";i(a,h,n,l)}else"list-level-style-image"===o.localName?(l="content: none;",i(a,h,n,l)):"list-level-style-bullet"===o.localName&&(l="content: '"+n.getAttributeNS(t,"bullet-char")+"';",i(a,h,n,l));o=o.nextSibling}else{h=c(f,h,m).join(",");o="";if(n=b(m,j,"text-properties")){l=""+d(n,k);w=n.getAttributeNS(j,"text-underline-style");"solid"===w&&(l+="text-decoration: underline;");if(w=
n.getAttributeNS(j,"font-name"))(w='"'+w+'"')&&(l+="font-family: "+w+";");o+=l}if(n=b(m,j,"paragraph-properties")){l=n;n=""+d(l,z);l=l.getElementsByTagNameNS(j,"background-image");if(0<l.length&&(w=l.item(0).getAttributeNS(g,"href")))n+="background-image: url('odfkit:"+w+"');",l=l.item(0),n+=d(l,p);o+=n}if(n=b(m,j,"graphic-properties"))n=""+d(n,D),o+=n;if(n=b(m,j,"table-cell-properties"))n=""+d(n,r),o+=n;if(0!==o.length)try{a.insertRule(h+"{"+o+"}",a.cssRules.length)}catch(R){throw R;}}for(var Y in m.derivedStyles)m.derivedStyles.hasOwnProperty(Y)&&
e(a,f,Y,m.derivedStyles[Y])}var g="http://www.w3.org/1999/xlink",j="urn:oasis:names:tc:opendocument:xmlns:style:1.0",t="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:j,svg:"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0",table:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",
text:t,xlink:g},u={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"},o={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(","),
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(","),
"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"]},k=[["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"]],p=[[j,"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",
"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",
"margin-bottom","margin-bottom"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border","border"]],D=[["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"]],r=[["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,c,b){for(var d,f,g,i,k;a.cssRules.length;)a.deleteRule(a.cssRules.length-1);d=null;if(c)d=c.ownerDocument;if(b)d=b.ownerDocument;if(d){for(f in n)if(n.hasOwnProperty(f)){i="@namespace "+f+" url("+n[f]+");";try{a.insertRule(i,a.cssRules.length)}catch(p){}}c=h(d,c);d=h(d,b);for(k in u)if(u.hasOwnProperty(k))for(g in b={},m(c[k],b),m(d[k],
b),b)b.hasOwnProperty(g)&&e(a,k,g,b[g])}}};
// Input 22
runtime.loadClass("core.Base64");runtime.loadClass("xmldom.XPath");runtime.loadClass("odf.Style2CSS");
odf.FontLoader=function(){function h(c,b,d,f,e){var g,j=0,m;for(m in c)c.hasOwnProperty(m)&&(j===d&&(g=m),j+=1);if(!g)return e();b.load(c[g].href,function(j,m){if(j)runtime.log(j);else{var o=f,o=document.styleSheets[0],k='@font-face { font-family: "'+g+'"; src: url(data:application/x-font-ttf;charset=binary;base64,'+a.convertUTF8ArrayToBase64(m)+') format("truetype"); }';try{o.insertRule(k,o.cssRules.length)}catch(p){runtime.log("Problem inserting rule in CSS: "+k)}}return h(c,b,d+1,f,e)})}function l(a,
b,d){h(a,b,0,d,function(){})}var f=new odf.Style2CSS,m=new xmldom.XPath,a=new core.Base64;odf.FontLoader=function(){this.loadFonts=function(a,b,d){var i={},e,g,h;if(a){a=m.getODFElementsWithXPath(a,"style:font-face[svg:font-face-src]",f.namespaceResolver);for(e=0;e<a.length;e+=1)g=a[e],h=g.getAttributeNS(f.namespaces.style,"name"),g=m.getODFElementsWithXPath(g,"svg:font-face-src/svg:font-face-uri",f.namespaceResolver),0<g.length&&(g=g[0].getAttributeNS(f.namespaces.xlink,"href"),i[h]={href:g})}l(i,
b,d)}};return odf.FontLoader}();
// 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");
odf.OdfContainer=function(){function h(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 l(a){var b,c=j.length;for(b=0;b<c;b+=1)if(a.namespaceURI===e&&a.localName===j[b])return b;return-1}function f(a,b){var c=a.automaticStyles,e;b&&(e=new d.UsedKeysList(b));this.acceptNode=function(a){return"http://www.w3.org/1999/xhtml"===a.namespaceURI?3:e&&a.parentNode===c&&1===a.nodeType?e.uses(a)?1:2:1}}function m(a,b){if(b){var c=l(b),
d,e=a.firstChild;if(-1!==c){for(;e;){d=l(e);if(-1!==d&&d>c)break;e=e.nextSibling}a.insertBefore(b,e)}}}function a(a){this.OdfContainer=a}function c(a,b,c){var d=this,e;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.load(a,function(b,c){e=c;d.url=null;if(e){var f=0,g=u[a];g||(g=80===e[1]&&78===e[2]&&71===e[3]?"image/png":255===e[0]&&216===e[1]&&
255===e[2]?"image/jpeg":71===e[0]&&73===e[1]&&70===e[2]?"image/gif":"");for(d.url="data:"+g+";base64,";f<e.length;)d.url+=t.convertUTF8ArrayToBase64(e.slice(f,Math.min(f+45E3,e.length))),f+=45E3}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,i=new odf.Style2CSS,e="urn:oasis:names:tc:opendocument:xmlns:office:1.0",g="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0",j=
"meta,settings,scripts,font-face-decls,styles,automatic-styles,master-styles,body".split(","),t=new core.Base64,n=new odf.FontLoader,u={};a.prototype=new function(){};a.prototype.constructor=a;a.namespaceURI=e;a.localName="document";c.prototype.load=function(){};c.prototype.getUrl=function(){return this.data?"data:;base64,"+t.toBase64(this.data):null};odf.OdfContainer=function k(d,j){function l(a){for(var b=a.firstChild,c;b;)c=b.nextSibling,1===b.nodeType?l(b):7===b.nodeType&&a.removeChild(b),b=c}
function r(a){var b=B.rootElement.ownerDocument,c;if(a){l(a.documentElement);try{c=b.importNode(a.documentElement,!0)}catch(d){}}return c}function s(a){B.state=a;if(B.onchange)B.onchange(B);if(B.onstatereadychange)B.onstatereadychange(B)}function t(a){var a=r(a),b=B.rootElement;!a||"document-styles"!==a.localName||a.namespaceURI!==e?s(k.INVALID):(b.fontFaceDecls=h(a,e,"font-face-decls"),m(b,b.fontFaceDecls),b.styles=h(a,e,"styles"),m(b,b.styles),b.automaticStyles=h(a,e,"automatic-styles"),m(b,b.automaticStyles),
b.masterStyles=h(a,e,"master-styles"),m(b,b.masterStyles),n.loadFonts(b.fontFaceDecls,J,null))}function A(a){var a=r(a),b,c,d;if(!a||"document-content"!==a.localName||a.namespaceURI!==e)s(k.INVALID);else{b=B.rootElement;c=h(a,e,"font-face-decls");if(b.fontFaceDecls&&c)for(d=c.firstChild;d;)b.fontFaceDecls.appendChild(d),d=c.firstChild;else if(c)b.fontFaceDecls=c,m(b,c);c=h(a,e,"automatic-styles");if(b.automaticStyles&&c)for(d=c.firstChild;d;)b.automaticStyles.appendChild(d),d=c.firstChild;else if(c)b.automaticStyles=
c,m(b,c);b.body=h(a,e,"body");m(b,b.body)}}function v(a){var a=r(a),b;if(a&&!("document-meta"!==a.localName||a.namespaceURI!==e))b=B.rootElement,b.meta=h(a,e,"meta"),m(b,b.meta)}function F(a){var a=r(a),b;if(a&&!("document-settings"!==a.localName||a.namespaceURI!==e))b=B.rootElement,b.settings=h(a,e,"settings"),m(b,b.settings)}function q(a,b){J.load(a,function(a,c){if(a)b(a,null);else{var d=runtime.byteArrayToString(c,"utf8"),d=(new DOMParser).parseFromString(d,"text/xml");b(null,d)}})}function y(){q("styles.xml",
function(a,b){t(b);B.state!==k.INVALID&&q("content.xml",function(a,b){A(b);B.state!==k.INVALID&&q("meta.xml",function(a,b){v(b);B.state!==k.INVALID&&q("settings.xml",function(a,b){b&&F(b);q("META-INF/manifest.xml",function(a,b){if(b){var c=r(b),d;if(c&&!("manifest"!==c.localName||c.namespaceURI!==g)){d=B.rootElement;d.manifest=c;for(c=d.manifest.firstChild;c;)1===c.nodeType&&"file-entry"===c.localName&&c.namespaceURI===g&&(u[c.getAttributeNS(g,"full-path")]=c.getAttributeNS(g,"media-type")),c=c.nextSibling}}B.state!==
k.INVALID&&s(k.DONE)})})})})})}function w(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 x(){var a=i.namespaces,b=new xmldom.LSSerializer,c=w("document-meta",a);b.filter=new f(B.rootElement);c+=b.writeToString(B.rootElement.meta,a);return c+"</office:document-meta>"}function T(){var a=i.namespaces,b=new xmldom.LSSerializer,c=w("document-settings",a);b.filter=new f(B.rootElement);
c+=b.writeToString(B.rootElement.settings,a);return c+"</office:document-settings>"}function L(){var a=i.namespaces,b=new xmldom.LSSerializer,c=w("document-styles",a);b.filter=new f(B.rootElement,B.rootElement.masterStyles);c+=b.writeToString(B.rootElement.fontFaceDecls,a);c+=b.writeToString(B.rootElement.styles,a);c+=b.writeToString(B.rootElement.automaticStyles,a);c+=b.writeToString(B.rootElement.masterStyles,a);return c+"</office:document-styles>"}function R(){var a=i.namespaces,b=new xmldom.LSSerializer,
c=w("document-content",a);b.filter=new f(B.rootElement,B.rootElement.body);c+=b.writeToString(B.rootElement.automaticStyles,a);c+=b.writeToString(B.rootElement.body,a);return c+"</office:document-content>"}function Y(a,b){runtime.loadXML(a,function(a,c){if(a)b(a);else{var d=r(c);!d||"document"!==d.localName||d.namespaceURI!==e?s(k.INVALID):(B.rootElement=d,d.fontFaceDecls=h(d,e,"font-face-decls"),d.styles=h(d,e,"styles"),d.automaticStyles=h(d,e,"automatic-styles"),d.masterStyles=h(d,e,"master-styles"),
d.body=h(d,e,"body"),d.meta=h(d,e,"meta"),s(k.DONE))}})}var B=this,J=null;this.onstatereadychange=j;this.parts=this.rootElement=this.state=this.onchange=null;this.getPart=function(a){return new c(a,B,J)};this.save=function(a){var b;b=runtime.byteArrayFromString(T(),"utf8");J.save("settings.xml",b,!0,new Date);b=runtime.byteArrayFromString(x(),"utf8");J.save("meta.xml",b,!0,new Date);b=runtime.byteArrayFromString(L(),"utf8");J.save("styles.xml",b,!0,new Date);b=runtime.byteArrayFromString(R(),"utf8");
J.save("content.xml",b,!0,new Date);J.write(function(b){a(b)})};this.state=k.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);J=new core.Zip(d,function(a,b){J=b;a?Y(d,function(b){if(a)J.error=a+"\n"+b,s(k.INVALID)}):y()})};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}();
// Input 24
odf.Formatting=function(){function h(f){function h(a,b){for(var d=a&&a.firstChild;d&&b;)d=d.nextSibling,b-=1;return d}var a=h(f.startContainer,f.startOffset);h(f.endContainer,f.endOffset);this.next=function(){return null===a?a:null}}var l=new odf.StyleInfo;this.setOdfContainer=function(){};this.isCompletelyBold=function(){return!1};this.getAlignment=function(f){this.getParagraphStyles(f)};this.getParagraphStyles=function(f){var m,a,c,b=[];for(m=0;m<f.length;m+=0){a=void 0;c=[];for(a=(new h(f[m])).next();a;)l.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[]}};
// Input 25
runtime.loadClass("odf.OdfContainer");runtime.loadClass("odf.Formatting");runtime.loadClass("xmldom.XPath");
odf.OdfCanvas=function(){function h(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function l(a){function b(a,c){for(;c;){if(c===a)return!0;c=c.parentNode}return!1}function c(){var f=[],g=runtime.getWindow().getSelection(),i,h;for(i=0;i<g.rangeCount;i+=1)h=g.getRangeAt(i),null!==h&&b(a,h.startContainer)&&b(a,h.endContainer)&&f.push(h);if(f.length===d.length){for(g=0;g<f.length&&!(i=f[g],h=d[g],i=i===h?!1:null===i||null===h?!0:i.startContainer!==
h.startContainer||i.startOffset!==h.startOffset||i.endContainer!==h.endContainer||i.endOffset!==h.endOffset,i);g+=1);if(g===f.length)return}d=f;var g=Array(f.length),k,j=a.ownerDocument;for(i=0;i<f.length;i+=1)h=f[i],k=j.createRange(),k.setStart(h.startContainer,h.startOffset),k.setEnd(h.endContainer,h.endOffset),g[i]=k;d=g;g=e.length;for(f=0;f<g;f+=1)e[f](a,d)}var d=[],e=[];this.addListener=function(a,b){var c,d=e.length;for(c=0;c<d;c+=1)if(e[c]===b)return;e.push(b)};h(a,"mouseup",c);h(a,"keyup",
c);h(a,"keydown",c)}function f(a){for(a=a.firstChild;a;){if(a.namespaceURI===e&&"binary-data"===a.localName)return"data:image/png;base64,"+a.textContent;a=a.nextSibling}return""}function m(a,b,c,d){function e(b){b='draw|image[styleid="'+a+'"] {'+("background-image: url("+b+");")+"}";d.insertRule(b,d.cssRules.length)}c.setAttribute("styleid",a);var g=c.getAttributeNS(t,"href"),i;if(g)try{b.getPartUrl?(g=b.getPartUrl(g),e(g)):(i=b.getPart(g),i.onchange=function(a){e(a.url)},i.load())}catch(h){runtime.log("slight problem: "+
h)}else g=f(c),e(g)}function a(a){var c=a.getElementsByTagName("style"),d=a.getElementsByTagName("head")[0],e="",f,c=c&&0<c.length?c[0].cloneNode(!1):a.createElement("style");for(f in b)b.hasOwnProperty(f)&&f&&(e+="@namespace "+f+" url("+b[f]+");\n");c.appendChild(a.createTextNode(e));d.appendChild(c);return c}var c=new odf.Style2CSS,b=c.namespaces,d=b.draw,i=b.fo,e=b.office,g=b.svg,j=b.text,t=b.xlink,n=runtime.getWindow(),u=new xmldom.XPath,o={},k;odf.OdfCanvas=function(b){function e(a){function f(){for(var e=
b;e.firstChild;)e.removeChild(e.firstChild);b.style.display="inline-block";b.style.background="white";e=a.rootElement;b.ownerDocument.importNode(e,!0);t.setOdfContainer(a);var h=F;(new odf.Style2CSS).style2css(h.sheet,e.styles,e.automaticStyles);var h=q.sheet,k=a,n=e.body,l,r,s;r=[];for(l=n.firstChild;l&&l!==n;)if(l.namespaceURI===d&&(r[r.length]=l),l.firstChild)l=l.firstChild;else{for(;l&&l!==n&&!l.nextSibling;)l=l.parentNode;if(l&&l.nextSibling)l=l.nextSibling}for(s=0;s<r.length;s+=1){l=r[s];var z=
"frame"+s,x=h;l.setAttribute("styleid",z);var v=void 0,y=l.getAttributeNS(j,"anchor-type"),D=l.getAttributeNS(g,"x"),A=l.getAttributeNS(g,"y"),H=l.getAttributeNS(g,"width"),O=l.getAttributeNS(g,"height"),S=l.getAttributeNS(i,"min-height"),N=l.getAttributeNS(i,"min-width");if("as-char"===y)v="display: inline-block;";else if(y||D||A)v="position: absolute;";else if(H||O||S||N)v="display: block;";D&&(v+="left: "+D+";");A&&(v+="top: "+A+";");H&&(v+="width: "+H+";");O&&(v+="height: "+O+";");S&&(v+="min-height: "+
S+";");N&&(v+="min-width: "+N+";");v&&(v="draw|"+l.localName+'[styleid="'+z+'"] {'+v+"}",x.insertRule(v,x.cssRules.length))}r=n.getElementsByTagNameNS(d,"image");for(s=0;s<r.length;s+=1)l=r.item(s),m("image"+s,k,l,h);s=u.getODFElementsWithXPath(n,".//*[*[@text:anchor-type='paragraph']]",c.namespaceResolver);for(n=0;n<s.length;n+=1)k=s[n],k.setAttributeNS&&k.setAttributeNS("urn:webodf","containsparagraphanchor",!0);h.insertRule("office|presentation draw|page:nth-child(1n) { display:block; }",h.cssRules.length);
h.insertRule("draw|page { background-color:#fff; }",h.cssRules.length);for(h=b;h.firstChild;)h.removeChild(h.firstChild);b.appendChild(e);if(o.hasOwnProperty("statereadychange")){e=o.statereadychange;for(h=0;h<e.length;h+=1)e[h](void 0)}}if(s===a)s.state===odf.OdfContainer.DONE?f():s.onchange=f}function f(){if(k){for(var a=k.ownerDocument.createDocumentFragment();k.firstChild;)a.insertBefore(k.firstChild,null);k.parentNode.replaceChild(a,k)}}var r=b.ownerDocument,s,t=new odf.Formatting,A=new l(b),
v=a(r),F=a(r),q=a(r),y=!1;this.odfContainer=function(){return s};this.slidevisibilitycss=function(){return v};this.load=this.load=function(a){b.innerHTML="loading "+a;s=new odf.OdfContainer(a,function(a){s=a;e(a)});s.onstatereadychange=e};this.save=function(a){f();s.save(a)};this.setEditable=function(a){(y=a)||f()};this.addListener=function(a,b){if("selectionchange"===a)A.addListener(a,b);else{var c=o[a];void 0===c&&(c=o[a]=[]);c.push(b)}};this.getFormatting=function(){return t};h(b,"click",function(a){for(var a=
a||n.event,b=a.target,c=n.getSelection(),d=c.getRangeAt(0),e=d&&d.startContainer,g=d&&d.startOffset,h=d&&d.endContainer,i=d&&d.endOffset;b&&!(("p"===b.localName||"h"===b.localName)&&b.namespaceURI===j);)b=b.parentNode;if(y&&b&&b.parentNode!==k)k?k.parentNode&&f():(k=b.ownerDocument.createElement("p"),k.style||(k=b.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","p")),k.style.margin="0px",k.style.padding="0px",k.style.border="0px",k.setAttribute("contenteditable",!0)),b.parentNode.replaceChild(k,
b),k.appendChild(b),k.focus(),d&&(c.removeAllRanges(),d=b.ownerDocument.createRange(),d.setStart(e,g),d.setEnd(h,i),c.addRange(d)),a.preventDefault?(a.preventDefault(),a.stopPropagation()):(a.returnValue=!1,a.cancelBubble=!0)})};return odf.OdfCanvas}();
// Input 26
runtime.loadClass("xmldom.XPath");runtime.loadClass("odf.Style2CSS");
gui.PresenterUI=function(){var h=new odf.Style2CSS,l=new xmldom.XPath,f=h.namespaceResolver;return function(h){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,f=0;b.forEach(function(a){a=a[1];a.hasAttribute("slide_current")&&(d=f,a.removeAttribute("slide_current"));f+=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(f("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),f,e,g;b.firstChild;)b.removeChild(b.firstChild);for(f=0;f<d.length;f+=1)e=document.createElement("option"),g=l.getODFElementsWithXPath(d[f][1],'./draw:frame[@presentation:class="title"]//draw:text-box/text:p',xmldom.XPath),g=0<g.length?g[0].textContent:d[f][0],e.textContent=f+1+": "+g,b.appendChild(e)};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=h;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)}}();
// Input 27
gui.Caret=function(h,l){l.ownerDocument.createElementNS("urn:webodf:names:cursor","cursor");this.updateToSelection=function(){1===h.rangeCount&&h.getRangeAt(0)}};
// Input 28
runtime.loadClass("core.Cursor");
gui.SelectionMover=function(h,l){function f(a,c){if(0!==h.rangeCount){var f=h.getRangeAt(0);if(f.startContainer&&1===f.startContainer.nodeType){l.setPoint(f.startContainer,f.startOffset);c();f=l.node();l.position();var e=[],g;for(g=0;g<h.rangeCount;g+=1)e[g]=h.getRangeAt(g);h.removeAllRanges();0===e.length&&(e[0]=f.ownerDocument.createRange());e[e.length-1].setStart(l.node(),l.position());for(g=0;g<e.length;g+=1)h.addRange(e[g])}}}function m(){c.updateToSelection();for(var a=c.getNode().getBoundingClientRect(),
d=a.left,f=a.top,a=!1;!a;){c.remove();if(h.focusNode&&1===h.focusNode.nodeType){l.setPoint(h.focusNode,h.focusOffset);l.stepForward();var a=l.node(),e=l.position();h.collapse(a,e);c.updateToSelection()}a=c.getNode().getBoundingClientRect();a=a.top!==f&&a.left>d}}var a=l.node().ownerDocument,c=new core.Cursor(h,a);this.movePointForward=function(a){f(a,l.stepForward)};this.movePointBackward=function(a){f(a,l.stepBackward)};this.moveLineForward=function(a){h.modify?h.modify(a?"extend":"move","forward",
"line"):f(a,m)};this.moveLineBackward=function(a){h.modify?h.modify(a?"extend":"move","backward","line"):f(a,function(){})};return this};
// Input 29
runtime.loadClass("core.PointWalker");runtime.loadClass("core.Cursor");
gui.XMLEdit=function(h,l){function f(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function m(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function a(){var a=h.ownerDocument.defaultView.getSelection();a&&!(0>=a.rangeCount)&&o&&(a=a.getRangeAt(0),o.setPoint(a.startContainer,a.startOffset))}function c(){var a=h.ownerDocument.defaultView.getSelection(),b,c;a.removeAllRanges();o&&o.node()&&(b=o.node(),c=b.ownerDocument.createRange(),
c.setStart(b,o.position()),c.collapse(!0),a.addRange(c))}function b(b){var d=b.charCode||b.keyCode;if(o=null,o&&37===d)a(),o.stepBackward(),c();else if(16<=d&&20>=d||33<=d&&40>=d)return;m(b)}function d(){}function i(a){h.ownerDocument.defaultView.getSelection().getRangeAt(0);m(a)}function e(a){for(var b=a.firstChild;b&&b!==a;)1===b.nodeType&&e(b),b=b.nextSibling||b.parentNode;var c,d,f,b=a.attributes;c="";for(f=b.length-1;0<=f;f-=1)d=b.item(f),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 g(a,b){for(var c=a.firstChild,d,e,f;c&&c!==a;){if(1===c.nodeType){g(c,b);d=c.attributes;for(f=d.length-1;0<=f;f-=1)if(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 j(){var a=h.ownerDocument.createElement("style"),
b;b={};g(h,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"+t;a.appendChild(h.ownerDocument.createTextNode(b));l=l.parentNode.replaceChild(a,l)}var t,n,u,o=null;if(!h.id)h.id="xml"+(""+Math.random()).substring(2);n="#"+h.id+" ";t=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){f(a,"click",i);f(a,"keydown",b);f(a,"keypress",d);f(a,"drop",m);f(a,"dragend",m);f(a,"beforepaste",m);f(a,"paste",m)})(h);this.updateCSS=j;this.setXML=function(a){a=a.documentElement||a;u=a=h.ownerDocument.importNode(a,!0);for(e(a);h.lastChild;)h.removeChild(h.lastChild);h.appendChild(a);j();o=new core.PointWalker(a)};
this.getXML=function(){return u}};
