Merge master.

This commit is contained in:
Jos van den Oever
2012-10-03 12:39:59 +02:00
15 changed files with 1447 additions and 63 deletions
+16
View File
@@ -25,10 +25,22 @@ endif (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
# Tools must be obtained to work with:
include (ExternalProject)
# allow specification of a directory with pre-downloaded
# requirements by evaluating environment variable
# $WEBODF_DOWNLOAD_DIR
# defaults to ./downloads in the build directory.
if ( IS_DIRECTORY $ENV{WEBODF_DOWNLOAD_DIR} )
SET ( EXTERNALS_DOWNLOAD_DIR $ENV{WEBODF_DOWNLOAD_DIR} )
else ( IS_DIRECTORY $ENV{WEBODF_DOWNLOAD_DIR} )
SET ( EXTERNALS_DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/downloads )
endif ( IS_DIRECTORY $ENV{WEBODF_DOWNLOAD_DIR} )
MESSAGE ( STATUS "external downloads will be stored/expected in: ${EXTERNALS_DOWNLOAD_DIR}" )
if(Java_JAVA_EXECUTABLE)
# Closure Compiler
ExternalProject_Add(
ClosureCompiler
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL "http://closure-compiler.googlecode.com/files/compiler-20120710.tar.gz"
URL_MD5 66b6b942439119813b73103fd0086d9e
CONFIGURE_COMMAND ""
@@ -42,6 +54,7 @@ endif(Java_JAVA_EXECUTABLE)
if(Java_JAVA_EXECUTABLE)
ExternalProject_Add(
Rhino
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL "http://ftp.mozilla.org/pub/js/rhino1_7R3.zip"
URL_MD5 99d94103662a8d0b571e247a77432ac5
CONFIGURE_COMMAND ""
@@ -54,6 +67,7 @@ endif(Java_JAVA_EXECUTABLE)
# JSDoc
ExternalProject_Add(
JsDoc
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL "http://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-2.4.0.zip"
URL_MD5 a8f78f5ecd24b54501147b2af341a231
CONFIGURE_COMMAND ""
@@ -65,6 +79,7 @@ set(JSDOCDIR ${CMAKE_BINARY_DIR}/JsDoc-prefix/src/JsDoc/jsdoc-toolkit)
# Node.JS
ExternalProject_Add(
NodeJS
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL "http://nodejs.org/dist/v0.8.8/node-v0.8.8.tar.gz"
URL_MD5 f4dae84e96a94b768404c14633bccd49
CONFIGURE_COMMAND "./configure"
@@ -76,6 +91,7 @@ set(NODE ${CMAKE_BINARY_DIR}/NodeJS-prefix/src/NodeJS/out/Release/node)
# JSCoverage
ExternalProject_Add(
JSCoverage
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL "http://siliconforks.com/jscoverage/download/jscoverage-0.5.1.tar.bz2"
URL_MD5 a70d79a6759367fbcc0bcc18d6866ff3
PATCH_COMMAND patch -p0 < ${CMAKE_CURRENT_SOURCE_DIR}/JSCoverage.patch
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

+62
View File
@@ -0,0 +1,62 @@
<html dir="ltr" lang="en-US">
<head>
<link rel="stylesheet" type="text/css" href="./viewer.css" media="screen"/>
<script src="./webodf.js" type="text/javascript" charset="utf-8"></script>
<script src="./viewer.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id = "viewer">
<div id = "titlebar">
<div id = "documentName"></div>
</div>
<div id = "toolbarContainer">
<div id = "toolbar">
<div id = "toolbarLeft">
<div id = "navButtons" class = "splitToolbarButton">
<button id = "previous" class = "toolbarButton pageUp" title = "Previous Page"></button>
<div class="splitToolbarButtonSeparator"></div>
<button id = "next" class = "toolbarButton pageDown" title = "Next Page"></button>
</div>
<label id = "pageNumberLabel" class = "toolbarLabel" for = "pageNumber">Page:</label>
<input type = "number" id = "pageNumber" class = "toolbarField pageNumber"></input>
<span id = "numPages" class = "toolbarLabel"></span>
</div>
<div class = "outerCenter">
<div id = "toolbarMiddle" class = "innerCenter">
<div id = 'zoomButtons' class = "splitToolbarButton">
<button id = "zoomOut" class = "toolbarButton zoomOut" title = "Zoom Out"></button>
<div class="splitToolbarButtonSeparator"></div>
<button id = "zoomIn" class = "toolbarButton zoomIn" title = "Zoom In"></button>
</div>
<span id="scaleSelectContainer" class="dropdownToolbarButton">
<select id="scaleSelect" title="Zoom" oncontextmenu="return false;">
<option id="pageAutoOption" value="auto" selected>Automatic</option>
<option id="pageActualOption" value="page-actual">Actual Size</option>
<option id="pageWidthOption" value="page-width">Full Width</option>
<option id="customScaleOption" value="custom"></option>
<option value="0.5">50%</option>
<option value="0.75">75%</option>
<option value="1">100%</option>
<option value="1.25">125%</option>
<option value="1.5">150%</option>
<option value="2">200%</option>
</select>
</span>
<div id = "sliderContainer">
<div id = "slider"></div>
</div>
</div>
</div>
<div id = "toolbarRight">
<button id = "fullscreen" class = "toolbarButton fullscreen" title = "Fullscreen"></button>
<button id = "download" class = "toolbarButton download" title = "Download"></button>
</div>
</div>
</div>
<div id = "canvasContainer">
<div id = "canvas"></div>
</div>
</div>
</body>
</html>
+544
View File
@@ -0,0 +1,544 @@
* {
padding: 0;
margin: 0;
}
body {
font-family: sans-serif;
}
.titlebar > span,
.toolbarLabel,
input,
button,
select {
font: message-box;
}
#titlebar {
position: absolute;
z-index: 2;
top: 0px;
left: 0px;
height: 32px;
width: 100%;
overflow: hidden;
-webkit-box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
box-shadow: 0px 1px 3px rgba(50, 50, 50, 0.75);
background-image: url(images/texture.png), linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
background-image: url(images/texture.png), -webkit-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
background-image: url(images/texture.png), -moz-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
background-image: url(images/texture.png), -ms-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
background-image: url(images/texture.png), -o-linear-gradient(rgba(69, 69, 69, .95), rgba(82, 82, 82, .99));
}
#documentName {
margin-left: 10px;
margin-top: 8px;
color: #F2F2F2;
font-size: 14px;
line-height: 14px;
font-family: sans-serif;
}
#toolbarContainer {
position: absolute;
z-index: 2;
bottom: 0px;
left: 0px;
height: 32px;
width: 100%;
overflow: hidden;
-webkit-box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
box-shadow: 0px -1px 3px rgba(50, 50, 50, 0.75);
background-image: url(images/texture.png), linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
background-image: url(images/texture.png), -webkit-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
background-image: url(images/texture.png), -moz-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
background-image: url(images/texture.png), -ms-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
background-image: url(images/texture.png), -o-linear-gradient(rgba(82, 82, 82, .99), rgba(69, 69, 69, .95));
}
#toolbar {
position: relative;
}
html[dir='ltr'] #toolbarLeft {
margin-left: -1px;
}
html[dir='rtl'] #toolbarRight {
margin-left: -1px;
}
html[dir='ltr'] #toolbarLeft,
html[dir='rtl'] #toolbarRight {
position: absolute;
top: 0;
left: 0;
}
html[dir='ltr'] #toolbarRight,
html[dir='rtl'] #toolbarLeft {
position: absolute;
top: 0;
right: 0;
}
html[dir='ltr'] #toolbarLeft > *,
html[dir='ltr'] #toolbarMiddle > *,
html[dir='ltr'] #toolbarRight > * {
float: left;
}
html[dir='rtl'] #toolbarLeft > *,
html[dir='rtl'] #toolbarMiddle > *,
html[dir='rtl'] #toolbarRight > * {
float: right;
}
/* outer/inner center provides horizontal center */
html[dir='ltr'] .outerCenter {
float: right;
position: relative;
right: 50%;
}
html[dir='rtl'] .outerCenter {
float: left;
position: relative;
left: 50%;
}
html[dir='ltr'] .innerCenter {
float: right;
position: relative;
right: -50%;
}
html[dir='rtl'] .innerCenter {
float: left;
position: relative;
left: -50%;
}
html[dir='ltr'] .splitToolbarButton {
margin: 3px 2px 4px 0;
display: inline-block;
}
html[dir='rtl'] .splitToolbarButton {
margin: 3px 0 4px 2px;
display: inline-block;
}
html[dir='ltr'] .splitToolbarButton > .toolbarButton {
border-radius: 0;
float: left;
}
html[dir='rtl'] .splitToolbarButton > .toolbarButton {
border-radius: 0;
float: right;
}
.splitToolbarButton.toggled .toolbarButton {
margin: 0;
}
.toolbarButton {
border: 0 none;
background-color: rgba(0, 0, 0, 0);
width: 32px;
height: 25px;
border-radius: 2px;
}
html[dir='ltr'] .toolbarButton,
html[dir='ltr'] .dropdownToolbarButton {
margin: 3px 2px 4px 0;
}
html[dir='rtl'] .toolbarButton,
html[dir='rtl'] .dropdownToolbarButton {
margin: 3px 0 4px 2px;
}
.toolbarButton:hover,
.toolbarButton:focus,
.dropdownToolbarButton {
background-color: hsla(0,0%,0%,.12);
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-clip: padding-box;
border: 1px solid hsla(0,0%,0%,.35);
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
0 0 1px hsla(0,0%,100%,.15) inset,
0 1px 0 hsla(0,0%,100%,.05);
}
.toolbarButton:hover:active,
.dropdownToolbarButton:hover:active {
background-color: hsla(0,0%,0%,.2);
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
0 0 1px hsla(0,0%,0%,.2) inset,
0 1px 0 hsla(0,0%,100%,.05);
}
.splitToolbarButton:hover > .toolbarButton,
.splitToolbarButton:focus > .toolbarButton,
.splitToolbarButton.toggled > .toolbarButton,
.toolbarButton.textButton {
background-color: hsla(0,0%,0%,.12);
background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-clip: padding-box;
border: 1px solid hsla(0,0%,0%,.35);
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
0 0 1px hsla(0,0%,100%,.15) inset,
0 1px 0 hsla(0,0%,100%,.05);
-webkit-transition-property: background-color, border-color, box-shadow;
-webkit-transition-duration: 150ms;
-webkit-transition-timing-function: ease;
-moz-transition-property: background-color, border-color, box-shadow;
-moz-transition-duration: 150ms;
-moz-transition-timing-function: ease;
-ms-transition-property: background-color, border-color, box-shadow;
-ms-transition-duration: 150ms;
-ms-transition-timing-function: ease;
-o-transition-property: background-color, border-color, box-shadow;
-o-transition-duration: 150ms;
-o-transition-timing-function: ease;
transition-property: background-color, border-color, box-shadow;
transition-duration: 150ms;
transition-timing-function: ease;
}
.splitToolbarButton > .toolbarButton:hover,
.splitToolbarButton > .toolbarButton:focus,
.dropdownToolbarButton:hover,
.toolbarButton.textButton:hover,
.toolbarButton.textButton:focus {
background-color: hsla(0,0%,0%,.2);
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
0 0 1px hsla(0,0%,100%,.15) inset,
0 0 1px hsla(0,0%,0%,.05);
z-index: 199;
}
.splitToolbarButton:hover > .toolbarButton,
.splitToolbarButton:focus > .toolbarButton,
.splitToolbarButton.toggled > .toolbarButton,
.toolbarButton.textButton {
background-color: hsla(0,0%,0%,.12);
background-image: -webkit-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -ms-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: -o-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-clip: padding-box;
border: 1px solid hsla(0,0%,0%,.35);
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
0 0 1px hsla(0,0%,100%,.15) inset,
0 1px 0 hsla(0,0%,100%,.05);
-webkit-transition-property: background-color, border-color, box-shadow;
-webkit-transition-duration: 150ms;
-webkit-transition-timing-function: ease;
-moz-transition-property: background-color, border-color, box-shadow;
-moz-transition-duration: 150ms;
-moz-transition-timing-function: ease;
-ms-transition-property: background-color, border-color, box-shadow;
-ms-transition-duration: 150ms;
-ms-transition-timing-function: ease;
-o-transition-property: background-color, border-color, box-shadow;
-o-transition-duration: 150ms;
-o-transition-timing-function: ease;
transition-property: background-color, border-color, box-shadow;
transition-duration: 150ms;
transition-timing-function: ease;
}
.splitToolbarButton > .toolbarButton:hover,
.splitToolbarButton > .toolbarButton:focus,
.dropdownToolbarButton:hover,
.toolbarButton.textButton:hover,
.toolbarButton.textButton:focus {
background-color: hsla(0,0%,0%,.2);
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
0 0 1px hsla(0,0%,100%,.15) inset,
0 0 1px hsla(0,0%,0%,.05);
z-index: 199;
}
.dropdownToolbarButton {
border: 1px solid #333 !important;
}
.toolbarButton,
.dropdownToolbarButton {
min-width: 16px;
padding: 2px 6px 2px;
border: 1px solid transparent;
border-radius: 2px;
color: hsl(0,0%,95%);
font-size: 12px;
line-height: 14px;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
/* Opera does not support user-select, use <... unselectable="on"> instead */
cursor: default;
-webkit-transition-property: background-color, border-color, box-shadow;
-webkit-transition-duration: 150ms;
-webkit-transition-timing-function: ease;
-moz-transition-property: background-color, border-color, box-shadow;
-moz-transition-duration: 150ms;
-moz-transition-timing-function: ease;
-ms-transition-property: background-color, border-color, box-shadow;
-ms-transition-duration: 150ms;
-ms-transition-timing-function: ease;
-o-transition-property: background-color, border-color, box-shadow;
-o-transition-duration: 150ms;
-o-transition-timing-function: ease;
transition-property: background-color, border-color, box-shadow;
transition-duration: 150ms;
transition-timing-function: ease;
}
html[dir='ltr'] .toolbarButton,
html[dir='ltr'] .dropdownToolbarButton {
margin: 3px 2px 4px 0;
}
html[dir='rtl'] .toolbarButton,
html[dir='rtl'] .dropdownToolbarButton {
margin: 3px 0 4px 2px;
}
.splitToolbarButton:hover > .splitToolbarButtonSeparator,
.splitToolbarButton.toggled > .splitToolbarButtonSeparator {
padding: 12px 0;
margin: 0;
box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
-webkit-transition-property: padding;
-webkit-transition-duration: 10ms;
-webkit-transition-timing-function: ease;
-moz-transition-property: padding;
-moz-transition-duration: 10ms;
-moz-transition-timing-function: ease;
-ms-transition-property: padding;
-ms-transition-duration: 10ms;
-ms-transition-timing-function: ease;
-o-transition-property: padding;
-o-transition-duration: 10ms;
-o-transition-timing-function: ease;
transition-property: padding;
transition-duration: 10ms;
transition-timing-function: ease;
}
.toolbarButton.toggled:hover:active,
.splitToolbarButton > .toolbarButton:hover:active {
background-color: hsla(0,0%,0%,.4);
border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
0 0 1px hsla(0,0%,0%,.3) inset,
0 1px 0 hsla(0,0%,100%,.05);
}
html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
position: relative;
margin: 0;
margin-left: 4px;
margin-right: -1px;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
border-right-color: transparent;
}
html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
position: relative;
margin: 0;
margin-left: -1px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-left-color: transparent;
}
.splitToolbarButtonSeparator {
padding: 8px 0;
width: 1px;
background-color: hsla(0,0%,00%,.5);
z-index: 99;
box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
display: inline-block;
margin: 5px 0;
}
html[dir='ltr'] .splitToolbarButtonSeparator {
float:left;
}
html[dir='rtl'] .splitToolbarButtonSeparator {
float:right;
}
.dropdownToolbarButton {
min-width: 120px;
max-width: 120px;
padding: 4px 2px 4px;
overflow: hidden;
background: url(images/toolbarButton-menuArrows.png) no-repeat;
}
.dropdownToolbarButton > select {
-webkit-appearance: none;
-moz-appearance: none; /* in the future this might matter, see bugzilla bug #649849 */
min-width: 140px;
font-size: 12px;
color: hsl(0,0%,95%);
margin:0;
padding:0;
border:none;
background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
}
.dropdownToolbarButton > select > option {
background: hsl(0,0%,24%);
}
#pageWidthOption {
border-bottom: 1px rgba(255, 255, 255, .5) solid;
}
html[dir='ltr'] .dropdownToolbarButton {
background-position: 95%;
}
html[dir='rtl'] .dropdownToolbarButton {
background-position: 5%;
}
.toolbarButton.fullscreen::before {
display: inline-block;
content: url(images/toolbarButton-fullscreen.png);
}
.toolbarButton.download::before {
display: inline-block;
content: url(images/toolbarButton-download.png);
}
.toolbarButton.zoomOut::before {
display: inline-block;
content: url(images/toolbarButton-zoomOut.png);
}
.toolbarButton.zoomIn::before {
display: inline-block;
content: url(images/toolbarButton-zoomIn.png);
}
.toolbarButton.pageUp::before {
display: inline-block;
content: url(images/toolbarButton-pageUp.png);
}
.toolbarButton.pageDown::before {
display: inline-block;
content: url(images/toolbarButton-pageDown.png);
}
.toolbarField.pageNumber {
min-width: 16px;
text-align: right;
width: 40px;
}
.toolbarField {
padding: 3px 6px;
margin: 4px 0 4px 0;
border: 1px solid transparent;
border-radius: 2px;
background-color: hsla(0,0%,100%,.09);
background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
background-clip: padding-box;
border: 1px solid hsla(0,0%,0%,.35);
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
0 1px 0 hsla(0,0%,100%,.05);
color: hsl(0,0%,95%);
font-size: 12px;
line-height: 14px;
outline-style: none;
-moz-transition-property: background-color, border-color, box-shadow;
-moz-transition-duration: 150ms;
-moz-transition-timing-function: ease;
}
.toolbarField.pageNumber::-webkit-inner-spin-button,
.toolbarField.pageNumber::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.toolbarField:hover {
background-color: hsla(0,0%,100%,.11);
border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
}
.toolbarField:focus {
background-color: hsla(0,0%,100%,.15);
border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
}
.toolbarLabel {
min-width: 16px;
padding: 3px 6px 3px 2px;
margin: 4px 2px 4px 0;
border: 1px solid transparent;
border-radius: 2px;
color: hsl(0,0%,85%);
font-size: 12px;
line-height: 14px;
text-align: left;
-webkit-user-select:none;
-moz-user-select:none;
cursor: default;
}
#canvasContainer {
overflow: auto;
padding-top: 6px;
padding-bottom: 6px;
position: absolute;
top: 32px;
right: 0;
bottom: 32px;
left: 0;
text-align: center;
background-color: #888;
background-image: url(images/texture.png);
}
#canvas {
overflow: hidden;
box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
-webkit-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
-ms-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
-o-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
}
#sliderContainer {
visibility: hidden;
}
+313
View File
@@ -0,0 +1,313 @@
function isFullScreen() {
// Note that the browser fullscreen (triggered by short keys) might
// be considered different from content fullscreen when expecting a boolean
return document.mozFullScreen || document.webkitIsFullScreen;
}
function selectScaleOption(value) {
var options = document.getElementById('scaleSelect').options;
var predefinedValueFound = false;
for (var i = 0; i < options.length; i++) {
var option = options[i];
if (option.value != value) {
option.selected = false;
continue;
}
option.selected = true;
predefinedValueFound = true;
}
return predefinedValueFound;
}
// that should probably be provided by webodf
function nsResolver(prefix) {
var ns = {
'draw' : "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
'presentation' : "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",
'text' : "urn:oasis:names:tc:opendocument:xmlns:text:1.0",
'office' : "urn:oasis:names:tc:opendocument:xmlns:office:1.0"
};
return ns[prefix] || alert('prefix ['+prefix+'] unknown.');
}
function getDocumentType(root) {
if (root.getElementsByTagNameNS(nsResolver('office'), 'text').length > 0) return 'text';
else if (root.getElementsByTagNameNS(nsResolver('office'), 'presentation').length > 0) return 'presentation';
else return null;
}
var kCssUnits = 96.0 / 72.0;
var kScrollbarPadding = 40;
var kMinScale = 0.25;
var kMaxScale = 4.0;
var kDefaultScaleDelta = 1.1;
var kDefaultScale = 'auto';
var slide_mode;
var Viewer = {
url: null,
filename: null,
odfCanvas: null,
element: null,
odfElement: null,
initialized: false,
root: null,
documentType: null,
pages: [],
currentPage: null,
initialize: function() {
// If the URL has a fragment (#...), try to load the file it represents
var location = String(document.location),
pos = location.indexOf('#');
location= location.substr(pos + 1);
if(pos === -1 || location.length == 0) {
console.log('Could not parse file path argument.');
return;
}
this.element = document.getElementById('viewer');
this.url = location;
this.filename = this.url.replace(/^.*[\\\/]/, '');
this.odfElement = document.getElementById('canvas');
this.odfCanvas = new odf.OdfCanvas(this.odfElement);
this.odfCanvas.load(location);
document.title = this.filename;
document.getElementById('documentName').innerHTML = document.title;
if(! (document.cancelFullScreen || document.mozCancelFullScreen || document.webkitCancelFullScreen) )
document.getElementById('fullscreen').style.visibility = 'hidden';
var self = this;
this.odfCanvas.addListener('statereadychange', function () {
self.root = self.odfCanvas.odfContainer().rootElement;
self.initialized = true;
self.documentType = getDocumentType(self.root);
if(self.documentType == 'presentation') {
// temporary hack: remove zoom buttons to make way for the navigation controls
document.getElementById('toolbarMiddle').style.visibility = 'hidden';
// no padding for presentations
self.odfElement.parentNode.style.padding = 0;
// get a list of pages
self.pages = self.getPages();
document.getElementById('numPages').innerHTML = 'of ' + self.pages.length;
// start with the first page
self.showPage(1);
}
else {
document.getElementById('toolbarLeft').style.visibility = 'hidden';
}
// WTF, but I need to call it thrice to render presentations properly. Need to investigate.
self.parseScale(kDefaultScale);
self.parseScale(kDefaultScale);
self.parseScale(kDefaultScale);
});
},
download: function() {
var url = this.url.split('#')[0];
url += '#webodf-viewer.action=download';
window.open(url, '_parent');
},
toggleFullScreen: function() {
var elem = this.element;
if(!isFullScreen()) {
if (elem.requestFullScreen) {
  elem.requestFullScreen();
} else if (elem.mozRequestFullScreen) {
  elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullScreen) {
  elem.webkitRequestFullScreen();
}
}
else {
if (document.cancelFullScreen) {
document.cancelFullScreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
}
},
zoomLevel: function() {
return this.odfCanvas.getZoomLevel();
},
setScale: function (val, resetAutoSettings, noScroll) {
if (val == this.zoomLevel() )
return;
this.odfCanvas.setZoomLevel(val);
var event = document.createEvent('UIEvents');
event.initUIEvent('scalechange', false, false, window, 0);
event.scale = val;
event.resetAutoSettings = resetAutoSettings;
window.dispatchEvent(event);
},
parseScale: function (value, resetAutoSettings, noScroll) {
var scale;
if (value == 'custom')
scale = parseFloat(document.getElementById('customScaleOption').textContent) / 100;
else
scale = parseFloat(value);
if (scale) {
this.setScale(scale, true, noScroll);
return;
}
var width = this.odfElement.parentNode.clientWidth - kScrollbarPadding;
var height = this.odfElement.parentNode.clientHeight - kScrollbarPadding;
switch (value) {
case 'page-actual':
this.setScale(1, resetAutoSettings, noScroll);
break;
case 'page-width':
this.odfCanvas.fitToWidth(width);
break;
case 'page-height':
this.odfCanvas.fitToHeight(height);
break;
case 'page-fit':
this.odfCanvas.fitToContainingElement(width, height);
break;
case 'auto':
if(this.documentType == 'presentation')
this.odfCanvas.fitToContainingElement(width + kScrollbarPadding, height + kScrollbarPadding);
else
this.odfCanvas.fitSmart(width);
break;
}
selectScaleOption(value);
},
zoomOut: function() {
// 10 % decrement
var newScale = (this.zoomLevel() / kDefaultScaleDelta).toFixed(2);
newScale = Math.max(kMinScale, newScale);
this.parseScale(newScale, true);
},
zoomIn: function() {
// 10 % increment
var newScale = (this.zoomLevel() * kDefaultScaleDelta).toFixed(2);
newScale = Math.min(kMaxScale, newScale);
this.parseScale(newScale, true);
},
// return a list of tuples (pagename, pagenode)
getPages: function() {
var pageNodes = this.root.getElementsByTagNameNS(nsResolver('draw'), 'page');
var pages = [];
for (i=0 ; i < pageNodes.length ; i += 1) {
var tuple = [
pageNodes[i].getAttribute('draw:name'),
pageNodes[i]
];
pages.push(tuple);
}
return pages;
},
showPage: function(n) {
if (n <= 0)
n = 1;
else if (n > this.pages.length)
n = this.pages.length;
this.odfCanvas.showPage(n);
this.currentPage = n;
document.getElementById('pageNumber').value = this.currentPage;
},
showNextPage: function() {
this.showPage(this.currentPage + 1);
},
showPreviousPage: function() {
this.showPage(this.currentPage - 1);
}
};
window.onload = function() {
Viewer.initialize();
document.getElementById('fullscreen').addEventListener('click', function() {
Viewer.toggleFullScreen();
});
document.getElementById('download').addEventListener('click', function() {
Viewer.download();
});
document.getElementById('zoomOut').addEventListener('click', function() {
Viewer.zoomOut();
});
document.getElementById('zoomIn').addEventListener('click', function() {
Viewer.zoomIn();
});
document.getElementById('previous').addEventListener('click', function() {
Viewer.showPreviousPage();
});
document.getElementById('next').addEventListener('click', function() {
Viewer.showNextPage();
});
document.getElementById('pageNumber').addEventListener('change', function() {
Viewer.showPage(this.value);
})
document.getElementById('scaleSelect').addEventListener('change', function() {
Viewer.parseScale(this.value);
});
window.addEventListener('scalechange', function scalechange(evt) {
var customScaleOption = document.getElementById('customScaleOption');
customScaleOption.selected = false;
var predefinedValueFound = selectScaleOption('' + evt.scale);
if (!predefinedValueFound) {
customScaleOption.textContent = Math.round(evt.scale * 10000) / 100 + '%';
customScaleOption.selected = true;
}
}, true);
window.addEventListener('resize', function webViewerResize(evt) {
if (Viewer.initialized &&
(document.getElementById('pageWidthOption').selected ||
document.getElementById('pageAutoOption').selected))
Viewer.parseScale(document.getElementById('scaleSelect').value);
});
window.addEventListener('keydown', function(evt) {
var code = evt.keyCode;
if (evt.charCode && code == 0)
code = evt.charCode;
switch(code) {
case 38: // up
case 37: // left
Viewer.showPreviousPage();
break;
case 40: // down
case 39: // right
Viewer.showNextPage();
break;
}
});
};
+357
View File
@@ -0,0 +1,357 @@
// 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.parseXML=function(){};Runtime.prototype.getWindow=function(){};var IS_COMPILED_CODE=!0;
Runtime.byteArrayToString=function(j,n){var k;if("utf8"===n){k="";var i,c=j.length,b,a,d;for(i=0;i<c;i+=1)b=j[i],128>b?k+=String.fromCharCode(b):(i+=1,a=j[i],224>b?k+=String.fromCharCode((b&31)<<6|a&63):(i+=1,d=j[i],k+=String.fromCharCode((b&15)<<12|(a&63)<<6|d&63)))}else{"binary"!==n&&this.log("Unsupported encoding: "+n);k="";c=j.length;for(i=0;i<c;i+=1)k+=String.fromCharCode(j[i]&255)}return k};Runtime.getFunctionName=function(j){return void 0===j.name?(j=/function\s+(\w+)/.exec(j))&&j[1]:j.name};
function BrowserRuntime(j){function n(b,a){var d,l,e;a?e=b:a=b;j?(l=j.ownerDocument,e&&(d=l.createElement("span"),d.className=e,d.appendChild(l.createTextNode(e)),j.appendChild(d),j.appendChild(l.createTextNode(" "))),d=l.createElement("span"),d.appendChild(l.createTextNode(a)),j.appendChild(d),j.appendChild(l.createElement("br"))):console&&console.log(a)}var k=this,i={},c=window.ArrayBuffer&&window.Uint8Array;this.ByteArray=c?function(b){Uint8Array.prototype.slice=function(a,d){void 0===d&&(void 0===
a&&(a=0),d=this.length);var b=this.subarray(a,d),e,c,d=d-a;e=new Uint8Array(new ArrayBuffer(d));for(c=0;c<d;c+=1)e[c]=b[c];return e};return new Uint8Array(new ArrayBuffer(b))}:function(b){var a=[];a.length=b;return a};this.concatByteArrays=c?function(b,a){var d,c=b.length,e=a.length,f=new this.ByteArray(c+e);for(d=0;d<c;d+=1)f[d]=b[d];for(d=0;d<e;d+=1)f[d+c]=a[d];return f}:function(b,a){return b.concat(a)};this.byteArrayFromArray=function(b){return b.slice()};this.byteArrayFromString=function(b,a){var d;
if("utf8"===a){d=b.length;var c,e,f,m=0;for(e=0;e<d;e+=1)f=b.charCodeAt(e),m+=1+(128<f)+(2048<f);c=new k.ByteArray(m);for(e=m=0;e<d;e+=1)f=b.charCodeAt(e),128>f?(c[m]=f,m+=1):2048>f?(c[m]=192|f>>>6,c[m+1]=128|f&63,m+=2):(c[m]=224|f>>>12&15,c[m+1]=128|f>>>6&63,c[m+2]=128|f&63,m+=3)}else{"binary"!==a&&k.log("unknown encoding: "+a);d=b.length;c=new k.ByteArray(d);for(e=0;e<d;e+=1)c[e]=b.charCodeAt(e)&255}return d=c};this.byteArrayToString=Runtime.byteArrayToString;this.readFile=function(b,a,d){function c(){var l;
4===e.readyState&&(0===e.status&&!e.responseText?d("File "+b+" is empty."):200===e.status||0===e.status?(l="binary"===a?"undefined"!==String(typeof VBArray)?(new VBArray(e.responseBody)).toArray():k.byteArrayFromString(e.responseText,"binary"):e.responseText,i[b]=l,d(null,l)):d(e.responseText||e.statusText))}if(i.hasOwnProperty(b))d(null,i[b]);else{var e=new XMLHttpRequest;e.open("GET",b,!0);e.onreadystatechange=c;e.overrideMimeType&&("binary"!==a?e.overrideMimeType("text/plain; charset="+a):e.overrideMimeType("text/plain; charset=x-user-defined"));
try{e.send(null)}catch(f){d(f.message)}}};this.read=function(b,a,d,c){function e(){var e;4===f.readyState&&(0===f.status&&!f.responseText?c("File "+b+" is empty."):200===f.status||0===f.status?(e="undefined"!==String(typeof VBArray)?(new VBArray(f.responseBody)).toArray():k.byteArrayFromString(f.responseText,"binary"),i[b]=e,c(null,e.slice(a,a+d))):c(f.responseText||f.statusText))}if(i.hasOwnProperty(b))c(null,i[b].slice(a,a+d));else{var f=new XMLHttpRequest;f.open("GET",b,!0);f.onreadystatechange=
e;f.overrideMimeType&&f.overrideMimeType("text/plain; charset=x-user-defined");try{f.send(null)}catch(m){c(m.message)}}};this.readFileSync=function(b,a){var d=new XMLHttpRequest,c;d.open("GET",b,!1);d.overrideMimeType&&("binary"!==a?d.overrideMimeType("text/plain; charset="+a):d.overrideMimeType("text/plain; charset=x-user-defined"));try{if(d.send(null),200===d.status||0===d.status)c=d.responseText}catch(e){}return c};this.writeFile=function(b,a,d){i[b]=a;var c=new XMLHttpRequest;c.open("PUT",b,!0);
c.onreadystatechange=function(){4===c.readyState&&(0===c.status&&!c.responseText?d("File "+b+" is empty."):200<=c.status&&300>c.status||0===c.status?d(null):d("Status "+String(c.status)+": "+c.responseText||c.statusText))};a=a.buffer&&!c.sendAsBinary?a.buffer:k.byteArrayToString(a,"binary");try{c.sendAsBinary?c.sendAsBinary(a):c.send(a)}catch(e){k.log("HUH? "+e+" "+a),d(e.message)}};this.deleteFile=function(b,a){delete i[b];var d=new XMLHttpRequest;d.open("DELETE",b,!0);d.onreadystatechange=function(){4===
d.readyState&&(200>d.status&&300<=d.status?a(d.responseText):a(null))};d.send(null)};this.loadXML=function(b,a){var d=new XMLHttpRequest;d.open("GET",b,!0);d.overrideMimeType&&d.overrideMimeType("text/xml");d.onreadystatechange=function(){4===d.readyState&&(0===d.status&&!d.responseText?a("File "+b+" is empty."):200===d.status||0===d.status?a(null,d.responseXML):a(d.responseText))};try{d.send(null)}catch(c){a(c.message)}};this.isFile=function(b,a){k.getFileSize(b,function(d){a(-1!==d)})};this.getFileSize=
function(b,a){var d=new XMLHttpRequest;d.open("HEAD",b,!0);d.onreadystatechange=function(){if(4===d.readyState){var b=d.getResponseHeader("Content-Length");b?a(parseInt(b,10)):a(-1)}};d.send(null)};this.log=n;this.setTimeout=function(b,a){setTimeout(function(){b()},a)};this.libraryPaths=function(){return["lib"]};this.setCurrentDirectory=function(){};this.type=function(){return"BrowserRuntime"};this.getDOMImplementation=function(){return window.document.implementation};this.parseXML=function(b){return(new DOMParser).parseFromString(b,
"text/xml")};this.exit=function(b){n("Calling exit with code "+String(b)+", but exit() is not implemented.")};this.getWindow=function(){return window}}
function NodeJSRuntime(){function j(a,d,b){i&&(a=i+"/"+a);"binary"!==d?k.readFile(a,d,b):k.readFile(a,null,b)}var n=this,k=require("fs"),i="",c,b;this.ByteArray=function(a){return new Buffer(a)};this.byteArrayFromArray=function(a){var d=new Buffer(a.length),b,e=a.length;for(b=0;b<e;b+=1)d[b]=a[b];return d};this.concatByteArrays=function(a,b){var c=new Buffer(a.length+b.length);a.copy(c,0,0);b.copy(c,a.length,0);return c};this.byteArrayFromString=function(a,b){return new Buffer(a,b)};this.byteArrayToString=
function(a,b){return a.toString(b)};this.readFile=j;this.loadXML=function(a,b){j(a,"utf-8",function(a,e){if(a)return b(a);b(null,n.parseXML(e))})};this.writeFile=function(a,b,c){i&&"/"!==a[0]&&(a=i+"/"+a);k.writeFile(a,b,"binary",function(a){c(a||null)})};this.deleteFile=function(a,b){i&&(a=i+"/"+a);k.unlink(a,b)};this.read=function(a,b,c,e){i&&(a=i+"/"+a);k.open(a,"r+",666,function(a,m){if(a)e(a);else{var g=new Buffer(c);k.read(m,g,0,c,b,function(a){k.close(m);e(a,g)})}})};this.readFileSync=function(a,
b){return!b?"":k.readFileSync(a,b)};this.isFile=function(a,b){i&&(a=i+"/"+a);k.stat(a,function(a,e){b(!a&&e.isFile())})};this.getFileSize=function(a,b){i&&(a=i+"/"+a);k.stat(a,function(a,e){a?b(-1):b(e.size)})};this.log=function(a){process.stderr.write(a+"\n")};this.setTimeout=function(a,b){setTimeout(function(){a()},b)};this.libraryPaths=function(){return[__dirname]};this.setCurrentDirectory=function(a){i=a};this.currentDirectory=function(){return i};this.type=function(){return"NodeJSRuntime"};this.getDOMImplementation=
function(){return b};this.parseXML=function(a){return c.parseFromString(a,"text/xml")};this.exit=process.exit;this.getWindow=function(){return null};c=new (require("xmldom").DOMParser);b=n.parseXML("<a/>").implementation}
function RhinoRuntime(){var j=this,n=Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance(),k,i,c="";n.setValidating(!1);n.setNamespaceAware(!0);n.setExpandEntityReferences(!1);n.setSchema(null);i=Packages.org.xml.sax.EntityResolver({resolveEntity:function(b,a){var c=new Packages.java.io.FileReader(a);return new Packages.org.xml.sax.InputSource(c)}});k=n.newDocumentBuilder();k.setEntityResolver(i);this.ByteArray=function(b){return[b]};this.byteArrayFromArray=function(b){return b};this.byteArrayFromString=
function(b){var a=[],c,l=b.length;for(c=0;c<l;c+=1)a[c]=b.charCodeAt(c)&255;return a};this.byteArrayToString=Runtime.byteArrayToString;this.concatByteArrays=function(b,a){return b.concat(a)};this.loadXML=function(b,a){var c=new Packages.java.io.File(b),l;try{l=k.parse(c)}catch(e){print(e);a(e);return}a(null,l)};this.readFile=function(b,a,d){c&&(b=c+"/"+b);var l=new Packages.java.io.File(b),e="binary"===a?"latin1":a;l.isFile()?(b=readFile(b,e),"binary"===a&&(b=j.byteArrayFromString(b,"binary")),d(null,
b)):d(b+" is not a file.")};this.writeFile=function(b,a,d){c&&(b=c+"/"+b);var b=new Packages.java.io.FileOutputStream(b),l,e=a.length;for(l=0;l<e;l+=1)b.write(a[l]);b.close();d(null)};this.deleteFile=function(b,a){c&&(b=c+"/"+b);(new Packages.java.io.File(b))["delete"]()?a(null):a("Could not delete "+b)};this.read=function(b,a,d,l){c&&(b=c+"/"+b);var e;e=b;var f="binary";(new Packages.java.io.File(e)).isFile()?("binary"===f&&(f="latin1"),e=readFile(e,f)):e=null;e?l(null,this.byteArrayFromString(e.substring(a,
a+d),"binary")):l("Cannot read "+b)};this.readFileSync=function(b,a){return!a?"":readFile(b,a)};this.isFile=function(b,a){c&&(b=c+"/"+b);var d=new Packages.java.io.File(b);a(d.isFile())};this.getFileSize=function(b,a){c&&(b=c+"/"+b);var d=new Packages.java.io.File(b);a(d.length())};this.log=print;this.setTimeout=function(b){b()};this.libraryPaths=function(){return["lib"]};this.setCurrentDirectory=function(b){c=b};this.currentDirectory=function(){return c};this.type=function(){return"RhinoRuntime"};
this.getDOMImplementation=function(){return k.getDOMImplementation()};this.parseXML=function(b){return k.parse(b)};this.exit=quit;this.getWindow=function(){return null}}var runtime=function(){return"undefined"!==String(typeof window)?new BrowserRuntime(window.document.getElementById("logoutput")):"undefined"!==String(typeof require)?new NodeJSRuntime:new RhinoRuntime}();
(function(){function j(i){var c=i[0],b;b=eval("if (typeof "+c+" === 'undefined') {eval('"+c+" = {};');}"+c);for(c=1;c<i.length-1;c+=1)b.hasOwnProperty(i[c])||(b=b[i[c]]={});return b[i[i.length-1]]}var n={},k={};runtime.loadClass=function(i){function c(a){var a=a.replace(".","/")+".js",b=runtime.libraryPaths(),c,d,g;runtime.currentDirectory&&b.push(runtime.currentDirectory());for(c=0;c<b.length;c+=1){d=b[c];if(!k.hasOwnProperty(d))if((g=runtime.readFileSync(b[c]+"/manifest.js","utf8"))&&g.length)try{k[d]=
eval(g)}catch(h){k[d]=null,runtime.log("Cannot load manifest for "+d+".")}else k[d]=null;if((d=k[d])&&d.indexOf&&-1!==d.indexOf(a))return b[c]+"/"+a}return null}function b(a){var b,d;d=c(a);if(!d)throw a+" is not listed in any manifest.js.";try{b=runtime.readFileSync(d,"utf8")}catch(m){throw runtime.log("Error loading "+a+" "+m),m;}if(void 0===b)throw"Cannot load class "+a;try{b=eval(a+" = eval(code);")}catch(g){throw runtime.log("Error loading "+a+" "+g),g;}return b}if(!IS_COMPILED_CODE&&!n.hasOwnProperty(i)){var a=
i.split("."),d;d=j(a);if(!d&&(d=b(i),!d||Runtime.getFunctionName(d)!==a[a.length-1]))throw runtime.log("Loaded code is not for "+a[a.length-1]),"Loaded code is not for "+a[a.length-1];n[i]=!0}}})();
(function(j){function n(k){if(k.length){var i=k[0];runtime.readFile(i,"utf8",function(c,b){function a(){var a;(a=eval(l))&&runtime.exit(a)}var d="";runtime.libraryPaths();var l=b;-1!==i.indexOf("/")&&(d=i.substring(0,i.indexOf("/")));runtime.setCurrentDirectory(d);c||null===l?(runtime.log(c),runtime.exit(1)):a.apply(null,k)})}}j=Array.prototype.slice.call(j);"NodeJSRuntime"===runtime.type()?n(process.argv.slice(2)):"RhinoRuntime"===runtime.type()?n(j):n(j.slice(1))})("undefined"!==String(typeof arguments)&&
arguments);
// Input 2
core.Base64=function(){function j(a){var b=[],c,e=a.length;for(c=0;c<e;c+=1)b[c]=a.charCodeAt(c)&255;return b}function n(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+=o[b>>>18],c+=o[b>>>12&63],c+=o[b>>>6&63],c+=o[b&63];e===d+1?(b=a[e]<<4,c+=o[b>>>6],c+=o[b&63],c+="=="):e===d&&(b=a[e]<<10|a[e+1]<<2,c+=o[b>>>12],c+=o[b>>>6&63],c+=o[b&63],c+="=");return c}function k(a){var a=a.replace(/[^A-Za-z0-9+\/]+/g,""),b=[],c=a.length%4,e,d=a.length,g;for(e=0;e<d;e+=4)g=(C[a.charAt(e)]||
0)<<18|(C[a.charAt(e+1)]||0)<<12|(C[a.charAt(e+2)]||0)<<6|(C[a.charAt(e+3)]||0),b.push(g>>16,g>>8&255,g&255);b.length-=[0,0,2,1][c];return b}function i(a){var b=[],c,e=a.length,d;for(c=0;c<e;c+=1)d=a[c],128>d?b.push(d):2048>d?b.push(192|d>>>6,128|d&63):b.push(224|d>>>12&15,128|d>>>6&63,128|d&63);return b}function c(a){var b=[],c,e=a.length,d,g,h;for(c=0;c<e;c+=1)d=a[c],128>d?b.push(d):(c+=1,g=a[c],224>d?b.push((d&31)<<6|g&63):(c+=1,h=a[c],b.push((d&15)<<12|(g&63)<<6|h&63)));return b}function b(a){return n(j(a))}
function a(a){return String.fromCharCode.apply(String,k(a))}function d(a){return c(j(a))}function l(a){for(var a=c(a),b="",e=0;e<a.length;)b+=String.fromCharCode.apply(String,a.slice(e,e+45E3)),e+=45E3;return b}function e(a,b,c){var e="",d,g,h;for(h=b;h<c;h+=1)b=a.charCodeAt(h)&255,128>b?e+=String.fromCharCode(b):(h+=1,d=a.charCodeAt(h)&255,224>b?e+=String.fromCharCode((b&31)<<6|d&63):(h+=1,g=a.charCodeAt(h)&255,e+=String.fromCharCode((b&15)<<12|(d&63)<<6|g&63)));return e}function f(a,b){function c(){var h=
g+d;h>a.length&&(h=a.length);q+=e(a,g,h);g=h;h=g===a.length;b(q,h)&&!h&&runtime.setTimeout(c,0)}var d=1E5,q="",g=0;a.length<d?b(e(a,0,a.length),!0):("string"!==typeof a&&(a=a.slice()),c())}function m(a){return i(j(a))}function g(a){return String.fromCharCode.apply(String,i(a))}function h(a){return String.fromCharCode.apply(String,i(j(a)))}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=[],z;for(z=0;26>z;z+=1)p.push(65+z);for(z=0;26>z;z+=1)p.push(97+z);for(z=0;10>z;z+=1)p.push(48+
z);p.push(43);p.push(47);var C,p=o;z={};var w,v;w=0;for(v=p.length;w<v;w+=1)z[p.charAt(w)]=w;C=z;var A,B,D=runtime.getWindow(),x,u;D&&D.btoa?(x=function(a){return D.btoa(a)},A=function(a){return x(h(a))}):(x=b,A=function(a){return n(m(a))});D&&D.atob?(u=function(a){return D.atob(a)},B=function(a){a=u(a);return e(a,0,a.length)}):(u=a,B=function(a){return l(k(a))});return function(){this.convertByteArrayToBase64=this.convertUTF8ArrayToBase64=n;this.convertBase64ToByteArray=this.convertBase64ToUTF8Array=
k;this.convertUTF16ArrayToByteArray=this.convertUTF16ArrayToUTF8Array=i;this.convertByteArrayToUTF16Array=this.convertUTF8ArrayToUTF16Array=c;this.convertUTF8StringToBase64=b;this.convertBase64ToUTF8String=a;this.convertUTF8StringToUTF16Array=d;this.convertByteArrayToUTF16String=this.convertUTF8ArrayToUTF16String=l;this.convertUTF8StringToUTF16String=f;this.convertUTF16StringToByteArray=this.convertUTF16StringToUTF8Array=m;this.convertUTF16ArrayToUTF8String=g;this.convertUTF16StringToUTF8String=h;
this.convertUTF16StringToBase64=A;this.convertBase64ToUTF16String=B;this.fromBase64=a;this.toBase64=b;this.atob=u;this.btoa=x;this.utob=h;this.btou=f;this.encode=A;this.encodeURI=function(a){return A(a).replace(/[+\/]/g,function(a){return a==="+"?"-":"_"}).replace(/\\=+$/,"")};this.decode=function(a){return B(a.replace(/[\-_]/g,function(a){return a==="-"?"+":"/"}))}}}();
// Input 3
var webodf_css="@namespace draw url(urn:oasis:names:tc:opendocument:xmlns:drawing:1.0);\n@namespace fo url(urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0);\n@namespace office url(urn:oasis:names:tc:opendocument:xmlns:office:1.0);\n@namespace presentation url(urn:oasis:names:tc:opendocument:xmlns:presentation:1.0);\n@namespace style url(urn:oasis:names:tc:opendocument:xmlns:style:1.0);\n@namespace svg url(urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0);\n@namespace table url(urn:oasis:names:tc:opendocument:xmlns:table:1.0);\n@namespace text url(urn:oasis:names:tc:opendocument:xmlns:text:1.0);\n@namespace runtimens url(urn:webodf); /* namespace for runtime only */\n\noffice|document > *, office|document-content > * {\n display: none;\n}\noffice|body, office|document {\n display: inline-block;\n position: relative;\n}\n\ntext|p, text|h {\n display: block;\n padding: 3px 3px 3px 3px;\n margin: 5px 5px 5px 5px;\n}\ntext|h {\n font-weight: bold;\n}\n*[runtimens|containsparagraphanchor] {\n position: relative;\n}\ntext|s:before { /* this needs to be the number of spaces given by text:c */\n content: ' ';\n}\ntext|tab:before {\n display: inline;\n content: ' ';\n}\ntext|line-break {\n content: \" \";\n display: block;\n}\ntext|tracked-changes {\n /*Consumers that do not support change tracking, should ignore changes.*/\n display: none;\n}\noffice|binary-data {\n display: none;\n}\noffice|text {\n display: block;\n width: 216mm; /* default to A4 width */\n min-height: 279mm;\n padding-left: 32mm;\n padding-right: 32mm;\n padding-top: 25mm;\n padding-bottom: 13mm;\n margin: 2px;\n text-align: left;\n overflow: hidden;\n}\noffice|spreadsheet {\n display: block;\n border-collapse: collapse;\n empty-cells: show;\n font-family: sans-serif;\n font-size: 10pt;\n text-align: left;\n page-break-inside: avoid;\n overflow: hidden;\n}\noffice|presentation {\n display: inline-block;\n text-align: left;\n}\ndraw|page {\n display: block;\n height: 21cm;\n width: 28cm;\n margin: 3px;\n position: relative;\n overflow: hidden;\n}\npresentation|notes {\n display: none;\n}\n@media print {\n draw|page {\n border: 1pt solid black;\n page-break-inside: avoid;\n }\n presentation|notes {\n /*TODO*/\n }\n}\noffice|spreadsheet text|p {\n border: 0px;\n padding: 1px;\n margin: 0px;\n}\noffice|spreadsheet table|table {\n margin: 3px;\n}\noffice|spreadsheet table|table:after {\n /* show sheet name the end of the sheet */\n /*content: attr(table|name);*/ /* gives parsing error in opera */\n}\noffice|spreadsheet table|table-row {\n counter-increment: row;\n}\noffice|spreadsheet table|table-row:before {\n width: 3em;\n background: #cccccc;\n border: 1px solid black;\n text-align: center;\n content: counter(row);\n display: table-cell;\n}\noffice|spreadsheet table|table-cell {\n border: 1px solid #cccccc;\n}\ntable|table {\n display: table;\n}\ndraw|frame table|table {\n width: 100%;\n height: 100%;\n background: white;\n}\ntable|table-header-rows {\n display: table-header-group;\n}\ntable|table-row {\n display: table-row;\n}\ntable|table-column {\n display: table-column;\n}\ntable|table-cell {\n width: 0.889in;\n display: table-cell;\n}\ndraw|frame {\n display: block;\n}\ndraw|image {\n display: block;\n width: 100%;\n height: 100%;\n top: 0px;\n left: 0px;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n -moz-background-size: 100% 100%;\n}\n/* only show the first image in frame */\ndraw|frame > draw|image:nth-of-type(n+2) {\n display: none;\n}\ntext|list:before {\n display: none;\n content:\"\";\n}\ntext|list {\n counter-reset: list;\n}\ntext|list-item {\n display: block;\n}\ntext|number {\n display:none;\n}\n\ntext|a {\n color: blue;\n text-decoration: underline;\n cursor: pointer;\n}\ntext|note-citation {\n vertical-align: super;\n font-size: smaller;\n}\ntext|note-body {\n display: none;\n}\ntext|note:hover text|note-citation {\n background: #dddddd;\n}\ntext|note:hover text|note-body {\n display: block;\n left:1em;\n max-width: 80%;\n position: absolute;\n background: #ffffaa;\n}\nsvg|title, svg|desc {\n display: none;\n}\nvideo {\n width:100%;\n height:100%\n}\n";
// Input 4
core.RawDeflate=function(){function j(){this.dl=this.fc=0}function n(){this.extra_bits=this.static_tree=this.dyn_tree=null;this.max_code=this.max_length=this.elems=this.extra_base=0}function k(a,b,c,e){this.good_length=a;this.max_lazy=b;this.nice_length=c;this.max_chain=e}function i(){this.next=null;this.len=0;this.ptr=[];this.ptr.length=c;this.off=0}var c=8192,b,a,d,l,e=null,f,m,g,h,o,p,z,C,w,v,A,B,D,x,u,J,r,s,t,q,F,O,R,y,G,I,M,P,H,K,E,W,Q,N,X,ba,U,ca,$,ia,ea,fa,S,ja,aa,V,L,Y,da,ka,qa,ra=[0,0,0,
0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ga=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ha=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],va=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],la;la=[new k(0,0,0,0),new k(4,4,8,4),new k(4,5,16,8),new k(4,6,32,32),new k(4,4,16,16),new k(8,16,32,32),new k(8,16,128,128),new k(8,32,128,256),new k(32,128,258,1024),new k(32,258,258,4096)];var ma=function(q){e[m+f++]=q;if(m+f===c){var g;if(0!==f){null!==b?(q=b,b=b.next):q=new i;
q.next=null;q.len=q.off=0;null===a?a=d=q:d=d.next=q;q.len=f-m;for(g=0;g<q.len;g++)q.ptr[g]=e[m+g];f=m=0}}},na=function(a){a&=65535;m+f<c-2?(e[m+f++]=a&255,e[m+f++]=a>>>8):(ma(a&255),ma(a>>>8))},oa=function(){A=(A<<5^h[r+3-1]&255)&8191;B=z[32768+A];z[r&32767]=B;z[32768+A]=r},T=function(a,b){w>16-b?(C|=a<<w,na(C),C=a>>16-w,w+=b-16):(C|=a<<w,w+=b)},Z=function(a,b){T(b[a].fc,b[a].dl)},wa=function(a,b,c){return a[b].fc<a[c].fc||a[b].fc===a[c].fc&&U[b]<=U[c]},xa=function(a,b,c){var e;for(e=0;e<c&&qa<ka.length;e++)a[b+
e]=ka.charCodeAt(qa++)&255;return e},sa=function(){var a,b,c=65536-q-r;if(-1===c)c--;else if(65274<=r){for(a=0;32768>a;a++)h[a]=h[a+32768];s-=32768;r-=32768;v-=32768;for(a=0;8192>a;a++)b=z[32768+a],z[32768+a]=32768<=b?b-32768:0;for(a=0;32768>a;a++)b=z[a],z[a]=32768<=b?b-32768:0;c+=32768}t||(a=xa(h,r+q,c),0>=a?t=!0:q+=a)},ya=function(a){var b=F,c=r,e,d=J,q=32506<r?r-32506:0,g=r+258,t=h[c+d-1],m=h[c+d];J>=y&&(b>>=2);do if(e=a,!(h[e+d]!==m||h[e+d-1]!==t||h[e]!==h[c]||h[++e]!==h[c+1])){c+=2;e++;do++c;
while(h[c]===h[++e]&&h[++c]===h[++e]&&h[++c]===h[++e]&&h[++c]===h[++e]&&h[++c]===h[++e]&&h[++c]===h[++e]&&h[++c]===h[++e]&&h[++c]===h[++e]&&c<g);e=258-(g-c);c=g-258;if(e>d){s=a;d=e;if(258<=e)break;t=h[c+d-1];m=h[c+d]}}while((a=z[a&32767])>q&&0!==--b);return d},ha=function(a,b){p[S++]=b;0===a?G[b].fc++:(a--,G[ca[b]+256+1].fc++,I[(256>a?$[a]:$[256+(a>>7)])&255].fc++,o[ja++]=a,V|=L);L<<=1;0===(S&7)&&(fa[aa++]=V,V=0,L=1);if(2<R&&0===(S&4095)){var c=8*S,e=r-v,d;for(d=0;30>d;d++)c+=I[d].fc*(5+ga[d]);c>>=
3;if(ja<parseInt(S/2,10)&&c<parseInt(e/2,10))return!0}return 8191===S||8192===ja},ta=function(a,b){for(var c=N[b],e=b<<1;e<=X;){e<X&&wa(a,N[e+1],N[e])&&e++;if(wa(a,c,N[e]))break;N[b]=N[e];b=e;e<<=1}N[b]=c},za=function(a,b){var c=0;do c|=a&1,a>>=1,c<<=1;while(0<--b);return c>>1},Aa=function(a,b){var c=[];c.length=16;var e=0,d;for(d=1;15>=d;d++)e=e+Q[d-1]<<1,c[d]=e;for(e=0;e<=b;e++)d=a[e].dl,0!==d&&(a[e].fc=za(c[d]++,d))},ua=function(a){var b=a.dyn_tree,c=a.static_tree,e=a.elems,d,q=-1,g=e;X=0;ba=573;
for(d=0;d<e;d++)0!==b[d].fc?(N[++X]=q=d,U[d]=0):b[d].dl=0;for(;2>X;)d=N[++X]=2>q?++q:0,b[d].fc=1,U[d]=0,Y--,null!==c&&(da-=c[d].dl);a.max_code=q;for(d=X>>1;1<=d;d--)ta(b,d);do d=N[1],N[1]=N[X--],ta(b,1),c=N[1],N[--ba]=d,N[--ba]=c,b[g].fc=b[d].fc+b[c].fc,U[g]=U[d]>U[c]+1?U[d]:U[c]+1,b[d].dl=b[c].dl=g,N[1]=g++,ta(b,1);while(2<=X);N[--ba]=N[1];g=a.dyn_tree;d=a.extra_bits;var e=a.extra_base,c=a.max_code,h=a.max_length,t=a.static_tree,m,f,s,o,l=0;for(f=0;15>=f;f++)Q[f]=0;g[N[ba]].dl=0;for(a=ba+1;573>a;a++)if(m=
N[a],f=g[g[m].dl].dl+1,f>h&&(f=h,l++),g[m].dl=f,!(m>c))Q[f]++,s=0,m>=e&&(s=d[m-e]),o=g[m].fc,Y+=o*(f+s),null!==t&&(da+=o*(t[m].dl+s));if(0!==l){do{for(f=h-1;0===Q[f];)f--;Q[f]--;Q[f+1]+=2;Q[h]--;l-=2}while(0<l);for(f=h;0!==f;f--)for(m=Q[f];0!==m;)d=N[--a],d>c||(g[d].dl!==f&&(Y+=(f-g[d].dl)*g[d].fc,g[d].fc=f),m--)}Aa(b,q)},Ba=function(a,b){var c,e=-1,d,g=a[0].dl,q=0,h=7,f=4;0===g&&(h=138,f=3);a[b+1].dl=65535;for(c=0;c<=b;c++)if(d=g,g=a[c+1].dl,!(++q<h&&d===g))(q<f?H[d].fc+=q:0!==d?(d!==e&&H[d].fc++,
H[16].fc++):10>=q?H[17].fc++:H[18].fc++,q=0,e=d,0===g)?(h=138,f=3):d===g?(h=6,f=3):(h=7,f=4)},Ca=function(){8<w?na(C):0<w&&ma(C);w=C=0},Da=function(a,b){var c,e=0,d=0,g=0,q=0,h,f;if(0!==S){do{0===(e&7)&&(q=fa[g++]);c=p[e++]&255;if(0===(q&1))Z(c,a);else if(h=ca[c],Z(h+256+1,a),f=ra[h],0!==f&&(c-=ia[h],T(c,f)),c=o[d++],h=(256>c?$[c]:$[256+(c>>7)])&255,Z(h,b),f=ga[h],0!==f)c-=ea[h],T(c,f);q>>=1}while(e<S)}Z(256,a)},Ea=function(a,b){var c,e=-1,d,g=a[0].dl,q=0,h=7,f=4;0===g&&(h=138,f=3);for(c=0;c<=b;c++)if(d=
g,g=a[c+1].dl,!(++q<h&&d===g)){if(q<f){do Z(d,H);while(0!==--q)}else 0!==d?(d!==e&&(Z(d,H),q--),Z(16,H),T(q-3,2)):10>=q?(Z(17,H),T(q-3,3)):(Z(18,H),T(q-11,7));q=0;e=d;0===g?(h=138,f=3):d===g?(h=6,f=3):(h=7,f=4)}},Fa=function(){var a;for(a=0;286>a;a++)G[a].fc=0;for(a=0;30>a;a++)I[a].fc=0;for(a=0;19>a;a++)H[a].fc=0;G[256].fc=1;V=S=ja=aa=Y=da=0;L=1},pa=function(a){var c,b,e,d;d=r-v;fa[aa]=V;ua(K);ua(E);Ba(G,K.max_code);Ba(I,E.max_code);ua(W);for(e=18;3<=e&&0===H[va[e]].dl;e--);Y+=3*(e+1)+14;c=Y+3+7>>
3;b=da+3+7>>3;b<=c&&(c=b);if(d+4<=c&&0<=v){T(0+a,3);Ca();na(d);na(~d);for(e=0;e<d;e++)ma(h[v+e])}else if(b===c)T(2+a,3),Da(M,P);else{T(4+a,3);d=K.max_code+1;c=E.max_code+1;e+=1;T(d-257,5);T(c-1,5);T(e-4,4);for(b=0;b<e;b++)T(H[va[b]].dl,3);Ea(G,d-1);Ea(I,c-1);Da(G,I)}Fa();0!==a&&Ca()},Ga=function(c,d,q){var g,h,t;for(g=0;null!==a&&g<q;){h=q-g;h>a.len&&(h=a.len);for(t=0;t<h;t++)c[d+g+t]=a.ptr[a.off+t];a.off+=h;a.len-=h;g+=h;0===a.len&&(h=a,a=a.next,h.next=b,b=h)}if(g===q)return g;if(m<f){h=q-g;h>f-
m&&(h=f-m);for(t=0;t<h;t++)c[d+g+t]=e[m+t];m+=h;g+=h;f===m&&(f=m=0)}return g},Ia=function(c,b,e){var d;if(!l){if(!t){w=C=0;var o,p;if(0===P[0].dl){K.dyn_tree=G;K.static_tree=M;K.extra_bits=ra;K.extra_base=257;K.elems=286;K.max_length=15;K.max_code=0;E.dyn_tree=I;E.static_tree=P;E.extra_bits=ga;E.extra_base=0;E.elems=30;E.max_length=15;E.max_code=0;W.dyn_tree=H;W.static_tree=null;W.extra_bits=Ha;W.extra_base=0;W.elems=19;W.max_length=7;for(p=o=W.max_code=0;28>p;p++){ia[p]=o;for(d=0;d<1<<ra[p];d++)ca[o++]=
p}ca[o-1]=p;for(p=o=0;16>p;p++){ea[p]=o;for(d=0;d<1<<ga[p];d++)$[o++]=p}for(o>>=7;30>p;p++){ea[p]=o<<7;for(d=0;d<1<<ga[p]-7;d++)$[256+o++]=p}for(d=0;15>=d;d++)Q[d]=0;for(d=0;143>=d;)M[d++].dl=8,Q[8]++;for(;255>=d;)M[d++].dl=9,Q[9]++;for(;279>=d;)M[d++].dl=7,Q[7]++;for(;287>=d;)M[d++].dl=8,Q[8]++;Aa(M,287);for(d=0;30>d;d++)P[d].dl=5,P[d].fc=za(d,5);Fa()}for(d=0;8192>d;d++)z[32768+d]=0;O=la[R].max_lazy;y=la[R].good_length;F=la[R].max_chain;v=r=0;q=xa(h,0,65536);if(0>=q)t=!0,q=0;else{for(t=!1;262>q&&
!t;)sa();for(d=A=0;2>d;d++)A=(A<<5^h[d]&255)&8191}a=null;m=f=0;3>=R?(J=2,u=0):(u=2,x=0);g=!1}l=!0;if(0===q)return g=!0,0}if((d=Ga(c,b,e))===e)return e;if(g)return d;if(3>=R)for(;0!==q&&null===a;){oa();0!==B&&32506>=r-B&&(u=ya(B),u>q&&(u=q));if(3<=u)if(p=ha(r-s,u-3),q-=u,u<=O){u--;do r++,oa();while(0!==--u);r++}else r+=u,u=0,A=h[r]&255,A=(A<<5^h[r+1]&255)&8191;else p=ha(0,h[r]&255),q--,r++;p&&(pa(0),v=r);for(;262>q&&!t;)sa()}else for(;0!==q&&null===a;){oa();J=u;D=s;u=2;0!==B&&(J<O&&32506>=r-B)&&(u=
ya(B),u>q&&(u=q),3===u&&4096<r-s&&u--);if(3<=J&&u<=J){p=ha(r-1-D,J-3);q-=J-1;J-=2;do r++,oa();while(0!==--J);x=0;u=2;r++;p&&(pa(0),v=r)}else 0!==x?ha(0,h[r-1]&255)&&(pa(0),v=r):x=1,r++,q--;for(;262>q&&!t;)sa()}0===q&&(0!==x&&ha(0,h[r-1]&255),pa(1),g=!0);return d+Ga(c,d+b,e-d)};this.deflate=function(g,q){var f,m;ka=g;qa=0;"undefined"===String(typeof q)&&(q=6);(f=q)?1>f?f=1:9<f&&(f=9):f=6;R=f;t=l=!1;if(null===e){b=a=d=null;e=[];e.length=c;h=[];h.length=65536;o=[];o.length=8192;p=[];p.length=32832;z=
[];z.length=65536;G=[];G.length=573;for(f=0;573>f;f++)G[f]=new j;I=[];I.length=61;for(f=0;61>f;f++)I[f]=new j;M=[];M.length=288;for(f=0;288>f;f++)M[f]=new j;P=[];P.length=30;for(f=0;30>f;f++)P[f]=new j;H=[];H.length=39;for(f=0;39>f;f++)H[f]=new j;K=new n;E=new n;W=new n;Q=[];Q.length=16;N=[];N.length=573;U=[];U.length=573;ca=[];ca.length=256;$=[];$.length=512;ia=[];ia.length=29;ea=[];ea.length=30;fa=[];fa.length=1024}for(var s=Array(1024),F=[];0<(f=Ia(s,0,s.length));){var i=[];i.length=f;for(m=0;m<
f;m++)i[m]=String.fromCharCode(s[m]);F[F.length]=i.join("")}ka=null;return F.join("")}};
// Input 5
core.ByteArray=function(j){this.pos=0;this.data=j;this.readUInt32LE=function(){var j=this.data,k=this.pos+=4;return j[--k]<<24|j[--k]<<16|j[--k]<<8|j[--k]};this.readUInt16LE=function(){var j=this.data,k=this.pos+=2;return j[--k]<<8|j[--k]}};
// Input 6
core.ByteArrayWriter=function(j){var n=this,k=new runtime.ByteArray(0);this.appendByteArrayWriter=function(i){k=runtime.concatByteArrays(k,i.getByteArray())};this.appendByteArray=function(i){k=runtime.concatByteArrays(k,i)};this.appendArray=function(i){k=runtime.concatByteArrays(k,runtime.byteArrayFromArray(i))};this.appendUInt16LE=function(i){n.appendArray([i&255,i>>8&255])};this.appendUInt32LE=function(i){n.appendArray([i&255,i>>8&255,i>>16&255,i>>24&255])};this.appendString=function(i){k=runtime.concatByteArrays(k,
runtime.byteArrayFromString(i,j))};this.getLength=function(){return k.length};this.getByteArray=function(){return k}};
// Input 7
core.RawInflate=function(){var j,n,k=null,i,c,b,a,d,l,e,f,m,g,h,o,p,z,C=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],w=[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],v=[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],A=[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],B=[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],D=[16,17,18,
0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=function(){this.list=this.next=null},u=function(){this.n=this.b=this.e=0;this.t=null},J=function(a,c,b,d,e,g){this.BMAX=16;this.N_MAX=288;this.status=0;this.root=null;this.m=0;var q=Array(this.BMAX+1),h,f,m,t,o,s,p,l=Array(this.BMAX+1),F,i,j,w=new u,k=Array(this.BMAX);t=Array(this.N_MAX);var z,C=Array(this.BMAX+1),n,r,O;O=this.root=null;for(o=0;o<q.length;o++)q[o]=0;for(o=0;o<l.length;o++)l[o]=0;for(o=0;o<k.length;o++)k[o]=null;for(o=0;o<t.length;o++)t[o]=
0;for(o=0;o<C.length;o++)C[o]=0;h=256<c?a[256]:this.BMAX;F=a;i=0;o=c;do q[F[i]]++,i++;while(0<--o);if(q[0]==c)this.root=null,this.status=this.m=0;else{for(s=1;s<=this.BMAX&&0==q[s];s++);p=s;g<s&&(g=s);for(o=this.BMAX;0!=o&&0==q[o];o--);m=o;g>o&&(g=o);for(n=1<<s;s<o;s++,n<<=1)if(0>(n-=q[s])){this.status=2;this.m=g;return}if(0>(n-=q[o]))this.status=2,this.m=g;else{q[o]+=n;C[1]=s=0;F=q;i=1;for(j=2;0<--o;)C[j++]=s+=F[i++];F=a;o=i=0;do if(0!=(s=F[i++]))t[C[s]++]=o;while(++o<c);c=C[m];C[0]=o=0;F=t;i=0;
t=-1;z=l[0]=0;j=null;for(r=0;p<=m;p++)for(a=q[p];0<a--;){for(;p>z+l[1+t];){z+=l[1+t];t++;r=(r=m-z)>g?g:r;if((f=1<<(s=p-z))>a+1){f-=a+1;for(j=p;++s<r&&!((f<<=1)<=q[++j]);)f-=q[j]}z+s>h&&z<h&&(s=h-z);r=1<<s;l[1+t]=s;j=Array(r);for(f=0;f<r;f++)j[f]=new u;O=null==O?this.root=new x:O.next=new x;O.next=null;O.list=j;k[t]=j;0<t&&(C[t]=o,w.b=l[t],w.e=16+s,w.t=j,s=(o&(1<<z)-1)>>z-l[t],k[t-1][s].e=w.e,k[t-1][s].b=w.b,k[t-1][s].n=w.n,k[t-1][s].t=w.t)}w.b=p-z;i>=c?w.e=99:F[i]<b?(w.e=256>F[i]?16:15,w.n=F[i++]):
(w.e=e[F[i]-b],w.n=d[F[i++]-b]);f=1<<p-z;for(s=o>>z;s<r;s+=f)j[s].e=w.e,j[s].b=w.b,j[s].n=w.n,j[s].t=w.t;for(s=1<<p-1;0!=(o&s);s>>=1)o^=s;for(o^=s;(o&(1<<z)-1)!=C[t];)z-=l[t],t--}this.m=l[1];this.status=0!=n&&1!=m?1:0}}},r=function(c){for(;a<c;){var d=b,e;e=p.length==z?-1:p[z++];b=d|e<<a;a+=8}},s=function(a){return b&C[a]},t=function(c){b>>=c;a-=c},q=function(a,c,b){var q,p,l;if(0==b)return 0;for(l=0;;){r(h);p=m.list[s(h)];for(q=p.e;16<q;){if(99==q)return-1;t(p.b);q-=16;r(q);p=p.t[s(q)];q=p.e}t(p.b);
if(16==q)n&=32767,a[c+l++]=j[n++]=p.n;else{if(15==q)break;r(q);e=p.n+s(q);t(q);r(o);p=g.list[s(o)];for(q=p.e;16<q;){if(99==q)return-1;t(p.b);q-=16;r(q);p=p.t[s(q)];q=p.e}t(p.b);r(q);f=n-p.n-s(q);for(t(q);0<e&&l<b;)e--,f&=32767,n&=32767,a[c+l++]=j[n++]=j[f++]}if(l==b)return b}d=-1;return l},F,O=function(a,c,b){var d,e,f,p,l,F,i,j=Array(316);for(d=0;d<j.length;d++)j[d]=0;r(5);F=257+s(5);t(5);r(5);i=1+s(5);t(5);r(4);d=4+s(4);t(4);if(286<F||30<i)return-1;for(e=0;e<d;e++)r(3),j[D[e]]=s(3),t(3);for(;19>
e;e++)j[D[e]]=0;h=7;e=new J(j,19,19,null,null,h);if(0!=e.status)return-1;m=e.root;h=e.m;p=F+i;for(d=f=0;d<p;)if(r(h),l=m.list[s(h)],e=l.b,t(e),e=l.n,16>e)j[d++]=f=e;else if(16==e){r(2);e=3+s(2);t(2);if(d+e>p)return-1;for(;0<e--;)j[d++]=f}else{17==e?(r(3),e=3+s(3),t(3)):(r(7),e=11+s(7),t(7));if(d+e>p)return-1;for(;0<e--;)j[d++]=0;f=0}h=9;e=new J(j,F,257,w,v,h);0==h&&(e.status=1);if(0!=e.status)return-1;m=e.root;h=e.m;for(d=0;d<i;d++)j[d]=j[d+F];o=6;e=new J(j,i,0,A,B,o);g=e.root;o=e.m;return 0==o&&
257<F||0!=e.status?-1:q(a,c,b)};this.inflate=function(C,y){null==j&&(j=Array(65536));a=b=n=0;d=-1;l=!1;e=f=0;m=null;p=C;z=0;var G=new runtime.ByteArray(y);a:{var u,D;for(u=0;u<y&&!(l&&-1==d);){if(0<e){if(0!=d)for(;0<e&&u<y;)e--,f&=32767,n&=32767,G[0+u++]=j[n++]=j[f++];else{for(;0<e&&u<y;)e--,n&=32767,r(8),G[0+u++]=j[n++]=s(8),t(8);0==e&&(d=-1)}if(u==y)break}if(-1==d){if(l)break;r(1);0!=s(1)&&(l=!0);t(1);r(2);d=s(2);t(2);m=null;e=0}switch(d){case 0:D=G;var P=0+u,x=y-u,K=void 0,K=a&7;t(K);r(16);K=s(16);
t(16);r(16);if(K!=(~b&65535))D=-1;else{t(16);e=K;for(K=0;0<e&&K<x;)e--,n&=32767,r(8),D[P+K++]=j[n++]=s(8),t(8);0==e&&(d=-1);D=K}break;case 1:if(null!=m)D=q(G,0+u,y-u);else b:{D=G;P=0+u;x=y-u;if(null==k){for(var E=void 0,K=Array(288),E=void 0,E=0;144>E;E++)K[E]=8;for(;256>E;E++)K[E]=9;for(;280>E;E++)K[E]=7;for(;288>E;E++)K[E]=8;c=7;E=new J(K,288,257,w,v,c);if(0!=E.status){alert("HufBuild error: "+E.status);D=-1;break b}k=E.root;c=E.m;for(E=0;30>E;E++)K[E]=5;F=5;E=new J(K,30,0,A,B,F);if(1<E.status){k=
null;alert("HufBuild error: "+E.status);D=-1;break b}i=E.root;F=E.m}m=k;g=i;h=c;o=F;D=q(D,P,x)}break;case 2:D=null!=m?q(G,0+u,y-u):O(G,0+u,y-u);break;default:D=-1}if(-1==D)break a;u+=D}}p=null;return G}};
// Input 8
core.Cursor=function(j,n){function k(c,a){for(var d=a;d&&d!==c;)d=d.parentNode;return d||a}function i(){var b,a,d;if(c.parentNode){a=0;for(b=c.parentNode.firstChild;b&&b!==c;)a+=1,b=b.nextSibling;c.previousSibling&&(3===c.previousSibling.nodeType&&c.nextSibling&&3===c.nextSibling.nodeType)&&(d=c.nextSibling,c.previousSibling.appendData(d.nodeValue));for(b=0;b<j.rangeCount;b+=1){var l=j.getRangeAt(b),e=a,f=void 0,m=void 0,f=c.parentNode,m=k(c,l.startContainer);k(c,l.endContainer);m===c?l.setStart(f,
e):m===f&&l.startOffset>e&&l.setStart(f,l.startOffset-1);l.endContainer===c?l.setEnd(f,e):l.endContainer===f&&l.endOffset>e&&l.setEnd(f,l.endOffset-1)}if(d){for(b=0;b<j.rangeCount;b+=1){var l=j.getRangeAt(b),e=c.previousSibling,f=d,m=a,g=e.length-f.length;l.startContainer===f?l.setStart(e,g+l.startOffset):l.startContainer===e.parentNode&&l.startOffset===m&&l.setStart(e,g);l.endContainer===f?l.setEnd(e,g+l.endOffset):l.endContainer===e.parentNode&&l.endOffset===m&&l.setEnd(e,g)}d.parentNode.removeChild(d)}c.parentNode.removeChild(c)}}
var c;c=n.createElementNS("urn:webodf:names:cursor","cursor");this.getNode=function(){return c};this.updateToSelection=function(){i();if(j.focusNode){var b=j.focusNode,a=j.focusOffset;if(3===b.nodeType){var d,l,e,f;f=b.parentNode;0===a?f.insertBefore(c,b):a===b.length?f.appendChild(c):(d=b.length,l=b.nextSibling,e=n.createTextNode(b.substringData(a,d)),b.deleteData(a,d),l?f.insertBefore(e,l):f.appendChild(e),f.insertBefore(c,e))}else if(9!==b.nodeType){for(d=b.firstChild;d&&a;)d=d.nextSibling,a-=
1;b.insertBefore(c,d)}}};this.remove=function(){i()}};
// Input 9
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 j(c){i+=1;runtime.log("fail",c)}function n(c,b){var a;try{if(c.length!==b.length)return!1;for(a=0;a<c.length;a+=1)if(c[a]!==b[a])return!1}catch(d){return!1}return!0}function k(c,b,a){("string"!==typeof b||"string"!==typeof a)&&runtime.log("WARN: shouldBe() expects string arguments");var d,l;try{l=eval(b)}catch(e){d=e}c=eval(a);d?j(b+" should be "+c+". Threw exception "+d):(0===c?l===c&&1/l===1/c:l===c||("number"===typeof c&&isNaN(c)?"number"===typeof l&&isNaN(l):
Object.prototype.toString.call(c)===Object.prototype.toString.call([])&&n(l,c)))?runtime.log("pass",b+" is "+a):String(typeof l)===String(typeof c)?(a=0===l&&0>1/l?"-0":String(l),j(b+" should be "+c+". Was "+a+".")):j(b+" should be "+c+" (of type "+typeof c+"). Was "+l+" (of type "+typeof l+").")}var i=0;this.shouldBeNull=function(c,b){k(c,b,"null")};this.shouldBeNonNull=function(c,b){var a,d;try{d=eval(b)}catch(l){a=l}a?j(b+" should be non-null. Threw exception "+a):null!==d?runtime.log("pass",b+
" is non-null."):j(b+" should be non-null. Was "+d)};this.shouldBe=k;this.countFailedTests=function(){return i}};
core.UnitTester=function(){var j=0,n={};this.runTests=function(k,i){function c(a){if(0===a.length)n[b]=e,j+=d.countFailedTests(),i();else{m=a[0];var g=Runtime.getFunctionName(m);runtime.log("Running "+g);h=d.countFailedTests();l.setUp();m(function(){l.tearDown();e[g]=h===d.countFailedTests();c(a.slice(1))})}}var b=Runtime.getFunctionName(k),a,d=new core.UnitTestRunner,l=new k(d),e={},f,m,g,h;if(b.hasOwnProperty(n))runtime.log("Test "+b+" has already run.");else{runtime.log("Running "+b+": "+l.description());
g=l.tests();for(f=0;f<g.length;f+=1)m=g[f],a=Runtime.getFunctionName(m),runtime.log("Running "+a),h=d.countFailedTests(),l.setUp(),m(),l.tearDown(),e[a]=h===d.countFailedTests();c(l.asyncTests())}};this.countFailedTests=function(){return j};this.results=function(){return n}};
// Input 10
core.PointWalker=function(j){function n(a){for(var c=-1;a;)a=a.previousSibling,c+=1;return c}var k=j,i=null,c=j&&j.firstChild,b=0;this.setPoint=function(a,d){k=a;b=d;if(3===k.nodeType)i=c=null;else{for(c=k.firstChild;d;)d-=1,c=c.nextSibling;i=c?c.previousSibling:k.lastChild}};this.stepForward=function(){var a;return 3===k.nodeType&&(a="number"===typeof k.nodeValue.length?k.nodeValue.length:k.nodeValue.length(),b<a)?(b+=1,!0):c?(1===c.nodeType?(k=c,i=null,c=k.firstChild,b=0):3===c.nodeType?(k=c,c=
i=null,b=0):(i=c,c=c.nextSibling,b+=1),!0):k!==j?(i=k,c=i.nextSibling,k=k.parentNode,b=n(i)+1,!0):!1};this.stepBackward=function(){var a;return 3===k.nodeType&&0<b?(b-=1,!0):i?(1===i.nodeType?(k=i,i=k.lastChild,c=null,b=n(i)+1):3===i.nodeType?(k=i,c=i=null,b=k.nodeValue.length,"number"!==typeof b&&(a=b,b=a.call(k.nodeValue))):(c=i,i=i.previousSibling,b-=1),!0):k!==j?(c=k,i=c.previousSibling,k=k.parentNode,b=n(c),!0):!1};this.node=function(){return k};this.position=function(){return b};this.precedingSibling=
function(){return i};this.followingSibling=function(){return c}};
// Input 11
core.Async=function(){this.forEach=function(j,n,k){function i(c){a!==b&&(c?(a=b,k(c)):(a+=1,a===b&&k(null)))}var c,b=j.length,a=0;for(c=0;c<b;c+=1)n(j[c],i)}};
// Input 12
runtime.loadClass("core.RawInflate");runtime.loadClass("core.ByteArray");runtime.loadClass("core.ByteArrayWriter");runtime.loadClass("core.Base64");
core.Zip=function(j,n){function k(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,d,e=a.length,g=0,g=0;b=-1;for(d=0;d<e;d+=1)g=(b^a[d])&255,g=c[g],b=b>>>8^g;return b^-1}function i(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,d,e,g,f,o,p,l=this;this.load=function(c){if(void 0!==l.data)c(null,l.data);else{var b=f+34+d+e+256;b+p>m&&(b=m-p);runtime.read(a,p,b,function(b,d){if(b||null===d)c(b,d);else a:{var e=d,s=new core.ByteArray(e),m=s.readUInt32LE(),p;if(67324752!==m)c("File entry signature is wrong."+m.toString()+" "+e.length.toString(),null);else{s.pos+=22;m=s.readUInt16LE();p=s.readUInt16LE();s.pos+=m+p;if(g){e=e.slice(s.pos,s.pos+f);if(f!==e.length){c("The amount of compressed bytes read was "+e.length.toString()+
" instead of "+f.toString()+" for "+l.filename+" in "+a+".",null);break a}e=h(e,o)}else e=e.slice(s.pos,s.pos+o);o!==e.length?c("The amount of bytes read was "+e.length.toString()+" instead of "+o.toString()+" for "+l.filename+" in "+a+".",null):(l.data=e,c(null,e))}}})}};this.set=function(a,c,b,d){l.filename=a;l.data=c;l.compressed=b;l.date=d};this.error=null;c&&(b=c.readUInt32LE(),33639248!==b?this.error="Central directory entry has wrong signature at position "+(c.pos-4).toString()+' for file "'+
a+'": '+c.data.length.toString():(c.pos+=6,g=c.readUInt16LE(),b=c.readUInt32LE(),this.date=new Date((b>>25&127)+1980,(b>>21&15)-1,b>>16&31,b>>11&15,b>>5&63,(b&31)<<1),c.readUInt32LE(),f=c.readUInt32LE(),o=c.readUInt32LE(),d=c.readUInt16LE(),e=c.readUInt16LE(),b=c.readUInt16LE(),c.pos+=8,p=c.readUInt32LE(),this.filename=runtime.byteArrayToString(c.data.slice(c.pos,c.pos+d),"utf8"),c.pos+=d+e+b))}function b(a,c){var b=null,d,e;for(e=0;e<f.length;e+=1)if(d=f[e],d.filename===a){b=d;break}b?b.data?c(null,
b.data):b.load(c):c(a+" not found.",null)}function a(a){var c=new core.ByteArrayWriter("utf8"),b=0;c.appendArray([80,75,3,4,20,0,0,0,0,0]);a.data&&(b=a.data.length);c.appendUInt32LE(i(a.date));c.appendUInt32LE(k(a.data));c.appendUInt32LE(b);c.appendUInt32LE(b);c.appendUInt16LE(a.filename.length);c.appendUInt16LE(0);c.appendString(a.filename);a.data&&c.appendByteArray(a.data);return c}function d(a,c){var b=new core.ByteArrayWriter("utf8"),d=0;b.appendArray([80,75,1,2,20,0,20,0,0,0,0,0]);a.data&&(d=
a.data.length);b.appendUInt32LE(i(a.date));b.appendUInt32LE(k(a.data));b.appendUInt32LE(d);b.appendUInt32LE(d);b.appendUInt16LE(a.filename.length);b.appendArray([0,0,0,0,0,0,0,0,0,0,0,0]);b.appendUInt32LE(c);b.appendString(a.filename);return b}function l(a,c){if(a===f.length)c(null);else{var b=f[a];void 0!==b.data?l(a+1,c):b.load(function(b){b?c(b):l(a+1,c)})}}function e(c,b){l(0,function(e){if(e)b(e);else{var e=new core.ByteArrayWriter("utf8"),g,h,o,m=[0];for(g=0;g<f.length;g+=1)e.appendByteArrayWriter(a(f[g])),
m.push(e.getLength());o=e.getLength();for(g=0;g<f.length;g+=1)h=f[g],e.appendByteArrayWriter(d(h,m[g]));g=e.getLength()-o;e.appendArray([80,75,5,6,0,0,0,0]);e.appendUInt16LE(f.length);e.appendUInt16LE(f.length);e.appendUInt32LE(g);e.appendUInt32LE(o);e.appendArray([0,0]);runtime.writeFile(c,e.getByteArray(),b)}})}var f,m,g,h=(new core.RawInflate).inflate,o=this,p=new core.Base64;this.load=b;this.save=function(a,b,e,d){var g,h;for(g=0;g<f.length;g+=1)if(h=f[g],h.filename===a){h.set(a,b,e,d);return}h=
new c(j);h.set(a,b,e,d);f.push(h)};this.write=function(a){e(j,a)};this.writeAs=e;this.loadContentXmlAsFragments=function(a,c){o.loadAsString(a,function(a,b){if(a)return c.rootElementReady(a);c.rootElementReady(null,b,!0)})};this.loadAsString=function(a,c){b(a,function(a,b){if(a||null===b)return c(a,null);var e=runtime.byteArrayToString(b,"utf8");c(null,e)})};this.loadAsDOM=function(a,c){o.loadAsString(a,function(a,b){if(a||null===b)c(a,null);else{var e=(new DOMParser).parseFromString(b,"text/xml");
c(null,e)}})};this.loadAsDataURL=function(a,c,e){b(a,function(a,b){if(a)return e(a,null);var d=0,g;c||(c=80===b[1]&&78===b[2]&&71===b[3]?"image/png":255===b[0]&&216===b[1]&&255===b[2]?"image/jpeg":71===b[0]&&73===b[1]&&70===b[2]?"image/gif":"");for(g="data:"+c+";base64,";d<b.length;)g+=p.convertUTF8ArrayToBase64(b.slice(d,Math.min(d+45E3,b.length))),d+=45E3;e(null,g)})};this.getEntries=function(){return f.slice()};m=-1;null===n?f=[]:runtime.getFileSize(j,function(a){m=a;0>m?n("File '"+j+"' cannot be read.",
o):runtime.read(j,m-22,22,function(a,b){if(a||null===n||null===b)n(a,o);else if(22!==b.length)n("Central directory length should be 22.",o);else{var e=new core.ByteArray(b),d;d=e.readUInt32LE();101010256!==d?n("Central directory signature is wrong: "+d.toString(),o):(d=e.readUInt16LE(),0!==d?n("Zip files with non-zero disk numbers are not supported.",o):(d=e.readUInt16LE(),0!==d?n("Zip files with non-zero disk numbers are not supported.",o):(d=e.readUInt16LE(),g=e.readUInt16LE(),d!==g?n("Number of entries is inconsistent.",
o):(d=e.readUInt32LE(),e=e.readUInt16LE(),e=m-22-d,runtime.read(j,e,m-e,function(a,b){if(a||null===b)n(a,o);else a:{var e=new core.ByteArray(b),d,h;f=[];for(d=0;d<g;d+=1){h=new c(j,e);if(h.error){n(h.error,o);break a}f[f.length]=h}n(null,o)}})))))}})})};
// Input 13
xmldom.LSSerializerFilter=function(){};
// Input 14
"function"!==typeof Object.create&&(Object.create=function(j){var n=function(){};n.prototype=j;return new n});
xmldom.LSSerializer=function(){function j(k,i){var c="",b=Object.create(k),a=n.filter?n.filter.acceptNode(i):1,d;if(1===a){d="";var l=i.attributes,e,f,m,g="",h;if(l){b[i.namespaceURI]!==i.prefix&&(b[i.namespaceURI]=i.prefix);d+="<"+i.nodeName;e=l.length;for(f=0;f<e;f+=1)if(m=l.item(f),"http://www.w3.org/2000/xmlns/"!==m.namespaceURI&&(h=n.filter?n.filter.acceptNode(m):1,1===h)){if(m.namespaceURI){h=m.prefix;var o=m.namespaceURI;b.hasOwnProperty(o)?h=b[o]+":":(b[o]!==h&&(b[o]=h),h+=":")}else h="";
g+=" "+(h+m.localName+'="'+m.nodeValue+'"')}for(f in b)b.hasOwnProperty(f)&&((h=b[f])?"xmlns"!==h&&(d+=" xmlns:"+b[f]+'="'+f+'"'):d+=' xmlns="'+f+'"');d+=g+">"}c+=d}if(1===a||3===a){for(d=i.firstChild;d;)c+=j(b,d),d=d.nextSibling;i.nodeValue&&(c+=i.nodeValue)}1===a&&(b="",1===i.nodeType&&(b+="</"+i.nodeName+">"),c+=b);return c}var n=this;this.filter=null;this.writeToString=function(k,i){if(!k)return"";var c;if(i){c=i;var b={},a;for(a in c)c.hasOwnProperty(a)&&(b[c[a]]=a);c=b}else c={};return j(c,
k)}};
// Input 15
xmldom.RelaxNGParser=function(){function j(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 n(a){if(2>=a.e.length)return a;var c={name:a.name,e:a.e.slice(0,2)};return n({name:a.name,e:[c].concat(a.e.slice(2))})}function k(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 i(a,c){for(var b=0,d,h,o=a.name;a.e&&b<a.e.length;)if(d=
a.e[b],"ref"===d.name){h=c[d.a.name];if(!h)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(h.e);a.e=a.e.concat(d)}else b+=1,i(d,c);d=a.e;if("choice"===o&&(!d||!d[1]||"empty"===d[1].name))!d||!d[0]||"empty"===d[0].name?(delete a.e,a.name="empty"):(d[1]=d[0],d[0]={name:"empty"});if("group"===o||"interleave"===o)"empty"===d[0].name?"empty"===d[1].name?(delete a.e,a.name="empty"):(o=a.name=d[1].name,a.names=d[1].names,d=a.e=d[1].e):"empty"===d[1].name&&(o=a.name=
d[0].name,a.names=d[0].names,d=a.e=d[0].e);"oneOrMore"===o&&"empty"===d[0].name&&(delete a.e,a.name="empty");if("attribute"===o){h=a.names?a.names.length:0;for(var p,l=a.localnames=[h],j=a.namespaces=[h],b=0;b<h;b+=1)p=k(a.names[b]),j[b]=p[0],l[b]=p[1]}"interleave"===o&&("interleave"===d[0].name?a.e="interleave"===d[1].name?d[0].e.concat(d[1].e):[d[1]].concat(d[0].e):"interleave"===d[1].name&&(a.e=[d[0]].concat(d[1].e)))}function c(a,b){for(var d=0,g;a.e&&d<a.e.length;)g=a.e[d],"elementref"===g.name?
(g.id=g.id||0,a.e[d]=b[g.id]):"element"!==g.name&&c(g,b),d+=1}var b=this,a,d={"http://www.w3.org/XML/1998/namespace":"xml"},l;l=function(a,c,b){var g=[],h,o,p=a.localName,j=[];h=a.attributes;var i=p,w=j,v={},A,B;for(A=0;A<h.length;A+=1)if(B=h.item(A),B.namespaceURI)"http://www.w3.org/2000/xmlns/"===B.namespaceURI&&(d[B.value]=B.localName);else{"name"===B.localName&&("element"===i||"attribute"===i)&&w.push(B.value);if("name"===B.localName||"combine"===B.localName||"type"===B.localName){var D=B,x;x=
B.value;x=x.replace(/^\s\s*/,"");for(var u=/\s/,J=x.length-1;u.test(x.charAt(J));)J-=1;x=x.slice(0,J+1);D.value=x}v[B.localName]=B.value}h=v;h.combine=h.combine||void 0;a=a.firstChild;i=g;w=j;for(v="";a;){if(1===a.nodeType&&"http://relaxng.org/ns/structure/1.0"===a.namespaceURI){if(A=l(a,c,i))"name"===A.name?w.push(d[A.a.ns]+":"+A.text):"choice"===A.name&&(A.names&&A.names.length)&&(w=w.concat(A.names),delete A.names),i.push(A)}else 3===a.nodeType&&(v+=a.nodeValue);a=a.nextSibling}a=v;"value"!==p&&
"param"!==p&&(a=/^\s*([\s\S]*\S)?\s*$/.exec(a)[1]);"value"===p&&void 0===h.type&&(h.type="token",h.datatypeLibrary="");if(("attribute"===p||"element"===p)&&void 0!==h.name)o=k(h.name),g=[{name:"name",text:o[1],a:{ns:o[0]}}].concat(g),delete h.name;"name"===p||"nsName"===p||"value"===p?void 0===h.ns&&(h.ns=""):delete h.ns;"name"===p&&(o=k(a),h.ns=o[0],a=o[1]);if(1<g.length&&("define"===p||"oneOrMore"===p||"zeroOrMore"===p||"optional"===p||"list"===p||"mixed"===p))g=[{name:"group",e:n({name:"group",
e:g}).e}];2<g.length&&"element"===p&&(g=[g[0]].concat({name:"group",e:n({name:"group",e:g.slice(1)}).e}));1===g.length&&"attribute"===p&&g.push({name:"text",text:a});if(1===g.length&&("choice"===p||"group"===p||"interleave"===p))p=g[0].name,j=g[0].names,h=g[0].a,a=g[0].text,g=g[0].e;else if(2<g.length&&("choice"===p||"group"===p||"interleave"===p))g=n({name:p,e:g}).e;"mixed"===p&&(p="interleave",g=[g[0],{name:"text"}]);"optional"===p&&(p="choice",g=[g[0],{name:"empty"}]);"zeroOrMore"===p&&(p="choice",
g=[{name:"oneOrMore",e:[g[0]]},{name:"empty"}]);if("define"===p&&h.combine){a:{i=h.combine;w=h.name;v=g;for(A=0;b&&A<b.length;A+=1)if(B=b[A],"define"===B.name&&B.a&&B.a.name===w){B.e=[{name:i,e:B.e.concat(v)}];b=B;break a}b=null}if(b)return}b={name:p};g&&0<g.length&&(b.e=g);for(o in h)if(h.hasOwnProperty(o)){b.a=h;break}void 0!==a&&(b.text=a);j&&0<j.length&&(b.names=j);"element"===p&&(b.id=c.length,c.push(b),b={name:"elementref",id:b.id});return b};this.parseRelaxNGDOM=function(e,f){var m=[],g=l(e&&
e.documentElement,m,void 0),h,o,p={};for(h=0;h<g.e.length;h+=1)o=g.e[h],"define"===o.name?p[o.a.name]=o:"start"===o.name&&(a=o);if(!a)return[new j("No Relax NG start element was found.")];i(a,p);for(h in p)p.hasOwnProperty(h)&&i(p[h],p);for(h=0;h<m.length;h+=1)i(m[h],p);f&&(b.rootPattern=f(a.e[0],m));c(a,m);for(h=0;h<m.length;h+=1)c(m[h],m);b.start=a;b.elements=m;b.nsmap=d;return null}};
// Input 16
runtime.loadClass("xmldom.RelaxNGParser");
xmldom.RelaxNG=function(){function j(a){var b;return function(){void 0===b&&(b=a());return b}}function n(a,b){var c={},d=0;return function(e){var g=e.hash||e.toString(),h;h=c[g];if(void 0!==h)return h;c[g]=h=b(e);h.hash=a+d.toString();d+=1;return h}}function k(a){var b={};return function(c){var d,e;e=b[c.localName];if(void 0===e)b[c.localName]=e={};else if(d=e[c.namespaceURI],void 0!==d)return d;return e[c.namespaceURI]=d=a(c)}}function i(a,b,c){var d={},e=0;return function(h,g){var f=b&&b(h,g),o,
p;if(void 0!==f)return f;f=h.hash||h.toString();o=g.hash||g.toString();p=d[f];if(void 0===p)d[f]=p={};else if(f=p[o],void 0!==f)return f;p[o]=f=c(h,g);f.hash=a+e.toString();e+=1;return f}}function c(a,b){"choice"===b.p1.type?c(a,b.p1):a[b.p1.hash]=b.p1;"choice"===b.p2.type?c(a,b.p2):a[b.p2.hash]=b.p2}function b(a,c,e,h){if(c===w)return w;if(h>=e.length)return c;0===h&&(h=0);for(var g=e.item(h);g.namespaceURI===d;){h+=1;if(h>=e.length)return c;g=e.item(h)}return g=b(a,c.attDeriv(a,e.item(h)),e,h+1)}
function a(b,c,d){d.e[0].a?(b.push(d.e[0].text),c.push(d.e[0].a.ns)):a(b,c,d.e[0]);d.e[1].a?(b.push(d.e[1].text),c.push(d.e[1].a.ns)):a(b,c,d.e[1])}var d="http://www.w3.org/2000/xmlns/",l,e,f,m,g,h,o,p,z,C,w={type:"notAllowed",nullable:!1,hash:"notAllowed",textDeriv:function(){return w},startTagOpenDeriv:function(){return w},attDeriv:function(){return w},startTagCloseDeriv:function(){return w},endTagDeriv:function(){return w}},v={type:"empty",nullable:!0,hash:"empty",textDeriv:function(){return w},
startTagOpenDeriv:function(){return w},attDeriv:function(){return w},startTagCloseDeriv:function(){return v},endTagDeriv:function(){return w}},A={type:"text",nullable:!0,hash:"text",textDeriv:function(){return A},startTagOpenDeriv:function(){return w},attDeriv:function(){return w},startTagCloseDeriv:function(){return A},endTagDeriv:function(){return w}},B,D,x;l=i("choice",function(a,b){if(a===w)return b;if(b===w||a===b)return a},function(a,b){var d={},e;c(d,{p1:a,p2:b});b=a=void 0;for(e in d)d.hasOwnProperty(e)&&
(void 0===a?a=d[e]:b=void 0===b?d[e]:l(b,d[e]));var h=a,g=b;return{type:"choice",p1:h,p2:g,nullable:h.nullable||g.nullable,textDeriv:function(a,b){return l(h.textDeriv(a,b),g.textDeriv(a,b))},startTagOpenDeriv:k(function(a){return l(h.startTagOpenDeriv(a),g.startTagOpenDeriv(a))}),attDeriv:function(a,b){return l(h.attDeriv(a,b),g.attDeriv(a,b))},startTagCloseDeriv:j(function(){return l(h.startTagCloseDeriv(),g.startTagCloseDeriv())}),endTagDeriv:j(function(){return l(h.endTagDeriv(),g.endTagDeriv())})}});
var u=function(a,b){if(a===w||b===w)return w;if(a===v)return b;if(b===v)return a},J={},r=0;e=function(a,b){var c=u&&u(a,b),d,h;if(void 0!==c)return c;c=a.hash||a.toString();d=b.hash||b.toString();c<d&&(h=c,c=d,d=h,h=a,a=b,b=h);h=J[c];if(void 0===h)J[c]=h={};else if(c=h[d],void 0!==c)return c;var g=a,f=b,c={type:"interleave",p1:g,p2:f,nullable:g.nullable&&f.nullable,textDeriv:function(a,b){return l(e(g.textDeriv(a,b),f),e(g,f.textDeriv(a,b)))},startTagOpenDeriv:k(function(a){return l(B(function(a){return e(a,
f)},g.startTagOpenDeriv(a)),B(function(a){return e(g,a)},f.startTagOpenDeriv(a)))}),attDeriv:function(a,b){return l(e(g.attDeriv(a,b),f),e(g,f.attDeriv(a,b)))},startTagCloseDeriv:j(function(){return e(g.startTagCloseDeriv(),f.startTagCloseDeriv())})};h[d]=c;c.hash="interleave"+r.toString();r+=1;return c};f=i("group",function(a,b){if(a===w||b===w)return w;if(a===v)return b;if(b===v)return a},function(a,b){return{type:"group",p1:a,p2:b,nullable:a.nullable&&b.nullable,textDeriv:function(c,d){var e=f(a.textDeriv(c,
d),b);return a.nullable?l(e,b.textDeriv(c,d)):e},startTagOpenDeriv:function(c){var d=B(function(a){return f(a,b)},a.startTagOpenDeriv(c));return a.nullable?l(d,b.startTagOpenDeriv(c)):d},attDeriv:function(c,d){return l(f(a.attDeriv(c,d),b),f(a,b.attDeriv(c,d)))},startTagCloseDeriv:j(function(){return f(a.startTagCloseDeriv(),b.startTagCloseDeriv())})}});m=i("after",function(a,b){if(a===w||b===w)return w},function(a,b){return{type:"after",p1:a,p2:b,nullable:!1,textDeriv:function(c,d){return m(a.textDeriv(c,
d),b)},startTagOpenDeriv:k(function(c){return B(function(a){return m(a,b)},a.startTagOpenDeriv(c))}),attDeriv:function(c,d){return m(a.attDeriv(c,d),b)},startTagCloseDeriv:j(function(){return m(a.startTagCloseDeriv(),b)}),endTagDeriv:j(function(){return a.nullable?b:w})}});g=n("oneormore",function(a){return a===w?w:{type:"oneOrMore",p:a,nullable:a.nullable,textDeriv:function(b,c){return f(a.textDeriv(b,c),l(this,v))},startTagOpenDeriv:function(b){var c=this;return B(function(a){return f(a,l(c,v))},
a.startTagOpenDeriv(b))},attDeriv:function(b,c){return f(a.attDeriv(b,c),l(this,v))},startTagCloseDeriv:j(function(){return g(a.startTagCloseDeriv())})}});o=i("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)?v:w},startTagCloseDeriv:function(){return w}}});h=n("value",function(a){return{type:"value",nullable:!1,value:a,textDeriv:function(b,c){return c===
a?v:w},attDeriv:function(){return w},startTagCloseDeriv:function(){return this}}});z=n("data",function(a){return{type:"data",nullable:!1,dataType:a,textDeriv:function(){return v},attDeriv:function(){return w},startTagCloseDeriv:function(){return this}}});B=function t(a,b){return"after"===b.type?m(b.p1,a(b.p2)):"choice"===b.type?l(t(a,b.p1),t(a,b.p2)):b};D=function(a,c,d){for(var e=d.currentNode,c=c.startTagOpenDeriv(e),c=b(a,c,e.attributes,0),h=c=c.startTagCloseDeriv(),e=d.currentNode,c=d.firstChild(),
g=[],f;c;)1===c.nodeType?g.push(c):3===c.nodeType&&!/^\s*$/.test(c.nodeValue)&&g.push(c.nodeValue),c=d.nextSibling();0===g.length&&(g=[""]);f=h;for(h=0;f!==w&&h<g.length;h+=1)c=g[h],"string"===typeof c?f=/^\s*$/.test(c)?l(f,f.textDeriv(a,c)):f.textDeriv(a,c):(d.currentNode=c,f=D(a,f,d));d.currentNode=e;return c=f.endTagDeriv()};p=function(b){var c,d,e;if("name"===b.name)c=b.text,d=b.a.ns,b={name:c,ns:d,hash:"{"+d+"}"+c,contains:function(a){return a.namespaceURI===d&&a.localName===c}};else if("choice"===
b.name){c=[];d=[];a(c,d,b);b="";for(e=0;e<c.length;e+=1)b+="{"+d[e]+"}"+c[e]+",";b={hash:b,contains:function(a){var b;for(b=0;b<c.length;b+=1)if(c[b]===a.localName&&d[b]===a.namespaceURI)return!0;return!1}}}else b={hash:"anyName",contains:function(){return!0}};return b};C=function q(a,b){var c,d;if("elementref"===a.name){c=a.id||0;a=b[c];if(void 0!==a.name){var j=a;c=b[j.id]={hash:"element"+j.id.toString()};var i=p(j.e[0]),k=C(j.e[1],b),j={type:"element",nc:i,nullable:!1,textDeriv:function(){return w},
startTagOpenDeriv:function(a){return i.contains(a)?m(k,v):w},attDeriv:function(){return w},startTagCloseDeriv:function(){return this}};for(d in j)j.hasOwnProperty(d)&&(c[d]=j[d]);return c}return a}switch(a.name){case "empty":return v;case "notAllowed":return w;case "text":return A;case "choice":return l(q(a.e[0],b),q(a.e[1],b));case "interleave":c=q(a.e[0],b);for(d=1;d<a.e.length;d+=1)c=e(c,q(a.e[d],b));return c;case "group":return f(q(a.e[0],b),q(a.e[1],b));case "oneOrMore":return g(q(a.e[0],b));
case "attribute":return o(p(a.e[0]),q(a.e[1],b));case "value":return h(a.text);case "data":return c=a.a&&a.a.type,void 0===c&&(c=""),z(c);case "list":return{type:"list",nullable:!1,hash:"list",textDeriv:function(){return v}}}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=C(a,c)};this.validate=function(a,b){var c;a.currentNode=a.root;c=D(null,x,a);c.nullable?b(null):(runtime.log("Error in Relax NG validation: "+c),b(["Error in Relax NG validation: "+
c]))};this.init=function(a){x=a}};
// Input 17
runtime.loadClass("xmldom.RelaxNGParser");
xmldom.RelaxNG2=function(){function j(a,b){this.message=function(){b&&(a+=1===b.nodeType?" Element ":" Node ",a+=b.nodeName,b.nodeValue&&(a+=" with value '"+b.nodeValue+"'"),a+=".");return a}}function n(a,b,l,e){return"empty"===a.name?null:c(a,b,l,e)}function k(a,c){if(2!==a.e.length)throw"Element with wrong # of elements: "+a.e.length;for(var l=c.currentNode,e=l?l.nodeType:0,f=null;1<e;){if(8!==e&&(3!==e||!/^\s+$/.test(c.currentNode.nodeValue)))return[new j("Not allowed node of type "+e+".")];e=
(l=c.nextSibling())?l.nodeType:0}if(!l)return[new j("Missing element "+a.names)];if(a.names&&-1===a.names.indexOf(b[l.namespaceURI]+":"+l.localName))return[new j("Found "+l.nodeName+" instead of "+a.names+".",l)];if(c.firstChild()){for(f=n(a.e[1],c,l);c.nextSibling();)if(e=c.currentNode.nodeType,(!c.currentNode||!(3===c.currentNode.nodeType&&/^\s+$/.test(c.currentNode.nodeValue)))&&8!==e)return[new j("Spurious content.",c.currentNode)];if(c.parentNode()!==l)return[new j("Implementation error.")]}else f=
n(a.e[1],c,l);c.nextSibling();return f}var i,c,b;c=function(a,b,l,e){var f=a.name,m=null;if("text"===f)a:{for(var g=(a=b.currentNode)?a.nodeType:0;a!==l&&3!==g;){if(1===g){m=[new j("Element not allowed here.",a)];break a}g=(a=b.nextSibling())?a.nodeType:0}b.nextSibling();m=null}else if("data"===f)m=null;else if("value"===f)e!==a.text&&(m=[new j("Wrong value, should be '"+a.text+"', not '"+e+"'",l)]);else if("list"===f)m=null;else if("attribute"===f)a:{if(2!==a.e.length)throw"Attribute with wrong # of elements: "+
a.e.length;f=a.localnames.length;for(m=0;m<f;m+=1){e=l.getAttributeNS(a.namespaces[m],a.localnames[m]);""===e&&!l.hasAttributeNS(a.namespaces[m],a.localnames[m])&&(e=void 0);if(void 0!==g&&void 0!==e){m=[new j("Attribute defined too often.",l)];break a}g=e}m=void 0===g?[new j("Attribute not found: "+a.names,l)]:n(a.e[1],b,l,g)}else if("element"===f)m=k(a,b,l);else if("oneOrMore"===f){e=0;do g=b.currentNode,f=c(a.e[0],b,l),e+=1;while(!f&&g!==b.currentNode);1<e?(b.currentNode=g,m=null):m=f}else if("choice"===
f){if(2!==a.e.length)throw"Choice with wrong # of options: "+a.e.length;g=b.currentNode;if("empty"===a.e[0].name){if(f=c(a.e[1],b,l,e))b.currentNode=g;m=null}else{if(f=n(a.e[0],b,l,e))b.currentNode=g,f=c(a.e[1],b,l,e);m=f}}else if("group"===f){if(2!==a.e.length)throw"Group with wrong # of members: "+a.e.length;m=c(a.e[0],b,l)||c(a.e[1],b,l)}else if("interleave"===f)a:{for(var g=a.e.length,e=[g],h=g,o,p,i,C;0<h;){o=0;p=b.currentNode;for(m=0;m<g;m+=1)i=b.currentNode,!0!==e[m]&&e[m]!==i&&(C=a.e[m],(f=
c(C,b,l))?(b.currentNode=i,void 0===e[m]&&(e[m]=!1)):i===b.currentNode||"oneOrMore"===C.name||"choice"===C.name&&("oneOrMore"===C.e[0].name||"oneOrMore"===C.e[1].name)?(o+=1,e[m]=i):(o+=1,e[m]=!0));if(p===b.currentNode&&o===h){m=null;break a}if(0===o){for(m=0;m<g;m+=1)if(!1===e[m]){m=[new j("Interleave does not match.",l)];break a}m=null;break a}for(m=h=0;m<g;m+=1)!0!==e[m]&&(h+=1)}m=null}else throw f+" not allowed in nonEmptyPattern.";return m};this.validate=function(a,b){a.currentNode=a.root;var c=
n(i.e[0],a,a.root);b(c)};this.init=function(a,c){i=a;b=c}};
// Input 18
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 19
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 20
xmldom.XPath=function(){function j(a,b,c){return-1!==a&&(a<b||-1===b)&&(a<c||-1===c)}function n(a){for(var b=[],c=0,d=a.length,e;c<d;){var f=a,l=d,i=b,k="",n=[],D=f.indexOf("[",c),x=f.indexOf("/",c),u=f.indexOf("=",c);j(x,D,u)?(k=f.substring(c,x),c=x+1):j(D,x,u)?(k=f.substring(c,D),c=m(f,D,n)):j(u,x,D)?(k=f.substring(c,u),c=u):(k=f.substring(c,l),c=l);i.push({location:k,predicates:n});if(c<d&&"="===a[c]){e=a.substring(c+1,d);if(2<e.length&&("'"===e[0]||'"'===e[0]))e=e.slice(1,e.length-1);else try{e=
parseInt(e,10)}catch(J){}c=d}}return{steps:b,value:e}}function k(){}function i(){var a,b=!1;this.setNode=function(b){a=b};this.reset=function(){b=!1};this.next=function(){var c=b?null:a;b=!0;return c}}function c(a,b,c){this.reset=function(){a.reset()};this.next=function(){for(var d=a.next();d&&!(d=d.getAttributeNodeNS(b,c));)d=a.next();return d}}function b(a,b){var c=a.next(),d=null;this.reset=function(){a.reset();c=a.next();d=null};this.next=function(){for(;c;){if(d)if(b&&d.firstChild)d=d.firstChild;
else{for(;!d.nextSibling&&d!==c;)d=d.parentNode;d===c?c=a.next():d=d.nextSibling}else{do(d=c.firstChild)||(c=a.next());while(c&&!d)}if(d&&1===d.nodeType)return d}return null}}function a(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(b,c,d){var c=c.split(":",2),e=d(c[0]),f=c[1];return new a(b,function(a){return a.localName===f&&a.namespaceURI===e})}function l(b,c,d){var e=new i,l=f(e,c,d),j=c.value;return void 0===j?new a(b,function(a){e.setNode(a);
l.reset();return l.next()}):new a(b,function(a){e.setNode(a);l.reset();return(a=l.next())&&a.nodeValue===j})}function e(a,b,c){var d=a.ownerDocument,e=[],e=new i;e.setNode(a);a=n(b);e=f(e,a,c);a=[];for(c=e.next();c;)a.push(c),c=e.next();return e=a}var f,m;m=function(a,b,c){for(var d=b,e=a.length,f=0;d<e;)"]"===a[d]?(f-=1,0>=f&&c.push(n(a.substring(b,d)))):"["===a[d]&&(0>=f&&(b=d+1),f+=1),d+=1;return d};k.prototype.next=function(){};k.prototype.reset=function(){};f=function(a,e,f){var j,i,m,k;for(j=
0;j<e.steps.length;j+=1){m=e.steps[j];i=m.location;""===i?a=new b(a,!1):"@"===i[0]?(k=i.slice(1).split(":",2),a=new c(a,f(k[0]),k[1])):"."!==i&&(a=new b(a,!1),-1!==i.indexOf(":")&&(a=d(a,i,f)));for(i=0;i<m.predicates.length;i+=1)k=m.predicates[i],a=l(a,k,f)}return a};xmldom.XPath=function(){this.getODFElementsWithXPath=e};return xmldom.XPath}();
// Input 21
odf.StyleInfo=function(){function j(a,b){for(var c=n[a.localName],d=c&&c[a.namespaceURI],e=d?d.length:0,i,l,k,c=0;c<e;c+=1)if(i=a.getAttributeNS(d[c].ns,d[c].localname))l=d[c].keygroup,(k=b[l])||(k=b[l]={}),k[i]=1;for(c=a.firstChild;c;)1===c.nodeType&&(d=c,j(d,b)),c=c.nextSibling}var n;this.UsedKeysList=function(a){var b={};this.uses=function(a){var c=a.localName,d=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=b[a])?0<a[d]:!1};j(a,b)};this.canElementHaveStyle=function(a,b){var c=n[b.localName];return(c=c&&c[b.namespaceURI])&&0<c.length};var k={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"}]},i,c,b,a,d,l={},e;for(i in k)if(k.hasOwnProperty(i)){b=k[i];d=b.length;for(c=0;c<d;c+=1)a=b[c],e=l[a.en]=l[a.en]||
{},e=e[a.ens]=e[a.ens]||[],e.push({ns:a.ans,localname:a.a,keygroup:i})}n=l};
// Input 22
odf.Style2CSS=function(){function j(a,b){var c={},d,e,f;if(!b)return c;for(d=b.firstChild;d;){d.namespaceURI===m&&"style"===d.localName?f=d.getAttributeNS(m,"family"):d.namespaceURI===g&&"list-style"===d.localName&&(f="list");if(e=f&&d.getAttributeNS&&d.getAttributeNS(m,"name"))c[f]||(c[f]={}),c[f][e]=d;d=d.nextSibling}return c}function n(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=n(a[c].derivedStyles,b)))return d;return null}function k(a,b,c){var d=
b[a],e,f;d&&((e=d.getAttributeNS(m,"parent-style-name"),f=null,e&&(f=n(c,e),!f&&b[e]&&(k(e,b,c),f=b[e],b[e]=null)),f)?(f.derivedStyles||(f.derivedStyles={}),f.derivedStyles[a]=d):c[a]=d)}function i(a,b){for(var c in a)a.hasOwnProperty(c)&&(k(c,a,b),a[c]=null)}function c(a,b){var c=o[a],d;d="";if(null===c)return null;d="["+c+'|style-name="'+b+'"]';"presentation"===c&&(c="draw",d='[presentation|style-name="'+b+'"]');return d=c+"|"+p[a].join(d+","+c+"|")+d}function b(a,d,e){var f=[],h,g;f.push(c(a,d));
for(h in e.derivedStyles)if(e.derivedStyles.hasOwnProperty(h))for(g in d=b(a,h,e.derivedStyles[h]),d)d.hasOwnProperty(g)&&f.push(d[g]);return f}function a(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 l(a,b,c,d){var b='text|list[text|style-name="'+b+'"]',e=c.getAttributeNS(g,"level"),
c=c.firstChild.firstChild,f,h,i="";c&&(f=c.attributes,h=f["fo:text-indent"].value,f=f["fo:margin-left"].value);h||(h="-0.6cm");c="-"===h.charAt(0)?h.substring(1):"-"+h;for(e=e&&parseInt(e,10);1<e;)b+=" > text|list-item > text|list",e-=1;i=b+" > text|list-item > *:not(text|list):first-child:before{"+d+";counter-increment:list;"+("margin-left:"+h+";")+("width:"+c+";")+"display:inline-block}";try{a.insertRule(b+" > text|list-item > *:not(text|list):first-child{margin-left:"+f+";}",a.cssRules.length),
a.insertRule(i,a.cssRules.length)}catch(l){throw l;}}function e(c,h,i,j){if("list"===h)for(var o=j.firstChild,k,p;o;){if(o.namespaceURI===g)if(k=o,"list-level-style-number"===o.localName){p=k;var n=p.getAttributeNS(m,"num-format"),y=p.getAttributeNS(m,"num-suffix"),G="",G={1:"decimal",a:"lower-latin",A:"upper-latin",i:"lower-roman",I:"upper-roman"},I="",I=p.getAttributeNS(m,"num-prefix")||"",I=G.hasOwnProperty(n)?I+(" counter(list, "+G[n]+")"):n?I+("'"+n+"';"):I+" ''";y&&(I+=" '"+y+"'");p=G="content: "+
I+";";l(c,i,k,p)}else"list-level-style-image"===o.localName?(p="content: none;",l(c,i,k,p)):"list-level-style-bullet"===o.localName&&(p="content: '"+k.getAttributeNS(g,"bullet-char")+"';",l(c,i,k,p));o=o.nextSibling}else{i=b(h,i,j).join(",");k="";if(o=a(j,m,"text-properties")){p=""+d(o,z);n=o.getAttributeNS(m,"text-underline-style");"solid"===n&&(p+="text-decoration: underline;");if(n=o.getAttributeNS(m,"font-name"))(n=u[n])&&(p+="font-family: "+n+";");k+=p}if(o=a(j,m,"paragraph-properties")){p=o;
o=""+d(p,w);p=p.getElementsByTagNameNS(m,"background-image");if(0<p.length&&(n=p.item(0).getAttributeNS(f,"href")))o+="background-image: url('odfkit:"+n+"');",p=p.item(0),o+=d(p,C);k+=o}if(o=a(j,m,"graphic-properties"))o=""+d(o,v),k+=o;if(o=a(j,m,"table-cell-properties"))o=""+d(o,A),k+=o;if(o=a(j,m,"table-row-properties"))o=""+d(o,D),k+=o;if(o=a(j,m,"table-column-properties"))o=""+d(o,B),k+=o;if(o=a(j,m,"table-properties"))o=""+d(o,x),k+=o;"table"===h&&runtime.log(k);if(0!==k.length)try{c.insertRule(i+
"{"+k+"}",c.cssRules.length)}catch(M){throw M;}}for(var P in j.derivedStyles)j.derivedStyles.hasOwnProperty(P)&&e(c,h,P,j.derivedStyles[P])}var f="http://www.w3.org/1999/xlink",m="urn:oasis:names:tc:opendocument:xmlns:style:1.0",g="urn:oasis:names:tc:opendocument:xmlns:text:1.0",h={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:m,svg:"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0",table:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",text:g,xlink:f,xml:"http://www.w3.org/XML/1998/namespace"},o={graphic:"draw",paragraph:"text",presentation:"presentation",ruby:"text",section:"text",table:"table","table-cell":"table","table-column":"table","table-row":"table",text:"text",list:"text"},p={graphic:"circle connected control custom-shape ellipse frame g line measure page page-thumbnail path polygon polyline rect regular-polygon".split(" "),
paragraph:"alphabetical-index-entry-template h illustration-index-entry-template index-source-style object-index-entry-template p table-index-entry-template table-of-content-entry-template user-index-entry-template".split(" "),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"]},z=[["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"]],C=[[m,"repeat","background-repeat"]],
w=[["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"]],v=[["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"]],A=[["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"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","border","border"]],B=[[m,"column-width","width"]],D=[[m,"row-height","height"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","keep-together",null]],x=[[m,"width","width"],["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"]],u={};this.namespaces=h;this.namespaceResolver=function(a){return h[a]||null};this.namespaceResolver.lookupNamespaceURI=this.namespaceResolver;this.style2css=function(a,b,c,d){for(var f,g,l,k,p;a.cssRules.length;)a.deleteRule(a.cssRules.length-1);f=null;c&&(f=c.ownerDocument);d&&(f=d.ownerDocument);
if(f){for(g in h)if(h.hasOwnProperty(g)){k="@namespace "+g+" url("+h[g]+");";try{a.insertRule(k,a.cssRules.length)}catch(n){}}g={};var w;if(b){for(b=b.firstChild;b;){if(1===b.nodeType&&(k=(w=b.getAttributeNS("urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","font-family"))&&b.getAttributeNS(m,"name")))g[k]||(g[k]={}),g[k]=w;b=b.nextSibling}u=g}else u=b;c=j(f,c);g=j(f,d);d={};for(p in o)if(o.hasOwnProperty(p))for(l in f=d[p]={},i(c[p],f),i(g[p],f),f)f.hasOwnProperty(l)&&e(a,p,l,f[l])}}};
// Input 23
runtime.loadClass("core.Base64");runtime.loadClass("xmldom.XPath");runtime.loadClass("odf.Style2CSS");
odf.FontLoader=function(){function j(c,b,a,d,l){var e,f=0,k;for(k in c)c.hasOwnProperty(k)&&(f===a&&(e=k),f+=1);if(!e)return l();b.load(c[e].href,function(f,h){if(f)runtime.log(f);else{var o=d,o=document.styleSheets[0],k="@font-face { font-family: "+c[e].family+"; src: url(data:application/x-font-ttf;charset=binary;base64,"+i.convertUTF8ArrayToBase64(h)+') format("truetype"); }';try{o.insertRule(k,o.cssRules.length)}catch(m){runtime.log("Problem inserting rule in CSS: "+k)}}return j(c,b,a+1,d,l)})}
var n=new odf.Style2CSS,k=new xmldom.XPath,i=new core.Base64;odf.FontLoader=function(){this.loadFonts=function(c,b,a){var d={},i,e,f,m;if(c){c=k.getODFElementsWithXPath(c,"style:font-face[svg:font-face-src]",n.namespaceResolver);for(i=0;i<c.length;i+=1)e=c[i],f=e.getAttributeNS(n.namespaces.style,"name"),m=e.getAttributeNS(n.namespaces.svg,"font-family"),e=k.getODFElementsWithXPath(e,"svg:font-face-src/svg:font-face-uri",n.namespaceResolver),0<e.length&&(e=e[0].getAttributeNS(n.namespaces.xlink,"href"),
d[f]={href:e,family:m})}j(d,b,0,a,function(){})}};return odf.FontLoader}();
// Input 24
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 j(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 n(a){var b,c=f.length;for(b=0;b<c;b+=1)if(a.namespaceURI===e&&a.localName===f[b])return b;return-1}function k(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 i(a,b){if(b){var c=n(b),
d,e=a.firstChild;if(-1!==c){for(;e;){d=n(e);if(-1!==d&&d>c)break;e=e.nextSibling}a.insertBefore(b,e)}}}function c(a){this.OdfContainer=a}function b(a,b,c){var d=this;this.size=0;this.type=null;this.name=a;this.container=b;this.onchange=this.onreadystatechange=this.document=this.mimetype=this.url=null;this.EMPTY=0;this.LOADING=1;this.DONE=2;this.state=this.EMPTY;this.load=function(){if(null!==c){var b=h[a];this.mimetype=b;c.loadAsDataURL(a,b,function(a,b){d.url=b;if(d.onchange)d.onchange(d);if(d.onstatereadychange)d.onstatereadychange(d)})}};
this.abort=function(){}}function a(){this.length=0;this.item=function(){}}var d=new odf.StyleInfo,l=new odf.Style2CSS,e="urn:oasis:names:tc:opendocument:xmlns:office:1.0",f="meta settings scripts font-face-decls styles automatic-styles master-styles body".split(" "),m=new core.Base64,g=new odf.FontLoader,h={};c.prototype=new function(){};c.prototype.constructor=c;c.namespaceURI=e;c.localName="document";b.prototype.load=function(){};b.prototype.getUrl=function(){return this.data?"data:;base64,"+m.toBase64(this.data):
null};odf.OdfContainer=function p(d,f){function m(a){for(var b=a.firstChild,c;b;)c=b.nextSibling,1===b.nodeType?m(b):7===b.nodeType&&a.removeChild(b),b=c}function n(a){var b=s.rootElement.ownerDocument,c;if(a){m(a.documentElement);try{c=b.importNode(a.documentElement,!0)}catch(d){}}return c}function A(a){s.state=a;if(s.onchange)s.onchange(s);if(s.onstatereadychange)s.onstatereadychange(s)}function B(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 D(){var a=l.namespaces,b=new xmldom.LSSerializer,c=B("document-meta",a);b.filter=new k(s.rootElement);c+=b.writeToString(s.rootElement.meta,a);return c+"</office:document-meta>"}function x(){var a=l.namespaces,b=new xmldom.LSSerializer,c=B("document-settings",a);b.filter=new k(s.rootElement);c+=b.writeToString(s.rootElement.settings,a);return c+"</office:document-settings>"}function u(){var a=l.namespaces,b=new xmldom.LSSerializer,c=B("document-styles",a);
b.filter=new k(s.rootElement,s.rootElement.masterStyles);c+=b.writeToString(s.rootElement.fontFaceDecls,a);c+=b.writeToString(s.rootElement.styles,a);c+=b.writeToString(s.rootElement.automaticStyles,a);c+=b.writeToString(s.rootElement.masterStyles,a);return c+"</office:document-styles>"}function J(){var a=l.namespaces,b=new xmldom.LSSerializer,c=B("document-content",a);b.filter=new k(s.rootElement,s.rootElement.body);c+=b.writeToString(s.rootElement.automaticStyles,a);c+=b.writeToString(s.rootElement.body,
a);return c+"</office:document-content>"}function r(a,b){var c;c=runtime.byteArrayFromString(x(),"utf8");t.save("settings.xml",c,!0,new Date);c=runtime.byteArrayFromString(D(),"utf8");t.save("meta.xml",c,!0,new Date);c=runtime.byteArrayFromString(u(),"utf8");t.save("styles.xml",c,!0,new Date);c=runtime.byteArrayFromString(J(),"utf8");t.save("content.xml",c,!0,new Date);t.writeAs(a,function(a){b(a)})}var s=this,t=null;this.onstatereadychange=f;this.parts=this.rootElement=this.state=this.onchange=null;
this.getPart=function(a){return new b(a,s,t)};this.saveAs=r;this.save=function(a){r(d,a)};this.state=p.LOADING;var q=document.createElementNS(c.namespaceURI,c.localName),F,O=new c;for(F in O)O.hasOwnProperty(F)&&(q[F]=O[F]);this.rootElement=q;this.parts=new a(this);t=new core.Zip(d,function(a,b){t=b;a?runtime.loadXML(d,function(b,c){if(b)a&&(t.error=a+"\n"+b,A(p.INVALID));else{var d=n(c);!d||"document"!==d.localName||d.namespaceURI!==e?A(p.INVALID):(s.rootElement=d,d.fontFaceDecls=j(d,e,"font-face-decls"),
d.styles=j(d,e,"styles"),d.automaticStyles=j(d,e,"automatic-styles"),d.masterStyles=j(d,e,"master-styles"),d.body=j(d,e,"body"),d.meta=j(d,e,"meta"),A(p.DONE))}}):t.loadAsDOM("styles.xml",function(a,b){var c=n(b),d=s.rootElement;!c||"document-styles"!==c.localName||c.namespaceURI!==e?A(p.INVALID):(d.fontFaceDecls=j(c,e,"font-face-decls"),i(d,d.fontFaceDecls),d.styles=j(c,e,"styles"),i(d,d.styles),d.automaticStyles=j(c,e,"automatic-styles"),i(d,d.automaticStyles),d.masterStyles=j(c,e,"master-styles"),
i(d,d.masterStyles),g.loadFonts(d.fontFaceDecls,t,null));s.state!==p.INVALID&&t.loadAsDOM("content.xml",function(a,b){var c=n(b),d,f,g;if(!c||c.localName!=="document-content"||c.namespaceURI!==e)A(p.INVALID);else{d=s.rootElement;f=j(c,e,"font-face-decls");if(d.fontFaceDecls&&f)for(g=f.firstChild;g;){d.fontFaceDecls.appendChild(g);g=f.firstChild}else if(f){d.fontFaceDecls=f;i(d,f)}f=j(c,e,"automatic-styles");if(d.automaticStyles&&f)for(g=f.firstChild;g;){d.automaticStyles.appendChild(g);g=f.firstChild}else if(f){d.automaticStyles=
f;i(d,f)}d.body=j(c,e,"body");i(d,d.body)}s.state!==p.INVALID&&t.loadAsDOM("meta.xml",function(a,c){var b=n(c),d;if(b&&!(b.localName!=="document-meta"||b.namespaceURI!==e)){d=s.rootElement;d.meta=j(b,e,"meta");i(d,d.meta)}s.state!==p.INVALID&&t.loadAsDOM("settings.xml",function(a,b){if(b){var c=n(b),d;if(c&&!(c.localName!=="document-settings"||c.namespaceURI!==e)){d=s.rootElement;d.settings=j(c,e,"settings");i(d,d.settings)}}t.loadAsDOM("META-INF/manifest.xml",function(a,c){if(c){var b=n(c),d;if(b&&
!(b.localName!=="manifest"||b.namespaceURI!=="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0")){d=s.rootElement;d.manifest=b;for(b=d.manifest.firstChild;b;){b.nodeType===1&&(b.localName==="file-entry"&&b.namespaceURI==="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0")&&(h[b.getAttributeNS("urn:oasis:names:tc:opendocument:xmlns:manifest:1.0","full-path")]=b.getAttributeNS("urn:oasis:names:tc:opendocument:xmlns:manifest:1.0","media-type"));b=b.nextSibling}}}s.state!==p.INVALID&&A(p.DONE)})})})})})})};
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 25
odf.Formatting=function(){function j(j){function i(b,a){for(var c=b&&b.firstChild;c&&a;)c=c.nextSibling,a-=1;return c}var c=i(j.startContainer,j.startOffset);i(j.endContainer,j.endOffset);this.next=function(){return null===c?c:null}}var n=new odf.StyleInfo;this.setOdfContainer=function(){};this.isCompletelyBold=function(){return!1};this.getAlignment=function(j){this.getParagraphStyles(j)};this.getParagraphStyles=function(k){var i,c,b,a=[];for(i=0;i<k.length;i+=0){c=void 0;b=[];for(c=(new j(k[i])).next();c;)n.canElementHaveStyle("paragraph",
c)&&b.push(c);for(c=0;c<b.length;c+=1)-1===a.indexOf(b[c])&&a.push(b[c])}return a};this.getTextStyles=function(){return[]}};
// Input 26
runtime.loadClass("odf.OdfContainer");runtime.loadClass("odf.Formatting");runtime.loadClass("xmldom.XPath");
odf.OdfCanvas=function(){function j(a){function b(){for(;0<c.cssRules.length;)c.deleteRule(0);c.insertRule("office|presentation draw|page {display:none;}",0);c.insertRule("office|presentation draw|page:nth-child("+d+") {display:block;}",1)}var c=a.sheet,d=1;this.showFirstPage=function(){d=1;b()};this.showNextPage=function(){d+=1;b()};this.showPreviousPage=function(){1<d&&(d-=1,b())};this.showPage=function(a){0<a&&(d=a,b())};this.css=a}function n(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):
a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function k(a){function b(a,c){for(;c;){if(c===a)return!0;c=c.parentNode}return!1}function c(){var f=[],h=runtime.getWindow().getSelection(),g,i;for(g=0;g<h.rangeCount;g+=1)i=h.getRangeAt(g),null!==i&&(b(a,i.startContainer)&&b(a,i.endContainer))&&f.push(i);if(f.length===d.length){for(h=0;h<f.length&&!(g=f[h],i=d[h],g=g===i?!1:null===g||null===i?!0:g.startContainer!==i.startContainer||g.startOffset!==i.startOffset||g.endContainer!==i.endContainer||g.endOffset!==
i.endOffset,g);h+=1);if(h===f.length)return}d=f;var h=[f.length],j,l=a.ownerDocument;for(g=0;g<f.length;g+=1)i=f[g],j=l.createRange(),j.setStart(i.startContainer,i.startOffset),j.setEnd(i.endContainer,i.endOffset),h[g]=j;d=h;h=e.length;for(f=0;f<h;f+=1)e[f](a,d)}var d=[],e=[];this.addListener=function(a,c){var b,d=e.length;for(b=0;b<d;b+=1)if(e[b]===c)return;e.push(c)};n(a,"mouseup",c);n(a,"keyup",c);n(a,"keydown",c)}function i(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 c(b){var c=b.getElementsByTagName("head")[0],d=b.createElementNS(c.namespaceURI,"style"),e="",f;d.setAttribute("type","text/css");d.setAttribute("media","screen, print, handheld, projection");for(f in a)a.hasOwnProperty(f)&&f&&(e+="@namespace "+f+" url("+a[f]+");\n");d.appendChild(b.createTextNode(e));c.appendChild(d);return d}var b=new odf.Style2CSS,a=b.namespaces,d=a.draw,l=a.fo,e=a.office,f=a.style,m=a.svg,g=a.table,h=a.text,o=a.xlink,p=a.xml,z=runtime.getWindow(),
C=new xmldom.XPath,w={},v,A=new function(){function a(d){c=!0;runtime.setTimeout(function(){try{d()}catch(e){runtime.log(e)}c=!1;0<b.length&&a(b.pop())},10)}var b=[],c=!1;this.clearQueue=function(){b.length=0};this.addToQueue=function(d){if(0===b.length&&!c)return a(d);b.push(d)}};odf.OdfCanvas=function(a){function e(){var b=a.firstChild;b.firstChild&&(1<y?(b.style.MozTransformOrigin="center top",b.style.WebkitTransformOrigin="center top",b.style.OTransformOrigin="center top",b.style.msTransformOrigin=
"center top"):(b.style.MozTransformOrigin="left top",b.style.WebkitTransformOrigin="left top",b.style.OTransformOrigin="left top",b.style.msTransformOrigin="left top"),b.style.WebkitTransform="scale("+y+")",b.style.MozTransform="scale("+y+")",b.style.OTransform="scale("+y+")",b.style.msTransform="scale("+y+")",a.style.width=Math.round(y*b.offsetWidth)+"px",a.style.height=Math.round(y*b.offsetHeight)+"px")}function x(c){function j(){for(var k=a;k.firstChild;)k.removeChild(k.firstChild);a.style.display=
"inline-block";var n=c.rootElement;a.ownerDocument.importNode(n,!0);s.setOdfContainer(c);k=F;(new odf.Style2CSS).style2css(k.sheet,n.fontFaceDecls,n.styles,n.automaticStyles);var q=c,k=O.sheet,t;t=n.body;var r,u,v;u=[];for(r=t.firstChild;r&&r!==t;)if(r.namespaceURI===d&&(u[u.length]=r),r.firstChild)r=r.firstChild;else{for(;r&&r!==t&&!r.nextSibling;)r=r.parentNode;r&&r.nextSibling&&(r=r.nextSibling)}for(v=0;v<u.length;v+=1){r=u[v];var H="frame"+String(v),x=k;r.setAttribute("styleid",H);var y=void 0,
G=r.getAttributeNS(h,"anchor-type"),I=r.getAttributeNS(m,"x"),M=r.getAttributeNS(m,"y"),S=r.getAttributeNS(m,"width"),R=r.getAttributeNS(m,"height"),aa=r.getAttributeNS(l,"min-height"),V=r.getAttributeNS(l,"min-width");if("as-char"===G)y="display: inline-block;";else if(G||I||M)y="position: absolute;";else if(S||R||aa||V)y="display: block;";I&&(y+="left: "+I+";");M&&(y+="top: "+M+";");S&&(y+="width: "+S+";");R&&(y+="height: "+R+";");aa&&(y+="min-height: "+aa+";");V&&(y+="min-width: "+V+";");y&&(y=
"draw|"+r.localName+'[styleid="'+H+'"] {'+y+"}",x.insertRule(y,x.cssRules.length))}v=C.getODFElementsWithXPath(t,".//*[*[@text:anchor-type='paragraph']]",b.namespaceResolver);for(u=0;u<v.length;u+=1)t=v[u],t.setAttributeNS&&t.setAttributeNS("urn:webodf","containsparagraphanchor",!0);k.insertRule("draw|page { background-color:#fff; }",k.cssRules.length);for(t=a;t.firstChild;)t.removeChild(t.firstChild);t=J.createElementNS(a.namespaceURI,"div");t.style.display="inline-block";t.style.background="white";
t.appendChild(n);a.appendChild(t);u=n.body.getElementsByTagNameNS(g,"table-cell");for(t=0;t<u.length;t+=1)v=u.item(t),v.hasAttributeNS(g,"number-columns-spanned")&&v.setAttribute("colspan",v.getAttributeNS(g,"number-columns-spanned")),v.hasAttributeNS(g,"number-rows-spanned")&&v.setAttribute("rowspan",v.getAttributeNS(g,"number-rows-spanned"));t=function(a,b){b.hasAttributeNS(o,"href")&&(b.onclick=function(){z.open(b.getAttributeNS(o,"href"))})};v=n.body.getElementsByTagNameNS(h,"a");for(u=0;u<v.length;u+=
1)H=v.item(u),t(q,H,k);t=function(a,b,c,d){A.addToQueue(function(){var e=function(b){b='draw|image[styleid="'+a+'"] {'+("background-image: url("+b+");")+"}";d.insertRule(b,d.cssRules.length)};c.setAttribute("styleid",a);var f=c.getAttributeNS(o,"href"),h;if(f)try{b.getPartUrl?(f=b.getPartUrl(f),e(f)):(h=b.getPart(f),h.onchange=function(a){e(a.url)},h.load())}catch(g){runtime.log("slight problem: "+g)}else f=i(c),e(f)})};v=n.body.getElementsByTagNameNS(d,"image");for(u=0;u<v.length;u+=1)H=v.item(u),
t("image"+String(u),q,H,k);t=function(a,b,c){A.addToQueue(function(){var a=function(a,b){var f=h.documentElement.namespaceURI;"video/"===b.substr(0,6)?(d=h.createElementNS(f,"video"),d.setAttribute("controls","controls"),e=h.createElementNS(f,"source"),e.setAttribute("src",a),e.setAttribute("type",b),d.appendChild(e),c.parentNode.appendChild(d)):c.innerHtml="Unrecognised Plugin"},d,e,f,h=c.ownerDocument,g;if(f=c.getAttributeNS(o,"href"))try{b.getPartUrl?(f=b.getPartUrl(f),a(f,"video/mp4")):(g=b.getPart(f),
g.onchange=function(b){a(b.url,b.mimetype)},g.load())}catch(j){runtime.log("slight problem: "+j)}else runtime.log("using MP4 data fallback"),f=i(c),a(f,"video/mp4")})};v=n.body.getElementsByTagNameNS(d,"plugin");for(u=0;u<v.length;u+=1)H=v.item(u),t("video"+String(u),q,H,k);u=n.body;q={};t={};var L;v=z.document.getElementsByTagNameNS(h,"list-style");for(n=0;n<v.length;n+=1)x=v.item(n),(y=x.getAttributeNS(f,"name"))&&(t[y]=x);u=u.getElementsByTagNameNS(h,"list");for(n=0;n<u.length;n+=1)if(x=u.item(n),
v=x.getAttributeNS(p,"id")){H=x.getAttributeNS(h,"continue-list");x.setAttribute("id",v);r="text|list#"+v+" > text|list-item > *:first-child:before {";if(y=x.getAttributeNS(h,"style-name"))x=t[y],L=x.firstChild,x=void 0,"list-level-style-number"===L.localName?(x=L.getAttributeNS(f,"num-format"),y=L.getAttributeNS(f,"num-suffix"),G="",G={1:"decimal",a:"lower-latin",A:"upper-latin",i:"lower-roman",I:"upper-roman"},I=void 0,I=L.getAttributeNS(f,"num-prefix")||"",I=G.hasOwnProperty(x)?I+(" counter(list, "+
G[x]+")"):x?I+("'"+x+"';"):I+" ''",y&&(I+=" '"+y+"'"),x=G="content: "+I+";"):"list-level-style-image"===L.localName?x="content: none;":"list-level-style-bullet"===L.localName&&(x="content: '"+L.getAttributeNS(h,"bullet-char")+"';"),L=x;if(H){for(x=q[H];x;)H=x,x=q[H];r+="counter-increment:"+H+";";L?(L=L.replace("list",H),r+=L):r+="content:counter("+H+");"}else H="",L?(L=L.replace("list",v),r+=L):r+="content: counter("+v+");",r+="counter-increment:"+v+";",k.insertRule("text|list#"+v+" {counter-reset:"+
v+"}",k.cssRules.length);r+="}";q[v]=H;r&&k.insertRule(r,k.cssRules.length)}e();if(w.hasOwnProperty("statereadychange")){k=w.statereadychange;for(L=0;L<k.length;L+=1)k[L](void 0)}}r===c&&(r.state===odf.OdfContainer.DONE?j():r.onchange=j)}function u(){if(v){for(var a=v.ownerDocument.createDocumentFragment();v.firstChild;)a.insertBefore(v.firstChild,null);v.parentNode.replaceChild(a,v)}}var J=a.ownerDocument,r,s=new odf.Formatting,t=new k(a),q,F,O,R=!1,y=1,G=J,I=G.getElementsByTagName("head")[0],M;
"undefined"!==String(typeof webodf_css)?(M=G.createElementNS(I.namespaceURI,"style"),M.setAttribute("media","screen, print, handheld, projection"),M.appendChild(G.createTextNode(webodf_css))):(M=G.createElementNS(I.namespaceURI,"link"),M.setAttribute("href","webodf.css"),M.setAttribute("rel","stylesheet"));M.setAttribute("type","text/css");I.appendChild(M);q=new j(c(J));F=c(J);O=c(J);this.odfContainer=function(){return r};this.slidevisibilitycss=function(){return q.css};this.load=this.load=function(b){A.clearQueue();
a.innerHTML="loading "+b;r=new odf.OdfContainer(b,function(a){r=a;x(a)});r.onstatereadychange=x};this.save=function(a){u();r.save(a)};this.setEditable=function(a){(R=a)||u()};this.addListener=function(a,b){if(a==="selectionchange")t.addListener(a,b);else{var c=w[a];c===void 0&&(c=w[a]=[]);b&&c.indexOf(b)===-1&&c.push(b)}};this.getFormatting=function(){return s};this.setZoomLevel=function(a){y=a;e()};this.getZoomLevel=function(){return y};this.fitToContainingElement=function(b,c){var d=a.offsetHeight/
y;y=b/(a.offsetWidth/y);c/d<y&&(y=c/d);e()};this.fitToWidth=function(b){y=b/(a.offsetWidth/y);e()};this.fitSmart=function(b,c){var d,f;d=a.offsetWidth/y;f=a.offsetHeight/y;d=b/d;c!==void 0&&c/f<d&&(d=c/f);y=Math.min(1,d);e()};this.fitToHeight=function(b){y=b/(a.offsetHeight/y);e()};this.showFirstPage=function(){q.showFirstPage()};this.showNextPage=function(){q.showNextPage()};this.showPreviousPage=function(){q.showPreviousPage()};this.showPage=function(a){q.showPage(a)};this.showAllPages=function(){};
n(a,"click",function(a){for(var a=a||z.event,b=a.target,c=z.getSelection(),d=c.rangeCount>0?c.getRangeAt(0):null,e=d&&d.startContainer,f=d&&d.startOffset,g=d&&d.endContainer,i=d&&d.endOffset,j,k;b&&!((b.localName==="p"||b.localName==="h")&&b.namespaceURI===h);)b=b.parentNode;if(R&&b&&b.parentNode!==v){j=b.ownerDocument;k=j.documentElement.namespaceURI;if(v)v.parentNode&&u();else{v=j.createElementNS(k,"p");v.style.margin="0px";v.style.padding="0px";v.style.border="0px";v.setAttribute("contenteditable",
true)}b.parentNode.replaceChild(v,b);v.appendChild(b);v.focus();if(d){c.removeAllRanges();d=b.ownerDocument.createRange();d.setStart(e,f);d.setEnd(g,i);c.addRange(d)}if(a.preventDefault){a.preventDefault();a.stopPropagation()}else{a.returnValue=false;a.cancelBubble=true}}})};return odf.OdfCanvas}();
// Input 27
runtime.loadClass("odf.OdfCanvas");
odf.CommandLineTools=function(){this.roundTrip=function(j,n,k){new odf.OdfContainer(j,function(i){if(i.state===odf.OdfContainer.INVALID)return k("Document "+j+" is invalid.");i.state===odf.OdfContainer.DONE?i.saveAs(n,function(c){k(c)}):k("Document was not completely loaded.")})};this.render=function(j,n,k){for(n=n.getElementsByTagName("body")[0];n.firstChild;)n.removeChild(n.firstChild);n=new odf.OdfCanvas(n);n.addListener("statereadychange",function(i){k(i)});n.load(j)}};
// Input 28
runtime.loadClass("xmldom.XPath");runtime.loadClass("odf.Style2CSS");
gui.PresenterUI=function(){var j=new odf.Style2CSS,n=new xmldom.XPath,k=j.namespaceResolver;return function(i){var c=this;c.setInitialSlideMode=function(){c.startSlideMode("single")};c.keyDownHandler=function(b){if(!b.target.isContentEditable&&"input"!==b.target.nodeName)switch(b.keyCode){case 84:c.toggleToolbar();break;case 37:case 8:c.prevSlide();break;case 39:case 32:c.nextSlide();break;case 36:c.firstSlide();break;case 35:c.lastSlide()}};c.root=function(){return c.odf_canvas.odfContainer().rootElement};
c.firstSlide=function(){c.slideChange(function(){return 0})};c.lastSlide=function(){c.slideChange(function(b,a){return a-1})};c.nextSlide=function(){c.slideChange(function(b,a){return b+1<a?b+1:-1})};c.prevSlide=function(){c.slideChange(function(b){return 1>b?-1:b-1})};c.slideChange=function(b){var a=c.getPages(c.odf_canvas.odfContainer().rootElement),d=-1,i=0;a.forEach(function(a){a=a[1];a.hasAttribute("slide_current")&&(d=i,a.removeAttribute("slide_current"));i+=1});b=b(d,a.length);-1===b&&(b=d);
a[b][1].setAttribute("slide_current","1");document.getElementById("pagelist").selectedIndex=b;"cont"===c.slide_mode&&window.scrollBy(0,a[b][1].getBoundingClientRect().top-30)};c.selectSlide=function(b){c.slideChange(function(a,c){return b>=c||0>b?-1:b})};c.scrollIntoContView=function(b){var a=c.getPages(c.odf_canvas.odfContainer().rootElement);0!==a.length&&window.scrollBy(0,a[b][1].getBoundingClientRect().top-30)};c.getPages=function(b){var b=b.getElementsByTagNameNS(k("draw"),"page"),a=[],c;for(c=
0;c<b.length;c+=1)a.push([b[c].getAttribute("draw:name"),b[c]]);return a};c.fillPageList=function(b,a){for(var d=c.getPages(b),i,e,f;a.firstChild;)a.removeChild(a.firstChild);for(i=0;i<d.length;i+=1)e=document.createElement("option"),f=n.getODFElementsWithXPath(d[i][1],'./draw:frame[@presentation:class="title"]//draw:text-box/text:p',xmldom.XPath),f=0<f.length?f[0].textContent:d[i][0],e.textContent=i+1+": "+f,a.appendChild(e)};c.startSlideMode=function(b){var a=document.getElementById("pagelist"),
d=c.odf_canvas.slidevisibilitycss().sheet;for(c.slide_mode=b;0<d.cssRules.length;)d.deleteRule(0);c.selectSlide(0);"single"===c.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),c.fitToWindow(),window.addEventListener("resize",c.fitToWindow,!1)):"cont"===c.slide_mode&&window.removeEventListener("resize",c.fitToWindow,!1);c.fillPageList(c.odf_canvas.odfContainer().rootElement,
a)};c.toggleToolbar=function(){var b,a,d;b=c.odf_canvas.slidevisibilitycss().sheet;a=-1;for(d=0;d<b.cssRules.length;d+=1)if(".toolbar"===b.cssRules[d].cssText.substring(0,8)){a=d;break}-1<a?b.deleteRule(a):b.insertRule(".toolbar { position:fixed; left:0px;top:-200px; z-index:0; }",0)};c.fitToWindow=function(){var b=c.getPages(c.root()),a=(window.innerHeight-40)/b[0][1].clientHeight,b=(window.innerWidth-10)/b[0][1].clientWidth,a=a<b?a:b,b=c.odf_canvas.slidevisibilitycss().sheet;b.deleteRule(2);b.insertRule("draw|page { \n-moz-transform: scale("+
a+"); \n-moz-transform-origin: 0% 0%; -webkit-transform-origin: 0% 0%; -webkit-transform: scale("+a+"); -o-transform-origin: 0% 0%; -o-transform: scale("+a+"); -ms-transform-origin: 0% 0%; -ms-transform: scale("+a+"); }",2)};c.load=function(b){c.odf_canvas.load(b)};c.odf_element=i;c.odf_canvas=new odf.OdfCanvas(c.odf_element);c.odf_canvas.addListener("statereadychange",c.setInitialSlideMode);c.slide_mode="undefined";document.addEventListener("keydown",c.keyDownHandler,!1)}}();
// Input 29
gui.Caret=function(j,n){n.ownerDocument.createElementNS("urn:webodf:names:cursor","cursor");this.updateToSelection=function(){1===j.rangeCount&&j.getRangeAt(0)}};
// Input 30
runtime.loadClass("core.Cursor");
gui.SelectionMover=function(j,n){function k(a,b){if(0!==j.rangeCount){var c=j.getRangeAt(0),e;if(c.startContainer&&1===c.startContainer.nodeType){e=c.startContainer;n.setPoint(e,c.startOffset);b();c=n.node();n.position();e=[];var f;for(f=0;f<j.rangeCount;f+=1)e[f]=j.getRangeAt(f);j.removeAllRanges();0===e.length&&(e[0]=c.ownerDocument.createRange());e[e.length-1].setStart(n.node(),n.position());for(f=0;f<e.length;f+=1)j.addRange(e[f])}}}function i(){b.updateToSelection();for(var a=b.getNode().getBoundingClientRect(),
c=a.left,i=a.top,a=!1;!a;){b.remove();a=void 0;if(j.focusNode&&1===j.focusNode.nodeType){a=j.focusNode;n.setPoint(a,j.focusOffset);n.stepForward();var a=n.node(),e=n.position();j.collapse(a,e);b.updateToSelection()}a=b.getNode().getBoundingClientRect();a=a.top!==i&&a.left>c}}var c=n.node().ownerDocument,b=new core.Cursor(j,c);this.movePointForward=function(a){k(a,n.stepForward)};this.movePointBackward=function(a){k(a,n.stepBackward)};this.moveLineForward=function(a){j.modify?j.modify(a?"extend":"move",
"forward","line"):k(a,i)};this.moveLineBackward=function(a){j.modify?j.modify(a?"extend":"move","backward","line"):k(a,function(){})};return this};
// Input 31
runtime.loadClass("core.PointWalker");runtime.loadClass("core.Cursor");
gui.XMLEdit=function(j,n){function k(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function i(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function c(){var a=j.ownerDocument.defaultView.getSelection();a&&(!(0>=a.rangeCount)&&g)&&(a=a.getRangeAt(0),g.setPoint(a.startContainer,a.startOffset))}function b(){var a=j.ownerDocument.defaultView.getSelection(),b,c;a.removeAllRanges();g&&g.node()&&(b=g.node(),c=b.ownerDocument.createRange(),
c.setStart(b,g.position()),c.collapse(!0),a.addRange(c))}function a(b){for(var c=b.firstChild;c&&c!==b;)1===c.nodeType&&a(c),c=c.nextSibling||c.parentNode;var d,e,f,c=b.attributes;d="";for(f=c.length-1;0<=f;f-=1)e=c.item(f),d=d+" "+e.nodeName+'="'+e.nodeValue+'"';b.setAttribute("customns_name",b.nodeName);b.setAttribute("customns_atts",d);c=b.firstChild;for(e=/^\s*$/;c&&c!==b;)d=c,c=c.nextSibling||c.parentNode,3===d.nodeType&&e.test(d.nodeValue)&&d.parentNode.removeChild(d)}function d(a,b){for(var c=
a.firstChild,e,f,g;c&&c!==a;){if(1===c.nodeType){d(c,b);e=c.attributes;for(g=e.length-1;0<=g;g-=1)f=e.item(g),"http://www.w3.org/2000/xmlns/"===f.namespaceURI&&!b[f.nodeValue]&&(b[f.nodeValue]=f.localName)}c=c.nextSibling||c.parentNode}}function l(){var a=j.ownerDocument.createElement("style"),b;b={};d(j,b);var c={},f,g,i=0;for(f in b)if(b.hasOwnProperty(f)&&f){g=b[f];if(!g||c.hasOwnProperty(g)||"xmlns"===g){do g="ns"+i,i+=1;while(c.hasOwnProperty(g));b[f]=g}c[g]=!0}a.type="text/css";b="@namespace customns url(customns);\n"+
e;a.appendChild(j.ownerDocument.createTextNode(b));n=n.parentNode.replaceChild(a,n)}var e,f,m,g=null;j.id||(j.id="xml"+String(Math.random()).substring(2));f="#"+j.id+" ";e=f+"*,"+f+":visited, "+f+":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"+f+":before {color: blue; content: '<' attr(customns_name) attr(customns_atts) '>';}\n"+
f+":after {color: blue; content: '</' attr(customns_name) '>';}\n"+f+"{overflow: auto;}\n";f=j;k(f,"click",function(a){j.ownerDocument.defaultView.getSelection().getRangeAt(0);i(a)});k(f,"keydown",function(a){var d=a.charCode||a.keyCode;if((g=null)&&d===39){c();g.stepForward();b()}else if(g&&d===37){c();g.stepBackward();b()}else if(d>=16&&d<=20||d>=33&&d<=40)return;i(a)});k(f,"keypress",function(){});k(f,"drop",i);k(f,"dragend",i);k(f,"beforepaste",i);k(f,"paste",i);this.updateCSS=l;this.setXML=function(b){b=
b.documentElement||b;m=b=j.ownerDocument.importNode(b,true);for(a(b);j.lastChild;)j.removeChild(j.lastChild);j.appendChild(b);l();g=new core.PointWalker(b)};this.getXML=function(){return m}};
// Input 32
(function(){return"core/Async.js core/Base64.js core/ByteArray.js core/ByteArrayWriter.js core/Cursor.js core/JSLint.js core/PointWalker.js core/RawDeflate.js core/RawInflate.js core/UnitTester.js core/Zip.js gui/Caret.js gui/PresenterUI.js gui/SelectionMover.js gui/XMLEdit.js odf/CommandLineTools.js odf/FontLoader.js odf/Formatting.js odf/OdfCanvas.js odf/OdfContainer.js odf/Style2CSS.js odf/StyleInfo.js xmldom/LSSerializer.js xmldom/LSSerializerFilter.js xmldom/OperationalTransformDOM.js xmldom/OperationalTransformInterface.js xmldom/RelaxNG.js xmldom/RelaxNG2.js xmldom/RelaxNGParser.js xmldom/XPath.js".split(" ")})();
+87 -52
View File
@@ -1,5 +1,5 @@
// jslint.js
// 2012-07-13
// 2012-08-23
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -143,10 +143,10 @@
// You can request a properties report, which produces a list of the program's
// properties in the form of a /*properties*/ declaration.
// var myPropertyReport = properties_report(JSLINT.property);
// var myPropertyReport = JSLINT.properties_report(JSLINT.property);
// You can obtain the parse tree that JSLint constructed while parsing. The
// latest tree is kept in JSLINT.tree. A nice stringication can be produced
// latest tree is kept in JSLINT.tree. A nice stringification can be produced
// with
// JSON.stringify(JSLINT.tree, [
@@ -299,14 +299,14 @@
unclosed_comment, unclosed_regexp, undef, undefined, unescaped_a,
unexpected_a, unexpected_char_a_b, unexpected_comment, unexpected_else,
unexpected_label_a, unexpected_property_a, unexpected_space_a_b,
'unicode-bidi', unnecessary_initialize, unnecessary_use, unparam,
unreachable_a_b, unrecognized_style_attribute_a, unrecognized_tag_a, unsafe,
unused, url, urls, use_array, use_braces, use_charAt, use_object, use_or,
use_param, used_before_a, var, var_a_not, vars, 'vertical-align', video,
visibility, was, weird_assignment, weird_condition, weird_new,
weird_program, weird_relation, weird_ternary, white, 'white-space', width,
windows, 'word-spacing', 'word-wrap', wrap, wrap_immediate, wrap_regexp,
write_is_wrong, writeable, 'z-index'
unexpected_typeof_a, 'unicode-bidi', unnecessary_initialize,
unnecessary_use, unparam, unreachable_a_b, unrecognized_style_attribute_a,
unrecognized_tag_a, unsafe, unused, url, urls, use_array, use_braces,
use_charAt, use_object, use_or, use_param, used_before_a, var, var_a_not,
vars, 'vertical-align', video, visibility, was, weird_assignment,
weird_condition, weird_new, weird_program, weird_relation, weird_ternary,
white, 'white-space', width, windows, 'word-spacing', 'word-wrap', wrap,
wrap_immediate, wrap_regexp, write_is_wrong, writeable, 'z-index'
*/
// The global directive is used to declare global variables that can
@@ -511,7 +511,7 @@ var JSLINT = (function () {
expected_selector_a: "Expected a CSS selector, and instead saw {a}.",
expected_small_a: "Expected a small positive integer and instead saw '{a}'",
expected_space_a_b: "Expected exactly one space between '{a}' and '{b}'.",
expected_string_a: "Expected a string and instead saw {a}.",
expected_string_a: "Expected a string and instead saw '{a}'.",
expected_style_attribute: "Excepted a style attribute, and instead saw '{a}'.",
expected_style_pattern: "Expected a style pattern, and instead saw '{a}'.",
expected_tagname_a: "Expected a tagName, and instead saw {a}.",
@@ -591,6 +591,8 @@ var JSLINT = (function () {
unexpected_label_a: "Unexpected label '{a}'.",
unexpected_property_a: "Unexpected /*property*/ '{a}'.",
unexpected_space_a_b: "Unexpected space between '{a}' and '{b}'.",
unexpected_typeof_a: "Unexpected 'typeof'. " +
"Use '===' to compare directly with {a}.",
unnecessary_initialize: "It is not necessary to initialize '{a}' " +
"to 'undefined'.",
unnecessary_use: "Unnecessary 'use strict'.",
@@ -2544,7 +2546,7 @@ klass: do {
x.thru = 1;
x.line = 0;
x.edge = 'edge';
s.string = s;
x.string = s;
return postscript(x);
}
@@ -2589,13 +2591,26 @@ klass: do {
}
this.first = expression(150);
this.arity = 'prefix';
if (this.id === '++' || this.id === '--') {
switch (this.id) {
case '++':
case '--':
if (!option.plusplus) {
warn('unexpected_a', this);
} else if ((!this.first.identifier || this.first.reserved) &&
this.first.id !== '.' && this.first.id !== '[') {
warn('bad_operand', this);
}
break;
case '+':
case '-':
switch (this.first.id) {
case '[':
case '{':
case '!':
warn('unexpected_a', this.first);
break;
}
break;
}
return this;
};
@@ -2693,7 +2708,10 @@ klass: do {
warn(message || bundle.weird_condition, node);
break;
case '(':
if (node.first.id === '.' && numbery[node.first.second.string] === true) {
if (node.first.id === 'new' ||
(node.first.string === 'Boolean') ||
(node.first.id === '.' &&
numbery[node.first.second.string] === true)) {
warn(message || bundle.weird_condition, node);
}
break;
@@ -2738,6 +2756,15 @@ klass: do {
((left.id === '(string)' || left.id === '(number)') &&
(right.id === '(string)' || right.id === '(number)'))) {
warn('weird_relation', that);
} else if (left.id === 'typeof') {
if (right.id !== '(string)') {
warn("expected_string_a", right, right.id === '(number)'
? right.number
: right.string);
} else if (right.string === 'undefined' ||
right.string === 'null') {
warn("unexpected_typeof_a", left, right.string);
}
}
that.first = left;
that.second = check_relation(right);
@@ -2904,7 +2931,7 @@ klass: do {
// If this is an expression statement, determine if it is acceptable.
// We do not like
// new Blah();
// new Blah;
// statments. If it is to be used at all, new should only be used to make
// objects, not side effects. The expression statements we do like do
// assignment or invocation or delete.
@@ -2917,7 +2944,7 @@ klass: do {
the_statement.id !== 'delete' &&
the_statement.id !== '++' &&
the_statement.id !== '--') {
warn('assignment_function_expression', token);
warn('assignment_function_expression', the_statement);
}
semicolon();
}
@@ -3527,7 +3554,7 @@ klass: do {
});
infix('(', 160, function (left, that) {
var p;
var e, p;
if (indent && indent.mode === 'expression') {
no_space(prev_token, token);
} else {
@@ -3564,7 +3591,11 @@ klass: do {
no_space();
for (;;) {
edge();
p.push(expression(10));
e = expression(10);
if (left.string === 'Boolean' && (e.id === '!' || e.id === '~')) {
warn('weird_condition', e);
}
p.push(e);
if (next_token.id !== ',') {
break;
}
@@ -6250,6 +6281,9 @@ klass: do {
itself.error_report = function (data) {
var evidence, i, output = [], snippets, warning;
if (data.errors) {
if (data.json) {
output.push('<cite>JSON: bad.</cite><br>');
}
for (i = 0; i < data.errors.length; i += 1) {
warning = data.errors[i];
if (warning) {
@@ -6295,20 +6329,17 @@ klass: do {
}
output.push('</dl>');
}
if (data.json) {
output.push('<p>JSON: bad.</p>');
}
return output.join('');
};
itself.report = function (data) {
var dl, err, i, j, names, output = [], the_function;
var dl, i, j, names, output = [], the_function;
function detail(h, value) {
var comma_needed, singularity;
if (Array.isArray(value)) {
output.push('<dt>' + h + '</dt><dd>');
output.push("<dt>" + h + "</dt><dd>");
value.sort().forEach(function (item) {
if (item !== singularity) {
singularity = item;
@@ -6316,54 +6347,58 @@ klass: do {
comma_needed = true;
}
});
output.push('</dd>');
output.push("</dd>");
} else if (value) {
output.push('<dt>' + h + '</dt><dd>', value, '</dd>');
output.push("<dt>" + h + "</dt><dd>", value, "</dd>");
}
}
output.push('<dl>');
if (data.urls) {
detail("url", data.urls);
detail('url', data.urls);
dl = true;
}
if (data.globals) {
detail('global', data.globals);
dl = true;
} else if (xmode === 'style') {
output.push('<p>CSS.</p>');
} else if (data.json && !err) {
output.push('<p>JSON: good.</p>');
output.push("<dt>CSS.</dt>");
} else if (data.json) {
if (!data.errors) {
output.push("<dt>JSON: good.</dt>");
}
} else {
output.push('<div><i>No new global variables introduced.</i></div>');
output.push("<dt><i>No new global variables introduced.</i></dt>");
}
if (dl) {
output.push('</dl>');
output.push("</dl>");
} else {
output[0] = '';
}
for (i = 0; i < data.functions.length; i += 1) {
the_function = data.functions[i];
names = [];
if (the_function.params) {
for (j = 0; j < the_function.params.length; j += 1) {
names[j] = the_function.params[j].string;
if (data.functions) {
for (i = 0; i < data.functions.length; i += 1) {
the_function = data.functions[i];
names = [];
if (the_function.params) {
for (j = 0; j < the_function.params.length; j += 1) {
names[j] = the_function.params[j].string;
}
}
output.push('<dl><address>line ' +
String(the_function.line) + '</address>' +
the_function.name.entityify() +
'(' + names.join(', ') + ')');
detail('undefined', the_function['undefined']);
detail('unused', the_function.unused);
detail('closure', the_function.closure);
detail('variable', the_function['var']);
detail('exception', the_function.exception);
detail('outer', the_function.outer);
detail('global', the_function.global);
detail('label', the_function.label);
output.push('</dl>');
}
output.push('<dl><address>line ' +
String(the_function.line) + '</address>' +
the_function.name.entityify() +
'(' + names.join(', ') + ')');
detail('undefined', the_function['undefined']);
detail('unused', the_function.unused);
detail('closure', the_function.closure);
detail('variable', the_function['var']);
detail('exception', the_function.exception);
detail('outer', the_function.outer);
detail('global', the_function.global);
detail('label', the_function.label);
output.push('</dl>');
}
return output.join('');
};
@@ -6404,7 +6439,7 @@ klass: do {
itself.jslint = itself;
itself.edition = '2012-07-13';
itself.edition = '2012-08-23';
return itself;
}());
+68 -11
View File
@@ -103,6 +103,10 @@ odf.OdfCanvas = (function () {
sheet.insertRule("office|presentation draw|page:nth-child(" +
position + ") {display:block;}", 1);
}
this.showFirstPage = function() {
position = 1;
updateCSS();
};
/**
* @return {undefined}
*/
@@ -119,6 +123,14 @@ odf.OdfCanvas = (function () {
updateCSS();
}
};
this.showPage = function(n) {
if(n > 0) {
position = n;
updateCSS();
}
};
this.css = css;
}
/**
@@ -869,18 +881,32 @@ odf.OdfCanvas = (function () {
if (!odfdoc) {
return;
}
element.style.zoom = zoomLevel;
element.style.WebkitTransform = 'scale(' + zoomLevel + ')';
element.style.WebkitTransformOrigin = 'left top';
element.style.MozTransform = 'scale(' + zoomLevel + ')';
element.style.MozTransformOrigin = 'left top';
element.style.OTransform = 'scale(' + zoomLevel + ')';
element.style.OTransformOrigin = 'left top';
element.style.width = Math.round(zoomLevel * odfdoc.offsetWidth)
+ "px";
element.style.height = Math.round(zoomLevel * odfdoc.offsetHeight)
+ "px";
/*
When zoom > 1,
- origin needs to be 'center top'
When zoom < 1
- origin needs to be 'left top'
*/
if (zoomLevel > 1) {
sizer.style.MozTransformOrigin = 'center top';
sizer.style.WebkitTransformOrigin = 'center top';
sizer.style.OTransformOrigin = 'center top';
sizer.style.msTransformOrigin = 'center top';
} else {
sizer.style.MozTransformOrigin = 'left top';
sizer.style.WebkitTransformOrigin = 'left top';
sizer.style.OTransformOrigin = 'left top';
sizer.style.msTransformOrigin = 'left top';
}
sizer.style.WebkitTransform = 'scale(' + zoomLevel + ')';
sizer.style.MozTransform = 'scale(' + zoomLevel + ')';
sizer.style.OTransform = 'scale(' + zoomLevel + ')';
sizer.style.msTransform = 'scale(' + zoomLevel + ')';
element.style.width = Math.round(zoomLevel * sizer.offsetWidth) + "px";
element.style.height = Math.round(zoomLevel * sizer.offsetHeight) + "px";
}
/**
* A new content.xml has been loaded. Update the live document with it.
@@ -1117,6 +1143,28 @@ odf.OdfCanvas = (function () {
zoomLevel = width / realWidth;
fixContainerSize();
};
/**
* @param {!number} width
* @param {!number} height
* @return {undefined}
*/
this.fitSmart = function (width, height) {
var realWidth, realHeight, newScale;
realWidth = element.offsetWidth / zoomLevel;
realHeight = element.offsetHeight / zoomLevel;
newScale = width / realWidth;
if(height !== undefined) {
if (height / realHeight < newScale) {
newScale = height / realHeight;
}
}
zoomLevel = Math.min(1.0, newScale);
fixContainerSize();
};
/**
* @param {!number} height
* @return {undefined}
@@ -1126,6 +1174,9 @@ odf.OdfCanvas = (function () {
zoomLevel = height / realHeight;
fixContainerSize();
};
this.showFirstPage = function() {
pageSwitcher.showFirstPage();
};
/**
* @return {undefined}
*/
@@ -1138,6 +1189,12 @@ odf.OdfCanvas = (function () {
this.showPreviousPage = function () {
pageSwitcher.showPreviousPage();
};
/**
* @return {undefined}
*/
this.showPage = function (n) {
pageSwitcher.showPage(n);
};
/**
* @return {undefined}
*/