Blame view

sources/apps/files_odfviewer/js/webodf.js 193 KB
42e4f8d60   Kload   add all apps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
  // Input 0
  /*
  
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  var core={},gui={},xmldom={},odf={},ops={};
  // Input 1
  function Runtime(){}Runtime.ByteArray=function(){};Runtime.prototype.getVariable=function(){};Runtime.prototype.toJson=function(){};Runtime.prototype.fromJson=function(){};Runtime.ByteArray.prototype.slice=function(){};Runtime.ByteArray.prototype.length=0;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(){};Runtime.prototype.assert=function(){};var IS_COMPILED_CODE=!0;
  Runtime.byteArrayToString=function(g,k){var m;if("utf8"===k){m="";var f,e=g.length,c,a,b;for(f=0;f<e;f+=1)c=g[f],128>c?m+=String.fromCharCode(c):(f+=1,a=g[f],224>c?m+=String.fromCharCode((c&31)<<6|a&63):(f+=1,b=g[f],m+=String.fromCharCode((c&15)<<12|(a&63)<<6|b&63)))}else{"binary"!==k&&this.log("Unsupported encoding: "+k);m="";e=g.length;for(f=0;f<e;f+=1)m+=String.fromCharCode(g[f]&255)}return m};Runtime.getVariable=function(g){try{return eval(g)}catch(k){}};Runtime.toJson=function(g){return JSON.stringify(g)};
  Runtime.fromJson=function(g){return JSON.parse(g)};Runtime.getFunctionName=function(g){return void 0===g.name?(g=/function\s+(\w+)/.exec(g))&&g[1]:g.name};
  function BrowserRuntime(g){function k(c,a){var b,h,d;void 0!==a?d=c:a=c;g?(h=g.ownerDocument,d&&(b=h.createElement("span"),b.className=d,b.appendChild(h.createTextNode(d)),g.appendChild(b),g.appendChild(h.createTextNode(" "))),b=h.createElement("span"),b.appendChild(h.createTextNode(a)),g.appendChild(b),g.appendChild(h.createElement("br"))):console&&console.log(a);"alert"===d&&alert(a)}var m=this,f={},e=window.ArrayBuffer&&window.Uint8Array;this.ByteArray=e?function(c){Uint8Array.prototype.slice=
  function(a,b){void 0===b&&(void 0===a&&(a=0),b=this.length);var h=this.subarray(a,b),d,l;b-=a;d=new Uint8Array(new ArrayBuffer(b));for(l=0;l<b;l+=1)d[l]=h[l];return d};return new Uint8Array(new ArrayBuffer(c))}:function(c){var a=[];a.length=c;return a};this.concatByteArrays=e?function(c,a){var b,h=c.length,d=a.length,l=new this.ByteArray(h+d);for(b=0;b<h;b+=1)l[b]=c[b];for(b=0;b<d;b+=1)l[b+h]=a[b];return l}:function(c,a){return c.concat(a)};this.byteArrayFromArray=function(c){return c.slice()};this.byteArrayFromString=
  function(c,a){var b;if("utf8"===a){b=c.length;var h,d,l,e=0;for(d=0;d<b;d+=1)l=c.charCodeAt(d),e+=1+(128<l)+(2048<l);h=new m.ByteArray(e);for(d=e=0;d<b;d+=1)l=c.charCodeAt(d),128>l?(h[e]=l,e+=1):2048>l?(h[e]=192|l>>>6,h[e+1]=128|l&63,e+=2):(h[e]=224|l>>>12&15,h[e+1]=128|l>>>6&63,h[e+2]=128|l&63,e+=3)}else{"binary"!==a&&m.log("unknown encoding: "+a);b=c.length;h=new m.ByteArray(b);for(d=0;d<b;d+=1)h[d]=c.charCodeAt(d)&255}return b=h};this.byteArrayToString=Runtime.byteArrayToString;this.getVariable=
  Runtime.getVariable;this.fromJson=Runtime.fromJson;this.toJson=Runtime.toJson;this.readFile=function(c,a,b){function h(){var h;4===d.readyState&&(0===d.status&&!d.responseText?b("File "+c+" is empty."):200===d.status||0===d.status?(h="binary"===a?"undefined"!==String(typeof VBArray)?(new VBArray(d.responseBody)).toArray():m.byteArrayFromString(d.responseText,"binary"):d.responseText,f[c]=h,b(null,h)):b(d.responseText||d.statusText))}if(f.hasOwnProperty(c))b(null,f[c]);else{var d=new XMLHttpRequest;
  d.open("GET",c,!0);d.onreadystatechange=h;d.overrideMimeType&&("binary"!==a?d.overrideMimeType("text/plain; charset="+a):d.overrideMimeType("text/plain; charset=x-user-defined"));try{d.send(null)}catch(l){b(l.message)}}};this.read=function(c,a,b,h){function d(){var d;4===l.readyState&&(0===l.status&&!l.responseText?h("File "+c+" is empty."):200===l.status||0===l.status?(d="undefined"!==String(typeof VBArray)?(new VBArray(l.responseBody)).toArray():m.byteArrayFromString(l.responseText,"binary"),f[c]=
  d,h(null,d.slice(a,a+b))):h(l.responseText||l.statusText))}if(f.hasOwnProperty(c))h(null,f[c].slice(a,a+b));else{var l=new XMLHttpRequest;l.open("GET",c,!0);l.onreadystatechange=d;l.overrideMimeType&&l.overrideMimeType("text/plain; charset=x-user-defined");try{l.send(null)}catch(e){h(e.message)}}};this.readFileSync=function(c,a){var b=new XMLHttpRequest,h;b.open("GET",c,!1);b.overrideMimeType&&("binary"!==a?b.overrideMimeType("text/plain; charset="+a):b.overrideMimeType("text/plain; charset=x-user-defined"));
  try{if(b.send(null),200===b.status||0===b.status)h=b.responseText}catch(d){}return h};this.writeFile=function(c,a,b){f[c]=a;var h=new XMLHttpRequest;h.open("PUT",c,!0);h.onreadystatechange=function(){4===h.readyState&&(0===h.status&&!h.responseText?b("File "+c+" is empty."):200<=h.status&&300>h.status||0===h.status?b(null):b("Status "+String(h.status)+": "+h.responseText||h.statusText))};a=a.buffer&&!h.sendAsBinary?a.buffer:m.byteArrayToString(a,"binary");try{h.sendAsBinary?h.sendAsBinary(a):h.send(a)}catch(d){m.log("HUH? "+
  d+" "+a),b(d.message)}};this.deleteFile=function(c,a){delete f[c];var b=new XMLHttpRequest;b.open("DELETE",c,!0);b.onreadystatechange=function(){4===b.readyState&&(200>b.status&&300<=b.status?a(b.responseText):a(null))};b.send(null)};this.loadXML=function(c,a){var b=new XMLHttpRequest;b.open("GET",c,!0);b.overrideMimeType&&b.overrideMimeType("text/xml");b.onreadystatechange=function(){4===b.readyState&&(0===b.status&&!b.responseText?a("File "+c+" is empty."):200===b.status||0===b.status?a(null,b.responseXML):
  a(b.responseText))};try{b.send(null)}catch(h){a(h.message)}};this.isFile=function(c,a){m.getFileSize(c,function(b){a(-1!==b)})};this.getFileSize=function(c,a){var b=new XMLHttpRequest;b.open("HEAD",c,!0);b.onreadystatechange=function(){if(4===b.readyState){var h=b.getResponseHeader("Content-Length");h?a(parseInt(h,10)):a(-1)}};b.send(null)};this.log=k;this.assert=function(c,a,b){if(!c)throw k("alert","ASSERTION FAILED:
  "+a),b&&b(),a;};this.setTimeout=function(c,a){setTimeout(function(){c()},a)};
  this.libraryPaths=function(){return["lib"]};this.setCurrentDirectory=function(){};this.type=function(){return"BrowserRuntime"};this.getDOMImplementation=function(){return window.document.implementation};this.parseXML=function(c){return(new DOMParser).parseFromString(c,"text/xml")};this.exit=function(c){k("Calling exit with code "+String(c)+", but exit() is not implemented.")};this.getWindow=function(){return window};this.getNetwork=function(){var c=this.getVariable("now");return void 0===c?{networkStatus:"unavailable"}:
  c}}
  function NodeJSRuntime(){function g(b,a,d){b=f.resolve(e,b);"binary"!==a?m.readFile(b,a,d):m.readFile(b,null,d)}var k=this,m=require("fs"),f=require("path"),e="",c,a;this.ByteArray=function(b){return new Buffer(b)};this.byteArrayFromArray=function(b){var a=new Buffer(b.length),d,l=b.length;for(d=0;d<l;d+=1)a[d]=b[d];return a};this.concatByteArrays=function(b,a){var d=new Buffer(b.length+a.length);b.copy(d,0,0);a.copy(d,b.length,0);return d};this.byteArrayFromString=function(b,a){return new Buffer(b,a)};
  this.byteArrayToString=function(b,a){return b.toString(a)};this.getVariable=Runtime.getVariable;this.fromJson=Runtime.fromJson;this.toJson=Runtime.toJson;this.readFile=g;this.loadXML=function(b,a){g(b,"utf-8",function(d,b){if(d)return a(d);a(null,k.parseXML(b))})};this.writeFile=function(b,a,d){b=f.resolve(e,b);m.writeFile(b,a,"binary",function(b){d(b||null)})};this.deleteFile=function(b,a){b=f.resolve(e,b);m.unlink(b,a)};this.read=function(b,a,d,l){b=f.resolve(e,b);m.open(b,"r+",666,function(b,c){if(b)l(b);
  else{var j=new Buffer(d);m.read(c,j,0,d,a,function(d){m.close(c);l(d,j)})}})};this.readFileSync=function(b,a){return!a?"":"binary"===a?m.readFileSync(b,null):m.readFileSync(b,a)};this.isFile=function(b,a){b=f.resolve(e,b);m.stat(b,function(d,b){a(!d&&b.isFile())})};this.getFileSize=function(b,a){b=f.resolve(e,b);m.stat(b,function(d,b){d?a(-1):a(b.size)})};this.log=function(b,a){var d;void 0!==a?d=b:a=b;"alert"===d&&process.stderr.write("
  !!!!! ALERT !!!!!
  ");process.stderr.write(a+"
  ");"alert"===
  d&&process.stderr.write("!!!!! ALERT !!!!!
  ")};this.assert=function(b,a,d){b||(process.stderr.write("ASSERTION FAILED: "+a),d&&d())};this.setTimeout=function(b,a){setTimeout(function(){b()},a)};this.libraryPaths=function(){return[__dirname]};this.setCurrentDirectory=function(b){e=b};this.currentDirectory=function(){return e};this.type=function(){return"NodeJSRuntime"};this.getDOMImplementation=function(){return a};this.parseXML=function(b){return c.parseFromString(b,"text/xml")};this.exit=process.exit;
  this.getWindow=function(){return null};this.getNetwork=function(){return{networkStatus:"unavailable"}};c=new (require("xmldom").DOMParser);a=k.parseXML("<a/>").implementation}
  function RhinoRuntime(){function g(a,b){var c;void 0!==b?c=a:b=a;"alert"===c&&print("
  !!!!! ALERT !!!!!");print(b);"alert"===c&&print("!!!!! ALERT !!!!!")}var k=this,m=Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance(),f,e,c="";m.setValidating(!1);m.setNamespaceAware(!0);m.setExpandEntityReferences(!1);m.setSchema(null);e=Packages.org.xml.sax.EntityResolver({resolveEntity:function(a,b){var c=new Packages.java.io.FileReader(b);return new Packages.org.xml.sax.InputSource(c)}});f=m.newDocumentBuilder();
  f.setEntityResolver(e);this.ByteArray=function(a){return[a]};this.byteArrayFromArray=function(a){return a};this.byteArrayFromString=function(a){var b=[],c,d=a.length;for(c=0;c<d;c+=1)b[c]=a.charCodeAt(c)&255;return b};this.byteArrayToString=Runtime.byteArrayToString;this.getVariable=Runtime.getVariable;this.fromJson=Runtime.fromJson;this.toJson=Runtime.toJson;this.concatByteArrays=function(a,b){return a.concat(b)};this.loadXML=function(a,b){var c=new Packages.java.io.File(a),d;try{d=f.parse(c)}catch(l){print(l);
  b(l);return}b(null,d)};this.readFile=function(a,b,e){c&&(a=c+"/"+a);var d=new Packages.java.io.File(a),l="binary"===b?"latin1":b;d.isFile()?(a=readFile(a,l),"binary"===b&&(a=k.byteArrayFromString(a,"binary")),e(null,a)):e(a+" is not a file.")};this.writeFile=function(a,b,e){c&&(a=c+"/"+a);a=new Packages.java.io.FileOutputStream(a);var d,l=b.length;for(d=0;d<l;d+=1)a.write(b[d]);a.close();e(null)};this.deleteFile=function(a,b){c&&(a=c+"/"+a);(new Packages.java.io.File(a))["delete"]()?b(null):b("Could not delete "+
  a)};this.read=function(a,b,e,d){c&&(a=c+"/"+a);var l;l=a;var q="binary";(new Packages.java.io.File(l)).isFile()?("binary"===q&&(q="latin1"),l=readFile(l,q)):l=null;l?d(null,this.byteArrayFromString(l.substring(b,b+e),"binary")):d("Cannot read "+a)};this.readFileSync=function(a,b){return!b?"":readFile(a,b)};this.isFile=function(a,b){c&&(a=c+"/"+a);var e=new Packages.java.io.File(a);b(e.isFile())};this.getFileSize=function(a,b){c&&(a=c+"/"+a);var e=new Packages.java.io.File(a);b(e.length())};this.log=
  g;this.assert=function(a,b,c){a||(g("alert","ASSERTION FAILED: "+b),c&&c())};this.setTimeout=function(a){a()};this.libraryPaths=function(){return["lib"]};this.setCurrentDirectory=function(a){c=a};this.currentDirectory=function(){return c};this.type=function(){return"RhinoRuntime"};this.getDOMImplementation=function(){return f.getDOMImplementation()};this.parseXML=function(a){return f.parse(a)};this.exit=quit;this.getWindow=function(){return null};this.getNetwork=function(){return{networkStatus:"unavailable"}}}
  var runtime=function(){return"undefined"!==String(typeof window)?new BrowserRuntime(window.document.getElementById("logoutput")):"undefined"!==String(typeof require)?new NodeJSRuntime:new RhinoRuntime}();
  (function(){function g(f){var e=f[0],c;c=eval("if (typeof "+e+" === 'undefined') {eval('"+e+" = {};');}"+e);for(e=1;e<f.length-1;e+=1)c.hasOwnProperty(f[e])||(c=c[f[e]]={});return c[f[f.length-1]]}var k={},m={};runtime.loadClass=function(f){function e(b){b=b.replace(".","/")+".js";var d=runtime.libraryPaths(),a,c,e;runtime.currentDirectory&&d.push(runtime.currentDirectory());for(a=0;a<d.length;a+=1){c=d[a];if(!m.hasOwnProperty(c))if((e=runtime.readFileSync(d[a]+"/manifest.js","utf8"))&&e.length)try{m[c]=
  eval(e)}catch(j){m[c]=null,runtime.log("Cannot load manifest for "+c+".")}else m[c]=null;if((c=m[c])&&c.indexOf&&-1!==c.indexOf(b))return d[a]+"/"+b}return null}function c(b){var d,a;a=e(b);if(!a)throw b+" is not listed in any manifest.js.";try{d=runtime.readFileSync(a,"utf8")}catch(c){throw runtime.log("Error loading "+b+" "+c),c;}if(void 0===d)throw"Cannot load class "+b;try{d=eval(b+" = eval(code);")}catch(p){throw runtime.log("Error loading "+b+" "+p),p;}return d}if(!IS_COMPILED_CODE&&!k.hasOwnProperty(f)){var a=
  f.split("."),b;b=g(a);if(!b&&(b=c(f),!b||Runtime.getFunctionName(b)!==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];k[f]=!0}}})();
  (function(g){function k(g){if(g.length){var f=g[0];runtime.readFile(f,"utf8",function(e,c){function a(){var d;(d=eval(h))&&runtime.exit(d)}var b="";runtime.libraryPaths();var h=c;-1!==f.indexOf("/")&&(b=f.substring(0,f.indexOf("/")));runtime.setCurrentDirectory(b);e||null===h?(runtime.log(e),runtime.exit(1)):a.apply(null,g)})}}g=g?Array.prototype.slice.call(g):[];"NodeJSRuntime"===runtime.type()?k(process.argv.slice(2)):"RhinoRuntime"===runtime.type()?k(g):k(g.slice(1))})("undefined"!==String(typeof arguments)&&
  arguments);
  // Input 2
  core.Base64=function(){function g(d){var b=[],a,c=d.length;for(a=0;a<c;a+=1)b[a]=d.charCodeAt(a)&255;return b}function k(d){var b,a="",c,j=d.length-2;for(c=0;c<j;c+=3)b=d[c]<<16|d[c+1]<<8|d[c+2],a+=r[b>>>18],a+=r[b>>>12&63],a+=r[b>>>6&63],a+=r[b&63];c===j+1?(b=d[c]<<4,a+=r[b>>>6],a+=r[b&63],a+="=="):c===j&&(b=d[c]<<10|d[c+1]<<2,a+=r[b>>>12],a+=r[b>>>6&63],a+=r[b&63],a+="=");return a}function m(d){d=d.replace(/[^A-Za-z0-9+\/]+/g,"");var b=[],a=d.length%4,c,j=d.length,l;for(c=0;c<j;c+=4)l=(x[d.charAt(c)]||
  0)<<18|(x[d.charAt(c+1)]||0)<<12|(x[d.charAt(c+2)]||0)<<6|(x[d.charAt(c+3)]||0),b.push(l>>16,l>>8&255,l&255);b.length-=[0,0,2,1][a];return b}function f(d){var b=[],a,c=d.length,j;for(a=0;a<c;a+=1)j=d[a],128>j?b.push(j):2048>j?b.push(192|j>>>6,128|j&63):b.push(224|j>>>12&15,128|j>>>6&63,128|j&63);return b}function e(d){var b=[],a,c=d.length,j,l,e;for(a=0;a<c;a+=1)j=d[a],128>j?b.push(j):(a+=1,l=d[a],224>j?b.push((j&31)<<6|l&63):(a+=1,e=d[a],b.push((j&15)<<12|(l&63)<<6|e&63)));return b}function c(d){return k(g(d))}
  function a(d){return String.fromCharCode.apply(String,m(d))}function b(d){return e(g(d))}function h(d){d=e(d);for(var b="",a=0;a<d.length;)b+=String.fromCharCode.apply(String,d.slice(a,a+45E3)),a+=45E3;return b}function d(d,b,a){var c="",j,l,e;for(e=b;e<a;e+=1)b=d.charCodeAt(e)&255,128>b?c+=String.fromCharCode(b):(e+=1,j=d.charCodeAt(e)&255,224>b?c+=String.fromCharCode((b&31)<<6|j&63):(e+=1,l=d.charCodeAt(e)&255,c+=String.fromCharCode((b&15)<<12|(j&63)<<6|l&63)));return c}function l(b,a){function c(){var h=
  e+j;h>b.length&&(h=b.length);l+=d(b,e,h);e=h;h=e===b.length;a(l,h)&&!h&&runtime.setTimeout(c,0)}var j=1E5,l="",e=0;b.length<j?a(d(b,0,b.length),!0):("string"!==typeof b&&(b=b.slice()),c())}function q(d){return f(g(d))}function p(d){return String.fromCharCode.apply(String,f(d))}function j(d){return String.fromCharCode.apply(String,f(g(d)))}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=[],w;for(w=0;26>w;w+=1)n.push(65+w);for(w=0;26>w;w+=1)n.push(97+w);for(w=0;10>w;w+=1)n.push(48+
  w);n.push(43);n.push(47);var x,n=r;w={};var v,G;v=0;for(G=n.length;v<G;v+=1)w[n.charAt(v)]=v;x=w;var C,E,u=runtime.getWindow(),s,D;u&&u.btoa?(s=function(d){return u.btoa(d)},C=function(d){return s(j(d))}):(s=c,C=function(d){return k(q(d))});u&&u.atob?(D=function(d){return u.atob(d)},E=function(b){b=D(b);return d(b,0,b.length)}):(D=a,E=function(d){return h(m(d))});return function(){this.convertByteArrayToBase64=this.convertUTF8ArrayToBase64=k;this.convertBase64ToByteArray=this.convertBase64ToUTF8Array=
  m;this.convertUTF16ArrayToByteArray=this.convertUTF16ArrayToUTF8Array=f;this.convertByteArrayToUTF16Array=this.convertUTF8ArrayToUTF16Array=e;this.convertUTF8StringToBase64=c;this.convertBase64ToUTF8String=a;this.convertUTF8StringToUTF16Array=b;this.convertByteArrayToUTF16String=this.convertUTF8ArrayToUTF16String=h;this.convertUTF8StringToUTF16String=l;this.convertUTF16StringToByteArray=this.convertUTF16StringToUTF8Array=q;this.convertUTF16ArrayToUTF8String=p;this.convertUTF16StringToUTF8String=j;
  this.convertUTF16StringToBase64=C;this.convertBase64ToUTF16String=E;this.fromBase64=a;this.toBase64=c;this.atob=D;this.btoa=s;this.utob=j;this.btou=l;this.encode=C;this.encodeURI=function(d){return C(d).replace(/[+\/]/g,function(d){return"+"===d?"-":"_"}).replace(/\\=+$/,"")};this.decode=function(d){return E(d.replace(/[\-_]/g,function(d){return"-"===d?"+":"/"}))}}}();
  // Input 3
  core.RawDeflate=function(){function g(){this.dl=this.fc=0}function k(){this.extra_bits=this.static_tree=this.dyn_tree=null;this.max_code=this.max_length=this.elems=this.extra_base=0}function m(d,b,a,c){this.good_length=d;this.max_lazy=b;this.nice_length=a;this.max_chain=c}function f(){this.next=null;this.len=0;this.ptr=[];this.ptr.length=e;this.off=0}var e=8192,c,a,b,h,d=null,l,q,p,j,r,n,w,x,v,G,C,E,u,s,D,J,A,z,y,B,Q,M,t,K,I,S,N,P,H,F,L,V,T,R,Y,ca,W,da,ba,ja,fa,ga,Z,ka,ra,X,$,O,ea,la,sa,ta=[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],ha=[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],Ja=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ma;ma=[new m(0,0,0,0),new m(4,4,8,4),new m(4,5,16,8),new m(4,6,32,32),new m(4,4,16,16),new m(8,16,32,32),new m(8,16,128,128),new m(8,32,128,256),new m(32,128,258,1024),new m(32,258,258,4096)];var na=function(j){d[q+l++]=j;if(q+l===e){var h;if(0!==l){null!==c?(j=c,c=c.next):j=new f;
  j.next=null;j.len=j.off=0;null===a?a=b=j:b=b.next=j;j.len=l-q;for(h=0;h<j.len;h++)j.ptr[h]=d[q+h];l=q=0}}},oa=function(b){b&=65535;q+l<e-2?(d[q+l++]=b&255,d[q+l++]=b>>>8):(na(b&255),na(b>>>8))},pa=function(){C=(C<<5^j[A+3-1]&255)&8191;E=w[32768+C];w[A&32767]=E;w[32768+C]=A},U=function(d,b){v>16-b?(x|=d<<v,oa(x),x=d>>16-v,v+=b-16):(x|=d<<v,v+=b)},aa=function(d,b){U(b[d].fc,b[d].dl)},ya=function(d,b,a){return d[b].fc<d[a].fc||d[b].fc===d[a].fc&&W[b]<=W[a]},za=function(d,b,a){var c;for(c=0;c<a&&sa<la.length;c++)d[b+
  c]=la.charCodeAt(sa++)&255;return c},ua=function(){var d,b,a=65536-B-A;if(-1===a)a--;else if(65274<=A){for(d=0;32768>d;d++)j[d]=j[d+32768];z-=32768;A-=32768;G-=32768;for(d=0;8192>d;d++)b=w[32768+d],w[32768+d]=32768<=b?b-32768:0;for(d=0;32768>d;d++)b=w[d],w[d]=32768<=b?b-32768:0;a+=32768}y||(d=za(j,A+B,a),0>=d?y=!0:B+=d)},Aa=function(d){var b=Q,a=A,c,e=J,l=32506<A?A-32506:0,h=A+258,p=j[a+e-1],r=j[a+e];J>=K&&(b>>=2);do if(c=d,!(j[c+e]!==r||j[c+e-1]!==p||j[c]!==j[a]||j[++c]!==j[a+1])){a+=2;c++;do++a;
  while(j[a]===j[++c]&&j[++a]===j[++c]&&j[++a]===j[++c]&&j[++a]===j[++c]&&j[++a]===j[++c]&&j[++a]===j[++c]&&j[++a]===j[++c]&&j[++a]===j[++c]&&a<h);c=258-(h-a);a=h-258;if(c>e){z=d;e=c;if(258<=c)break;p=j[a+e-1];r=j[a+e]}}while((d=w[d&32767])>l&&0!==--b);return e},ia=function(d,b){n[Z++]=b;0===d?I[b].fc++:(d--,I[da[b]+256+1].fc++,S[(256>d?ba[d]:ba[256+(d>>7)])&255].fc++,r[ka++]=d,X|=$);$<<=1;0===(Z&7)&&(ga[ra++]=X,X=0,$=1);if(2<t&&0===(Z&4095)){var a=8*Z,c=A-G,j;for(j=0;30>j;j++)a+=S[j].fc*(5+ha[j]);
  a>>=3;if(ka<parseInt(Z/2,10)&&a<parseInt(c/2,10))return!0}return 8191===Z||8192===ka},va=function(d,b){for(var a=R[b],c=b<<1;c<=Y;){c<Y&&ya(d,R[c+1],R[c])&&c++;if(ya(d,a,R[c]))break;R[b]=R[c];b=c;c<<=1}R[b]=a},Ba=function(d,b){var a=0;do a|=d&1,d>>=1,a<<=1;while(0<--b);return a>>1},Ca=function(d,b){var a=[];a.length=16;var c=0,j;for(j=1;15>=j;j++)c=c+T[j-1]<<1,a[j]=c;for(c=0;c<=b;c++)j=d[c].dl,0!==j&&(d[c].fc=Ba(a[j]++,j))},wa=function(d){var b=d.dyn_tree,a=d.static_tree,c=d.elems,j,e=-1,l=c;Y=0;
  ca=573;for(j=0;j<c;j++)0!==b[j].fc?(R[++Y]=e=j,W[j]=0):b[j].dl=0;for(;2>Y;)j=R[++Y]=2>e?++e:0,b[j].fc=1,W[j]=0,O--,null!==a&&(ea-=a[j].dl);d.max_code=e;for(j=Y>>1;1<=j;j--)va(b,j);do j=R[1],R[1]=R[Y--],va(b,1),a=R[1],R[--ca]=j,R[--ca]=a,b[l].fc=b[j].fc+b[a].fc,W[l]=W[j]>W[a]+1?W[j]:W[a]+1,b[j].dl=b[a].dl=l,R[1]=l++,va(b,1);while(2<=Y);R[--ca]=R[1];l=d.dyn_tree;j=d.extra_bits;var c=d.extra_base,a=d.max_code,h=d.max_length,p=d.static_tree,r,n,f,g,k=0;for(n=0;15>=n;n++)T[n]=0;l[R[ca]].dl=0;for(d=ca+
  1;573>d;d++)r=R[d],n=l[l[r].dl].dl+1,n>h&&(n=h,k++),l[r].dl=n,r>a||(T[n]++,f=0,r>=c&&(f=j[r-c]),g=l[r].fc,O+=g*(n+f),null!==p&&(ea+=g*(p[r].dl+f)));if(0!==k){do{for(n=h-1;0===T[n];)n--;T[n]--;T[n+1]+=2;T[h]--;k-=2}while(0<k);for(n=h;0!==n;n--)for(r=T[n];0!==r;)j=R[--d],j>a||(l[j].dl!==n&&(O+=(n-l[j].dl)*l[j].fc,l[j].fc=n),r--)}Ca(b,e)},Da=function(d,b){var a,c=-1,j,l=d[0].dl,e=0,h=7,r=4;0===l&&(h=138,r=3);d[b+1].dl=65535;for(a=0;a<=b;a++)j=l,l=d[a+1].dl,++e<h&&j===l||(e<r?H[j].fc+=e:0!==j?(j!==c&&
  H[j].fc++,H[16].fc++):10>=e?H[17].fc++:H[18].fc++,e=0,c=j,0===l?(h=138,r=3):j===l?(h=6,r=3):(h=7,r=4))},Ea=function(){8<v?oa(x):0<v&&na(x);v=x=0},Fa=function(d,b){var a,c=0,j=0,l=0,e=0,h,p;if(0!==Z){do 0===(c&7)&&(e=ga[l++]),a=n[c++]&255,0===(e&1)?aa(a,d):(h=da[a],aa(h+256+1,d),p=ta[h],0!==p&&(a-=ja[h],U(a,p)),a=r[j++],h=(256>a?ba[a]:ba[256+(a>>7)])&255,aa(h,b),p=ha[h],0!==p&&(a-=fa[h],U(a,p))),e>>=1;while(c<Z)}aa(256,d)},Ga=function(d,b){var a,c=-1,j,e=d[0].dl,l=0,h=7,r=4;0===e&&(h=138,r=3);for(a=
  0;a<=b;a++)if(j=e,e=d[a+1].dl,!(++l<h&&j===e)){if(l<r){do aa(j,H);while(0!==--l)}else 0!==j?(j!==c&&(aa(j,H),l--),aa(16,H),U(l-3,2)):10>=l?(aa(17,H),U(l-3,3)):(aa(18,H),U(l-11,7));l=0;c=j;0===e?(h=138,r=3):j===e?(h=6,r=3):(h=7,r=4)}},Ha=function(){var d;for(d=0;286>d;d++)I[d].fc=0;for(d=0;30>d;d++)S[d].fc=0;for(d=0;19>d;d++)H[d].fc=0;I[256].fc=1;X=Z=ka=ra=O=ea=0;$=1},qa=function(d){var a,b,c,l;l=A-G;ga[ra]=X;wa(F);wa(L);Da(I,F.max_code);Da(S,L.max_code);wa(V);for(c=18;3<=c&&0===H[xa[c]].dl;c--);O+=
  3*(c+1)+14;a=O+3+7>>3;b=ea+3+7>>3;b<=a&&(a=b);if(l+4<=a&&0<=G){U(0+d,3);Ea();oa(l);oa(~l);for(c=0;c<l;c++)na(j[G+c])}else if(b===a)U(2+d,3),Fa(N,P);else{U(4+d,3);l=F.max_code+1;a=L.max_code+1;c+=1;U(l-257,5);U(a-1,5);U(c-4,4);for(b=0;b<c;b++)U(H[xa[b]].dl,3);Ga(I,l-1);Ga(S,a-1);Fa(I,S)}Ha();0!==d&&Ea()},Ia=function(b,j,e){var h,r,p;for(h=0;null!==a&&h<e;){r=e-h;r>a.len&&(r=a.len);for(p=0;p<r;p++)b[j+h+p]=a.ptr[a.off+p];a.off+=r;a.len-=r;h+=r;0===a.len&&(r=a,a=a.next,r.next=c,c=r)}if(h===e)return h;
  if(q<l){r=e-h;r>l-q&&(r=l-q);for(p=0;p<r;p++)b[j+h+p]=d[q+p];q+=r;h+=r;l===q&&(l=q=0)}return h},Ka=function(d,b,c){var e;if(!h){if(!y){v=x=0;var r,n;if(0===P[0].dl){F.dyn_tree=I;F.static_tree=N;F.extra_bits=ta;F.extra_base=257;F.elems=286;F.max_length=15;F.max_code=0;L.dyn_tree=S;L.static_tree=P;L.extra_bits=ha;L.extra_base=0;L.elems=30;L.max_length=15;L.max_code=0;V.dyn_tree=H;V.static_tree=null;V.extra_bits=Ja;V.extra_base=0;V.elems=19;V.max_length=7;for(n=r=V.max_code=0;28>n;n++){ja[n]=r;for(e=
  0;e<1<<ta[n];e++)da[r++]=n}da[r-1]=n;for(n=r=0;16>n;n++){fa[n]=r;for(e=0;e<1<<ha[n];e++)ba[r++]=n}for(r>>=7;30>n;n++){fa[n]=r<<7;for(e=0;e<1<<ha[n]-7;e++)ba[256+r++]=n}for(e=0;15>=e;e++)T[e]=0;for(e=0;143>=e;)N[e++].dl=8,T[8]++;for(;255>=e;)N[e++].dl=9,T[9]++;for(;279>=e;)N[e++].dl=7,T[7]++;for(;287>=e;)N[e++].dl=8,T[8]++;Ca(N,287);for(e=0;30>e;e++)P[e].dl=5,P[e].fc=Ba(e,5);Ha()}for(e=0;8192>e;e++)w[32768+e]=0;M=ma[t].max_lazy;K=ma[t].good_length;Q=ma[t].max_chain;G=A=0;B=za(j,0,65536);if(0>=B)y=
  !0,B=0;else{for(y=!1;262>B&&!y;)ua();for(e=C=0;2>e;e++)C=(C<<5^j[e]&255)&8191}a=null;q=l=0;3>=t?(J=2,D=0):(D=2,s=0);p=!1}h=!0;if(0===B)return p=!0,0}if((e=Ia(d,b,c))===c)return c;if(p)return e;if(3>=t)for(;0!==B&&null===a;){pa();0!==E&&32506>=A-E&&(D=Aa(E),D>B&&(D=B));if(3<=D)if(n=ia(A-z,D-3),B-=D,D<=M){D--;do A++,pa();while(0!==--D);A++}else A+=D,D=0,C=j[A]&255,C=(C<<5^j[A+1]&255)&8191;else n=ia(0,j[A]&255),B--,A++;n&&(qa(0),G=A);for(;262>B&&!y;)ua()}else for(;0!==B&&null===a;){pa();J=D;u=z;D=2;
  0!==E&&(J<M&&32506>=A-E)&&(D=Aa(E),D>B&&(D=B),3===D&&4096<A-z&&D--);if(3<=J&&D<=J){n=ia(A-1-u,J-3);B-=J-1;J-=2;do A++,pa();while(0!==--J);s=0;D=2;A++;n&&(qa(0),G=A)}else 0!==s?ia(0,j[A-1]&255)&&(qa(0),G=A):s=1,A++,B--;for(;262>B&&!y;)ua()}0===B&&(0!==s&&ia(0,j[A-1]&255),qa(1),p=!0);return e+Ia(d,e+b,c-e)};this.deflate=function(l,p){var f,q;la=l;sa=0;"undefined"===String(typeof p)&&(p=6);(f=p)?1>f?f=1:9<f&&(f=9):f=6;t=f;y=h=!1;if(null===d){c=a=b=null;d=[];d.length=e;j=[];j.length=65536;r=[];r.length=
  8192;n=[];n.length=32832;w=[];w.length=65536;I=[];I.length=573;for(f=0;573>f;f++)I[f]=new g;S=[];S.length=61;for(f=0;61>f;f++)S[f]=new g;N=[];N.length=288;for(f=0;288>f;f++)N[f]=new g;P=[];P.length=30;for(f=0;30>f;f++)P[f]=new g;H=[];H.length=39;for(f=0;39>f;f++)H[f]=new g;F=new k;L=new k;V=new k;T=[];T.length=16;R=[];R.length=573;W=[];W.length=573;da=[];da.length=256;ba=[];ba.length=512;ja=[];ja.length=29;fa=[];fa.length=30;ga=[];ga.length=1024}for(var m=Array(1024),x=[];0<(f=Ka(m,0,m.length));){var B=
  [];B.length=f;for(q=0;q<f;q++)B[q]=String.fromCharCode(m[q]);x[x.length]=B.join("")}la=null;return x.join("")}};
  // Input 4
  core.ByteArray=function(g){this.pos=0;this.data=g;this.readUInt32LE=function(){var g=this.data,m=this.pos+=4;return g[--m]<<24|g[--m]<<16|g[--m]<<8|g[--m]};this.readUInt16LE=function(){var g=this.data,m=this.pos+=2;return g[--m]<<8|g[--m]}};
  // Input 5
  core.ByteArrayWriter=function(g){var k=this,m=new runtime.ByteArray(0);this.appendByteArrayWriter=function(f){m=runtime.concatByteArrays(m,f.getByteArray())};this.appendByteArray=function(f){m=runtime.concatByteArrays(m,f)};this.appendArray=function(f){m=runtime.concatByteArrays(m,runtime.byteArrayFromArray(f))};this.appendUInt16LE=function(f){k.appendArray([f&255,f>>8&255])};this.appendUInt32LE=function(f){k.appendArray([f&255,f>>8&255,f>>16&255,f>>24&255])};this.appendString=function(f){m=runtime.concatByteArrays(m,
  runtime.byteArrayFromString(f,g))};this.getLength=function(){return m.length};this.getByteArray=function(){return m}};
  // Input 6
  core.RawInflate=function(){var g,k,m=null,f,e,c,a,b,h,d,l,q,p,j,r,n,w,x=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],v=[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],G=[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],C=[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],E=[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],u=[16,17,18,
  0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],s=function(){this.list=this.next=null},D=function(){this.n=this.b=this.e=0;this.t=null},J=function(d,b,a,c,j,e){this.BMAX=16;this.N_MAX=288;this.status=0;this.root=null;this.m=0;var l=Array(this.BMAX+1),h,r,n,p,f,g,q,k=Array(this.BMAX+1),m,w,x,B=new D,y=Array(this.BMAX);p=Array(this.N_MAX);var v,z=Array(this.BMAX+1),Q,M,C;C=this.root=null;for(f=0;f<l.length;f++)l[f]=0;for(f=0;f<k.length;f++)k[f]=0;for(f=0;f<y.length;f++)y[f]=null;for(f=0;f<p.length;f++)p[f]=
  0;for(f=0;f<z.length;f++)z[f]=0;h=256<b?d[256]:this.BMAX;m=d;w=0;f=b;do l[m[w]]++,w++;while(0<--f);if(l[0]==b)this.root=null,this.status=this.m=0;else{for(g=1;g<=this.BMAX&&0==l[g];g++);q=g;e<g&&(e=g);for(f=this.BMAX;0!=f&&0==l[f];f--);n=f;e>f&&(e=f);for(Q=1<<g;g<f;g++,Q<<=1)if(0>(Q-=l[g])){this.status=2;this.m=e;return}if(0>(Q-=l[f]))this.status=2,this.m=e;else{l[f]+=Q;z[1]=g=0;m=l;w=1;for(x=2;0<--f;)z[x++]=g+=m[w++];m=d;f=w=0;do if(0!=(g=m[w++]))p[z[g]++]=f;while(++f<b);b=z[n];z[0]=f=0;m=p;w=0;
  p=-1;v=k[0]=0;x=null;for(M=0;q<=n;q++)for(d=l[q];0<d--;){for(;q>v+k[1+p];){v+=k[1+p];p++;M=(M=n-v)>e?e:M;if((r=1<<(g=q-v))>d+1){r-=d+1;for(x=q;++g<M&&!((r<<=1)<=l[++x]);)r-=l[x]}v+g>h&&v<h&&(g=h-v);M=1<<g;k[1+p]=g;x=Array(M);for(r=0;r<M;r++)x[r]=new D;C=null==C?this.root=new s:C.next=new s;C.next=null;C.list=x;y[p]=x;0<p&&(z[p]=f,B.b=k[p],B.e=16+g,B.t=x,g=(f&(1<<v)-1)>>v-k[p],y[p-1][g].e=B.e,y[p-1][g].b=B.b,y[p-1][g].n=B.n,y[p-1][g].t=B.t)}B.b=q-v;w>=b?B.e=99:m[w]<a?(B.e=256>m[w]?16:15,B.n=m[w++]):
  (B.e=j[m[w]-a],B.n=c[m[w++]-a]);r=1<<q-v;for(g=f>>v;g<M;g+=r)x[g].e=B.e,x[g].b=B.b,x[g].n=B.n,x[g].t=B.t;for(g=1<<q-1;0!=(f&g);g>>=1)f^=g;for(f^=g;(f&(1<<v)-1)!=z[p];)v-=k[p],p--}this.m=k[1];this.status=0!=Q&&1!=n?1:0}}},A=function(d){for(;a<d;){var b=c,j;j=n.length==w?-1:n[w++];c=b|j<<a;a+=8}},z=function(d){return c&x[d]},y=function(d){c>>=d;a-=d},B=function(a,c,e){var h,f,n;if(0==e)return 0;for(n=0;;){A(j);f=q.list[z(j)];for(h=f.e;16<h;){if(99==h)return-1;y(f.b);h-=16;A(h);f=f.t[z(h)];h=f.e}y(f.b);
  if(16==h)k&=32767,a[c+n++]=g[k++]=f.n;else{if(15==h)break;A(h);d=f.n+z(h);y(h);A(r);f=p.list[z(r)];for(h=f.e;16<h;){if(99==h)return-1;y(f.b);h-=16;A(h);f=f.t[z(h)];h=f.e}y(f.b);A(h);l=k-f.n-z(h);for(y(h);0<d&&n<e;)d--,l&=32767,k&=32767,a[c+n++]=g[k++]=g[l++]}if(n==e)return e}b=-1;return n},Q,M=function(d,b,a){var c,e,l,h,f,n,g,k=Array(316);for(c=0;c<k.length;c++)k[c]=0;A(5);n=257+z(5);y(5);A(5);g=1+z(5);y(5);A(4);c=4+z(4);y(4);if(286<n||30<g)return-1;for(e=0;e<c;e++)A(3),k[u[e]]=z(3),y(3);for(;19>
  e;e++)k[u[e]]=0;j=7;e=new J(k,19,19,null,null,j);if(0!=e.status)return-1;q=e.root;j=e.m;h=n+g;for(c=l=0;c<h;)if(A(j),f=q.list[z(j)],e=f.b,y(e),e=f.n,16>e)k[c++]=l=e;else if(16==e){A(2);e=3+z(2);y(2);if(c+e>h)return-1;for(;0<e--;)k[c++]=l}else{17==e?(A(3),e=3+z(3),y(3)):(A(7),e=11+z(7),y(7));if(c+e>h)return-1;for(;0<e--;)k[c++]=0;l=0}j=9;e=new J(k,n,257,v,G,j);0==j&&(e.status=1);if(0!=e.status)return-1;q=e.root;j=e.m;for(c=0;c<g;c++)k[c]=k[c+n];r=6;e=new J(k,g,0,C,E,r);p=e.root;r=e.m;return 0==r&&
  257<n||0!=e.status?-1:B(d,b,a)};this.inflate=function(x,K){null==g&&(g=Array(65536));a=c=k=0;b=-1;h=!1;d=l=0;q=null;n=x;w=0;var I=new runtime.ByteArray(K);a:{var u,s;for(u=0;u<K&&!(h&&-1==b);){if(0<d){if(0!=b)for(;0<d&&u<K;)d--,l&=32767,k&=32767,I[0+u++]=g[k++]=g[l++];else{for(;0<d&&u<K;)d--,k&=32767,A(8),I[0+u++]=g[k++]=z(8),y(8);0==d&&(b=-1)}if(u==K)break}if(-1==b){if(h)break;A(1);0!=z(1)&&(h=!0);y(1);A(2);b=z(2);y(2);q=null;d=0}switch(b){case 0:s=I;var D=0+u,H=K-u,F=void 0,F=a&7;y(F);A(16);F=z(16);
  y(16);A(16);if(F!=(~c&65535))s=-1;else{y(16);d=F;for(F=0;0<d&&F<H;)d--,k&=32767,A(8),s[D+F++]=g[k++]=z(8),y(8);0==d&&(b=-1);s=F}break;case 1:if(null!=q)s=B(I,0+u,K-u);else b:{s=I;D=0+u;H=K-u;if(null==m){for(var L=void 0,F=Array(288),L=void 0,L=0;144>L;L++)F[L]=8;for(;256>L;L++)F[L]=9;for(;280>L;L++)F[L]=7;for(;288>L;L++)F[L]=8;e=7;L=new J(F,288,257,v,G,e);if(0!=L.status){alert("HufBuild error: "+L.status);s=-1;break b}m=L.root;e=L.m;for(L=0;30>L;L++)F[L]=5;Q=5;L=new J(F,30,0,C,E,Q);if(1<L.status){m=
  null;alert("HufBuild error: "+L.status);s=-1;break b}f=L.root;Q=L.m}q=m;p=f;j=e;r=Q;s=B(s,D,H)}break;case 2:s=null!=q?B(I,0+u,K-u):M(I,0+u,K-u);break;default:s=-1}if(-1==s)break a;u+=s}}n=null;return I}};
  // Input 7
  core.Selection=function(g){var k=this,m=[];this.getRangeAt=function(f){return m[f]};this.addRange=function(f){0===m.length&&(k.focusNode=f.startContainer,k.focusOffset=f.startOffset);m.push(f);k.rangeCount+=1};this.removeAllRanges=function(){m=[];k.rangeCount=0;k.focusNode=null;k.focusOffset=0};this.collapse=function(f,e){runtime.assert(0<=e,"invalid offset "+e+" in Selection.collapse");m.length=k.rangeCount=1;var c=m[0];c||(m[0]=c=g.createRange());c.setStart(f,e);c.collapse(!0);k.focusNode=f;k.focusOffset=
  e};this.extend=function(){};this.rangeCount=0;this.focusNode=null;this.focusOffset=0};
  // Input 8
  core.LoopWatchDog=function(g,k){var m=Date.now(),f=0;this.check=function(){var e;if(g&&(e=Date.now(),e-m>g))throw runtime.log("alert","watchdog timeout"),"timeout!";if(0<k&&(f+=1,f>k))throw runtime.log("alert","watchdog loop overflow"),"loop overflow";}};
  // Input 9
  runtime.loadClass("core.Selection");
  core.Cursor=function(g,k){function m(c){var a=f.nextSibling,b=0;e.parentNode&&(e.parentNode.removeChild(e),a&&3===a.nodeType&&(a.insertData(0,e.nodeValue),b=e.length));c(a,b);f.parentNode&&f.parentNode.removeChild(f)}var f,e;this.getNode=function(){return f};this.getSelection=function(){return g};this.updateToSelection=function(c,a){m(c);if(g.focusNode){var b=g.focusNode,h=g.focusOffset;if(3===b.nodeType){var d=b.parentNode;0<h&&(e.data=b.substringData(0,h),b.deleteData(0,h),d.insertBefore(e,b));
  d.insertBefore(f,b);a(f.nextSibling,h)}else if(1===b.nodeType){for(d=b.firstChild;null!==d&&0<h;)d=d.nextSibling,h-=1;b.insertBefore(f,d);a(f.nextSibling,0)}}};this.remove=function(c){m(c)};f=k.createElementNS("urn:webodf:names:cursor","cursor");e=k.createTextNode("")};
  // Input 10
  core.EditInfo=function(g,k){var m,f={};this.getNode=function(){return m};this.getOdtDocument=function(){return k};this.getEdits=function(){return f};this.getSortedEdits=function(){var e=[],c;for(c in f)f.hasOwnProperty(c)&&e.push({memberid:c,time:f[c].time});e.sort(function(a,b){return a.time-b.time});return e};this.addEdit=function(e,c){var a,b=e.split("___")[0];if(!f[e])for(a in f)if(f.hasOwnProperty(a)&&a.split("___")[0]===b){delete f[a];break}f[e]={time:c}};this.clearEdits=function(){f={}};m=
  k.getDOM().createElementNS("urn:webodf:names:editinfo","editinfo");g.insertBefore(m,g.firstChild)};
  // Input 11
  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.UnitTest.provideTestAreaDiv=function(){var g=runtime.getWindow().document,k=g.getElementById("testarea");runtime.assert(!k,'Unclean test environment, found a div with id "testarea".');k=g.createElement("div");k.setAttribute("id","testarea");g.body.appendChild(k);return k};
  core.UnitTest.cleanupTestAreaDiv=function(){var g=runtime.getWindow().document,k=g.getElementById("testarea");runtime.assert(!!k&&k.parentNode===g.body,'Test environment broken, found no div with id "testarea" below body.');g.body.removeChild(k)};
  core.UnitTestRunner=function(){function g(e){f+=1;runtime.log("fail",e)}function k(e,c){var a;try{if(e.length!==c.length)return!1;for(a=0;a<e.length;a+=1)if(e[a]!==c[a])return!1}catch(b){return!1}return!0}function m(e,c,a){("string"!==typeof c||"string"!==typeof a)&&runtime.log("WARN: shouldBe() expects string arguments");var b,h;try{h=eval(c)}catch(d){b=d}e=eval(a);b?g(c+" should be "+e+". Threw exception "+b):(0===e?h===e&&1/h===1/e:h===e||("number"===typeof e&&isNaN(e)?"number"===typeof h&&isNaN(h):
  Object.prototype.toString.call(e)===Object.prototype.toString.call([])&&k(h,e)))?runtime.log("pass",c+" is "+a):String(typeof h)===String(typeof e)?(a=0===h&&0>1/h?"-0":String(h),g(c+" should be "+e+". Was "+a+".")):g(c+" should be "+e+" (of type "+typeof e+"). Was "+h+" (of type "+typeof h+").")}var f=0;this.shouldBeNull=function(e,c){m(e,c,"null")};this.shouldBeNonNull=function(e,c){var a,b;try{b=eval(c)}catch(h){a=h}a?g(c+" should be non-null. Threw exception "+a):null!==b?runtime.log("pass",c+
  " is non-null."):g(c+" should be non-null. Was "+b)};this.shouldBe=m;this.countFailedTests=function(){return f}};
  core.UnitTester=function(){var g=0,k={};this.runTests=function(m,f){function e(a){if(0===a.length)k[c]=d,g+=b.countFailedTests(),f();else{q=a[0];var l=Runtime.getFunctionName(q);runtime.log("Running "+l);j=b.countFailedTests();h.setUp();q(function(){h.tearDown();d[l]=j===b.countFailedTests();e(a.slice(1))})}}var c=Runtime.getFunctionName(m),a,b=new core.UnitTestRunner,h=new m(b),d={},l,q,p,j;if(k.hasOwnProperty(c))runtime.log("Test "+c+" has already run.");else{runtime.log("Running "+c+": "+h.description());
  p=h.tests();for(l=0;l<p.length;l+=1)q=p[l],a=Runtime.getFunctionName(q),runtime.log("Running "+a),j=b.countFailedTests(),h.setUp(),q(),h.tearDown(),d[a]=j===b.countFailedTests();e(h.asyncTests())}};this.countFailedTests=function(){return g};this.results=function(){return k}};
  // Input 12
  core.PositionIterator=function(g,k,m,f){function e(){this.acceptNode=function(d){return 3===d.nodeType&&0===d.length?2:1}}function c(d){this.acceptNode=function(b){return 3===b.nodeType&&0===b.length?2:d.acceptNode(b)}}function a(){var d=b.currentNode.nodeType;h=3===d?b.currentNode.length-1:1===d?1:0}var b,h;this.nextPosition=function(){if(b.currentNode===g)return!1;0===h&&1===b.currentNode.nodeType?null===b.firstChild()&&(h=1):3===b.currentNode.nodeType&&h+1<b.currentNode.length?h+=1:null!==b.nextSibling()?
  h=0:(b.parentNode(),h=1);return!0};this.previousPosition=function(){var d=!0;if(0===h)if(null===b.previousSibling()){b.parentNode();if(b.currentNode===g)return b.firstChild(),!1;h=0}else a();else 3===b.currentNode.nodeType?h-=1:null!==b.lastChild()?a():b.currentNode===g?d=!1:h=0;return d};this.container=function(){var d=b.currentNode,a=d.nodeType;return 0===h&&3!==a?d.parentNode:d};this.offset=function(){if(3===b.currentNode.nodeType)return h;var d=0,a=b.currentNode,c,e;for(c=1===h?b.lastChild():
  b.previousSibling();c;){if(3!==c.nodeType||c.nextSibling!==e||3!==e.nodeType)d+=1;e=c;c=b.previousSibling()}b.currentNode=a;return d};this.domOffset=function(){if(3===b.currentNode.nodeType)return h;var d=0,a=b.currentNode,c;for(c=1===h?b.lastChild():b.previousSibling();c;)d+=1,c=b.previousSibling();b.currentNode=a;return d};this.unfilteredDomOffset=function(){if(3===b.currentNode.nodeType)return h;for(var d=0,a=b.currentNode,a=1===h?a.lastChild:a.previousSibling;a;)d+=1,a=a.previousSibling;return d};
  this.textOffset=function(){if(3!==b.currentNode.nodeType)return 0;for(var d=h,a=b.currentNode;b.previousSibling()&&3===b.currentNode.nodeType;)d+=b.currentNode.length;b.currentNode=a;return d};this.substr=function(d,a){var c=b.currentNode,e="";if(3!==c.nodeType)return e;for(;b.previousSibling();)if(3!==b.currentNode.nodeType){b.nextSibling();break}do e+=b.currentNode.data;while(b.nextSibling()&&3===b.currentNode.nodeType);b.currentNode=c;return e.substr(d,a)};this.setPosition=function(d,a){runtime.assert(null!==
  d,"PositionIterator.setPosition called with container===null");b.currentNode=d;if(3===d.nodeType){h=a;if(a>d.length)throw"Error in setPosition: "+a+" > "+d.length;if(0>a)throw"Error in setPosition: "+a+" < 0";if(a===d.length)if(b.nextSibling())h=0;else if(b.parentNode())h=1;else throw"Error in setPosition: position not valid.";return!0}for(var c=a,e=b.firstChild(),j;0<a&&e;){a-=1;j=e;for(e=b.nextSibling();e&&3===e.nodeType&&3===j.nodeType&&e.previousSibling===j;)j=e,e=b.nextSibling()}if(0!==a)throw"Error in setPosition: offset "+
  c+" is out of range.";null===e?(b.currentNode=d,h=1):h=0;return!0};this.moveToEnd=function(){b.currentNode=g;h=1};m=(m?new c(m):new e).acceptNode;m.acceptNode=m;b=g.ownerDocument.createTreeWalker(g,k||4294967295,m,f);h=0;null===b.firstChild()&&(h=1)};
  // Input 13
  runtime.loadClass("core.PositionIterator");core.PositionFilter=function(){};core.PositionFilter.FilterResult={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3};core.PositionFilter.prototype.acceptPosition=function(){};(function(){return core.PositionFilter})();
  // Input 14
  core.Async=function(){this.forEach=function(g,k,m){function f(b){a!==c&&(b?(a=c,m(b)):(a+=1,a===c&&m(null)))}var e,c=g.length,a=0;for(e=0;e<c;e+=1)k(g[e],f)}};
  // Input 15
  runtime.loadClass("core.RawInflate");runtime.loadClass("core.ByteArray");runtime.loadClass("core.ByteArrayWriter");runtime.loadClass("core.Base64");
  core.Zip=function(g,k){function m(d){var a=[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,c,e=d.length,j=0,j=0;b=-1;for(c=0;c<e;c+=1)j=(b^d[c])&255,j=a[j],b=b>>>8^j;return b^-1}function f(d){var a=d.getFullYear();return 1980>a?0:a-1980<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>1}function e(d,
  a){var b,c,e,j,l,h,f,n=this;this.load=function(a){if(void 0!==n.data)a(null,n.data);else{var b=l+34+c+e+256;b+f>p&&(b=p-f);runtime.read(d,f,b,function(b,c){if(b||null===c)a(b,c);else a:{var e=c,f=new core.ByteArray(e),g=f.readUInt32LE(),p;if(67324752!==g)a("File entry signature is wrong."+g.toString()+" "+e.length.toString(),null);else{f.pos+=22;g=f.readUInt16LE();p=f.readUInt16LE();f.pos+=g+p;if(j){e=e.slice(f.pos,f.pos+l);if(l!==e.length){a("The amount of compressed bytes read was "+e.length.toString()+
  " instead of "+l.toString()+" for "+n.filename+" in "+d+".",null);break a}e=r(e,h)}else e=e.slice(f.pos,f.pos+h);h!==e.length?a("The amount of bytes read was "+e.length.toString()+" instead of "+h.toString()+" for "+n.filename+" in "+d+".",null):(n.data=e,a(null,e))}}})}};this.set=function(d,a,b,c){n.filename=d;n.data=a;n.compressed=b;n.date=c};this.error=null;a&&(b=a.readUInt32LE(),33639248!==b?this.error="Central directory entry has wrong signature at position "+(a.pos-4).toString()+' for file "'+
  d+'": '+a.data.length.toString():(a.pos+=6,j=a.readUInt16LE(),b=a.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),a.readUInt32LE(),l=a.readUInt32LE(),h=a.readUInt32LE(),c=a.readUInt16LE(),e=a.readUInt16LE(),b=a.readUInt16LE(),a.pos+=8,f=a.readUInt32LE(),this.filename=runtime.byteArrayToString(a.data.slice(a.pos,a.pos+c),"utf8"),a.pos+=c+e+b))}function c(d,a){var b=null,c,e;for(e=0;e<q.length;e+=1)if(c=q[e],c.filename===d){b=c;break}b?b.data?a(null,
  b.data):b.load(a):a(d+" not found.",null)}function a(d){var a=new core.ByteArrayWriter("utf8"),b=0;a.appendArray([80,75,3,4,20,0,0,0,0,0]);d.data&&(b=d.data.length);a.appendUInt32LE(f(d.date));a.appendUInt32LE(m(d.data));a.appendUInt32LE(b);a.appendUInt32LE(b);a.appendUInt16LE(d.filename.length);a.appendUInt16LE(0);a.appendString(d.filename);d.data&&a.appendByteArray(d.data);return a}function b(d,a){var b=new core.ByteArrayWriter("utf8"),c=0;b.appendArray([80,75,1,2,20,0,20,0,0,0,0,0]);d.data&&(c=
  d.data.length);b.appendUInt32LE(f(d.date));b.appendUInt32LE(m(d.data));b.appendUInt32LE(c);b.appendUInt32LE(c);b.appendUInt16LE(d.filename.length);b.appendArray([0,0,0,0,0,0,0,0,0,0,0,0]);b.appendUInt32LE(a);b.appendString(d.filename);return b}function h(d,a){if(d===q.length)a(null);else{var b=q[d];void 0!==b.data?h(d+1,a):b.load(function(b){b?a(b):h(d+1,a)})}}function d(d,c){h(0,function(e){if(e)c(e);else{e=new core.ByteArrayWriter("utf8");var j,l,h,f=[0];for(j=0;j<q.length;j+=1)e.appendByteArrayWriter(a(q[j])),
  f.push(e.getLength());h=e.getLength();for(j=0;j<q.length;j+=1)l=q[j],e.appendByteArrayWriter(b(l,f[j]));j=e.getLength()-h;e.appendArray([80,75,5,6,0,0,0,0]);e.appendUInt16LE(q.length);e.appendUInt16LE(q.length);e.appendUInt32LE(j);e.appendUInt32LE(h);e.appendArray([0,0]);d(e.getByteArray())}})}function l(a,b){d(function(d){runtime.writeFile(a,d,b)},b)}var q,p,j,r=(new core.RawInflate).inflate,n=this,w=new core.Base64;this.load=c;this.save=function(d,a,b,c){var j,l;for(j=0;j<q.length;j+=1)if(l=q[j],
  l.filename===d){l.set(d,a,b,c);return}l=new e(g);l.set(d,a,b,c);q.push(l)};this.write=function(d){l(g,d)};this.writeAs=l;this.createByteArray=d;this.loadContentXmlAsFragments=function(d,a){n.loadAsString(d,function(d,b){if(d)return a.rootElementReady(d);a.rootElementReady(null,b,!0)})};this.loadAsString=function(d,a){c(d,function(d,b){if(d||null===b)return a(d,null);var c=runtime.byteArrayToString(b,"utf8");a(null,c)})};this.loadAsDOM=function(d,a){n.loadAsString(d,function(d,b){if(d||null===b)a(d,
  null);else{var c=(new DOMParser).parseFromString(b,"text/xml");a(null,c)}})};this.loadAsDataURL=function(d,a,b){c(d,function(d,c){if(d)return b(d,null);var e=0,j;a||(a=80===c[1]&&78===c[2]&&71===c[3]?"image/png":255===c[0]&&216===c[1]&&255===c[2]?"image/jpeg":71===c[0]&&73===c[1]&&70===c[2]?"image/gif":"");for(j="data:"+a+";base64,";e<c.length;)j+=w.convertUTF8ArrayToBase64(c.slice(e,Math.min(e+45E3,c.length))),e+=45E3;b(null,j)})};this.getEntries=function(){return q.slice()};p=-1;null===k?q=[]:runtime.getFileSize(g,
  function(d){p=d;0>p?k("File '"+g+"' cannot be read.",n):runtime.read(g,p-22,22,function(d,a){if(d||null===k||null===a)k(d,n);else if(22!==a.length)k("Central directory length should be 22.",n);else{var b=new core.ByteArray(a),c;c=b.readUInt32LE();101010256!==c?k("Central directory signature is wrong: "+c.toString(),n):(c=b.readUInt16LE(),0!==c?k("Zip files with non-zero disk numbers are not supported.",n):(c=b.readUInt16LE(),0!==c?k("Zip files with non-zero disk numbers are not supported.",n):(c=
  b.readUInt16LE(),j=b.readUInt16LE(),c!==j?k("Number of entries is inconsistent.",n):(c=b.readUInt32LE(),b=b.readUInt16LE(),b=p-22-c,runtime.read(g,b,p-b,function(d,a){if(d||null===a)k(d,n);else a:{var b=new core.ByteArray(a),c,l;q=[];for(c=0;c<j;c+=1){l=new e(g,b);if(l.error){k(l.error,n);break a}q[q.length]=l}k(null,n)}})))))}})})};
  // Input 16
  core.CSSUnits=function(){var g={"in":1,cm:2.54,mm:25.4,pt:72,pc:12};this.convert=function(k,m,f){return k*g[f]/g[m]};this.convertMeasure=function(g,m){var f,e;g&&m?(f=parseFloat(g),e=g.replace(f.toString(),""),f=this.convert(f,e,m)):f="";return f.toString()}};
  // Input 17
  xmldom.LSSerializerFilter=function(){};
  // Input 18
  "function"!==typeof Object.create&&(Object.create=function(g){var k=function(){};k.prototype=g;return new k});
  xmldom.LSSerializer=function(){function g(m,f){var e="",c=Object.create(m),a=k.filter?k.filter.acceptNode(f):1,b;if(1===a){b="";var h=f.attributes,d,l,q,p="",j;if(h){f.namespaceURI&&c[f.namespaceURI]!==f.prefix&&(c[f.namespaceURI]=f.prefix);b+="<"+f.nodeName;d=h.length;for(l=0;l<d;l+=1)if(q=h.item(l),"http://www.w3.org/2000/xmlns/"!==q.namespaceURI&&(j=k.filter?k.filter.acceptNode(q):1,1===j)){if(q.namespaceURI){j=q.prefix;var r=q.namespaceURI;c.hasOwnProperty(r)?j=c[r]+":":(c[r]!==j&&(c[r]=j),j+=
  ":")}else j="";p+=" "+(j+q.localName+'="'+q.nodeValue+'"')}for(l in c)c.hasOwnProperty(l)&&((j=c[l])?"xmlns"!==j&&(b+=" xmlns:"+c[l]+'="'+l+'"'):b+=' xmlns="'+l+'"');b+=p+">"}e+=b}if(1===a||3===a){for(b=f.firstChild;b;)e+=g(c,b),b=b.nextSibling;f.nodeValue&&(e+=f.nodeValue)}1===a&&(c="",1===f.nodeType&&(c+="</"+f.nodeName+">"),e+=c);return e}var k=this;this.filter=null;this.writeToString=function(k,f){if(!k)return"";var e;if(f){e=f;var c={},a;for(a in e)e.hasOwnProperty(a)&&(c[e[a]]=a);e=c}else e=
  {};return g(e,k)}};
  // Input 19
  xmldom.RelaxNGParser=function(){function g(d,a){this.message=function(){a&&(d+=1===a.nodeType?" Element ":" Node ",d+=a.nodeName,a.nodeValue&&(d+=" with value '"+a.nodeValue+"'"),d+=".");return d}}function k(d){if(2>=d.e.length)return d;var a={name:d.name,e:d.e.slice(0,2)};return k({name:d.name,e:[a].concat(d.e.slice(2))})}function m(d){d=d.split(":",2);var a="",c;1===d.length?d=["",d[0]]:a=d[0];for(c in b)b[c]===a&&(d[0]=c);return d}function f(d,a){for(var b=0,c,e,h=d.name;d.e&&b<d.e.length;)if(c=
  d.e[b],"ref"===c.name){e=a[c.a.name];if(!e)throw c.a.name+" was not defined.";c=d.e.slice(b+1);d.e=d.e.slice(0,b);d.e=d.e.concat(e.e);d.e=d.e.concat(c)}else b+=1,f(c,a);c=d.e;if("choice"===h&&(!c||!c[1]||"empty"===c[1].name))!c||!c[0]||"empty"===c[0].name?(delete d.e,d.name="empty"):(c[1]=c[0],c[0]={name:"empty"});if("group"===h||"interleave"===h)"empty"===c[0].name?"empty"===c[1].name?(delete d.e,d.name="empty"):(h=d.name=c[1].name,d.names=c[1].names,c=d.e=c[1].e):"empty"===c[1].name&&(h=d.name=
  c[0].name,d.names=c[0].names,c=d.e=c[0].e);"oneOrMore"===h&&"empty"===c[0].name&&(delete d.e,d.name="empty");if("attribute"===h){e=d.names?d.names.length:0;for(var n,g=d.localnames=[e],k=d.namespaces=[e],b=0;b<e;b+=1)n=m(d.names[b]),k[b]=n[0],g[b]=n[1]}"interleave"===h&&("interleave"===c[0].name?d.e="interleave"===c[1].name?c[0].e.concat(c[1].e):[c[1]].concat(c[0].e):"interleave"===c[1].name&&(d.e=[c[0]].concat(c[1].e)))}function e(d,a){for(var b=0,c;d.e&&b<d.e.length;)c=d.e[b],"elementref"===c.name?
  (c.id=c.id||0,d.e[b]=a[c.id]):"element"!==c.name&&e(c,a),b+=1}var c=this,a,b={"http://www.w3.org/XML/1998/namespace":"xml"},h;h=function(d,a,c){var e=[],j,f,n=d.localName,g=[];j=d.attributes;var x=n,v=g,G={},C,E;for(C=0;C<j.length;C+=1)if(E=j.item(C),E.namespaceURI)"http://www.w3.org/2000/xmlns/"===E.namespaceURI&&(b[E.value]=E.localName);else{"name"===E.localName&&("element"===x||"attribute"===x)&&v.push(E.value);if("name"===E.localName||"combine"===E.localName||"type"===E.localName){var u=E,s;s=
  E.value;s=s.replace(/^\s\s*/,"");for(var D=/\s/,J=s.length-1;D.test(s.charAt(J));)J-=1;s=s.slice(0,J+1);u.value=s}G[E.localName]=E.value}j=G;j.combine=j.combine||void 0;d=d.firstChild;x=e;v=g;for(G="";d;){if(1===d.nodeType&&"http://relaxng.org/ns/structure/1.0"===d.namespaceURI){if(C=h(d,a,x))"name"===C.name?v.push(b[C.a.ns]+":"+C.text):"choice"===C.name&&(C.names&&C.names.length)&&(v=v.concat(C.names),delete C.names),x.push(C)}else 3===d.nodeType&&(G+=d.nodeValue);d=d.nextSibling}d=G;"value"!==n&&
  "param"!==n&&(d=/^\s*([\s\S]*\S)?\s*$/.exec(d)[1]);"value"===n&&void 0===j.type&&(j.type="token",j.datatypeLibrary="");if(("attribute"===n||"element"===n)&&void 0!==j.name)f=m(j.name),e=[{name:"name",text:f[1],a:{ns:f[0]}}].concat(e),delete j.name;"name"===n||"nsName"===n||"value"===n?void 0===j.ns&&(j.ns=""):delete j.ns;"name"===n&&(f=m(d),j.ns=f[0],d=f[1]);if(1<e.length&&("define"===n||"oneOrMore"===n||"zeroOrMore"===n||"optional"===n||"list"===n||"mixed"===n))e=[{name:"group",e:k({name:"group",
  e:e}).e}];2<e.length&&"element"===n&&(e=[e[0]].concat({name:"group",e:k({name:"group",e:e.slice(1)}).e}));1===e.length&&"attribute"===n&&e.push({name:"text",text:d});if(1===e.length&&("choice"===n||"group"===n||"interleave"===n))n=e[0].name,g=e[0].names,j=e[0].a,d=e[0].text,e=e[0].e;else if(2<e.length&&("choice"===n||"group"===n||"interleave"===n))e=k({name:n,e:e}).e;"mixed"===n&&(n="interleave",e=[e[0],{name:"text"}]);"optional"===n&&(n="choice",e=[e[0],{name:"empty"}]);"zeroOrMore"===n&&(n="choice",
  e=[{name:"oneOrMore",e:[e[0]]},{name:"empty"}]);if("define"===n&&j.combine){a:{x=j.combine;v=j.name;G=e;for(C=0;c&&C<c.length;C+=1)if(E=c[C],"define"===E.name&&E.a&&E.a.name===v){E.e=[{name:x,e:E.e.concat(G)}];c=E;break a}c=null}if(c)return}c={name:n};e&&0<e.length&&(c.e=e);for(f in j)if(j.hasOwnProperty(f)){c.a=j;break}void 0!==d&&(c.text=d);g&&0<g.length&&(c.names=g);"element"===n&&(c.id=a.length,a.push(c),c={name:"elementref",id:c.id});return c};this.parseRelaxNGDOM=function(d,l){var k=[],m=h(d&&
  d.documentElement,k,void 0),j,r,n={};for(j=0;j<m.e.length;j+=1)r=m.e[j],"define"===r.name?n[r.a.name]=r:"start"===r.name&&(a=r);if(!a)return[new g("No Relax NG start element was found.")];f(a,n);for(j in n)n.hasOwnProperty(j)&&f(n[j],n);for(j=0;j<k.length;j+=1)f(k[j],n);l&&(c.rootPattern=l(a.e[0],k));e(a,k);for(j=0;j<k.length;j+=1)e(k[j],k);c.start=a;c.elements=k;c.nsmap=b;return null}};
  // Input 20
  runtime.loadClass("xmldom.RelaxNGParser");
  xmldom.RelaxNG=function(){function g(d){var a;return function(){void 0===a&&(a=d());return a}}function k(d,a){var b={},c=0;return function(e){var j=e.hash||e.toString(),h;h=b[j];if(void 0!==h)return h;b[j]=h=a(e);h.hash=d+c.toString();c+=1;return h}}function m(d){var a={};return function(b){var c,e;e=a[b.localName];if(void 0===e)a[b.localName]=e={};else if(c=e[b.namespaceURI],void 0!==c)return c;return e[b.namespaceURI]=c=d(b)}}function f(d,a,b){var c={},e=0;return function(j,h){var l=a&&a(j,h),f,
  n;if(void 0!==l)return l;l=j.hash||j.toString();f=h.hash||h.toString();n=c[l];if(void 0===n)c[l]=n={};else if(l=n[f],void 0!==l)return l;n[f]=l=b(j,h);l.hash=d+e.toString();e+=1;return l}}function e(d,a){"choice"===a.p1.type?e(d,a.p1):d[a.p1.hash]=a.p1;"choice"===a.p2.type?e(d,a.p2):d[a.p2.hash]=a.p2}function c(d,a,e,j){if(a===v)return v;if(j>=e.length)return a;0===j&&(j=0);for(var h=e.item(j);h.namespaceURI===b;){j+=1;if(j>=e.length)return a;h=e.item(j)}return h=c(d,a.attDeriv(d,e.item(j)),e,j+1)}
  function a(d,b,c){c.e[0].a?(d.push(c.e[0].text),b.push(c.e[0].a.ns)):a(d,b,c.e[0]);c.e[1].a?(d.push(c.e[1].text),b.push(c.e[1].a.ns)):a(d,b,c.e[1])}var b="http://www.w3.org/2000/xmlns/",h,d,l,q,p,j,r,n,w,x,v={type:"notAllowed",nullable:!1,hash:"notAllowed",textDeriv:function(){return v},startTagOpenDeriv:function(){return v},attDeriv:function(){return v},startTagCloseDeriv:function(){return v},endTagDeriv:function(){return v}},G={type:"empty",nullable:!0,hash:"empty",textDeriv:function(){return v},
  startTagOpenDeriv:function(){return v},attDeriv:function(){return v},startTagCloseDeriv:function(){return G},endTagDeriv:function(){return v}},C={type:"text",nullable:!0,hash:"text",textDeriv:function(){return C},startTagOpenDeriv:function(){return v},attDeriv:function(){return v},startTagCloseDeriv:function(){return C},endTagDeriv:function(){return v}},E,u,s;h=f("choice",function(d,a){if(d===v)return a;if(a===v||d===a)return d},function(d,a){var b={},c;e(b,{p1:d,p2:a});a=d=void 0;for(c in b)b.hasOwnProperty(c)&&
  (void 0===d?d=b[c]:a=void 0===a?b[c]:h(a,b[c]));var j=d,l=a;return{type:"choice",p1:j,p2:l,nullable:j.nullable||l.nullable,textDeriv:function(d,a){return h(j.textDeriv(d,a),l.textDeriv(d,a))},startTagOpenDeriv:m(function(d){return h(j.startTagOpenDeriv(d),l.startTagOpenDeriv(d))}),attDeriv:function(d,a){return h(j.attDeriv(d,a),l.attDeriv(d,a))},startTagCloseDeriv:g(function(){return h(j.startTagCloseDeriv(),l.startTagCloseDeriv())}),endTagDeriv:g(function(){return h(j.endTagDeriv(),l.endTagDeriv())})}});
  var D=function(d,a){if(d===v||a===v)return v;if(d===G)return a;if(a===G)return d},J={},A=0;d=function(a,b){var c=D&&D(a,b),e,j;if(void 0!==c)return c;c=a.hash||a.toString();e=b.hash||b.toString();c<e&&(j=c,c=e,e=j,j=a,a=b,b=j);j=J[c];if(void 0===j)J[c]=j={};else if(c=j[e],void 0!==c)return c;var l=a,f=b,c={type:"interleave",p1:l,p2:f,nullable:l.nullable&&f.nullable,textDeriv:function(a,b){return h(d(l.textDeriv(a,b),f),d(l,f.textDeriv(a,b)))},startTagOpenDeriv:m(function(a){return h(E(function(a){return d(a,
  f)},l.startTagOpenDeriv(a)),E(function(a){return d(l,a)},f.startTagOpenDeriv(a)))}),attDeriv:function(a,b){return h(d(l.attDeriv(a,b),f),d(l,f.attDeriv(a,b)))},startTagCloseDeriv:g(function(){return d(l.startTagCloseDeriv(),f.startTagCloseDeriv())})};j[e]=c;c.hash="interleave"+A.toString();A+=1;return c};l=f("group",function(d,a){if(d===v||a===v)return v;if(d===G)return a;if(a===G)return d},function(d,a){return{type:"group",p1:d,p2:a,nullable:d.nullable&&a.nullable,textDeriv:function(b,c){var e=l(d.textDeriv(b,
  c),a);return d.nullable?h(e,a.textDeriv(b,c)):e},startTagOpenDeriv:function(b){var c=E(function(d){return l(d,a)},d.startTagOpenDeriv(b));return d.nullable?h(c,a.startTagOpenDeriv(b)):c},attDeriv:function(b,c){return h(l(d.attDeriv(b,c),a),l(d,a.attDeriv(b,c)))},startTagCloseDeriv:g(function(){return l(d.startTagCloseDeriv(),a.startTagCloseDeriv())})}});q=f("after",function(d,a){if(d===v||a===v)return v},function(d,a){return{type:"after",p1:d,p2:a,nullable:!1,textDeriv:function(b,c){return q(d.textDeriv(b,
  c),a)},startTagOpenDeriv:m(function(b){return E(function(d){return q(d,a)},d.startTagOpenDeriv(b))}),attDeriv:function(b,c){return q(d.attDeriv(b,c),a)},startTagCloseDeriv:g(function(){return q(d.startTagCloseDeriv(),a)}),endTagDeriv:g(function(){return d.nullable?a:v})}});p=k("oneormore",function(d){return d===v?v:{type:"oneOrMore",p:d,nullable:d.nullable,textDeriv:function(a,b){return l(d.textDeriv(a,b),h(this,G))},startTagOpenDeriv:function(a){var b=this;return E(function(d){return l(d,h(b,G))},
  d.startTagOpenDeriv(a))},attDeriv:function(a,b){return l(d.attDeriv(a,b),h(this,G))},startTagCloseDeriv:g(function(){return p(d.startTagCloseDeriv())})}});r=f("attribute",void 0,function(d,a){return{type:"attribute",nullable:!1,nc:d,p:a,attDeriv:function(b,c){return d.contains(c)&&(a.nullable&&/^\s+$/.test(c.nodeValue)||a.textDeriv(b,c.nodeValue).nullable)?G:v},startTagCloseDeriv:function(){return v}}});j=k("value",function(d){return{type:"value",nullable:!1,value:d,textDeriv:function(a,b){return b===
  d?G:v},attDeriv:function(){return v},startTagCloseDeriv:function(){return this}}});w=k("data",function(d){return{type:"data",nullable:!1,dataType:d,textDeriv:function(){return G},attDeriv:function(){return v},startTagCloseDeriv:function(){return this}}});E=function y(d,a){return"after"===a.type?q(a.p1,d(a.p2)):"choice"===a.type?h(y(d,a.p1),y(d,a.p2)):a};u=function(d,a,b){var e=b.currentNode;a=a.startTagOpenDeriv(e);a=c(d,a,e.attributes,0);var j=a=a.startTagCloseDeriv(),e=b.currentNode;a=b.firstChild();
  for(var l=[],f;a;)1===a.nodeType?l.push(a):3===a.nodeType&&!/^\s*$/.test(a.nodeValue)&&l.push(a.nodeValue),a=b.nextSibling();0===l.length&&(l=[""]);f=j;for(j=0;f!==v&&j<l.length;j+=1)a=l[j],"string"===typeof a?f=/^\s*$/.test(a)?h(f,f.textDeriv(d,a)):f.textDeriv(d,a):(b.currentNode=a,f=u(d,f,b));b.currentNode=e;return a=f.endTagDeriv()};n=function(d){var b,c,e;if("name"===d.name)b=d.text,c=d.a.ns,d={name:b,ns:c,hash:"{"+c+"}"+b,contains:function(d){return d.namespaceURI===c&&d.localName===b}};else if("choice"===
  d.name){b=[];c=[];a(b,c,d);d="";for(e=0;e<b.length;e+=1)d+="{"+c[e]+"}"+b[e]+",";d={hash:d,contains:function(d){var a;for(a=0;a<b.length;a+=1)if(b[a]===d.localName&&c[a]===d.namespaceURI)return!0;return!1}}}else d={hash:"anyName",contains:function(){return!0}};return d};x=function B(a,b){var c,e;if("elementref"===a.name){c=a.id||0;a=b[c];if(void 0!==a.name){var f=a;c=b[f.id]={hash:"element"+f.id.toString()};var g=n(f.e[0]),k=x(f.e[1],b),f={type:"element",nc:g,nullable:!1,textDeriv:function(){return v},
  startTagOpenDeriv:function(a){return g.contains(a)?q(k,G):v},attDeriv:function(){return v},startTagCloseDeriv:function(){return this}};for(e in f)f.hasOwnProperty(e)&&(c[e]=f[e]);return c}return a}switch(a.name){case "empty":return G;case "notAllowed":return v;case "text":return C;case "choice":return h(B(a.e[0],b),B(a.e[1],b));case "interleave":c=B(a.e[0],b);for(e=1;e<a.e.length;e+=1)c=d(c,B(a.e[e],b));return c;case "group":return l(B(a.e[0],b),B(a.e[1],b));case "oneOrMore":return p(B(a.e[0],b));
  case "attribute":return r(n(a.e[0]),B(a.e[1],b));case "value":return j(a.text);case "data":return c=a.a&&a.a.type,void 0===c&&(c=""),w(c);case "list":return{type:"list",nullable:!1,hash:"list",textDeriv:function(){return G}}}throw"No support for "+a.name;};this.makePattern=function(a,d){var b={},c;for(c in d)d.hasOwnProperty(c)&&(b[c]=d[c]);return c=x(a,b)};this.validate=function(a,d){var b;a.currentNode=a.root;b=u(null,s,a);b.nullable?d(null):(runtime.log("Error in Relax NG validation: "+b),d(["Error in Relax NG validation: "+
  b]))};this.init=function(a){s=a}};
  // Input 21
  runtime.loadClass("xmldom.RelaxNGParser");
  xmldom.RelaxNG2=function(){function g(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 k(a,b,c,d){return"empty"===a.name?null:e(a,b,c,d)}function m(a,b){if(2!==a.e.length)throw"Element with wrong # of elements: "+a.e.length;for(var e=b.currentNode,d=e?e.nodeType:0,l=null;1<d;){if(8!==d&&(3!==d||!/^\s+$/.test(b.currentNode.nodeValue)))return[new g("Not allowed node of type "+d+".")];d=
  (e=b.nextSibling())?e.nodeType:0}if(!e)return[new g("Missing element "+a.names)];if(a.names&&-1===a.names.indexOf(c[e.namespaceURI]+":"+e.localName))return[new g("Found "+e.nodeName+" instead of "+a.names+".",e)];if(b.firstChild()){for(l=k(a.e[1],b,e);b.nextSibling();)if(d=b.currentNode.nodeType,(!b.currentNode||!(3===b.currentNode.nodeType&&/^\s+$/.test(b.currentNode.nodeValue)))&&8!==d)return[new g("Spurious content.",b.currentNode)];if(b.parentNode()!==e)return[new g("Implementation error.")]}else l=
  k(a.e[1],b,e);b.nextSibling();return l}var f,e,c;e=function(a,b,c,d){var l=a.name,f=null;if("text"===l)a:{for(var p=(a=b.currentNode)?a.nodeType:0;a!==c&&3!==p;){if(1===p){f=[new g("Element not allowed here.",a)];break a}p=(a=b.nextSibling())?a.nodeType:0}b.nextSibling();f=null}else if("data"===l)f=null;else if("value"===l)d!==a.text&&(f=[new g("Wrong value, should be '"+a.text+"', not '"+d+"'",c)]);else if("list"===l)f=null;else if("attribute"===l)a:{if(2!==a.e.length)throw"Attribute with wrong # of elements: "+
  a.e.length;l=a.localnames.length;for(f=0;f<l;f+=1){d=c.getAttributeNS(a.namespaces[f],a.localnames[f]);""===d&&!c.hasAttributeNS(a.namespaces[f],a.localnames[f])&&(d=void 0);if(void 0!==p&&void 0!==d){f=[new g("Attribute defined too often.",c)];break a}p=d}f=void 0===p?[new g("Attribute not found: "+a.names,c)]:k(a.e[1],b,c,p)}else if("element"===l)f=m(a,b,c);else if("oneOrMore"===l){d=0;do p=b.currentNode,l=e(a.e[0],b,c),d+=1;while(!l&&p!==b.currentNode);1<d?(b.currentNode=p,f=null):f=l}else if("choice"===
  l){if(2!==a.e.length)throw"Choice with wrong # of options: "+a.e.length;p=b.currentNode;if("empty"===a.e[0].name){if(l=e(a.e[1],b,c,d))b.currentNode=p;f=null}else{if(l=k(a.e[0],b,c,d))b.currentNode=p,l=e(a.e[1],b,c,d);f=l}}else if("group"===l){if(2!==a.e.length)throw"Group with wrong # of members: "+a.e.length;f=e(a.e[0],b,c)||e(a.e[1],b,c)}else if("interleave"===l)a:{p=a.e.length;d=[p];for(var j=p,r,n,w,x;0<j;){r=0;n=b.currentNode;for(f=0;f<p;f+=1)w=b.currentNode,!0!==d[f]&&d[f]!==w&&(x=a.e[f],(l=
  e(x,b,c))?(b.currentNode=w,void 0===d[f]&&(d[f]=!1)):w===b.currentNode||"oneOrMore"===x.name||"choice"===x.name&&("oneOrMore"===x.e[0].name||"oneOrMore"===x.e[1].name)?(r+=1,d[f]=w):(r+=1,d[f]=!0));if(n===b.currentNode&&r===j){f=null;break a}if(0===r){for(f=0;f<p;f+=1)if(!1===d[f]){f=[new g("Interleave does not match.",c)];break a}f=null;break a}for(f=j=0;f<p;f+=1)!0!==d[f]&&(j+=1)}f=null}else throw l+" not allowed in nonEmptyPattern.";return f};this.validate=function(a,b){a.currentNode=a.root;var c=
  k(f.e[0],a,a.root);b(c)};this.init=function(a,b){f=a;c=b}};
  // Input 22
  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 23
  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 24
  xmldom.XPath=function(){function g(a,d,b){return-1!==a&&(a<d||-1===d)&&(a<b||-1===b)}function k(a){for(var d=[],b=0,c=a.length,e;b<c;){var f=a,l=c,h=d,k="",m=[],u=f.indexOf("[",b),s=f.indexOf("/",b),D=f.indexOf("=",b);g(s,u,D)?(k=f.substring(b,s),b=s+1):g(u,s,D)?(k=f.substring(b,u),b=q(f,u,m)):g(D,s,u)?(k=f.substring(b,D),b=D):(k=f.substring(b,l),b=l);h.push({location:k,predicates:m});if(b<c&&"="===a[b]){e=a.substring(b+1,c);if(2<e.length&&("'"===e[0]||'"'===e[0]))e=e.slice(1,e.length-1);else try{e=
  parseInt(e,10)}catch(J){}b=c}}return{steps:d,value:e}}function m(){}function f(){var a,d=!1;this.setNode=function(d){a=d};this.reset=function(){d=!1};this.next=function(){var b=d?null:a;d=!0;return b}}function e(a,d,b){this.reset=function(){a.reset()};this.next=function(){for(var c=a.next();c&&!(c=c.getAttributeNodeNS(d,b));)c=a.next();return c}}function c(a,d){var b=a.next(),c=null;this.reset=function(){a.reset();b=a.next();c=null};this.next=function(){for(;b;){if(c)if(d&&c.firstChild)c=c.firstChild;
  else{for(;!c.nextSibling&&c!==b;)c=c.parentNode;c===b?b=a.next():c=c.nextSibling}else{do(c=b.firstChild)||(b=a.next());while(b&&!c)}if(c&&1===c.nodeType)return c}return null}}function a(a,d){this.reset=function(){a.reset()};this.next=function(){for(var b=a.next();b&&!d(b);)b=a.next();return b}}function b(d,b,c){b=b.split(":",2);var e=c(b[0]),f=b[1];return new a(d,function(a){return a.localName===f&&a.namespaceURI===e})}function h(d,b,c){var e=new f,h=l(e,b,c),g=b.value;return void 0===g?new a(d,function(a){e.setNode(a);
  h.reset();return h.next()}):new a(d,function(a){e.setNode(a);h.reset();return(a=h.next())&&a.nodeValue===g})}function d(a,d,b){var c=a.ownerDocument,e=[],h=null;if(!c||!c.evaluate){e=new f;e.setNode(a);a=k(d);e=l(e,a,b);a=[];for(b=e.next();b;)a.push(b),b=e.next();e=a}else{b=c.evaluate(d,a,b,XPathResult.UNORDERED_NODE_ITERATOR_TYPE,null);for(h=b.iterateNext();null!==h;)1===h.nodeType&&e.push(h),h=b.iterateNext()}return e}var l,q;q=function(a,d,b){for(var c=d,e=a.length,f=0;c<e;)"]"===a[c]?(f-=1,0>=
  f&&b.push(k(a.substring(d,c)))):"["===a[c]&&(0>=f&&(d=c+1),f+=1),c+=1;return c};m.prototype.next=function(){};m.prototype.reset=function(){};l=function(a,d,f){var l,g,k,m;for(l=0;l<d.steps.length;l+=1){k=d.steps[l];g=k.location;""===g?a=new c(a,!1):"@"===g[0]?(m=g.slice(1).split(":",2),a=new e(a,f(m[0]),m[1])):"."!==g&&(a=new c(a,!1),-1!==g.indexOf(":")&&(a=b(a,g,f)));for(g=0;g<k.predicates.length;g+=1)m=k.predicates[g],a=h(a,m,f)}return a};xmldom.XPath=function(){this.getODFElementsWithXPath=d};
  return xmldom.XPath}();
  // Input 25
  runtime.loadClass("xmldom.XPath");
  odf.StyleInfo=function(){function g(a,d){for(var b=k[a.localName],c=b&&b[a.namespaceURI],e=c?c.length:0,f,l,b=0;b<e;b+=1)if(f=a.getAttributeNS(c[b].ns,c[b].localname))l=c[b].keyname,l=d[l]=d[l]||{},l[f]=1;for(b=a.firstChild;b;)1===b.nodeType&&(c=b,g(c,d)),b=b.nextSibling}var k,m=new xmldom.XPath;this.UsedStyleList=function(a){var d={};this.uses=function(a){var b=a.localName,c=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"===b?a.getAttributeNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","family"):"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"===a.namespaceURI?"data":b;return(a=d[a])?0<a[c]:!1};g(a,d)};this.canElementHaveStyle=function(a,d){var b=k[d.localName],b=b&&b[d.namespaceURI];return 0<(b?b.length:0)};this.hasDerivedStyles=function(a,d,b){var c=d("style"),e=b.getAttributeNS(c,"name");b=b.getAttributeNS(c,"family");return m.getODFElementsWithXPath(a,"//style:*[@style:parent-style-name='"+
  e+"'][@style:family='"+b+"']",d).length?!0:!1};var f={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"}]},e,c,a,b,h,d={},l;for(e in f)if(f.hasOwnProperty(e)){b=f[e];a=b.length;for(c=0;c<a;c+=1)h=b[c],l=d[h.en]=d[h.en]||{},l=l[h.ens]=l[h.ens]||[],l.push({ns:h.ans,localname:h.a,keyname:e})}k=d};
  // Input 26
  odf.Style2CSS=function(){function g(a,d){var b={},c,e,f;if(!d)return b;for(c=d.firstChild;c;){if(f=c.namespaceURI===p&&("style"===c.localName||"default-style"===c.localName)?c.getAttributeNS(p,"family"):c.namespaceURI===r&&"list-style"===c.localName?"list":void 0)(e=c.getAttributeNS&&c.getAttributeNS(p,"name"))||(e=""),f=b[f]=b[f]||{},f[e]=c;c=c.nextSibling}return b}function k(a,d){if(!d||!a)return null;if(a[d])return a[d];var b,c;for(b in a)if(a.hasOwnProperty(b)&&(c=k(a[b].derivedStyles,d)))return c;
  return null}function m(a,d,b){var c=d[a],e,f;c&&(e=c.getAttributeNS(p,"parent-style-name"),f=null,e&&(f=k(b,e),!f&&d[e]&&(m(e,d,b),f=d[e],d[e]=null)),f?(f.derivedStyles||(f.derivedStyles={}),f.derivedStyles[a]=c):b[a]=c)}function f(a,d){for(var b in a)a.hasOwnProperty(b)&&(m(b,a,d),a[b]=null)}function e(a,d){var b=w[a],c;c="";if(null===b)return null;c=d?"["+b+'|style-name="'+d+'"]':"["+b+"|style-name]";"presentation"===b&&(b="draw",c=d?'[presentation|style-name="'+d+'"]':"[presentation|style-name]");
  return c=b+"|"+x[a].join(c+","+b+"|")+c}function c(a,d,b){var f=[],j,l;f.push(e(a,d));for(j in b.derivedStyles)if(b.derivedStyles.hasOwnProperty(j))for(l in d=c(a,j,b.derivedStyles[j]),d)d.hasOwnProperty(l)&&f.push(d[l]);return f}function a(a,d,b){if(!a)return null;for(a=a.firstChild;a;){if(a.namespaceURI===d&&a.localName===b)return d=a;a=a.nextSibling}return null}function b(a,d){var b="",c,e;for(c in d)d.hasOwnProperty(c)&&(c=d[c],(e=a.getAttributeNS(c[0],c[1]))&&(b+=c[2]+":"+e+";"));return b}function h(a,
  d){var b={},c,e,f;if(!d)return d;for(c=d.firstChild;c;){if(1===c.nodeType&&(f=c.getAttributeNS(j,"font-family"),e=c.getAttributeNS(p,"name"),(f||c.getElementsByTagNameNS(j,"font-face-uri")[0])&&e))b[e]||(b[e]={}),b[e]=f;c=c.nextSibling}return b}function d(a,d,b,c){d='text|list[text|style-name="'+d+'"]';var e=b.getAttributeNS(r,"level"),f;b=b.firstChild.firstChild;var j,l="";b&&(f=b.attributes,j=f["fo:text-indent"].value,f=f["fo:margin-left"].value);j||(j="-0.6cm");b="-"===j.charAt(0)?j.substring(1):
  "-"+j;for(e=e&&parseInt(e,10);1<e;)d+=" > text|list-item > text|list",e-=1;e=d+" > text|list-item > *:not(text|list):first-child";void 0!==f&&(f=e+"{margin-left:"+f+";}",a.insertRule(f,a.cssRules.length));l=d+" > text|list-item > *:not(text|list):first-child:before{"+c+";";l+="counter-increment:list;";l+="margin-left:"+j+";";l+="width:"+b+";";l+="display:inline-block}";try{a.insertRule(l,a.cssRules.length)}catch(h){throw h;}}function l(e,f,j,h){if("list"===f)for(var g=h.firstChild,k,n;g;){if(g.namespaceURI===
  r)if(k=g,"list-level-style-number"===g.localName){n=k;var m=n.getAttributeNS(p,"num-format"),w=n.getAttributeNS(p,"num-suffix"),x="",x={1:"decimal",a:"lower-latin",A:"upper-latin",i:"lower-roman",I:"upper-roman"},P="",P=n.getAttributeNS(p,"num-prefix")||"",P=x.hasOwnProperty(m)?P+(" counter(list, "+x[m]+")"):m?P+("'"+m+"';"):P+" ''";w&&(P+=" '"+w+"'");n=x="content: "+P+";";d(e,j,k,n)}else"list-level-style-image"===g.localName?(n="content: none;",d(e,j,k,n)):"list-level-style-bullet"===g.localName&&
  (n="content: '"+k.getAttributeNS(r,"bullet-char")+"';",d(e,j,k,n));g=g.nextSibling}else{j=c(f,j,h).join(",");k="";if(g=a(h,p,"text-properties")){m=g;w="";g=""+b(m,v);n=m.getAttributeNS(p,"text-underline-style");"solid"===n&&(w+=" underline");n=m.getAttributeNS(p,"text-line-through-style");"solid"===n&&(w+=" line-through");w.length&&(g+="text-decoration:"+w+";");if(m=m.getAttributeNS(p,"font-name"))n=A[m],g+="font-family: "+(n||m)+";";k+=g}if(g=a(h,p,"paragraph-properties")){n=g;g=""+b(n,C);n=n.getElementsByTagNameNS(p,
  "background-image");if(0<n.length&&(m=n.item(0).getAttributeNS(q,"href")))g+="background-image: url('odfkit:"+m+"');",n=n.item(0),g+=b(n,G);k+=g}if(g=a(h,p,"graphic-properties"))g=""+b(g,E),k+=g;if(g=a(h,p,"table-cell-properties"))g=""+b(g,u),k+=g;if(g=a(h,p,"table-row-properties"))g=""+b(g,D),k+=g;if(g=a(h,p,"table-column-properties"))g=""+b(g,s),k+=g;if(g=a(h,p,"table-properties"))g=""+b(g,J),k+=g;"table"===f&&runtime.log(k);if(0!==k.length)try{e.insertRule(j+"{"+k+"}",e.cssRules.length)}catch(H){throw H;
  }}for(var F in h.derivedStyles)h.derivedStyles.hasOwnProperty(F)&&l(e,f,F,h.derivedStyles[F])}var q="http://www.w3.org/1999/xlink",p="urn:oasis:names:tc:opendocument:xmlns:style:1.0",j="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0",r="urn:oasis:names:tc:opendocument:xmlns:text:1.0",n={draw:"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",fo:"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",office:"urn:oasis:names:tc:opendocument:xmlns:office:1.0",presentation:"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0",
  style:p,svg:j,table:"urn:oasis:names:tc:opendocument:xmlns:table:1.0",text:r,xlink:q,xml:"http://www.w3.org/XML/1998/namespace"},w={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"},x={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"]},v=[["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"]],G=[[p,"repeat","background-repeat"]],C=[["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"]],E=[["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"],[j,"stroke-color","border-color"]],u=[["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"]],s=[[p,"column-width",
  "width"]],D=[[p,"row-height","height"],["urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","keep-together",null]],J=[[p,"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"]],A={};this.namespaces=n;this.namespaceResolver=function(a){return n[a]||null};this.namespaceResolver.lookupNamespaceURI=this.namespaceResolver;this.makeFontFaceDeclsMap=h;this.style2css=function(a,d,b,c){for(var e,j,k,m,r;a.cssRules.length;)a.deleteRule(a.cssRules.length-1);e=null;b&&(e=b.ownerDocument);c&&(e=c.ownerDocument);if(e){for(j in n)if(n.hasOwnProperty(j)){m="@namespace "+j+" url("+n[j]+");";try{a.insertRule(m,a.cssRules.length)}catch(p){}}A=h(e,d);d=g(e,b);b=g(e,c);c={};
  for(r in w)if(w.hasOwnProperty(r))for(k in e=c[r]={},f(d[r],e),f(b[r],e),e)e.hasOwnProperty(k)&&l(a,r,k,e[k])}}};
  // Input 27
  runtime.loadClass("core.Base64");runtime.loadClass("xmldom.XPath");runtime.loadClass("odf.Style2CSS");
  odf.FontLoader=function(){function g(e,c,a,b,h){var d,l=0,k;for(k in e)e.hasOwnProperty(k)&&(l===a&&(d=k),l+=1);if(!d)return h();c.load(e[d].href,function(l,j){if(l)runtime.log(l);else{var k=b;k||(k=document.styleSheets[0]);var n="@font-face { font-family: '"+(e[d].family||d)+"'; src: url(data:application/x-font-ttf;charset=binary;base64,"+f.convertUTF8ArrayToBase64(j)+') format("truetype"); }';try{k.insertRule(n,k.cssRules.length)}catch(m){runtime.log("Problem inserting rule in CSS: "+n)}}return g(e,
  c,a+1,b,h)})}var k=new odf.Style2CSS,m=new xmldom.XPath,f=new core.Base64;odf.FontLoader=function(){this.loadFonts=function(e,c,a){var b={},f,d,l,q;if(e){e=m.getODFElementsWithXPath(e,"style:font-face[svg:font-face-src]",k.namespaceResolver);for(f=0;f<e.length;f+=1)d=e[f],l=d.getAttributeNS(k.namespaces.style,"name"),q=d.getAttributeNS(k.namespaces.svg,"font-family"),d=m.getODFElementsWithXPath(d,"svg:font-face-src/svg:font-face-uri",k.namespaceResolver),0<d.length&&(d=d[0].getAttributeNS(k.namespaces.xlink,
  "href"),b[l]={href:d,family:q})}g(b,c,0,a,function(){})}};return odf.FontLoader}();
  // Input 28
  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 g(a,d,b){for(a=a?a.firstChild:null;a;){if(a.localName===b&&a.namespaceURI===d)return a;a=a.nextSibling}return null}function k(a){var b,c=q.length;for(b=0;b<c;b+=1)if(a.namespaceURI===d&&a.localName===q[b])return b;return-1}function m(a,d){var c=a.automaticStyles,e;d&&(e=new b.UsedStyleList(d));this.acceptNode=function(a){return"http://www.w3.org/1999/xhtml"===a.namespaceURI?3:a.namespaceURI&&a.namespaceURI.match(/^urn:webodf:/)?2:e&&a.parentNode===c&&1===a.nodeType?
  e.uses(a)?1:2:1}}function f(a,d){if(d){var b=k(d),c,e=a.firstChild;if(-1!==b){for(;e;){c=k(e);if(-1!==c&&c>b)break;e=e.nextSibling}a.insertBefore(d,e)}}}function e(a){this.OdfContainer=a}function c(a,d,b){var c=this;this.size=0;this.type=null;this.name=a;this.container=d;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!==b){var d=r[a];this.mimetype=d;b.loadAsDataURL(a,d,function(a,
  d){c.url=d;if(c.onchange)c.onchange(c);if(c.onstatereadychange)c.onstatereadychange(c)})}};this.abort=function(){}}function a(){this.length=0;this.item=function(){}}var b=new odf.StyleInfo,h=new odf.Style2CSS,d="urn:oasis:names:tc:opendocument:xmlns:office:1.0",l="urn:webodf:names:origin",q="meta settings scripts font-face-decls styles automatic-styles master-styles body".split(" "),p=new core.Base64,j=new odf.FontLoader,r={};e.prototype=new function(){};e.prototype.constructor=e;e.namespaceURI=d;
  e.localName="document";c.prototype.load=function(){};c.prototype.getUrl=function(){return this.data?"data:;base64,"+p.toBase64(this.data):null};odf.OdfContainer=function w(b,k){function p(a){for(var d=a.firstChild,b;d;)b=d.nextSibling,1===d.nodeType?p(d):7===d.nodeType&&a.removeChild(d),d=b}function q(a,d){for(var b=a&&a.firstChild;b;)1===b.nodeType&&b.setAttributeNS(l,"origin",d),b=b.nextSibling}function E(a,d){var b=null,c,e;if(a){b=a.cloneNode(!0);for(c=b.firstChild;c;)e=c.nextSibling,1===c.nodeType&&
  c.getAttributeNS(l,"origin")!==d&&b.removeChild(c),c=e}return b}function u(a){var d=t.rootElement.ownerDocument,b;if(a){p(a.documentElement);try{b=d.importNode(a.documentElement,!0)}catch(c){}}return b}function s(a){t.state=a;if(t.onchange)t.onchange(t);if(t.onstatereadychange)t.onstatereadychange(t)}function D(a,d){var b="",c;for(c in d)d.hasOwnProperty(c)&&(b+=" xmlns:"+c+'="'+d[c]+'"');return'<?xml version="1.0" encoding="UTF-8"?><office:'+a+" "+b+' office:version="1.2">'}function J(){var a=h.namespaces,
  d=new xmldom.LSSerializer,b=D("document-meta",a);d.filter=new m(t.rootElement);b+=d.writeToString(t.rootElement.meta,a);return b+"</office:document-meta>"}function A(){var a=runtime.parseXML("<manifest:manifest xmlns:manifest='urn:oasis:names:tc:opendocument:xmlns:manifest:1.0' manifest:version='1.2'><manifest:file-entry manifest:media-type='application/vnd.oasis.opendocument.text' manifest:full-path='/'/><manifest:file-entry manifest:media-type='text/xml' manifest:full-path='content.xml'/><manifest:file-entry manifest:media-type='text/xml' manifest:full-path='styles.xml'/><manifest:file-entry manifest:media-type='text/xml' manifest:full-path='meta.xml'/><manifest:file-entry manifest:media-type='text/xml' manifest:full-path='settings.xml'/></manifest:manifest>"),
  d=new xmldom.LSSerializer;d.filter=new m(t.rootElement);return d.writeToString(a,h.namespaces)}function z(){var a=h.namespaces,d=new xmldom.LSSerializer,b=D("document-settings",a);d.filter=new m(t.rootElement);b+=d.writeToString(t.rootElement.settings,a);return b+"</office:document-settings>"}function y(){var a=h.namespaces,d=new xmldom.LSSerializer,b=E(t.rootElement.automaticStyles,"styles.xml"),c=D("document-styles",a);d.filter=new m(t.rootElement);c+=d.writeToString(t.rootElement.fontFaceDecls,
  a);c+=d.writeToString(t.rootElement.styles,a);c+=d.writeToString(b,a);c+=d.writeToString(t.rootElement.masterStyles,a);return c+"</office:document-styles>"}function B(){var a=h.namespaces,d=new xmldom.LSSerializer,b=E(t.rootElement.automaticStyles,"content.xml"),c=D("document-content",a);d.filter=new m(t.rootElement);c+=d.writeToString(b,a);c+=d.writeToString(t.rootElement.body,a);return c+"</office:document-content>"}function Q(){var a,d=new Date;a=runtime.byteArrayFromString(z(),"utf8");K.save("settings.xml",
  a,!0,d);a=runtime.byteArrayFromString(J(),"utf8");K.save("meta.xml",a,!0,d);a=runtime.byteArrayFromString(y(),"utf8");K.save("styles.xml",a,!0,d);a=runtime.byteArrayFromString(B(),"utf8");K.save("content.xml",a,!0,d);a=runtime.byteArrayFromString(A(),"utf8");K.save("META-INF/manifest.xml",a,!0,d)}function M(a,d){Q();K.writeAs(a,function(a){d(a)})}var t=this,K;this.onstatereadychange=k;this.parts=this.rootElement=this.state=this.onchange=null;this.getPart=function(a){return new c(a,t,K)};this.createByteArray=
  function(a,d){Q();K.createByteArray(a,d)};this.saveAs=M;this.save=function(a){M(b,a)};this.getUrl=function(){return b};this.state=w.LOADING;var I=document.createElementNS(e.namespaceURI,e.localName),S,N=new e;for(S in N)N.hasOwnProperty(S)&&(I[S]=N[S]);this.rootElement=I;this.parts=new a(this);if(b)K=new core.Zip(b,function(a,c){K=c;a?runtime.loadXML(b,function(b,c){if(b)a&&(K.error=a+"
  "+b,s(w.INVALID));else{var e=u(c);!e||"document"!==e.localName||e.namespaceURI!==d?s(w.INVALID):(t.rootElement=
  e,e.fontFaceDecls=g(e,d,"font-face-decls"),e.styles=g(e,d,"styles"),e.automaticStyles=g(e,d,"automatic-styles"),e.masterStyles=g(e,d,"master-styles"),e.body=g(e,d,"body"),e.meta=g(e,d,"meta"),s(w.DONE))}}):K.loadAsDOM("styles.xml",function(a,b){var c=u(b),e=t.rootElement;!c||"document-styles"!==c.localName||c.namespaceURI!==d?s(w.INVALID):(e.fontFaceDecls=g(c,d,"font-face-decls"),f(e,e.fontFaceDecls),e.styles=g(c,d,"styles"),f(e,e.styles),e.automaticStyles=g(c,d,"automatic-styles"),q(e.automaticStyles,
  "styles.xml"),f(e,e.automaticStyles),e.masterStyles=g(c,d,"master-styles"),f(e,e.masterStyles),e.fontFaceDecls&&j.loadFonts(e.fontFaceDecls,K,null));t.state!==w.INVALID&&K.loadAsDOM("content.xml",function(a,b){var c=u(b),e,j,l;if(!c||"document-content"!==c.localName||c.namespaceURI!==d)s(w.INVALID);else{e=t.rootElement;j=g(c,d,"font-face-decls");if(e.fontFaceDecls&&j)for(l=j.firstChild;l;)e.fontFaceDecls.appendChild(l),l=j.firstChild;else j&&(e.fontFaceDecls=j,f(e,j));j=g(c,d,"automatic-styles");
  q(j,"content.xml");if(e.automaticStyles&&j)for(l=j.firstChild;l;)e.automaticStyles.appendChild(l),l=j.firstChild;else j&&(e.automaticStyles=j,f(e,j));e.body=g(c,d,"body");f(e,e.body)}t.state!==w.INVALID&&K.loadAsDOM("meta.xml",function(a,b){var c=u(b),e;if(c&&!("document-meta"!==c.localName||c.namespaceURI!==d))e=t.rootElement,e.meta=g(c,d,"meta"),f(e,e.meta);t.state!==w.INVALID&&K.loadAsDOM("settings.xml",function(a,b){if(b){var c=u(b),e;if(c&&!("document-settings"!==c.localName||c.namespaceURI!==
  d))e=t.rootElement,e.settings=g(c,d,"settings"),f(e,e.settings)}K.loadAsDOM("META-INF/manifest.xml",function(a,d){if(d){var b=u(d),c;if(b&&!("manifest"!==b.localName||"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"!==b.namespaceURI)){c=t.rootElement;c.manifest=b;for(b=c.manifest.firstChild;b;)1===b.nodeType&&("file-entry"===b.localName&&"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"===b.namespaceURI)&&(r[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}}t.state!==w.INVALID&&s(w.DONE)})})})})})});else{I=new core.Zip("",null);S=runtime.byteArrayFromString("application/vnd.oasis.opendocument.text","utf8");var N=t.rootElement,P=document.createElementNS(d,"text");I.save("mimetype",S,!1,new Date);N.body=document.createElementNS(d,"body");N.body.appendChild(P);N.appendChild(N.body);s(w.DONE);K=I}};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 29
  odf.Formatting=function(){function g(a){function d(a,d){for(var b=a&&a.firstChild;b&&d;)b=b.nextSibling,d-=1;return b}var b=d(a.startContainer,a.startOffset);d(a.endContainer,a.endOffset);this.next=function(){return null===b?b:null}}function k(a,d){for(var b in d)if(d.hasOwnProperty(b))try{a[b]=d[b].constructor===Object?k(a[b],d[b]):d[b]}catch(c){a[b]=d[b]}return a}function m(a,d,c){for(a=a.firstChild;a;){if(1===a.nodeType&&a.namespaceURI===b.style&&"style"===a.localName&&a.getAttributeNS(b.style,
  "family")===c&&a.getAttributeNS(b.style,"name")===d)return a;a=a.nextSibling}return null}function f(a){for(var d={},c=a.firstChild;c;){if(1===c.nodeType&&c.namespaceURI===b.style){d[c.nodeName]={};for(a=0;a<c.attributes.length;a+=1)d[c.nodeName][c.attributes[a].name]=c.attributes[a].value}c=c.nextSibling}return d}var e,c=new odf.StyleInfo,a=new odf.Style2CSS,b=a.namespaces;this.setOdfContainer=function(a){e=a};this.getFontMap=function(){return a.makeFontFaceDeclsMap(e.rootElement.ownerDocument,e.rootElement.fontFaceDecls)};
  this.isCompletelyBold=function(){return!1};this.getAlignment=function(a){this.getParagraphStyles(a)};this.getParagraphStyles=function(a){var d,b,e,f=[];for(d=0;d<a.length;d+=1){b=void 0;e=[];for(b=(new g(a[d])).next();b;)c.canElementHaveStyle("paragraph",b)&&e.push(b);for(b=0;b<e.length;b+=1)-1===f.indexOf(e[b])&&f.push(e[b])}return f};this.getAvailableParagraphStyles=function(){for(var a=e.rootElement.styles&&e.rootElement.styles.firstChild,d,c,f=[];a;)1===a.nodeType&&("style"===a.localName&&a.namespaceURI===
  b.style)&&(c=a,d=c.getAttributeNS(b.style,"family"),"paragraph"===d&&(d=c.getAttributeNS(b.style,"name"),c=c.getAttributeNS(b.style,"display-name")||d,d&&c&&f.push({name:d,displayName:c}))),a=a.nextSibling;return f};this.isStyleUsed=function(b){var d;d=c.hasDerivedStyles(e.rootElement,a.namespaceResolver,b);b=(new c.UsedStyleList(e.rootElement.styles)).uses(b)||(new c.UsedStyleList(e.rootElement.automaticStyles)).uses(b)||(new c.UsedStyleList(e.rootElement.body)).uses(b);return d||b};this.getStyleElement=
  m;this.getStyleAttributes=f;this.getInheritedStyleAttributes=function(a,d){var c;c={};for(var e={},g=d;g;)c=f(g),e=k(c,e),g=(c=g.getAttributeNS(b.style,"parent-style-name"))?m(a,c,d.getAttributeNS(b.style,"family")):null;a:{c=d.getAttributeNS(b.style,"family");for(g=a.firstChild;g;){if(1===g.nodeType&&g.namespaceURI===b.style&&"default-style"===g.localName&&g.getAttributeNS(b.style,"family")===c){c=g;break a}g=g.nextSibling}c=null}c=f(c);return e=k(c,e)};this.getFirstNamedParentStyleNameOrSelf=function(a){for(var d=
  e.rootElement.automaticStyles,c=e.rootElement.styles,f;null!==(f=m(d,a,"paragraph"));)a=f.getAttributeNS(b.style,"parent-style-name");f=m(c,a,"paragraph");return!f?null:a};this.hasParagraphStyle=function(a){return m(e.rootElement.automaticStyles,a,"paragraph")||m(e.rootElement.styles,a,"paragraph")};this.getParagraphStyleAttribute=function(a,d,c){for(var f=e.rootElement.automaticStyles,g=e.rootElement.styles,j;null!==(j=m(f,a,"paragraph"));){if(a=j.getAttributeNS(d,c))return a;a=j.getAttributeNS(b.style,
  "parent-style-name")}for(;null!==(j=m(g,a,"paragraph"));){if(a=j.getAttributeNS(d,c))return a;a=j.getAttributeNS(b.style,"parent-style-name")}return null};this.getTextStyles=function(){return[]}};
  // Input 30
  runtime.loadClass("odf.OdfContainer");runtime.loadClass("odf.Formatting");runtime.loadClass("xmldom.XPath");
  odf.OdfCanvas=function(){function g(){function a(c){d=!0;runtime.setTimeout(function(){try{c()}catch(e){runtime.log(e)}d=!1;0<b.length&&a(b.pop())},10)}var b=[],d=!1;this.clearQueue=function(){b.length=0};this.addToQueue=function(c){if(0===b.length&&!d)return a(c);b.push(c)}}function k(a){function b(){for(;0<d.cssRules.length;)d.deleteRule(0);d.insertRule("office|presentation draw|page {display:none;}",0);d.insertRule("office|presentation draw|page:nth-child("+c+") {display:block;}",1)}var d=a.sheet,
  c=1;this.showFirstPage=function(){c=1;b()};this.showNextPage=function(){c+=1;b()};this.showPreviousPage=function(){1<c&&(c-=1,b())};this.showPage=function(a){0<a&&(c=a,b())};this.css=a}function m(a,b,d){a.addEventListener?a.addEventListener(b,d,!1):a.attachEvent?a.attachEvent("on"+b,d):a["on"+b]=d}function f(a){function b(a,d){for(;d;){if(d===a)return!0;d=d.parentNode}return!1}function d(){var f=[],j=runtime.getWindow().getSelection(),l,g;for(l=0;l<j.rangeCount;l+=1)g=j.getRangeAt(l),null!==g&&(b(a,
  g.startContainer)&&b(a,g.endContainer))&&f.push(g);if(f.length===c.length){for(j=0;j<f.length&&!(l=f[j],g=c[j],l=l===g?!1:null===l||null===g?!0:l.startContainer!==g.startContainer||l.startOffset!==g.startOffset||l.endContainer!==g.endContainer||l.endOffset!==g.endOffset,l);j+=1);if(j===f.length)return}c=f;var j=[f.length],h,k=a.ownerDocument;for(l=0;l<f.length;l+=1)g=f[l],h=k.createRange(),h.setStart(g.startContainer,g.startOffset),h.setEnd(g.endContainer,g.endOffset),j[l]=h;c=j;j=e.length;for(f=
  0;f<j;f+=1)e[f](a,c)}var c=[],e=[];this.addListener=function(a,b){var d,c=e.length;for(d=0;d<c;d+=1)if(e[d]===b)return;e.push(b)};m(a,"mouseup",d);m(a,"keyup",d);m(a,"keydown",d)}function e(a,b){(new odf.Style2CSS).style2css(b.sheet,a.fontFaceDecls,a.styles,a.automaticStyles)}function c(a){for(a=a.firstChild;a;){if(a.namespaceURI===q&&"binary-data"===a.localName)return"data:image/png;base64,"+a.textContent;a=a.nextSibling}return""}function a(a){var b=a.getElementsByTagName("head")[0],d=a.createElementNS(b.namespaceURI,
  "style"),c="",e;d.setAttribute("type","text/css");d.setAttribute("media","screen, print, handheld, projection");for(e in h)h.hasOwnProperty(e)&&e&&(c+="@namespace "+e+" url("+h[e]+");
  ");d.appendChild(a.createTextNode(c));b.appendChild(d);return d}var b=new odf.Style2CSS,h=b.namespaces,d=h.draw,l=h.fo,q=h.office,p=h.style,j=h.svg,r=h.table,n=h.text,w=h.xlink,x=h.xml,v=runtime.getWindow(),G=new xmldom.XPath;odf.OdfCanvas=function(h){function q(){var a=h.firstChild;a.firstChild&&(1<t?(a.style.MozTransformOrigin=
  "center top",a.style.WebkitTransformOrigin="center top",a.style.OTransformOrigin="center top",a.style.msTransformOrigin="center top"):(a.style.MozTransformOrigin="left top",a.style.WebkitTransformOrigin="left top",a.style.OTransformOrigin="left top",a.style.msTransformOrigin="left top"),a.style.WebkitTransform="scale("+t+")",a.style.MozTransform="scale("+t+")",a.style.OTransform="scale("+t+")",a.style.msTransform="scale("+t+")",h.style.width=Math.round(t*a.offsetWidth)+"px",h.style.height=Math.round(t*
  a.offsetHeight)+"px")}function u(){function a(){for(var f=h;f.firstChild;)f.removeChild(f.firstChild);h.style.display="inline-block";var g=J.rootElement;h.ownerDocument.importNode(g,!0);A.setOdfContainer(J);e(g,B);var k=J,f=Q.sheet,m;m=g.body;var s,t,u;t=[];for(s=m.firstChild;s&&s!==m;)if(s.namespaceURI===d&&(t[t.length]=s),s.firstChild)s=s.firstChild;else{for(;s&&s!==m&&!s.nextSibling;)s=s.parentNode;s&&s.nextSibling&&(s=s.nextSibling)}for(u=0;u<t.length;u+=1){s=t[u];var F="frame"+String(u),y=f;
  s.setAttribute("styleid",F);var z=void 0,I=s.getAttributeNS(n,"anchor-type"),H=s.getAttributeNS(j,"x"),M=s.getAttributeNS(j,"y"),N=s.getAttributeNS(j,"width"),P=s.getAttributeNS(j,"height"),X=s.getAttributeNS(l,"min-height"),$=s.getAttributeNS(l,"min-width");if("as-char"===I)z="display: inline-block;";else if(I||H||M)z="position: absolute;";else if(N||P||X||$)z="display: block;";H&&(z+="left: "+H+";");M&&(z+="top: "+M+";");N&&(z+="width: "+N+";");P&&(z+="height: "+P+";");X&&(z+="min-height: "+X+";");
  $&&(z+="min-width: "+$+";");z&&(z="draw|"+s.localName+'[styleid="'+F+'"] {'+z+"}",y.insertRule(z,y.cssRules.length))}u=G.getODFElementsWithXPath(m,".//*[*[@text:anchor-type='paragraph']]",b.namespaceResolver);for(t=0;t<u.length;t+=1)m=u[t],m.setAttributeNS&&m.setAttributeNS("urn:webodf","containsparagraphanchor",!0);f.insertRule("draw|page { background-color:#fff; }",f.cssRules.length);for(m=h;m.firstChild;)m.removeChild(m.firstChild);m=D.createElementNS(h.namespaceURI,"div");m.style.display="inline-block";
  m.style.background="white";m.appendChild(g);h.appendChild(m);t=g.body.getElementsByTagNameNS(r,"table-cell");for(m=0;m<t.length;m+=1)u=t.item(m),u.hasAttributeNS(r,"number-columns-spanned")&&u.setAttribute("colspan",u.getAttributeNS(r,"number-columns-spanned")),u.hasAttributeNS(r,"number-rows-spanned")&&u.setAttribute("rowspan",u.getAttributeNS(r,"number-rows-spanned"));m=function(a,b){b.hasAttributeNS(w,"href")&&(b.onclick=function(){v.open(b.getAttributeNS(w,"href"))})};u=g.body.getElementsByTagNameNS(n,
  "a");for(t=0;t<u.length;t+=1)F=u.item(t),m(k,F,f);m=function(a,b,d,e){S.addToQueue(function(){var f=function(b){b='draw|image[styleid="'+a+'"] {'+("background-image: url("+b+");")+"}";e.insertRule(b,e.cssRules.length)};d.setAttribute("styleid",a);var j=d.getAttributeNS(w,"href"),g;if(j)try{b.getPartUrl?(j=b.getPartUrl(j),f(j)):(g=b.getPart(j),g.onchange=function(a){f(a.url)},g.load())}catch(l){runtime.log("slight problem: "+l)}else j=c(d),f(j)})};u=g.body.getElementsByTagNameNS(d,"image");for(t=0;t<
  u.length;t+=1)F=u.item(t),m("image"+String(t),k,F,f);m=function(a,b,d){S.addToQueue(function(){var a=function(a,b){var c=g.documentElement.namespaceURI;"video/"===b.substr(0,6)?(e=g.createElementNS(c,"video"),e.setAttribute("controls","controls"),f=g.createElementNS(c,"source"),f.setAttribute("src",a),f.setAttribute("type",b),e.appendChild(f),d.parentNode.appendChild(e)):d.innerHtml="Unrecognised Plugin"},e,f,j,g=d.ownerDocument,l;if(j=d.getAttributeNS(w,"href"))try{b.getPartUrl?(j=b.getPartUrl(j),
  a(j,"video/mp4")):(l=b.getPart(j),l.onchange=function(b){a(b.url,b.mimetype)},l.load())}catch(h){runtime.log("slight problem: "+h)}else runtime.log("using MP4 data fallback"),j=c(d),a(j,"video/mp4")})};u=g.body.getElementsByTagNameNS(d,"plugin");for(t=0;t<u.length;t+=1)F=u.item(t),m("video"+String(t),k,F,f);t=g.body;k={};m={};var O;u=v.document.getElementsByTagNameNS(n,"list-style");for(g=0;g<u.length;g+=1)y=u.item(g),(z=y.getAttributeNS(p,"name"))&&(m[z]=y);t=t.getElementsByTagNameNS(n,"list");for(g=
  0;g<t.length;g+=1)if(y=t.item(g),u=y.getAttributeNS(x,"id")){F=y.getAttributeNS(n,"continue-list");y.setAttribute("id",u);s="text|list#"+u+" > text|list-item > *:first-child:before {";if(z=y.getAttributeNS(n,"style-name"))y=m[z],O=y.firstChild,y=void 0,"list-level-style-number"===O.localName?(y=O.getAttributeNS(p,"num-format"),z=O.getAttributeNS(p,"num-suffix"),I="",I={1:"decimal",a:"lower-latin",A:"upper-latin",i:"lower-roman",I:"upper-roman"},H=void 0,H=O.getAttributeNS(p,"num-prefix")||"",H=I.hasOwnProperty(y)?
  H+(" counter(list, "+I[y]+")"):y?H+("'"+y+"';"):H+" ''",z&&(H+=" '"+z+"'"),y=I="content: "+H+";"):"list-level-style-image"===O.localName?y="content: none;":"list-level-style-bullet"===O.localName&&(y="content: '"+O.getAttributeNS(n,"bullet-char")+"';"),O=y;if(F){for(y=k[F];y;)F=y,y=k[F];s+="counter-increment:"+F+";";O?(O=O.replace("list",F),s+=O):s+="content:counter("+F+");"}else F="",O?(O=O.replace("list",u),s+=O):s+="content: counter("+u+");",s+="counter-increment:"+u+";",f.insertRule("text|list#"+
  u+" {counter-reset:"+u+"}",f.cssRules.length);s+="}";k[u]=F;s&&f.insertRule(s,f.cssRules.length)}q();f=[J];if(K.hasOwnProperty("statereadychange")){O=K.statereadychange;for(g=0;g<O.length;g+=1)O[g].apply(null,f)}}J.state===odf.OdfContainer.DONE?a():(runtime.log("WARNING: refreshOdf called but ODF was not DONE."),runtime.setTimeout(function V(){J.state===odf.OdfContainer.DONE?a():(runtime.log("will be back later..."),runtime.setTimeout(V,500))},100))}function s(){if(I){for(var a=I.ownerDocument.createDocumentFragment();I.firstChild;)a.insertBefore(I.firstChild,
  null);I.parentNode.replaceChild(a,I)}}var D=h.ownerDocument,J,A=new odf.Formatting,z=new f(h),y,B,Q,M=!1,t=1,K={},I,S=new g,N=D,P=N.getElementsByTagName("head")[0],H;"undefined"!==String(typeof webodf_css)?(H=N.createElementNS(P.namespaceURI,"style"),H.setAttribute("media","screen, print, handheld, projection"),H.appendChild(N.createTextNode(webodf_css))):(H=N.createElementNS(P.namespaceURI,"link"),N="webodf.css",runtime.currentDirectory&&(N=runtime.currentDirectory()+"/../"+N),H.setAttribute("href",
  N),H.setAttribute("rel","stylesheet"));H.setAttribute("type","text/css");P.appendChild(H);y=new k(a(D));B=a(D);Q=a(D);this.refreshCSS=function(){e(J.rootElement,B)};this.odfContainer=function(){return J};this.slidevisibilitycss=function(){return y.css};this.setOdfContainer=function(a){J=a;u()};this.load=this.load=function(a){S.clearQueue();h.innerHTML="loading "+a;h.removeAttribute("style");J=new odf.OdfContainer(a,function(a){J=a;u()})};this.save=function(a){s();J.save(a)};this.setEditable=function(a){(M=
  a)||s()};this.addListener=function(a,b){switch(a){case "selectionchange":z.addListener(a,b);break;case "click":m(h,a,b);break;default:var d=K[a];void 0===d&&(d=K[a]=[]);b&&-1===d.indexOf(b)&&d.push(b)}};this.getFormatting=function(){return A};this.setZoomLevel=function(a){t=a;q()};this.getZoomLevel=function(){return t};this.fitToContainingElement=function(a,b){var d=h.offsetHeight/t;t=a/(h.offsetWidth/t);b/d<t&&(t=b/d);q()};this.fitToWidth=function(a){t=a/(h.offsetWidth/t);q()};this.fitSmart=function(a,
  b){var d,c;d=h.offsetWidth/t;c=h.offsetHeight/t;d=a/d;void 0!==b&&b/c<d&&(d=b/c);t=Math.min(1,d);q()};this.fitToHeight=function(a){t=a/(h.offsetHeight/t);q()};this.showFirstPage=function(){y.showFirstPage()};this.showNextPage=function(){y.showNextPage()};this.showPreviousPage=function(){y.showPreviousPage()};this.showPage=function(a){y.showPage(a)};this.showAllPages=function(){};this.getElement=function(){return h}};return odf.OdfCanvas}();
  // Input 31
  runtime.loadClass("odf.OdfCanvas");
  odf.CommandLineTools=function(){this.roundTrip=function(g,k,m){new odf.OdfContainer(g,function(f){if(f.state===odf.OdfContainer.INVALID)return m("Document "+g+" is invalid.");f.state===odf.OdfContainer.DONE?f.saveAs(k,function(e){m(e)}):m("Document was not completely loaded.")})};this.render=function(g,k,m){for(k=k.getElementsByTagName("body")[0];k.firstChild;)k.removeChild(k.firstChild);k=new odf.OdfCanvas(k);k.addListener("statereadychange",function(f){m(f)});k.load(g)}};
  // Input 32
  ops.Operation=function(){};
  // Input 33
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  ops.OpAddCursor=function(g){var k,m;this.init=function(f){k=f.memberid;m=f.timestamp};this.execute=function(){var f=g.getOdtDocument(),e=new ops.OdtCursor(k,f);f.addCursor(e);g.emit(ops.Session.signalCursorAdded,e)};this.spec=function(){return{optype:"AddCursor",memberid:k,timestamp:m}}};
  // Input 34
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  ops.OpRemoveCursor=function(g){var k,m;this.init=function(f){k=f.memberid;m=f.timestamp};this.execute=function(){g.getOdtDocument().removeCursor(k);g.emit(ops.Session.signalCursorRemoved,k)};this.spec=function(){return{optype:"RemoveCursor",memberid:k,timestamp:m}}};
  // Input 35
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  ops.OpMoveCursor=function(g){var k,m,f;this.init=function(e){k=e.memberid;m=e.timestamp;f=e.number};this.execute=function(){var e=g.getOdtDocument(),c=e.getCursor(k),e=e.getPositionFilter(),a;runtime.assert(void 0!==c,"cursor for ["+k+"] not found (MoveCursor).");a=c.getStepCounter();if(0<f)e=a.countForwardSteps(f,e);else if(0>f)e=-a.countBackwardSteps(-f,e);else return;c.move(e);g.emit(ops.Session.signalCursorMoved,c)};this.spec=function(){return{optype:"MoveCursor",memberid:k,timestamp:m,number:f}}};
  // Input 36
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  ops.OpInsertText=function(g){var k,m,f,e;this.init=function(c){k=c.memberid;m=c.timestamp;f=c.position;e=c.text};this.execute=function(){g.getOdtDocument().insertText(k,m,f,e)};this.spec=function(){return{optype:"InsertText",memberid:k,timestamp:m,position:f,text:e}}};
  // Input 37
  ops.OpRemoveText=function(g){var k,m,f,e,c;this.init=function(a){k=a.memberid;m=a.timestamp;f=a.position;e=a.length;c=a.text};this.execute=function(){g.getOdtDocument().removeText(k,m,f,e)};this.spec=function(){return{optype:"RemoveText",memberid:k,timestamp:m,position:f,length:e,text:c}}};
  // Input 38
  ops.OpSplitParagraph=function(g){var k,m,f;this.init=function(e){k=e.memberid;m=e.timestamp;f=e.position};this.execute=function(){var e=g.getOdtDocument(),c,a,b,h,d;if(c=e.getPositionInTextNode(f))if(a=e.getParagraphElement(c.textNode)){0===c.offset?(d=c.textNode.previousSibling,b=null):(c.textNode.nextSibling&&("urn:webodf:names:cursor"===c.textNode.nextSibling.namespaceURI&&"cursor"===c.textNode.nextSibling.localName)&&(b=c.textNode.cloneNode(!1),c.textNode.parentNode.insertBefore(b,c.textNode),
  c.textNode.parentNode.removeChild(c.textNode),c.textNode="",c.textNode=b),d=c.textNode,b=c.offset>=c.textNode.length?null:c.textNode.splitText(c.offset));for(c=c.textNode;c!==a;)if(c=c.parentNode,h=c.cloneNode(!1),d){for(b&&h.appendChild(b);d.nextSibling;)h.appendChild(d.nextSibling);c.parentNode.insertBefore(h,c.nextSibling);d=c;b=h}else c.parentNode.insertBefore(h,c),d=h,b=c;e.emit("paragraphEdited",{element:a,memberId:k,timeStamp:m});e.emit("paragraphEdited",{element:b,memberId:k,timeStamp:m})}};
  this.spec=function(){return{optype:"SplitParagraph",memberid:k,timestamp:m,position:f}}};
  // Input 39
  ops.OpSetParagraphStyle=function(g){var k,m,f,e,c;this.init=function(a){k=a.memberid;m=a.timestamp;f=a.position;e=a.styleNameBefore;c=a.styleNameAfter};this.execute=function(){var a,b=g.getOdtDocument();b.setParagraphStyle(k,m,f,e,c);if(a=b.getPositionInTextNode(f))a=b.getParagraphElement(a.textNode),g.emit(ops.Session.signalParagraphChanged,a)};this.spec=function(){return{optype:"SetParagraphStyle",memberid:k,timestamp:m,position:f,styleNameBefore:e,styleNameAfter:c}}};
  // Input 40
  ops.OpUpdateParagraphStyle=function(g){var k,m,f,e,c;this.init=function(a){k=a.memberid;m=a.timestamp;f=a.position;e=a.styleName;c=a.info};this.execute=function(){g.getOdtDocument().updateParagraphStyle(e,c);g.emit(ops.Session.signalParagraphStyleModified,e)};this.spec=function(){return{optype:"UpdateParagraphStyle",memberid:k,timestamp:m,position:f,styleName:e,info:c}}};
  // Input 41
  ops.OpCloneStyle=function(g){var k,m,f,e,c;this.init=function(a){k=a.memberid;m=a.timestamp;f=a.styleName;e=a.newStyleName;c=a.newStyleDisplayName};this.execute=function(){var a=g.getOdtDocument(),b=a.getParagraphStyleElement(f),h=b.cloneNode(!0);h.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:name",e);h.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:display-name",c);b.parentNode.appendChild(h);a.getOdfCanvas().refreshCSS();g.emit(ops.Session.signalStyleCreated,
  e)};this.spec=function(){return{optype:"CloneStyle",memberid:k,timestamp:m,styleName:f,newStyleName:e,newStyleDisplayName:c}}};
  // Input 42
  ops.OpDeleteStyle=function(g){var k,m,f;this.init=function(e){k=e.memberid;m=e.timestamp;f=e.styleName};this.execute=function(){g.getOdtDocument().deleteStyle(f);g.emit(ops.Session.signalStyleDeleted,f)};this.spec=function(){return{optype:"DeleteStyle",memberid:k,timestamp:m,styleName:f}}};
  // Input 43
  runtime.loadClass("ops.OpAddCursor");runtime.loadClass("ops.OpRemoveCursor");runtime.loadClass("ops.OpMoveCursor");runtime.loadClass("ops.OpInsertText");runtime.loadClass("ops.OpRemoveText");runtime.loadClass("ops.OpSplitParagraph");runtime.loadClass("ops.OpSetParagraphStyle");runtime.loadClass("ops.OpUpdateParagraphStyle");runtime.loadClass("ops.OpCloneStyle");runtime.loadClass("ops.OpDeleteStyle");
  ops.OperationFactory=function(g){this.create=function(k){var m=null;"AddCursor"===k.optype?m=new ops.OpAddCursor(g):"InsertText"===k.optype?m=new ops.OpInsertText(g):"RemoveText"===k.optype?m=new ops.OpRemoveText(g):"SplitParagraph"===k.optype?m=new ops.OpSplitParagraph(g):"SetParagraphStyle"===k.optype?m=new ops.OpSetParagraphStyle(g):"UpdateParagraphStyle"===k.optype?m=new ops.OpUpdateParagraphStyle(g):"CloneStyle"===k.optype?m=new ops.OpCloneStyle(g):"DeleteStyle"===k.optype?m=new ops.OpDeleteStyle(g):
  "MoveCursor"===k.optype?m=new ops.OpMoveCursor(g):"RemoveCursor"===k.optype&&(m=new ops.OpRemoveCursor(g));m&&m.init(k);return m}};
  // Input 44
  runtime.loadClass("core.Cursor");
  ops.OdtCursor=function(g,k){var m=this,f,e;this.removeFromOdtDocument=function(){e.remove(function(){})};this.move=function(a){var b=0;0<a?b=f.movePointForward(a):0>=a&&(b=-f.movePointBackward(-a));m.handleUpdate();return b};this.handleUpdate=function(){};this.getStepCounter=function(){return f.getStepCounter()};this.getMemberId=function(){return g};this.getNode=function(){return e.getNode()};this.getSelection=function(){return e.getSelection()};this.getOdtDocument=function(){return k};var c;c=new core.Selection(k.getDOM());
  e=new core.Cursor(c,k.getDOM());e.getNode().setAttributeNS("urn:webodf:names:cursor","memberId",g);f=k.getSelectionManager().createSelectionMover(e)};
  // Input 45
  runtime.loadClass("core.Cursor");runtime.loadClass("core.PositionIterator");runtime.loadClass("core.PositionFilter");runtime.loadClass("core.LoopWatchDog");
  gui.SelectionMover=function(g,k,m,f){function e(a,b,d){b=a;f=f||q.adaptToCursorRemoval;m=m||q.adaptToInsertedCursor;for(g.remove(f);0<b&&d();)b-=1;0<a-b&&p.collapse(j.container(),j.unfilteredDomOffset());g.updateToSelection(f,m);return a-b}function c(a,b){for(var d=j.container(),c=j.offset(),e=new core.LoopWatchDog(1E3),f=0,g=0;0<a&&j.nextPosition();)f+=1,e.check(),1===b.acceptPosition(j)&&(g+=f,f=0,a-=1);j.setPosition(d,c);return g}function a(a,b){for(var d=j.container(),c=j.offset(),e=new core.LoopWatchDog(1E3),
  f=0,g=0;0<a&&j.previousPosition();)f+=1,e.check(),1===b.acceptPosition(j)&&(g+=f,f=0,a-=1);j.setPosition(d,c);return g}function b(a,b){for(var d=j.container(),c=j.offset(),e,f=0,g=d.ownerDocument.createRange();0<a;){var l=g,h=b,k=j.container(),m=j.offset(),p=0,q=0,z=null,y=void 0,B=void 0,Q=0,M=void 0,t=void 0,K=void 0,I=void 0,M=void 0;l.setStart(k,m);M=l.getClientRects()[0];I=t=M.top;for(K=M.left;j.previousPosition();)if(p+=1,1===h.acceptPosition(j)&&(q+=p,p=0,k=j.container(),m=j.offset(),l.setStart(k,
  m),M=l.getClientRects()[0],M.top!==t)){if(M.top!==I)break;I=t;M=Math.abs(K-M.left);if(null===z||M<B)z=k,y=m,B=M,Q=q}null!==z?(j.setPosition(z,y),q=Q):q=0;e+=q;if(0===e)break;f+=e;a-=1}g.detach();j.setPosition(d,c);return f}function h(a,b){var d=j.container(),c=j.offset(),e=g.getNode().firstChild,l=new core.LoopWatchDog(1E3),h=0,k=0,u=e.offsetTop;f=f||q.adaptToCursorRemoval;for(m=m||q.adaptToInsertedCursor;0<a&&j.nextPosition();)l.check(),h+=1,1===b.acceptPosition(j)&&(p.collapse(j.container(),j.offset()),
  g.updateToSelection(f,m),u=e.offsetTop,u!==e.offsetTop&&(k+=h,h=0,a-=1));j.setPosition(d,c);p.collapse(j.container(),j.offset());g.updateToSelection(f,m);return k}function d(a,b){for(var d=0,c;a.parentNode!==b;)runtime.assert(null!==a.parentNode,"parent is null"),a=a.parentNode;for(c=b.firstChild;c!==a;)d+=1,c=c.nextSibling;return d}function l(a,b,c){runtime.assert(null!==a,"SelectionMover.countStepsToPosition called with element===null");var e=j.container(),f=j.offset(),g=0,l=new core.LoopWatchDog(1E3),
  h;j.setPosition(a,b);a=j.container();runtime.assert(null!==a,"SelectionMover.countStepsToPosition: positionIterator.container() returned null");b=j.offset();j.setPosition(e,f);h=a;var k=b,m=f;if(h===e)h=m-k;else{var p=h.compareDocumentPosition(e);2===p?p=-1:4===p?p=1:10===p?(k=d(h,e),p=k<m?1:-1):(m=d(e,h),p=m<k?-1:1);h=p}if(0>h){for(;j.nextPosition();)if(l.check(),1===c.acceptPosition(j)&&(g+=1),j.container()===a&&j.offset()===b)return j.setPosition(e,f),g;j.setPosition(e,f)}else if(0<h){for(;j.previousPosition();)if(l.check(),
  1===c.acceptPosition(j)&&(g-=1),j.container()===a&&j.offset()===b)return j.setPosition(e,f),g;j.setPosition(e,f)}return g}var q=this,p=g.getSelection(),j;this.movePointForward=function(a,b){return e(a,b,j.nextPosition)};this.movePointBackward=function(a,b){return e(a,b,j.previousPosition)};this.getStepCounter=function(){return{countForwardSteps:c,countBackwardSteps:a,countLineDownSteps:h,countLinesUpSteps:b,countStepsToPosition:l}};this.adaptToCursorRemoval=function(a,b){if(!(0===b||null===a||3!==
  a.nodeType)){var d=j.container();d===a&&j.setPosition(d,j.offset()+b)}};this.adaptToInsertedCursor=function(a,b){if(!(0===b||null===a||3!==a.nodeType)){var d=j.container(),c=j.offset();if(d===a)if(c<b){do d=d.previousSibling;while(d&&3!==d.nodeType);d&&j.setPosition(d,c)}else j.setPosition(d,j.offset()-b)}};j=gui.SelectionMover.createPositionIterator(k);p.collapse(j.container(),j.offset());f=f||q.adaptToCursorRemoval;m=m||q.adaptToInsertedCursor;g.updateToSelection(f,m)};
  gui.SelectionMover.createPositionIterator=function(g){var k=new function(){this.acceptNode=function(g){return"urn:webodf:names:cursor"===g.namespaceURI||"urn:webodf:names:editinfo"===g.namespaceURI?2:1}};return new core.PositionIterator(g,5,k,!1)};(function(){return gui.SelectionMover})();
  // Input 46
  gui.Avatar=function(g){var k,m;this.setColor=function(c){m.style.borderColor=c};this.setImageUrl=function(c){m.src=c};this.isVisible=function(){return"block"===k.style.display};this.show=function(){k.style.display="block"};this.hide=function(){k.style.display="none"};this.markAsFocussed=function(c){k.className=c?"active":""};var f=g.ownerDocument,e=f.documentElement.namespaceURI;k=f.createElementNS(e,"div");m=f.createElementNS(e,"img");m.width=64;m.height=64;k.appendChild(m);k.style.width="64px";
  k.style.height="70px";k.style.position="absolute";k.style.top="-80px";k.style.left="-34px";k.style.display="block";g.appendChild(k)};
  // Input 47
  runtime.loadClass("gui.Avatar");runtime.loadClass("ops.OdtCursor");
  gui.Caret=function(g){function k(){a&&c.parentNode&&!b&&(b=!0,f.style.borderColor="transparent"===f.style.borderColor?h:"transparent",runtime.setTimeout(function(){b=!1;k()},500))}function m(a){var b;if("string"===typeof a){if(""===a)return 0;b=/^(\d+)(\.\d+)?px$/.exec(a);runtime.assert(null!==b,"size ["+a+"] does not have unit px.");return parseFloat(b[1])}return a}var f,e,c,a=!1,b=!1,h="";this.setFocus=function(){a=!0;e.markAsFocussed(!0);k()};this.removeFocus=function(){a=!1;e.markAsFocussed(!1);
  f.style.borderColor=h};this.setAvatarImageUrl=function(a){e.setImageUrl(a)};this.setColor=function(a){h!==a&&(h=a,"transparent"!==f.style.borderColor&&(f.style.borderColor=h),e.setColor(h))};this.getCursor=function(){return g};this.getFocusElement=function(){return f};this.toggleHandleVisibility=function(){e.isVisible()?e.hide():e.show()};this.showHandle=function(){e.show()};this.hideHandle=function(){e.hide()};this.ensureVisible=function(){var a,b,d,c,e,h,k,x=g.getOdtDocument().getOdfCanvas().getElement().parentNode;
  e=k=f;d=runtime.getWindow();runtime.assert(null!==d,"Expected to be run in an environment which has a global window, like a browser.");do{e=e.parentElement;if(!e)break;h=d.getComputedStyle(e,null)}while("block"!==h.display);h=e;e=c=0;if(!h||!x)c=d=0;else{b=!1;do{d=h.offsetParent;for(a=h.parentNode;a!==d;){if(a===x){a=h;var v=x,G=0;b=0;var C=void 0,E=runtime.getWindow();for(runtime.assert(null!==E,"Expected to be run in an environment which has a global window, like a browser.");a&&a!==v;)C=E.getComputedStyle(a,
  null),G+=m(C.marginLeft)+m(C.borderLeftWidth)+m(C.paddingLeft),b+=m(C.marginTop)+m(C.borderTopWidth)+m(C.paddingTop),a=a.parentElement;a=G;c+=a;e+=b;b=!0;break}a=a.parentNode}if(b)break;c+=m(h.offsetLeft);e+=m(h.offsetTop);h=d}while(h&&h!==x);d=c;c=e}d+=k.offsetLeft;c+=k.offsetTop;e=d-5;h=c-5;d=d+k.scrollWidth-1+5;k=c+k.scrollHeight-1+5;h<x.scrollTop?x.scrollTop=h:k>x.scrollTop+x.clientHeight-1&&(x.scrollTop=k-x.clientHeight+1);e<x.scrollLeft?x.scrollLeft=e:d>x.scrollLeft+x.clientWidth-1&&(x.scrollLeft=
  d-x.clientWidth+1)};var d=g.getOdtDocument().getDOM();f=d.createElementNS(d.documentElement.namespaceURI,"span");c=g.getNode();c.appendChild(f);e=new gui.Avatar(c)};
  // Input 48
  runtime.loadClass("ops.OpAddCursor");runtime.loadClass("ops.OpRemoveCursor");runtime.loadClass("ops.OpMoveCursor");runtime.loadClass("ops.OpInsertText");runtime.loadClass("ops.OpRemoveText");runtime.loadClass("ops.OpSplitParagraph");runtime.loadClass("ops.OpSetParagraphStyle");
  gui.SessionController=function(){gui.SessionController=function(g,k){function m(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function f(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function e(a){f(a)}function c(){var a=runtime.getWindow().getSelection(),b,c=g.getOdtDocument(),e=c.getOdfCanvas().getElement();for(b=a.focusNode;b!==e;){if("urn:webodf:names:cursor"===b.namespaceURI&&"cursor"===b.localName)return;b=b.parentNode}a=c.getDistanceFromCursor(k,
  a.focusNode,a.focusOffset);0!==a&&(b=new ops.OpMoveCursor(g),b.init({memberid:k,number:a}),g.enqueue(b))}function a(a){var b=new ops.OpMoveCursor(g);b.init({memberid:k,number:a});return b}function b(b){var c=b.keyCode,e=null,h=!1;37===c?(e=a(-1),h=!0):39===c?(e=a(1),h=!0):38===c?(e=a(-10),h=!0):40===c?(e=a(10),h=!0):36===c?(e=g.getOdtDocument(),c=null,h=e.getParagraphElement(e.getCursor(k).getNode()),e=e.getDistanceFromCursor(k,h,0),0!==e&&(c=new ops.OpMoveCursor(g),c.init({memberid:k,number:e})),
  e=c,h=!0):35===c?h=!0:8===c?(c=g.getOdtDocument(),e=c.getCursorPosition(k),h=null,c.getPositionInTextNode(e-1)&&(h=new ops.OpRemoveText(g),h.init({memberid:k,position:e,length:-1})),e=h,h=null!==e):46===c&&(c=g.getOdtDocument(),e=c.getCursorPosition(k),h=null,c.getPositionInTextNode(e+1)&&(h=new ops.OpRemoveText(g),h.init({memberid:k,position:e,length:1})),e=h,h=null!==e);e&&g.enqueue(e);h&&f(b)}function h(a){var b,c;c=null===a.which?String.fromCharCode(a.keyCode):0!==a.which&&0!==a.charCode?String.fromCharCode(a.which):
  null;13===a.keyCode?(b=g.getOdtDocument().getCursorPosition(k),c=new ops.OpSplitParagraph(g),c.init({memberid:k,position:b}),g.enqueue(c),f(a)):c&&(!a.altKey&&!a.ctrlKey&&!a.metaKey)&&(b=new ops.OpInsertText(g),b.init({memberid:k,position:g.getOdtDocument().getCursorPosition(k),text:c}),g.enqueue(b),f(a))}new odf.Style2CSS;this.startListening=function(){var a=g.getOdtDocument().getOdfCanvas().getElement();m(a,"keydown",b);m(a,"keypress",h);m(a,"keyup",e);m(a,"copy",e);m(a,"cut",e);m(a,"paste",e);
  m(a,"click",c)};this.startEditing=function(){var a=new ops.OpAddCursor(g);a.init({memberid:k});g.enqueue(a)};this.endEditing=function(){var a=new ops.OpRemoveCursor(g);a.init({memberid:k});g.enqueue(a)};this.getInputMemberId=function(){return k};this.getSession=function(){return g}};return gui.SessionController}();
  // Input 49
  runtime.loadClass("gui.SelectionMover");gui.SelectionManager=function(g){function k(e,c){var a;for(a=0;a<f.length;a+=1)f[a].adaptToCursorRemoval(e,c)}function m(e,c){var a;for(a=0;a<f.length;a+=1)f[a].adaptToInsertedCursor(e,c)}var f=[];this.createSelectionMover=function(e){e=new gui.SelectionMover(e,g,m,k);f.push(e);return e}};
  // Input 50
  ops.UserModel=function(){};ops.UserModel.prototype.getUserDetailsAndUpdates=function(){};ops.UserModel.prototype.unsubscribeUserDetailsUpdates=function(){};
  // Input 51
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  ops.TrivialUserModel=function(){var g={bob:{memberid:"bob",fullname:"Bob Pigeon",color:"red",imageurl:"avatar-pigeon.png"},alice:{memberid:"alice",fullname:"Alice Bee",color:"green",imageurl:"avatar-flower.png"},you:{memberid:"you",fullname:"I, Robot",color:"blue",imageurl:"avatar-joe.png"}};this.getUserDetailsAndUpdates=function(k,m){var f=k.split("___")[0];m(k,g[f]||null)};this.unsubscribeUserDetailsUpdates=function(){}};
  // Input 52
  ops.NowjsUserModel=function(){var g={},k={},m=runtime.getNetwork();this.getUserDetailsAndUpdates=function(f,e){var c=f.split("___")[0],a=g[c],b=k[c]=k[c]||[],h;runtime.assert(void 0!==e,"missing callback");for(h=0;h<b.length&&!(b[h].subscriber===e&&b[h].memberId===f);h+=1);h<b.length?runtime.log("double subscription request for "+f+" in NowjsUserModel::getUserDetailsAndUpdates"):b.push({memberId:f,subscriber:e});void 0===a?m.getUserData(c,function(a){a=a?{userid:a.uid,fullname:a.fullname,imageurl:"/user/"+
  a.uid+"/avatar.png",color:a.color}:null;var b,e;g[c]=a;if(b=k[c])for(e=0;e<b.length;e+=1)b[e].subscriber(b[e].memberId,a);runtime.log("data for user ["+c+"] cached.")}):e(f,a)};this.unsubscribeUserDetailsUpdates=function(f,e){var c;c=f.split("___")[0];var a=k[c];runtime.assert(void 0!==e,"missing subscriber parameter or null");runtime.assert(a,"tried to unsubscribe when no one is subscribed ('"+f+"')");if(a){for(c=0;c<a.length&&!(a[c].subscriber===e&&a[c].memberId===f);c+=1);runtime.assert(c<a.length,
  "tried to unsubscribe when not subscribed for memberId '"+f+"'");a.splice(c,1)}};runtime.assert("ready"===m.networkStatus,"network not ready")};
  // Input 53
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  ops.TrivialOperationRouter=function(){var g=this;this.setOperationFactory=function(k){g.op_factory=k};this.setPlaybackFunction=function(k){g.playback_func=k};this.push=function(k){k=k.spec();k.timestamp=(new Date).getTime();k=g.op_factory.create(k);g.playback_func(k)}};
  // Input 54
  ops.NowjsOperationRouter=function(g,k){function m(d){var e;e=f.op_factory.create(d);runtime.log(" op in: "+runtime.toJson(d));if(null!==e)if(d=Number(d.server_seq),runtime.assert(!isNaN(d),"server seq is not a number"),d===c+1){f.playback_func(e);c=d;b=0;for(e=c+1;a.hasOwnProperty(e);e+=1)f.playback_func(a[e]),delete a[e],runtime.log("op with server seq "+d+" taken from hold (reordered)")}else runtime.assert(d!==c+1,"received incorrect order from server"),runtime.assert(!a.hasOwnProperty(d),"reorder_queue has incoming op"),
  runtime.log("op with server seq "+d+" put on hold"),a[d]=e;else runtime.log("ignoring invalid incoming opspec: "+d)}var f=this,e=runtime.getNetwork(),c=-1,a={},b=0,h=1E3;this.setOperationFactory=function(a){f.op_factory=a};this.setPlaybackFunction=function(a){f.playback_func=a};e.ping=function(a){null!==k&&a(k)};e.receiveOp=function(a,b){a===g&&m(b)};this.push=function(a){a=a.spec();runtime.assert(null!==k,"Router sequence N/A without memberid");h+=1;a.client_nonce="C:"+k+":"+h;a.parent_op=c+"+"+
  b;b+=1;runtime.log("op out: "+runtime.toJson(a));e.deliverOp(g,a)};this.requestReplay=function(a){e.requestReplay(g,function(a){runtime.log("replaying: "+runtime.toJson(a));m(a)},function(b){runtime.log("replay done ("+b+" ops).");a&&a()})};e.memberid=k;e.joinSession(g,function(a){runtime.assert(a,"Trying to join a session which does not exists or where we are already in")})};
  // Input 55
  gui.EditInfoHandle=function(g){var k=[],m,f=g.ownerDocument,e=f.documentElement.namespaceURI;this.setEdits=function(c){k=c;var a,b,g,d;m.innerHTML="";for(c=0;c<k.length;c+=1)a=f.createElementNS(e,"div"),a.className="editInfo",b=f.createElementNS(e,"span"),b.className="editInfoColor",b.setAttributeNS("urn:webodf:names:editinfo","editinfo:memberid",k[c].memberid),g=f.createElementNS(e,"span"),g.className="editInfoAuthor",g.setAttributeNS("urn:webodf:names:editinfo","editinfo:memberid",k[c].memberid),
  d=f.createElementNS(e,"span"),d.className="editInfoTime",d.setAttributeNS("urn:webodf:names:editinfo","editinfo:memberid",k[c].memberid),d.innerHTML=k[c].time,a.appendChild(b),a.appendChild(g),a.appendChild(d),m.appendChild(a)};this.show=function(){m.style.display="block"};this.hide=function(){m.style.display="none"};m=f.createElementNS(e,"div");m.setAttribute("class","editInfoHandle");m.style.display="none";g.appendChild(m)};
  // Input 56
  runtime.loadClass("core.EditInfo");runtime.loadClass("gui.EditInfoHandle");
  gui.EditInfoMarker=function(g){function k(a,b){return window.setTimeout(function(){c.style.opacity=a},b)}var m=this,f,e,c,a,b;this.addEdit=function(f,d){var l=Date.now()-d;g.addEdit(f,d);e.setEdits(g.getSortedEdits());c.setAttributeNS("urn:webodf:names:editinfo","editinfo:memberid",f);a&&window.clearTimeout(a);b&&window.clearTimeout(b);1E4>l?(k(1,0),a=k(0.5,1E4-l),b=k(0.2,2E4-l)):1E4<=l&&2E4>l?(k(0.5,0),b=k(0.2,2E4-l)):k(0.2,0)};this.getEdits=function(){return g.getEdits()};this.clearEdits=function(){g.clearEdits();
  e.setEdits([]);c.hasAttributeNS("urn:webodf:names:editinfo","editinfo:memberid")&&c.removeAttributeNS("urn:webodf:names:editinfo","editinfo:memberid")};this.getEditInfo=function(){return g};this.showHandle=function(){e.show()};this.hideHandle=function(){e.hide()};f=g.getOdtDocument().getDOM();c=f.createElementNS(f.documentElement.namespaceURI,"div");c.setAttribute("class","editInfoMarker");c.onmouseover=function(){m.showHandle()};c.onmouseout=function(){m.hideHandle()};f=g.getNode();f.appendChild(c);
  e=new gui.EditInfoHandle(f)};
  // Input 57
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  runtime.loadClass("gui.Caret");runtime.loadClass("ops.TrivialUserModel");runtime.loadClass("core.EditInfo");runtime.loadClass("gui.EditInfoMarker");
  gui.SessionView=function(){return function(g,k){function m(a,b,c){c=c.split("___")[0];return a+"."+b+'[editinfo|memberid^="'+c+'"]'}function f(b,f){var g=e[b];if(void 0===f)runtime.log('UserModel sent undefined data for member "'+b+'".');else if(null===f&&(f={memberid:b,fullname:"Unknown Identity",color:"black",imageurl:"avatar-joe.png"}),g&&(g.setAvatarImageUrl(f.imageurl),g.setColor(f.color)),a){var g=f.fullname,h=f.color,j=function(a,e,f){f=m(a,e,b)+f;a:{var j=c.firstChild;for(a=m(a,e,b);j;){if(3===
  j.nodeType&&0===j.data.indexOf(a)){a=j;break a}j=j.nextSibling}a=null}a?a.data=f:c.appendChild(document.createTextNode(f))};j("div","editInfoMarker","{ background-color: "+h+"; }");j("span","editInfoColor","{ background-color: "+h+"; }");j("span","editInfoAuthor",':before { content: "'+g+'"; }')}}var e={},c,a=!0,b={};g.getOdtDocument().subscribe("paragraphEdited",function(a){var c=a.element,e=a.memberId;a=a.timeStamp;var f,j="";g.getUserModel();var h=c.getElementsByTagNameNS("urn:webodf:names:editinfo",
  "editinfo")[0];h?(j=h.getAttributeNS("urn:webodf:names:editinfo","id"),f=b[j]):(j=Math.random().toString(),f=new core.EditInfo(c,g.getOdtDocument()),f=new gui.EditInfoMarker(f),h=c.getElementsByTagNameNS("urn:webodf:names:editinfo","editinfo")[0],h.setAttributeNS("urn:webodf:names:editinfo","id",j),b[j]=f);f.addEdit(e,new Date(a))});this.enableEditHighlighting=function(){a||(a=!0)};this.disableEditHighlighting=function(){a&&(a=!1)};this.getSession=function(){return g};this.getCaret=function(a){return e[a]};
  var h=document.getElementsByTagName("head")[0];g.subscribe(ops.Session.signalCursorAdded,function(a){var b=k.createCaret(a);a=a.getMemberId();var c=g.getUserModel();e[a]=b;f(a,null);c.getUserDetailsAndUpdates(a,f);runtime.log("+++ View here +++ eagerly created an Caret for '"+a+"'! +++")});g.subscribe(ops.Session.signalCursorRemoved,function(a){delete e[a]});c=document.createElementNS(h.namespaceURI,"style");c.type="text/css";c.media="screen, print, handheld, projection";c.appendChild(document.createTextNode("@namespace editinfo url(urn:webodf:names:editinfo);"));
  h.appendChild(c)}}();
  // Input 58
  /*
  
   Copyright (C) 2012 KO GmbH <copyright@kogmbh.com>
  
   @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/webodf/webodf/
  */
  runtime.loadClass("gui.Caret");gui.CaretFactory=function(g){this.createCaret=function(k){var m=k.getMemberId(),f=g.getSession().getOdtDocument(),e=f.getOdfCanvas().getElement(),c=new gui.Caret(k);m===g.getInputMemberId()&&(runtime.log("Starting to track input on new cursor of "+m),f.subscribe("paragraphEdited",function(a){a.memberId===m&&c.ensureVisible()}),k.handleUpdate=c.ensureVisible,e.setAttribute("tabindex",0),e.onfocus=c.setFocus,e.onblur=c.removeFocus,e.focus(),g.startListening());return c}};
  // Input 59
  runtime.loadClass("xmldom.XPath");runtime.loadClass("odf.Style2CSS");
  gui.PresenterUI=function(){var g=new odf.Style2CSS,k=new xmldom.XPath,m=g.namespaceResolver;return function(f){var e=this;e.setInitialSlideMode=function(){e.startSlideMode("single")};e.keyDownHandler=function(c){if(!c.target.isContentEditable&&"input"!==c.target.nodeName)switch(c.keyCode){case 84:e.toggleToolbar();break;case 37:case 8:e.prevSlide();break;case 39:case 32:e.nextSlide();break;case 36:e.firstSlide();break;case 35:e.lastSlide()}};e.root=function(){return e.odf_canvas.odfContainer().rootElement};
  e.firstSlide=function(){e.slideChange(function(){return 0})};e.lastSlide=function(){e.slideChange(function(c,a){return a-1})};e.nextSlide=function(){e.slideChange(function(c,a){return c+1<a?c+1:-1})};e.prevSlide=function(){e.slideChange(function(c){return 1>c?-1:c-1})};e.slideChange=function(c){var a=e.getPages(e.odf_canvas.odfContainer().rootElement),b=-1,f=0;a.forEach(function(a){a=a[1];a.hasAttribute("slide_current")&&(b=f,a.removeAttribute("slide_current"));f+=1});c=c(b,a.length);-1===c&&(c=b);
  a[c][1].setAttribute("slide_current","1");document.getElementById("pagelist").selectedIndex=c;"cont"===e.slide_mode&&window.scrollBy(0,a[c][1].getBoundingClientRect().top-30)};e.selectSlide=function(c){e.slideChange(function(a,b){return c>=b||0>c?-1:c})};e.scrollIntoContView=function(c){var a=e.getPages(e.odf_canvas.odfContainer().rootElement);0!==a.length&&window.scrollBy(0,a[c][1].getBoundingClientRect().top-30)};e.getPages=function(c){c=c.getElementsByTagNameNS(m("draw"),"page");var a=[],b;for(b=
  0;b<c.length;b+=1)a.push([c[b].getAttribute("draw:name"),c[b]]);return a};e.fillPageList=function(c,a){for(var b=e.getPages(c),f,d,g;a.firstChild;)a.removeChild(a.firstChild);for(f=0;f<b.length;f+=1)d=document.createElement("option"),g=k.getODFElementsWithXPath(b[f][1],'./draw:frame[@presentation:class="title"]//draw:text-box/text:p',xmldom.XPath),g=0<g.length?g[0].textContent:b[f][0],d.textContent=f+1+": "+g,a.appendChild(d)};e.startSlideMode=function(c){var a=document.getElementById("pagelist"),
  b=e.odf_canvas.slidevisibilitycss().sheet;for(e.slide_mode=c;0<b.cssRules.length;)b.deleteRule(0);e.selectSlide(0);"single"===e.slide_mode?(b.insertRule("draw|page { position:fixed; left:0px;top:30px; z-index:1; }",0),b.insertRule("draw|page[slide_current]  { z-index:2;}",1),b.insertRule("draw|page  { -webkit-transform: scale(1);}",2),e.fitToWindow(),window.addEventListener("resize",e.fitToWindow,!1)):"cont"===e.slide_mode&&window.removeEventListener("resize",e.fitToWindow,!1);e.fillPageList(e.odf_canvas.odfContainer().rootElement,
  a)};e.toggleToolbar=function(){var c,a,b;c=e.odf_canvas.slidevisibilitycss().sheet;a=-1;for(b=0;b<c.cssRules.length;b+=1)if(".toolbar"===c.cssRules[b].cssText.substring(0,8)){a=b;break}-1<a?c.deleteRule(a):c.insertRule(".toolbar { position:fixed; left:0px;top:-200px; z-index:0; }",0)};e.fitToWindow=function(){var c=e.getPages(e.root()),a=(window.innerHeight-40)/c[0][1].clientHeight,c=(window.innerWidth-10)/c[0][1].clientWidth,a=a<c?a:c,c=e.odf_canvas.slidevisibilitycss().sheet;c.deleteRule(2);c.insertRule("draw|page { 
  -moz-transform: scale("+
  a+"); 
  -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)};e.load=function(c){e.odf_canvas.load(c)};e.odf_element=f;e.odf_canvas=new odf.OdfCanvas(e.odf_element);e.odf_canvas.addListener("statereadychange",e.setInitialSlideMode);e.slide_mode="undefined";document.addEventListener("keydown",e.keyDownHandler,!1)}}();
  // Input 60
  runtime.loadClass("core.PositionIterator");runtime.loadClass("core.Cursor");
  gui.XMLEdit=function(g,k){function m(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c}function f(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function e(){var a=g.ownerDocument.defaultView.getSelection();a&&(!(0>=a.rangeCount)&&p)&&(a=a.getRangeAt(0),p.setPoint(a.startContainer,a.startOffset))}function c(){var a=g.ownerDocument.defaultView.getSelection(),b,c;a.removeAllRanges();p&&p.node()&&(b=p.node(),c=b.ownerDocument.createRange(),
  c.setStart(b,p.position()),c.collapse(!0),a.addRange(c))}function 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 b(a,c){for(var d=
  a.firstChild,e,f,g;d&&d!==a;){if(1===d.nodeType){b(d,c);e=d.attributes;for(g=e.length-1;0<=g;g-=1)f=e.item(g),"http://www.w3.org/2000/xmlns/"===f.namespaceURI&&!c[f.nodeValue]&&(c[f.nodeValue]=f.localName)}d=d.nextSibling||d.parentNode}}function h(){var a=g.ownerDocument.createElement("style"),c;c={};b(g,c);var e={},f,h,l=0;for(f in c)if(c.hasOwnProperty(f)&&f){h=c[f];if(!h||e.hasOwnProperty(h)||"xmlns"===h){do h="ns"+l,l+=1;while(e.hasOwnProperty(h));c[f]=h}e[h]=!0}a.type="text/css";c="@namespace customns url(customns);
  "+
  d;a.appendChild(g.ownerDocument.createTextNode(c));k=k.parentNode.replaceChild(a,k)}var d,l,q,p=null;g.id||(g.id="xml"+String(Math.random()).substring(2));l="#"+g.id+" ";d=l+"*,"+l+":visited, "+l+":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}
  "+l+":before {color: blue; content: '<' attr(customns_name) attr(customns_atts) '>';}
  "+
  l+":after {color: blue; content: '</' attr(customns_name) '>';}
  "+l+"{overflow: auto;}
  ";l=g;m(l,"click",function(a){g.ownerDocument.defaultView.getSelection().getRangeAt(0);f(a)});m(l,"keydown",function(a){var b=a.charCode||a.keyCode;if(p=null,p&&37===b)e(),p.stepBackward(),c();else if(16<=b&&20>=b||33<=b&&40>=b)return;f(a)});m(l,"keypress",function(){});m(l,"drop",f);m(l,"dragend",f);m(l,"beforepaste",f);m(l,"paste",f);this.updateCSS=h;this.setXML=function(b){b=b.documentElement||b;q=b=g.ownerDocument.importNode(b,
  !0);for(a(b);g.lastChild;)g.removeChild(g.lastChild);g.appendChild(b);h();p=new core.PositionIterator(b)};this.getXML=function(){return q}};
  // Input 61
  ops.SessionPointFilter=function(){this.acceptNode=function(){return 1}};
  // Input 62
  runtime.loadClass("ops.TrivialOperationRouter");runtime.loadClass("gui.SelectionManager");
  ops.OdtDocument=function(g){function k(a){var c=gui.SelectionMover.createPositionIterator(b),e=null,f,g=0;a+=1;1===d.acceptPosition(c)&&(f=c.container(),3===f.nodeType?(e=f,g=0):0===a&&(e=b.ownerDocument.createTextNode(""),f.insertBefore(e,null),g=0));for(;0<a||null===e;){if(!c.nextPosition())return null;if(1===d.acceptPosition(c))if(a-=1,f=c.container(),3===f.nodeType)f!==e?(e=f,g=0):g+=1;else if(null!==e){if(0===a){g=e.length;break}e=null}else if(0===a){e=f.ownerDocument.createTextNode("");f.appendChild(e);
  g=0;break}}if(null===e)return null;for(;0===g&&e.previousSibling&&"cursor"===e.previousSibling.localName;){for(f=e.previousSibling.previousSibling;f&&3!==f.nodeType;)f=f.previousSibling;null===f&&(f=b.ownerDocument.createTextNode(""),e.parentNode.insertBefore(f,e.parentNode.firstChild));e=f;g=e.length}return{textNode:e,offset:g}}function m(b){for(;b&&!(("p"===b.localName||"h"===b.localName)&&b.namespaceURI===a);)b=b.parentNode;return b}function f(a){return g.getFormatting().getStyleElement(g.odfContainer().rootElement.styles,
  a,"paragraph")}function e(a,b,c,d,e){void 0!==d&&(void 0!==e?a.setAttributeNS(b,c,d+e):a.setAttributeNS(b,c,d))}var c=this,a="urn:oasis:names:tc:opendocument:xmlns:text:1.0",b,h,d,l={},q={paragraphEdited:[]};this.getParagraphStyleElement=f;this.getParagraphElement=m;this.getParagraphStyleAttributes=function(a){return(a=f(a))?g.getFormatting().getInheritedStyleAttributes(g.odfContainer().rootElement.styles,a):null};this.getPositionInTextNode=k;this.getDistanceFromCursor=function(a,b,c){a=l[a];var e=
  0;runtime.assert(null!==b,"OdtDocument.getDistanceFromCursor called with node===null");a&&(a=a.getStepCounter().countStepsToPosition,e=a(b,c,d));return e};this.getCursorPosition=function(a){return-c.getDistanceFromCursor(a,b,0)};this.getPositionFilter=function(){return d};this.getOdfCanvas=function(){return g};this.getRootNode=function(){return b};this.getDOM=function(){return b.ownerDocument};this.getSelectionManager=function(){return h};this.insertText=function(a,b,d,e){var f;if(d=k(d)){f=d.textNode;
  f.insertData(d.offset,e);e=f.parentNode;var g=f.nextSibling;e.removeChild(f);e.insertBefore(f,g);c.emit("paragraphEdited",{element:m(d.textNode),memberId:a,timeStamp:b});return!0}return!1};this.removeText=function(a,b,d,e){if(0>e)e=-e,d=k(d-e);else{d=k(d+1);if(1!==d.offset)return runtime.log("unexpected!"),!1;d.offset-=1}return d?(d.textNode.deleteData(d.offset,e),c.emit("paragraphEdited",{element:m(d.textNode),memberId:a,timeStamp:b}),!0):!1};this.setParagraphStyle=function(b,d,e,f,g){var h;h=k(e);
  runtime.log("Setting paragraph style:"+h+" -- "+e+" "+f+"->"+g);return h&&(e=m(h.textNode))?(e.setAttributeNS(a,"text:style-name",g),c.emit("paragraphEdited",{element:e,timeStamp:d,memberId:b}),!0):!1};this.updateParagraphStyle=function(a,c){var d,h,k;if(d=f(a)){h=d.getElementsByTagNameNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","paragraph-properties")[0];k=d.getElementsByTagNameNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","text-properties")[0];void 0===h&&c.paragraphProperties&&
  (h=b.ownerDocument.createElementNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:paragraph-properties"),d.appendChild(h));void 0===k&&c.textProperties&&(k=b.ownerDocument.createElementNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:text-properties"),d.appendChild(k));c.paragraphProperties&&(e(h,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:margin-top",c.paragraphProperties.topMargin,"mm"),e(h,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",
  "fo:margin-bottom",c.paragraphProperties.bottomMargin,"mm"),e(h,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:margin-left",c.paragraphProperties.leftMargin,"mm"),e(h,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:margin-right",c.paragraphProperties.rightMargin,"mm"),e(h,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:text-align",c.paragraphProperties.textAlign));if(c.textProperties){e(k,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",
  "fo:font-size",c.textProperties.fontSize,"pt");d=c.textProperties.fontName;d=g.getFormatting().getFontMap().hasOwnProperty(d)?!0:!1;if(!d){h=d=c.textProperties.fontName;var l;d&&h&&(l=b.ownerDocument.createElementNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:font-face"),l.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:name",d),l.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","svg:font-family",h),g.odfContainer().rootElement.fontFaceDecls.appendChild(l))}e(k,
  "urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:font-name",c.textProperties.fontName);e(k,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:color",c.textProperties.color);e(k,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:background-color",c.textProperties.backgroundColor);e(k,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:font-weight",c.textProperties.fontWeight);e(k,"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","fo:font-style",
  c.textProperties.fontStyle);e(k,"urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:text-underline-style",c.textProperties.underline);e(k,"urn:oasis:names:tc:opendocument:xmlns:style:1.0","style:text-line-through-style",c.textProperties.strikethrough)}g.refreshCSS();return!0}return!1};this.deleteStyle=function(a){a=f(a);a.parentNode.removeChild(a);g.refreshCSS()};this.getCursor=function(a){return l[a]};this.getCursors=function(){var a=[],b;for(b in l)l.hasOwnProperty(b)&&a.push(l[b]);return a};
  this.addCursor=function(a){var b=a.getStepCounter().countForwardSteps(1,d);a.move(b);l[a.getMemberId()]=a};this.removeCursor=function(a){var b=l[a];b&&(b.removeFromOdtDocument(),delete l[a])};this.getMetaData=function(a){for(var b=g.odfContainer().rootElement.firstChild;b&&"meta"!==b.localName;)b=b.nextSibling;for(b=b&&b.firstChild;b&&b.localName!==a;)b=b.nextSibling;for(b=b&&b.firstChild;b&&3!==b.nodeType;)b=b.nextSibling;return b?b.data:null};this.getFormatting=function(){return g.getFormatting()};
  this.emit=function(a,b){var c,d;runtime.assert(q.hasOwnProperty(a),'unknown event fired "'+a+'"');d=q[a];for(c=0;c<d.length;c+=1)d[c](b)};this.subscribe=function(a,b){runtime.assert(q.hasOwnProperty(a),'tried to subscribe to unknown event "'+a+'"');q[a].push(b);runtime.log('event "'+a+'" subscribed.')};d=new function(){var a=core.PositionFilter.FilterResult.FILTER_ACCEPT,b=core.PositionFilter.FilterResult.FILTER_REJECT;this.acceptPosition=function(c){var d=c.container();if(3!==d.nodeType)return"p"!==
  d.localName&&"h"!==d.localName&&"span"!==d.localName?b:a;if(0===d.length)return b;d=(d=d.parentNode)&&d.localName;if("p"!==d&&"span"!==d&&"h"!==d)return b;d=c.textOffset();return 0<d&&"  "===c.substr(d-1,2)?b:a}};for(var p=g.odfContainer().rootElement.firstChild;p&&"body"!==p.localName;)p=p.nextSibling;for(p=p&&p.firstChild;p&&"text"!==p.localName;)p=p.nextSibling;b=p;h=new gui.SelectionManager(b)};
  // Input 63
  runtime.loadClass("ops.TrivialUserModel");runtime.loadClass("ops.TrivialOperationRouter");runtime.loadClass("ops.OperationFactory");runtime.loadClass("gui.SelectionManager");runtime.loadClass("ops.OdtDocument");
  ops.Session=function(g){function k(a){c=a;a.setPlaybackFunction(m.playOperation);a.setOperationFactory(new ops.OperationFactory(m))}var m=this,f=new ops.OdtDocument(g);new odf.Style2CSS;var e=null,c=null,a={};a[ops.Session.signalCursorAdded]=[];a[ops.Session.signalCursorRemoved]=[];a[ops.Session.signalCursorMoved]=[];a[ops.Session.signalParagraphChanged]=[];a[ops.Session.signalStyleCreated]=[];a[ops.Session.signalStyleDeleted]=[];a[ops.Session.signalParagraphStyleModified]=[];this.setUserModel=function(a){e=
  a};this.setOperationRouter=k;this.getUserModel=function(){return e};this.getOdtDocument=function(){return f};this.emit=function(b,c){var d,e;runtime.assert(a.hasOwnProperty(b),'unknown event fired "'+b+'"');e=a[b];for(d=0;d<e.length;d+=1)e[d](c)};this.subscribe=function(b,c){runtime.assert(a.hasOwnProperty(b),'tried to subscribe to unknown event "'+b+'"');a[b].push(c);runtime.log('event "'+b+'" subscribed.')};this.enqueue=function(a){c.push(a)};this.playOperation=function(a){a.execute(f.getRootNode())};
  e=new ops.TrivialUserModel;k(new ops.TrivialOperationRouter)};ops.Session.signalCursorAdded="cursor/added";ops.Session.signalCursorRemoved="cursor/removed";ops.Session.signalCursorMoved="cursor/moved";ops.Session.signalParagraphChanged="paragraph/changed";ops.Session.signalStyleCreated="style/created";ops.Session.signalStyleDeleted="style/deleted";ops.Session.signalParagraphStyleModified="paragraphstyle/modified";(function(){return ops.Session})();
  // Input 64
  var webodf_css="@namespace draw url(urn:oasis:names:tc:opendocument:xmlns:drawing:1.0);
  @namespace fo url(urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0);
  @namespace office url(urn:oasis:names:tc:opendocument:xmlns:office:1.0);
  @namespace presentation url(urn:oasis:names:tc:opendocument:xmlns:presentation:1.0);
  @namespace style url(urn:oasis:names:tc:opendocument:xmlns:style:1.0);
  @namespace svg url(urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0);
  @namespace table url(urn:oasis:names:tc:opendocument:xmlns:table:1.0);
  @namespace text url(urn:oasis:names:tc:opendocument:xmlns:text:1.0);
  @namespace runtimens url(urn:webodf); /* namespace for runtime only */
  @namespace cursor url(urn:webodf:names:cursor);
  @namespace editinfo url(urn:webodf:names:editinfo);
  
  office|document > *, office|document-content > * {
    display: none;
  }
  office|body, office|document {
    display: inline-block;
    position: relative;
  }
  
  text|p, text|h {
    display: block;
    padding: 0;
    margin: 0;
    line-height: normal;
    position: relative;
  }
  *[runtimens|containsparagraphanchor] {
    position: relative;
  }
  text|s:before { /* this needs to be the number of spaces given by text:c */
    content: ' ';
  }
  text|tab:before {
    display: inline;
    content: '        ';
  }
  text|line-break {
    content: \" \";
    display: block;
  }
  text|tracked-changes {
    /*Consumers that do not support change tracking, should ignore changes.*/
    display: none;
  }
  office|binary-data {
    display: none;
  }
  office|text {
    display: block;
    width: 216mm; /* default to A4 width */
    min-height: 279mm;
    padding-left: 32mm;
    padding-right: 32mm;
    padding-top: 25mm;
    padding-bottom: 13mm;
    margin: 2px;
    text-align: left;
    overflow: hidden;
  }
  office|spreadsheet {
    display: block;
    border-collapse: collapse;
    empty-cells: show;
    font-family: sans-serif;
    font-size: 10pt;
    text-align: left;
    page-break-inside: avoid;
    overflow: hidden;
  }
  office|presentation {
    display: inline-block;
    text-align: left;
  }
  draw|page {
    display: block;
    height: 21cm;
    width: 28cm;
    margin: 3px;
    position: relative;
    overflow: hidden;
  }
  presentation|notes {
      display: none;
  }
  @media print {
    draw|page {
      border: 1pt solid black;
      page-break-inside: avoid;
    }
    presentation|notes {
      /*TODO*/
    }
  }
  office|spreadsheet text|p {
    border: 0px;
    padding: 1px;
    margin: 0px;
  }
  office|spreadsheet table|table {
    margin: 3px;
  }
  office|spreadsheet table|table:after {
    /* show sheet name the end of the sheet */
    /*content: attr(table|name);*/ /* gives parsing error in opera */
  }
  office|spreadsheet table|table-row {
    counter-increment: row;
  }
  office|spreadsheet table|table-row:before {
    width: 3em;
    background: #cccccc;
    border: 1px solid black;
    text-align: center;
    content: counter(row);
    display: table-cell;
  }
  office|spreadsheet table|table-cell {
    border: 1px solid #cccccc;
  }
  table|table {
    display: table;
  }
  draw|frame table|table {
    width: 100%;
    height: 100%;
    background: white;
  }
  table|table-header-rows {
    display: table-header-group;
  }
  table|table-row {
    display: table-row;
  }
  table|table-column {
    display: table-column;
  }
  table|table-cell {
    width: 0.889in;
    display: table-cell;
  }
  draw|frame {
    display: block;
  }
  draw|image {
    display: block;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -moz-background-size: 100% 100%;
  }
  /* only show the first image in frame */
  draw|frame > draw|image:nth-of-type(n+2) {
    display: none;
  }
  text|list:before {
      display: none;
      content:\"\";
  }
  text|list {
      counter-reset: list;
  }
  text|list-item {
      display: block;
  }
  text|number {
      display:none;
  }
  
  text|a {
      color: blue;
      text-decoration: underline;
      cursor: pointer;
  }
  text|note-citation {
      vertical-align: super;
      font-size: smaller;
  }
  text|note-body {
      display: none;
  }
  text|note:hover text|note-citation {
      background: #dddddd;
  }
  text|note:hover text|note-body {
      display: block;
      left:1em;
      max-width: 80%;
      position: absolute;
      background: #ffffaa;
  }
  svg|title, svg|desc {
      display: none;
  }
  video {
      width: 100%;
      height: 100%
  }
  
  /* below set up the cursor */
  cursor|cursor {
      display: inline;
      width: 0px;
      height: 1em;
      /* making the position relative enables the avatar to use
         the cursor as reference for its absolute position */
      position: relative;
  }
  cursor|cursor > span {
      display: inline;
      position: absolute;
      height: 1em;
      border-left: 2px solid black;
      outline: none;
  }
  
  cursor|cursor > div {
      padding: 3px;
      box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
      border: none !important;
      border-radius: 5px;
      opacity: 0.3;
  }
  
  cursor|cursor > div > img {
      border-radius: 5px;
  }
  
  cursor|cursor > div.active {
      opacity: 0.8;
  }
  
  cursor|cursor > div:after {
      content: ' ';
      position: absolute;
      width: 0px;
      height: 0px;
      border-style: solid;
      border-width: 8.7px 5px 0 5px;
      border-color: black transparent transparent transparent;
  
      top: 100%;
      left: 43%;
  }
  
  
  .editInfoMarker {
      position: absolute;
      width: 10px;
      height: 100%;
      left: -20px;
      opacity: 0.8;
      top: 0;
      border-radius: 5px;
      background-color: transparent;
      box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
  }
  .editInfoMarker:hover {
      box-shadow: 0px 0px 8px rgba(0, 0, 0, 1);
  }
  
  .editInfoHandle {
      position: absolute;
      background-color: black;
      padding: 5px;
      border-radius: 5px;
      opacity: 0.8;
      box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
      bottom: 100%;
      margin-bottom: 10px;
      z-index: 3;
      left: -25px;
  }
  .editInfoHandle:after {
      content: ' ';
      position: absolute;
      width: 0px;
      height: 0px;
      border-style: solid;
      border-width: 8.7px 5px 0 5px;
      border-color: black transparent transparent transparent;
  
      top: 100%;
      left: 5px;
  }
  .editInfo {
      font-family: sans-serif;
      font-weight: normal;
      font-style: normal;
      text-decoration: none;
      color: white;
      width: 100%;
      height: 12pt;
  }
  .editInfoColor {
      float: left;
      width: 10pt;
      height: 10pt;
      border: 1px solid white;
  }
  .editInfoAuthor {
      float: left;
      margin-left: 5pt;
      font-size: 10pt;
      text-align: left;
      height: 12pt;
      line-height: 12pt;
  }
  .editInfoTime {
      float: right;
      margin-left: 30pt;
      font-size: 8pt;
      font-style: italic;
      color: yellow;
      height: 12pt;
      line-height: 12pt;
  }
  ";