blob: 9d91a621dfac36f6eab04f31f9b6c3b61f4717b6 [file] [log] [blame]
Nils Diewald86dad5b2015-01-28 15:09:07 +00001/**
Akroncd42a142019-07-12 18:55:37 +02002 * Create virtual corpora with a visual user interface. This resembles the
3 * corpus/collection type objects of a KoralQuery "collection"/"corpus" object.
hebastaa79d69d2018-07-24 12:13:02 +02004 *
Nils Diewald4c221252015-04-21 20:19:25 +00005 * KoralQuery v0.3 is expected.
hebastaa79d69d2018-07-24 12:13:02 +02006 *
Nils Diewald86dad5b2015-01-28 15:09:07 +00007 * @author Nils Diewald
8 */
Nils Diewald2fe12e12015-03-06 16:47:06 +00009/*
Nils Diewald1fcb2ad2015-04-20 19:19:18 +000010 * This replaces a previous version written by Mengfei Zhou
Nils Diewald2fe12e12015-03-06 16:47:06 +000011 */
Nils Diewald2fe12e12015-03-06 16:47:06 +000012
Nils Diewaldd0770492014-12-19 03:55:00 +000013/*
hebasta86759392018-07-25 15:44:37 +020014 TODO: Disable "and" or "or" in case it's followed
15 by an unspecified document
16 TODO: Add "and"-method to root to add further constraints
17 based on match-input (like clicking on a pubDate timestamp in a match)
18 TODO: Implement "persistence"-Option, injecting the current creation
19 date stamp
20 TODO: Implement vec-Type for document-id vectors like docID in [1,2,3,4 ...]
21
22 Error codes:
23 701: "JSON-LD group has no @type attribute"
24 704: "Operation needs operand list"
25 802: "Match type is not supported by value type"
26 804: "Unknown value type"
27 805: "Value is invalid"
28 806: "Value is not a valid date string"
29 807: "Value is not a valid regular expression"
30 810: "Unknown document group operation" (like 711)
31 811: "Document group expects operation" (like 703)
32 812: "Operand not supported in document group" (like 744)
33 813: "Collection type is not supported" (like 713)
34 814: "Unknown rewrite operation"
35 815: "Rewrite expects source"
36
37 Localization strings:
38 KorAP.Locale = {
39 EMPTY : '...',
40 AND : 'and',
41 OR : 'or',
42 DELETE : 'x' }
43
44 and various field names with the prefix 'VC_'
hebastaa79d69d2018-07-24 12:13:02 +020045 */
Akron88d237e2020-10-21 08:05:18 +020046"use strict";
Nils Diewald86dad5b2015-01-28 15:09:07 +000047
Akronb19803c2018-08-16 16:39:42 +020048define([
49 'vc/unspecified',
50 'vc/doc',
51 'vc/docgroup',
52 'vc/docgroupref',
53 'vc/menu',
54 'vc/statistic',
55 'datepicker',
56 'buttongroup',
Akronaa613222019-11-19 13:57:12 +010057 'panel/vc',
58 'view/vc/corpstatv',
Akronec6bb8e2018-08-29 13:07:56 +020059 'buttongroup',
Akronb19803c2018-08-16 16:39:42 +020060 'util'
61], function(
62 unspecDocClass,
63 docClass,
64 docGroupClass,
65 docGroupRefClass,
66 menuClass,
67 statClass,
68 dpClass,
69 buttonGrClass,
hebasta2535c762018-11-21 16:27:33 +010070 vcPanelClass,
Akronec6bb8e2018-08-29 13:07:56 +020071 corpStatVClass,
72 buttonGroupClass) {
Nils Diewald1fcb2ad2015-04-20 19:19:18 +000073
Akronb19803c2018-08-16 16:39:42 +020074 KorAP._validUnspecMatchRE = new RegExp(
75 "^(?:eq|ne|contains(?:not)?|excludes)$");
76 KorAP._validStringMatchRE = new RegExp("^(?:eq|ne)$");
Akron5d4f2e42024-12-16 09:10:27 +010077 KorAP._validIntegerMatchRE = new RegExp("^(?:[gl]?eq|ne)$");
Akronb19803c2018-08-16 16:39:42 +020078 KorAP._validTextMatchRE = KorAP._validUnspecMatchRE;
79 KorAP._validTextOnlyMatchRE = new RegExp(
80 "^(?:contains(?:not)?|excludes)$");
81 KorAP._overrideStyles = false;
82 // KorAP._validDateMatchRE is defined in datepicker.js!
Nils Diewaldd0770492014-12-19 03:55:00 +000083
Akronb19803c2018-08-16 16:39:42 +020084 const loc = KorAP.Locale;
hebastaa0282be2018-12-05 16:58:00 +010085 loc.SHOW_STAT = loc.SHOW_STAT || 'Statistics';
86 loc.VERB_SHOWSTAT = loc.VERB_SHOWSTAT || 'Corpus Statistics';
Akron8a670162018-08-28 10:09:13 +020087 loc.VC_allCorpora = loc.VC_allCorpora || 'all corpora';
88 loc.VC_oneCollection = loc.VC_oneCollection || 'a virtual corpus';
Akronec6bb8e2018-08-29 13:07:56 +020089 loc.MINIMIZE = loc.MINIMIZE || 'Minimize';
Nils Diewald3a2d8022014-12-16 02:45:41 +000090
Akronb19803c2018-08-16 16:39:42 +020091 KorAP._vcKeyMenu = undefined;
92 KorAP._vcDatePicker = dpClass.create();
Nils Diewald3a2d8022014-12-16 02:45:41 +000093
Akronb19803c2018-08-16 16:39:42 +020094 // Create match menus ....
95 KorAP._vcMatchopMenu = {
96 'string' : menuClass.create([
97 [ 'eq', null ],
98 [ 'ne', null ]
99 ]),
100 'text' : menuClass.create([
101 [ 'eq', null ], // Requires exact match
102 [ 'ne', null ],
103 [ 'contains', null ], // Requires token sequence match
104 [ 'containsnot', null ]
105 ]),
106 'date' : menuClass.create([
107 [ 'eq', null ],
108 [ 'ne', null ],
109 [ 'geq', null ],
110 [ 'leq', null ]
111 ]),
112 'regex' : menuClass.create([
113 [ 'eq', null ],
114 [ 'ne', null ]
Akron5d4f2e42024-12-16 09:10:27 +0100115 ]),
116 'integer' : menuClass.create([
117 [ 'eq', null ],
118 [ 'ne', null ],
119 [ 'geq', null ],
120 [ 'leq', null ]
Akronb19803c2018-08-16 16:39:42 +0200121 ])
122 };
123
Akron88d237e2020-10-21 08:05:18 +0200124
Akronb19803c2018-08-16 16:39:42 +0200125 /**
Akroncd42a142019-07-12 18:55:37 +0200126 * Virtual corpus
Akronb19803c2018-08-16 16:39:42 +0200127 */
128 return {
129
130 /**
Akroncd42a142019-07-12 18:55:37 +0200131 * The JSON-LD type of the virtual corpus
Akronb19803c2018-08-16 16:39:42 +0200132 */
133 ldType : function() {
134 return null;
135 },
136
Akron88d237e2020-10-21 08:05:18 +0200137
Akroncd42a142019-07-12 18:55:37 +0200138 // Initialize virtual corpus
Akronb19803c2018-08-16 16:39:42 +0200139 _init : function(keyList) {
140
141 // Inject localized css styles
142 if (!KorAP._overrideStyles) {
Akron88d237e2020-10-21 08:05:18 +0200143
144 const sheet = KorAP.newStyleSheet();
Akronb19803c2018-08-16 16:39:42 +0200145
146 // Add css rule for OR operations
147 sheet.insertRule('.vc .docGroup[data-operation=or] > .doc::before,'
148 + '.vc .docGroup[data-operation=or] > .docGroup::before '
149 + '{ content: "' + loc.OR + '" }', 0);
150
151 // Add css rule for AND operations
152 sheet.insertRule(
153 '.vc .docGroup[data-operation=and] > .doc::before,'
154 + '.vc .docGroup[data-operation=and] > .docGroup::before '
155 + '{ content: "' + loc.AND + '" }', 1);
156
157 KorAP._overrideStyles = true;
Nils Diewald359a72c2015-04-20 17:40:29 +0000158 };
159
Akron88d237e2020-10-21 08:05:18 +0200160 let l;
Akron3ad46942018-08-22 16:47:14 +0200161 if (keyList) {
Akronadab5e52018-08-20 13:50:53 +0200162 l = keyList.slice();
Akron3ad46942018-08-22 16:47:14 +0200163 l.unshift(['referTo', 'ref']);
164 }
165 else {
166 l = [['referTo', 'ref']];
167 }
Akronadab5e52018-08-20 13:50:53 +0200168
Akronb19803c2018-08-16 16:39:42 +0200169 // Create key menu
Akron3ad46942018-08-22 16:47:14 +0200170 KorAP._vcKeyMenu = menuClass.create(l);
Akronb19803c2018-08-16 16:39:42 +0200171 KorAP._vcKeyMenu.limit(6);
Akron712733a2018-04-05 18:17:47 +0200172
Akronb19803c2018-08-16 16:39:42 +0200173 return this;
174 },
Nils Diewald359a72c2015-04-20 17:40:29 +0000175
Akron88d237e2020-10-21 08:05:18 +0200176
Akronb19803c2018-08-16 16:39:42 +0200177 /**
Akroncd42a142019-07-12 18:55:37 +0200178 * Create a new virtual corpus
Akronb19803c2018-08-16 16:39:42 +0200179 */
Akron88d237e2020-10-21 08:05:18 +0200180 create : function (keyList) {
181 const obj = Object.create(this)._init(keyList);
Akronb19803c2018-08-16 16:39:42 +0200182 obj._root = unspecDocClass.create(obj);
183 return obj;
184 },
Nils Diewaldd599d542015-01-08 20:41:34 +0000185
Akron8a670162018-08-28 10:09:13 +0200186
Akronb19803c2018-08-16 16:39:42 +0200187 /**
Akroncd42a142019-07-12 18:55:37 +0200188 * Create and render a new virtual corpus based on a KoralQuery
189 * corpus document
Akronb19803c2018-08-16 16:39:42 +0200190 */
191 fromJson : function(json) {
Akron13af2f42019-07-25 15:06:21 +0200192
193 let obj;
194
Akronb19803c2018-08-16 16:39:42 +0200195 if (json !== undefined) {
Akron88d237e2020-10-21 08:05:18 +0200196
Akronb19803c2018-08-16 16:39:42 +0200197 // Parse root document
198 if (json['@type'] == 'koral:doc') {
Akron13af2f42019-07-25 15:06:21 +0200199 obj = docClass.create(this, json);
hebastaa79d69d2018-07-24 12:13:02 +0200200 }
Akron88d237e2020-10-21 08:05:18 +0200201
Akronb19803c2018-08-16 16:39:42 +0200202 // parse root group
203 else if (json['@type'] == 'koral:docGroup') {
Akron13af2f42019-07-25 15:06:21 +0200204 obj = docGroupClass.create(this, json);
Akronb19803c2018-08-16 16:39:42 +0200205 }
206
207 // parse root reference
208 else if (json['@type'] == 'koral:docGroupRef') {
Akron13af2f42019-07-25 15:06:21 +0200209 obj = docGroupRefClass.create(this, json);
Akronb19803c2018-08-16 16:39:42 +0200210 }
211
212 // Unknown collection type
213 else {
214 KorAP.log(813, "Collection type is not supported");
215 return;
216 };
217 }
218
219 else {
220 // Add unspecified object
Akron13af2f42019-07-25 15:06:21 +0200221 obj = unspecDocClass.create(this);
Nils Diewald845282c2015-05-14 07:53:03 +0000222 };
Akronb19803c2018-08-16 16:39:42 +0200223
224 // Init element and update
Akron13af2f42019-07-25 15:06:21 +0200225 this.root(obj);
226
Akronb19803c2018-08-16 16:39:42 +0200227 return this;
228 },
Akrond2474aa2018-08-28 12:06:27 +0200229
230
231 // Check if the virtual corpus contains a rerite
232 wasRewritten : function (obj) {
233
Akron88d237e2020-10-21 08:05:18 +0200234 if (arguments.length !== 1) {
Akrond2474aa2018-08-28 12:06:27 +0200235 obj = this._root;
236 };
237
238 // Check for rewrite
239 if (obj.rewrites() && obj.rewrites().length() > 0) {
240 return true;
241 }
242
243 // Check recursively
244 else if (obj.ldType() === 'docGroup') {
Akron678c26f2020-10-09 08:52:50 +0200245
246 // If there was a rewritten object
247 if (obj.operands().find(op => this.wasRewritten(op)) !== undefined) {
248 return true;
Akrond2474aa2018-08-28 12:06:27 +0200249 };
250 };
Akron88d237e2020-10-21 08:05:18 +0200251
Akrond2474aa2018-08-28 12:06:27 +0200252 return false;
253 },
Akron43c5cc62018-08-28 13:10:25 +0200254
Akron8a670162018-08-28 10:09:13 +0200255
Akronb19803c2018-08-16 16:39:42 +0200256 /**
hebasta3f4be922018-12-11 10:41:46 +0100257 * Clean the virtual document to unspecified doc.
Akronb19803c2018-08-16 16:39:42 +0200258 */
259 clean : function() {
Akron88d237e2020-10-21 08:05:18 +0200260 const t = this;
261 if (t._root.ldType() !== "non") {
262 t._root.destroy();
263 t.root(unspecDocClass.create(t));
Akronb19803c2018-08-16 16:39:42 +0200264 };
Akron88d237e2020-10-21 08:05:18 +0200265
266 // update for graying corpus statistic by deleting the first line of the vc builder
267 t.update();
268 return t;
Akronb19803c2018-08-16 16:39:42 +0200269 },
270
Akron88d237e2020-10-21 08:05:18 +0200271
Akronb19803c2018-08-16 16:39:42 +0200272 /**
Akroncd42a142019-07-12 18:55:37 +0200273 * Get or set the root object of the virtual corpus
Akronb19803c2018-08-16 16:39:42 +0200274 */
275 root : function(obj) {
276 if (arguments.length === 1) {
Akron88d237e2020-10-21 08:05:18 +0200277 const e = this.builder();
278
Akronb19803c2018-08-16 16:39:42 +0200279 if (e.firstChild !== null) {
Akronadab5e52018-08-20 13:50:53 +0200280
281 // Object not yet set
Akronb19803c2018-08-16 16:39:42 +0200282 if (e.firstChild !== obj.element()) {
283 e.replaceChild(obj.element(), e.firstChild);
284 };
285 }
286
287 // Append root element
288 else {
289 e.appendChild(obj.element());
290 };
291
292 // Update parent child relations
293 this._root = obj;
294 obj.parent(this);
295
296 this.update();
297 };
Akron88d237e2020-10-21 08:05:18 +0200298
Akronb19803c2018-08-16 16:39:42 +0200299 return this._root;
300 },
301
Akronadab5e52018-08-20 13:50:53 +0200302
303 /**
304 * Get the wrapper element associated with the vc
305 */
306 builder : function () {
Akron88d237e2020-10-21 08:05:18 +0200307 const t = this;
Akronadab5e52018-08-20 13:50:53 +0200308
309 // Initialize if necessary
Akron88d237e2020-10-21 08:05:18 +0200310 if (t._builder !== undefined)
311 return t._builder;
Akronadab5e52018-08-20 13:50:53 +0200312
Akron88d237e2020-10-21 08:05:18 +0200313 t.element();
314 return t._builder;
Akronadab5e52018-08-20 13:50:53 +0200315 },
316
Akron88d237e2020-10-21 08:05:18 +0200317
Akronb19803c2018-08-16 16:39:42 +0200318 /**
Akron68d28322018-08-27 15:02:42 +0200319 * Get the element associated with the virtual corpus
Akronb19803c2018-08-16 16:39:42 +0200320 */
321 element : function() {
Akron88d237e2020-10-21 08:05:18 +0200322 const t = this;
Akron24aa0052020-11-10 11:00:34 +0100323 let e = t._el;
Akronb19803c2018-08-16 16:39:42 +0200324
Akron88d237e2020-10-21 08:05:18 +0200325 if (e !== undefined)
326 return e;
Akronec6bb8e2018-08-29 13:07:56 +0200327
Akronb19803c2018-08-16 16:39:42 +0200328
Akron24aa0052020-11-10 11:00:34 +0100329 e = t._el = document.createElement('div');
Akron88d237e2020-10-21 08:05:18 +0200330 e.classList.add('vc');
Akronadab5e52018-08-20 13:50:53 +0200331
Akron88d237e2020-10-21 08:05:18 +0200332
333 t._builder = e.addE('div');
334 t._builder.setAttribute('class', 'builder');
335
336 const btn = buttonGroupClass.create(
Akronec6bb8e2018-08-29 13:07:56 +0200337 ['action','button-view']
338 );
Akronec6bb8e2018-08-29 13:07:56 +0200339
Akron88d237e2020-10-21 08:05:18 +0200340 btn.add(loc.MINIMIZE, {'cls':['button-icon','minimize']}, function () {
341 this.minimize();
342 }.bind(t));
343
344 e.appendChild(btn.element());
345
Akronb19803c2018-08-16 16:39:42 +0200346 // Initialize root
Akron88d237e2020-10-21 08:05:18 +0200347 t._builder.appendChild(t._root.element());
Akronb19803c2018-08-16 16:39:42 +0200348
349 // Add panel to display corpus statistic, ...
Akron88d237e2020-10-21 08:05:18 +0200350 t.addVcInfPanel();
Akronb19803c2018-08-16 16:39:42 +0200351
hebasta4dd77bc2019-02-07 12:57:57 +0100352 //Adds EventListener for corpus changes
Akron24aa0052020-11-10 11:00:34 +0100353 t._el.addEventListener('vcChange', function (e) {
Akron88d237e2020-10-21 08:05:18 +0200354 this.checkStatActive(e.detail);
355 }.bind(t), false);
hebasta4dd77bc2019-02-07 12:57:57 +0100356
Akron88d237e2020-10-21 08:05:18 +0200357 return e;
Akronb19803c2018-08-16 16:39:42 +0200358 },
359
Akronec6bb8e2018-08-29 13:07:56 +0200360
361 /**
362 * Check, if the VC is open
363 */
364 isOpen : function () {
Akron24aa0052020-11-10 11:00:34 +0100365 if (!this._el)
Akronec6bb8e2018-08-29 13:07:56 +0200366 return false;
Akron24aa0052020-11-10 11:00:34 +0100367 return this._el.classList.contains('active');
Akronec6bb8e2018-08-29 13:07:56 +0200368 },
369
Akron88d237e2020-10-21 08:05:18 +0200370
Akronec6bb8e2018-08-29 13:07:56 +0200371 /**
372 * Open the VC view
373 */
374 open : function () {
375 this.element().classList.add('active');
376 if (this.onOpen)
377 this.onOpen();
378 },
379
380
381 /**
382 * Minimize the VC view
383 */
384 minimize : function () {
385 this.element().classList.remove('active');
386 if (this.onMinimize)
387 this.onMinimize();
388 },
389
390
Akronb19803c2018-08-16 16:39:42 +0200391 /**
392 * Update the whole object based on the underlying data structure
hebastaa0282be2018-12-05 16:58:00 +0100393 */
Akronb19803c2018-08-16 16:39:42 +0200394 update : function() {
395 this._root.update();
Akron88d237e2020-10-21 08:05:18 +0200396 if (KorAP.vc) {
397 this.element().dispatchEvent(
398 new CustomEvent('vcChange', {'detail':this})
399 );
hebasta4dd77bc2019-02-07 12:57:57 +0100400 };
Akronb19803c2018-08-16 16:39:42 +0200401 return this;
402 },
Akron88d237e2020-10-21 08:05:18 +0200403
404
Akronb19803c2018-08-16 16:39:42 +0200405 /**
406 * Make the vc persistant by injecting the current timestamp as a
407 * creation date limit criterion.
408 * THIS IS CURRENTLY NOT USED
409 */
Akron88d237e2020-10-21 08:05:18 +0200410 /*
Akronb19803c2018-08-16 16:39:42 +0200411 makePersistant : function() {
412 // this.root().wrapOnRoot('and');
413 var todayStr = KorAP._vcDatePicker.today();
414 var doc = docClass.create();
415 var root = this.root();
416
417 if (root.ldType() === 'docGroup' && root.operation === 'and') {
418 root.append(cond);
419 } else {
420 root.wrapOnRoot('and');
421 root.append(doc);
422 };
423
424 doc.key("creationDate");
425 doc.type("date");
426 doc.matchop("leq");
427 doc.value(todayStr);
428
Akron88d237e2020-10-21 08:05:18 +0200429 // { "@type" : "koral:doc", "key" : "creationDate", "type" :
430 // "type:date", "match" : "match:leq", "value" : todayStr }
431 // this.root().append(cond);
Akronb19803c2018-08-16 16:39:42 +0200432 this.update();
433 },
Akron88d237e2020-10-21 08:05:18 +0200434 */
Akronb19803c2018-08-16 16:39:42 +0200435
Akron8a670162018-08-28 10:09:13 +0200436
437 // Get the reference name
438 getName : function () {
439 if (this._root.ldType() === 'non') {
440 return loc.VC_allCorpora;
441 }
442 else if (this._root.ldType() === 'docGroupRef') {
443 return this._root.ref();
444 }
445 else {
446 return loc.VC_oneCollection;
447 }
448 },
449
Akron88d237e2020-10-21 08:05:18 +0200450
Akron4feec9d2018-11-20 17:00:50 +0100451 // Add "and" constraint to VC
452 addRequired : function (doc) {
Akron88d237e2020-10-21 08:05:18 +0200453 const root = this.root();
454 const ldType = root.ldType();
455 const parent = root.parent();
Akron4feec9d2018-11-20 17:00:50 +0100456
Akron4feec9d2018-11-20 17:00:50 +0100457 if (ldType === 'non') {
458 parent.root(doc);
459 }
460
461 // root is doc
462 else if (
463 ldType === 'doc' ||
464 ldType === 'docGroupRef' ||
465 (ldType === 'docGroup' &&
466 root.operation() === 'or'
467 )) {
Akron88d237e2020-10-21 08:05:18 +0200468 const group = require('vc/docgroup').create(
Akron4feec9d2018-11-20 17:00:50 +0100469 parent
470 );
471 group.operation("and");
472 group.append(root);
473 group.append(doc);
474 group.element(); // Init (seems to be necessary)
475 parent.root(group);
476 }
477
478 // root is a docGroup
479 // and is already an 'and'-Group
480 else if (ldType === 'docGroup') {
481 root.append(doc);
482 }
483
484 // Unknown
485 else {
486 console.log("Unknown root object");
487 };
488
489 // Init element and update
490 this.update();
491 },
Akron8a670162018-08-28 10:09:13 +0200492
Akron88d237e2020-10-21 08:05:18 +0200493
Akronb19803c2018-08-16 16:39:42 +0200494 /**
495 * Get the generated json string
496 */
Akron88d237e2020-10-21 08:05:18 +0200497 toJson : function () {
Akronb19803c2018-08-16 16:39:42 +0200498 return this._root.toJson();
499 },
500
Akron88d237e2020-10-21 08:05:18 +0200501
Akronb19803c2018-08-16 16:39:42 +0200502 /**
503 * Get the generated query string
504 */
Akron88d237e2020-10-21 08:05:18 +0200505 toQuery : function () {
Akronb19803c2018-08-16 16:39:42 +0200506 return this._root.toQuery();
507 },
508
hebasta2535c762018-11-21 16:27:33 +0100509
510 /**
Akronb19803c2018-08-16 16:39:42 +0200511 * Add panel to display virtual corpus information
512 */
Akron88d237e2020-10-21 08:05:18 +0200513 addVcInfPanel : function () {
514 // Create panel
hebasta2535c762018-11-21 16:27:33 +0100515 this.panel = vcPanelClass.create(this);
Akron24aa0052020-11-10 11:00:34 +0100516 this._el.addE('div').appendChild(this.panel.element());
hebastaa0282be2018-12-05 16:58:00 +0100517
hebasta2535c762018-11-21 16:27:33 +0100518 },
519
hebastaa0282be2018-12-05 16:58:00 +0100520 /**
hebasta48842cf2018-12-11 12:57:38 +0100521 * Checks if corpus statistic has to be disabled,
hebastaa0282be2018-12-05 16:58:00 +0100522 * and to be updated after clicking at the "reload-button"
523 */
Akron88d237e2020-10-21 08:05:18 +0200524 checkStatActive : function (){
525 if (this.panel !== undefined && this.panel.statView !== undefined){
hebasta48842cf2018-12-11 12:57:38 +0100526 this.panel.statView.checkStatActive();
Akron88d237e2020-10-21 08:05:18 +0200527 };
hebastaa0282be2018-12-05 16:58:00 +0100528 }
Akronb19803c2018-08-16 16:39:42 +0200529 };
530});