jspreadsheet 9.5.2 → 10.0.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +522 -630
- package/dist/jspreadsheet.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Jspreadsheet
|
|
2
|
+
* Jspreadsheet v10.0.2-beta.0
|
|
3
3
|
*
|
|
4
4
|
* Website: https://jspreadsheet.com
|
|
5
5
|
* Description: Create amazing web based spreadsheets.
|
|
@@ -15,632 +15,524 @@ if (! jSuites && typeof(require) === 'function') {
|
|
|
15
15
|
var jSuites = require('jsuites');
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
var
|
|
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
|
-
this[
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
v
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
this
|
|
86
|
-
|
|
87
|
-
function(){
|
|
88
|
-
parseInt(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
(
|
|
96
|
-
this[
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
c=
|
|
109
|
-
|
|
110
|
-
h
|
|
111
|
-
|
|
112
|
-
0]
|
|
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
|
-
e=
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
function(d){d
|
|
163
|
-
|
|
164
|
-
!
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
_$
|
|
173
|
-
_$
|
|
174
|
-
|
|
175
|
-
(
|
|
176
|
-
|
|
177
|
-
_$
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
this[
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
{
|
|
189
|
-
g
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
b);
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
this
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
[r
|
|
214
|
-
if(
|
|
215
|
-
|
|
216
|
-
for(
|
|
217
|
-
|
|
218
|
-
0
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
this
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
b
|
|
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
|
-
c
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
_$
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
l
|
|
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
|
-
b)
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
a
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
this
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
c
|
|
362
|
-
this
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
this
|
|
371
|
-
_$
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
this
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
c)
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
_$
|
|
412
|
-
|
|
413
|
-
this
|
|
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
|
-
a
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
0;
|
|
457
|
-
(
|
|
458
|
-
|
|
459
|
-
_$
|
|
460
|
-
|
|
461
|
-
(
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
l
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
0
|
|
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
|
-
function(){
|
|
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
|
-
d)
|
|
532
|
-
|
|
533
|
-
_$
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
if(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
_$_19f6[34]&&(x=_$_19f6[34]+x):x=k[a][_$_19f6[136]][c][_$_19f6[72]];b[_$_19f6[41]][l][_$_19f6[65]](x);x=G[_$_19f6[149]](c,a);(p=k[a][_$_19f6[136]][c][_$_19f6[163]](_$_19f6[1200]))&&(r[x]=p);p=parseInt(k[a][_$_19f6[136]][c][_$_19f6[163]](_$_19f6[541]))||0;var y=parseInt(k[a][_$_19f6[136]][c][_$_19f6[163]](_$_19f6[542]))||0;if(p||y)n[x]=[p||1,y||1];if(p=k[a][_$_19f6[136]][c][_$_19f6[60]]&&k[a][_$_19f6[136]][c][_$_19f6[60]][_$_19f6[59]]==_$_19f6[125])k[a][_$_19f6[136]][c][_$_19f6[60]][_$_19f6[59]]=_$_19f6[8];
|
|
540
|
-
(p=k[a][_$_19f6[136]][c][_$_19f6[163]](_$_19f6[60]))&&(q[x]=p);k[a][_$_19f6[136]][c][_$_19f6[54]][_$_19f6[53]](_$_19f6[1201])&&(q[x]=q[x]?q[x]+_$_19f6[1202]:_$_19f6[1203])}k[a][_$_19f6[60]]&&k[a][_$_19f6[60]][_$_19f6[184]]&&(u[a]={height:k[a][_$_19f6[60]][_$_19f6[184]]});l++}else for(c=0;c<k[a][_$_19f6[136]][_$_19f6[2]];c++)e(k[a][_$_19f6[136]][c]);0<Object[_$_19f6[245]](f)[_$_19f6[2]]&&(b[_$_19f6[135]]=f);0<Object[_$_19f6[245]](q)[_$_19f6[2]]&&(b[_$_19f6[60]]=q);0<Object[_$_19f6[245]](n)[_$_19f6[2]]&&
|
|
541
|
-
(b[_$_19f6[148]]=n);0<Object[_$_19f6[245]](u)[_$_19f6[2]]&&(b[_$_19f6[24]]=u);0<Object[_$_19f6[245]](r)[_$_19f6[2]]&&(b[_$_19f6[1204]]=r);k=d[_$_19f6[1194]](_$_19f6[1205]);if(k[_$_19f6[2]]){d=[];for(a=0;a<k[_$_19f6[2]];a++){e=[];for(c=0;c<k[a][_$_19f6[136]][_$_19f6[2]];c++)e[_$_19f6[65]](k[a][_$_19f6[136]][c][_$_19f6[365]]);d[_$_19f6[65]](e)}0<Object[_$_19f6[245]](d)[_$_19f6[2]]&&(b[_$_19f6[132]]=d)}if(1==b[_$_19f6[1206]])for(d=[],c=0;c<b[_$_19f6[38]][_$_19f6[2]];c++){f=e=!0;d[c]=[];for(a=0;a<b[_$_19f6[41]][_$_19f6[2]];a++)if(x=
|
|
542
|
-
b[_$_19f6[41]][a][c],d[c][x]||(d[c][x]=0),d[c][x]++,25<x[_$_19f6[2]]&&(e=!1),10==x[_$_19f6[2]]){if(x[_$_19f6[37]](4,1)!=_$_19f6[668]||x[_$_19f6[37]](7,1)!=_$_19f6[668])f=!1}else f=!1;a=Object[_$_19f6[245]](d[c])[_$_19f6[2]];f?b[_$_19f6[38]][c][_$_19f6[248]]=_$_19f6[593]:1==e&&1<a&&a<=parseInt(.1*b[_$_19f6[41]][_$_19f6[2]])&&(b[_$_19f6[38]][c][_$_19f6[248]]=_$_19f6[250],b[_$_19f6[38]][c][_$_19f6[252]]=Object[_$_19f6[245]](d[c]))}return b}};h[_$_19f6[836]]=function(d,b,a){return d[_$_19f6[283]](0,b)[_$_19f6[577]](a)[_$_19f6[577]](d[_$_19f6[283]](b))};
|
|
543
|
-
h[_$_19f6[266]]=function(d,b){b=b||_$_19f6[97];for(var a=0,c=0,e=[[]],f=0,g=null,k=!1,l=!1,n=0;n<d[_$_19f6[2]];n++)if(e[c]||(e[c]=[]),e[c][a]||(e[c][a]=_$_19f6[8]),d[n]!=_$_19f6[1207])if(d[n]!=_$_19f6[1208]&&d[n]!=b||0!=k&&1!=l&&g){d[n]==_$_19f6[36]&&(k=!k);if(null===g){if(g=k,1==g)continue}else if(!0===g&&!l&&d[n]==_$_19f6[36]){d[n+1]==_$_19f6[36]?(k=!0,e[c][a]+=d[n],n++):l=!0;continue}e[c][a]+=d[n]}else{g=null;l=k=!1;if(e[c][a][0]==_$_19f6[36]){var u=e[c][a][_$_19f6[693]]();u[u[_$_19f6[2]]-1]==
|
|
544
|
-
_$_19f6[36]&&(e[c][a]=u[_$_19f6[37]](1,u[_$_19f6[2]]-2))}d[n]==_$_19f6[1208]?(a=0,c++):(a++,a>f&&(f=a))}for(d=0;d<e[_$_19f6[2]];d++)for(n=0;n<=f;n++)void 0===e[d][n]&&(e[d][n]=_$_19f6[8]);return e};h[_$_19f6[455]]=U[_$_19f6[455]];h[_$_19f6[456]]=U[_$_19f6[456]];h[_$_19f6[1209]]=function(d){-1!==d[_$_19f6[28]](_$_19f6[35])&&(d=d[_$_19f6[98]](_$_19f6[35]),d=d[1]);d=d[_$_19f6[98]](_$_19f6[454]);d[1]||(d[1]=d[0]);var b=G[_$_19f6[63]](d[0]);d=G[_$_19f6[63]](d[1]);return[b[0],b[1],d[0],d[1]]};return h}(),
|
|
545
|
-
Da=function(){var h={},d=null,b=null,a=null,c=null,e=!1,f=null,g=null,k=null,l=function(v){function A(da){da[_$_19f6[210]]&&(da[_$_19f6[54]][_$_19f6[53]](_$_19f6[936])&&(M=da),da[_$_19f6[54]][_$_19f6[53]](_$_19f6[964])&&(P=da),da[_$_19f6[54]][_$_19f6[53]](_$_19f6[1210])&&(L=da));da[_$_19f6[130]]&&da[_$_19f6[130]][_$_19f6[54]]&&da[_$_19f6[130]][_$_19f6[54]][_$_19f6[53]](_$_19f6[901])&&(da[_$_19f6[700]]==_$_19f6[1211]?B=1:da[_$_19f6[700]]==_$_19f6[1212]?B=2:da[_$_19f6[700]]==_$_19f6[1213]&&(B=3));da[_$_19f6[130]]&&
|
|
546
|
-
!M&&A(da[_$_19f6[130]])}var B=null,D=null,M=null,P=null,L=null,J=null,S=null,V=null;A(v[_$_19f6[392]]);if(null!==L)return!1;if(M)if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[899]))D=_$_19f6[1074];else if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[911]))D=_$_19f6[459];else if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[805]))D=_$_19f6[310],J=parseInt(v[_$_19f6[392]][_$_19f6[163]](_$_19f6[162]));else if(v[_$_19f6[392]][_$_19f6[130]]&&v[_$_19f6[392]][_$_19f6[130]][_$_19f6[54]]&&
|
|
547
|
-
v[_$_19f6[392]][_$_19f6[130]][_$_19f6[54]][_$_19f6[53]](_$_19f6[585]))J=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[589]),S=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[590]),null===J?D=_$_19f6[1074]:(D=_$_19f6[153],J=parseInt(J),S=parseInt(S));else if(v[_$_19f6[392]][_$_19f6[130]]&&v[_$_19f6[392]][_$_19f6[130]][_$_19f6[54]]&&v[_$_19f6[392]][_$_19f6[130]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1214]))D=_$_19f6[1215];else if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1216]))D=_$_19f6[1215];else if(v[_$_19f6[392]][_$_19f6[130]]&&
|
|
548
|
-
v[_$_19f6[392]][_$_19f6[130]][_$_19f6[54]]&&v[_$_19f6[392]][_$_19f6[130]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1217]))D=_$_19f6[928],J=Array[_$_19f6[151]][_$_19f6[28]][_$_19f6[25]](v[_$_19f6[392]][_$_19f6[130]][_$_19f6[136]],v[_$_19f6[392]]);else if(1==B)D=_$_19f6[1031],J=v[_$_19f6[392]][_$_19f6[529]]-v[_$_19f6[530]],v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[558])&&3<J&&20>J&&(D=_$_19f6[271]),J=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[203]);else if(2==B){if(v=n(v,M))D=_$_19f6[579],J=v[0],S=v[1],
|
|
549
|
-
V=v[2]}else if(3==B){if(J=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[203]),S=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[162]),J||S)D=_$_19f6[1218]}else B||jSuites[_$_19f6[1220]](v[_$_19f6[392]],_$_19f6[1219])&&(D=_$_19f6[275]);return[M,P,B,D,J,S,V]},n=function(v,A){if(v[_$_19f6[681]]&&v[_$_19f6[681]][0]){var B=v[_$_19f6[681]][0][_$_19f6[682]];v=v[_$_19f6[681]][0][_$_19f6[683]]}else B=v[_$_19f6[682]],v=v[_$_19f6[683]];A=A[_$_19f6[260]][_$_19f6[48]][_$_19f6[926]]?A[_$_19f6[260]][_$_19f6[48]][_$_19f6[926]]:document;
|
|
550
|
-
if(A[_$_19f6[1221]])var D=A[_$_19f6[1221]](B,v);else A[_$_19f6[1222]]&&(D=A[_$_19f6[1222]](B,v));for(A=0;A<D[_$_19f6[2]];A++)if(B=D[A][_$_19f6[163]](_$_19f6[203]),v=D[A][_$_19f6[163]](_$_19f6[162]),null!=B&&null!=v)return B=parseInt(B),v=parseInt(v),[B,v,D[A]];return!1},u=function(v){var A=l(v);if(!1===A)return!1;if(A[0])if(A[1])if(w[_$_19f6[52]]&&document[_$_19f6[1223]][_$_19f6[54]][_$_19f6[53]](_$_19f6[373]))document[_$_19f6[1223]][_$_19f6[256]]||(document[_$_19f6[1223]][_$_19f6[256]]=A[1][_$_19f6[924]]);
|
|
551
|
-
else{if(w[_$_19f6[52]]!=A[1][_$_19f6[924]]){if(w[_$_19f6[52]])w[_$_19f6[52]][_$_19f6[433]]();w[_$_19f6[52]]=A[1][_$_19f6[924]]}}else w[_$_19f6[52]]||(v=A[0][_$_19f6[928]][_$_19f6[1090]](),0<=v&&(w[_$_19f6[52]]=A[0][_$_19f6[260]][_$_19f6[427]][v]));else w[_$_19f6[52]]&&!jSuites[_$_19f6[1220]](v[_$_19f6[392]],_$_19f6[685])&&(w[_$_19f6[52]][_$_19f6[433]](!0),w[_$_19f6[52]]=null);return A};h[_$_19f6[361]]=function(v){if(v[_$_19f6[392]][_$_19f6[700]]==_$_19f6[1224]&&v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[373])){var A=
|
|
552
|
-
null;v[_$_19f6[392]][_$_19f6[256]]?A=v[_$_19f6[392]][_$_19f6[256]]:w[_$_19f6[52]]&&(A=w[_$_19f6[52]]);if(A)na[_$_19f6[99]][_$_19f6[25]](A,v[_$_19f6[392]])}};h[_$_19f6[363]]=function(v){if(w[_$_19f6[52]]){if(v[_$_19f6[392]][_$_19f6[700]]==_$_19f6[1224]&&v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[373]))na[_$_19f6[711]][_$_19f6[25]](w[_$_19f6[52]],v);if(27==v[_$_19f6[684]]){if(w[_$_19f6[52]][_$_19f6[14]]){w[_$_19f6[52]][_$_19f6[352]](w[_$_19f6[52]][_$_19f6[14]],!1);v[_$_19f6[198]]();return}if(sa[_$_19f6[510]]){sa[_$_19f6[517]][_$_19f6[25]](w[_$_19f6[52]],
|
|
553
|
-
v);v[_$_19f6[198]]();return}if(Z[_$_19f6[510]]){Z[_$_19f6[517]][_$_19f6[25]](w[_$_19f6[52]],v);return}if(1==ha[_$_19f6[169]]()){ha[_$_19f6[353]][_$_19f6[25]](w[_$_19f6[52]],!1);v[_$_19f6[198]]();return}}if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1E3])){var A=v[_$_19f6[392]];f&&clearTimeout(f);f=setTimeout(function(){ha[_$_19f6[274]][_$_19f6[25]](w[_$_19f6[52]],A[_$_19f6[23]]);f=null},500)}else if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1016]))A=v[_$_19f6[392]],f&&clearTimeout(f),
|
|
554
|
-
f=setTimeout(function(){w[_$_19f6[52]][_$_19f6[274]](A[_$_19f6[23]]);f=null},400);else if(!v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[685]))if(w[_$_19f6[52]][_$_19f6[14]]){var B=w[_$_19f6[52]][_$_19f6[14]][_$_19f6[163]](_$_19f6[203]);if(13==v[_$_19f6[684]])if(w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][B][_$_19f6[248]]==_$_19f6[593])w[_$_19f6[52]][_$_19f6[352]](w[_$_19f6[52]][_$_19f6[14]],!0);else{if(w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][B][_$_19f6[248]]!=_$_19f6[250]&&w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][B][_$_19f6[248]]!=
|
|
555
|
-
_$_19f6[1225]&&w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][B][_$_19f6[248]]!=_$_19f6[1071])if(v[_$_19f6[1226]]){if(!w[_$_19f6[52]][_$_19f6[50]][_$_19f6[361]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1227]))document[_$_19f6[631]](_$_19f6[1228],!1,_$_19f6[1229])}else{w[_$_19f6[52]][_$_19f6[352]](w[_$_19f6[52]][_$_19f6[14]],!0);if(w[_$_19f6[52]][_$_19f6[50]][_$_19f6[48]][_$_19f6[1230]])w[_$_19f6[52]][_$_19f6[197]]();v[_$_19f6[198]]()}}else if(9==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[352]](w[_$_19f6[52]][_$_19f6[14]],
|
|
556
|
-
!0),w[_$_19f6[52]][_$_19f6[83]](),v[_$_19f6[198]]();else if((39==v[_$_19f6[684]]||37==v[_$_19f6[684]]||38==v[_$_19f6[684]]||40==v[_$_19f6[684]])&&!w[_$_19f6[52]][_$_19f6[50]][_$_19f6[361]][_$_19f6[364]]){w[_$_19f6[52]][_$_19f6[352]](w[_$_19f6[52]][_$_19f6[14]],!0);if(37==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[157]](v[_$_19f6[195]],v[_$_19f6[705]]);else if(39==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[83]](v[_$_19f6[195]],v[_$_19f6[705]]);else if(38==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[196]](v[_$_19f6[195]],
|
|
557
|
-
v[_$_19f6[705]]);else if(40==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[197]](v[_$_19f6[195]],v[_$_19f6[705]]);v[_$_19f6[198]]()}}else{if((v[_$_19f6[705]]||v[_$_19f6[1231]])&&!v[_$_19f6[195]]){if(65==v[_$_19f6[684]]){w[_$_19f6[52]][_$_19f6[436]]();v[_$_19f6[198]]();return}if(83==v[_$_19f6[684]]){w[_$_19f6[52]][_$_19f6[612]]();v[_$_19f6[198]]();return}if(89==v[_$_19f6[684]]){w[_$_19f6[52]][_$_19f6[50]][_$_19f6[230]]();v[_$_19f6[198]]();return}if(90==v[_$_19f6[684]]){w[_$_19f6[52]][_$_19f6[50]][_$_19f6[229]]();
|
|
558
|
-
v[_$_19f6[198]]();return}if(70==v[_$_19f6[684]]&&w[_$_19f6[52]][_$_19f6[50]][_$_19f6[954]][_$_19f6[274]]){w[_$_19f6[52]][_$_19f6[50]][_$_19f6[954]][_$_19f6[274]][_$_19f6[351]](!0);v[_$_19f6[198]]();return}}if(w[_$_19f6[52]][_$_19f6[221]])if(33==v[_$_19f6[684]]){if(0<w[_$_19f6[52]][_$_19f6[39]][_$_19f6[179]])Aa[_$_19f6[205]][_$_19f6[25]](w[_$_19f6[52]]);else if(v[_$_19f6[1226]])H[_$_19f6[207]][_$_19f6[25]](w[_$_19f6[52]]);else H[_$_19f6[205]][_$_19f6[25]](w[_$_19f6[52]]);v[_$_19f6[198]]()}else if(34==
|
|
559
|
-
v[_$_19f6[684]]){if(0<w[_$_19f6[52]][_$_19f6[39]][_$_19f6[179]])Aa[_$_19f6[206]][_$_19f6[25]](w[_$_19f6[52]]);else if(v[_$_19f6[1226]])H[_$_19f6[208]][_$_19f6[25]](w[_$_19f6[52]]);else H[_$_19f6[206]][_$_19f6[25]](w[_$_19f6[52]]);v[_$_19f6[198]]()}else if(37==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[157]](v[_$_19f6[195]],v[_$_19f6[705]]),v[_$_19f6[198]]();else if(39==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[83]](v[_$_19f6[195]],v[_$_19f6[705]]),v[_$_19f6[198]]();else if(38==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[196]](v[_$_19f6[195]],
|
|
560
|
-
v[_$_19f6[705]]),v[_$_19f6[198]]();else if(40==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[197]](v[_$_19f6[195]],v[_$_19f6[705]]),v[_$_19f6[198]]();else if(36==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[220]](v[_$_19f6[195]],v[_$_19f6[705]]),v[_$_19f6[198]]();else if(35==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[219]](v[_$_19f6[195]],v[_$_19f6[705]]),v[_$_19f6[198]]();else if(32==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[753]](),v[_$_19f6[198]]();else if(46==v[_$_19f6[684]]||8==v[_$_19f6[684]]){if(w[_$_19f6[52]][_$_19f6[231]]())w[_$_19f6[52]][_$_19f6[318]](w[_$_19f6[52]][_$_19f6[599]](!1,
|
|
561
|
-
!0),_$_19f6[8])}else if(13==v[_$_19f6[684]]){if(v[_$_19f6[195]])w[_$_19f6[52]][_$_19f6[196]]();else{if(1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1232]]&&w[_$_19f6[52]][_$_19f6[221]][1]==(w[_$_19f6[52]][_$_19f6[181]]?w[_$_19f6[52]][_$_19f6[181]][w[_$_19f6[52]][_$_19f6[181]][_$_19f6[2]]-1]:w[_$_19f6[52]][_$_19f6[24]][_$_19f6[2]]-1))w[_$_19f6[52]][_$_19f6[277]](null,null,null,null,v);if(w[_$_19f6[52]][_$_19f6[221]])w[_$_19f6[52]][_$_19f6[197]]()}v[_$_19f6[198]]()}else if(9==v[_$_19f6[684]]){if(v[_$_19f6[195]])w[_$_19f6[52]][_$_19f6[157]]();
|
|
562
|
-
else B=w[_$_19f6[52]][_$_19f6[221]][0],w[_$_19f6[52]][_$_19f6[83]](),1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[829]]&&1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1233]]&&w[_$_19f6[52]][_$_19f6[221]][0]==B&&(w[_$_19f6[52]][_$_19f6[276]](null,null,null,null,null,null,v),w[_$_19f6[52]][_$_19f6[83]]());v[_$_19f6[198]]()}else if((v[_$_19f6[705]]||v[_$_19f6[1231]])&&!v[_$_19f6[195]])if(67==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[614]](),v[_$_19f6[198]]();else if(88==v[_$_19f6[684]])w[_$_19f6[52]][_$_19f6[616]](),
|
|
563
|
-
v[_$_19f6[198]]();else if(86==v[_$_19f6[684]]){if(!v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[685]))h[_$_19f6[615]](v)}else{if(189==v[_$_19f6[684]])if(1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[815]]&&k[3]==_$_19f6[310]){if(fa[_$_19f6[447]][_$_19f6[25]](w[_$_19f6[52]],w[_$_19f6[52]][_$_19f6[221]]))w[_$_19f6[52]][_$_19f6[287]]();v[_$_19f6[198]]()}else if(1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[838]]&&k[3]==_$_19f6[1031]){if(fa[_$_19f6[447]][_$_19f6[25]](w[_$_19f6[52]],w[_$_19f6[52]][_$_19f6[221]]))w[_$_19f6[52]][_$_19f6[292]]();
|
|
564
|
-
v[_$_19f6[198]]()}}else if(w[_$_19f6[52]][_$_19f6[231]]()){B=w[_$_19f6[52]][_$_19f6[221]][1];var D=w[_$_19f6[52]][_$_19f6[221]][0];if(w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][D][_$_19f6[248]]!=_$_19f6[64])if(32==v[_$_19f6[362]])if(w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][D][_$_19f6[248]]==_$_19f6[757]||w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][D][_$_19f6[248]]==_$_19f6[764])v[_$_19f6[198]]();else w[_$_19f6[52]][_$_19f6[350]](w[_$_19f6[52]][_$_19f6[45]][B][D][_$_19f6[51]],!0,v);else if(113==v[_$_19f6[362]])w[_$_19f6[52]][_$_19f6[350]](w[_$_19f6[52]][_$_19f6[45]][B][D][_$_19f6[51]],
|
|
565
|
-
!1,v);else if(!(1!=v[_$_19f6[1234]][_$_19f6[2]]&&v[_$_19f6[1234]]!=_$_19f6[1235]||v[_$_19f6[1226]]||v[_$_19f6[705]])&&w[_$_19f6[52]][_$_19f6[45]][B])w[_$_19f6[52]][_$_19f6[350]](w[_$_19f6[52]][_$_19f6[45]][B][D][_$_19f6[51]],!0,v)}}}};var q=[0,0],r=function(v,A){A||(A=800);e&&H[_$_19f6[166]][_$_19f6[25]](w[_$_19f6[52]])&&(g&&(clearTimeout(g),g=null),g=setTimeout(function(){if(e){200<A&&(A=200);A-=10;20>A&&(A=20);var B=q[0],D=q[1],M=w[_$_19f6[52]][_$_19f6[133]][_$_19f6[383]]();if(50>M[_$_19f6[184]]-
|
|
566
|
-
(D-M[_$_19f6[144]]))H[_$_19f6[197]][_$_19f6[25]](w[_$_19f6[52]]);else if(80>D-M[_$_19f6[144]])H[_$_19f6[196]][_$_19f6[25]](w[_$_19f6[52]]);if(50>M[_$_19f6[170]]-(B-M[_$_19f6[157]]))H[_$_19f6[83]][_$_19f6[25]](w[_$_19f6[52]]);else if(80>B-M[_$_19f6[157]])H[_$_19f6[157]][_$_19f6[25]](w[_$_19f6[52]]);r(v,A)}g=null},A))},p=function(v,A,B,D,M,P,L){if(document[_$_19f6[1223]][_$_19f6[54]][_$_19f6[53]](_$_19f6[373])&&na[_$_19f6[57]][_$_19f6[25]](w[_$_19f6[52]],v,A,B,D,M,document[_$_19f6[1223]],L))return!1;
|
|
567
|
-
if(w[_$_19f6[52]][_$_19f6[14]])w[_$_19f6[52]][_$_19f6[352]](w[_$_19f6[52]][_$_19f6[14]],!0);else if(c&&c!==P)return!1;w[_$_19f6[52]]!==L&&(w[_$_19f6[52]][_$_19f6[433]](),w[_$_19f6[52]]=L);if(na[_$_19f6[52]])na[_$_19f6[587]][_$_19f6[25]](w[_$_19f6[52]],v,A,B,D,M);else fa[_$_19f6[26]][_$_19f6[25]](w[_$_19f6[52]],v,A,B,D,M)};h[_$_19f6[1236]]=function(v){v=v||window[_$_19f6[510]];var A=v[_$_19f6[1237]]?v[_$_19f6[1237]]:v[_$_19f6[1001]]?v[_$_19f6[1001]]:v[_$_19f6[684]];if(w[_$_19f6[52]]){if(1==ha[_$_19f6[169]]()&&
|
|
568
|
-
!jSuites[_$_19f6[1220]](v[_$_19f6[392]],_$_19f6[1004]))ha[_$_19f6[353]][_$_19f6[25]](w[_$_19f6[52]],!1);if(w[_$_19f6[52]][_$_19f6[14]]){if(jSuites[_$_19f6[1220]](v[_$_19f6[392]],_$_19f6[389]))return!1}else if(jSuites[_$_19f6[1220]](v[_$_19f6[392]],_$_19f6[685]))return!1}var B=u(v);if(!1===B)return!1;k=B;if(1<A)if(B[3]==_$_19f6[579]){if(w[_$_19f6[52]][_$_19f6[438]](B[4],B[5]))return!1}else if(B[3]==_$_19f6[310]){if(w[_$_19f6[52]][_$_19f6[438]](0,B[4]))return!1}else if(B[3]==_$_19f6[1031]&&w[_$_19f6[52]][_$_19f6[438]](B[4],
|
|
569
|
-
0))return!1;if(w[_$_19f6[52]]){if(B[3]==_$_19f6[459])w[_$_19f6[52]][_$_19f6[231]]()&&(Z[_$_19f6[510]]=!0);else if(B[3]==_$_19f6[271])ha[_$_19f6[351]][_$_19f6[25]](w[_$_19f6[52]],B[4]);else{if(1==B[2])if(d)if(d[_$_19f6[60]][_$_19f6[86]]==_$_19f6[800])sa[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],v);else if(d[_$_19f6[60]][_$_19f6[86]]==_$_19f6[1238])ya[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],v);else{if(d[_$_19f6[60]][_$_19f6[86]]==_$_19f6[1239])if(!0===d[_$_19f6[308]])Y[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],
|
|
570
|
-
v,0);else if(!1===d[_$_19f6[308]])ca[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],v,0);else Y[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],v,parseInt(B[4])+1)}else{A=w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][_$_19f6[2]]-1;var D=w[_$_19f6[52]][_$_19f6[39]][_$_19f6[41]][_$_19f6[2]]-1;if(B[3]==_$_19f6[1074])p(0,0,A,D,v,B[3],B[1][_$_19f6[924]]),a=b=0;else if(B[3]==_$_19f6[153]){var M=va[_$_19f6[587]][_$_19f6[25]](w[_$_19f6[52]],B[5])[B[4]];M[1]>A&&(M[1]=A);p(M[0],0,M[1],D,v,B[3],B[1][_$_19f6[924]]);b=M[0];a=
|
|
571
|
-
0}else B[4]&&((v[_$_19f6[195]]||v[_$_19f6[705]])&&null!=b&&null!=a?p(b,0,B[4],D,v,B[3],B[1][_$_19f6[924]]):(B[3]==_$_19f6[1031]&&b==B[4]&&1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1058]]&&(g=setTimeout(function(){w[_$_19f6[52]][_$_19f6[311]](B[4])},800)),p(B[4],0,B[4],D,v,B[3],B[1][_$_19f6[924]]),b=B[4],a=0))}if(2==B[2])if(B[3]==_$_19f6[310])if(d)if(d[_$_19f6[60]][_$_19f6[86]]==_$_19f6[800])sa[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],v);else if(d[_$_19f6[60]][_$_19f6[86]]==_$_19f6[1240])ya[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],
|
|
572
|
-
v);else{if(d[_$_19f6[60]][_$_19f6[86]]==_$_19f6[1239])ca[_$_19f6[509]][_$_19f6[25]](w[_$_19f6[52]],v,parseInt(B[4])+1)}else A=w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][_$_19f6[2]]-1,D=parseInt(B[4]),(v[_$_19f6[195]]||v[_$_19f6[705]])&&null!=b&&null!=a?p(0,a,A,D,v,B[3],B[1][_$_19f6[924]]):(p(0,D,A,D,v,B[3],B[1][_$_19f6[924]]),b=0,a=D);else if(B[3]==_$_19f6[579]){A=parseInt(B[4]);D=parseInt(B[5]);if(!w[_$_19f6[52]][_$_19f6[14]]&&(M=w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][B[4]][_$_19f6[248]],v[_$_19f6[392]][_$_19f6[700]]==
|
|
573
|
-
_$_19f6[1241]&&(M==_$_19f6[760]||M==_$_19f6[253])&&v[_$_19f6[392]][_$_19f6[130]][_$_19f6[54]][_$_19f6[53]](_$_19f6[432]))){var P=v[_$_19f6[392]][_$_19f6[365]];M==_$_19f6[760]&&(P=_$_19f6[1242]+P);window[_$_19f6[351]](P,_$_19f6[1243])}(v[_$_19f6[195]]||v[_$_19f6[705]])&&w[_$_19f6[52]][_$_19f6[221]]?p(w[_$_19f6[52]][_$_19f6[221]][0],w[_$_19f6[52]][_$_19f6[221]][1],A,D,v,B[3],B[1][_$_19f6[924]]):(p(A,D,A,D,v,B[3],B[1][_$_19f6[924]]),b=A,a=D)}}c=B[3];if(typeof B[3]!==_$_19f6[42])E[_$_19f6[25]](w[_$_19f6[52]][_$_19f6[50]],
|
|
574
|
-
_$_19f6[88],w[_$_19f6[52]],B[3],B[4],B[5],v);e=!0;B[3]!==_$_19f6[579]&&B[3]!==_$_19f6[459]||r(v)}else e=!1};h[_$_19f6[1244]]=function(v){if(w[_$_19f6[52]])if(sa[_$_19f6[510]])sa[_$_19f6[513]][_$_19f6[25]](w[_$_19f6[52]],v);else if(ya[_$_19f6[510]])ya[_$_19f6[513]][_$_19f6[25]](w[_$_19f6[52]],v);else if(Y[_$_19f6[510]])Y[_$_19f6[513]][_$_19f6[25]](w[_$_19f6[52]],v);else if(ca[_$_19f6[510]])ca[_$_19f6[513]][_$_19f6[25]](w[_$_19f6[52]],v);else if(Z[_$_19f6[510]])Z[_$_19f6[513]][_$_19f6[25]](w[_$_19f6[52]],
|
|
575
|
-
v);else if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1003]))ha[_$_19f6[353]][_$_19f6[25]](w[_$_19f6[52]],!0);else if(w[_$_19f6[52]][_$_19f6[14]]&&v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1245])&&50>v[_$_19f6[392]][_$_19f6[529]]-v[_$_19f6[530]]&&50>v[_$_19f6[528]])ja[_$_19f6[353]][_$_19f6[25]](w[_$_19f6[52]],null,!0);else if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[1246])){let A=v[_$_19f6[392]][_$_19f6[159]]-v[_$_19f6[530]];if(w[_$_19f6[52]][_$_19f6[231]]()&&!w[_$_19f6[52]][_$_19f6[14]]&&
|
|
576
|
-
8<A&&18>A)w[_$_19f6[52]][_$_19f6[350]](v[_$_19f6[392]],null,v)}else v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[878])&&(v=v[_$_19f6[392]][_$_19f6[365]]==_$_19f6[31]?0:v[_$_19f6[392]][_$_19f6[365]]==_$_19f6[33]?v[_$_19f6[392]][_$_19f6[163]](_$_19f6[269])-1:v[_$_19f6[392]][_$_19f6[365]]-1,Aa[_$_19f6[26]][_$_19f6[25]](w[_$_19f6[52]],parseInt(v)));g&&(clearTimeout(g),g=null);e=c=!1;if(na[_$_19f6[52]])na[_$_19f6[353]][_$_19f6[25]](w[_$_19f6[52]])};h[_$_19f6[1247]]=function(v){v=v||window[_$_19f6[510]];
|
|
577
|
-
if(v[_$_19f6[681]]&&v[_$_19f6[681]][0]){var A=v[_$_19f6[681]][0][_$_19f6[682]];var B=v[_$_19f6[681]][0][_$_19f6[683]]}else A=v[_$_19f6[682]],B=v[_$_19f6[683]];q=[A,B];if(w[_$_19f6[52]])if(A=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[203]),B=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[162]),1==e)if(sa[_$_19f6[510]])sa[_$_19f6[57]][_$_19f6[25]](w[_$_19f6[52]],v);else if(ya[_$_19f6[510]])ya[_$_19f6[57]][_$_19f6[25]](w[_$_19f6[52]],v);else if(Y[_$_19f6[510]])Y[_$_19f6[800]][_$_19f6[25]](w[_$_19f6[52]],v);else if(ca[_$_19f6[510]])ca[_$_19f6[800]][_$_19f6[25]](w[_$_19f6[52]],
|
|
578
|
-
v);else{if(w[_$_19f6[52]][_$_19f6[39]][_$_19f6[215]]){v=w[_$_19f6[52]][_$_19f6[133]];if(v[_$_19f6[489]]&&v[_$_19f6[489]]!==v[_$_19f6[159]]||v[_$_19f6[490]]&&v[_$_19f6[490]]!==v[_$_19f6[138]])w[_$_19f6[52]][_$_19f6[235]](v[_$_19f6[159]],v[_$_19f6[138]]);v[_$_19f6[489]]=v[_$_19f6[159]];v[_$_19f6[490]]=v[_$_19f6[138]]}}else{var D=v[_$_19f6[392]][_$_19f6[383]]();d&&(d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[8],d=null);1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[47]]&&v[_$_19f6[392]]&&(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[899])?
|
|
579
|
-
w[_$_19f6[52]][_$_19f6[39]][_$_19f6[885]]&&!w[_$_19f6[52]][_$_19f6[39]][_$_19f6[176]]&&5>D[_$_19f6[184]]-(v[_$_19f6[683]]-D[_$_19f6[144]])?(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[1239],d[_$_19f6[308]]=!1):w[_$_19f6[52]][_$_19f6[39]][_$_19f6[890]]&&!w[_$_19f6[52]][_$_19f6[39]][_$_19f6[155]]&&5>D[_$_19f6[170]]-(v[_$_19f6[682]]-D[_$_19f6[157]])&&(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[1239],d[_$_19f6[308]]=!0):v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[805])?w[_$_19f6[52]][_$_19f6[39]][_$_19f6[885]]&&
|
|
580
|
-
w[_$_19f6[52]][_$_19f6[39]][_$_19f6[176]]==parseInt(B)+1&&5>D[_$_19f6[184]]-(v[_$_19f6[683]]-D[_$_19f6[144]])?(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[1239]):1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1248]]&&6>D[_$_19f6[170]]-(v[_$_19f6[682]]-D[_$_19f6[157]])?(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[800]):1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1249]]&&6>D[_$_19f6[184]]-(v[_$_19f6[683]]-D[_$_19f6[144]])&&(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[1240]):v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[552])&&
|
|
581
|
-
(w[_$_19f6[52]][_$_19f6[39]][_$_19f6[890]]&&w[_$_19f6[52]][_$_19f6[39]][_$_19f6[155]]==parseInt(A)+1&&5>D[_$_19f6[170]]-(v[_$_19f6[682]]-D[_$_19f6[157]])?(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[1239]):1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1250]]&&6>D[_$_19f6[170]]-(v[_$_19f6[682]]-D[_$_19f6[157]])?(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=_$_19f6[1238]):1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1251]]&&6>D[_$_19f6[184]]-(v[_$_19f6[683]]-D[_$_19f6[144]])&&(d=v[_$_19f6[392]],d[_$_19f6[60]][_$_19f6[86]]=
|
|
582
|
-
_$_19f6[800])))}};h[_$_19f6[1252]]=function(v){v=v||window[_$_19f6[510]];if(w[_$_19f6[52]]&&1==e){var A=l(v);if(A[0]){if(!document[_$_19f6[1223]][_$_19f6[54]][_$_19f6[53]](_$_19f6[373])&&A[1]&&w[_$_19f6[52]]!=A[1][_$_19f6[924]]&&w[_$_19f6[52]])return!1;if(!(sa[_$_19f6[510]]||ya[_$_19f6[510]]||Y[_$_19f6[510]]||ca[_$_19f6[510]]))if(Z[_$_19f6[510]]){var B=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[203]),D=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[162]);if(w[_$_19f6[52]][_$_19f6[438]](B,D))Z[_$_19f6[341]][_$_19f6[25]](w[_$_19f6[52]]);
|
|
583
|
-
else if(null!==B&&null!==D)Z[_$_19f6[25]](w[_$_19f6[52]],B,D)}else null!==b&&null!==a&&(1==A[2]&&(B=b,A[3]==_$_19f6[1031]&&(B=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[203])),D=w[_$_19f6[52]][_$_19f6[39]][_$_19f6[41]][_$_19f6[2]]-1,p(b,0,B,D,v,A[3],A[1][_$_19f6[924]]),g&&(clearTimeout(g),g=null)),2==A[2]&&(A[3]==_$_19f6[310]?(B=w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][_$_19f6[2]]-1,D=parseInt(v[_$_19f6[392]][_$_19f6[163]](_$_19f6[162])),p(0,a,B,D,v,A[3],A[1][_$_19f6[924]])):A[3]==_$_19f6[579]&&(B=A[4],
|
|
584
|
-
D=A[5],p(b,a,B,D,v,A[3],A[1][_$_19f6[924]]))))}}};h[_$_19f6[1253]]=function(v){if(w[_$_19f6[52]])if(v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[911]))Z[_$_19f6[346]][_$_19f6[25]](w[_$_19f6[52]],!1);else{var A=l(v);if(1==A[2]){if(v=v[_$_19f6[392]][_$_19f6[163]](_$_19f6[203]))if(d&&d[_$_19f6[60]][_$_19f6[86]]==_$_19f6[1238])w[_$_19f6[52]][_$_19f6[972]](w[_$_19f6[515]]());else if(1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1061]]&&1==w[_$_19f6[52]][_$_19f6[39]][_$_19f6[1254]])w[_$_19f6[52]][_$_19f6[315]](v)}else if(2==
|
|
585
|
-
A[2]&&w[_$_19f6[52]][_$_19f6[231]]()&&!w[_$_19f6[52]][_$_19f6[14]]&&A[6])w[_$_19f6[52]][_$_19f6[350]](A[6],null,v)}};h[_$_19f6[615]]=function(v){if(!v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[685])&&w[_$_19f6[52]]&&w[_$_19f6[52]][_$_19f6[221]]&&!w[_$_19f6[52]][_$_19f6[14]]){var A=v[_$_19f6[1255]]||window[_$_19f6[1255]];if(A){var B=Math[_$_19f6[1054]](w[_$_19f6[52]][_$_19f6[221]][0],w[_$_19f6[52]][_$_19f6[221]][2]),D=Math[_$_19f6[1054]](w[_$_19f6[52]][_$_19f6[221]][1],w[_$_19f6[52]][_$_19f6[221]][3]);
|
|
586
|
-
w[_$_19f6[52]][_$_19f6[615]](B,D,A[_$_19f6[603]](_$_19f6[247]));if(v)v[_$_19f6[198]]()}}};h[_$_19f6[1029]]=function(v){var A=u(v);!1!==A&&(A[1]||(A=k),w[_$_19f6[52]]&&!w[_$_19f6[52]][_$_19f6[14]]&&(A=Array[_$_19f6[151]][_$_19f6[283]][_$_19f6[25]](A,3),Wa[_$_19f6[351]][_$_19f6[25]](w[_$_19f6[52]],v,A)))};var x=null,y=null,C=null,z=null,F=null;h[_$_19f6[967]]=function(v){var A=l(v);if(A[0]){if(A[1]&&w[_$_19f6[52]]!=A[1][_$_19f6[924]]){if(w[_$_19f6[52]])w[_$_19f6[52]][_$_19f6[433]]();w[_$_19f6[52]]=
|
|
587
|
-
A[1][_$_19f6[924]]}}else w[_$_19f6[52]]&&(w[_$_19f6[52]][_$_19f6[433]](),w[_$_19f6[52]]=null);if(w[_$_19f6[52]]&&!w[_$_19f6[52]][_$_19f6[14]])if(A[3]==_$_19f6[459])w[_$_19f6[52]][_$_19f6[231]]()&&(Z[_$_19f6[510]]=!0);else if(v[_$_19f6[392]]&&v[_$_19f6[392]][_$_19f6[54]][_$_19f6[53]](_$_19f6[466]))F=parseInt(v[_$_19f6[392]][_$_19f6[163]](_$_19f6[467]));else if(A[3]==_$_19f6[579]){z=A;if(x===v[_$_19f6[392]]&&y)w[_$_19f6[52]][_$_19f6[350]](v[_$_19f6[392]],!1,v);else y=setTimeout(function(){x=y=z=null},
|
|
588
|
-
400),C=setTimeout(function(){h[_$_19f6[1029]](v);C=null},800);x=v[_$_19f6[392]]}else z=null;else z=null};h[_$_19f6[968]]=function(v){if(w[_$_19f6[52]]){var A=null,B=null,D=null,M=null;if(v[_$_19f6[681]]&&v[_$_19f6[681]][0]){var P=v[_$_19f6[681]][0][_$_19f6[682]];var L=v[_$_19f6[681]][0][_$_19f6[683]]}else P=v[_$_19f6[682]],L=v[_$_19f6[683]];if(L=document[_$_19f6[1256]](P,L))if(P=L[_$_19f6[163]](_$_19f6[203]),L=L[_$_19f6[163]](_$_19f6[162]),null!==P&&null!==L&&Z[_$_19f6[510]])w[_$_19f6[52]][_$_19f6[438]](P,
|
|
589
|
-
L)||(Z[_$_19f6[25]](w[_$_19f6[52]],P,L),r(v)),v[_$_19f6[198]]();else if(null!==F){P=parseInt(P);L=parseInt(L);var J=w[_$_19f6[52]][_$_19f6[221]];0==F?P<=J[2]&&(A=P,D=J[2],B=J[1],M=J[3]):2==F?P>=J[0]&&(A=J[0],B=J[1],D=P,M=J[3]):1==F?L<=J[3]&&(A=J[0],B=L,D=J[2],M=J[3]):3==F&&L>=J[1]&&(A=J[0],B=J[1],D=J[2],M=L);if(null!==A)w[_$_19f6[52]][_$_19f6[338]](A,B,D,M);v[_$_19f6[198]]()}else z=null;C&&clearInterval(C)}};h[_$_19f6[969]]=function(v){if(Z[_$_19f6[510]])Z[_$_19f6[513]][_$_19f6[25]](w[_$_19f6[52]],
|
|
590
|
-
v);else if(null!==F)F=null;else if(z){v=null;if(z[3]===_$_19f6[579]){var A=z[4];var B=z[5];var D=A;v=B}else z[3]===_$_19f6[310]?(A=0,B=z[4],D=w[_$_19f6[52]][_$_19f6[39]][_$_19f6[38]][_$_19f6[2]]-1,v=B):z[3]===_$_19f6[1031]&&(A=z[4],B=0,D=A,v=w[_$_19f6[52]][_$_19f6[24]][_$_19f6[2]]-1);if(null!=A)w[_$_19f6[52]][_$_19f6[338]](A,B,D,v)}C&&clearInterval(C)};h[_$_19f6[270]]=function(){if(w[_$_19f6[52]]&&1==w[_$_19f6[52]][_$_19f6[50]][_$_19f6[48]][_$_19f6[49]])H[_$_19f6[25]](w[_$_19f6[52]],!0)};return h}(),
|
|
591
|
-
fb=function(){if(Array[_$_19f6[6]](this[_$_19f6[728]])&&0<this[_$_19f6[728]][_$_19f6[2]])for(var h;h=this[_$_19f6[728]][_$_19f6[268]]();)h[0][_$_19f6[622]](h[1],h[2],O[_$_19f6[25]](h[0],h[1],h[2]),!0)},w=function(h,d,b){if(h){if(h[_$_19f6[700]]==_$_19f6[1191]){d=w[_$_19f6[240]][_$_19f6[1190]](h,d);var a=document[_$_19f6[71]](_$_19f6[81]);h[_$_19f6[130]][_$_19f6[141]](a,h);h[_$_19f6[130]][_$_19f6[129]](h);h=a}d||(d={});w[_$_19f6[804]]||(a=document[_$_19f6[71]](_$_19f6[81]),a[_$_19f6[72]]=_$_19f6[1258],
|
|
592
|
-
document[_$_19f6[651]][_$_19f6[73]](a),w[_$_19f6[804]]=a[_$_19f6[1259]](_$_19f6[551])[_$_19f6[138]],a[_$_19f6[130]][_$_19f6[129]](a));var c=[];if(d[_$_19f6[1180]]&&!b){if(typeof w[_$_19f6[1180]]==_$_19f6[344])w[_$_19f6[1180]][_$_19f6[607]](d,function(f){if((f=w(h,f,!0))&&f[_$_19f6[2]])for(var g=0;g<f[_$_19f6[2]];g++)c[_$_19f6[65]](f[g])});else console[_$_19f6[357]](_$_19f6[1260]);return c}if(h[_$_19f6[260]])e=h[_$_19f6[260]],Ea[_$_19f6[26]][_$_19f6[25]](e,d);else var e=pa[_$_19f6[260]](h,d);e[_$_19f6[727]]=
|
|
593
|
-
!0;if(1==e[_$_19f6[48]][_$_19f6[624]])jSuites[_$_19f6[58]][_$_19f6[272]]();jSuites[_$_19f6[257]][_$_19f6[1261]][e[_$_19f6[40]]]=function(){for(var f=0;f<e[_$_19f6[427]][_$_19f6[2]];f++)typeof e[_$_19f6[427]][f][_$_19f6[918]]==_$_19f6[344]&&(e[_$_19f6[427]][f][_$_19f6[918]](),e[_$_19f6[427]][f][_$_19f6[918]]=null);e[_$_19f6[727]]=!1;fb[_$_19f6[25]](e);if(e[_$_19f6[48]][_$_19f6[275]])ia[_$_19f6[272]][_$_19f6[25]](e);for(f=0;f<e[_$_19f6[427]][_$_19f6[2]];f++)ba[_$_19f6[77]][_$_19f6[25]](e[_$_19f6[427]][f]);
|
|
594
|
-
E[_$_19f6[25]](e,_$_19f6[918],e);for(f=0;f<e[_$_19f6[427]][_$_19f6[2]];f++)aa[_$_19f6[57]][_$_19f6[25]](e[_$_19f6[427]][f]);jSuites[_$_19f6[58]][_$_19f6[273]]()};Array[_$_19f6[6]](d[_$_19f6[427]])&&(d=d[_$_19f6[427]]);if(Array[_$_19f6[6]](d)){for(b=0;b<d[_$_19f6[2]];b++)pa[_$_19f6[256]](e,d[b]);c=e[_$_19f6[427]]}else c=pa[_$_19f6[256]](e,d);jSuites[_$_19f6[257]][_$_19f6[1262]](e[_$_19f6[40]])||(jSuites[_$_19f6[257]][_$_19f6[1261]][e[_$_19f6[40]]](),jSuites[_$_19f6[257]][_$_19f6[1261]][e[_$_19f6[40]]]=
|
|
595
|
-
null);return c}console[_$_19f6[357]](_$_19f6[1257])};w[_$_19f6[804]]=null;w[_$_19f6[19]]=null;w[_$_19f6[1263]]=function(h){w[_$_19f6[19]]=h};w[_$_19f6[260]]=[];w[_$_19f6[679]]=na;w[_$_19f6[1264]]=function(h){jSuites[_$_19f6[1264]](h)};w[_$_19f6[955]]={};w[_$_19f6[1265]]=function(h){for(var d=Object[_$_19f6[245]](h),b=0;b<d[_$_19f6[2]];b++)if(typeof h[d[b]]===_$_19f6[344]&&(w[d[b]]=h[d[b]],w[_$_19f6[955]][d[b]]=h[d[b]],w[_$_19f6[19]]&&typeof w[d[b]][_$_19f6[19]]==_$_19f6[344]))w[d[b]][_$_19f6[19]][_$_19f6[25]](w,
|
|
596
|
-
w[_$_19f6[19]])};w[_$_19f6[492]]=function(h,d){if(h[_$_19f6[260]]){if(d)pa[_$_19f6[970]](h);d=Object[_$_19f6[245]](w[_$_19f6[955]]);if(d[_$_19f6[2]])for(var b=0;b<d[_$_19f6[2]];b++)if(typeof w[_$_19f6[955]][d[b]][_$_19f6[1266]]==_$_19f6[344])w[_$_19f6[955]][d[b]][_$_19f6[1266]](h[_$_19f6[260]]);d=w[_$_19f6[260]][_$_19f6[28]](h[_$_19f6[260]]);w[_$_19f6[260]][_$_19f6[576]](d,1);for(b=0;b<h[_$_19f6[260]][_$_19f6[427]][_$_19f6[2]];b++)T(h[_$_19f6[260]][_$_19f6[427]][b][_$_19f6[39]][_$_19f6[450]],null);
|
|
597
|
-
h[_$_19f6[260]]=null;h[_$_19f6[924]]=null;h[_$_19f6[72]]=_$_19f6[8];h[_$_19f6[378]](_$_19f6[1200])}};w[_$_19f6[16]]=za;w[_$_19f6[240]]=G;w[_$_19f6[1267]]=Da;typeof formula!==_$_19f6[42]&&(w[_$_19f6[595]]=formula);w[_$_19f6[354]]=function(){var h={},d=function(b,a){return 1==b[a]||b[_$_19f6[39]]&&1==b[_$_19f6[39]][a]?!0:b[a]==_$_19f6[707]||b[_$_19f6[39]]&&b[_$_19f6[39]][a]==_$_19f6[707]?!0:!1};h[_$_19f6[1268]]=function(b,a,c,e){e[_$_19f6[50]][_$_19f6[361]][_$_19f6[386]](_$_19f6[390],!1);b==_$_19f6[361]?
|
|
598
|
-
(b=document[_$_19f6[71]](_$_19f6[361]),b[_$_19f6[248]]=_$_19f6[247],b[_$_19f6[23]]=c):b=document[_$_19f6[71]](_$_19f6[81]);b[_$_19f6[60]][_$_19f6[170]]=a[_$_19f6[159]]-2+_$_19f6[154];b[_$_19f6[60]][_$_19f6[184]]=a[_$_19f6[138]]-1+_$_19f6[154];e[_$_19f6[50]][_$_19f6[361]][_$_19f6[73]](b);return b};h[_$_19f6[1269]]=function(b,a,c,e,f){b=h[_$_19f6[1268]](_$_19f6[81],b,a,f);b[_$_19f6[54]][_$_19f6[55]](_$_19f6[1270]);b[_$_19f6[54]][_$_19f6[55]](_$_19f6[1245]);800>window[_$_19f6[1271]]?(f[_$_19f6[50]][_$_19f6[361]][_$_19f6[60]][_$_19f6[144]]=
|
|
599
|
-
_$_19f6[471],f[_$_19f6[50]][_$_19f6[361]][_$_19f6[60]][_$_19f6[157]]=_$_19f6[471]):(a=f[_$_19f6[50]][_$_19f6[361]][_$_19f6[383]](),window[_$_19f6[1272]]<a[_$_19f6[477]]&&(f[_$_19f6[50]][_$_19f6[361]][_$_19f6[60]][_$_19f6[186]]=-f[_$_19f6[50]][_$_19f6[361]][_$_19f6[138]]));return b};h[_$_19f6[562]]=function(){var b={},a=function(e){return(_$_19f6[8]+e)[0]==_$_19f6[34]?!0:!1},c=function(e){if(e[_$_19f6[1273]]||e[_$_19f6[381]]||e[_$_19f6[1274]]){var f={};e[_$_19f6[381]]?f[_$_19f6[381]]=e[_$_19f6[381]]:
|
|
600
|
-
e[_$_19f6[1273]]?f[_$_19f6[381]]=e[_$_19f6[1273]]:f[_$_19f6[1274]]=e[_$_19f6[1274]];e[_$_19f6[39]]&&(f[_$_19f6[39]]=e[_$_19f6[39]]);e[_$_19f6[1275]]&&(f[_$_19f6[39]]||(f[_$_19f6[39]]={}),f[_$_19f6[39]]={decimal:e[_$_19f6[1275]]});return f[_$_19f6[381]]===_$_19f6[1276]?!1:f}return null};b[_$_19f6[771]]=function(e,f,g,k,l,n){return b[_$_19f6[622]](e,f,g,k,l,n)};b[_$_19f6[622]]=function(e,f,g,k,l,n){g=parseInt(g);k=parseInt(k);if(e){var u=c(n),q=null;f===_$_19f6[8]||a(f)||typeof f===_$_19f6[43]||typeof f!=
|
|
601
|
-
_$_19f6[62]||f[_$_19f6[693]]()===_$_19f6[8]||(u?(u=jSuites[_$_19f6[381]][_$_19f6[1277]](f,u,!0))&&u[_$_19f6[23]]!==_$_19f6[8]&&(q=u[_$_19f6[23]]):1==(!1===l[_$_19f6[50]][_$_19f6[48]][_$_19f6[1278]]||!1===n[_$_19f6[1278]]?!1:!0)&&(n[_$_19f6[248]]==_$_19f6[43]||n[_$_19f6[248]]==_$_19f6[859]||n[_$_19f6[248]]==_$_19f6[858]?(u=jSuites[_$_19f6[381]][_$_19f6[1277]](f,n,!0))&&u[_$_19f6[23]]!==_$_19f6[8]&&(q=u[_$_19f6[23]]):jSuites[_$_19f6[597]](Number(f))&&(q=Number(f))));null!==q&&(f=q);f=b[_$_19f6[561]](g,
|
|
602
|
-
k,f,l,n,e);f instanceof Element||f instanceof HTMLDocument?(e[_$_19f6[72]]=_$_19f6[8],e[_$_19f6[73]](f)):n[_$_19f6[225]]?(e[_$_19f6[67]]&&e[_$_19f6[67]][_$_19f6[54]][_$_19f6[53]](_$_19f6[68])?l=e[_$_19f6[67]]:(l=document[_$_19f6[71]](_$_19f6[70]),l[_$_19f6[54]][_$_19f6[55]](_$_19f6[68])),l[_$_19f6[60]][_$_19f6[69]]=_$_19f6[74]+parseInt(270-n[_$_19f6[225]])+_$_19f6[75],l[_$_19f6[72]]=f,e[_$_19f6[73]](l)):1==l[_$_19f6[50]][_$_19f6[48]][_$_19f6[563]]?e[_$_19f6[365]]=f:e[_$_19f6[72]]=f;if(null!==q)return q}};
|
|
603
|
-
b[_$_19f6[350]]=function(e,f,g,k,l,n){var u=l[_$_19f6[50]][_$_19f6[361]];u[_$_19f6[376]]=function(){if(!u[_$_19f6[54]][_$_19f6[53]](_$_19f6[373]))l[_$_19f6[352]](e,!0)};if(n[_$_19f6[248]]==_$_19f6[43]||n[_$_19f6[248]]==_$_19f6[859]||n[_$_19f6[248]]==_$_19f6[858])u[_$_19f6[54]][_$_19f6[55]](_$_19f6[1227]),a(f)||n[_$_19f6[380]]||(n[_$_19f6[380]]=_$_19f6[1275]);g=null;if(!a(f)){if(n[_$_19f6[380]])u[_$_19f6[386]](_$_19f6[380],n[_$_19f6[380]]);if(g=c(n)){if(!n[_$_19f6[1279]]){if(n[_$_19f6[381]])k=n[_$_19f6[381]][_$_19f6[98]](_$_19f6[676]),
|
|
604
|
-
u[_$_19f6[386]](_$_19f6[377],k[0]);else if(n[_$_19f6[1274]])u[_$_19f6[386]](_$_19f6[1280],n[_$_19f6[1274]]);g[_$_19f6[361]]=u;u[_$_19f6[381]]=g;jSuites[_$_19f6[381]][_$_19f6[571]](f,g,!1)}}else f&&n[_$_19f6[248]]==_$_19f6[858]&&(f*=100)}if(!g||n[_$_19f6[1279]])l[_$_19f6[50]][_$_19f6[48]][_$_19f6[563]]?u[_$_19f6[365]]=f:u[_$_19f6[72]]=f,jSuites[_$_19f6[374]](u)};b[_$_19f6[352]]=function(e,f,g,k,l,n){e=l[_$_19f6[50]][_$_19f6[361]];f=f?e[_$_19f6[365]]:_$_19f6[8];a(f)?f=f[_$_19f6[5]](/(\r\n|\n|\r)/gm,
|
|
605
|
-
_$_19f6[8]):n[_$_19f6[248]]==_$_19f6[858]&&(f+=_$_19f6[1281],e[_$_19f6[54]][_$_19f6[56]](_$_19f6[1282]));return f};b[_$_19f6[561]]=function(e,f,g,k,l,n){1==k[_$_19f6[50]][_$_19f6[48]][_$_19f6[559]]&&(k[_$_19f6[718]](e,f),a(g)&&(g=k[_$_19f6[717]](g,e,f)));if(!(g instanceof Element||g instanceof HTMLDocument)){if(n)if(!l[_$_19f6[225]]&&jSuites[_$_19f6[597]](g))n[_$_19f6[54]][_$_19f6[55]](_$_19f6[1283]);else n[_$_19f6[54]][_$_19f6[56]](_$_19f6[1283]);if(l&&!a(g)&&(e=c(l))){if(e[_$_19f6[381]])if(f=e[_$_19f6[381]][_$_19f6[98]](_$_19f6[676]),
|
|
606
|
-
0>g&&f[1]){if(n&&-1!==f[1][_$_19f6[28]](_$_19f6[1284]))n[_$_19f6[54]][_$_19f6[55]](_$_19f6[1285]);n=-1===f[1][_$_19f6[28]](_$_19f6[668])?jSuites[_$_19f6[381]][_$_19f6[571]](-1*g,e,!0):jSuites[_$_19f6[381]][_$_19f6[571]](g,e,!0)}else{e[_$_19f6[381]]=f[0];if(n)n[_$_19f6[54]][_$_19f6[56]](_$_19f6[1285]);n=jSuites[_$_19f6[381]][_$_19f6[571]](g,e,!0)}else n=jSuites[_$_19f6[381]][_$_19f6[571]](g,e,!0);n&&(g=n)}}return g};b[_$_19f6[145]]=function(e,f){var g;return(g=c(e))?jSuites[_$_19f6[381]][_$_19f6[571]](f,
|
|
607
|
-
g,!0):e[_$_19f6[248]]==_$_19f6[858]?100*parseFloat(f):f};b[_$_19f6[796]]=function(e){e[_$_19f6[54]][_$_19f6[56]](_$_19f6[1283])};return b}();h[_$_19f6[247]]=h[_$_19f6[562]];h[_$_19f6[43]]=h[_$_19f6[562]];h[_$_19f6[859]]=h[_$_19f6[562]];h[_$_19f6[858]]=h[_$_19f6[562]];h[_$_19f6[1071]]=function(){var b={},a=null;b[_$_19f6[622]]=function(c,e,f,g,k,l){c&&(f=document[_$_19f6[71]](_$_19f6[81]),f[_$_19f6[54]][_$_19f6[55]](_$_19f6[1286]),1==k[_$_19f6[50]][_$_19f6[48]][_$_19f6[563]]?f[_$_19f6[365]]=e:f[_$_19f6[72]]=
|
|
608
|
-
e,c[_$_19f6[72]]=_$_19f6[8],c[_$_19f6[73]](f))};b[_$_19f6[771]]=b[_$_19f6[622]];b[_$_19f6[350]]=function(c,e,f,g,k,l){var n=l&&l[_$_19f6[39]]?l[_$_19f6[39]]:{};n[_$_19f6[374]]=!0;n[_$_19f6[23]]=e;n[_$_19f6[1287]]=!1;n[_$_19f6[184]]=_$_19f6[1288];n[_$_19f6[275]]=!1;a=h[_$_19f6[1269]](c,e,f,g,k,l);a=jSuites[_$_19f6[1289]](a,n)};b[_$_19f6[352]]=function(c,e,f,g,k,l){return e?a[_$_19f6[603]]():_$_19f6[8]};return b}();h[_$_19f6[250]]=function(){var b={};b[_$_19f6[771]]=function(a,c,e,f,g,k){if(k[_$_19f6[571]]==
|
|
609
|
-
_$_19f6[1290])a[_$_19f6[54]][_$_19f6[55]](_$_19f6[1291]);else a[_$_19f6[54]][_$_19f6[55]](_$_19f6[1246]);if(a=b[_$_19f6[622]](a,c,e,f,g,k))return a};b[_$_19f6[796]]=function(a){a[_$_19f6[54]][_$_19f6[56]](_$_19f6[1246])};b[_$_19f6[622]]=function(a,c,e,f,g,k){if(a){var l=b[_$_19f6[119]](a,c,e,f,g,k);l?a[_$_19f6[72]]=l:c?(c=b[_$_19f6[1292]](a,c,e,f,g,k),c[_$_19f6[2]]?(l=b[_$_19f6[119]](a,c,e,f,g,k),a[_$_19f6[72]]=l):a[_$_19f6[72]]=_$_19f6[8]):a[_$_19f6[72]]=_$_19f6[8];return c}};b[_$_19f6[350]]=function(a,
|
|
610
|
-
c,e,f,g,k){var l=h[_$_19f6[1268]](_$_19f6[81],a,c,g),n=k[_$_19f6[1293]]||_$_19f6[676];k=Object[_$_19f6[139]](k);k[_$_19f6[39]]||(k[_$_19f6[39]]={});typeof k[_$_19f6[404]]==_$_19f6[344]&&(k[_$_19f6[252]]=k[_$_19f6[404]](g[_$_19f6[1294]],a,e,f,k[_$_19f6[252]]));typeof k[_$_19f6[1295]]==_$_19f6[344]&&(k=k[_$_19f6[1295]](g,a,e,f,c,k));e=k[_$_19f6[39]];k[_$_19f6[252]]&&(e[_$_19f6[41]]=JSON[_$_19f6[99]](JSON[_$_19f6[242]](k[_$_19f6[252]])));d(k,_$_19f6[1296])&&(e[_$_19f6[1296]]=!0);d(k,_$_19f6[249])&&(e[_$_19f6[249]]=
|
|
611
|
-
!0);e[_$_19f6[1273]]=!0;e[_$_19f6[1297]]=!0;e[_$_19f6[170]]=a[_$_19f6[159]]-2;e[_$_19f6[1298]]=function(){g[_$_19f6[352]](a,!0)};d(k,_$_19f6[1296])?c&&(e[_$_19f6[23]]=(_$_19f6[8]+c)[_$_19f6[98]](n)):e[_$_19f6[23]]=c;jSuites[_$_19f6[250]](l,e)};b[_$_19f6[352]]=function(a,c,e,f,g,k){for(var l=g[_$_19f6[50]][_$_19f6[361]][_$_19f6[136]][0],n=k[_$_19f6[1293]]||_$_19f6[676],u=l[_$_19f6[250]][_$_19f6[1299]](!0),q=l[_$_19f6[250]][_$_19f6[741]](!0),r=0;r<q[_$_19f6[2]];r++)if(!1===b[_$_19f6[119]](a,q[r],e,
|
|
612
|
-
f,g,k))k[_$_19f6[252]][_$_19f6[65]]({id:q[r],name:u[r]});l[_$_19f6[250]][_$_19f6[353]](!0);if(c)return q[_$_19f6[92]](n)};b[_$_19f6[1292]]=function(a,c,e,f,g,k){a=k[_$_19f6[1293]]||_$_19f6[676];e=[];f=[];Array[_$_19f6[6]](c)||(c=(_$_19f6[8]+c)[_$_19f6[98]](a));for(g=0;g<c[_$_19f6[2]];g++)f[c[g][_$_19f6[693]]()]=!0;c=Object[_$_19f6[245]](f);!d(k,_$_19f6[1296])&&1<Object[_$_19f6[245]](c)[_$_19f6[2]]&&(f=[],f[c[0]]=!0);for(c=0;c<k[_$_19f6[252]][_$_19f6[2]];c++)if(f[k[_$_19f6[252]][c][_$_19f6[40]]])e[_$_19f6[65]](k[_$_19f6[252]][c][_$_19f6[22]]);
|
|
613
|
-
return e[_$_19f6[92]](a)};b[_$_19f6[119]]=function(a,c,e,f,g,k){f=k[_$_19f6[1293]]||_$_19f6[676];a=[];e=[];Array[_$_19f6[6]](c)||(c=(_$_19f6[8]+c)[_$_19f6[98]](f));for(f=0;f<c[_$_19f6[2]];f++)e[c[f][_$_19f6[693]]()]=!0;c=Object[_$_19f6[245]](e);!d(k,_$_19f6[1296])&&1<Object[_$_19f6[245]](c)[_$_19f6[2]]&&(e=[],e[c[0]]=!0);if(k[_$_19f6[252]]&&typeof k[_$_19f6[252]][0]!==_$_19f6[342])for(f=0;f<k[_$_19f6[252]][_$_19f6[2]];f++)c=k[_$_19f6[252]][f],k[_$_19f6[252]][f]={id:c,name:c};for(f=0;f<k[_$_19f6[252]][_$_19f6[2]];f++)if(typeof e[k[_$_19f6[252]][f][_$_19f6[22]]]!==
|
|
614
|
-
_$_19f6[42])a[_$_19f6[65]](k[_$_19f6[571]]==_$_19f6[461]?k[_$_19f6[252]][f][_$_19f6[461]]:k[_$_19f6[571]]==_$_19f6[1300]?k[_$_19f6[252]][f][_$_19f6[1300]]:k[_$_19f6[252]][f][_$_19f6[40]]);if(a[_$_19f6[2]]){if(typeof k[_$_19f6[571]]!==_$_19f6[42]){for(f=0;f<a[_$_19f6[2]];f++)c=a[f],a[f]=k[_$_19f6[571]]==_$_19f6[461]?_$_19f6[1301]+c+_$_19f6[1302]:k[_$_19f6[571]]==_$_19f6[1300]?_$_19f6[1301]+c+_$_19f6[1302]:k[_$_19f6[571]]==_$_19f6[1290]?_$_19f6[1304]+(k[_$_19f6[252]][f][_$_19f6[461]]||_$_19f6[1303])+
|
|
615
|
-
_$_19f6[1305]+c+_$_19f6[1306]:c;return a[_$_19f6[92]](_$_19f6[8])}for(f=0;f<a[_$_19f6[2]];f++)a[f]=(_$_19f6[8]+a[f])[_$_19f6[5]](_$_19f6[31],_$_19f6[29]);return a[_$_19f6[92]](_$_19f6[845])}return!1};b[_$_19f6[145]]=function(a,c){for(var e=0;e<a[_$_19f6[252]][_$_19f6[2]];e++)if(a[_$_19f6[252]][e][_$_19f6[22]]==c)return a[_$_19f6[571]]==_$_19f6[461]?a[_$_19f6[252]][e][_$_19f6[461]]:a[_$_19f6[571]]==_$_19f6[1300]?a[_$_19f6[252]][e][_$_19f6[1300]]:a[_$_19f6[252]][e][_$_19f6[40]]};return b}();h[_$_19f6[249]]=
|
|
616
|
-
h[_$_19f6[250]];h[_$_19f6[593]]=function(){var b={},a=null;b[_$_19f6[622]]=function(c,e,f,g,k,l){if(c){f=e;l=b[_$_19f6[1307]](l);0<e&&Number(e)==e&&(f=jSuites[_$_19f6[593]][_$_19f6[594]](e));g=_$_19f6[8]+e;g[_$_19f6[37]](4,1)==_$_19f6[668]&&g[_$_19f6[37]](7,1)==_$_19f6[668]?g=!0:(g=g[_$_19f6[98]](_$_19f6[668]),g=4==g[0][_$_19f6[2]]&&g[0]==Number(g[0])&&2==g[1][_$_19f6[2]]&&g[1]==Number(g[1])?!0:!1);g||(g=jSuites[_$_19f6[593]][_$_19f6[1308]](e,l))&&(f=g);if(f=jSuites[_$_19f6[593]][_$_19f6[1309]](f,
|
|
617
|
-
l))return c[_$_19f6[365]]=f,e;c[_$_19f6[365]]=_$_19f6[8];return _$_19f6[8]}};b[_$_19f6[771]]=b[_$_19f6[622]];b[_$_19f6[350]]=function(c,e,f,g,k,l){l=Object[_$_19f6[139]](l);typeof l[_$_19f6[1295]]==_$_19f6[344]&&(l=l[_$_19f6[1295]](k,c,f,g,e,l));f=l[_$_19f6[39]]||{};f[_$_19f6[1297]]=!0;f[_$_19f6[1298]]=function(n,u){k[_$_19f6[352]](c,!0)};typeof l[_$_19f6[1310]]!==_$_19f6[42]&&(f[_$_19f6[1311]]=d(l,_$_19f6[1310])?!0:!1);typeof f[_$_19f6[64]]!==_$_19f6[42]&&(f[_$_19f6[64]]=f[_$_19f6[64]]);f[_$_19f6[23]]=
|
|
618
|
-
e||null;f[_$_19f6[998]]=f[_$_19f6[1273]];a=h[_$_19f6[1268]](_$_19f6[361],c,e,k);jSuites[_$_19f6[593]](a,f);if(!1===a[_$_19f6[593]][_$_19f6[39]][_$_19f6[64]])a[_$_19f6[374]]()};b[_$_19f6[352]]=function(c,e,f,g,k){c=a[_$_19f6[593]][_$_19f6[353]](!0,a[_$_19f6[23]]?!0:!1);c=a[_$_19f6[23]]?c:_$_19f6[8];if(e)return c};b[_$_19f6[1307]]=function(c){return c&&c[_$_19f6[1273]]?c[_$_19f6[1273]]:c&&c[_$_19f6[39]]&&c[_$_19f6[39]][_$_19f6[1273]]?c[_$_19f6[39]][_$_19f6[1273]]:_$_19f6[1312]};b[_$_19f6[145]]=function(c,
|
|
619
|
-
e){c=b[_$_19f6[1307]](c);return jSuites[_$_19f6[593]][_$_19f6[1309]](e,c)};return b}();h[_$_19f6[461]]=function(){var b={},a=null;b[_$_19f6[622]]=function(c,e,f,g,k,l){c&&(l[_$_19f6[571]]==_$_19f6[1313]?(f=document[_$_19f6[71]](_$_19f6[81]),f[_$_19f6[210]]=_$_19f6[461],f[_$_19f6[60]][_$_19f6[463]]=e,c[_$_19f6[365]]=_$_19f6[8],c[_$_19f6[73]](f)):(c[_$_19f6[60]][_$_19f6[461]]=e,c[_$_19f6[365]]=e))};b[_$_19f6[771]]=b[_$_19f6[622]];b[_$_19f6[350]]=function(c,e,f,g,k,l){l=Object[_$_19f6[139]](l);typeof l[_$_19f6[1295]]==
|
|
620
|
-
_$_19f6[344]&&(l=l[_$_19f6[1295]](k,c,f,g,e,l));f=l[_$_19f6[39]]||{};f[_$_19f6[23]]=e;f[_$_19f6[1298]]=function(n,u){k[_$_19f6[352]](c,!0)};a=h[_$_19f6[1268]](_$_19f6[361],c,e,k);a=jSuites[_$_19f6[461]](a,f);a[_$_19f6[351]]()};b[_$_19f6[352]]=function(c,e,f,g,k,l){c=a[_$_19f6[353]](!0);if(e)return c};b[_$_19f6[145]]=function(c,e){c=document[_$_19f6[71]](_$_19f6[81]);c[_$_19f6[60]][_$_19f6[170]]=_$_19f6[1314];c[_$_19f6[60]][_$_19f6[184]]=_$_19f6[85];c[_$_19f6[60]][_$_19f6[463]]=e;return c[_$_19f6[1315]]};
|
|
621
|
-
return b}();h[_$_19f6[757]]=function(){var b={};b[_$_19f6[771]]=function(a,c,e,f,g,k){c=c&&c!=_$_19f6[1316]&&c!=_$_19f6[1317]?!0:!1;e=document[_$_19f6[71]](_$_19f6[361]);e[_$_19f6[248]]=_$_19f6[757];e[_$_19f6[979]]=c;e[_$_19f6[88]]=function(l){l[_$_19f6[198]]();l[_$_19f6[1318]]();if(k&&1==k[_$_19f6[756]]||!g[_$_19f6[231]]())return!1;var n=this[_$_19f6[979]];setTimeout(function(){g[_$_19f6[318]](a,n)})};a[_$_19f6[72]]=_$_19f6[8];a[_$_19f6[73]](e);return c};b[_$_19f6[622]]=function(a,c){c=c&&c!=_$_19f6[1316]&&
|
|
622
|
-
c!=_$_19f6[1317]?!0:!1;a&&a[_$_19f6[136]][0]&&(a[_$_19f6[136]][0][_$_19f6[979]]=c);return c};b[_$_19f6[350]]=function(a,c,e,f,g){c=a[_$_19f6[136]][0][_$_19f6[979]]?!1:!0;g[_$_19f6[318]](a,c);return!1};b[_$_19f6[352]]=function(a,c){return!1};b[_$_19f6[145]]=function(a,c){return 1==c||1==c||c==_$_19f6[707]?jSuites[_$_19f6[1]](_$_19f6[707]):jSuites[_$_19f6[1]](_$_19f6[1316])};return b}();h[_$_19f6[764]]=function(){var b={};b[_$_19f6[771]]=function(a,c,e,f,g,k){e=a[_$_19f6[163]](_$_19f6[203]);f=document[_$_19f6[71]](_$_19f6[361]);
|
|
623
|
-
f[_$_19f6[248]]=_$_19f6[764];f[_$_19f6[40]]=k[_$_19f6[40]]||_$_19f6[835]+e;f[_$_19f6[979]]=1==c||1==c||c==_$_19f6[707]?!0:!1;f[_$_19f6[88]]=function(l){l[_$_19f6[198]]();l[_$_19f6[1318]]();if(k&&1==k[_$_19f6[756]]||!g[_$_19f6[231]]())return!1;setTimeout(function(){g[_$_19f6[318]](a,!0)})};a[_$_19f6[72]]=_$_19f6[8];a[_$_19f6[73]](f)};b[_$_19f6[622]]=function(a,c,e,f,g){c=1==c||1==c||c==_$_19f6[707]||c==_$_19f6[1319]?!0:!1;a&&(a[_$_19f6[136]][0][_$_19f6[979]]=c);if(1==c){a=[];for(var k=0;k<g[_$_19f6[39]][_$_19f6[41]][_$_19f6[2]];k++)if(f!=
|
|
624
|
-
k&&O[_$_19f6[25]](g,e,k))a[_$_19f6[65]]({x:e,y:k,value:0});if(a[_$_19f6[2]])g[_$_19f6[318]](a)}return c};b[_$_19f6[350]]=function(a,c,e,f,g){return!1};b[_$_19f6[352]]=function(a,c){return!1};b[_$_19f6[145]]=function(a,c){return 1==c||1==c||c==_$_19f6[707]?jSuites[_$_19f6[1]](_$_19f6[707]):jSuites[_$_19f6[1]](_$_19f6[1316])};return b}();h[_$_19f6[759]]=function(){var b={},a=null;b[_$_19f6[771]]=function(c,e,f,g,k,l){(e=parseInt(e))||c&&0<parseInt(c[_$_19f6[365]])&&(e=parseInt(c[_$_19f6[365]]));l[_$_19f6[394]]||
|
|
625
|
-
(l[_$_19f6[394]]=0);e?b[_$_19f6[447]](e,f,g,k)||(e=_$_19f6[734]):e=l[_$_19f6[394]]+1;e>l[_$_19f6[394]]&&(l[_$_19f6[394]]=e);c&&(c[_$_19f6[365]]=e);return e};b[_$_19f6[622]]=b[_$_19f6[771]];b[_$_19f6[350]]=function(c,e,f,g,k,l){a=h[_$_19f6[1268]](_$_19f6[361],c,e,k);a[_$_19f6[376]]=function(){k[_$_19f6[352]](c,!0)};a[_$_19f6[374]]();a[_$_19f6[23]]=e};b[_$_19f6[352]]=function(c,e,f,g,k){return e?a[_$_19f6[23]]:_$_19f6[8]};b[_$_19f6[447]]=function(c,e,f,g){for(var k,l=0;l<g[_$_19f6[39]][_$_19f6[41]][_$_19f6[2]];l++)if(k=
|
|
626
|
-
g[_$_19f6[23]](e,l),k==c&&l!=f)return!1;return!0};return b}();h[_$_19f6[762]]=function(){var b={},a=null;b[_$_19f6[771]]=function(c,e){e=parseInt(e);if(100<e)e=100;else if(!e||0>e)e=0;if(c[_$_19f6[136]][0]&&c[_$_19f6[136]][0][_$_19f6[700]]==_$_19f6[1224])var f=c[_$_19f6[136]][0];else f=document[_$_19f6[71]](_$_19f6[81]),f[_$_19f6[54]][_$_19f6[55]](_$_19f6[762]),c[_$_19f6[365]]=_$_19f6[8],c[_$_19f6[54]][_$_19f6[55]](_$_19f6[1320]),c[_$_19f6[73]](f);f[_$_19f6[60]][_$_19f6[170]]=parseInt(e)+_$_19f6[1281];
|
|
627
|
-
f[_$_19f6[386]](_$_19f6[269],parseInt(e)+_$_19f6[1281])};b[_$_19f6[796]]=function(c){c[_$_19f6[54]][_$_19f6[56]](_$_19f6[1320])};b[_$_19f6[622]]=b[_$_19f6[771]];b[_$_19f6[350]]=function(c,e,f,g,k,l){a=h[_$_19f6[1268]](_$_19f6[361],c,e,k);a[_$_19f6[248]]=_$_19f6[43];a[_$_19f6[386]](_$_19f6[1054],0);a[_$_19f6[386]](_$_19f6[1321],100);a[_$_19f6[376]]=function(){k[_$_19f6[352]](c,!0)};a[_$_19f6[374]]();a[_$_19f6[23]]=e};b[_$_19f6[352]]=function(c,e,f,g,k){return e?a[_$_19f6[23]]:_$_19f6[8]};return b}();
|
|
628
|
-
h[_$_19f6[763]]=function(){var b={},a=null;b[_$_19f6[771]]=function(c,e,f,g,k,l){return b[_$_19f6[1322]](c,e,l)};b[_$_19f6[796]]=function(c){c[_$_19f6[54]][_$_19f6[56]](_$_19f6[1323])};b[_$_19f6[622]]=b[_$_19f6[771]];b[_$_19f6[350]]=function(c,e,f,g,k,l){a=h[_$_19f6[1268]](_$_19f6[361],c,e,k);a[_$_19f6[248]]=_$_19f6[43];a[_$_19f6[386]](_$_19f6[1054],0);a[_$_19f6[386]](_$_19f6[1321],5);a[_$_19f6[376]]=function(){k[_$_19f6[352]](c,!0)};a[_$_19f6[374]]();a[_$_19f6[23]]=e};b[_$_19f6[352]]=function(c,
|
|
629
|
-
e,f,g,k,l){return e?a[_$_19f6[23]]:_$_19f6[8]};b[_$_19f6[1322]]=function(c,e,f){e=parseInt(e);if(5<e)e=5;else if(!e||0>e)e=0;if(c){f=f&&f[_$_19f6[461]]?f[_$_19f6[461]]:_$_19f6[1285];var g=document[_$_19f6[71]](_$_19f6[81]);g[_$_19f6[386]](_$_19f6[269],parseInt(e)+_$_19f6[1324]);g[_$_19f6[54]][_$_19f6[55]](_$_19f6[763]);for(var k=0;k<e;k++){var l=document[_$_19f6[71]](_$_19f6[498]);l[_$_19f6[210]]=_$_19f6[499];l[_$_19f6[60]][_$_19f6[461]]=f;l[_$_19f6[72]]=_$_19f6[1325];g[_$_19f6[73]](l)}c[_$_19f6[72]]=
|
|
630
|
-
_$_19f6[8];c[_$_19f6[210]]=_$_19f6[1323];c[_$_19f6[73]](g)}return e};return b}();h[_$_19f6[760]]=function(){var b={};b[_$_19f6[771]]=function(a,c,e,f,g,k){if(a){if(a[_$_19f6[136]]&&a[_$_19f6[136]][0]&&a[_$_19f6[136]][0][_$_19f6[700]]==_$_19f6[1241])e=a[_$_19f6[136]][0];else if(e=document[_$_19f6[71]](_$_19f6[649]),a[_$_19f6[365]]=_$_19f6[8],a[_$_19f6[73]](e),k[_$_19f6[39]]&&k[_$_19f6[39]][_$_19f6[253]])e[_$_19f6[386]](_$_19f6[89],k[_$_19f6[39]][_$_19f6[253]]);e[_$_19f6[365]]=c}};b[_$_19f6[622]]=b[_$_19f6[771]];
|
|
631
|
-
b[_$_19f6[350]]=function(a,c,e,f,g,k){g[_$_19f6[50]][_$_19f6[361]][_$_19f6[54]][_$_19f6[55]](_$_19f6[1227]);g[_$_19f6[50]][_$_19f6[361]][_$_19f6[376]]=function(){g[_$_19f6[352]](a,!0)};g[_$_19f6[50]][_$_19f6[361]][_$_19f6[365]]=c;jSuites[_$_19f6[374]](g[_$_19f6[50]][_$_19f6[361]])};b[_$_19f6[352]]=function(a,c,e,f,g){g[_$_19f6[50]][_$_19f6[361]][_$_19f6[54]][_$_19f6[56]](_$_19f6[1227]);return c?g[_$_19f6[50]][_$_19f6[361]][_$_19f6[365]][_$_19f6[5]](new RegExp(/\n/,_$_19f6[30]),_$_19f6[8]):_$_19f6[8]};
|
|
632
|
-
return b}();h[_$_19f6[253]]=h[_$_19f6[760]];h[_$_19f6[1300]]=function(){var b={},a=null;b[_$_19f6[771]]=function(c,e,f,g,k,l){if(c)if(e)if(c[_$_19f6[136]]&&c[_$_19f6[136]][0]&&c[_$_19f6[136]][0][_$_19f6[700]]==_$_19f6[1326])c[_$_19f6[136]][0][_$_19f6[122]]=e;else{var n=document[_$_19f6[71]](_$_19f6[121]);if(l[_$_19f6[571]]==_$_19f6[1327])n[_$_19f6[54]][_$_19f6[55]](_$_19f6[1327]);l[_$_19f6[39]]&&(n[_$_19f6[60]][_$_19f6[930]]=_$_19f6[1328],l[_$_19f6[39]][_$_19f6[1329]]&&(c[_$_19f6[54]][_$_19f6[55]](_$_19f6[1330]),
|
|
633
|
-
n[_$_19f6[386]](_$_19f6[1331],-1),n[_$_19f6[54]][_$_19f6[55]](_$_19f6[685]),n[_$_19f6[54]][_$_19f6[55]](_$_19f6[1332]),n[_$_19f6[1333]]=function(){k[_$_19f6[350]](c,e,f,g,k,l)},n[_$_19f6[1253]]=function(){k[_$_19f6[350]](c,!0)},n[_$_19f6[1334]]=function(){k[_$_19f6[751]](f,g,_$_19f6[8])},n[_$_19f6[77]]=function(u){if(!u){u=parseInt(n[_$_19f6[60]][_$_19f6[144]])||0;var q=parseInt(n[_$_19f6[60]][_$_19f6[157]])||0,r=parseInt(n[_$_19f6[60]][_$_19f6[170]])||40,p=parseInt(n[_$_19f6[60]][_$_19f6[184]])||
|
|
634
|
-
40,x=c[_$_19f6[163]](_$_19f6[203]),y=c[_$_19f6[163]](_$_19f6[162]);k[_$_19f6[76]]([{x,y,value:{top:u,left:q,width:r,height:p}}],null,null,!0)}}),l[_$_19f6[39]][_$_19f6[170]]&&(n[_$_19f6[60]][_$_19f6[170]]=parseInt(l[_$_19f6[39]][_$_19f6[170]])+_$_19f6[154]),l[_$_19f6[39]][_$_19f6[184]]&&(n[_$_19f6[60]][_$_19f6[184]]=parseInt(l[_$_19f6[39]][_$_19f6[184]])+_$_19f6[154]),l[_$_19f6[144]]&&(n[_$_19f6[60]][_$_19f6[144]]=parseInt(l[_$_19f6[144]])+_$_19f6[154]),l[_$_19f6[157]]&&(n[_$_19f6[60]][_$_19f6[157]]=
|
|
635
|
-
parseInt(l[_$_19f6[157]])+_$_19f6[154]),l[_$_19f6[170]]&&(n[_$_19f6[60]][_$_19f6[170]]=parseInt(l[_$_19f6[170]])+_$_19f6[154]),l[_$_19f6[184]]&&(n[_$_19f6[60]][_$_19f6[184]]=parseInt(l[_$_19f6[184]])+_$_19f6[154]));n[_$_19f6[122]]=e;c[_$_19f6[72]]=_$_19f6[8];c[_$_19f6[73]](n)}else c[_$_19f6[72]]=_$_19f6[8]};b[_$_19f6[622]]=b[_$_19f6[771]];b[_$_19f6[350]]=function(c,e,f,g,k,l){(l&&l[_$_19f6[39]]?l[_$_19f6[39]]:{})[_$_19f6[23]]=e;a=h[_$_19f6[1269]](c,e,f,g,k,l);e&&(c=document[_$_19f6[71]](_$_19f6[121]),
|
|
636
|
-
c[_$_19f6[122]]=e,c[_$_19f6[54]][_$_19f6[55]](_$_19f6[1335]),c[_$_19f6[60]][_$_19f6[170]]=_$_19f6[1328],a[_$_19f6[73]](c));jSuites[_$_19f6[1300]](a,l)};b[_$_19f6[352]]=function(c,e,f,g,k,l){if(e&&(c=a[_$_19f6[136]][0]))return c[_$_19f6[700]]==_$_19f6[1326]?c[_$_19f6[122]]:_$_19f6[8]};b[_$_19f6[145]]=function(c,e){return _$_19f6[1336]+e+_$_19f6[1337]};return b}();h[_$_19f6[1225]]=function(){var b={},a=null;b[_$_19f6[771]]=function(c,e){c[_$_19f6[54]][_$_19f6[55]](_$_19f6[1338]);var f=document[_$_19f6[71]](_$_19f6[81]);
|
|
637
|
-
f[_$_19f6[72]]=e;c[_$_19f6[73]](f)};b[_$_19f6[622]]=function(c,e){c&&(c[_$_19f6[67]][_$_19f6[72]]=e)};b[_$_19f6[796]]=function(c){c[_$_19f6[54]][_$_19f6[56]](_$_19f6[1338])};b[_$_19f6[350]]=function(c,e,f,g,k,l){var n=l&&l[_$_19f6[39]]?l[_$_19f6[39]]:{};n[_$_19f6[374]]=!0;n[_$_19f6[23]]=e;n[_$_19f6[1287]]=!1;n[_$_19f6[184]]=_$_19f6[1288];e=h[_$_19f6[1269]](c,e,f,g,k,l);a=jSuites[_$_19f6[1289]](e,n);a[_$_19f6[353]]=function(){k[_$_19f6[352]](c,!0)};jSuites[_$_19f6[719]](a,!0)};b[_$_19f6[352]]=function(c,
|
|
638
|
-
e,f,g,k,l){jSuites[_$_19f6[719]](a,!1);c=a[_$_19f6[603]]();if(e)return c};return b}();h[_$_19f6[370]]=function(){var b={};b[_$_19f6[771]]=function(a,c,e,f,g){a[_$_19f6[365]]=c};b[_$_19f6[622]]=function(a,c,e,f,g){a&&(a[_$_19f6[365]]=c)};b[_$_19f6[350]]=function(a,c,e,f,g){return!1};b[_$_19f6[352]]=function(a,c){return!1};return b}();h[_$_19f6[1339]]=function(){var b={},a=null;b[_$_19f6[771]]=function(c,e){c[_$_19f6[54]][_$_19f6[55]](_$_19f6[1340]);b[_$_19f6[622]](c,e)};b[_$_19f6[622]]=function(c,
|
|
639
|
-
e){c&&(c[_$_19f6[72]]=e)};b[_$_19f6[796]]=function(c){c[_$_19f6[54]][_$_19f6[56]](_$_19f6[1340])};b[_$_19f6[350]]=function(c,e,f,g,k,l){var n=l&&l[_$_19f6[39]]?l[_$_19f6[39]]:{};n[_$_19f6[23]]=e;a=h[_$_19f6[1269]](c,e,f,g,k,l);c=document[_$_19f6[71]](_$_19f6[81]);c[_$_19f6[60]][_$_19f6[1341]]=_$_19f6[85];c[_$_19f6[60]][_$_19f6[475]]=_$_19f6[1342];a[_$_19f6[73]](c);a=jSuites[_$_19f6[1339]](c,n);c[_$_19f6[374]]();jSuites[_$_19f6[374]](c)};b[_$_19f6[352]]=function(c,e,f,g,k,l){c=a[_$_19f6[741]]();if(e)return c};
|
|
640
|
-
return b}();h[_$_19f6[834]]=function(){var b={},a=null;b[_$_19f6[771]]=function(e,f,g,k,l,n){e[_$_19f6[54]][_$_19f6[55]](_$_19f6[1246]);var u;if(u=l[_$_19f6[50]][_$_19f6[946]](n[_$_19f6[1169]]))if(u[_$_19f6[24]])b[_$_19f6[622]](e,f,g,k,l,n);else e[_$_19f6[365]]=_$_19f6[734],l[_$_19f6[50]][_$_19f6[728]][_$_19f6[65]]([l,g,k]);else e[_$_19f6[365]]=_$_19f6[734],l[_$_19f6[50]][_$_19f6[728]][_$_19f6[65]]([l,g,k])};b[_$_19f6[796]]=function(e){e[_$_19f6[54]][_$_19f6[56]](_$_19f6[1246])};b[_$_19f6[622]]=function(e,
|
|
641
|
-
f,g,k,l,n){e&&(typeof n[_$_19f6[1169]]==_$_19f6[42]?e[_$_19f6[365]]=_$_19f6[734]:e[_$_19f6[72]]=b[_$_19f6[741]](e,f,g,k,l,n))};b[_$_19f6[350]]=function(e,f,g,k,l,n){var u=n[_$_19f6[1293]]||_$_19f6[676];n=Object[_$_19f6[139]](n);n[_$_19f6[39]]||(n[_$_19f6[39]]={});typeof n[_$_19f6[404]]==_$_19f6[344]&&(n[_$_19f6[252]]=n[_$_19f6[404]](l[_$_19f6[1294]],e,g,k,n[_$_19f6[252]]));typeof n[_$_19f6[1295]]==_$_19f6[344]&&(n=n[_$_19f6[1295]](l,e,g,k,f,n));g=n[_$_19f6[39]];g[_$_19f6[41]]=b[_$_19f6[1343]](l,n);
|
|
642
|
-
d(n,_$_19f6[1296])&&(g[_$_19f6[1296]]=!0);d(n,_$_19f6[249])&&(g[_$_19f6[249]]=!0);g[_$_19f6[1273]]=!0;g[_$_19f6[1297]]=!0;g[_$_19f6[170]]=e[_$_19f6[159]]-2;g[_$_19f6[1298]]=function(){l[_$_19f6[352]](e,!0)};d(n,_$_19f6[1296])?f&&(g[_$_19f6[23]]=(_$_19f6[8]+f)[_$_19f6[98]](u)):g[_$_19f6[23]]=f;a=h[_$_19f6[1268]](_$_19f6[81],e,f,l);a=jSuites[_$_19f6[250]](a,g)};b[_$_19f6[352]]=function(e,f,g,k,l,n){e=n[_$_19f6[1293]]||_$_19f6[676];g=a[_$_19f6[741]](!0);a[_$_19f6[353]](!0);if(f)return g[_$_19f6[92]](e)};
|
|
643
|
-
var c=function(e,f){e=this[_$_19f6[401]](e);return!1===e?_$_19f6[1344]:e[f]};b[_$_19f6[741]]=function(e,f,g,k,l,n){e=[];if(typeof n[_$_19f6[1169]]==_$_19f6[62]&&(g=l[_$_19f6[50]][_$_19f6[946]](n[_$_19f6[1169]]))){k=n[_$_19f6[1345]]?n[_$_19f6[1345]]:0;0<=n[_$_19f6[1346]]&&(k=n[_$_19f6[1346]]);if(f==_$_19f6[8]||0==f||null==f||void 0==f)return _$_19f6[8];f=(_$_19f6[8]+f)[_$_19f6[98]](_$_19f6[676]);for(var u=0;u<f[_$_19f6[2]];u++)l=c[_$_19f6[25]](g,f[u][_$_19f6[693]](),g[_$_19f6[40]](k)),0<=n[_$_19f6[1346]]&&
|
|
644
|
-
(l=_$_19f6[1347]+l+_$_19f6[1348]),e[_$_19f6[65]](l);return 0<=n[_$_19f6[1346]]?e[_$_19f6[92]](_$_19f6[8]):e[_$_19f6[92]](_$_19f6[845])}return _$_19f6[734]};b[_$_19f6[1343]]=function(e,f){var g=f[_$_19f6[1345]]?f[_$_19f6[1345]]:0,k=null;typeof f[_$_19f6[1169]]==_$_19f6[62]&&(k=e[_$_19f6[50]][_$_19f6[946]](f[_$_19f6[1169]]));if(k){var l,n=[];for(e=0;e<k[_$_19f6[24]][_$_19f6[2]];e++)if(l=k[_$_19f6[23]](g,e))l={id:k[_$_19f6[397]](e),name:l},void 0!=f[_$_19f6[1346]]&&(l[_$_19f6[1300]]=k[_$_19f6[23]](f[_$_19f6[1346]],
|
|
645
|
-
e)),n[_$_19f6[65]](l)}else console[_$_19f6[357]](_$_19f6[1349]+f[_$_19f6[1169]]);return n};b[_$_19f6[145]]=function(e,f){for(var g=0;g<e[_$_19f6[252]][_$_19f6[2]];g++)if(e[_$_19f6[252]][g][_$_19f6[22]]==f)return e[_$_19f6[571]]==_$_19f6[461]?e[_$_19f6[252]][g][_$_19f6[461]]:e[_$_19f6[571]]==_$_19f6[1300]?e[_$_19f6[252]][g][_$_19f6[1300]]:e[_$_19f6[252]][g][_$_19f6[40]]};return b}();return h}();typeof jQuery!==_$_19f6[42]&&function(h){h[_$_19f6[1350]][_$_19f6[118]]=h[_$_19f6[1350]][_$_19f6[924]]=function(d){var b=
|
|
646
|
-
h(this)[_$_19f6[145]](0);if(b[_$_19f6[118]]){if(typeof arguments[0]==_$_19f6[43])var a=arguments[0],c=2;else a=0,c=1;return b[_$_19f6[118]][a][d][_$_19f6[233]](b[_$_19f6[118]][a],Array[_$_19f6[151]][_$_19f6[283]][_$_19f6[25]](arguments,c))}return w(h(this)[_$_19f6[145]](0),arguments[0])}}(jQuery);return w});
|
|
18
|
+
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.owns=function(J,F){return Object.prototype.hasOwnProperty.call(J,F)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
|
|
19
|
+
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(J,F,P){if(J==Array.prototype||J==Object.prototype)return J;J[F]=P.value;return J};$jscomp.getGlobal=function(J){J=["object"==typeof globalThis&&globalThis,J,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var F=0;F<J.length;++F){var P=J[F];if(P&&P.Math==Math)return P}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
|
20
|
+
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(J,F){var P=$jscomp.propertyToPolyfillSymbol[F];if(null==P)return J[F];P=J[P];return void 0!==P?P:J[F]};
|
|
21
|
+
$jscomp.polyfill=function(J,F,P,T){F&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(J,F,P,T):$jscomp.polyfillUnisolated(J,F,P,T))};$jscomp.polyfillUnisolated=function(J,F,P,T){P=$jscomp.global;J=J.split(".");for(T=0;T<J.length-1;T++){var R=J[T];if(!(R in P))return;P=P[R]}J=J[J.length-1];T=P[J];F=F(T);F!=T&&null!=F&&$jscomp.defineProperty(P,J,{configurable:!0,writable:!0,value:F})};
|
|
22
|
+
$jscomp.polyfillIsolated=function(J,F,P,T){var R=J.split(".");J=1===R.length;T=R[0];T=!J&&T in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var pa=0;pa<R.length-1;pa++){var qa=R[pa];if(!(qa in T))return;T=T[qa]}R=R[R.length-1];P=$jscomp.IS_SYMBOL_NATIVE&&"es6"===P?T[R]:null;F=F(P);null!=F&&(J?$jscomp.defineProperty($jscomp.polyfills,R,{configurable:!0,writable:!0,value:F}):F!==P&&(void 0===$jscomp.propertyToPolyfillSymbol[R]&&(P=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[R]=
|
|
23
|
+
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(R):$jscomp.POLYFILL_PREFIX+P+"$"+R),$jscomp.defineProperty(T,$jscomp.propertyToPolyfillSymbol[R],{configurable:!0,writable:!0,value:F})))};$jscomp.polyfill("Object.entries",function(J){return J?J:function(F){var P=[],T;for(T in F)$jscomp.owns(F,T)&&P.push([T,F[T]]);return P}},"es8","es3");$jscomp.arrayIteratorImpl=function(J){var F=0;return function(){return F<J.length?{done:!1,value:J[F++]}:{done:!0}}};$jscomp.arrayIterator=function(J){return{next:$jscomp.arrayIteratorImpl(J)}};
|
|
24
|
+
$jscomp.initSymbol=function(){};$jscomp.iteratorPrototype=function(J){J={next:J};J[Symbol.iterator]=function(){return this};return J};$jscomp.iteratorFromArray=function(J,F){J instanceof String&&(J+="");var P=0,T=!1,R={next:function(){if(!T&&P<J.length){var pa=P++;return{value:F(pa,J[pa]),done:!1}}T=!0;return{done:!0,value:void 0}}};R[Symbol.iterator]=function(){return R};return R};
|
|
25
|
+
$jscomp.polyfill("Array.prototype.values",function(J){return J?J:function(){return $jscomp.iteratorFromArray(this,function(F,P){return P})}},"es8","es3");
|
|
26
|
+
var _$_f736=["use strict","10.0.2","Base","https://jspreadsheet.com","Unlicensed","Jspreadsheet Pro\r\n"," edition ","\r\n","{","}","string","","undefined"," are not available for this distribution","function",": ","@","set","object","px","jss","style","_",".jss > tbody > tr > td."," {\n","head","\n","=","!",">","<","&","<","g",">",'"',"'","number","fullscreen","block","readonly","jss_rotate","span","rotate(","deg)","jss_hidden_index","div","right","10px","pointer","/v10",",","localhost",".",
|
|
27
|
+
"v10"," (Expired)","Licensed to: ","Premium","License required","A valid license is required","This version is not included on the scope of this license","Your license is expired. Please renew your certificate.","jspreadsheet","img","/jspreadsheet/","logo.png","none","status","edition","scope","get","jss_frozen","data-y","scroll","wheel","goto","data-x","jss_scroll","setImage","onchangeimage","tabindex","jss_object","jpanel","delete","jss_image","jss_content_overflow","onresize","jss_hidden","Jspreadsheet Pro",
|
|
28
|
+
"text","autocomplete","dropdown","GET","json","JSS: secureFormulas is set to false.","setConfig","insertRow","deleteRow","insertColumn","deleteColumn","moveRow","moveColumn","hideRow","showRow","hideColumn","showColumn","setMerge","removeMerge","setStyle","resetStyle","setWidth","setHeight","setHeader","setComments","setFreezeColumns","setFreezeRows","orderBy","setValue","setProperty","updateProperty","createWorksheet","deleteWorksheet","renameWorksheet","moveWorksheet","setDefinedNames","setValidations",
|
|
29
|
+
"setRowGroup","openRowGroup","closeRowGroup","setColumnGroup","openColumnGroup","closeColumnGroup","setNestedCell","onundo","resetRowGroup","resetColumnGroup","onredo","undo","redo","contextMenu","toolbar","onevent","Jspreadsheet: cursor not in the viewport","copying","keydown","oneditionstart","oncreateeditor","hidden","jss_focus","jss_formula","oneditionend","data-mask","data-value","inputmode","0","jss_input","contentEditable","oninput","setRowId","onchangerowid","setBorder","resetBorders","updateCells",
|
|
30
|
+
"setFormula","updateData","onbeforesave","POST","Authorization","Bearer ","onbeforesend","disconected","Sorry, something went wrong, refreshing your spreadsheet...","_top","onsave","disconnected","persistence","?","?worksheet=","&worksheet=","add","remove","jss_cursor","selected","main","onblur","onfocus","onselection"," ","'!",":","jss_resize_corner","data-action","ontouchstart","jss_border","cloning","jss_border_","15","moveLeft","0px","-6px","moveTop","moveRight","moveDown","-2000px","transparent",
|
|
31
|
+
"left","bottom","top","jss_group_child","jss_group_parent","ongroupcolumn","i","material-icons","onopencolumngroup","onclosecolumngroup","ongrouprow","onopenrowgroup","oncloserowgroup","width","Jspreadsheet: This row is part of a merged cell","Jspreadsheet: Please clear your search before perform this action","jss_dragging","1px","jss_helper_row","Jspreadsheet: This column is part of a merged cell.","jss_helper_col","No cell selected","Invalid merged properties","colspan","rowspan","x","cols","y",
|
|
32
|
+
"rows","pan","mergeCells","onmerge","data-title","Column name","onchangeheader","td","jss_header","col","oncreatecolumn","jss_","jss_filters_icon","jss_hidden_col","collapse","onrenderfootercell","setFooter","onchangefooter","setFooterValue","onchangefootervalue","resetFooter","footers","jss_footer","tr"," ","setNestedHeaders","onchangenested","jss_nested","resetNestedHeaders","onchangenestedcell","center","data-nested-x","data-nested-y","align","calendar","s","options","Export not allowed",
|
|
33
|
+
"\ufeff","text/csv;charset=utf-8;",".csv","a","download",'""',"\t","oncopy","copy","onbeforepaste","JSS: For better results, please allow pagination or tableOverflow.","onpaste","Defined names","onchangedefinednames","#006CD4","#BC2F34","#7C53AC","#107042","#D50888","#DB6B10","#00758F","-","+","/","*","^","(","[","|",";","data-token","picker","jss_picker","click","active","focus","input","contenteditable","blur","last",'<b class="','" data-token="','">',"</b>","mousedown","data-single","true","b",
|
|
34
|
+
")","]","$","#REF!","#SPILL!","#LOOP","Reference loop detected","#ERROR","Table does not exist or is not loaded yet","var "," = {};"," = ",";\n","; return ","#SPILL","onbeforeformula","CHART(","onafterchanges","checkbox","autonumber","email","url","color","progressbar","rating","radio","onformulachain","onbeforechange","onchange","oncreatecell","jss_unlocked","jss_zebra","jss_wrap","jss_number","[Red]","red","percent","jss_percent","Something went wrong","onchangeproperty","Row not found","jss_hidden_row",
|
|
35
|
+
"onchangerowvisibility","jss_row","oncreaterow","onmoverow","Jspreadsheet: Insert row is not enabled in the table configuration","onbeforeinsertrow","onbeforeinsertrow returned false","oninsertrow","Jspreadsheet: Delete row is not enabled in the table configuration","onbeforedeleterow","onbeforedeleterow returned false","ondeleterow","id","height","title","visible","group","state","Column not found","onchangecolumnvisibility","onmovecolumn","Jspreadsheet: Insert column is not enabled in the table configuration",
|
|
36
|
+
"record","col_","onbeforeinsertcolumn","onbeforeinsertcolumn returned false","oninsertcolumn","JSS: Delete column is not enabled in the table configuration","JSS: You cannot delete the last column.","Jspreadsheet: it is not possible to delete the last column","onbeforedeletecolumn","onbeforedeletecolumn returned false","ondeletecolumn","a number ","a text ","a date ","an element of the list: ","empty","filled","textLength","The cell text length must be ","The content of this cell must be ","list",
|
|
37
|
+
" ["," and ","jss_warning","data-tooltip","data-validation","Validations","JSS: input should be an array","onvalidation","format","reject","validations","onchangestyle","No cell provided","onresetstyle","c","onbeforecomments","oncomments","jss_comments","meta","setMeta","onchangemeta","resetMeta","onresetmeta","arrow-down","numeric","sorting","onbeforesort","This action will destroy any existing merged cells. Are you sure?","onsort","arrow-up","jss_pagination","Jspreadsheet: No pagination defined",
|
|
38
|
+
"Jspreadsheet: pagination not defined","onbeforechangepage","onchangepage","No records found","jss_page","jss_page_selected","Showing page {0} of {1} entries","jss_frozen_row","Frozen rows cannot be larger than the viewport.","Frozen rows cannot be greater than the number of rows.","jss_freeze_control_row","freezeRows","Frozen columns cannot be larger than the viewport.","Frozen columns cannot be greater than the number of available columns","jss_freeze_control_col","freezeColumns","jss_content",
|
|
39
|
+
"selectstart","table","thead","tbody","tfoot","colgroup","50","jss_selectall","cellpadding","cellspacing","unselectable","yes","jss_corner","on","onselectstart","return false","jss_content_pagination","jss_nogridline","jss_overflow","jss_locked","jss_container","jss_toolbar","jss_helper","jss_loading","textarea","jss_textarea","-1","beforeinit","jss_worksheet","init","Sheet","Freeze controls","Worksheet clash name: ",". It is highly recommended to define a unique worksheetName on the initialization.",
|
|
40
|
+
"To improve the performance, please consider tableOverflow or pagination.","getMeta","getStyle","comments","getComments","cells","getCells","getMerge","resize","touchstart","touchmove","touchend","auto","onresizecolumn","onresizerow","Contains","Does not contain","Begins with","Ends with","Equal","Not equal","Greater than","Lower than","label","^((?!",").)*$","^(?!","$)","jss_filters_active","Jspreadsheet: the filter is not enabled.","onopenfilter","Blanks","onbeforefilter","onfilter","\\$&","jss_filters_options",
|
|
41
|
+
"INPUT","Search","jss_filters_search","select","jss_filters_operators","change","option","button","Ok","jss_filters_apply","jss_filters","jss_filter_search_container",'<input type="checkbox"> ',"Add current selection to filter",'<input type="checkbox"> (',"Select all","jss_pagination_dropdown","Show","entries","jss_search","jss_searching","onsearchrow","onsearchstart","onbeforesearch","onsearch","jss_search_container","jss_contextmenu","cell","row","header","Mac","⌘","Ctrl","tabs","Rename this worksheet",
|
|
42
|
+
"Delete this worksheet","Are you sure?","line","nested","Rename this cell","Cut","content_cut"," + X","Copy","content_copy"," + C","Paste","content_paste"," + V","Insert a new column before","Insert a new column after","Delete selected columns","Rename this column","Create a new row","Order ascending","Order descending","Hide","Insert a new row before","Insert a new row after","Delete selected rows","Edit notes","Add notes","notes","Notes","Clear notes","selectall","Show all","Save as","save"," + S",
|
|
43
|
+
"About","info","with-toolbar","jtoolbar-disabled","divisor","120px","Default","Verdana","Arial","Courier New",'<span style="font-family:',"</span>","font-family","48px","format_size","x-small","small","medium","large","x-large",'<span style="font-size:',"font-size","justify",'<i class="material-icons">format_align_',"</i>","text-align","format_bold","font-weight","bold","jss_toolbar_selected","format_color_text","format_color_fill","background-color","middle","vertical_align_top","vertical_align_center",
|
|
44
|
+
"vertical_align_bottom",'<i class="material-icons">',"vertical-align","web","The merged cells will retain the value of the top-left cell only. Are you sure?","Merge the selected cells","border_all","border_outer","border_inner","border_horizontal","border_vertical","border_left","border_top","border_right","border_bottom","border_clear","black","border-left: ","px solid ","; ","border-left: ; ","border-right: ","border-right: ; ","border-top: ","border-top: ; ","border-bottom: ","border-bottom: ; ",
|
|
45
|
+
"color_lens",'<div style="height: ','px; width: 50px; background-color: black;"></div>',"80px","1","add_photo_alternate","Add image","jss_upload","jss_dialog","jclose","fullscreen_exit","Toggle Fullscreen","search","search_off","Toggle Search","onbeforecreateworksheet","There is one existing worksheet with the same name.","oncreateworksheet","ondeleteworksheet","Another worksheet with the same already exists","onrenameworksheet","onmoveworksheet","onopenworksheet","A","B","C","D","E","F","G","H",
|
|
46
|
+
"I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","data-celltype","readOnly","name","TABLE","Element is not a table","colgroup > col",":scope > thead > tr",":scope > tr, :scope > tbody > tr","data-formula","class","styleBold","; font-weight:bold;","font-weight:bold;","tfoot tr","\r","DOM el not found",'<table class="jss"><tbody><tr><td>A</td></tr></tbody></table>',"Cloud extension not loaded.","onload","jss_ignore","THEAD","TBODY","TFOOT","jss_group_container","header-group",
|
|
47
|
+
"jss_group","jtabs-headers","filters","footer","jtoolbar","DIV","html","jss_nowrap","insertHTML","<br/>\n","Process","move","col-resize","grab","row-resize","mailto:","_blank","nwse-resize","onclick","jss_dropdown","TRUE","jss_url","decimal","data-locale","jss_notes","145px","tag","jss_dropdown_tags","multiple","image","<div class='jss_dropdown_icon' style='background-color: ","'></div>","orange","<div class='jss_dropdown_tag' style='background-color: ","'>","</div>","timepicker","YYYY-MM-DD","square",
|
|
48
|
+
"100px","false","jss_progressbar","%","min","max","jss_rating"," stars","star","href","IMG","round","100%","jfile",'<img src="','" alt="">',"jss_richtext","jss_tags","40px","#NOTFOUND","<img src='","' class='round small' />","Jspreadsheet: worksheet not found "];
|
|
49
|
+
(function(J,F){typeof exports===_$_f736[18]&&typeof module!==_$_f736[12]?module.exports=F():typeof define===_$_f736[14]&&define.amd?define(F):J.jspreadsheet=F()})(this,function(){_$_f736[0];const J=function(){const l={version:_$_f736[1],edition:_$_f736[2],host:_$_f736[3],license:_$_f736[4],print:function(){return[_$_f736[5]+this.edition+_$_f736[6]+this.version+_$_f736[7]+this.host+_$_f736[7]+this.license]}};return function(){return l}}(),F=function(l,e){l=jSuites.translate(l);if(e&&e.length)for(let c=
|
|
50
|
+
0;c<e.length;c++)l=l.replace(_$_f736[8]+c+_$_f736[9],e[c]);return l},P={},T=function(l){typeof l===_$_f736[10]&&(l=l.replace(/'/g,_$_f736[11]),l=l.toUpperCase());return l},R=function(l,e){l=T(l);if(typeof e===_$_f736[12])return P[l];P[l]=e;jSuites.isNumeric(l)||(window[l]=e);e&&(e.worksheetName=l)},pa=function(l){if(Array.isArray(l))l.length||(l=null);else if(jSuites.isNumeric(l)){let e=[];for(let c=0;c<l;c++)e.push(c);return e.length?e:null}return l},qa=function(l,e,c){if(l){let a=l.length,b=l[0],
|
|
51
|
+
d=l[a-1];for(let f=0;f<e.length;f++){let g=e[f];g>=b&&g<=d&&(c?(a++,d++):a--)}if(a!==l.length){l=[];for(e=0;e<a;e++)l.push(b+e);return l}}return!1},Pa=function(l){if(1===this.edition)return!0;console.log(l+_$_f736[13]);return!1},Fa=function(l){typeof l===_$_f736[10]&&(l={message:l});l.name=this.config.application;if(typeof this.config.onerror===_$_f736[14])this.config.onerror(this,l);else jSuites.notification.isVisible()?console.log(l.name+_$_f736[15]+l.message):jSuites.notification(l)},Qa=function(l){if(l.format||
|
|
52
|
+
l.mask||l.locale){let e={};l.mask?e.mask=l.mask:l.format?e.mask=l.format:e.locale=l.locale;l.options&&(e.options=l.options);l.decimal&&(e.options||(e.options={}),e.options={decimal:l.decimal});return e.mask===_$_f736[16]?!1:e}return null},cb=function(l){let e=parseInt(l.y),c;l.id?c=parseInt(l.id):l.value&&(c=parseInt(l.value));0<c&&(this.rows[e].id=c,xa[_$_f736[17]].call(this,c))},ob=function(){let l=this,e=l.config.tabs;typeof e!==_$_f736[18]&&(e={allowCreate:!!e,hideHeaders:!e,allowChangePosition:!!l.config.allowMoveWorksheet});
|
|
53
|
+
e.maxWidth||(e.maxWidth=l.el.offsetWidth-50+_$_f736[19]);e.animation=typeof e.animation===_$_f736[12]?!0:e.animation;e.onbeforecreate=function(){l.createWorksheet();return!1};e.onclick=function(c,a,b){0<=b&&l.openWorksheet(b,!0)};e.onchangeposition=function(c,a,b){l.moveWorksheet(a,b,!0)};jSuites.tabs(l.el,e);return e},la=function(){let l=this.length,e=[],c=0;for(let a=0;a<l;a++)null!==this[a]&&(typeof this[a]!==_$_f736[12]&&(e[c]=this[a]),c++);return e},ua=function(l,e,c){this.splice(c,0,...this.splice(l,
|
|
54
|
+
e))},Ra=function(l,e){e=[_$_f736[20],this.name.substr(0,8),e?e:_$_f736[21]];typeof l!==_$_f736[12]&&e.push(l);return e.join(_$_f736[22])},Va=function(l){var e=this.config[l];if(e&&e.length){l=Ra.call(this,void 0,l);let c=[];for(let a=0;a<e.length;a++){let b=_$_f736[11];typeof e[a]===_$_f736[10]?b=e[a]:e[a]&&e[a].format&&(b=Object.entries(e[a].format).map(function([d,f]){return`\t${d}: ${f} !important;\n`}),b=b.join(_$_f736[11]));b&&c.push(_$_f736[23]+l+_$_f736[22]+a+_$_f736[24]+b+_$_f736[9])}e=document.getElementById(l);
|
|
55
|
+
e||(e=document.createElement(_$_f736[21]),e.id=l,document.getElementsByTagName(_$_f736[25])[0].appendChild(e));e.innerHTML=c.join(_$_f736[26])}},pb=function(l,e){if(typeof l!==_$_f736[18]||typeof e!==_$_f736[18]||null===l||null===e)return l===e;let c=Object.keys(l),a=Object.keys(e);if(c.length!==a.length)return!1;c.sort();a.sort();for(let b=0;b<c.length;b++)if(c[b]!==a[b]||l[c[b]]!==e[c[b]])return!1;return!0},Ia=function(l){return typeof this.parent.config[l]===_$_f736[14]},db=function(l){return l===
|
|
56
|
+
_$_f736[27]||l===_$_f736[28]||l===_$_f736[29]||l===_$_f736[30]},ba=function(l,e){return l&&typeof l===_$_f736[10]&&l[0]===_$_f736[27]&&(l[1]||e)},Ja=function(l,e){let c=_$_f736[11],a=!1;-1!==l.indexOf(_$_f736[31])&&(l=l.replace(new RegExp(_$_f736[32],_$_f736[33]),_$_f736[30]),l=l.replace(new RegExp(_$_f736[34],_$_f736[33]),_$_f736[29]));for(let b=0;b<l.length;b++){if(l[b]===_$_f736[35]||l[b]===_$_f736[36])a?a===l[b]&&(a=!1):a=l[b];a?c+=l[b]:/\s/g.test(l[b])||(c+=l[b].toUpperCase(),!0===e&&0<b&&l[b]===
|
|
57
|
+
_$_f736[27]&&db(l[b-1])&&db(l[b+1])&&(c+=_$_f736[27]))}return c},Aa=function(l){let e=this.options.columns;return e[l]&&e[l].name?e[l].name:l},Wa=function(l,e){let c=e;this.dataType&&0<=e&&(c=Aa.call(this,e));return typeof c===_$_f736[37]?l[c]:jSuites.path.call(l,c)},O=function(l,e,c,a){let b=this.options.data[e];if(b){let d=l;this.dataType&&0<=l&&(d=Aa.call(this,l));typeof c===_$_f736[12]?c=typeof d===_$_f736[37]?b[l]:jSuites.path.call(b,d):(typeof d===_$_f736[37]?b[l]=c:jSuites.path.call(b,d,c,
|
|
58
|
+
a),this.records[e][l].v=c)}else c=null;return c},U=function(l){return!1===this.config.editable||l&&!1===l.options.editable?!1:(l=eb.call(this))?7<=l:!0},fb=function(l){let e=_$_f736[38],c,a,b;this.parent?(c=this.parent.config,a=this.parent.element,b=this):(c=this.config,a=this.element,b=t.current?t.current:null);typeof l===_$_f736[12]&&(l=!a.classList.contains(e));l?(a.classList.add(e),c.fullscreen=!0):(a.classList.remove(e),c.fullscreen=!1);b&&(L.refresh.call(b),va.update.call(b.parent,b))},gb=function(l){let e=
|
|
59
|
+
this.loading;null===l&&(l=e.style.display===_$_f736[39]);e.style.display=l?_$_f736[39]:_$_f736[11];setTimeout(function(){e.style.display=_$_f736[11]},1E3)},hb=function(l){return l&&(l.readonly||l.readOnly)},ib=function(l,e){if(typeof l===_$_f736[10]){var c=I.getCoordsFromColumnName(l);c=this.records[c[1]][c[0]];if(c.element)l=c.element;else return typeof e===_$_f736[12]?c.readonly:c.readonly=e?!0:!1}c=_$_f736[40];l=l.classList;if(typeof e===_$_f736[12])return l.contains(c)?!0:!1;e?l.add(c):l.remove(c)},
|
|
60
|
+
qb=function(l,e){let c,a,b=[];if(typeof l===_$_f736[10])a=I.getCoordsFromColumnName(l),b.push({x:a[0],y:a[1],value:{rotate:e}});else if(Array.isArray(l))for(c=0;c<l.length;c++)a=I.getCoordsFromColumnName(l[c]),b.push({x:a[0],y:a[1],value:{rotate:e}});for(c=0;c<b.length;c++)(a=this.records[b[c].y][b[c].x])&&a.element&&(l=a.element.firstChild,e?(l&&l.classList&&l.classList.contains(_$_f736[41])||(l=document.createElement(_$_f736[42]),l.classList.add(_$_f736[41]),l.innerHTML=a.element.innerHTML,a.element.innerHTML=
|
|
61
|
+
_$_f736[11],a.element.appendChild(l)),l.style.transform=_$_f736[43]+parseInt(e)-270+_$_f736[44]):l&&l.classList&&l.classList.contains(_$_f736[41])&&(l.classList.remove(_$_f736[41]),l.style.transform=_$_f736[11]));this.updateProperty(b);ca.refresh.call(this)},wa=function(l){let e=_$_f736[45],c=this.table.classList;if(typeof l==_$_f736[12])return c.contains(e)?!1:!0;l?c.remove(e):c.add(e);L.refresh.call(this)},eb=function(l){if(typeof l===_$_f736[12])return this.status;let e=document.createElement(_$_f736[46]);
|
|
62
|
+
e.style.textAlign=_$_f736[47];e.style.fontSize=_$_f736[48];e.style.cursor=_$_f736[49];e.onclick=function(){window.location.href=J().host+_$_f736[50]};let c=1,a=[];var b=[74,50,48,50,48,33].join(_$_f736[11]);const d=function(f,g){let h=jSuites.sha512,k=_$_f736[11],m=_$_f736[11];128<f.length&&(f=h(f));for(let n=0;128>n;n++){let r=f[n]?f[n].charCodeAt(0):0;k+=String.fromCharCode(54^r);m+=String.fromCharCode(92^r)}return h(m+h(k+g))};try{if(l){let f=window.atob(l);f=f.split(_$_f736[51]);if(f[1])if(f[1]=
|
|
63
|
+
window.atob(f[1]),f[0]!==d(b,f[1]))c=3;else if(f[1]=JSON.parse(f[1]),f[1].date){let g=window.location.hostname||_$_f736[52];l=!1;for(b=0;b<f[1].domain.length;b++)-1===f[1].domain[b].indexOf(_$_f736[53])?g===f[1].domain[b]&&(l=!0):g.substr(g.indexOf(f[1].domain[b]))===f[1].domain[b]&&(l=!0);if(!1===l)c=4;else if(f[1].scope&&0<=f[1].scope.indexOf(_$_f736[54])){g=new Date;l=parseInt(g.getTime()/1E3);let h=J();if(f[1].date<l)c=f[1].demo||!f[1].plan||f[1].date+2592E3<l?6:7,h.license=f[1].name+_$_f736[55];
|
|
64
|
+
else{c=8;let k=parseInt(f[1].plan);h.license=_$_f736[56]+f[1].name;h.edition=3===k||6===k||31===k||33===k||34===k||35===k?_$_f736[57]:_$_f736[2];a=f[1].scope}}else c=5}else c=4;else c=2}}catch(f){}l=_$_f736[11];if(1===c)l=_$_f736[58];else if(2===c||3===c||4===c)l=_$_f736[59];else if(5===c)l=_$_f736[60];else if(6===c||7===c)l=_$_f736[61];e.appendChild(document.createTextNode(l));if(8>c)try{if(typeof sessionStorage!==_$_f736[12]&&!sessionStorage.getItem(_$_f736[62])){sessionStorage.setItem(_$_f736[62],
|
|
65
|
+
!0);let f=document.createElement(_$_f736[63]);f.src=J().host+_$_f736[64]+_$_f736[65];f.style.display=_$_f736[66];e.appendChild(f)}}catch(f){}Object.defineProperty(this,_$_f736[67],{value:c,writable:!1,configurable:!1,enumerable:!1,extensible:!1});Object.defineProperty(this,_$_f736[68],{value:J().edition===_$_f736[57]?1:0,writable:!1,configurable:!1,enumerable:!1,extensible:!1});Object.defineProperty(this,_$_f736[69],{get:function(){return a},configurable:!1,enumerable:!1,extensible:!1});return e},
|
|
66
|
+
L=function(){const l=function(){let m,n=this.content.offsetHeight-this.thead.offsetHeight-ia.getHeight.call(this,!0),r=0;for(let p=0;p<this.tbody.children.length;p++)m=this.tbody.children[p].offsetHeight,n>m&&(r+=m,n-=m);return r},e=function(){let m,n=this.content.offsetWidth-da.getWidth.call(this,!0),r=0;for(let p=0;p<this.headerContainer.children.length;p++)m=this.headerContainer.children[p].offsetWidth,n>m&&(r+=m,n-=m);return r},c=function(m){-1===this.indexOf(m)&&this.push(m)},a=function(m,n){if(!m||
|
|
67
|
+
!n)return!1;let r=m.length;if(r!==n.length)return!1;for(;r--;)if(m[r]!==n[r])return!1;return!0},b=function(m){let n;var r=this.headerContainer.offsetHeight;if(m<r){this.headerContainer.style.height=r+_$_f736[19];var p=!0}for(m=0;m<this.visibleRows.length;m++)n=this.rows[this.visibleRows[m]],n.element?(r=n.element.offsetHeight)&&(r>n.height||!n.height)&&(n.element.style.height=r+_$_f736[19],n.height=r,p=!0):p=!0;p&&(r=this.parent.config.spacing||100,p=ia.getHeight.call(this),this.height=k.height.call(this)+
|
|
68
|
+
p+3,this.scroll.style.height=this.height+r+_$_f736[19])},d=function(m,n){let r=null,p,u,v;var w=0;for(p=0;p<this.options.columns.length;p++)if(-1===m.indexOf(p)||!0===n)for(S.attached.call(this,p)&&S.detach.call(this,p),u=0;u<this.visibleRows.length;u++){var z=this.records[this.visibleRows[u]][p];z.element&&z.element.remove()}if(this.options.nestedHeaders)for(u=0;u<this.thead.children.length-1;u++)w+=this.thead.children[u].offsetHeight;for(p=0;p<m.length;p++){v=m[p];n=Z.create.call(this,v);if(r){if(!n.parentNode){this.headerContainer.insertBefore(n,
|
|
69
|
+
this.headerContainer.children[r].nextSibling);this.colgroupContainer.insertBefore(this.colgroup[v],this.colgroupContainer.children[r].nextSibling);if(this.options.footers)for(u=0;u<this.options.footers.length;u++)this.tfoot.children[u].insertBefore(ma.create.call(this,v,u),this.tfoot.children[u].children[r].nextSibling);w&&(n.style.top+=w)}for(u=0;u<this.visibleRows.length;u++)z=this.visibleRows[u],z=Q[_$_f736[70]].call(this,v,z),z.parentNode||this.tbody.children[u].insertBefore(z,this.tbody.children[u].children[r].nextSibling)}else{if(!n.parentNode){this.headerContainer.insertBefore(n,
|
|
70
|
+
this.headerContainer.children[1]);this.colgroupContainer.insertBefore(this.colgroup[v],this.colgroupContainer.children[1]);if(this.options.footers)for(u=0;u<this.options.footers.length;u++)this.tfoot.children[u].insertBefore(ma.create.call(this,v,u),this.tfoot.children[u].children[1]);w&&(n.style.top+=w)}for(u=0;u<this.visibleRows.length;u++)z=this.visibleRows[u],z=Q[_$_f736[70]].call(this,v,z),z.parentNode||this.tbody.children[u].insertBefore(z,this.tbody.children[u].children[1])}r=Array.prototype.indexOf.call(this.headerContainer.children,
|
|
71
|
+
n)}if(this.options.nestedHeaders)for(u=0;u<this.options.nestedHeaders.length;u++){r=null;w=[];z=Ba.getColumns.call(this,u);for(p=0;p<m.length;p++)typeof z[m[p]]!==_$_f736[12]&&-1===w.indexOf(z[m[p]])&&w.push(z[m[p]]);for(p=0;p<this.options.nestedHeaders[u].length;p++)-1===w.indexOf(p)&&this.nested.content[u][p]&&this.nested.content[u][p].element.offsetHeight&&this.nested.content[u][p].element.remove();for(p=z=0;p<w.length;p++)n=Ba.create.call(this,w[p],u),n.parentNode||(r?this.thead.children[u].children[r]?
|
|
72
|
+
this.thead.children[u].insertBefore(n,this.thead.children[u].children[r].nextSibling):this.thead.children[u].appendChild(n):this.thead.children[u].insertBefore(n,this.thead.children[u].children[1]),n.style.top=this.nested.height[u]+_$_f736[19],this.options.freezeColumns&&this.options.nestedHeaders[u][w[p]].frozen&&(n.style.left=z+(wa.call(this)?50:0)+_$_f736[19],n.classList.add(_$_f736[71]),z+=n.offsetWidth)),r=Array.prototype.indexOf.call(this.thead.children[u].children,n)}this.visibleCols=m},f=
|
|
73
|
+
function(m,n){let r=[],p=null,u,v;for(u=0;u<this.tbody.children.length;u++)r.push(this.tbody.children[u]);for(u=0;u<r.length;u++)v=parseInt(r[u].getAttribute(_$_f736[72])),-1!==m.indexOf(v)&&!0!==n||r[u].remove();for(u=0;u<m.length;u++)n=V.create.call(this,m[u]),n.parentNode||(p?this.tbody.insertBefore(n,p.nextSibling):this.tbody.insertBefore(n,this.tbody.firstChild)),p=n;this.visibleRows=m},g=function(m){let n=[];var r,p=0;let u=this.content.scrollLeft,v=this.content.scrollWidth,w=this.content.offsetWidth;
|
|
74
|
+
var z=this.options.freezeColumns;let B=L.limited.call(this)&&!1!==this.options.virtualizationX;var D=this.options.columns.length;this.firstCol=0;if(B){p=u;let q=p+w,A=0,C=0;if(z){for(r=0;r<z.length;r++){C=z[r];if(S.isVisible.call(this,C)){let G=S.width.call(this,C);n.push(C);A+=G}C++}p+=A}this.firstCol=n.length;for(r=C;r<D;r++)S.isVisible.call(this,r)&&(z=S.width.call(this,r),A+z>p&&A<=q&&n.push(r),A+=z);(r=ra.expand.call(this,n,0))&&(n=r);for(r=0;r<n.length;r++)if(p=Ba.getAffected.call(this,n[r]))for(D=
|
|
75
|
+
0;D<p.length;D++)this.options.columns[p[D]]&&c.call(n,p[D]);n.sort(function(G,E){return G-E})}else for(r=0;r<D;r++)n.push(r);if(m||!a(n,this.visibleCols))r=this.headerContainer.offsetHeight,d.call(this,n,m),r&&B&&b.call(this,r),Ka.update.call(this),da.refresh.call(this),ia.refresh.call(this);B&&(this.table.style.left=u+_$_f736[19],m=k.width.call(this,n[this.firstCol])-u,!0===this.parent.config.snapToGrid&&-100<m&&v-(u+w)>w/2&&(m=0),0<m&&(m=0),this.table.style.marginLeft=m+_$_f736[19])},h=function(m){let n=
|
|
76
|
+
[];var r,p=null,u=0;let v=this.content.scrollTop,w=this.content.scrollHeight,z=this.content.offsetHeight;p=this.options.freezeRows;let B=L.limited.call(this)&&!this.options.pagination&&!1!==this.options.virtualizationY;this.firstRow=0;if(B){u=v;let A=u+z,C=0;var D=0;var q=this.results?this.results:this.rows;let G=q.length;if(p){for(r=0;r<p.length;r++){D=p[r];if(V.isVisible.call(this,D)){let E=V.height.call(this,D);n.push(D);C+=E}D++}u+=C;this.firstRow=n.length;this.results&&(D=0)}for(r=D;r<G;r++)p=
|
|
77
|
+
this.results?q[r]:r,V.isVisible.call(this,p)&&(D=V.height.call(this,p),C+D>u&&C<A&&c.call(n,p),C+=D)}else for(q=this.results?this.results:this.rows,(u=this.options.pagination)?(r=u*this.pageNumber,u=r+u,u>q.length&&(u=q.length)):(r=0,u=q.length);r<u;r++)p=this.results?q[r]:r,n.push(p);this.merged&&this.merged.rows.length&&((q=ra.expand.call(this,n,1))&&(n=q),n.sort(function(A,C){return A-C}));if(m||!a(n,this.visibleRows))f.call(this,n,m),this.visibleCols=null;B&&(this.table.style.top=v+_$_f736[19],
|
|
78
|
+
m=k.height.call(this,n[this.firstRow])-v,!0===this.parent.config.snapToGrid&&-24<m&&w-(v+z)>z/2&&(m=0),this.table.style.marginTop=m+_$_f736[19])},k=function(m,n){n&&(this.visibleCols=this.visibleRows=null);k.calculate.call(this);k.update.call(this);if(!0!==m){let r=this;this.content.addEventListener(_$_f736[73],function(){k.ignore||(k.update.call(r),ca.refresh.call(r))});this.content.addEventListener(_$_f736[74],function(p){if(L.limited.call(r)&&!r.options.pagination){let u=Math.abs(p.deltaX),v=Math.abs(p.deltaY);
|
|
79
|
+
p.shiftKey||u>v?0>p.deltaX||0>p.deltaY?k.left.call(r):k.right.call(r):0>p.deltaY?k.up.call(r):k.down.call(r);p.preventDefault()}})}};k.calculate=function(){if(L.limited.call(this)){let n=this.parent.config.spacing||100;var m=da.getWidth.call(this);let r=ia.getHeight.call(this);this.width=k.width.call(this)+m+3;this.height=k.height.call(this)+r+3;m=this.scroll.style;m.width=this.width+n+_$_f736[19];m.height=this.height+n+_$_f736[19]}};k.update=function(m){h.call(this,m);g.call(this,m)};k.refresh=function(){k.calculate.call(this);
|
|
80
|
+
k.update.call(this,!0)};k[_$_f736[75]]=function(m,n){if(null!=m){var r=this.options.freezeRows;let p=0;r&&m<=r[r.length-1]||(p=k.height.call(this,m));this.content.scrollTop=p}typeof n!==_$_f736[12]&&null!=n&&(m=this.options.freezeColumns,r=0,m&&n<=m[m.length-1]||(r=k.width.call(this,n)),this.content.scrollLeft=r)};k.up=function(m,n){if(!(this.firstRow&&n<=this.options.freezeRows[0]))if(m)this.content.scrollTop=0;else if(this.tbody.children[this.firstRow+1]){m=this.tbody.children[this.firstRow+1].getAttribute(_$_f736[72]);
|
|
81
|
+
let r=m=parseInt(m);for(this.results&&(m=this.results.indexOf(m));0<m;)if(m--,n=this.results?this.results[m]:m,V.isVisible.call(this,n)){r=n;break}n=V.height.call(this,r);m=this.tbody.children[this.firstRow].getAttribute(_$_f736[72]);V.attached.call(this,m)||(n+=this.content.scrollTop-this.table.offsetTop);this.content.scrollTop-=n}};k.down=function(m,n){if(!(this.firstRow&&n<=this.options.freezeRows[0]))if(m)this.content.scrollTop=this.content.scrollHeight;else if(m=this.tbody.children[0+this.firstRow])this.content.scrollTop+=
|
|
82
|
+
m.offsetHeight};k.left=function(m,n){if(!(this.firstCol&&n<=this.options.freezeColumns[0]))if(m)this.content.scrollLeft=0;else if(m=this.headerContainer.children[1+this.firstCol]){m=m.getAttribute(_$_f736[76]);for(n=m=parseInt(m);0<m;)if(m--,S.isVisible.call(this,m)){n=m;break}m=n;n=S.width.call(this,m);S.attached.call(this,m)||(n+=this.content.scrollLeft-this.table.offsetLeft);this.content.scrollLeft-=n}};k.right=function(m,n){if(!(this.firstCol&&n<=this.options.freezeColumns[0]))if(m)this.content.scrollLeft=
|
|
83
|
+
this.content.scrollWidth;else if(m=this.headerContainer.children[1+this.firstCol])this.content.scrollLeft+=m.offsetWidth};k.pageUp=function(){this.content.scrollTop-=l.call(this)};k.pageDown=function(){this.content.scrollTop+=l.call(this)};k.pageLeft=function(){this.content.scrollLeft-=e.call(this)};k.pageRight=function(){this.content.scrollLeft+=e.call(this)};k.build=function(){let m=document.createElement(_$_f736[46]);m.className=_$_f736[77];return m};k.width=function(m,n){var r=da.firstColumn.call(this);
|
|
84
|
+
let p=0,u=this.options.columns.length;for(;r<u;r++){if(m===r)return p;S.isVisible.call(this,r)&&(p+=S.width.call(this,r));if(p>=n)return r}return n?r:p};k.height=function(m,n){var r=ia.firstRow.call(this);let p=0,u=this.rows;this.results&&(u=this.results);let v,w=u.length;for(;r<w;r++){v=r;this.results&&(v=u[r]);if(m===v)return p;V.isVisible.call(this,v)&&(p+=V.height.call(this,v));if(p>=n)return v}return n?v:p};k.adjust=function(m,n,r){let p=this.records[n][m].element;if(p){if(!this.records[n][m].merged){var u=
|
|
85
|
+
0;if(0===r||2===r){n=this.content.scrollLeft;var v=wa.call(this)?50:0,w=this.options.freezeColumns;w?(u=da.getWidth.call(this,!0),w=w[w.length-1]):w=0;u=n+u;var z=n+this.content.offsetWidth-v;v=this.table.offsetLeft+p.offsetLeft-v;var B=p.offsetWidth;0===r?v+B<z&&m>w&&v<u&&(p.offsetHeight?k.setX.call(this,n+(v-u)):k[_$_f736[75]].call(this,null,m)):m>w&&(v>u?v+B>z&&(p.parentNode?k.setX.call(this,n+(v+B-z+16)):k[_$_f736[75]].call(this,null,m)):k[_$_f736[75]].call(this,null,m))}else m=this.content.scrollTop,
|
|
86
|
+
(w=this.options.freezeRows)?(u=ia.getHeight.call(this,!0),w=w[w.length-1]):w=0,u=m+u,v=m+this.content.offsetHeight-this.thead.offsetHeight-16,z=this.table.offsetTop+p.offsetTop-this.thead.offsetHeight,B=p.offsetHeight,1===r?z+B<v&&n>w&&z<u&&(p.offsetHeight?k.setY.call(this,m+(z-u)):k[_$_f736[75]].call(this,n)):n>w&&(z>u?z+B>v&&(p.parentNode?k.setY.call(this,m+(z+B-v)):k[_$_f736[75]].call(this,n)):k[_$_f736[75]].call(this,n,null))}}else 0===r||2===r?k[_$_f736[75]].call(this,null,m):k[_$_f736[75]].call(this,
|
|
87
|
+
n)};k.setX=function(m){k.ignore=!0;this.content.scrollLeft=m;k.ignore=!1};k.setY=function(m){k.ignore=!0;this.content.scrollTop=m;k.ignore=!1};k.limited=function(){return!0===this.options.tableOverflow||!0===this.parent.config.fullscreen};return k}(),jb=function(){const l=function(c,a){let b=this.thead.offsetHeight+3,d=(wa.call(this)?50:0)+3;c.style.top=parseInt(a.top)+b+_$_f736[19];c.style.left=parseInt(a.left)+d+_$_f736[19];a.width&&(c.style.width=parseInt(a.width)+_$_f736[19]);a.height&&(c.style.height=
|
|
88
|
+
parseInt(a.height)+_$_f736[19])},e=function(c){c.setImage=e[_$_f736[17]]};e[_$_f736[17]]=function(c,a){let b=this.options.images,d=null,f=null;if(typeof c===_$_f736[18])d=c,c=b.length,b.push(d),e.create.call(this,d);else{f=Object.assign({},b[c]);var g;a:{for(g=0;g<this.images.children.length;g++)if(this.images.children[g].options===b[c]){g=this.images.children[g];break a}g=!1}a?(Object.assign(b[c],a),g?l.call(this,g,b[c]):e.create.call(this,b[c])):(b[c]={},g&&g.remove())}K.call(this.parent,{worksheet:this,
|
|
89
|
+
action:_$_f736[78],index:c,value:Object.assign({},b[c]),oldValue:f});M.call(this,_$_f736[78],{index:c,value:d});H.call(this.parent,_$_f736[79],this,c,d)};e.create=function(c){if(!c.src)return!1;this.cursor?(c.top||(c.top=this.cursor.offsetTop+this.cursor.offsetHeight/2-this.thead.offsetHeight),c.left||(c.left=this.cursor.offsetLeft+this.cursor.offsetWidth/2-(wa.call(this)?50:0))):(c.top||(c.top=0),c.left||(c.left=0));let a=document.createElement(_$_f736[63]);a.src=c.src;a.setAttribute(_$_f736[80],
|
|
90
|
+
-1);a.classList.add(_$_f736[81]);a.classList.add(_$_f736[82]);a.refresh=e.refresh.bind(this,a);a[_$_f736[83]]=e[_$_f736[83]].bind(this,a);a.options=c;this.images.appendChild(a);l.call(this,a,c)};e[_$_f736[83]]=function(c){c=this.options.images.indexOf(c.options);e[_$_f736[17]].call(this,c,null)};e.refresh=function(c,a){let b=parseInt(c.style.top),d=parseInt(c.style.left),f=parseInt(c.style.width),g=parseInt(c.style.height),h=this.thead.offsetHeight+3,k=(wa.call(this)?50:0)+3;b<h&&c&&(c.style.top=
|
|
91
|
+
h+_$_f736[19]);d<k&&c&&(c.style.left=k+_$_f736[19]);a||(c=this.options.images.indexOf(c.options),e[_$_f736[17]].call(this,c,{top:b-h,left:d-k,width:f,height:g}))};e.build=function(){let c=this,a=this.options.images;this.images=document.createElement(_$_f736[46]);this.images.classList.add(_$_f736[84]);this.content.appendChild(c.images);Array.isArray(a)?a.forEach(function(b){e.create.call(c,b)}):this.options.images=[]};return e}(),La=function(){const l=function(e){e.setViewport=l[_$_f736[17]]};l[_$_f736[17]]=
|
|
92
|
+
function(e,c){this.options.tableOverflow=!0;e=parseInt(e);c=parseInt(c);this.content.classList.add(_$_f736[85]);150<e&&(this.options.tableWidth=e+_$_f736[19],this.content.style.width=this.options.tableWidth);150<c&&!this.options.pagination&&(this.options.tableHeight=c+_$_f736[19],this.content.style.height=this.options.tableHeight);L.refresh.call(this);va.update.call(this.parent,this);H.call(this.parent,_$_f736[86],e,c)};l.start=function(){l.event=!0};l.end=function(){l.event=null};l.update=function(){if(l.event){let e=
|
|
93
|
+
this.content.offsetWidth,c=this.content.offsetHeight;(this.w&&this.w!==e||this.h&&this.h!==c)&&l[_$_f736[17]].call(this,e,c);this.w=e;this.h=c}};return l}(),Sa=function(){const l=function(c,a,b,d){1===c||3===c?V.attached.call(this,b)||(0<this.options.pagination?this.page(this.whichPage(b)):1===c?L.up.call(this,d,b):L.down.call(this,d,b)):Q.attached.call(this,a,b)||(0===c?L.left.call(this,d,a):L.right.call(this,d,a))},e=function(c){c.up=e.up;c.down=e.down;c.right=e.right;c.left=e.left;c.last=e.last;
|
|
94
|
+
c.first=e.first};e.up=function(c,a,b){if(Array.isArray(this.selectedCell)){if(c){var d=parseInt(this.selectedCell[2]);var f=parseInt(this.selectedCell[3])}else d=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);b=e.Up.call(this,d,f,a,b);b!==f&&(f=b,c?(c=this.selectedCell[0],b=this.selectedCell[1]):(c=d,b=f,d=c,f=b),l.call(this,1,d,f,a),L.adjust.call(this,d,f,1),ea[_$_f736[17]].call(this,c,b,d,f))}};e.down=function(c,a,b){if(Array.isArray(this.selectedCell)){if(c){var d=parseInt(this.selectedCell[2]);
|
|
95
|
+
var f=parseInt(this.selectedCell[3])}else d=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);b=e.Down.call(this,d,f,a,b);b!==f&&(f=b,c?(c=this.selectedCell[0],b=this.selectedCell[1]):(c=d,b=f,d=c,f=b),l.call(this,3,d,f,a),L.adjust.call(this,d,f,3),ea[_$_f736[17]].call(this,c,b,d,f))}};e.right=function(c,a,b){if(Array.isArray(this.selectedCell)){if(c){var d=parseInt(this.selectedCell[2]);var f=parseInt(this.selectedCell[3])}else d=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);
|
|
96
|
+
b=e.Right.call(this,d,f,a,b);b!=d&&(d=b,c?(c=this.selectedCell[0],b=this.selectedCell[1]):(c=d,b=f,d=c,f=b),l.call(this,2,d,f,a),L.adjust.call(this,d,f,2),ea[_$_f736[17]].call(this,c,b,d,f))}};e.left=function(c,a,b){if(Array.isArray(this.selectedCell)){if(c){var d=parseInt(this.selectedCell[2]);var f=parseInt(this.selectedCell[3])}else d=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);b=e.Left.call(this,d,f,a,b);b!=d&&(d=b,c?(c=this.selectedCell[0],b=this.selectedCell[1]):(c=d,b=f,
|
|
97
|
+
d=c,f=b),l.call(this,0,d,f,a),L.adjust.call(this,d,f,0),ea[_$_f736[17]].call(this,c,b,d,f))}};e.first=function(c,a){Array.isArray(this.selectedCell)&&(a?e.up.call(this,c,!0,!0):e.left.call(this,c,!0,!0))};e.last=function(c,a){Array.isArray(this.selectedCell)&&(a?e.down.call(this,c,!0,!0):e.right.call(this,c,!0,!0))};e.Up=function(c,a,b,d){let f=a,g=null;if(this.results&&(a=this.results.indexOf(a),-1===a))return f;for(;0<a;){a--;var h=this.results?this.results[a]:a;if(V.isVisible.call(this,h)){let k=
|
|
98
|
+
this.records[h][c];h=k.v===_$_f736[11]?!1:!0;null===g&&(g=h);if(k.element&&k.element.classList.contains(_$_f736[87])){if(k.merged){f=k.merged[0].y;if(!b)break;h=!0}}else{if(b&&h!==g&&!d)break;if(b)f=a;else return a}g=h}}return f};e.Down=function(c,a,b,d){let f,g=a,h,k=null,m=this.rows.length-1;if(this.results){a=this.results.indexOf(a);if(-1===a)return g;m=this.results.length-1}for(;a<m;)if(a++,f=this.results?this.results[a]:a,V.isVisible.call(this,f)){let n=this.records[f][c];h=n.v===_$_f736[11]?
|
|
99
|
+
!1:!0;null===k&&(k=h);if(n.element&&n.element.classList.contains(_$_f736[87])){if(n.merged){if(n.y===n.merged[0].y&&(g=f,!b))break;h=!0}}else{if(b&&h!==k&&!d)break;if(b)g=f;else return f}k=h}return g};e.Right=function(c,a,b,d){let f=this.options.columns,g=c,h,k=null;for(;c<f.length-1;)if(c++,S.isVisible.call(this,c)){let m=this.records[a][c];h=m.v===_$_f736[11]?!1:!0;null===k&&(k=h);if(m.element&&m.element.classList.contains(_$_f736[87])){if(m.merged){if(m.x===m.merged[0].x&&(g=c,!b))break;h=!0}}else{if(b&&
|
|
100
|
+
h!==k&&!d)break;if(b)g=c;else return c}k=h}return g};e.Left=function(c,a,b,d){let f=c,g,h=null;for(;0<c;)if(c--,S.isVisible.call(this,c)){let k=this.records[a][c];g=k.v===_$_f736[11]?!1:!0;null===h&&(h=g);if(k.element&&k.element.classList.contains(_$_f736[87])){if(k.merged){f=k.merged[0].x;if(!b)break;g=!0}}else{if(b&&g!==h&&!d)break;if(b)f=c;else return c}h=g}return f};return e}(),rb=function(){return function(l){l.save=kb;l.fullscreen=fb;l.setReadOnly=ib;l.isReadOnly=ib;l.rotate=qb;l.setPlugins=
|
|
101
|
+
function(e){Ca.call(this.parent,e)};l.showIndex=function(){wa.call(this,!0)};l.hideIndex=function(){wa.call(this,!1)};l.isEditable=function(){return U.call(l.parent,l)};l.dispatch=function(){return H.apply(this.parent,arguments)};l.persistence=M;l.helpers=I;l.undo=t.history.undo;l.redo=t.history.redo;l[_$_f736[75]]=L[_$_f736[75]]}}(),Ta=function(){const l={logo:null,url:null,persistence:!1,sequence:!0,data:null,json:null,rows:[],columns:[],cells:{},role:null,nestedHeaders:null,defaultColWidth:100,
|
|
102
|
+
defaultRowHeight:0,defaultColAlign:null,minSpareRows:0,minSpareCols:0,minDimensions:[0,0],csv:null,csvFileName:_$_f736[62],csvHeaders:!0,csvDelimiter:_$_f736[51],columnSorting:!0,columnSortingOnDblClick:!0,columnDrag:!0,columnResize:!0,rowResize:!0,rowDrag:!0,editable:!0,allowInsertRow:!0,allowManualInsertRow:!0,allowInsertColumn:!0,allowManualInsertColumn:!0,allowDeleteRow:!0,allowDeletingAllRows:!1,allowDeleteColumn:!0,allowRenameColumn:!0,allowComments:!0,selectionCopy:!0,mergeCells:{},search:!1,
|
|
103
|
+
pagination:!1,paginationOptions:null,textOverflow:!1,tableOverflow:!1,virtualizationY:!0,virtualizationX:!0,tableHeight:null,tableWidth:null,resize:null,comments:null,meta:null,style:{},freezeColumns:null,freezeRows:null,freezeColumnControl:!1,freezeRowControl:!1,orderBy:null,worksheetId:_$_f736[11],worksheetName:null,worksheetState:null,filters:!1,footers:null,formify:null,applyMaskOnFooters:!0,pluginOptions:null,locked:!1,selectUnLockedCells:!0,selectLockedCells:!0,wrap:!1,gridline:!0,images:null},
|
|
104
|
+
e={application:_$_f736[88],cloud:null,root:null,definedNames:{},style:null,sorting:null,server:null,toolbar:null,editable:!0,allowExport:!0,includeHeadersOnDownload:!1,forceUpdateOnPaste:!1,loadingSpin:!1,fullscreen:!1,secureFormulas:!0,parseFormulas:!0,debugFormulas:!1,editorFormulas:!0,autoIncrement:!0,autoCasting:!0,stripHTML:!1,tabs:!1,allowDeleteWorksheet:!0,allowRenameWorksheet:!0,allowMoveWorksheet:!0,moveDownOnEnter:!0,spacing:1,onevent:null,onclick:null,onload:null,onundo:null,onredo:null,
|
|
105
|
+
onbeforesave:null,onsave:null,onerror:null,onbeforechange:null,onchange:null,onafterchanges:null,oncopy:null,onbeforepaste:null,onpaste:null,onbeforeinsertrow:null,oninsertrow:null,onbeforedeleterow:null,ondeleterow:null,onbeforeinsertcolumn:null,oninsertcolumn:null,onbeforedeletecolumn:null,ondeletecolumn:null,onmoverow:null,onmovecolumn:null,onresize:null,onresizerow:null,onresizecolumn:null,onselection:null,onbeforecomments:null,oncomments:null,onbeforesort:null,onsort:null,onfocus:null,onblur:null,
|
|
106
|
+
onmerge:null,onchangeheader:null,onchangefooter:null,onchangefootervalue:null,onrenderfootercell:null,onchangenested:null,onchangenestedcell:null,oncreateeditor:null,oneditionstart:null,oneditionend:null,onchangestyle:null,onchangemeta:null,onbeforechangepage:null,onchangepage:null,onbeforecreateworksheet:null,oncreateworksheet:null,onrenameworksheet:null,ondeleteworksheet:null,onmoveworksheet:null,onopenworksheet:null,onchangerowid:null,onbeforesearch:null,onsearchstart:null,onsearch:null,onsearchrow:null,
|
|
107
|
+
onbeforefilter:null,onfilter:null,onopenfilter:null,oncreatecell:null,oncreaterow:null,oncreatecolumn:null,onbeforeformula:null,onformulachain:null,onbeforesend:null,onchangedefinednames:null,oninput:null,onchangerowvisibility:null,onchangecolumnvisibility:null,ongrouprow:null,onopenrowgroup:null,oncloserowgroup:null,ongroupcolumn:null,onopencolumngroup:null,onclosecolumngroup:null,contextMenu:null,parseTableFirstRowAsHeader:!1,parseTableAutoCellType:!1,plugins:null,about:!0,license:null,worksheets:null,
|
|
108
|
+
validations:null,snapToGrid:!1},c=function(d,f){f=JSON.parse(JSON.stringify(f));let g={};for(let h in f)d&&d.hasOwnProperty(h)?g[h]=d[h]:g[h]=f[h];return g},a=function(d){d&&(typeof d==_$_f736[10]&&(d=JSON.parse(d)),this.options.data=d);this.options.json&&(this.options.data=this.options.json);this.options.data||(this.options.data=[]);d=this.options.columns.length;let f;var g=this.options.data;g&&typeof g[0]!==_$_f736[12]&&(f=Object.keys(g[0].data&&0<Object.keys(g[0].data).length?g[0].data:g[0]),f.length>
|
|
109
|
+
d&&(d=f.length));this.options.minDimensions[0]>d&&(d=this.options.minDimensions[0]);d||(d=8);g=this.options.columns;for(let h=0;h<d;h++)g[h]?g[h].type||(g[h].type=_$_f736[89]):g[h]={type:_$_f736[89]},g[h].type===_$_f736[90]&&(g[h].type=_$_f736[91],g[h].autocomplete=!0),!g[h].name&&f&&f[h]&&Number(f[h])!=f[h]&&(g[h].name=f[h]),g[h].width||(g[h].width=parseInt(this.options.defaultColWidth)+_$_f736[19]),g[h].type!==_$_f736[91]||g[h].source||(g[h].source=[]),g[h].type===_$_f736[91]&&g[h].url&&jSuites.ajax({url:g[h].url,
|
|
110
|
+
index:h,method:_$_f736[92],dataType:_$_f736[93],worksheet:this,group:this.parent.name,success:function(k){this.worksheet.options.columns[this.index].source=k}})},b=function(d){d.getConfig=b[_$_f736[70]];d.setConfig=b[_$_f736[17]]};b.spreadsheet=function(d){this.config=c(d,e);!0!==this.config.secureFormulas&&console.log(_$_f736[94])};b.worksheet=function(d){let f=this;f.options=c(d,l);f.options.csv?jSuites.ajax({url:f.options.csv,method:_$_f736[92],dataType:_$_f736[89],group:f.parent.name,success:function(g){g=
|
|
111
|
+
I.parseCSV(g,f.options.csvDelimiter);if(!0===f.options.csvHeaders&&0<g.length){let h=g.shift();for(let k=0;k<h.length;k++)f.options.columns[k]||(f.options.columns[k]={type:_$_f736[89],width:f.options.defaultColWidth}),typeof f.options.columns[k].title===_$_f736[12]&&(f.options.columns[k].title=h[k])}a.call(f,g)}}):f.options.url?jSuites.ajax({url:f.options.url,method:_$_f736[92],dataType:_$_f736[93],group:f.parent.name,success:function(g){a.call(f,g)}}):a.call(f)};b[_$_f736[70]]=function(){if(typeof this.config===
|
|
112
|
+
_$_f736[18]){let d=this.config;d.worksheets=[];for(let f=0;f<this.worksheets.length;f++)d.worksheets.push(this.worksheets[f].options);return d}return this.options};b[_$_f736[17]]=function(d){typeof d==_$_f736[10]&&(d=JSON.parse(d));if(this.parent){var f=Object.keys(d);for(var g=0;g<f.length;g++)typeof l[f[g]]!==_$_f736[12]&&(this.options[f[g]]=d[f[g]]);this.content.style.resize=d.resize?d.resize:_$_f736[11];!0===d.filters?na.show.call(this):!1===d.filters&&na.hide.call(this);!0===d.search?ya.show.call(this):
|
|
113
|
+
!1===d.search&&ya.hide.call(this);!0===d.toolbar?va.show.call(this.parent):!1===d.toolbar&&va.hide.call(this.parent);d.minDimensions&&d.minDimensions[0]&&(f=parseInt(d.minDimensions[0])-this.options.columns.length,0<f&&this.insertColumn(f),f=parseInt(d.minDimensions[1])-this.rows.length,0<f&&this.insertRow(f));M.call(this,_$_f736[95],{data:JSON.stringify(d)})}else for(f=Object.keys(d),g=0;g<f.length;g++)typeof e[f[g]]!==_$_f736[12]&&(this.config[f[g]]=d[f[g]])};return b}(),K=function(){const l=function(a){let b=
|
|
114
|
+
a.worksheet,d;if(a.action===_$_f736[96])b.deleteRow(a.changes);else if(a.action===_$_f736[97])b.insertRow(a.changes),Q.setAttributes.call(b,a.attributes);else if(a.action===_$_f736[98])b.deleteColumn(a.changes);else if(a.action===_$_f736[99])b.insertColumn(a.changes),Q.setAttributes.call(b,a.attributes);else if(a.action===_$_f736[100])b.moveRow(a.newValue,a.oldValue,a.numOfItems);else if(a.action===_$_f736[101])b.moveColumn(a.newValue,a.oldValue,a.numOfItems),Q.setAttributes.call(b,a.attributes);
|
|
115
|
+
else if(a.action===_$_f736[102])b.showRow(a.records);else if(a.action===_$_f736[103])b.hideRow(a.records);else if(a.action===_$_f736[104])b.showColumn(a.records);else if(a.action===_$_f736[105])b.hideColumn(a.records);else if(a.action===_$_f736[106])b.removeMerge(a.newValue,!0),b.setMerge(a.oldValue);else if(a.action===_$_f736[107])b.setMerge(a.oldValue);else if(a.action===_$_f736[108])b.setStyle(a.oldValue,null,null,1);else if(a.action===_$_f736[109])b.setStyle(a.oldValue);else if(a.action===_$_f736[110])b.setWidth(a.column,
|
|
116
|
+
a.oldValue);else if(a.action===_$_f736[111])b.setHeight(a.row,a.oldValue);else if(a.action===_$_f736[112])b.setHeader(a.column,a.oldValue);else if(a.action===_$_f736[113]||a.action===_$_f736[114]||a.action===_$_f736[115])b[a.action](a.oldValue);else if(a.action===_$_f736[116])b.orderBy(a.column,a.direction?0:1,a.oldValue,a.previousState);else if(a.action===_$_f736[117]||a.action===_$_f736[118]||a.action===_$_f736[119]){d=[];for(var f=0;f<a.records.length;f++){let g={x:a.records[f].x,value:a.records[f].oldValue};
|
|
117
|
+
typeof a.records[f].y!==_$_f736[12]&&(g.y=a.records[f].y);typeof a.records[f].oldStyle!==_$_f736[12]&&(g.style=a.records[f].oldStyle);d.push(g)}a.action===_$_f736[117]?b.setValue(d):b.setProperty(d)}else if(a.action===_$_f736[120])b.deleteWorksheet(a.index);else if(a.action===_$_f736[121])b.createWorksheet(a.options,a.index);else if(a.action===_$_f736[122])b.renameWorksheet(a.index,a.oldValue);else if(a.action===_$_f736[123])b.moveWorksheet(a.t,a.f);else if(a.action===_$_f736[124]||a.action===_$_f736[125]){d=
|
|
118
|
+
[];for(f=0;f<a.records.length;f++)d.push({index:a.records[f].index,value:a.records[f].oldValue});b[a.action](d)}else a.action===_$_f736[126]?b.setRowGroup(a.row,a.oldValue,a.oldState):a.action===_$_f736[127]?b.closeRowGroup(a.row):a.action===_$_f736[128]?b.openRowGroup(a.row):a.action===_$_f736[129]?b.resetColumnGroup(a.column,a.oldValue,a.oldState):a.action===_$_f736[130]?b.closeColumnGroup(a.column):a.action===_$_f736[131]?b.openColumnGroup(a.column):a.action===_$_f736[132]?b.setNestedCell(a.oldValue):
|
|
119
|
+
a.action===_$_f736[78]&&b.setImage(a.index,a.oldValue);H.call(b.parent,_$_f736[133],b,a)},e=function(a){let b=a.worksheet;if(a.action===_$_f736[96])b.insertRow(a.rows);else if(a.action===_$_f736[97])b.deleteRow(a.rows);else if(a.action===_$_f736[98])b.insertColumn(a.columns);else if(a.action===_$_f736[99])b.deleteColumn(a.columns);else if(a.action===_$_f736[100])b.moveRow(a.oldValue,a.newValue,a.numOfItems);else if(a.action===_$_f736[101])b.moveColumn(a.oldValue,a.newValue,a.numOfItems);else if(a.action===
|
|
120
|
+
_$_f736[106])b.setMerge(a.newValue);else if(a.action===_$_f736[107])b.removeMerge(a.newValue);else if(a.action===_$_f736[108])b.setStyle(a.newValue);else if(a.action===_$_f736[109])b.resetStyle(a.cells);else if(a.action===_$_f736[110])b.setWidth(a.column,a.newValue);else if(a.action===_$_f736[111])b.setHeight(a.row,a.newValue);else if(a.action===_$_f736[112])b.setHeader(a.column,a.newValue);else if(a.action===_$_f736[113]||a.action===_$_f736[114]||a.action===_$_f736[115])b[a.action](a.newValue);else if(a.action===
|
|
121
|
+
_$_f736[116])b.orderBy(a.column,a.direction,a.newValue);else if(a.action===_$_f736[117]||a.action===_$_f736[118]||a.action===_$_f736[119]||a.action===_$_f736[102]||a.action===_$_f736[103]||a.action===_$_f736[104]||a.action===_$_f736[105]||a.action===_$_f736[124]||a.action===_$_f736[125])b[a.action](a.records);else a.action===_$_f736[120]?b.deleteWorksheet(a.index):a.action===_$_f736[121]?b.createWorksheet(a.options):a.action===_$_f736[122]?b.renameWorksheet(a.index,a.newValue):a.action===_$_f736[123]?
|
|
122
|
+
b.moveWorksheet(a.f,a.t):a.action===_$_f736[126]?b.setRowGroup(a.row,a.numOfItems):a.action===_$_f736[134]?b.resetRowGroup(a.row):a.action===_$_f736[127]?b.openRowGroup(a.row):a.action===_$_f736[128]?b.closeRowGroup(a.row):a.action===_$_f736[129]?b.setColumnGroup(a.column,a.numOfItems):a.action===_$_f736[135]?b.resetColumnGroup(a.column):a.action===_$_f736[130]?b.openColumnGroup(a.column):a.action===_$_f736[131]?b.closeColumnGroup(a.column):a.action===_$_f736[132]?b.setNestedCell(a.value):a.action===
|
|
123
|
+
_$_f736[78]&&b.setImage(a.index,a.value);H.call(b.parent,_$_f736[136],b,a)},c=function(a){if(!0!==c.ignore)if(c.cascade)c.actions[c.index].cascade||(c.actions[c.index].cascade=[]),c.actions[c.index].cascade.push(a);else{let b=++c.index;c.actions=c.actions.slice(0,b+1);c.actions[b]=a}};c.index=-1;c.actions=[];c.cascade=!1;c.ignore=!1;c.ignore=null;c.undo=function(){if(0<=c.index){let a=c.actions[c.index--];if(a){c.ignore=!0;c.progress=_$_f736[137];let b=a.worksheet;b.openWorksheet();l(a);if(a.cascade&&
|
|
124
|
+
a.cascade.length)for(let d=0;d<a.cascade.length;d++)l(a.cascade[d]);a.selection&&b.updateSelectionFromCoords(a.selection);c.ignore=!1;c.progress=null}}};c.redo=function(){if(c.index<c.actions.length-1){let a=c.actions[++c.index];if(a){c.ignore=!0;c.progress=_$_f736[138];let b=a.worksheet;b.openWorksheet();e(a);if(a.cascade&&a.cascade.length)for(let d=0;d<a.cascade.length;d++)e(a.cascade[d]);a.selection&&b.updateSelectionFromCoords(a.selection);c.ignore=!1;c.progress=null}}};c.reset=function(){c.index=
|
|
125
|
+
-1;c.actions=[]};return c}(),Ca=function(){const l=function(e){let c,a,b,d,f=null;if(Array.isArray(e))f=e;else if(typeof e==_$_f736[18]){f=[];d=Object.keys(e);for(let g=0;g<d.length;g++)f.push({name:d[g],plugin:e[d[g]],options:{}})}if(f&&f.length)for(e=0;e<f.length;e++)f[e].name&&f[e].plugin&&(c=f[e].name,a=f[e].plugin,b=f[e].options),typeof a===_$_f736[14]&&(this.plugins||(this.plugins={}),this.plugins[c]=a.call(t,this,b,this.config),typeof a.license==_$_f736[14]&&t.license&&a.license(t.license))};
|
|
126
|
+
l.execute=function(e,c){if(this.plugins){let a=Object.keys(this.plugins);if(a.length)for(let b=0;b<a.length;b++)if(typeof this.plugins[a[b]][e]==_$_f736[14]){let d=this.plugins[a[b]][e].apply(this.plugins[a[b]],c);d&&(e===_$_f736[139]&&(c[4]=d),e===_$_f736[140]&&(c[0]=d))}}return c};l.build=function(){this.setPlugins=l;this.config.plugins&&l.call(this,this.config.plugins)};l.onevent=function(e){return function(){let c,a,b,d,f=this.plugins;if(f&&(b=Object.keys(f),b.length))for(d=0;d<b.length;d++)typeof f[b[d]][e]==
|
|
127
|
+
_$_f736[14]&&(a=f[b[d]][e].apply(f[b[d]],arguments),typeof a!==_$_f736[12]&&(c=a));return c}}(_$_f736[141]);return l}(),ta=function(){const l=function(){let c=this.options.columns||{},a=this.parent.input,b=a.x,d=a.y,f=0;do{if(this.records[d][b].merged){let g=this.records[d][b].merged[0].mergeCells[0];for(let h=0;h<g;h++)f+=ab[_$_f736[70]].call(this,b),b++}else f+=ab[_$_f736[70]].call(this,b),b++;a.style.minWidth=f-1+_$_f736[19]}while(c[b]&&a.offsetWidth>=f)},e=function(c){c.getEditor=e[_$_f736[70]];
|
|
128
|
+
c.openEditor=e.open;c.closeEditor=e.close};e[_$_f736[70]]=function(c,a){a=Ma[_$_f736[70]].call(this,c,a);c=a.type&&typeof a.type==_$_f736[18]?a.type:t.editors[a.type];typeof c===_$_f736[12]&&(c=t.editors.text);return[c,a]};e.open=function(c,a,b){if(!U.call(this.parent,this))return!1;if(!0!==c.classList.contains(_$_f736[40])){let h=parseInt(c.getAttribute(_$_f736[76])),k=parseInt(c.getAttribute(_$_f736[72]));if(!0===this.options.locked&&!this.records[k][h].options&&!1===this.records[k][h].options.locked)return!1;
|
|
129
|
+
var d=this.records[k][h].merged;d&&(c=d[0].element);if(!Q.attached.call(this,h,k)){if(this.results&&0<this.results.length)return console.error(_$_f736[142]),!1;var f,g;S.attached.call(this,h)||(f=h);V.attached.call(this,k)||(g=k);L[_$_f736[75]].call(this,g,f)}this.resetBorders(_$_f736[143],!0);e.position.call(this,h,k);d=this.parent.input;!b||113!==b.keyCode&&b.type===_$_f736[144]||(d.selected=!0);d.textContent=_$_f736[11];d.x=h;d.y=k;H.call(this.parent,_$_f736[145],this,c,h,k);a=!0===a?_$_f736[11]:
|
|
130
|
+
O.call(this,h,k);f=e[_$_f736[70]].call(this,h,k);g=!0;typeof f[0].openEditor==_$_f736[14]&&(!1===f[0].openEditor(c,a,h,k,this,f[1],b)?g=!1:H.call(this.parent,_$_f736[146],this,c,h,k,d,f[1]));g&&(!0===this.options.textOverflow&&(this.records[k][h].element.style.overflow=_$_f736[147],0<h&&this.records[k][h-1].element&&(this.records[k][h-1].element.style.overflow=_$_f736[147])),this.edition=c,d.classList.add(_$_f736[148]),!0===this.parent.config.editorFormulas&&ba(a,!0)&&(d.classList.add(_$_f736[149]),
|
|
131
|
+
sa.parse.call(this,d),c=document.createTextNode(_$_f736[11]),d.appendChild(c),jSuites.focus(d)),l.call(this,h,k))}};e.close=function(c,a){null===c&&(c=this.edition);this.parent.input.classList.contains(_$_f736[149])&&sa.close.call(this,this.parent.input);let b=parseInt(c.getAttribute(_$_f736[76])),d=parseInt(c.getAttribute(_$_f736[72]));!0===this.options.textOverflow&&(this.records[d][b].element.style.overflow=_$_f736[11],0<b&&this.records[d][b-1].element&&(this.records[d][b-1].element.style.overflow=
|
|
132
|
+
_$_f736[11]));var f=e[_$_f736[70]].call(this,b,d);let g=null;!0===a?(typeof f[0].closeEditor==_$_f736[14]&&(f=f[0].closeEditor(c,!0,b,d,this,f[1]),typeof f!==_$_f736[12]&&(g=f)),null!==g&&O.call(this,b,d)!=g&&this.setValue(c,g)):f[0].closeEditor(c,!1,b,d,this,f[1]);H.call(this.parent,_$_f736[150],this,c,b,d,g,a);c=this.parent.input;c.selected=!1;c.onblur&&(c.onblur=null);c.children[0]&&c.children[0].onblur&&(c.children[0].onblur=null);c.update&&(c.update=null);ta.build(this.parent);c.removeAttribute(_$_f736[151]);
|
|
133
|
+
c.removeAttribute(_$_f736[152]);c.removeAttribute(_$_f736[153]);this.edition=c.mask=null;this.refreshBorders()};e.position=function(c,a){var b=this.records[a][c].element;if(b){let d=this.parent.element.getBoundingClientRect();b=b.getBoundingClientRect();let f=this.parent.input;f.x=c;f.y=a;0===b.width&&0===b.height?f.style.opacity=_$_f736[154]:(f.setAttribute(_$_f736[21],_$_f736[11]),f.style.top=b.top-d.top+1+_$_f736[19],f.style.left=b.left-d.left+1+_$_f736[19],f.style.minWidth=b.width-1+_$_f736[19],
|
|
134
|
+
f.style.minHeight=b.height-1+_$_f736[19],setTimeout(function(){f.focus()},0))}};e.build=function(c){c.input||(c.input=document.createElement(_$_f736[46]));c.input.className=_$_f736[155];c.input.setAttribute(_$_f736[156],!0);c.input.textContent=_$_f736[11];c.input.oninput=function(a){t.current&&(!0===t.current.parent.config.editorFormulas&&(ba(a.target.textContent,!0)?(a.target.classList.add(_$_f736[149]),a.target.selected=!0):a.target.classList.contains(_$_f736[149])&&sa.close.call(t.current,this)),
|
|
135
|
+
l.call(t.current),H.call(t.current.parent,_$_f736[157],t.current,a,a.target.textContent))};c.input.onupdate=function(a,b){H.call(t.current.parent,_$_f736[157],t.current,b,a)};c.input.onclick=function(){this.selected=!0};return c.input};return e}(),H=function(l){let e,c;this.ignoreEvents||(typeof this.config.onevent==_$_f736[14]&&(e=this.config.onevent.apply(this,arguments),typeof e!==_$_f736[12]&&(c=e)),typeof this.config[l]==_$_f736[14]&&(e=this.config[l].apply(this,Array.prototype.slice.call(arguments,
|
|
136
|
+
1)),typeof e!==_$_f736[12]&&(c=e)),e=Ca.onevent.apply(this,arguments),typeof e!==_$_f736[12]&&(c=e));return c},xa=function(){const l=function(e){e.sequence=0;e.getNextSequence=l.next;e.getRowId=l.getId;e.setRowId=l.setId;e.getRowById=l.getRowById};l[_$_f736[70]]=function(){return this.sequence};l[_$_f736[17]]=function(e,c){if(e>this.sequence||c)this.sequence=e};l.next=function(){return!0===this.options.sequence?++this.sequence:null};l.reset=function(){this.sequence=0};l.getId=function(e,c){if(this.rows[e]&&
|
|
137
|
+
this.rows[e].id)return this.rows[e].id;if(!1!==c&&(c=this.getPrimaryKey(),!1!==c))return O.call(this,c,e)};l.setId=function(e,c){let a;typeof c!==_$_f736[12]&&0<=parseInt(e)?(a={},a[e]=c):a=e;e=Object.keys(a);if(e.length){for(c=0;c<e.length;c++){let b=a[e[c]];this.rows[e[c]].id=b;l[_$_f736[17]].call(this,b)}M.call(this,_$_f736[158],[a]);H.call(this.parent,_$_f736[159],this,a)}};l.getRowById=function(e,c){for(let a=0;a<this.rows.length;a++)if(l.getId.call(this,a)==e)return!0===c?this.rows[a]:this.options.data[a];
|
|
138
|
+
return!1};return l}(),kb=function(){const l=function(c){let a=[],b={};for(let f=0;f<c.length;f++){var d=c[f].x;let g=c[f].y,h=xa.getId.call(this,g);h||(b[g]?h=b[g]:(h=xa.next.call(this))&&(b[g]=h));a[g]||(a[g]={id:h,row:g,data:{}});d=Aa.call(this,d);a[g].data[d]=c[f].value}xa.setId.call(this,b);return a.filter(function(f){return null!=f})},e=function(c){let a=c[0];if(0<=[_$_f736[160],_$_f736[161],_$_f736[158],_$_f736[162]].indexOf(a))return!1;a===_$_f736[117]||a===_$_f736[163]?l.call(this,c[1].data):
|
|
139
|
+
Array.isArray(c[1]);return Q};return function(c,a,b,d){let f=this.parent,g=this,h=e.call(this,a);if(h)a=h;else if(!1===h)return!1;if(h=H.call(f,_$_f736[165],f,g,a))a=h;else if(!1===h)return!1;gb.call(f,!0);jSuites.ajax({url:c,method:_$_f736[166],dataType:_$_f736[93],data:{data:JSON.stringify(a)},queue:!0,beforeSend:function(k){b&&k.setRequestHeader(_$_f736[167],_$_f736[168]+b);H.call(f,_$_f736[169],g,k)},success:function(k){f.element.classList.contains(_$_f736[170])&&f.element.classList.remove(_$_f736[170]);
|
|
140
|
+
k&&(k.message&&Fa.call(f,k),k.success?typeof d===_$_f736[14]?d(k):k.data&&Array.isArray(k.data)&&Q.updateAll.call(g,k.data):k.error&&(Fa.call(f,{error:1,mesage:_$_f736[171]}),window.open(window.location.href,_$_f736[172])));H.call(f,_$_f736[173],f,g,a,k)},error:function(){f.element.classList.add(_$_f736[174])}})}}(),M=function(){return function(){Ca.execute.call(this.parent,_$_f736[175],[this,arguments[0],arguments[1]]);if(!this.parent.ignorePersistence){let l=null;if(this.parent.config.server){let e=
|
|
141
|
+
this.parent.worksheets.indexOf(this);l=this.parent.config.server;l=-1===l.indexOf(_$_f736[176])?l+(_$_f736[177]+e):l+(_$_f736[178]+e)}else this.options.persistence&&(l=typeof this.options.persistence==_$_f736[10]?this.options.persistence:this.options.url);l&&kb.call(this,l,arguments)}}}(),Xa=function(l){if(this.selectedCell){var e=this.selectedCell[0],c=this.selectedCell[1];this.records&&this.records[c]&&this.records[c][e]&&this.records[c][e].element||(this.selectedCell=this.getHighlighted(),e=this.selectedCell[0],
|
|
142
|
+
c=this.selectedCell[1]);var a=this.getHighlighted(),b=a[0],d=a[1],f=a[2];a=a[3];var g=l?_$_f736[179]:_$_f736[180];this.records[c]&&this.records[c][e]&&this.records[c][e].element&&(this.records[c][e].element.classList[g](_$_f736[181]),this.cursor=l?this.records[c][e].element:null);for(e=b;e<=f;e++)if(l=Z.element.call(this,e))l.classList[g](_$_f736[182]);for(;d<=a;d++)if(this.rows[d]&&this.rows[d].element)this.rows[d].element.classList[g](_$_f736[182])}},ea=function(){const l=function(e){e.resetSelection=
|
|
143
|
+
l.reset;e.updateSelection=l.fromElements;e.updateSelectionFromCoords=l[_$_f736[17]];e.selectAll=l.all;e.isSelected=l.isSelected;e.getHighlighted=l.getHighlighted;e.getRange=l.getRange;e.getSelection=l[_$_f736[70]];e.getSelectedColumns=l.getSelectedColumns;e.getSelectedRows=l.selectedRows;e.getSelected=l.selected};l[_$_f736[70]]=function(){let e,c,a;var b;if(b=this.selectedCell)return b[0]<b[2]?(e=b[0],c=b[2]):(e=b[2],c=b[0]),b[1]<b[3]?(a=b[1],b=b[3]):(a=b[3],b=b[1]),[e,a,c,b]};l.getHighlighted=function(){let e=
|
|
144
|
+
this.borders;return e&&e.main&&null!==e.main.x1?(e=e.main,[e.x1,e.y1,e.x2,e.y2]):null};l.getFromCoords=function(e,c,a){if(!e||null===e[0])return null;let b=[],d=e[0];var f=e[1];let g=e[2];e=e[3];a&&(a=this.results?I.invert(this.results):null);if(c)for(c=f;c<=e;c++){if(!a||a[c])for(f=d;f<=g;f++)b.push(I.getColumnNameFromCoords(f,c))}else for(c=f;c<=e;c++)if(f=this.records[c],!a||a[c])for(let h=d;h<=g;h++)b.push(f[h]);return b};l.selected=function(e,c){return l.getFromCoords.call(this,this.getHighlighted(),
|
|
145
|
+
e,c)};l.isSelected=function(e,c,a){if(!a&&(a=this.getHighlighted(),!a||null===a[0]))return!1;let b=a[0],d=a[1],f=a[2];a=a[3];null===d&&null===a&&(c=null);f||(f=b);a||(a=d);return null==e?c>=d&&c<=a:null==c?e>=b&&e<=f:e>=b&&e<=f&&c>=d&&c<=a};l.getSelectedColumns=function(e){let c=[],a=this.getHighlighted();if(a)for(let b=a[0];b<=a[2];b++)e&&!S.isVisible.call(this,b)||c.push(b);return c};l.selectedRows=function(e){let c=[],a=null;e&&this.results&&(a=I.invert(this.results));let b=this.getHighlighted();
|
|
146
|
+
if(b)for(let d=b[1];d<=b[3];d++)(!e||V.isVisible.call(this,d)&&(null===a||a[d]))&&c.push(d);return c};l.reset=function(){return this.selectedCell?(this.edition&&ta.close.call(this,this.edition,!0),this.resetBorders(_$_f736[183],!0),this.resetBorders(_$_f736[143],!0),this.selectedCell=null,H.call(this.parent,_$_f736[184],this),!0):!1};l.refresh=function(){this.selectedCell&&l[_$_f736[17]].call(this,this.selectedCell)};l.isValid=function(e,c,a,b){if(!this)return!1;Array.isArray(e)&&(b=e[3],a=e[2],c=
|
|
147
|
+
e[1],e=e[0]);let d=this.options.columns.length,f=this.rows.length;return!(e>=d||c>=f||a>=d||b>=f)};l[_$_f736[17]]=function(e,c,a,b,d,f,g){f||(f=_$_f736[183]);var h=this.options.columns.length,k=this.rows.length;Array.isArray(e)&&(b=e[3],a=e[2],c=e[1],e=e[0]);null===c&&null===b&&(b=c=0,h&&(b=h-1));null===e&&null===a&&(a=e=0,k&&(a=k-1));null==a&&(a=e);null==b&&(b=c);if(!l.isValid.call(this,e,c,a,b))return!1;let m,n,r,p;f===_$_f736[183]&&t.current!==this&&this.openWorksheet();if(null!=e&&(parseInt(e)<
|
|
148
|
+
parseInt(a)?(m=parseInt(e),n=parseInt(a)):(m=parseInt(a),n=parseInt(e)),parseInt(c)<parseInt(b)?(r=parseInt(c),p=parseInt(b)):(r=parseInt(b),p=parseInt(c)),this.merged))for(var u=r;u<=p;u++)for(let w=m;w<=n;w++){var v=this.records[u][w];if(v&&(v=v.merged)){v=v[0];let z=v.mergeCells[0],B=v.mergeCells[1];v.x<m&&(m=v.x);v.x+z-1>n&&(n=v.x+z-1);v.y<r&&(r=v.y);v.y+B-1>p&&(p=v.y+B-1)}}n>h&&(n=h-1);p>k&&(p=k-1);f===_$_f736[183]&&(h=0,this.selectedCell&&(Xa.call(this,!1),h=1),this.selectedCell=[e,c,a,b],this.records[b][a].element&&
|
|
149
|
+
d&&(k=d.target.getAttribute(_$_f736[76]),u=d.target.getAttribute(_$_f736[72]),null!==k&&null!==u&&(L.adjust.call(this,a,b,3),L.adjust.call(this,a,b,2),L.adjust.call(this,a,b,1),L.adjust.call(this,a,b,0))),ta.position.call(this,e,c),h||H.call(this.parent,_$_f736[185],this));ca[_$_f736[17]].call(this,m,r,n,p,f,g);f===_$_f736[183]&&(H.call(this.parent,_$_f736[186],this,m,r,n,p,d),va.update.call(this.parent,this))};l.fromElements=function(e,c,a){let b=e.getAttribute(_$_f736[76]);e=e.getAttribute(_$_f736[72]);
|
|
150
|
+
let d=b,f=e;c&&(d=c.getAttribute(_$_f736[76]),f=c.getAttribute(_$_f736[72]));l[_$_f736[17]].call(this,b,e,d,f,a)};l.all=function(){l[_$_f736[17]].call(this,0,0,this.options.columns.length-1,this.records.length-1)};l.getRange=function(e){if(!e&&(e=ea.getHighlighted.call(this),!e))return _$_f736[11];let c=I.getColumnNameFromCoords(e[0],e[1]);e=I.getColumnNameFromCoords(e[2],e[3]);let a=this.options.worksheetName;a=-1!==a.indexOf(_$_f736[187])?_$_f736[36]+a+_$_f736[188]:a+_$_f736[28];return c===e?a+
|
|
151
|
+
c:a+I.getRangeFromTokens(t.helpers.getTokensFromRange(c+_$_f736[189]+e))};return l}(),ca=function(){const l=function(b,d){this[b]=document.createElement(_$_f736[46]);this[b].classList.add(_$_f736[190]);this[b].setAttribute(_$_f736[191],d);this.element.appendChild(this[b]);_$_f736[192]in document.documentElement||(this[b].style.display=_$_f736[66])},e=function(b){b.borders=[];b.setBorder=e[_$_f736[17]];b.getBorder=e[_$_f736[70]];b.resetBorders=e.reset;b.refreshBorders=e.refresh};e[_$_f736[70]]=function(b){return this.borders[b]};
|
|
152
|
+
const c=function(b,d,f,g,h,k){if(!ea.isValid.call(this,b,d,f,g))return!1;let m=!1,n,r=null,p=null;var u=null,v=null;let w=null,z=this.firstCol;z&&(w=this.visibleCols[z-1]);let B=null;var D=this.firstRow;D&&(B=this.visibleRows[D-1]);h||(h=0);this.borders[h]?n=this.borders[h]:(n={},n.element=document.createElement(_$_f736[46]),n.element.classList.add(_$_f736[193]),h===_$_f736[143]||h===_$_f736[194]||h===_$_f736[183]?(n.element.classList.add(_$_f736[195]+h),n.color=_$_f736[11]):(n.color=k?k:jSuites.randomColor(!0),
|
|
153
|
+
n.element.style.backgroundColor=k+_$_f736[196],n.element.style.borderColor=k),h===_$_f736[183]&&(l.call(n,_$_f736[197],0),n.moveLeft.style.left=_$_f736[198],n.moveLeft.style.marginTop=_$_f736[199],n.moveLeft.style.marginLeft=_$_f736[199],l.call(n,_$_f736[200],1),n.moveTop.style.left=_$_f736[198],n.moveTop.style.marginTop=_$_f736[199],n.moveTop.style.marginLeft=_$_f736[199],l.call(n,_$_f736[201],2),n.moveRight.style.right=_$_f736[198],n.moveRight.style.marginTop=_$_f736[199],n.moveRight.style.marginRight=
|
|
154
|
+
_$_f736[199],l.call(n,_$_f736[202],3),n.moveDown.style.bottom=_$_f736[198],n.moveDown.style.marginLeft=_$_f736[199],n.moveDown.style.marginBottom=_$_f736[199]),this.content.appendChild(n.element));n.x1=b;n.y1=d;n.x2=f;n.y2=g;n.element.style.top=_$_f736[203];n.element.style.left=_$_f736[203];n.element.style.borderTopColor=n.color;n.element.style.borderBottomColor=n.color;n.element.style.borderLeftColor=n.color;n.element.style.borderRightColor=n.color;n.element.style.backgroundPositionX=_$_f736[11];
|
|
155
|
+
n.element.style.backgroundPositionY=_$_f736[11];n.active=0;k=this.visibleRows[D];let q=this.visibleRows[this.visibleRows.length-1],A=this.visibleCols[z];b>this.visibleCols[this.visibleCols.length-1]||d>q||f<this.visibleCols[0]||g<this.visibleRows[0]||b>w&&f<A||d>B&&g<k?m=!0:(S.isVisible.call(this,b)||(b=Sa.Right.call(this,b,d),n.element.style.borderLeftColor=_$_f736[204],n.element.style.backgroundPositionX=_$_f736[47]),S.isVisible.call(this,f)||(f=Sa.Left.call(this,f,g),n.element.style.borderRightColor=
|
|
156
|
+
_$_f736[204],n.element.style.backgroundPositionX=_$_f736[205]),V.isVisible.call(this,d)||(d=Sa.Down.call(this,b,d),n.element.style.borderTopColor=_$_f736[204],n.element.style.backgroundPositionY=_$_f736[206]),V.isVisible.call(this,g)||(g=Sa.Up.call(this,f,g),n.element.style.borderBottomColor=_$_f736[204],n.element.style.backgroundPositionY=_$_f736[207]),r=S.attached.call(this,b)?Z.element.call(this,b).offsetLeft:0,S.attached.call(this,f)?(p=Z.element.call(this,f).offsetLeft,p=p-r+S.width.call(this,
|
|
157
|
+
f)):(u=this.headerContainer.lastChild.getAttribute(_$_f736[76]),z&&f<u?(p=this.headerContainer.children[z-1].offsetLeft,p=p-r+S.width.call(this,w)):(p=this.headerContainer.lastChild.offsetLeft,p=p-r+S.width.call(this,u)),n.element.style.borderRightColor=_$_f736[204],n.element.style.backgroundPositionX=_$_f736[205]),r+=this.table.offsetLeft,u=V.attached.call(this,d)?this.rows[d].element.firstChild.offsetTop:0,V.attached.call(this,g)?(v=this.rows[g].element.firstChild.offsetTop,v=v-u+this.rows[g].element.firstChild.offsetHeight):
|
|
158
|
+
(this.tbody.lastChild?(v=this.tbody.lastChild.getAttribute(_$_f736[72]),D&&g<v?(v=this.tbody.children[D-1].firstChild.offsetTop,v=v-u+this.tbody.children[D-1].firstChild.offsetHeight):(v=this.tbody.lastChild.firstChild.offsetTop+this.tbody.lastChild.firstChild.offsetHeight-(this.thead.offsetHeight-3),v=v-u+this.tbody.lastChild.firstChild.offsetHeight)):v=0,n.element.style.borderBottomColor=_$_f736[204],n.element.style.backgroundPositionY=_$_f736[207]),u+=this.table.offsetTop,p++,v++,null!==w&&(D=
|
|
159
|
+
da.getWidth.call(this),b=b<=w,f=f<=w,b&&f||(b&&!f?(f=this.content.scrollLeft+D,f>r+p&&(p+=f-(r+p),n.element.style.borderRightColor=_$_f736[204],n.element.style.backgroundPositionX=_$_f736[205])):(f=this.content.scrollLeft+D,f>r&&(f-=r,f>p?r=u=-2E3:(r+=f,p-=f,n.element.style.borderLeftColor=_$_f736[204],n.element.style.backgroundPositionX=_$_f736[47]))))),null!==B&&(f=ia.getHeight.call(this),d=d<=B,g=g<=B,d&&g||(d&&!g?(g=this.content.scrollTop+f,g>u+v&&(v=v+(g-(u+v))-1,n.element.style.borderBottomColor=
|
|
160
|
+
_$_f736[204],n.element.style.backgroundPositionY=_$_f736[207])):(g=this.content.scrollTop+f,g>u&&(g-=u,g>v?r=u=-2E3:(u+=g,v-=g,n.element.style.borderTopColor=_$_f736[204],n.element.style.backgroundPositionY=_$_f736[206]))))),n.element.style.top=u+_$_f736[19],n.element.style.left=r+_$_f736[19],n.element.style.width=p+_$_f736[19],n.element.style.height=v+_$_f736[19],n.t=u,n.l=r,n.w=p,n.h=v,h===_$_f736[183]&&(n.moveLeft.style.top=n.h/2+_$_f736[19],n.moveRight.style.top=n.h/2+_$_f736[19],n.moveTop.style.left=
|
|
161
|
+
n.w/2+_$_f736[19],n.moveDown.style.left=n.w/2+_$_f736[19]),n.active=1);this.borders[h]=n;h===_$_f736[183]&&(m||n.element.style.borderBottomColor||n.element.style.borderRightColor?(this.corner.style.top=_$_f736[203],this.corner.style.left=_$_f736[203]):(this.corner.style.top=u+v-4+_$_f736[19],this.corner.style.left=r+p-4+_$_f736[19]),Xa.call(this,!0))},a=function(b,d){b.element.style.top=_$_f736[203];b.element.style.left=_$_f736[203];b.active=0;d&&(b.x1=null,b.y1=null,b.x2=null,b.y2=null)};e[_$_f736[17]]=
|
|
162
|
+
function(b,d,f,g,h,k){c.call(this,b,d,f,g,h,k);h===_$_f736[183]&&M.call(this,_$_f736[160],{x1:b,y1:d,x2:f,y2:g})};e.reset=function(b,d){b&&b!==_$_f736[183]||(this.corner.style.top=_$_f736[203],this.corner.style.left=_$_f736[203],Xa.call(this,!1));if(b)this.borders[b]&&a(this.borders[b],d);else{let f=Object.keys(this.borders);for(let g=0;g<f.length;g++)a(this.borders[f[g]],d)}b&&b!==_$_f736[183]||M.call(this,_$_f736[161])};e.refresh=function(b){var d=this.borders;if(b)d[b]&&null!=d[b].x1&&c.call(this,
|
|
163
|
+
d[b].x1,d[b].y1,d[b].x2,d[b].y2,b);else{b=Object.keys(d);for(let f=0;f<b.length;f++)d[b[f]]&&null!=d[b[f]].x1&&c.call(this,d[b[f]].x1,d[b[f]].y1,d[b[f]].x2,d[b[f]].y2,b[f])}this.edition&&(d=this.parent.input,ta.position.call(this,d.x,d.y))};e.destroy=function(b){if(this){let d=this.borders[b];d&&(d.element.remove(),delete this.borders[b])}};return e}(),aa=function(){return{build:function(){let l=this.length;for(let e=0;e<l;e++)if(!this[e].state){let c=this[e].group;if(0<c)for(let a=e+1;a<e+1+c;a++)this[a].visible=
|
|
164
|
+
!1}},getConfig:function(l){let e=[],c=[],a=l.length;for(let b=0;b<a;b++){let d=l[b].group;if(0<d){let f={index:b,config:l[b],oldValue:l[b].group,newValue:l[b].group};e.push(f);for(let g=b;g<=b+d;g++)c[g]||(c[g]=[]),c[g].push(f)}}return e.length?{state,distribution}:!1},setConfig:function(l,e,c){let a=this.options.columns,b=Ga;c&&(a=this.rows,b=Ua);if(l)for(l.sort(function(d,f){return d.newValue-f.newValue}),c=0;c<l.length;c++)if(l[c].newValue!==l[c].oldValue){let d,f;e?(d=a.indexOf(l[c].config),f=
|
|
165
|
+
l[c].newValue):(d=l[c].index,f=l[c].oldValue);0<=d&&b[_$_f736[17]].call(this,d,f,!0,!0)}},updateConfig:function(l,e,c,a){if(l){let b=l[e];c?l.splice(e,0,void 0):l[e]=null;if(b){let d=[];for(let f=0;f<b.length;f++){let g=b[f];c?l[e-1]&&-1!==l[e-1].indexOf(g)&&(g.newValue++,d.push(g)):(g.config===a?g.newValue=0:g.newValue--,d.push(g))}c&&d.length&&(l[e]=d)}return!0}}}}(),Ga=function(){const l=function(c,a){let b=this.options.columns;if(b[c].group){let f=a?_$_f736[180]:_$_f736[179];a&&(b[c].state=!0);
|
|
166
|
+
var d=c+1;let g=d+b[c].group,h=[];for(;d<g;d++)if(b[d]){h.push(d);b[d].group&&(b[d].state=b[c].state,e.icon.call(this,d));if(this.colgroup[d])this.colgroup[d].classList[f](_$_f736[208]);a?delete b[d].parentGroup:b[d].parentGroup=!0}S.visibility.call(this,b[c].state,h);e.icon.call(this,c);if(this.colgroup[c])this.colgroup[c].classList[f](_$_f736[209])}},e=function(c){c.setColumnGroup=c.resetColumnGroup=e[_$_f736[17]];c.openColumnGroup=e.setState.bind(c,!0);c.closeColumnGroup=e.setState.bind(c,!1)};
|
|
167
|
+
e[_$_f736[17]]=function(c,a,b,d){let f=this.options.columns[c],g=f.group,h=f.state;if(g&&(f.state=!0,l.call(this,c,!0),!a)){let k=Z.element.call(this,c);k&&(k=k.children[0])&&k.remove();delete f.group;delete f.state}a&&(f.group=a,f.state=!!b,l.call(this,c));d||K.call(this.parent,{worksheet:this,action:_$_f736[129],column:c,numOfItems:a,oldValue:g,oldState:h});M.call(this,_$_f736[129],{column:c,numOfItems:a});H.call(this.parent,_$_f736[210],this,c,a)};e.icon=function(c){let a=null,b=this,d=Z.element.call(this,
|
|
168
|
+
c),f=this.options.columns[c];d&&(a=d.children[0],a||(a=document.createElement(_$_f736[211]),a.classList.add(_$_f736[212]),a.onclick=function(){let g=parseInt(this.parentNode.getAttribute(_$_f736[76]));e.setState.call(b,!f.state,g)},d.appendChild(a)),a.textContent=f.state?_$_f736[180]:_$_f736[179])};e.setState=function(c,a){let b=this.options.columns[a];b&&b.group&&(b.state=c,l.call(this,a),K.call(this.parent,{worksheet:this,action:c?_$_f736[130]:_$_f736[131],column:a}),M.call(this,c?_$_f736[130]:
|
|
169
|
+
_$_f736[131]),H.call(this.parent,c?_$_f736[213]:_$_f736[214],this,a))};e.build=function(){aa.build.call(this.options.columns)};e.open=function(c){for(let a=0;a<c.length;a++)l.call(this,c[a])};e.updateDom=l;return e}(),Ua=function(){const l=function(c,a){let b=this.rows;if(b[c].group){let f=a?_$_f736[180]:_$_f736[179];a&&(b[c].state=!0);var d=c+1;let g=d+b[c].group,h=[];for(;d<g;d++)if(b[d]){h.push(d);b[d].group&&(b[d].state=b[c].state,e.icon.call(this,d));if(b[d].element)b[d].element.classList[f](_$_f736[208]);
|
|
170
|
+
a?delete b[d].parentGroup:b[d].parentGroup=!0}V.visibility.call(this,b[c].state,h);e.icon.call(this,c);if(b[c].element)b[c].element.classList[f](_$_f736[209])}},e=function(c){c.setRowGroup=c.resetRowGroup=e[_$_f736[17]];c.openRowGroup=e.setState.bind(c,!0);c.closeRowGroup=e.setState.bind(c,!1)};e[_$_f736[17]]=function(c,a,b){let d=this.rows[c],f=d.group,g=d.state;if(f&&(l.call(this,c,!0),!a)){if(d.element){let h=d.element.firstChild.children[0];h&&h.remove()}delete d.group;delete d.state}a&&(d.group=
|
|
171
|
+
a,d.state=!!b,l.call(this,c));K.call(this.parent,{worksheet:this,action:_$_f736[126],row:c,numOfItems:a,oldValue:f,oldState:g});M.call(this,_$_f736[126],{row:c,numOfItems:a});H.call(this.parent,_$_f736[215],this,c,a)};e.icon=function(c){let a=this.rows[c];if(a.element){let b=this;c=a.element.firstChild.children[0];c||(c=document.createElement(_$_f736[211]),c.classList.add(_$_f736[212]),c.onclick=function(){e.setState.call(b,!a.state,a.y)},a.element.firstChild.appendChild(c));c.textContent=a.state?
|
|
172
|
+
_$_f736[180]:_$_f736[179]}};e.setState=function(c,a){let b=this.rows[a];b&&b.group&&(b.state=c,l.call(this,a),K.call(this.parent,{worksheet:this,action:c?_$_f736[127]:_$_f736[128],row:a}),M.call(this,c?_$_f736[127]:_$_f736[128]),H.call(this.parent,c?_$_f736[216]:_$_f736[217],this,a))};e.build=function(){aa.build.call(this.rows)};e.open=function(c){for(let a=0;a<c.length;a++)l.call(this,c[a])};e.updateDom=l;return e}(),Na=function(){const l={start:function(e){if(!U.call(this.parent,this))return!1;
|
|
173
|
+
if(null!==e.target.getAttribute(_$_f736[72])){var c=e.target.getAttribute(_$_f736[72]);l.event={y:parseInt(c),h:e.target.offsetHeight,p:e.pageY}}else null!==e.target.getAttribute(_$_f736[76])&&(c=e.target.getAttribute(_$_f736[76]),l.event={x:parseInt(c),w:e.target.offsetWidth,p:e.pageX})},end:function(){let e=[];if(null!=l.event.y){var c=parseInt(this.rows[l.event.y].element.offsetHeight),a=this.getSelectedRows(),b=a.indexOf(parseInt(l.event.y));if(a.length&&-1<b)for(var d=0;d<a.length;d++)e.push(V.height.call(this,
|
|
174
|
+
a[d]));else a=[];-1===b?(a.push(l.event.y),e.push(l.event.h)):e[b]=l.event.h;this.setHeight(a,c,e)}else if(null!=l.event.x&&(c=parseInt(this.colgroup[l.event.x].getAttribute(_$_f736[218])),l.event.w!==c)){a=this.getSelectedColumns();b=a.indexOf(parseInt(l.event.x));if(a.length&&-1<b)for(d=0;d<a.length;d++)e.push(S.width.call(this,a[d]));else a=[];-1===b?(a.push(l.event.x),e.push(l.event.w)):e[b]=l.event.w;this.setWidth(a,c,e)}l.event=null},update:function(e){null!=l.event.y?(e=e.pageY-l.event.p,0<
|
|
175
|
+
l.event.h+e&&(this.rows[l.event.y].element.style.height=l.event.h+e+_$_f736[19],this.refreshBorders())):null!=l.event.x&&(e=e.pageX-l.event.p,0<l.event.w+e&&(this.colgroup[l.event.x].setAttribute(_$_f736[218],l.event.w+e),this.options.columns[l.event.x].width=l.event.w+e),this.options.freezeColumns&&da.refresh.call(this),this.refreshBorders())},cancel:function(){l.end.call(this)}};return l}(),Da=function(){const l={start:function(e,c){if(U.call(this.parent,this)){this.resetSelection();let b=this.parent.helper;
|
|
176
|
+
if(c)if(e=parseInt(e.target.getAttribute(_$_f736[76])),this.merged.cols[e])console.error(_$_f736[224]);else{l.event={x:e,d:e};c=Z.element.call(this,e);c.classList.add(_$_f736[221]);for(var a=0;a<this.tbody.children.length;a++){let d=this.tbody.children[a].getAttribute(_$_f736[72]);this.records[d][e].element.classList.add(_$_f736[221])}e=this.parent.element.getBoundingClientRect();c=c.getBoundingClientRect();a=this.content.getBoundingClientRect();b.style.display=_$_f736[39];b.style.top=a.top-e.top+
|
|
177
|
+
_$_f736[19];b.style.left=c.left-a.left+_$_f736[19];b.style.width=_$_f736[222];b.style.height=a.height+_$_f736[19];b.classList.add(_$_f736[225])}else e=parseInt(e.target.getAttribute(_$_f736[72])),this.merged.rows[e]?console.error(_$_f736[219]):this.results?console.error(_$_f736[220]):(l.event={y:e,d:e},this.rows[e].element.classList.add(_$_f736[221]),c=this.parent.element.getBoundingClientRect(),e=this.rows[e].element.getBoundingClientRect(),b.style.display=_$_f736[39],b.style.top=e.top-c.top+_$_f736[19],
|
|
178
|
+
b.style.left=_$_f736[222],b.style.width=this.content.offsetWidth+_$_f736[19],b.style.height=_$_f736[222],b.classList.add(_$_f736[223]))}else return!1},end:function(){if(null!=l.event.y)this.rows[l.event.y].element.classList.remove(_$_f736[221]),null!=l.event.d&&l.event.y!==l.event.d&&this.moveRow(l.event.y,l.event.d),this.parent.helper.classList.remove(_$_f736[223]);else if(null!=l.event.x){Z.element.call(this,l.event.x).classList.remove(_$_f736[221]);for(let e=0;e<this.tbody.children.length;e++){let c=
|
|
179
|
+
this.tbody.children[e].getAttribute(_$_f736[72]);this.records[c][l.event.x].element.classList.remove(_$_f736[221])}null!=l.event.d&&l.event.x!==l.event.d&&(this.moveColumn(l.event.x,l.event.d),this.refreshBorders());this.parent.helper.classList.remove(_$_f736[225])}this.parent.helper.style.display=_$_f736[11];l.event=null},cancel:function(){l.event.d=null;l.end.call(this)},update:function(e){if(null!=l.event.y){var c=e.target.getAttribute(_$_f736[72]);if(null!=c){var a=c=parseInt(c);(e=e.target.clientHeight/
|
|
180
|
+
2>e.offsetY)?l.event.y<c&&(a=c-1):l.event.y>c&&(a=c+1);var b=!1;this.merged.rows[a]&&(l.event.y>a?this.merged.rows[a-1]&&(b=!0):this.merged.rows[a+1]&&(b=!0));b||(l.event.d=a,a=this.parent.element.getBoundingClientRect(),c=this.rows[c].element.getBoundingClientRect(),this.parent.helper.style.top=(e?c.top:c.bottom)-a.top+_$_f736[19])}}else a=e.target.getAttribute(_$_f736[76]),null!=a&&(b=a=parseInt(a),(c=e.target.clientWidth/2>e.offsetX)?l.event.x<a&&(b=a-1):l.event.x>a&&(b=a+1),e=!1,this.merged.cols[b]&&
|
|
181
|
+
(l.event.x>b?this.merged.cols[b-1]&&(e=!0):this.merged.cols[b+1]&&(e=!0)),e||(l.event.d=b,e=Z.element.call(this,a).getBoundingClientRect(),a=this.content.getBoundingClientRect(),this.parent.helper.style.left=(c?e.left:e.right)-a.left+_$_f736[19]))}};return l}(),ra=function(){const l=function(g,h){let k=this.records[h][g];var m=k.mergeCells;if(m){let n=parseInt(m[0]);m=parseInt(m[1]);if(1<n)for(let r=0;r<n;r++)this.merged.cols[g+r]||(this.merged.cols[g+r]=[]),this.merged.cols[g+r].push(k);if(1<m)for(g=
|
|
182
|
+
0;g<m;g++)this.merged.rows[h+g]||(this.merged.rows[h+g]=[]),this.merged.rows[h+g].push(k);k.merged||c.call(this,k)}},e=function(g,h,k){let m=this.records[k][h];m.element||Q[_$_f736[70]].call(this,h,k);m.merged=[g,O.call(this,h,k),m.element.textContent];m.element.classList.add(_$_f736[87]);m.element.textContent=_$_f736[11];O.call(this,h,k,_$_f736[11])},c=function(g){if(g.mergeCells){let k=g.mergeCells[0],m=g.mergeCells[1],n=g.x,r=g.y;var h=Q[_$_f736[70]].call(this,n,r);if(h)for(h.classList.remove(_$_f736[87]),
|
|
183
|
+
h.style.display=_$_f736[11],1<k?h.setAttribute(_$_f736[228],k):h.removeAttribute(_$_f736[228]),1<m?h.setAttribute(_$_f736[229],m):h.removeAttribute(_$_f736[229]),h=0;h<m;h++)for(let p=0;p<k;p++){let u=this.records[r+h][n+p];u&&(0===p&&0===h?u.merged=[g]:e.call(this,g,n+p,r+h))}}},a=function(g,h){let k,m;if(g.mergeCells){let n=g.mergeCells[0],r=g.mergeCells[1],p=g.x,u=g.y;for(m=0;m<r;m++)for(k=0;k<n;k++){let v=this.records[u+m][p+k];v&&(0===k&&0===m?(v.element.removeAttribute(_$_f736[228]),v.element.removeAttribute(_$_f736[229])):
|
|
184
|
+
(v.element.classList.remove(_$_f736[87]),!0===h&&v.merged&&(O.call(this,p+k,u+m,v.merged[1]),v.element.innerHTML=v.merged[2]),delete v.merged))}delete g.merged;delete g.mergeCells}},b=function(g,h,k){let m=_$_f736[230],n=_$_f736[231];k&&(m=_$_f736[232],n=_$_f736[233]);for(let p=0;p<g.length;p++){let u=this.merged[n][g[p]];if(typeof u!==_$_f736[12])for(let v=0;v<u.length;v++)if(!h[_$_f736[70]](u[v])){var r=u[v][m];let w=r+u[v].mergeCells[k],z=[];for(;r<w;r++)z.push(r);h[_$_f736[17]](u[v],z);b.call(this,
|
|
185
|
+
z,h,k)}}},d=function(g){for(let h=0;h<g.length;h++)this[_$_f736[17]](g[h],!0)},f=function(g){g.getMerge=f[_$_f736[70]];g.setMerge=f[_$_f736[17]];g.isMerged=f.is;g.isRowMerged=f.isRowMerged;g.isColumnMerged=f.isColumnMerged;g.removeMerge=f.remove;g.destroyMerge=f.destroy};f.is=function(g,h){return this.records[h][g].merged?this.records[h][g].merged[0]:!1};f.isRowMerged=function(g){return this.merged&&this.merged.rows[g]};f.isColumnMerged=function(g){return this.merged&&this.merged.cols[g]};f.updateConfig=
|
|
186
|
+
function(g,h,k){if(this.merged&&this.merged[g]){let n=g===_$_f736[231]?0:1,r=this.merged[g][h];k?this.merged[g].splice(h,0,void 0):this.merged[g][h]=null;if(r){let p=[];for(let u=0;u<r.length;u++){let v=r[u],w=v.mergeCells;if(k){if(this.merged[g][h-1]&&-1!==this.merged[g][h-1].indexOf(v)){w[n]++;if(n)for(var m=v.x;m<v.x+w[0];m++)e.call(this,v,m,h);else for(m=v.y;m<v.y+w[1];m++)e.call(this,v,h,m);p.push(v)}}else if(w[n]--,1===n&&v.y===h||0===n&&v.x===h){let z;m=v;let B=m.mergeCells;z=n?this.records[m.y+
|
|
187
|
+
1][m.x]:this.records[m.y][m.x+1];for(let D=m.y;D<m.y+B[1];D++)for(let q=m.x;q<m.x+B[0];q++)this.records[D][q].merged[0]=z;z.mergeCells=B;z.element.classList.remove(_$_f736[87]);z.element.setAttribute(_$_f736[228],B[0]);z.element.setAttribute(_$_f736[229],B[1])}v.element&&v.element.setAttribute(g+_$_f736[234],w[n])}k&&p.length&&(this.merged[g][h]=p)}}};f.expand=function(g,h){let k=new Map;b.call(this,g,k,h);if(k.size){let m=new Map;d.call(m,g);k.forEach(function(r){d.call(m,r)});let n=[];m.forEach(function(r,
|
|
188
|
+
p){n.push(p)});return n}return!1};f[_$_f736[70]]=function(g){return Q.extractConfiguration.call(this,g,_$_f736[235])};f[_$_f736[17]]=function(g,h,k){if(!U.call(this.parent,this))return!1;let m={},n={},r={};typeof g==_$_f736[10]?r[g]=[h,k]:typeof g==_$_f736[18]?r=g:((g=this.getHighlighted())?g=[I.getColumnNameFromCoords(g[0],g[1]),g[2]-g[0]+1,g[3]-g[1]+1]:(Fa.call(this.parent,F(_$_f736[226])),g=!1),g&&(r[g[0]]=[g[1],g[2]]));g=Object.keys(r);if(g.length){for(let z=0;z<g.length;z++){let B,D;var p=void 0;
|
|
189
|
+
h=g[z];k=r[g[z]][0];var u=r[g[z]][1],v=n,w=m;k=parseInt(k);u=parseInt(u);if((!k||2>k)&&(!u||2>u))console.log(F(_$_f736[227])+_$_f736[189]+h);else{let q=I.getCoordsFromColumnName(h);for(B=q[1];B<q[1]+u;B++)for(D=q[0];D<q[0]+k;D++)if(p=this.records[B][D],p=p.merged){let A=I.getColumnNameFromCoords(p[0].x,p[0].y);p[0].mergeCells&&(w[A]=[p[0].mergeCells[0],p[0].mergeCells[1]],a.call(this,p[0],!0))}w=this.records[q[1]][q[0]];w.mergeCells=[k,u];v[h]=w.mergeCells;c.call(this,w)}}Object.keys(n).length&&(f.build.call(this),
|
|
190
|
+
L.update.call(this),ea.refresh.call(this),ca.refresh.call(this),K.call(this.parent,{worksheet:this,action:_$_f736[106],newValue:n,oldValue:m}),M.call(this,_$_f736[106],[n]),H.call(this.parent,_$_f736[236],this,n,m))}};f.remove=function(g){if(!U.call(this.parent,this))return!1;let h={},k={};var m={};typeof g==_$_f736[10]?m[g]=!0:typeof g==_$_f736[18]&&(m=g);g=Object.keys(m);for(m=0;m<g.length;m++){var n=I.getCoordsFromColumnName(g[m]);n=this.records[n[1]][n[0]];let r=n.merged;n&&(h[g[m]]=[r[0].mergeCells[0],
|
|
191
|
+
r[0].mergeCells[1]],k[g[m]]=!0,a.call(this,r[0],!0))}f.build.call(this);K.call(this.parent,{worksheet:this,action:_$_f736[107],newValue:k,oldValue:h});M.call(this,_$_f736[107],{data:k})};f.destroy=function(){let g=f[_$_f736[70]].call(this);f.remove.call(this,g,!0)};f.build=function(g){this.merged={cols:[],rows:[]};if(g){g=Object.keys(g);for(var h=0;h<g.length;h++){var k=I.getCoordsFromColumnName(g[h]);l.call(this,k[0],k[1])}}else for(g=this.rows.length,h=this.options.columns.length,k=0;k<g;k++)for(let m=
|
|
192
|
+
0;m<h;m++)l.call(this,m,k)};return f}(),Z=function(){const l=function(c,a,b){let d=a;a.childNodes[0]&&(d=a.childNodes[0]);d.textContent=b.title||I.getColumnName(c);b.title?a.setAttribute(_$_f736[237],b.title):a.removeAttribute(_$_f736[237])},e=function(c){c.getHeader=e[_$_f736[70]];c.setHeader=e[_$_f736[17]];c.getHeaders=e.all;c.showHeaders=e.show;c.hideHeaders=e.hide};e[_$_f736[70]]=function(c){let a=this.options.columns;if(a)return a[c].title||I.getColumnName(c)};e.all=function(c){let a=[];for(let b=
|
|
193
|
+
0;b<this.options.columns.length;b++)a.push(e[_$_f736[70]].call(this,b));return c?a:a.join(this.options.csvDelimiter)};e[_$_f736[17]]=function(c,a){if(!U.call(this.parent,this))return!1;let b=this.options.columns[c];if(b){let d=e[_$_f736[70]].call(this,c);if(typeof a===_$_f736[12]&&(a=prompt(F(_$_f736[238]),d),!a))return!1;b.title=a;let f=e.element.call(this,c);f&&l(c,f,b);K.call(this.parent,{worksheet:this,action:_$_f736[112],column:c,oldValue:d,newValue:a});M.call(this,_$_f736[112],{column:c,title:a});
|
|
194
|
+
za.names.call(this);H.call(this.parent,_$_f736[239],this,c,a,d)}};e.create=function(c){let a=e.element.call(this,c);if(a)return a;a=document.createElement(_$_f736[240]);a.classList.add(_$_f736[241]);a.setAttribute(_$_f736[76],c);let b=document.createElement(_$_f736[242]);this.headers[c]=a;this.colgroup[c]=b;this.options.nestedHeaders&&(a.style.top=this.headerContainer.offsetTop+_$_f736[19]);e.applyProperties.call(this,c);H.call(this.parent,_$_f736[243],this,c,a,this.options.columns[c]);return a};
|
|
195
|
+
e.element=function(c){return this.headers[c]};e.applyProperties=function(c){let a=this.options.columns[c],b=a.width||this.options.defaultColWidth,d=e.element.call(this,c);a.align&&d.classList.add(_$_f736[244]+a.align);l(c,d,a);a.tooltip&&(d.title=a.tooltip);let f=this.options.filters;!0===a.filter&&(f=!0);!1===a.filter&&(f=!1);!0===f&&d.classList.add(_$_f736[245]);if(!1===a.visible||a.type===_$_f736[147])a.visible=!1,this.colgroup[c].classList.add(_$_f736[246]);this.colgroup[c].setAttribute(_$_f736[218],
|
|
196
|
+
b);a.group&&(Ga.icon.call(this,c),this.colgroup[c].classList.add(_$_f736[209]));a.parentGroup&&this.colgroup[c].classList.add(_$_f736[208])};e.show=function(){this.thead.style.visibility=_$_f736[11]};e.hide=function(){this.thead.style.visibility=_$_f736[247]};return e}(),ma=function(){const l=function(c,a,b){var d=this.footers.content;if(d&&d[a]&&d[a][c]&&(d=d[a][c].element)){!0===this.parent.config.parseFormulas&&ba(b)&&(b=Y.execute.call(this,b,c,null,!1,!1,!1));if(this.options.applyMaskOnFooters){let f=
|
|
197
|
+
ta[_$_f736[70]].call(this,c);b=Q.applyFormat(d,b,f[1])}d.textContent=b;H.call(this.parent,_$_f736[248],this,c,a,b,d)}},e=function(c){c.getFooter=e[_$_f736[70]];c.setFooter=e[_$_f736[17]];c.resetFooter=e.reset;c.refreshFooter=e.refresh;c.getFooterValue=e.value;c.setFooterValue=e.value};e[_$_f736[70]]=function(){return this.options.footers};e[_$_f736[17]]=function(c){let a;c&&(a=this.options.footers,this.options.footers=c);this.options.footers!==a&&(ma.build.call(this),e.render.call(this),M.call(this,
|
|
198
|
+
_$_f736[249],{data:this.options.footers}),H.call(this.parent,_$_f736[250],this,this.options.footers,a))};e.refresh=function(){let c=this.options.footers;if(c&&c.length)for(let a=0;a<c.length;a++)for(let b=0;b<c[a].length;b++)l.call(this,b,a,c[a][b])};e.value=function(c,a,b){if(typeof b===_$_f736[12])return this.options.footers[a][c];l.call(this,c,a,b);M.call(this,_$_f736[251],{x:c,y:a,value:b});H.call(this.parent,_$_f736[252],this,c,a,b)};e.reset=function(){let c=this.options.footers;this.options.footers=
|
|
199
|
+
null;this.footers.content=null;this.tfoot.innerHTML=_$_f736[11];M.call(this,_$_f736[253],{});H.call(this.parent,_$_f736[250],this,null,c)};e.create=function(c,a){var b=this.footers.content[a][c];if(b&&b.element)return b.element;b=this.options.footers;b=b[a]&&typeof b[a][c]!==_$_f736[12]?b[a][c]:_$_f736[11];let d=this.footers.content[a][c]={feature:_$_f736[254],x:c,y:a,v:b},f=this.options.columns[c].align;d.element=document.createElement(_$_f736[240]);d.element.setAttribute(_$_f736[76],c);d.element.setAttribute(_$_f736[72],
|
|
200
|
+
a);d.element.classList.add(_$_f736[255]);f&&d.element.classList.add(_$_f736[244]+f);l.call(this,c,a,b);return d.element};e.build=function(){this.footers={element:this.tfoot,content:[]};if(this.options.footers){this.tfoot.innerHTML=_$_f736[11];for(let a=0;a<this.options.footers.length;a++){if(!this.footers.content[a]){this.footers.content[a]=[];var c=document.createElement(_$_f736[256]);let b=document.createElement(_$_f736[240]);b.innerHTML=_$_f736[257];c.appendChild(b);this.footers.element.appendChild(c)}for(c=
|
|
201
|
+
0;c<this.options.columns.length;c++)typeof this.options.footers[a][c]===_$_f736[12]&&(this.options.footers[a][c]=_$_f736[11]),this.footers.content[a][c]||(this.footers.content[a][c]={})}}};e.render=function(){let c=this.options.footers;for(let a=0;a<c.length;a++)for(let b=0;b<c[a].length;b++){let d=ma.create.call(this,b,a);this.tfoot.children[a].appendChild(d)}};e.updateConfig=function(c,a){let b=this.options.footers;if(b){let f=this.footers.content;if(a)for(a=0;a<b.length;a++)for(var d=0;d<c.length;d++)b[a].splice(c[d],
|
|
202
|
+
0,_$_f736[11]),f[a].splice(c[d],0,{}),e.create.call(this,c[d],a);else for(a=0;a<b.length;a++){for(d=0;d<c.length;d++)b[a][c[d]]=null,f[a][c[d]]=null;b[a]=la.call(b[a]);f[a]=la.call(f[a])}}};e.setValue=l;return e}(),Ba=function(){const l=function(c,a,b){let d=this.options.nestedHeaders[a][c],f=this.nested.content[a][c].element;c={x:c,y:a,properties:{title:f.textContent,tooltip:f.title,colspan:f.getAttribute(_$_f736[228])}};typeof b.title!==_$_f736[12]&&(f.textContent=b.title);typeof b.tooltip!==_$_f736[12]&&
|
|
203
|
+
(f.title=b.tooltip);typeof b.colspan!==_$_f736[12]&&(d.colspan=b.colspan,f.setAttribute(_$_f736[228],b.colspan),f.style.display=d.colspan?_$_f736[11]:_$_f736[66]);return c},e=function(c){c.getNestedCell=e.getCell;c.setNestedCell=e.setCell;c.setNestedHeaders=e[_$_f736[17]];c.getNestedHeaders=e[_$_f736[70]];c.resetNestedHeaders=e.reset};e[_$_f736[70]]=function(){return this.options.nestedHeaders};e[_$_f736[17]]=function(c){e.reset.call(this);this.options.nestedHeaders=c;e.build.call(this);L.refresh.call(this);
|
|
204
|
+
ca.refresh.call(this);M.call(this,_$_f736[258],{data:c});H.call(this.parent,_$_f736[259],this,c)};e.reset=function(){let c=[],a=this.thead.children;this.options.nestedHeaders=null;for(let b=0;b<a.length;b++)a[b].classList.contains(_$_f736[260])&&c.push(a[b]);if(c.length)for(;a=c.shift();)a.remove();this.nested=null;L.refresh.call(this);ca.refresh.call(this);M.call(this,_$_f736[261]);H.call(this.parent,_$_f736[259],this,[])};e.getCell=function(c,a){return this.nested.content[a][c].element};e.setCell=
|
|
205
|
+
function(c,a,b){if(!U.call(this.parent,this))return!1;var d=[];let f=[];if(Array.isArray(c)){for(d=0;d<c.length;d++){let g=c[d];f.push(l.call(this,g.x,g.y,g.properties))}d=c}else f.push(l.call(this,c,a,b)),d.push({x,y,properties});K.call(this.parent,{worksheet:this,action:_$_f736[132],value:d,oldValue:f});M.call(this,_$_f736[132],c,a,b);H.call(this.parent,_$_f736[262],this,c,a,b)};e.range=function(c){c=this.options.nestedHeaders[c];let a=[],b=0;for(let d=0;d<c.length;d++){let f=parseInt(c[d].colspan);
|
|
206
|
+
a[d]=[b,b+f-1];b+=f}return a};e.getColumns=function(c){c=this.options.nestedHeaders[c];let a=[];for(let b=0;b<c.length;b++){let d=c[b].colspan;for(let f=0;f<d;f++)a.push(b)}return a};e.getAffected=function(c){let a=[],b=this.options.nestedHeaders;if(b)for(let d=0;d<b.length;d++){let f=e.getColumns.call(this,d);if(f&&typeof f[c]!==_$_f736[12]){let g=e.range.call(this,d);for(let h=g[f[c]][0];h<=g[f[c]][1];h++)a.push(h)}}return a};e.create=function(c,a){if(this.nested.content[a][c])return this.nested.content[a][c].element;
|
|
207
|
+
let b=this.options.nestedHeaders[a][c]||{},d=this.nested.content[a][c]={};b.colspan||(b.colspan=1);b.align||(b.align=_$_f736[263]);b.title||(b.title=_$_f736[11]);let f=document.createElement(_$_f736[240]);f.setAttribute(_$_f736[264],c);f.setAttribute(_$_f736[265],a);f.setAttribute(_$_f736[228],b.colspan);f.setAttribute(_$_f736[266],b.align);f.innerHTML=b.title;b.tooltip&&(f.title=b.tooltip);return d.element=f};e.build=function(){this.nested||(this.nested={content:[],height:[]});let c=0;var a=this.options.nestedHeaders;
|
|
208
|
+
if(a){for(var b=0;b<a.length;b++){this.nested.content[b]=[];let d=document.createElement(_$_f736[240]);d.innerHTML=_$_f736[257];let f=document.createElement(_$_f736[256]);f.classList.add(_$_f736[260]);f.appendChild(d);this.thead.insertBefore(f,this.headerContainer)}for(a=0;a<this.thead.children.length;a++)this.nested.height[a]=c,this.thead.children[a].firstChild.style.top=c+_$_f736[19],c+=this.thead.children[a].offsetHeight;c=this.thead.offsetHeight-this.headerContainer.offsetHeight;for(a=0;a<this.options.columns.length;a++)if(b=
|
|
209
|
+
Z.element.call(this,a))b.style.top=c+_$_f736[19]}};e.updateConfig=function(c,a){let b=this.options.nestedHeaders;if(b){let g=[],h=[];for(let k=0;k<b.length;k++){var d=e.getColumns.call(this,k);if(d){h[k]=[];for(var f=0;f<c.length;f++){let m=d[c[f]];typeof m!==_$_f736[12]&&(typeof h[k][m]==_$_f736[12]&&(h[k][m]=b[k][m].colspan),a?b[k][m].colspan++:b[k][m].colspan--)}d=Object.keys(h[k]);for(f=0;f<d.length;f++)g.push({x:d[f],y:k,properties:{colspan:b[k][d[f]].colspan}})}}g.length&&e.setCell.call(this,
|
|
210
|
+
g)}};return e}(),fa=function(){const l=function(b,d,f,g){ba(b)?b=Y.shiftFormula(b,d,f):g&&(b=jSuites.calendar.dateToNum(b),0>d||0>f?b--:b++,b=jSuites.calendar.numToDate(b));return b},e=function(b,d,f){if(1===b.length){if(1<d||t.formula&&typeof t.formula.TREND!==_$_f736[14])f?b[0]--:b[0]++;return b}d=1;f=[];let g=[];for(var h=0;h<b.length;h++)g.push(d++);for(h=0;h<b.length;h++)f.push(d++);return t.formula&&typeof t.formula.TREND==_$_f736[14]?t.formula.TREND(b,g,f):b},c=function(b,d,f,g,h){let k=[];
|
|
211
|
+
var m=null;let n=[];for(let r=0;r<b.length;r++){if(jSuites.isNumeric(b[r])&&(k.push(b[r]),jSuites.isNumeric(b[r+1])))continue;k.length?(m=e(k,b.length,g),Array.isArray(m)?(m.forEach(function(p){n.push(p)}),k=[]):n.push(m)):(m=typeof h!==_$_f736[12]&&this.options.columns[h].type===_$_f736[267]?!0:!1,g&&(d*=-1,f*=-1),m=l(b[r],d*b.length,f*b.length,m),n.push(m))}return n},a=function(b,d){b=parseInt(b);d=parseInt(d);var f=this.getHighlighted();let g=f[0],h=f[1],k=f[2];f=f[3];var m;if(null!=b&&null!=d){if(0<
|
|
212
|
+
b-k){a:{var n=parseInt(k)+1;for(m=d;n<this.options.columns.length;n++)if(this.records[m][n].element&&!this.records[m][n].element.classList.contains(_$_f736[87])){m=n;break a}m=this.options.columns-1}n=b}else{m=b;a:{var r=parseInt(g)-1;for(n=d;0<=r;r--)if(this.records[n][r].element&&!this.records[n][r].element.classList.contains(_$_f736[87])){n=r;break a}n=0}}if(0<d-f){a:{var p=parseInt(f);(r=this.results)?p=r.indexOf(p):r=this.rows;p++;for(var u=p;u<r.length;u++)if(p=this.results?r[u]:u,this.rows[p]&&
|
|
213
|
+
this.rows[p].element){r=p;break a}r=r[r.length-1]}p=d}else a:{r=d,u=parseInt(h);(p=this.results)?u=p.indexOf(u):p=this.rows;u--;for(let v=u;0<=v;v--)if(u=this.results?p[v]:v,this.rows[u]&&this.rows[u].element){p=u;break a}p=0}Math.abs(b-k)>Math.abs(d-f)?(r=parseInt(h),p=parseInt(f)):(m=parseInt(g),n=parseInt(k));this.setBorder(m,r,n,p,_$_f736[194])}};a.execute=function(b){if(!U.call(this.parent,this))return!1;let d=this.getHighlighted(),f=Ya[_$_f736[70]].call(this,d,!1,!1);var g=!0;let h=!1,k=!1;
|
|
214
|
+
var m=this.borders.cloning;let n,r,p=0,u=0;if(b)if(m&&m.active)b=m.x1,n=m.y1,r=m.x2,m=m.y2,d[0]==b?(h=!0,d[1]>n&&(k=!0)):d[0]>b&&(k=!0);else return this.resetBorders(_$_f736[194],!0),!1;else if(m=this.getSelected(),m.length)for(h=!0,b=m[0].x,r=m[m.length-1].x,n=parseInt(m[m.length-1].y)+1,m=parseInt(m[m.length-1].y);!0===g;){if(this.options.data[m+1]){let G=this.options.data[m+1],E=Wa.call(this,G,b-1),N=Wa.call(this,G,r+1);E===_$_f736[11]&&N===_$_f736[11]&&(g=!1);for(p=b;p<=r;p++)Wa.call(this,G,p)&&
|
|
215
|
+
(g=!1)}else g=!1;g&&m++}else return this.resetBorders(_$_f736[194],!0),!1;let v=Q.getFromSelection.call(this,d,_$_f736[268]),w=Q.getFromSelection.call(this,d,_$_f736[269]),z=0,B=0,D=[],q=[],A=!0,C=this;if(h)for(g=function(){q.push({x:p,y:u,value:D[B],style:v[B][z],options:w[B][z]});B++;typeof f[B]===_$_f736[12]&&(B=0,A&&(D=c.call(C,D,0,1,k,p)))},p=b;p<=r;p++){A=typeof this.options.columns[p].autoIncrement!==_$_f736[12]?this.options.columns[p].autoIncrement:this.parent.config.autoIncrement;B=0;D=[];
|
|
216
|
+
for(u=0;u<f.length;u++)D.push(f[u][z]);k&&D.reverse();A&&(D=c.call(C,D,0,1,k,p));if(k)for(u=m;u>=n;u--)g();else for(u=n;u<=m;u++)g();z++}else for(A=this.parent.config.autoIncrement,g=function(){q.push({x:p,y:u,value:D[z],style:v[B][z],options:w[B][z]});z++;typeof f[B][z]==_$_f736[12]&&(z=0,A&&(D=c(D,1,0,k)))},u=n;u<=m;u++){z=0;D=[];for(p=0;p<f[B].length;p++)D.push(f[B][p]);k&&D.reverse();A&&(D=c(D,1,0,k));if(k)for(p=r;p>=b;p--)g();else for(p=b;p<=r;p++)g();B++}q.length&&this.setValue(q);d[0]<b&&(b=
|
|
217
|
+
d[0]);d[1]<n&&(n=d[1]);d[2]>r&&(r=d[2]);d[3]>m&&(m=d[3]);this.resetBorders(_$_f736[194],!0);this.updateSelectionFromCoords(b,n,r,m)};a.end=function(){fa.event=!1;fa.execute.call(this,!0);da.refresh.call(this)};a.cancel=function(b){fa.event=!1;a.reset.call(this,b)};a.reset=function(){this.resetBorders(_$_f736[194],!0)};return a}(),Ya=function(){const l=function(c,a){if(!this.parent.config.allowExport)return console.error(_$_f736[270]),!1;typeof a===_$_f736[12]&&(a=!0);let b=_$_f736[11];if(!0===c||
|
|
218
|
+
!0===this.parent.config.includeHeadersOnDownload)b+=this.getHeaders().replace(/\s+/gm,_$_f736[187])+_$_f736[7];b+=e[_$_f736[70]].call(this,null,a,this.options.csvDelimiter);c=new Blob([_$_f736[271]+b],{type:_$_f736[272]});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(c,this.options.csvFileName+_$_f736[273]):(a=document.createElement(_$_f736[274]),a.href=URL.createObjectURL(c),a.setAttribute(_$_f736[275],this.options.csvFileName+_$_f736[273]),document.body.appendChild(a),
|
|
219
|
+
a.click(),a.parentNode.removeChild(a))},e=function(c){c.getData=e[_$_f736[70]];c.getJson=e[_$_f736[70]];c.setData=e[_$_f736[17]];c.loadData=e.load;c.getRowData=e.getRowData;c.setRowData=e.setRowData;c.getColumnData=e.getColumnData;c.setColumnData=e.setColumnData;c.refresh=e.refresh;c.data=e[_$_f736[70]];c.download=e.download;c.downloadCSV=e.downloadCSV;c.copy=e.copy;c.paste=e.paste;c.cut=function(){return c.copy(!0)}};e[_$_f736[70]]=function(c,a,b,d){!0===c&&(c=this.getHighlighted());let f=c?!0:!1,
|
|
220
|
+
g,h=[],k=this.options.columns.length,m=this.options.data.length;typeof d===_$_f736[12]&&(d=this.dataType&&typeof b==_$_f736[12]?1:0);for(let p=0;p<m;p++){var n=null;g=d?{}:[];for(let u=0;u<k;u++){var r;if(!(r=!f)){r=c[1];let v=c[2],w=c[3];r=u>=c[0]&&u<=v&&p>=r&&p<=w}if(r&&(!f||!this.results||-1!==this.results.indexOf(p))){r=O.call(this,u,p);if(a){if(f&&!V.isVisible.call(this,p))continue;n=ja.processed.call(this,u,p);typeof n!==_$_f736[12]&&(r=n)}b&&r.match&&(r.match(b)||r.match(/\n/)||r.match(/"/))&&
|
|
221
|
+
(r=r.replace(new RegExp(_$_f736[35],_$_f736[33]),_$_f736[276]),r=_$_f736[35]+r+_$_f736[35]);d?jSuites.path.call(g,_$_f736[11]+Aa.call(this,u),r):g.push(r);n=!0}}n&&(b?h.push(g.join(b)):h.push(g))}return b?h.join(_$_f736[7])+_$_f736[7]:h};e.parse=function(){let c={};var a=0;let b;var d=[];let f=this.options.data,g=f.length;for(let k=0;k<g;k++){var h=null;b=k;f[k].data&&(Array.isArray(f[k].data)||typeof f[k].data==_$_f736[18])&&(typeof f[k].id!==_$_f736[12]&&(h=parseInt(f[k].id)),typeof f[k].row!==
|
|
222
|
+
_$_f736[12]&&(b=f[k].row),d[b]=f[k].data,f[k]=[]);b>a&&(a=b);h&&(c[b]=h)}if(Object.keys(d).length)for(h=0;h<=a;h++)d[h]&&(f[h]=d[h]);d=this.getPrimaryKey();if(!1!==d)for(d=Aa.call(this,d),h=0;h<f.length;h++)c[h]||!1===d||(a=parseInt(f[h][d]),0<a&&(c[h]=a));return c};e.type=function(){this.dataType=0;let c=this.options.columns,a=c.length;for(let b=0;b<a;b++)typeof c[b].name!==_$_f736[12]&&(this.dataType=1)};e[_$_f736[17]]=function(c){c=e.standardize(c);let a={};let b=[],d={};var f=this.options.columns.length;
|
|
223
|
+
var g=this.options.data.length;var h=Object.keys(c[0]).length-f;0<h&&this.insertRow(h);var k=c.length-g;0<k&&this.insertRow(k);for(h=0;h<g;h++)for(typeof c[h]===_$_f736[12]&&(c[h]={row:h,data:[]}),k=0;k<f;k++)typeof c[h].data[k]===_$_f736[12]&&(c[h].data[k]=_$_f736[11]);for(h=0;h<f;h++)g=Aa.call(this,h),d[g]=h;for(f=0;f<c.length;f++){k=c[f].row;g=Object.keys(c[f].data);for(let m=0;m<g.length;m++)h=null,typeof d[g[m]]!==_$_f736[12]?h=d[g[m]]:-1<g[m]&&(h=parseInt(g[m])),null!==h&&b.push({x:h,y:k,value:c[f].data[g[m]]});
|
|
224
|
+
c[f].id&&(a[k]=c[f].id)}xa.setId.call(this,a);ja[_$_f736[17]].call(this,b,null,!0)};e.build=function(){this.results=null;this.rows=[];this.records=[];this.sequence=0;e.type.call(this);if(this.options.data){let c=e.parse.call(this),a=this.options.data.length;this.options.minDimensions[1]>a&&(a=this.options.minDimensions[1]);let b=this.options.rows||[];for(let d=0;d<a;d++){let f=b[d];c[d]&&(f||(f={}),f.id=c[d]);za.row.call(this,d,f)}this.options.rows=null}};e.load=function(c){this.resetBorders();this.resetSelection();
|
|
225
|
+
this.tbody.textContent=_$_f736[11];this.options.data=c;e.build.call(this);L.refresh.call(this);ha.update.call(this)};e.getRowData=function(c,a){var b=this.options.data;if(typeof b[c]===_$_f736[12])return!1;if(a){b=this.options.columns.length;if(this.dataType){a={};for(var d=0;d<b;d++){let f=_$_f736[11]+Aa.call(this,d),g=_$_f736[11]+ja.processed.call(this,d,c,!0);jSuites.path.call(a,f,g)}}else for(a=[],d=0;d<b;d++)a.push(ja.processed.call(this,d,c,!0));return a}return JSON.parse(JSON.stringify(b[c]))};
|
|
226
|
+
e.setRowData=function(c,a,b){let d=[],f=this.options.columns.length;for(let g=0;g<f;g++)typeof a[g]===_$_f736[12]&&(a[g]=_$_f736[11]),d.push({x:g,y:c,value:a[g]});d.length&&this.setValue(d,null,b)};e.getColumnData=function(c,a){if(typeof this.options.columns[c]===_$_f736[12])return!1;let b=this.rows.length,d=[],f;for(let g=0;g<b;g++)f=a?ja.processed.call(this,c,g,!0):O.call(this,c,g),d.push(f);return d};e.setColumnData=function(c,a,b){let d=this.rows.length,f=[];for(let g=0;g<d;g++)typeof a[g]===
|
|
227
|
+
_$_f736[12]&&(a[g]=_$_f736[11]),f.push({x:c,y:g,value:a[g]});f.length&&this.setValue(f,null,b)};e.copy=function(c){let a=this,b=this.getHighlighted(),d=e[_$_f736[70]].call(this,b,!0,_$_f736[277]),f=H.call(this.parent,_$_f736[278],this,b,d);if(f)d=f;else if(!1===f)return!1;navigator.clipboard?navigator.clipboard.writeText(d).then(function(){a.setBorder(b[0],b[1],b[2],b[3],_$_f736[143])}):(this.parent.textarea.value=d,this.parent.textarea.select(),document.execCommand(_$_f736[279]),this.setBorder(b[0],
|
|
228
|
+
b[1],b[2],b[3],_$_f736[143]));t.clipboard={worksheet:this,value:d,selection:b,cut:!!c,hash:jSuites.hash(d)};return d};e.paste=function(c,a,b){if(!U.call(this.parent,this))return!1;var d=null,f=null;let g,h,k=[];if(t.clipboard.worksheet)if(h=t.clipboard.worksheet,g=t.clipboard.selection,d=g[0],f=g[1],jSuites.hash(b)!==t.clipboard.hash)h.resetBorders(_$_f736[143],!0);else{var m=0;b=e[_$_f736[70]].call(h,g,!1,!1);for(var n=g[1];n<=g[3];n++)if(!h.results||-1!==h.results.indexOf(n)){k[m]=[];var r=0;for(var p=
|
|
229
|
+
g[0];p<=g[2];p++){var u=h.records[n][p],v=k[m][r]={};typeof u.s!==_$_f736[12]&&(v.style=this===h?u.s:h.parent.config.style[u.s]);u.options&&(v.options=Object.assign({},u.options));r++}m++}}c=parseInt(c);a=parseInt(a);if(b){Array.isArray(b)||(b=I.parseCSV(b,_$_f736[277]));if(r=H.call(this.parent,_$_f736[280],this,b,c,a,k))b=r;else if(!1===r)return!1;100<b.length&&!this.options.pagination&&!L.limited.call(this)&&console.log(_$_f736[281]);if(r=this.getHighlighted()){p=[];u=[];var w=v=0;for(let B=r[1];B<=
|
|
230
|
+
r[3];B++)if(!this.results||-1!==this.results.indexOf(B)){m=[];n=[];for(let D=r[0];D<=r[2];D++){let q=b[w][v];null!==d&&null!==f&&ba(q)&&(q=Y.shiftFormula(q,D-d-v,B-f-w));m.push(q);k&&k[w]&&k[w][v]?n.push(k[w][v]):n.push(_$_f736[11]);v++;v>=b[0].length&&(v=0)}p.push(m);u.push(n);w++;w>=b.length&&(w=0)}p.length&&0===p.length%b.length&&0===p[0].length%b[0].length&&(b=p,k=u)}let z;d=[];if(h&&!0===t.clipboard.cut){for(f=g[1];f<=g[3];f++)for(r=g[0];r<=g[2];r++)(!this.results||this.results&&0<=this.results.indexOf(f))&&
|
|
231
|
+
d.push({x:r,y:f,value:_$_f736[11],style:null,options:null});h.resetBorders(_$_f736[143],!0)}f=c+b[0].length-this.options.columns.length;0<f&&this.insertColumn(f);f=a+b.length-this.rows.length;0<f&&this.insertRow(f);r=f=c;n=m=a;p=null;this.results&&(z=this.results.indexOf(a));for(u=0;u<b.length;u++)for(v=0;v<b[u].length;v++)r=c+v,n=a+u,this.results&&(n=this.results[z+u]),w={x:r,y:n,value:b[u][v]},k&&k[u]&&k[u][v]&&(w.style=k[u][v].style,k[u][v].options&&(w.options=Object.assign({},k[u][v].options))),
|
|
232
|
+
d.push(w),h&&null===p&&ea.isSelected.call(h,r,n,g)&&(p=!0);p&&this.resetBorders(_$_f736[143],!0);d.length&&(ja[_$_f736[17]].call(this,d,null,this.parent.config.forceUpdateOnPaste),H.call(this.parent,_$_f736[282],this,d),this.updateSelectionFromCoords(f,m,r,n))}};e.downloadCSV=function(c,a){l.call(this,c,a)};e.download=function(c,a){t.render?t.render(this.parent):l.call(this,c,a)};e.standardize=function(c){c||(c=[]);Array.isArray(c)||(c=[c]);typeof c[0]==_$_f736[12]||Array.isArray(c[0])||typeof c[0]==
|
|
233
|
+
_$_f736[18]||(c=[c]);let a=[];for(let d=0;d<c.length;d++){var b={};Array.isArray(c[d])||typeof c[d].data==_$_f736[12]?b.data=c[d]:b=c[d];b.row=typeof c[d].row==_$_f736[12]?d:c[d].row;a[b.row]=b}for(b=0;b<a.length;b++)c[b]=a[b]||{row:b,data:[]};return c};return e}(),sb=function(){const l=function(e){e.getLabel=l[_$_f736[70]];e.getLabelFromCoords=l[_$_f736[70]]};l[_$_f736[70]]=function(e,c,a){typeof e==_$_f736[10]&&(c=I.getCoordsFromColumnName(e),e=c[0],c=c[1]);return this.getProcessed(e,c,a)};return l}(),
|
|
234
|
+
bb=function(){const l=function(e){e.getDefinedNames=l[_$_f736[70]];e.setDefinedNames=l[_$_f736[17]]};l[_$_f736[17]]=function(e){if(e.length&&Pa.call(this.parent,_$_f736[283])){var c=this.parent.config.definedNames,a=[];for(let d=0;d<e.length;d++){let f=e[d].index.toUpperCase();var b=c[f]?c[f]:null;e[d].value?(e[d].value=Ja(e[d].value),c[f]=e[d].value):c[f]&&delete c[f];a.push({index:f,value:e[d].value,oldValue:b})}K.call(this.parent,{worksheet:this,action:_$_f736[124],records:a});M.call(this,_$_f736[124],
|
|
235
|
+
{data:a});H.call(this.parent,_$_f736[284],this,a)}};l[_$_f736[70]]=function(e){let c=this.parent.config.definedNames;return e?c[e]:c};l.build=function(){let e=this.config.definedNames;if(e)if(Pa.call(this,_$_f736[283])){var c=Object.keys(e);if(c&&c.length)for(let a=0;a<c.length;a++){let b=(_$_f736[11]+c[a]).toUpperCase(),d=Ja(e[c[a]]);b!==c[a]&&delete e[c[a]];e[b]=d}}else this.config.definedNames={}};return l}(),sa=function(){let l=[_$_f736[285],_$_f736[286],_$_f736[287],_$_f736[288],_$_f736[289],
|
|
236
|
+
_$_f736[290],_$_f736[291]],e=[_$_f736[292],_$_f736[293],_$_f736[294],_$_f736[295],_$_f736[296],_$_f736[297],_$_f736[8],_$_f736[298],_$_f736[51],_$_f736[299],_$_f736[27],_$_f736[30],_$_f736[29],_$_f736[300],_$_f736[16]],c=[];const a=function(){if(0<c.length){let g;for(let h=0;h<c.length;h++)g=-1===c[h].indexOf(_$_f736[28])?this:R(c[h].split(_$_f736[28])[0]),ca.destroy.call(g,c[h]);c=[]}},b=function(g){a.call(this);let h=0,k=[],m,n;for(let p=0;p<g.children.length;p++)if(m=g.children[p].getAttribute(_$_f736[301])){k[m]||
|
|
237
|
+
(k[m]=l[h++],6<h&&(h=0));g.children[p].style.color=k[m];if(-1===m.indexOf(_$_f736[28])){n=this;var r=m}else n=m.split(_$_f736[28]),r=n[1],n=R(n[0]);r=I.getCoordsFromRange(r);null==r[1]&&(r[1]=0);null==r[3]&&(r[3]=n.rows.length-1);ea[_$_f736[17]].call(n,r[0],r[1],r[2],r[3],null,m,k[m]);c.push(m)}},d=function(g){this.worksheet&&(a.call(this.worksheet),typeof this.onchange==_$_f736[14]&&this.onchange.call(this,this.textContent,g),this.worksheet=null)},f=function(g,h){h&&typeof h!=_$_f736[14]||(h={type:_$_f736[302],
|
|
238
|
+
onchange:h});h.type===_$_f736[302]?(g.classList.add(_$_f736[303]),g.addEventListener(_$_f736[304],function(k){k=k.changedTouches&&k.changedTouches[0]?k.changedTouches[0].clientX:k.clientX;let m=this.getBoundingClientRect();24>m.width-(k-m.left)&&(f.current=g,g.classList.add(_$_f736[305]),g.classList.add(_$_f736[149]))})):(g.addEventListener(_$_f736[306],function(){ba(g.textContent,!0)&&(g.classList.add(_$_f736[149]),t.current&&setTimeout(function(){g.worksheet=t.current;f.parse.call(t.current,g);
|
|
239
|
+
let k=document.createTextNode(_$_f736[11]);g.appendChild(k);jSuites.focus(g)}))}),g.addEventListener(_$_f736[307],function(k){ba(g.textContent,!0)?g.classList.add(_$_f736[149]):g.classList.contains(_$_f736[149])&&(g.classList.remove(_$_f736[149]),g.worksheet&&a.call(g.worksheet));k.preventDefault()}),g.addEventListener(_$_f736[144],function(k){27===k.which&&(g.textContent=_$_f736[11],d.call(g,!1))}));g.classList.add(_$_f736[81]);g.classList.add(_$_f736[307]);g.setAttribute(_$_f736[308],!0);g.addEventListener(_$_f736[309],
|
|
240
|
+
function(){d.call(g,!0)});g.val=function(k){if(typeof k===_$_f736[12])return g.textContent;g.textContent=k};h.onchange&&(g.onchange=h.onchange);h.onupdate&&(g.onupdate=h.onupdate)};f.current=null;f.parse=function(g){let h=_$_f736[11];var k=_$_f736[11];let m=window.getSelection(),n=document.createRange(),r=I.getCaretIndex.call(this.parent,g);var p=Y.tokenize(g.textContent.replace(/(\r\n|\n|\r)/gm,_$_f736[11]));for(let v=0;v<p.length;v++){let w=p[v].trim();var u;if(u=w&&Y.tokenIdentifier.test(w))u=
|
|
241
|
+
w,-1!==u.indexOf(_$_f736[28])?(u=u.split(_$_f736[28]),u=R(u[0])?!0:!1):u=!0;u?(v===p.length-1&&(k=_$_f736[310]),h+=_$_f736[311]+k+_$_f736[312]+w.replace(/\$/g,_$_f736[11]).toUpperCase()+_$_f736[313]+p[v]+_$_f736[314]):h+=p[v].replace(/\s/g,_$_f736[257])}g.innerHTML=h;h=null;for(p=0;p<g.childNodes.length&&!(h=g.childNodes[p],k=h.tagName?h.textContent.length:h.length,0>=r-k);p++)r-=k;h&&(h.tagName?n.setStart(h.firstChild,r):(r>h.length&&(r=h.length),n.setStart(h,r)),m.removeAllRanges(),m.addRange(n));
|
|
242
|
+
b.call(this,g)};f.close=function(g){let h=f.current;a.call(this);g?g.classList.remove(_$_f736[149]):h&&(typeof h.onchange==_$_f736[14]&&h.onchange.call(h),h.classList.remove(_$_f736[305]),h.classList.remove(_$_f736[149]),h.worksheet=null,f.current=null)};f.getName=function(g,h,k,m,n){g=I.getColumnNameFromCoords(g,h);k=I.getColumnNameFromCoords(k,m);n.ctrlKey&&n.type===_$_f736[315]&&(g=k);return g!==k?(n=g+_$_f736[189]+k,n=Y.getTokensFromRange.call(this,n),Y.getRangeFromTokens.call(this,n)):g};f.range=
|
|
243
|
+
function(g,h,k,m,n){let r=f.current;r.getAttribute(_$_f736[316])===_$_f736[317]&&(g=k,h=m);g=f.getName.call(this,g,h,k,m,n);h=document.createElement(_$_f736[318]);h.textContent=g;h.setAttribute(_$_f736[301],g);r.textContent=_$_f736[11];r.appendChild(h);b.call(this,r);jSuites.focus(h);n.preventDefault()};f.update=function(g,h,k,m,n,r,p){r.getAttribute(_$_f736[316])===_$_f736[317]&&(g=k,h=m);let u=jSuites.getNode();if(u){let v=f.getName.call(this,g,h,k,m,n);this!==p&&(v=p.getWorksheetName()+_$_f736[28]+
|
|
244
|
+
v);g=function(w){let z=document.createElement(_$_f736[318]);z.textContent=v;z.setAttribute(_$_f736[301],v);u.parentNode===r&&!1===w?u.parentNode.insertBefore(z,u.nextSibling):r.appendChild(z);u=z};if(u.getAttribute(_$_f736[301]))n.ctrlKey&&n.type===_$_f736[315]?(r.appendChild(document.createTextNode(_$_f736[51])),g(!0)):(u.textContent=v,u.setAttribute(_$_f736[301],v));else{if(!u.textContent||u.textContent!==_$_f736[11]&&-1===e.indexOf(u.textContent.slice(-1))||u.nextElementSibling&&u.nextElementSibling.getAttribute(_$_f736[301]))return!1;
|
|
245
|
+
g(!1)}jSuites.focus(u);b.call(this,r);n.preventDefault();typeof r.onupdate==_$_f736[14]&&r.onupdate.call(r,r.textContent,n);return!0}return!1};f.onkeydown=function(g){g.target.worksheet=this;if(g.ctrlKey){if(67===g.which||88===g.which)g=window.getSelection().toString().replace(/(\r\n|\n|\r)/gm,_$_f736[11]),navigator.clipboard?navigator.clipboard.writeText(g):(this.parent.textarea.value=g,this.parent.textarea.select(),document.execCommand(_$_f736[279]))}else if(36===g.which){let h=window.getSelection(),
|
|
246
|
+
k=document.createRange();k.setStart(g.target,0);h.removeAllRanges();h.addRange(k)}else 35===g.which?jSuites.focus(g.target):187===g.which?!g.target.textContent.replace(/(\r\n|\n|\r)/gm,_$_f736[11])&&g.target.getAttribute(_$_f736[151])&&g.target.removeAttribute(_$_f736[151]):13===g.which&&g.target.blur()};f.palette=function(g){l=g};return f}(),Y=function(){const l=new RegExp(/^(.*?!(:?[$A-Z]{1,3}[$0-9]*)+)$|^(:?[$A-Z]{1,3}[$0-9]+)+$|^(.*?!)?([$A-Z]{1,3}:[$A-Z]{1,3})$/i),e=function(p,u){let v=_$_f736[11],
|
|
247
|
+
w=[],z=0;for(let D=0;D<p.length;D++){if(p[D]===_$_f736[35]||p[D]===_$_f736[36])z?z===p[D]&&(z=!1):z=p[D];var B;if(B=!z)B=p[D],(B=B===_$_f736[292]||B===_$_f736[293]||B===_$_f736[294]||B===_$_f736[295]||B===_$_f736[296]||B===_$_f736[31]||B===_$_f736[16])||(B=p[D],B=B===_$_f736[297]||B===_$_f736[319]||B===_$_f736[8]||B===_$_f736[9]||B===_$_f736[298]||B===_$_f736[320]||B===_$_f736[51]||B===_$_f736[299]||B===_$_f736[27]||B===_$_f736[30]||B===_$_f736[29]||B===_$_f736[300]);if(B)v&&(w.push(v),v=_$_f736[11]),
|
|
248
|
+
w.push(p[D]);else if(!u||z||p[D]!==_$_f736[321])v+=p[D]}v&&w.push(v);return w},c=function(p,u){let v=[];typeof p===_$_f736[10]&&(p=e(p));let w=p.length;for(let B=0;B<w;B++){var z=p[B];if(z&&l.test(z)&&0<=z.indexOf(_$_f736[189])){v.push(_$_f736[298]);z=m.getTokensFromRange.call(this,z,u);for(let D=0;D<z.length;D++)D&&v.push(_$_f736[51]),v.push(z[D]);v.push(_$_f736[320])}else v.push(z)}return v},a=function(p,u){let v=[];typeof p===_$_f736[10]&&(p=e(p));let w=p.length;for(let z=0;z<w;z++){let B=p[z];
|
|
249
|
+
B&&l.test(B)&&(u&&-1===B.indexOf(_$_f736[28])&&(B=u+_$_f736[28]+B),v.push(B))}return v},b=function(p,u){for(let v=0;v<p.length;v++){let w=m.getTokensFromRange.call(this,p[v]);u=u.replace(p[v],_$_f736[298]+w.join(_$_f736[51])+_$_f736[320])}return u},d=function(p,u,v){let w=_$_f736[11],z=_$_f736[11];var B=p.split(_$_f736[321]);if(3===B.length)return p;2===B.length&&(B[0]?(v=0,z=_$_f736[321]):(u=0,w=_$_f736[321]),p=B.join(_$_f736[11]));B=I.getCoordsFromColumnName(p);p=B[0];B=B[1];if(0>p||0>B)return _$_f736[322];
|
|
250
|
+
B=null===B?_$_f736[11]:B+v+1;return w+I.getColumnName(p+u)+z+B},f=function(p){if(this){let u=Object.keys(this),v=u.length,w=p.length;for(let z=0;z<v;z++)for(let B=0;B<w;B++)u[z]!==p[B]||p[B]&&p[B+1]===_$_f736[297]||(p[B]=this[u[z]])}},g=function(p,u){p.forEach(function(v,w){let z=O.call(v,w.x,w.y);if(ba(z)||w.isArray){if(u[_$_f736[70]](w))u[_$_f736[83]](w);u[_$_f736[17]](w,v)}else p[_$_f736[83]](w);w.chain&&g.call(v,w.chain,u)})},h=function(p){return p=p.join(_$_f736[11]).replace(/\[(.*?)]/ig,function(u,
|
|
251
|
+
v){return m.getRangeFromTokens(v.split(_$_f736[51]))})},k=function(p,u,v,w,z){let B=w.worksheetName;if(typeof u!==_$_f736[12]&&typeof v!==_$_f736[12]){var D=I.getColumnNameFromCoords(u,v);D=B+_$_f736[28]+D;if(this.loopProtection.has(D))throw{error:_$_f736[324],message:_$_f736[325],reference:D};this.loopProtection[_$_f736[17]](D,!0)}D=e.call(w,p,!0);f.call(w.parent.config.definedNames,D);f.call(w.names,D);p=D.join(_$_f736[11]);D=c.call(w,D,!0);if(D=a(D))for(let N=0;N<D.length;N++){var q=w,A=D[N],C=
|
|
252
|
+
void 0;-1!==D[N].indexOf(_$_f736[28])?(C=D[N].split(_$_f736[28]),A=C[1],q=R(C[0])):C=B+_$_f736[28]+A;if(typeof q==_$_f736[12])throw{error:_$_f736[326],message:_$_f736[327]};var G=I.getCoordsFromColumnName(A);A=G[0];G=G[1];if(q.rows.length>G&&q.options.columns.length>A&&!this.expressions.has(D[N])){var E=q.records[G];typeof E[A].chain===_$_f736[12]&&(E[A].chain=new Map);if(typeof z===_$_f736[12]){if(E[A]!==w.records[v][u])E[A].chain[_$_f736[17]](w.records[v][u],w)}else if(z)E[A].chain[_$_f736[17]](z,
|
|
253
|
+
w);E=E[A].v;ba(E)?q=this.loopProtection.has(C)?this.expressions[_$_f736[70]](D[N]):k.call(this,E,A,G,q):(E===_$_f736[11]||null===E||typeof E===_$_f736[12]?E=null:jSuites.isNumeric(E)||(E=_$_f736[35]+E+_$_f736[35],this.types[D[N]]=_$_f736[89]),q=E);if(null!==q||this.basic)this.expressions[_$_f736[17]](D[N],q)}}return p.substr(1)},m=function(p){p.setFormula=m[_$_f736[17]];p.updateFormula=m.update;p.executeFormula=m.execute;p.setTracking=m.setTracking};m.run=function(p,u){let v=_$_f736[11],w=_$_f736[11],
|
|
254
|
+
z,B={};if(u.size){z=null;u.forEach(function(D,q){w=q.replace(/!/g,_$_f736[53]);-1!==w.indexOf(_$_f736[53])&&(w=w.split(_$_f736[53]),B[w[0]]=!0)});w=Object.keys(B);for(let D=0;D<w.length;D++)v+=_$_f736[328]+w[D]+_$_f736[329];u.forEach(function(D,q){w=q.replace(/!/g,_$_f736[53]);null===D||jSuites.isNumeric(D)||(z=D.match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&z.length&&(D=b(z,D));v=0<w.indexOf(_$_f736[53])?v+(w+_$_f736[330]+u[_$_f736[70]](q)+_$_f736[331]):v+(_$_f736[328]+
|
|
255
|
+
w+_$_f736[330]+D+_$_f736[331])})}p=p.replace(/\$/g,_$_f736[11]);(z=p.match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&z.length&&(p=b(z,p));p=p.replace(/!/g,_$_f736[53]);p=(new Function(v+_$_f736[332]+p))();null===p&&(p=0);return p};m[_$_f736[17]]=function(){};const n=function(p,u){let v=this;p=this.records[u][p];p.a&&p.a.forEach(function(w,z){z.isArray&&O.call(v,z.x,z.y)===_$_f736[11]&&(z.v=_$_f736[11],z.element&&(z.element.textContent=_$_f736[11]))})};m.resetArray=function(p,
|
|
256
|
+
u){let v=this.records[u][p];v.a&&(n.call(this,p,u),v.a.forEach(function(w,z){z.isArray&&(delete z.isArray,v.chain[_$_f736[83]](z))}),delete v.a)};m.setArray=function(p,u){let v=this.records[u][p],w=this;if(v.a){let z=!0;v.a.forEach(function(B,D){D.isArray&&O.call(w,D.x,D.y)!==_$_f736[11]&&(z=!1)});z?v.a.forEach(function(B,D){D.v=B;if(D.element){let q=Q.applyFormat(D.element,B,Ma[_$_f736[70]].call(w,D.x,D.y));typeof q!==_$_f736[12]&&(B=q);D.element.textContent=B}}):(n.call(this,p,u),v.element&&(v.element.textContent=
|
|
257
|
+
_$_f736[333]))}};m.execute=function(p,u,v,w,z,B){if(!0===this.parent.processing){if(null!==u&&null!==v)this.parent.queue[_$_f736[17]](this.records[v][u],this);return _$_f736[11]}if(Ia.call(this,_$_f736[334])){var D=H.call(this.parent,_$_f736[334],this,p,u,v);if(!1===D)return p;D&&(p=D)}z={loopProtection:new Map,expressions:new Map,types:{},basic:-1!==p.indexOf(_$_f736[335])||t.formula.basic||z?!0:!1};try{p=k.call(z,p,u,v,this,B);if(p===_$_f736[11])return _$_f736[11];let A;A=z.basic?m.run(p,z.expressions):
|
|
258
|
+
t.formula(p,z.expressions,u,v,this,z.types,!0);if(!1!==w){w=A;if(typeof u!==_$_f736[12]&&typeof v!==_$_f736[12]){let C=this.records[v][u];if(w instanceof Date)C.v=jSuites.calendar.dateToNum(w);else if(Array.isArray(w)){B=!1;for(D=0;D<w.length;D++)for(var q=0;q<w[D].length;q++)(0<q||0<D)&&O.call(this,u+q,v+D)!==_$_f736[11]&&(B=!0);let G=new Map,E=C.chain;E||(E=C.chain=new Map);for(D=0;D<w.length;D++)for(q=0;q<w[D].length;q++){let N=w[D][q],X=this.records[v+D][u+q];B||(X.v=N);G[_$_f736[17]](X,N);if(0<
|
|
259
|
+
q||0<D)E[_$_f736[17]](X,this),X.isArray=C}C.a=G;w=B?_$_f736[323]:w[0][0]}else C.v=w}A=w}return A}catch(A){return!0===this.parent.config.debugFormulas&&console.log(p,z.expressions,A),A&&A.error?A.error:_$_f736[326]}};m.updateFormulaTokens=function(p,u,v){let w;let z=p.v;p.r||(p.r=[]);let B=z.length;for(let C=0;C<B;C++)if(z[C]&&l.test(z[C])){var D=!1;if(-1===z[C].indexOf(_$_f736[28])){var q=z[C];w=_$_f736[11]}else q=z[C].split(_$_f736[28]),w=q[0],q=q[1];var A=q;-1!==A.indexOf(_$_f736[321])?(q=q.replace(/\$/g,
|
|
260
|
+
_$_f736[11]),q===u&&(q=v,-1!==A.indexOf(_$_f736[321])&&(A=A.split(_$_f736[321]),3===A.length?(D=_$_f736[321],A=_$_f736[321]):A[0]===_$_f736[11]?(D=_$_f736[321],A=_$_f736[11]):(D=_$_f736[11],A=_$_f736[321]),q=D+q.match(/[A-Z]+/g)+A+q.match(/[0-9]+/g)),D=!0)):q===u&&(q=v,D=!0);w&&(q=w+_$_f736[28]+q);D&&(p.v[C]=null,p.r[C]=q)}};m.updateReferences=function(p,u){let v,w,z=[],B=[],D=new Map;p.forEach(function(q){if(q.length)for(v=0;v<q.length;v++){let C=q[v];if(typeof C.r!==_$_f736[12]){for(w=0;w<C.v.length;w++)C.r[w]&&
|
|
261
|
+
(C.v[w]=C.r[w]);if(0===C.type){var A=D[_$_f736[70]](C.w);A||(A=[],D[_$_f736[17]](C.w,A));let G={x:C.x,y:C.y,value:h(C.v)};A.push(G)}else A=h(C.v),-1!==A.indexOf(_$_f736[322])&&(A=null),A={index:C.k,value:A},1===C.type?z.push(A):B.push(A);C.r=void 0}}});K.cascade=!0;K.ignore||(bb[_$_f736[17]].call(this,z),Oa[_$_f736[17]].call(this,B));D.forEach(function(q,A){q=ja.applyValues.call(A,q);M.call(A,_$_f736[163],{data:q});u||ja.setValueChained.call(A,q)});K.cascade=!1};m.getChain=function(p){if(typeof p===
|
|
262
|
+
_$_f736[12])return!1;let u=new Map;for(let v=0;v<p.length;v++){let w=p[v];w=this.records[w.y][w.x];w.chain&&g.call(this,w.chain,u)}return u};const r=function(p,u,v,w){u=a(u,v);for(v=0;v<u.length;v++){let z=u[v].split(_$_f736[28]),B;w&&(B=T(z[0]));if(!w||B===w){let D=this[_$_f736[70]](z[1]);D||(D=[],this[_$_f736[17]](z[1],D));D.push(p)}}};m.getAllReferences=function(p){let u=new Map;p||(p=this.getWorksheetName());p=T(p);for(let C=0;C<t.spreadsheet.length;C++){var v=t.spreadsheet[C].worksheets;for(var w=
|
|
263
|
+
0;w<v.length;w++){var z=v[w].getWorksheetName(),B=v[w].options.columns.length,D=v[w].rows.length;for(var q=0;q<D;q++){let G=v[w].options.data[q];for(let E=0;E<B;E++){var A=Wa.call(v[w],G,E);ba(A)&&(A=c.call(this,A),A.length&&r.call(u,{type:0,w:v[w],x:E,y:q,v:A},A,z,p))}}}if(v=t.spreadsheet[C].config.definedNames)for(w=Object.keys(v),z=0;z<w.length;z++)B=w[z],q=v[B],D=q.split(_$_f736[28]),T(D[0])===p&&(q=c.call(this,q),q.length&&r.call(u,{type:1,s:t.spreadsheet[C],k:B,v:q},q,D[0]));if(v=t.spreadsheet[C].config.validations)for(w=
|
|
264
|
+
0;w<v.length;w++)v[w]&&v[w].range&&(B=v[w].range,z=B.split(_$_f736[28]),T(z[0])===p&&(B=c.call(this,B),B.length&&r.call(u,{type:2,s:t.spreadsheet[C],k:w,v:B},B,z[0])))}return u};m.updateWorksheetNames=function(p,u){p=T(p);0<=u.indexOf(_$_f736[187])&&(u=_$_f736[36]+u+_$_f736[36]);let v=Y.getAllReferences.call(this,p);v.forEach(function(w){if(w.length)for(let z=0;z<w.length;z++){let B=w[z];for(let D=0;D<B.v.length;D++)if(-1!==B.v[D].indexOf(_$_f736[28])){let q=B.v[D].split(_$_f736[28]);q[1]&&T(q[0])===
|
|
265
|
+
p&&(q[0]=u,B.v[D]=q.join(_$_f736[28]),B.r=!0)}}});m.updateReferences.call(this,v,!0)};m.shiftFormula=function(p,u,v){p=e(p);let w,z;for(let B=0;B<p.length;B++)l.test(p[B])&&(z=-1===p[B].indexOf(_$_f736[28])?[_$_f736[11],p[B]]:p[B].split(_$_f736[28]),-1===z[1].indexOf(_$_f736[189])?z[1]=d(z[1],u,v):(w=z[1].split(_$_f736[189]),z[1]=d(w[0],u,v)+_$_f736[189]+d(w[1],u,v)),p[B]=z[0]?z.join(_$_f736[28]):z[1]);return p.join(_$_f736[11])};m.getTokensFromRange=function(p,u){var v=this;let w=_$_f736[11];if(-1===
|
|
266
|
+
p.indexOf(_$_f736[189]))return[p];p=p.replace(/\$/g,_$_f736[11]);-1!==p.indexOf(_$_f736[28])&&(w=p.split(_$_f736[28]),p=w[1],v=R(w[0]),w=w[0]+_$_f736[28]);let z=[];p=p.split(_$_f736[189]);let B=I.getCoordsFromColumnName(p[0]);p=I.getCoordsFromColumnName(p[1]);let D,q,A,C;null!==B[0]&&(B[0]<=p[0]?(D=B[0],q=p[0]):(D=p[0],q=B[0]));null!==B[1]&&(B[1]<=p[1]?(A=B[1],C=p[1]):(A=p[1],C=B[1]));if(null===B[1]&&null===p[1])if(A=0,u&&v&&v.options&&v.options.data)C=v.options.data.length-1;else return[w+I.getColumnName(B[0]),
|
|
267
|
+
w+I.getColumnName(p[0])];else if(null===B[0]&&null===p[0])if(D=0,u&&v&&v.options&&v.options.columns)q=v.options.columns.length-1;else return[w+B[1],w+p[1]];for(u=A;u<=C;u++)for(v=D;v<=q;v++)z.push(w+I.getColumnNameFromCoords(v,u));return z};m.getRangeFromTokens=function(p){p=p.filter(function(v){return-1===v.indexOf(_$_f736[322])});let u=_$_f736[11];for(let v=0;v<p.length;v++)if(-1!==p[v].indexOf(_$_f736[28])){let w=p[v].split(_$_f736[28]);p[v]=w[1];u===_$_f736[11]&&(u=w[0]+_$_f736[28])}p.sort(function(v,
|
|
268
|
+
w){v=I.getCoordsFromColumnName(v);w=I.getCoordsFromColumnName(w);return v[1]>w[1]?1:v[1]<w[1]?-1:v[0]>w[0]?1:v[0]<w[0]?-1:0});return p.length?u+(p[0]+_$_f736[189]+p[p.length-1]):_$_f736[322]};m.setTracking=function(){typeof this.instance!==_$_f736[12]&&(this.instance.tracking||(this.instance.tracking=new Map),this.instance.tracking[_$_f736[17]](this.instance.records[this.y][this.x],!0))};m.tracking=function(p){if(this.tracking){if(p&&p.length)for(let u=0;u<p.length;u++)this.tracking[_$_f736[83]](p[u]);
|
|
269
|
+
m.evaluate.call(this)}};m.evaluate=function(){if(this.tracking){let p=this;p.tracking.forEach(function(u,v){u=O.call(p,v.x,v.y);if(ba(u))ja.setFromCoords.call(p,v.x,v.y,u);else p.tracking[_$_f736[83]](v)})}};m.tokenIdentifier=l;m.tokenize=e;return m}(),ja=function(){const l=function(b,d,f){let g,h,k=null,m=null;typeof b==_$_f736[10]?(b=I.getCoordsFromColumnName(b),g=b[0],h=b[1]):b.tagName?(g=b.getAttribute(_$_f736[76]),h=b.getAttribute(_$_f736[72])):b.element&&b.element.tagName?(g=b.element.getAttribute(_$_f736[76]),
|
|
270
|
+
h=b.element.getAttribute(_$_f736[72])):(g=b.x,h=b.y,typeof b.value!==_$_f736[12]&&(d=b.value),typeof b.style!==_$_f736[12]&&(k=b.style),typeof b.options!==_$_f736[12]&&(m=b.options));d={x:g,y:h,value:d,force:f};null!==k&&(d.style=k);null!==m&&(d.options=m);this.push(d)},e=function(b){let d={},f=b.length;for(let g=0;g<f;g++){let h=b[g],k=I.getColumnNameFromCoords(h.x,h.y);typeof h.style!==_$_f736[12]&&(d.style||(d.style={}),d.style[k]=h.style);typeof h.options!==_$_f736[12]&&(d.options||(d.options=
|
|
271
|
+
{}),d.options[k]=h.options)}return d},c=function(b){t.history.cascade=!0;b.style&&Za[_$_f736[17]].call(this,b.style,null,null,!0);b.options&&Ma[_$_f736[17]].call(this,b.options);t.history.cascade=!1},a=function(b){b.name=Aa;b.value=O;b.getValue=a[_$_f736[70]];b.getValueFromCoords=a.getFromCoords;b.setValue=a[_$_f736[17]];b.setValueFromCoords=a.setFromCoords;b.setCheckRadioValue=a.setCheckRadio;b.getProcessed=a.processed};a[_$_f736[70]]=function(b,d){let f,g=this;typeof b==_$_f736[18]?(f=b.x,b=b.y):
|
|
272
|
+
(0<=b.indexOf(_$_f736[28])&&(g=b.split(_$_f736[28]),g=R(g[0])),b=I.getCoordsFromColumnName(b),f=b[0],b=b[1]);return a.getFromCoords.call(g,f,b,d)};a.getFromCoords=function(b,d,f){let g=null;null!=b&&null!=d&&(g=f?a.processed.call(this,b,d):O.call(this,b,d));return g};a[_$_f736[17]]=function(b,d,f){if(!U.call(this.parent,this))return!1;let g=[];f=!!f;if(b&&Array.isArray(b)){var h=b.length;for(let k=0;k<h;k++)l.call(g,b[k],d,f)}else if(typeof b===_$_f736[18]&&typeof b.x===_$_f736[12]&&typeof b.tagName==
|
|
273
|
+
_$_f736[12])for(d=Object.keys(b),h=0;h<d.length;h++)l.call(g,d[h],b[d[h]],f);else l.call(g,b,d,f);if(g.length&&(b=e.call(this,g),g=a.applyValues.call(this,g),this.parent.config.parseFormulas&&a.setValueChained.call(this,g),g.length)){ca.refresh.call(this);K.call(this.parent,{worksheet:this,action:_$_f736[117],records:g,selection:this.selectedCell});c.call(this,b);b=this.getPrimaryKey();if(!1!==b)for(f=0;f<g.length;f++)g[f].x===b&&g[f].value&&cb.call(this,g[f]);M.call(this,_$_f736[117],{data:g});ha.update.call(this);
|
|
274
|
+
H.call(this.parent,_$_f736[336],this,g);let k=this;setTimeout(function(){ca.refresh.call(k)},500)}};a.setFromCoords=function(b,d,f,g){let h=[];h.push({x:b,y:d,value:f});a[_$_f736[17]].call(this,h,null,g)};a.setCheckRadio=function(){let b=[],d=this.getSelected();for(let f=0;f<d.length;f++){let g=d[f].x,h=d[f].y;if(!this.options.columns[g].readOnly&&this.options.columns[g].type===_$_f736[337]){let k=O.call(this,g,h)?!1:!0;b.push({x:g,y:h,value:k})}}b.length&&a[_$_f736[17]].call(this,b)};a.applyValues=
|
|
275
|
+
function(b){let d=[],f=b.length;for(let h=0;h<f;h++){var g=b[h];g=this.updateCell(g.x,g.y,g.value,g.force);typeof g.value!==_$_f736[12]&&d.push(g)}return d};a.processed=function(b,d,f){let g=O.call(this,b,d);if(null===g)return null;let h=ta[_$_f736[70]].call(this,b,d),k=h[1];if(k.type!==_$_f736[147]&&k.type!==_$_f736[338]&&k.type!==_$_f736[267]&&k.type!==_$_f736[339]&&k.type!==_$_f736[340]&&!1!==k.process&&(!0===f||k.type!==_$_f736[341]&&k.type!==_$_f736[342]&&k.type!==_$_f736[343]))if(k.type===_$_f736[344]||
|
|
276
|
+
k.type===_$_f736[337])g=h[0][_$_f736[70]](k,g,f);else{let m=this.records[d][b].element;m?g=!0===this.parent.config.stripHTML?m.textContent:m.children.length&&m.children[0].classList.contains(_$_f736[41])?m.children[0].innerHTML:m.innerHTML:(ba(g)&&(g=this.executeFormula(g,b,d,!1)),h[0]&&typeof h[0][_$_f736[70]]==_$_f736[14]&&(b=h[0][_$_f736[70]](k,g,f),typeof b!==_$_f736[12]&&(g=b)))}return g};a.setValueChained=function(b){try{let d=Y.getChain.call(this,b);if(d){let f=[];d.forEach(function(g,h){if(typeof h.feature===
|
|
277
|
+
_$_f736[12]){let k={x:h.x,y:h.y},m=O.call(g,k.x,k.y);typeof h.isArray===_$_f736[12]?Q.update.call(g,k.x,k.y,m,!0):Oa.applyValidation.call(g,g.records[k.y][k.x]);k.w=g;k.v=g.records[k.y][k.x].v;k.value=k.v;k.cell=I.getColumnNameFromCoords(k.x,k.y);k.f=m;f.push(k)}});f.length&&H.call(this.parent,_$_f736[345],this,f)}}catch(d){console.error(d)}};return a}(),Q=function(){const l=function(e){e.getCell=l[_$_f736[70]];e.getCellFromCoords=l[_$_f736[70]];e.updateCell=l.update;e.updateCells=l.updateAll;e.isAttached=
|
|
278
|
+
l.attached};l.attached=function(e,c){return(c=this.records[c])&&c[e]&&c[e].element&&c[e].element.parentNode&&c[e].element.parentNode.parentNode?!0:!1};l[_$_f736[70]]=function(e,c){typeof e==_$_f736[10]&&(c=I.getCoordsFromColumnName(e),e=c[0],c=c[1]);e=parseInt(e);c=parseInt(c);let a=this.records[c];return a&&a[e]&&a[e].element?a[e].element:Q.create.call(this,e,c)};l.updateAll=function(e){let c=this.getPrimaryKey(),a=[];for(let b=0;b<e.length;b++)typeof e[b].id!==_$_f736[12]?(cb.call(this,e[b]),a.push({id:e[b].id,
|
|
279
|
+
y:e[b].y}),!1!==c&&l.update.call(this,c,e[b].y,e[b].id,!0)):a.push(l.update.call(this,e[b].x,e[b].y,e[b].value,e[b].force));M.call(this,_$_f736[162],[a])};l.update=function(e,c,a,b){var d=this.records[c][e];let f={x:e,y:c};if(d){let h=d.element;if(b||!h||!h.classList.contains(_$_f736[40])){b=H.call(this.parent,_$_f736[346],this,h,e,c,a);if(!1===b)return f;typeof b!==_$_f736[12]&&(a=b);ba(a)&&(a=Ja(a));let k=a&&h?h.innerHTML:_$_f736[11];b=O.call(this,e,c);b!==a&&O.call(this,e,c,a);d.a&&Y.resetArray.call(this,
|
|
280
|
+
e,c);let m=ta[_$_f736[70]].call(this,e,c);if(typeof m[0].updateCell==_$_f736[14]){var g=m[0].updateCell(h,a,e,c,this,m[1]);typeof g!==_$_f736[12]&&(a=g,O.call(this,e,c,g))}(g=Oa.applyValidation.call(this,d))?(d.a?Y.setArray.call(this,e,c):d.isArray&&(d=d.isArray,Y.setArray.call(this,d.x,d.y)),m[1]&&typeof m[1].render==_$_f736[14]&&m[1].render(h,a,e,c,this,m[1]),b!==a&&g&&(f.oldValue=b,f.value=a,H.call(this.parent,_$_f736[347],this,h,e,c,a,b))):(O.call(this,e,c,b),k&&(h.innerHTML=k))}}else return!1;
|
|
281
|
+
return f};l.create=function(e,c){let a=this.records[c][e],b=document.createElement(_$_f736[240]);b.setAttribute(_$_f736[76],e);b.setAttribute(_$_f736[72],c);let d=ta[_$_f736[70]].call(this,e,c),f=O.call(this,e,c);if(d[0]&&typeof d[0].createCell==_$_f736[14]){let g=d[0].createCell(b,f,e,c,this,d[1]);typeof g!==_$_f736[12]&&(f=g,O.call(this,e,c,g))}a.element=b;d[1].type===_$_f736[89]&&!b.textContent&&a.v&&(b.textContent=Q.applyFormat(b,a.v,Ma[_$_f736[70]].call(this,e,c)));d[1]&&typeof d[1].render==
|
|
282
|
+
_$_f736[14]&&d[1].render(b,f,e,c,this,d[1]);l.applyProperties.call(this,b,e,c);Oa.applyValidation.call(this,a,!0);H.call(this.parent,_$_f736[348],this,b,e,c,f);return b};l.getAttributes=function(e,c,a,b){let d=I.getColumnNameFromCoords(c,a),f=this.records[a][c];f.meta&&(e.meta[d]=f.meta);f.c&&(e.comments[d]=f.c);f.options&&(e.options[d]=f.options);typeof f.s!==_$_f736[12]&&(e.style[d]=f.s);if(f.merged){let g=f.merged[0],h=I.getColumnNameFromCoords(g.x,g.y);e.mergeCells[h]=[g.mergeCells[0],g.mergeCells[1]]}c=
|
|
283
|
+
O.call(this,c,a);c!==_$_f736[11]&&(e.values[d]=c);f.chain&&f.chain.forEach(function(g,h){let k=[];k[0]=g.getWorksheetName();k[1]=I.getColumnNameFromCoords(h.x,h.y);e.formulas[k.join(_$_f736[28])]=O.call(g,h.x,h.y)});b.push(d)};l.setAttributes=function(e){e.meta&&this.setMeta(e.meta);e.comments&&this.setComments(e.comments);e.comments&&this.setProperty(e.options);e.style&&this.setStyle(e.style);e.mergeCells&&this.setMerge(e.mergeCells);e.values&&l.batch.call(this,e.values);e.formulas&&l.batch.call(this,
|
|
284
|
+
e.formulas,!0);e.columnGroups&&aa.setConfig.call(this,e.columnGroups,!1);e.rowGroups&&aa.setConfig.call(this,e.rowGroups,!1,!0)};l.attributes=function(){return{meta:{},comments:{},style:{},mergeCells:{},options:{},values:{},formulas:{}}};l.applyProperties=function(e,c,a){let b=this.options.columns||{},d=this.records[a][c].options||{},f=this.rows,g=null,h=null;if(typeof this.records[a][c].readonly===_$_f736[12]){let k=null;e.classList.contains(_$_f736[40])?k=!0:!d||typeof d.readonly===_$_f736[12]&&
|
|
285
|
+
typeof d.readOnly===_$_f736[12]?hb(b[c])?k=!0:hb(f[a])&&(k=!0):k=d.readonly;null!==k&&(this.records[a][c].readonly=k)}b[c]&&(b[c].align&&(h=b[c].align),typeof b[c].wrap!==_$_f736[12]&&(g=b[c].wrap));d&&(!1===d.locked&&!0===this.options.selectUnLockedCells?e.classList.add(_$_f736[349]):e.classList.remove(_$_f736[349]),d.zebra?e.classList.add(_$_f736[350]):e.classList.remove(_$_f736[350]),d.align&&(h=d.align),typeof d.wrap!==_$_f736[12]&&(g=d.wrap));this.records[a][c].readonly?e.classList.add(_$_f736[40]):
|
|
286
|
+
e.classList.remove(_$_f736[40]);null!==g&&(g?e.classList.add(_$_f736[351]):e.classList.remove(_$_f736[351]));h&&e.classList.add(_$_f736[244]+h);Za.applyDom.call(this,this.records[a][c]);lb.applyDom.call(this,this.records[a][c])};l.batch=function(e,c){var a=null;let b=a=null;a=null;let d=new Map,f=Object.keys(e);if(f.length)for(let g=0;g<f.length;g++){0<=f[g].indexOf(_$_f736[28])?(a=f[g].split(_$_f736[28]),b=R(a[0]),a=a[1]):(b=this,a=f[g]);a=I.getCoordsFromColumnName(a);let h=d[_$_f736[70]](b);h||
|
|
287
|
+
(h=[],d[_$_f736[17]](b,h));h.push({x:a[0],y:a[1],value:e[f[g]],force:!0})}d.forEach(function(g,h){g=ja.applyValues.call(h,g);ja.setValueChained.call(h,g);c&&M.call(h,_$_f736[163],{data:g})})};l.parseOptions=function(e,c,a){c||(c=e);let b=this.options[e];if(b){let f=Object.keys(b);for(let g=0;g<f.length;g++){let h=this.helpers.getCoordsFromColumnName(f[g]);this.records[h[1]]&&this.records[h[1]][h[0]]&&(this.records[h[1]][h[0]][c]=b[f[g]])}}let d=this;Object.defineProperty(this.options,e,{enumerable:!1,
|
|
288
|
+
configurable:!0,get:function(){return d[a]()}})};l.extractConfiguration=function(e,c){let a,b,d;if(e&&typeof e==_$_f736[10]){if(e=this.helpers.getCoordsFromColumnName(e),this.records[e[1]]&&this.records[e[1]][e[0]])return this.records[e[1]][e[0]][c]}else{let f={},g=this.rows.length,h=this.options.columns.length;for(d=0;d<g;d++)for(a=this.records[d],b=0;b<h;b++)if(e=a[b][c],typeof e!==_$_f736[12]){let k=this.helpers.getColumnNameFromCoords(b,d);f[k]=e}return f}return!1};l.getFromSelection=function(e,
|
|
289
|
+
c){let a,b=0,d=[];for(let f=e[1];f<=e[3];f++){a=0;d[b]=[];for(let g=e[0];g<=e[2];g++)d[b][a++]=this.records[f][g][c];b++}return d};l.applyConfiguration=function(e,c){let a;if(e&&typeof e==_$_f736[10])a=this.helpers.getCoordsFromColumnName(e),this.records[a[1]][a[0]]=c;else{c=Object.keys(e);for(let b=0;b<c.length;b++)a=this.helpers.getCoordsFromColumnName(c[b]),this.records[a[1]][a[0]]=e[c[b]]}};l.applyFormat=function(e,c,a){e&&(!a.rotate&&jSuites.isNumeric(c)?e.classList.add(_$_f736[352]):e.classList.remove(_$_f736[352]));
|
|
290
|
+
if(a){let b=Qa(a);b?(b.mask?(a=b.mask.split(_$_f736[300]),0>c&&a[1]?(e&&-1!==a[1].indexOf(_$_f736[353])&&e.classList.add(_$_f736[354]),e=-1===a[1].indexOf(_$_f736[292])?jSuites.mask.render(-1*c,b,!0):jSuites.mask.render(c,b,!0),0===a[1].indexOf(_$_f736[297])&&a[1].indexOf(_$_f736[319])&&(e=_$_f736[297]+e+_$_f736[319])):(b.mask=a[0],e&&e.classList.remove(_$_f736[354]),e=jSuites.mask.render(c,b,!0))):e=jSuites.mask.render(c,b,!0),e&&(c=e)):c&&jSuites.isNumeric(c)&&a.type===_$_f736[355]&&(e.classList.add(_$_f736[356]),
|
|
291
|
+
c*=100)}return c};return l}(),Ma=function(){const l=function(c,a,b,d,f){let g=this.records[a][c].element;g&&(d&&typeof d.destroyCell==_$_f736[14]&&d.destroyCell(g,c,a,this),b&&typeof b.createCell==_$_f736[14]&&(d=O.call(this,c,a),d=b.createCell(g,d,c,a,this,f),typeof d!==_$_f736[12]&&O.call(this,c,a,d),Q.applyProperties.call(this,g,c,a)))},e=function(c){c.getColumnOptions=e[_$_f736[70]];c.setColumnOptions=e[_$_f736[17]];c.getCells=e.getCells;c.setCells=e.setCells;c.getProperties=e[_$_f736[70]];c.setProperties=
|
|
292
|
+
e[_$_f736[17]];c.getProperty=e[_$_f736[70]];c.setProperty=e[_$_f736[17]];c.resetProperty=e[_$_f736[17]];c.updateProperty=e.update;c.getOptions=e[_$_f736[70]]};e.getCells=function(c){return Q.extractConfiguration.call(this,c,_$_f736[269])};e.setCells=function(c,a){if(!U.call(this.parent,this))return!1;Q.applyConfiguration.call(this,c,a)};e[_$_f736[70]]=function(c,a){let b=null;typeof a!==_$_f736[12]&&(a=this.records[a][c].options)&&(b=a);b||(b=this.options.columns[c]);b?b.type||(b.type=_$_f736[89]):
|
|
293
|
+
b={type:_$_f736[89]};return b};e[_$_f736[17]]=function(c,a,b){if(!U.call(this.parent,this))return!1;this.edition&&this.closeEditor(this.edition,!1);let d=[];if(Array.isArray(c))d=c;else if(jSuites.isNumeric(c)&&jSuites.isNumeric(a))c={x:c,y:a},typeof b==_$_f736[18]&&(c.value=b),d.push(c);else if(typeof a===_$_f736[18])c={x:c,value:a},d.push(c);else if(typeof c===_$_f736[18]&&typeof a===_$_f736[12])for(b=Object.keys(c),a=0;a<b.length;a++){var f=I.getCoordsFromColumnName(b[a]);d.push({x:f[0],y:f[1],
|
|
294
|
+
value:c[b[a]]})}if(Array.isArray(d))for(c=0;c<d.length;c++){var g=d[c];b=g.x;let h=g.y,k=e[_$_f736[70]].call(this,b,h);a=g.value;f=t.editors[k.type];let m=null;a&&a.type&&(m=t.editors[a.type]);if(typeof h===_$_f736[12])for(g.oldValue=k,parseInt(a.width)||(a.width=this.options.defaultColWidth||100),a.type&&t.editors[a.type]||(a.type=_$_f736[89]),this.options.columns[b]=a,Z.applyProperties.call(this,b),g=0;g<this.records.length;g++)l.call(this,b,g,m,f,a);else g.oldValue=this.records[h][b].options||
|
|
295
|
+
_$_f736[11],a?this.records[h][b].options=a:(delete this.records[h][b].options,a=e[_$_f736[70]].call(this,b,h),m=t.editors[a.type]),l.call(this,b,h,m,f,a)}else return console.error(_$_f736[357]),!1;this.refreshBorders();K.call(this.parent,{worksheet:this,action:_$_f736[118],records:d});M.call(this,_$_f736[118],{data:d});H.call(this.parent,_$_f736[358],this,d);return!0};e.update=function(c,a,b,d){c=typeof c==_$_f736[10]||typeof c==_$_f736[37]?[{x:c,y:a,value:b}]:c;a=JSON.parse(JSON.stringify(c));if(Array.isArray(c))for(let m=
|
|
296
|
+
0;m<c.length;m++){let n;b=c[m].x;var f=c[m].y,g=c[m],h=d;null===f?(n=this.options.columns[b],g.oldValue=Object.assign({},n)):(n=this.records[f][b].options)?g.oldValue=Object.assign({},n):(g.oldValue=null,n=this.records[f][b].options={});Object.assign(n,g.value);if(!h&&typeof f!==_$_f736[12]){var k=this.records[f][b].element;h=e[_$_f736[70]].call(this,b,f);h=t.editors[h.type];g.value.type?(g=g.value,k=null,g&&g.type&&(k=t.editors[g.type]),l.call(this,b,f,k,h,n)):k&&typeof h.updateCell==_$_f736[14]&&
|
|
297
|
+
(g=O.call(this,b,f),g=h.updateCell(k,g,b,f,this,n),typeof g!==_$_f736[12]&&O.call(this,b,f,g),Q.applyProperties.call(this,k,b,f))}}K.call(this.parent,{worksheet:this,action:_$_f736[119],records:c});M.call(this,_$_f736[119],{data:a});H.call(this.parent,_$_f736[358],this,c)};return e}(),V=function(){const l=function(c){let a=[],b=[],d=this,f=this.options.columns.length;ca.reset.call(this);let g=aa.getConfig.call(this,this.rows);c.forEach(function(h){typeof h!==_$_f736[18]&&(h={row:Number(h)});if(null===
|
|
298
|
+
h.row||typeof h.row===_$_f736[12])h.row=d.rows.length;var k=h.options||{};h.id&&(k.id=h.id);k.id||(k.id=xa.next.call(d));d.rows.splice(h.row,0,null);d.records.splice(h.row,0,null);d.options.data.splice(h.row,0,null);za.row.call(d,h.row,k);a.push(h.row);if(h.data)for(k=0;k<f;k++)typeof h.data[k]===_$_f736[12]&&(h.data[k]=_$_f736[11]),b.push({x:k,y:h.row,value:h.data[k]});d.results&&(d.rows[h.row].results=!0);aa.updateConfig.call(d,g.distribution,h.column,1);ra.updateConfig.call(d,_$_f736[233],h.row,
|
|
299
|
+
1)});M.call(this,_$_f736[96],{rows:c,changes:a});K.call(this.parent,{worksheet:this,action:_$_f736[96],rows:c,changes:a});ha.references.call(this);b.length&&ja.applyValues.call(this,b);K.ignore||(K.cascade=!0,ia.updateConfig.call(this,qa(this.options.freezeRows,a,!0)),K.cascade=!1);K.progress!==_$_f736[137]&&aa.setConfig.call(this,g.state,!0,!0);this.results&&(this.results=Ea.refresh.call(this));L.refresh.call(this);ha.update.call(this)},e=function(c){c.getRow=e[_$_f736[70]];c.moveRow=e.move;c.insertRow=
|
|
300
|
+
e.add;c.deleteRow=e.del;c.showRow=e.setVisibility.bind(c,!0);c.hideRow=e.setVisibility.bind(c,!1)};e.visibility=function(c,a){Array.isArray(a)||(a=[a]);let b,d,f=c?_$_f736[180]:_$_f736[179],g=Object.keys(a),h=[];for(let k=0;k<g.length;k++)if(b=a[g[k]],(d=this.rows[b])&&d.visible!==c){if(d.element)d.element.classList[f](_$_f736[360]);d.visible=!!c;h.push(b)}if(h.length)return L.refresh.call(this),c?ca.refresh.call(this):ea.reset.call(this),h};e.setVisibility=function(c,a){if(a=e.visibility.call(this,
|
|
301
|
+
c,a))K.call(this.parent,{worksheet:this,action:c?_$_f736[103]:_$_f736[102],records:a}),M.call(this,c?_$_f736[103]:_$_f736[102],{data:a}),H.call(this.parent,_$_f736[361],this,c,a)};e.height=function(c){let a=0,b=this.rows;b[c]&&!1!==b[c].visible&&(b[c].height?a=b[c].height:(a=b[c].element&&b[c].element.offsetHeight?b[c].element.offsetHeight:this.options.defaultRowHeight||t.defaultRowHeight||24,b[c].height=a));return a};e[_$_f736[70]]=function(c){return this.rows[c]};e.attached=function(c){return!!this.rows[c]&&
|
|
302
|
+
this.rows[c].element&&this.rows[c].element.parentNode};e.create=function(c){if(this.rows[c]&&this.rows[c].element)return this.rows[c].element;let a=this.rows[c],b=document.createElement(_$_f736[256]);b.setAttribute(_$_f736[72],c);a.element=b;a.style&&b.setAttribute(_$_f736[21],a.style);!1===a.visible&&b.classList.add(_$_f736[360]);let d=(c+1).toString();a.title&&(d=a.title);a.height&&(b.style.height=parseInt(a.height)+_$_f736[19]);let f=document.createElement(_$_f736[240]);f.innerHTML=d;f.setAttribute(_$_f736[72],
|
|
303
|
+
c);f.className=_$_f736[362];b.appendChild(f);a.group&&(Ua.icon.call(this,c),b.classList.add(_$_f736[209]));a.parentGroup&&b.classList.add(_$_f736[208]);H.call(this.parent,_$_f736[363],this,c,b);return b};e.move=function(c,a,b){if(!U.call(this.parent,this))return!1;b||(b=1);ca.reset.call(this);var d=this.rows;let f=this.options.freezeRows,g=aa.getConfig.call(this,d);if(g){for(var h=c;h<c+b;h++){var k=d[h];k.group?Ga.updateDom.call(this,h,!0):k.parentGroup&&(delete k.parentGroup,this.colgroup[h]&&this.colgroup[h].classList.remove(_$_f736[208]));
|
|
304
|
+
aa.updateConfig.call(this,g.distribution,h,0,k)}g.distribution=la.call(g.distribution);for(d=a;d<a+b;d++)aa.updateConfig.call(this,g.distribution,d,1)}d=null;if(f){h=[];for(k=a;k<a+b;k++)h.push(k);(k=qa.call(this,f,h,1))||(k=f);h=[];for(let m=c;m<c+b;m++)h.push(m);(h=qa.call(this,k,h,0))||(h=k);h.length!==f.length&&(d=h)}ua.call(this.rows,c,b,a);ua.call(this.records,c,b,a);ua.call(this.options.data,c,b,a);M.call(this,_$_f736[100],{f:c,t:a,q:b});K.call(this.parent,{worksheet:this,action:_$_f736[100],
|
|
305
|
+
oldValue:c,newValue:a,numOfItems:b});K.progress!==_$_f736[137]&&aa.setConfig.call(this,g.state,!0,!0);K.ignore||(K.cascade=!0,ia.updateConfig.call(this,d),K.cascade=!1);ha.references.call(this);L.refresh.call(this);ha.update.call(this);H.call(this.parent,_$_f736[364],this,c,a,b)};e.add=function(c,a,b,d){if(!U.call(this.parent,this))return!1;if(!this.options.allowInsertRow)return console.error(_$_f736[365]),!1;let f;if(!Array.isArray(c)){f=0<c?parseInt(c):1;d?(d=JSON.parse(JSON.stringify(d)),d=Ya.standardize(d)):
|
|
306
|
+
d=[];b=!!b;c=this.options.data?this.options.data.length-1:0;if(typeof a===_$_f736[12]||a>c||0>a)a=c,b=!1;f||(f=1);a=b?a:a+1;b=0;c=[];for(let g=a;g<a+f;g++){let h=d&&d[b]&&d[b].id?d[b].id:xa.next.call(this),k=d&&d[b]&&d[b].data?d[b].data:null;b++;c.push({id:h,row:g,data:k})}}a=H.call(this.parent,_$_f736[366],this,c);if(!1===a)return console.log(_$_f736[367]),!1;a&&(c=a);l.call(this,c);H.call(this.parent,_$_f736[368],this,c)};e.del=function(c,a){if(!U.call(this.parent,this))return!1;if(!this.options.allowDeleteRow)return console.error(_$_f736[369]),
|
|
307
|
+
!1;if(Array.isArray(c))var b=c;else{typeof c===_$_f736[12]&&(b=this.getSelectedRows(!0),b.length?(c=parseInt(b[0]),a=b.length):(c=this.options.data.length-1,a=1));b=this.options.data.length-1;if(typeof c===_$_f736[12]||c>b||0>c)c=b;a||(a=1);c+a>=this.options.data.length&&(a=this.options.data.length-c,a>=this.options.data.length&&(a=this.options.data.length));b=[];for(var d=c;d<c+a;d++)b.push(d)}c=H.call(this.parent,_$_f736[370],this,b);if(!1===c)return console.log(_$_f736[371]),!1;c&&(b=c);a:{c=b;
|
|
308
|
+
var f=this.getPrimaryKey();a=Q.attributes();d=[];let h=[];var g=this.options.columns.length;let k=aa.getConfig.call(this,this.rows);for(let m=0;m<c.length;m++){let n=c[m],r=this.rows[n];if(!r){Fa.call(this.parent,_$_f736[359]);break a}for(let p=0;p<g;p++)Q.getAttributes.call(this,a,p,n,d);h.push({id:this.getRowId(n,f),row:n,options:e.getProperties(r)});r.group&&Ua.updateDom.call(this,n,!0);aa.updateConfig.call(this,k.distribution,n,0,r)}for(f=0;f<c.length;f++)g=c[f],V.attached.call(this,g)&&this.rows[g].element.remove(),
|
|
309
|
+
ra.updateConfig.call(this,_$_f736[233],g,0),this.rows[g]=null,this.records[g]=null,this.options.data[g]=null;h.length&&(ca.reset.call(this),this.rows=la.call(this.rows),this.records=la.call(this.records),this.options.data=la.call(this.options.data),this.merged&&this.merged.rows&&(this.merged.rows=la.call(this.merged.rows)),this.results&&(this.results=Ea.refresh.call(this)),M.call(this,_$_f736[97],{rows:c}),k&&(a.rowGroups=k.state),K.call(this.parent,{worksheet:this,action:_$_f736[97],rows:c,changes:h,
|
|
310
|
+
attributes:a}),aa.setConfig.call(this,k.state,!0,!0),K.ignore||(K.cascade=!0,ia.updateConfig.call(this,qa(this.options.freezeRows,c)),K.cascade=!1),ha.references.call(this,d),L.refresh.call(this),ha.update.call(this))}H.call(this.parent,_$_f736[372],this,b)};e.isVisible=function(c){let a=this.rows;return a&&!1!==a[c].visible};e.getProperties=function(c){let a=[_$_f736[373],_$_f736[374],_$_f736[21],_$_f736[375],_$_f736[40],_$_f736[376],_$_f736[377],_$_f736[378]],b={};for(let d=0;d<a.length;d++)typeof c[a[d]]!==
|
|
311
|
+
_$_f736[12]&&(b[a[d]]=c[a[d]]);return b};return e}(),S=function(){const l=function(c){let a=[],b=[],d=this,f=this.rows.length;ca.reset.call(this);let g=aa.getConfig.call(this,this.options.columns);c.forEach(function(h){typeof h!==_$_f736[18]&&(h={column:Number(h)});if(null===h.column||typeof h.column===_$_f736[12])h.column=d.options.columns.length;var k=h.options||{};k.width||(k.width=100);d.options.columns.splice(h.column,0,k);d.headers.splice(h.column,0,null);d.colgroup.splice(h.column,0,null);
|
|
312
|
+
for(k=0;k<f;k++)d.dataType?O.call(d,h.column,k,_$_f736[11]):d.options.data[k].splice(h.column,0,_$_f736[11]),d.records[k].splice(h.column,0,{element:null,x:h.column,y:k,v:null});a.push(h.column);if(h.data)for(k=0;k<f;k++)typeof h.data[k]===_$_f736[12]&&(h.data[k]=_$_f736[11]),b.push({x:h.column,y:k,value:h.data[k]});aa.updateConfig.call(d,g.distribution,h.column,1);ra.updateConfig.call(d,_$_f736[231],h.column,1);Z.create.call(d,h.column)});M.call(this,_$_f736[98],{columns:c,changes:a});K.call(this.parent,
|
|
313
|
+
{worksheet:this,action:_$_f736[98],columns:c,changes:a});ma.updateConfig.call(d,a,1);ha.references.call(this);b.length&&ja.applyValues.call(this,b);K.ignore||(K.cascade=!0,Ba.updateConfig.call(this,a,1),da.updateConfig.call(this,qa(this.options.freezeColumns,a,!0)),K.cascade=!1);K.progress!==_$_f736[137]&&aa.setConfig.call(this,g.state,!0);L.refresh.call(this);ha.update.call(this)},e=function(c){c.getColumn=e[_$_f736[70]];c.getColumnIdByName=e.getByName;c.getPrimaryKey=e.getPrimaryKey;c.moveColumn=
|
|
314
|
+
e.move;c.insertColumn=e.add;c.deleteColumn=e.del;c.showColumn=e.setVisibility.bind(c,!0);c.hideColumn=e.setVisibility.bind(c,!1)};e.visibility=function(c,a){Array.isArray(a)||(a=[a]);let b,d,f=c?_$_f736[180]:_$_f736[179],g=Object.keys(a),h=[];for(let k=0;k<g.length;k++)if(b=a[g[k]],(d=this.options.columns[b])&&d.type!==_$_f736[147]&&d.visible!==c){if(this.colgroup[b])this.colgroup[b].classList[f](_$_f736[246]);d.visible=!!c;h.push(b)}if(h.length)return L.refresh.call(this),c?ca.refresh.call(this):
|
|
315
|
+
ea.reset.call(this),h};e.setVisibility=function(c,a){if(a=e.visibility.call(this,c,a))K.call(this.parent,{worksheet:this,action:c?_$_f736[105]:_$_f736[104],records:a}),M.call(this,c?_$_f736[105]:_$_f736[104],{data:a}),H.call(this.parent,_$_f736[380],this,c,a)};e.left=function(c){let a=this.options.columns,b=0;for(let d=0;d<c;d++)S.isVisible.call(this,d)&&(b+=parseInt(a[d].width));return b};e.width=function(c){let a=this.options.columns;if(a[c])return parseInt(a[c].width)};e[_$_f736[70]]=function(c){return this.options.columns[c]||
|
|
316
|
+
!1};e.attached=function(c){return!!this.headers[c]&&this.headers[c].parentNode};e.detach=function(c,a){this.headers[c].remove();this.colgroup[c].remove();if(this.options.footers)for(var b=0;b<this.options.footers.length;b++)this.footers.content[b][c].element&&this.footers.content[b][c].element.remove();if(a)for(a=this.rows.length,b=0;b<a;b++)this.records[b][c].element&&this.records[b][c].element.remove()};e.getByName=function(c){let a=this.options.columns,b=a.length;for(let d=0;d<b;d++)if(a[d].name===
|
|
317
|
+
c)return d;return!1};e.getPrimaryKey=function(){let c=this.options.columns,a=c.length;for(let b=0;b<a;b++)if(typeof c[b].primaryKey!==_$_f736[12])return b;return!1};e.move=function(c,a,b){if(!U.call(this.parent,this))return!1;b||(b=1);ca.reset.call(this);var d=this.options.columns,f=this.options.freezeColumns;let g=aa.getConfig.call(this,d);if(g){for(var h=c;h<c+b;h++){var k=d[h];k.group?Ga.updateDom.call(this,h,!0):k.parentGroup&&(delete k.parentGroup,this.colgroup[h]&&this.colgroup[h].classList.remove(_$_f736[208]));
|
|
318
|
+
aa.updateConfig.call(this,g.distribution,h,0,k)}g.distribution=la.call(g.distribution);for(d=a;d<a+b;d++)aa.updateConfig.call(this,g.distribution,d,1)}d=null;if(f){h=[];for(k=a;k<a+b;k++)h.push(k);(k=qa.call(this,f,h,1))||(k=f);h=[];for(let m=c;m<c+b;m++)h.push(m);(h=qa.call(this,k,h,0))||(h=k);h.length!==f.length&&(d=h)}ua.call(this.options.columns,c,b,a);ua.call(this.headers,c,b,a);ua.call(this.colgroup,c,b,a);for(f=0;f<this.rows.length;f++)this.dataType||ua.call(this.options.data[f],c,b,a),ua.call(this.records[f],
|
|
319
|
+
c,b,a);if(this.options.footers)for(f=0;f<this.options.footers.length;f++)ua.call(this.options.footers[f],c,b,a),ua.call(this.footers.content[f],c,b,a);M.call(this,_$_f736[101],{f:c,t:a,q:b});K.call(this.parent,{worksheet:this,action:_$_f736[101],oldValue:c,newValue:a,numOfItems:b,attributes:{columnGroups:g.state}});K.progress!==_$_f736[137]&&aa.setConfig.call(this,g.state,!0);K.ignore||(K.cascade=!0,da.updateConfig.call(this,d),K.cascade=!1);ha.references.call(this);L.refresh.call(this);ha.update.call(this);
|
|
320
|
+
H.call(this.parent,_$_f736[381],this,c,a)};e.add=function(c,a,b,d,f){if(!U.call(this.parent,this))return!1;if(!this.options.allowInsertColumn)return console.error(_$_f736[382]),!1;let g;if(!Array.isArray(c)){g=0<c?parseInt(c):1;f||(f=[]);b=!!b;(c=this.options.columns.length)&&--c;if(typeof a===_$_f736[12]||a>c||0>a)a=c,b=!1;g||(g=1);a=b?a:a+1;b=this.rows.length;let h=0;d||(d=[]);c=[];for(let k=a;k<a+g;k++){let m=d[h]||{};m.type||(m.type=_$_f736[89]);m.width||(m.width=this.options.defaultColWidth);
|
|
321
|
+
m.type!==_$_f736[91]&&m.type!==_$_f736[383]||m.source||(m.source=[]);this.dataType&&typeof m.name===_$_f736[12]&&(m.name=_$_f736[384]+Math.floor(1E4*Math.random()));let n=[];for(let r=0;r<b;r++){let p=_$_f736[11];f&&f[r]&&f[r][h]&&(p=f[r][h]);n.push(p)}c.push({column:k,data:n,options:m});h++}}a=H.call(this.parent,_$_f736[385],this,c);if(!1===a)return console.log(_$_f736[386]),!1;a&&(c=a);l.call(this,c);H.call(this.parent,_$_f736[387],this,c)};e.del=function(c,a){if(U.call(this.parent,this))if(this.options.allowDeleteColumn)this.options.columns.length||
|
|
322
|
+
console.error(_$_f736[389]);else return console.error(_$_f736[388]),!1;else return!1;if(Array.isArray(c))var b=c;else{typeof c===_$_f736[12]&&(b=this.getSelectedColumns(),b.length?(c=parseInt(b[0]),a=parseInt(b.length)):(c=this.options.columns.length-1,a=1));b=this.options.columns.length-1;if(typeof c===_$_f736[12]||c>b||0>c)c=b;a||(a=1);c+a>=this.options.columns.length&&(a=this.options.columns.length-c,a>=this.options.columns.length&&(a--,console.error(_$_f736[390])));b=[];for(var d=c;d<c+a;d++)b.push(d)}c=
|
|
323
|
+
H.call(this.parent,_$_f736[391],this,b);if(!1===c)return console.log(_$_f736[392]),!1;c&&(b=c);a:{c=b;a=Q.attributes();d=[];let k=[],m=this.rows.length,n=aa.getConfig.call(this,this.options.columns);for(var f=0;f<c.length;f++){var g=c[f],h=this.options.columns[g];if(!h){Fa.call(this.parent,_$_f736[379]);break a}for(let r=0;r<m;r++)Q.getAttributes.call(this,a,g,r,d);k.push({column:g,options:JSON.parse(JSON.stringify(h))});h.group&&Ga.updateDom.call(this,g,!0);aa.updateConfig.call(this,n.distribution,
|
|
324
|
+
g,0,h)}for(f=0;f<c.length;f++){g=c[f];S.attached.call(this,g)&&S.detach.call(this,g,!0);ra.updateConfig.call(this,_$_f736[231],g,0);for(h=0;h<m;h++)this.dataType?O.call(this,g,h,null,!0):this.options.data[h][g]=null,this.records[h][g]=null;this.options.columns[g]=null;this.headers[g]=null;this.colgroup[g]=null}if(k.length){ca.reset.call(this);this.options.columns=la.call(this.options.columns);this.headers=la.call(this.headers);this.colgroup=la.call(this.colgroup);for(f=0;f<m;f++)this.dataType||(this.options.data[f]=
|
|
325
|
+
la.call(this.options.data[f])),this.records[f]=la.call(this.records[f]);this.merged&&this.merged.cols&&(this.merged.cols=la.call(this.merged.cols));M.call(this,_$_f736[99],{columns:c});n&&(a.columnGroups=n.state);K.call(this.parent,{worksheet:this,action:_$_f736[99],columns:c,changes:k,attributes:a});ma.updateConfig.call(this,c,0);aa.setConfig.call(this,n.state,!0);K.ignore||(K.cascade=!0,Ba.updateConfig.call(this,c,0),da.updateConfig.call(this,qa(this.options.freezeColumns,c)),K.cascade=!1);ha.references.call(this,
|
|
326
|
+
d);L.refresh.call(this);ha.update.call(this)}}H.call(this.parent,_$_f736[393],this,b)};e.isVisible=function(c){let a=this.options.columns;return!1===a[c].visible||a[c].type===_$_f736[147]||a[c].width===_$_f736[198]||a[c].width===_$_f736[154]?!1:!0};return e}(),Oa=function(){const l={number:_$_f736[394],text:_$_f736[395],date:_$_f736[396],list:_$_f736[397],empty:_$_f736[398],notEmpty:_$_f736[399]},e=function(b){let d;d=b.type===_$_f736[400]?_$_f736[401]:_$_f736[402]+l[b.type];b.criteria&&(d+=_$_f736[187]+
|
|
327
|
+
b.criteria);b.type===_$_f736[403]?(b=typeof b.value[0]!==_$_f736[10]?b.value[0].join(_$_f736[51]):b.value[0],d+=_$_f736[404]+b+_$_f736[320]):Array.isArray(b.value)&&(b.value[0]&&(d+=_$_f736[187]+b.value[0]),1<b.value.length&&(d+=_$_f736[405]+b.value[1]));return d},c=function(b){if(b=b.element){b.classList.contains(_$_f736[406])&&(b.removeAttribute(_$_f736[407]),b.classList.remove(_$_f736[406]));let d=b.getAttribute(_$_f736[408]);if(d){d=d.split(_$_f736[51]);for(let f=0;f<d.length;f++)b.classList.remove(d[f]);
|
|
328
|
+
b.removeAttribute(_$_f736[408])}}},a=function(b){b.getValidations=a[_$_f736[70]];b.loadValidations=a.loadValidations;b.setValidations=a[_$_f736[17]];b.resetValidations=a.reset;b.hasErrors=a.errors};a.errors=function(b,d){typeof d===_$_f736[12]&&typeof b===_$_f736[10]&&(d=I.getCoordsFromCellName(b),b=d[0],d=d[1]);if(b=this.records[d][b])if(d=a.loadValidations.call(this,b))for(let f=0;f<d.length;f++)if(!jSuites.validations(b.v,d[f].rules))return!0;return!1};a.loadValidations=function(b,d){let f=b;typeof b!==
|
|
329
|
+
_$_f736[18]&&(f=this.records[d][b]);if(b=this.parent.validations){d=[];for(let g=0;g<b.length;g++)b[g]&&b[g].worksheet===this.worksheetName&&ea.isSelected(f.x,f.y,b[g].range)&&d.push(b[g]);return d}};a[_$_f736[70]]=function(b){let d=this.parent.config.validations;return b?d[b]:d};a[_$_f736[17]]=function(b){if(!U.call(this.parent)||!Pa.call(this.parent,_$_f736[409]))return!1;Array.isArray(b)||typeof b!==_$_f736[18]||(b=[b]);if(Array.isArray(b)){let g=this.parent.config.validations,h,k,m,n=[];for(let r=
|
|
330
|
+
0;r<b.length;r++){m=b[r].value;k=null;if(0<=b[r].index)if(h=b[r].index,typeof m===_$_f736[10])k=g[h].range,m&&(m=Ja(m)),g[h].range=m;else{g&&g[h]&&(k=JSON.parse(JSON.stringify(g[h])));var d=h,f=m;Array.isArray(this.parent.config.validations)||(this.parent.config.validations=[]);this.parent.config.validations[d]=f}else d=m,Array.isArray(this.parent.config.validations)||(this.parent.config.validations=[]),f=this.parent.config.validations.length,this.parent.config.validations.push(d),h=f;n.push({index:h,
|
|
331
|
+
oldValue:k,value:m})}K.call(this.parent,{worksheet:this,action:_$_f736[125],records:n});M.call(this,_$_f736[125],{data:n});a.rebuild.call(this,n);H.call(this.parent,_$_f736[411],this,n)}else console.error(_$_f736[410])};a.reset=function(b){if(!U.call(this.parent))return!1;typeof b===_$_f736[12]?b=this.parent.config.validations:Array.isArray(b)||(b=[b]);b=b.map(function(d,f){return{index:f,value:null}});a[_$_f736[17]].call(this,b)};a.applyValidation=function(b,d){if(!this.parent.config.validations)return!0;
|
|
332
|
+
if(b.element){var f=a.loadValidations.call(this,b);if(f){let h=b.v;if(ba(h))return!0;c(b);for(let k=0;k<f.length;k++){var g=f[k].rules;f[k].cache[_$_f736[17]](b,!0);if(!jSuites.validations(h,g)){if(g.action!==_$_f736[412]){f=g.text||e(g);if(b.element&&(b.element.setAttribute(_$_f736[407],f),b.element.classList.add(_$_f736[406]),g.action===_$_f736[413]&&!d))return setTimeout(function(){b.element.removeAttribute(_$_f736[407]);b.element.classList.remove(_$_f736[406])},3E3),!1;break}}else if(g.action===
|
|
333
|
+
_$_f736[412]){let m=[];g.className&&(m=g.className.split(_$_f736[51]));m.push(Ra.call(this.parent,f[k].index,_$_f736[414]));for(g=0;g<m.length;g++)b.element.classList.add(m[g]);b.element.setAttribute(_$_f736[408],m)}}}}return!0};a.rules=function(b,d,f){var g=this[b];g&&g.cache.size&&g.cache.forEach(function(h,k){if(f)f[_$_f736[17]](k,!0)});if(d&&d.range){if(g=d.range.split(_$_f736[28]),g[1]){let h=T(g[0]);this[b]={index:b,worksheet:h,range:I.getCoordsFromRange(g[1]),rules:d,cache:new Map}}}else this[b]=
|
|
334
|
+
null};a.rebuild=function(b){let d=this,f=new Map;b.forEach(function(g){let h=d.parent.config.validations[g.index];a.rules.call(d.parent.validations,g.index,h,f);h&&h.range&&(g=h.range.split(_$_f736[28]),I.getTokensFromRange.call(d,g[1],!0).forEach(function(k){k=I.getCoordsFromCellName(k);if((k=d.records[k[1]][k[0]])&&k.element)f[_$_f736[17]](k,!0)}))});f.forEach(function(g,h){a.applyValidation.call(d,h)});Va.call(d.parent,_$_f736[414])};a.build=function(){let b=this;b.validations||(b.validations=
|
|
335
|
+
[]);let d=this.config.validations;if(d){if(!Pa.call(this,_$_f736[409]))return!1;Va.call(this,_$_f736[414]);d.forEach(function(f,g){f&&f.range&&(f.range=Ja(f.range));a.rules.call(b.validations,g,f)})}};return a}(),Za=function(){const l=function(a,b){b||(b={});a=a.split(_$_f736[300]);a.map(function(d){if(d){var f=d.split(_$_f736[189]);d=f[0].trim();(f=(_$_f736[11]+f[1]).trim())?b[d]=f:b[d]&&delete b[d]}});return b},e=function(a,b){Array.isArray(this.parent.config.style)||(this.parent.config.style=[]);
|
|
336
|
+
var d={};typeof b!==_$_f736[12]&&(b=this.parent.config.style[b])&&l(b,d);l(a,d);a=null;for(b=0;b<this.parent.config.style.length;b++){var f=l(this.parent.config.style[b]);pb(f,d)&&(a=b)}if(null===a){a=this.parent.config.style.length;b=this.parent.config.style;f=a;let g=[],h=Object.keys(d);for(let k=0;k<h.length;k++)g.push(h[k]+_$_f736[189]+d[h[k]]);d=g.join(_$_f736[300]);b[f]=d}return a},c=function(a){a.getStyle=c[_$_f736[70]];a.setStyle=c[_$_f736[17]];a.resetStyle=c.reset};c[_$_f736[70]]=function(a,
|
|
337
|
+
b){let d=this.parent.config.style;a=Q.extractConfiguration.call(this,a,_$_f736[268]);if(typeof a===_$_f736[18]){if(!0!==b){b=Object.keys(a);for(let f=0;f<b.length;f++)a[b[f]]=d[a[b[f]]]}}else!0!==b&&(a=d[a]);return a};c[_$_f736[17]]=function(a,b,d,f){if(!U.call(this.parent,this))return!1;let g={},h={};if(b)if(typeof a==_$_f736[10])g[a]=b+_$_f736[189]+d;else{if(a&&a.length)for(var k=0;k<a.length;k++){let m=I.getColumnNameFromCoords(a[k].x,a[k].y);g[m]=b+_$_f736[189]+d}}else for(b=Object.keys(a),d=
|
|
338
|
+
0;d<b.length;d++)g[b[d]]=a[b[d]];a=Object.keys(g);if(a.length){for(b=0;b<a.length;b++)d=I.getCoordsFromColumnName(a[b]),d=this.records[d[1]][d[0]],k=g[a[b]],typeof d.s!==_$_f736[12]?(h[a[b]]=this.parent.config.style[d.s],d.element&&d.element.classList.remove(Ra.call(this.parent,d.s))):h[a[b]]=null,typeof k===_$_f736[12]||null===k||!1===k?d.s=null:(jSuites.isNumeric(k)?d.s=k:d.s=e.call(this,k,f?null:d.s),c.applyDom.call(this,d));Va.call(this.parent,_$_f736[21]);this.refreshBorders();K.call(this.parent,
|
|
339
|
+
{worksheet:this,action:_$_f736[108],newValue:g,oldValue:h});M.call(this,_$_f736[108],[g]);H.call(this.parent,_$_f736[415],this,g,h)}};c.reset=function(a){if(!U.call(this.parent,this))return!1;if(a){var b={};typeof a===_$_f736[10]&&(a=[a]);for(let f=0;f<a.length;f++){var d=I.getCoordsFromColumnName(a[f]);d=this.records[d[1]][d[0]];d.s&&(b[a[f]]=this.parent.config.style[d.s],d.element&&d.element.classList.remove(Ra.call(this.parent,d.s)))}this.refreshBorders();K.call(this.parent,{worksheet:this,action:_$_f736[109],
|
|
340
|
+
cells:a,oldValue:b});M.call(this,_$_f736[109],[a]);H.call(this.parent,_$_f736[417],this,a)}else console.error(_$_f736[416])};c.build=function(a){let b=Object.keys(a),d=b.length;if(d)for(let f=0;f<d;f++){let g=a[b[f]];jSuites.isNumeric(g)||(g=e.call(this,g));Y.getTokensFromRange.call(this,b[f],!0).forEach(function(h){a[h]=g})}Va.call(this.parent,_$_f736[21])};c.applyDom=function(a){let b=a.element;b&&(a.options&&typeof a.options.s!==_$_f736[12]&&(a.s=a.options.s),typeof a.s!==_$_f736[12]&&b.classList.add(Ra.call(this.parent,
|
|
341
|
+
a.s)))};return c}(),lb=function(){const l=function(e){e.getComments=l[_$_f736[70]];e.setComments=l[_$_f736[17]]};l[_$_f736[70]]=function(e){return Q.extractConfiguration.call(this,e,_$_f736[418])};l[_$_f736[17]]=function(e,c){if(!U.call(this.parent,this))return!1;let a={};typeof e==_$_f736[10]?a[e]=c:a=e;if(e=H.call(this.parent,_$_f736[419],this,a))a=e;else if(!1===e)return!1;e={};c=Object.keys(a);if(c.length){for(let b=0;b<c.length;b++){let d=I.getCoordsFromColumnName(c[b]);this.records[d[1]]&&this.records[d[1]][d[0]]&&
|
|
342
|
+
(e[c[b]]=this.records[d[1]][d[0]].c||_$_f736[11],this.records[d[1]][d[0]].c=a[c[b]],l.applyDom.call(this,this.records[d[1]][d[0]]))}K.call(this.parent,{worksheet:this,action:_$_f736[113],newValue:a,oldValue:e});M.call(this,_$_f736[113],[a]);H.call(this.parent,_$_f736[420],this,a,e)}};l.applyDom=function(e){let c=e.element;c&&((e=e.c)?typeof e===_$_f736[10]?c.setAttribute(_$_f736[375],e):c.classList.add(_$_f736[421]):(c.removeAttribute(_$_f736[375]),c.classList.remove(_$_f736[421])))};return l}(),
|
|
343
|
+
tb=function(){const l=function(e){e.getMeta=l[_$_f736[70]];e.setMeta=l[_$_f736[17]];e.resetMeta=l.reset};l[_$_f736[70]]=function(e){return Q.extractConfiguration.call(this,e,_$_f736[422])};l[_$_f736[17]]=function(e,c,a){if(!U.call(this.parent,this))return!1;if(typeof e==_$_f736[10]&&c){a||(a=_$_f736[11]);var b={};b[e]={};b[e][c]=a;e=b}c=Object.keys(e);if(c.length){a={};for(b=0;b<c.length;b++){var d=I.getCoordsFromColumnName(c[b]);let f=this.records[d[1]][d[0]];f.meta||(f.meta={});a[c[b]]||(a[c[b]]=
|
|
344
|
+
{});let g=Object.keys(e[c[b]]);for(d=0;d<g.length;d++)f.meta[g[d]]=a[c[b]][g[d]]=e[c[b]][g[d]]}Object.keys(a).length&&(M.call(this,_$_f736[423],[a]),H.call(this.parent,_$_f736[424],this,a))}};l.reset=function(e){if(!U.call(this.parent,this))return!1;if(e){typeof e==_$_f736[10]&&(e=[e]);for(var c=0;c<e.length;c++){var a=I.getCoordsFromColumnName(e[c]);this.records[a[1]][a[0]]&&delete this.records[a[1]][a[0]]}}else{c=this.rows.length;a=this.options.columns.length;for(let b=0;b<c;b++)for(let d=0;d<a;d++)typeof this.records[b][d].meta!==
|
|
345
|
+
_$_f736[12]&&delete this.records[b][d].meta}M.call(this,_$_f736[425],e);H.call(this.parent,_$_f736[426],this,e)};return l}(),ub=function(){const l=function(e){e.orderBy=l.execute};l.handler=function(e){return function(c,a){c=c[1];a=a[1];return e?c===_$_f736[11]&&a!==_$_f736[11]?1:c!==_$_f736[11]&&a===_$_f736[11]?-1:c>a?-1:c<a?1:0:c===_$_f736[11]&&a!==_$_f736[11]?1:c!==_$_f736[11]&&a===_$_f736[11]?-1:c>a?1:c<a?-1:0}};l.execute=function(e,c,a,b){if(0<=e){var d=Z.element.call(this,e);c=null==c?d&&d.classList.contains(_$_f736[427])?
|
|
346
|
+
1:0:c?1:0;d=[];for(let h=0;h<this.options.data.length;h++){var f=Ma[_$_f736[70]].call(this,e,h);var g=this.records[h][e].v;g=f.type===_$_f736[338]||f.type===_$_f736[342]||f.type===_$_f736[343]||f.type===_$_f736[355]||f.type===_$_f736[37]||f.type===_$_f736[428]?Number(g):jSuites.isNumeric(g)?Number(g):g.toLowerCase();d[h]=[h,g]}f=l.handler(c,e);Ia.call(this,_$_f736[429])&&(f=this.parent.config.sorting(c,e));d.sort(f);f=a?!0:!1;if(!a)for(a=[],g=0;g<d.length;g++)a[g]=d[g][0];if(g=H.call(this.parent,
|
|
347
|
+
_$_f736[430],this,e,c,a))a=g;else if(!1===g)return!1;if(f)this.destroyMerge();else if(0<Object.keys(this.getMerge()).length)if(confirm(F(_$_f736[431])))this.destroyMerge();else return!1;if(a.length<d.length)for(f=0;f<d.length;f++)-1===a.indexOf(d[f][0])&&a.push(d[f][0]);d=[];for(f=0;f<a.length;f++)d[a[f]]=f;Xa.call(this,!1);ca.reset.call(this);M.call(this,_$_f736[116],{column:e,direction:c,order:a});K.call(this.parent,{worksheet:this,action:_$_f736[116],column:e,newValue:a,oldValue:d,direction:c,
|
|
348
|
+
previousState:l.getState.call(this)});l.update.call(this,a);l.arrow.call(this,e,c,b);ca.refresh.call(this);H.call(this.parent,_$_f736[432],this,e,c,a);return!0}};l.update=function(e){let c=[];for(var a=0;a<e.length;a++)c[a]=this.options.data[e[a]];for(a=0;a<e.length;a++)this.options.data[a]=c[a];c=[];for(a=0;a<e.length;a++)c[a]=this.records[e[a]];this.records=c;c=[];for(a=0;a<e.length;a++)c[a]=this.rows[e[a]];this.rows=c;ha.references.call(this);this.tbody.innerHTML=_$_f736[11];L.refresh.call(this);
|
|
349
|
+
this.searchInput&&this.searchInput.value?ya.update.call(this,null):na.update.call(this)};l.arrow=function(e,c,a){for(let b=0;b<this.options.columns.length;b++){let d=Z.element.call(this,b);d&&(d.classList.remove(_$_f736[433]),d.classList.remove(_$_f736[427]))}typeof a===_$_f736[12]?(a=Z.element.call(this,e))&&a.classList.add(c?_$_f736[433]:_$_f736[427]):Array.isArray(a)&&(c=Z.element.call(this,a[0]))&&c.classList.add(a[1]?_$_f736[433]:_$_f736[427])};l.getState=function(){for(let e=0;e<this.options.columns.length;e++){let c=
|
|
350
|
+
Z.element.call(this,e);if(c){if(c.classList.contains(_$_f736[433]))return[e,1];if(c.classList.contains(_$_f736[427]))return[e,0]}}return null};return l}(),Ka=function(){const l=function(e){e.whichPage=l.whichPage;e.quantityOfPages=l.quantityOfPages;e.page=l[_$_f736[17]];e.updatePagination=l.update};l.build=function(){this.pageNumber=0;let e=document.createElement(_$_f736[46]),c=document.createElement(_$_f736[46]);this.pagination=document.createElement(_$_f736[46]);this.pagination.classList.add(_$_f736[434]);
|
|
351
|
+
this.pagination.appendChild(e);this.pagination.appendChild(c);this.options.pagination||(this.pagination.style.display=_$_f736[66]);this.element.appendChild(this.pagination)};l.pageUp=function(){0<this.pageNumber&&(this.pageNumber--,l[_$_f736[17]].call(this,this.pageNumber))};l.pageDown=function(){this.pageNumber<l.quantityOfPages.call(this)-1&&(this.pageNumber++,l[_$_f736[17]].call(this,this.pageNumber))};l.whichPage=function(e){let c=this.options.pagination;if(c)return this.rows[e]?(this.results&&
|
|
352
|
+
(e=this.results.indexOf(parseInt(e))),Math.ceil((parseInt(e)+1)/c)-1):null;console.log(_$_f736[435]);return!1};l.quantityOfPages=function(){let e=this.options.pagination;if(e)return Math.ceil((this.results?this.results.length:this.rows.length)/e);console.log(_$_f736[435]);return!1};l[_$_f736[17]]=function(e,c){let a=this.pageNumber,b=parseInt(this.options.pagination);if(b){if(null===e||-1===e)e=Math.ceil((this.results?this.results:this.rows).length/b)-1;if(!1===H.call(this.parent,_$_f736[437],this,
|
|
353
|
+
e,a,b))return!1;this.pageNumber=e;L.update.call(this);ca.refresh.call(this);ma.refresh.call(this);typeof c==_$_f736[14]&&c.call(this);H.call(this.parent,_$_f736[438],this,e,a,b)}else console.error(_$_f736[436])};l.update=function(){let e=this.pagination.children;e[0].innerHTML=_$_f736[11];e[1].innerHTML=_$_f736[11];if(this.options.pagination){var c;if(c=this.results?this.results.length:this.rows.length){c=Math.ceil(c/this.options.pagination);if(6>this.pageNumber){var a=1;var b=10>c?c:10}else 5>c-
|
|
354
|
+
this.pageNumber?(a=c-9,b=c,1>a&&(a=1)):(a=this.pageNumber-4,b=this.pageNumber+5);if(1<a){var d=document.createElement(_$_f736[46]);d.className=_$_f736[440];d.innerHTML=_$_f736[30];d.title=1;this.pagination.children[1].appendChild(d)}for(;a<=b;a++)d=document.createElement(_$_f736[46]),d.className=_$_f736[440],d.innerHTML=a,this.pagination.children[1].appendChild(d),this.pageNumber===a-1&&d.classList.add(_$_f736[441]);b<c&&(b=document.createElement(_$_f736[46]),b.className=_$_f736[440],b.innerHTML=
|
|
355
|
+
_$_f736[29],b.title=c,this.pagination.children[1].appendChild(b));e[0].innerHTML=F(_$_f736[442],[this.pageNumber+1,c])}else e[0].innerHTML=F(_$_f736[439]);this.options.tableOverflow&&(this.content.style.height=this.table.offsetHeight+16+_$_f736[19],this.scroll.style.height=_$_f736[198],this.table.style.top=_$_f736[198])}};return l}(),oa=function(){const l={isControl:function(e,c){return(e=this.options[e])?this.options.freezeColumnControl&&e[e.length-1]==parseInt(c):!1},end:function(){let e=this.visibleCols;
|
|
356
|
+
typeof l.event.x===_$_f736[12]&&(e=this.visibleRows);let c=l.event,a=null;if(c.d){a=[];for(let b=0;b<e.length;b++){let d=e[b];c.d>d&&a.push(d)}}this.parent.helper.style.display=_$_f736[11];l.event=null;return a},cancel:function(){l.event.d=null;l.end.call(this,!1)}};return l}(),ia=function(){const l=function(e){e.setFreezeRows=l[_$_f736[17]];e.resetFreezeRows=l.reset};l.update=function(e){let c=this.options.freezeRows;if(c){let a=this.thead.offsetHeight;for(let b=0;b<c.length;b++){let d=this.records[c[b]][e].element;
|
|
357
|
+
d&&(d.classList.add(_$_f736[443]),d.style.top=a+_$_f736[19]);V.isVisible.call(this,c[b])&&(a+=this.rows[c[b]].element.offsetHeight)}}};l.headers=function(){let e=this.options.freezeRows;if(e){let c=this.thead.offsetHeight;for(let a=0;a<e.length;a++){let b=this.rows[e[a]].element;b&&(b.firstChild.classList.add(_$_f736[443]),b.firstChild.style.top=c+_$_f736[19],V.isVisible.call(this,e[a])&&(c+=this.rows[e[a]].element.offsetHeight))}}else l.reset.call(this)};l.refresh=function(){var e=this.options.freezeRows;
|
|
358
|
+
if(e){let c;l.getHeight.call(this)>this.content.offsetHeight?c=_$_f736[444]:e>this.rows.length&&(c=_$_f736[445]);if(c)l.reset.call(this),console.error(c);else for(l.headers.call(this),e=0;e<this.visibleCols.length;e++)l.update.call(this,this.visibleCols[e])}};l.applyValue=function(e){this.options.freezeRows=e;let c=_$_f736[180];this.options.freezeRowControl&&!e&&(c=_$_f736[179]);this.headerContainer.firstChild.classList[c](_$_f736[446])};l[_$_f736[17]]=function(e){e=pa(e);let c=this.options.freezeRows;
|
|
359
|
+
l.applyReset.call(this);l.applyValue.call(this,e);L.refresh.call(this);ca.refresh.call(this);K.call(this.parent,{worksheet:this,action:_$_f736[115],newValue:e,oldValue:c});M.call(this,_$_f736[115],{row:e})};l.reset=function(){l[_$_f736[17]].call(this,null)};l.applyReset=function(){if(this.options.freezeRows){let e=this.rows.length,c=this.options.columns.length;for(let a=0;a<e;a++){let b=this.rows[a].element;if(b&&b.firstChild.classList.contains(_$_f736[443])){b.firstChild.classList.remove(_$_f736[443]);
|
|
360
|
+
b.firstChild.style.top=_$_f736[11];for(let d=0;d<c;d++)if(b=this.records[a][d].element)b.classList.remove(_$_f736[443]),b.style.top=_$_f736[11]}}}};l.getHeight=function(e){let c=0;e||(c=this.thead.offsetHeight);if(e=this.options.freezeRows)for(let a=0;a<e.length;a++)V.isVisible.call(this,e[a])&&(c+=V.height.call(this,e[a]));return c};l.firstRow=function(){let e=0,c=this.options.freezeRows;if(c){for(let a=0;a<c.length;a++)V.isVisible.call(this,c[a])&&(e=c[a]);e++}return e};l.start=function(e,c){oa.event=
|
|
361
|
+
{y:c,d:c};this.content.scrollTop=0;e=this.content.offsetTop+l.getHeight.call(this);c=this.parent.helper;c.style.display=_$_f736[39];c.style.top=e+_$_f736[19];c.style.left=_$_f736[198];c.style.width=this.content.offsetWidth+_$_f736[19];c.style.height=_$_f736[222]};l.end=function(){let e=oa.end.call(this);l[_$_f736[17]].call(this,e)};l.cancel=oa.cancel;l.move=function(e){var c=e.target.getAttribute(_$_f736[72]);if(null!=c){var a=c=parseInt(c);(e=e.target.clientHeight/2>e.offsetY)||(a=c+1);ra.isRowMerged.call(this,
|
|
362
|
+
c)||(oa.event.d=a,a=this.parent.element.getBoundingClientRect(),c=this.rows[c].element.getBoundingClientRect(),this.parent.helper.style.top=(e?c.top:c.bottom)-a.top+_$_f736[19])}};l.isControl=function(e){return oa.isControl.call(this,_$_f736[447],e)};l.updateConfig=function(e){e&&l[_$_f736[17]].call(this,e)};return l}(),da=function(){const l=function(e){e.setFreezeColumns=l[_$_f736[17]];e.resetFreezeColumns=l.reset};l.width=function(){if(this.options.freezeColumns){let e=this.rows.length;l.headers.call(this);
|
|
363
|
+
for(let c=0;c<e;c++)this.rows[c].element&&l.update.call(this,c)}};l.update=function(e){let c=this.options.freezeColumns;if(c){let a=wa.call(this)?50:0;for(let b=0;b<c.length;b++){let d=this.records[e][c[b]].element;d&&(d.classList.add(_$_f736[71]),d.style.left=a+_$_f736[19]);S.isVisible.call(this,c[b])&&(a+=S.width.call(this,c[b]))}}};l.headers=function(){let e=this.options.freezeColumns;if(e){let a=wa.call(this)?50:0;for(let b=0;b<e.length;b++){var c=Z.element.call(this,e[b]);if(c){c.classList.add(_$_f736[71]);
|
|
364
|
+
c.style.left=a+_$_f736[19];if(this.options.footers)for(c=0;c<this.options.footers.length;c++)this.footers.content[c][b].element.classList.add(_$_f736[71]),this.footers.content[c][b].element.style.left=a+_$_f736[19];S.isVisible.call(this,e[b])&&(a+=S.width.call(this,e[b]))}}}else l.reset.call(this)};l.refresh=function(){var e=this.options.freezeColumns;if(e){let c;l.getWidth.call(this)>this.content.offsetWidth?c=_$_f736[448]:e[e.length-1]>this.options.columns.length&&(c=_$_f736[449]);if(c)l.reset.call(this),
|
|
365
|
+
console.error(c);else for(l.headers.call(this),e=0;e<this.visibleRows.length;e++)l.update.call(this,this.visibleRows[e])}};l.applyValue=function(e){this.options.freezeColumns=e;let c=_$_f736[180];this.options.freezeColumnControl&&!e&&(c=_$_f736[179]);this.headerContainer.firstChild.classList[c](_$_f736[450])};l[_$_f736[17]]=function(e){e=pa(e);let c=this.options.freezeColumns;l.applyReset.call(this);l.applyValue.call(this,e);l.width.call(this);L.refresh.call(this);ca.refresh.call(this);K.call(this.parent,
|
|
366
|
+
{worksheet:this,action:_$_f736[114],newValue:e,oldValue:c});M.call(this,_$_f736[114],{column:e})};l.reset=function(){l[_$_f736[17]].call(this,null)};l.applyReset=function(){let e=this.options.freezeColumns;if(e){var c;let b=this.rows.length;for(let d=1;d<=e.length;d++){for(var a=0;a<this.thead.children.length;a++)if(c=this.thead.children[a])if(c=c.children[d])c.classList.remove(_$_f736[71]),c.style.left=_$_f736[11];for(a=0;a<b;a++)if(c=this.rows[a].element)if(c=c.children[d])c.classList.remove(_$_f736[71]),
|
|
367
|
+
c.style.left=_$_f736[11];if(this.options.footers)for(c=0;c<this.options.footers.length;c++)a=this.tfoot.children[c].children[d],a.classList.remove(_$_f736[71]),a.style.left=_$_f736[11]}}};l.getWidth=function(e){let c=0;e||(c=wa.call(this)?50:0);if(e=this.options.freezeColumns)for(let a=0;a<e.length;a++)S.isVisible.call(this,e[a])&&(c+=S.width.call(this,e[a]));return c};l.firstColumn=function(){let e=0,c=this.options.freezeColumns;if(c){for(let a=0;a<c.length;a++)S.isVisible.call(this,c[a])&&(e=c[a]);
|
|
368
|
+
e++}return e};l.start=function(e,c){oa.event={x:c,d:c};this.content.scrollLeft=0;e=l.getWidth.call(this);c=this.parent.helper;c.style.display=_$_f736[39];c.style.top=this.content.offsetTop+_$_f736[19];c.style.left=e+_$_f736[19];c.style.width=_$_f736[222];c.style.height=this.content.offsetHeight+_$_f736[19];this.headerContainer.firstChild.classList.remove(_$_f736[450])};l.end=function(){let e=oa.end.call(this);l[_$_f736[17]].call(this,e)};l.cancel=oa.cancel;l.move=function(e){var c=e.target.getAttribute(_$_f736[76]);
|
|
369
|
+
if(null!=c){var a=c=parseInt(c);(e=e.target.clientWidth/2>e.offsetX)||a++;ra.isColumnMerged.call(this,c)||(oa.event.d=a,c=Z.element.call(this,c).getBoundingClientRect(),a=this.content.getBoundingClientRect(),this.parent.helper.style.left=(e?c.left:c.right)-a.left+_$_f736[19])}};l.isControl=function(e){return oa.isControl.call(this,_$_f736[451],e)};l.updateConfig=function(e){e&&l[_$_f736[17]].call(this,e)};return l}(),ha=function(){const l=function(){if(0<this.options.minSpareRows){var c=0;for(var a=
|
|
370
|
+
this.rows.length-1;0<=a;a--){var b=!1;for(var d=0;d<this.options.columns.length;d++)O.call(this,d,a)&&(b=!0);if(b)break;else c++}0<this.options.minSpareRows-c&&this.insertRow(this.options.minSpareRows-c)}if(0<this.options.minSpareCols){c=0;for(a=this.options.columns.length-1;0<=a;a--){b=!1;for(d=0;d<this.rows.length;d++)O.call(this,a,d)&&(b=!0);if(b)break;else c++}0<this.options.minSpareCols-c&&this.insertColumn(this.options.minSpareCols-c)}},e=function(){};e.build=function(){let c=this;this.content=
|
|
371
|
+
document.createElement(_$_f736[46]);this.content.classList.add(_$_f736[452]);this.content.addEventListener(_$_f736[453],function(b){if(!c.edition)return b.preventDefault(),!1});this.table=document.createElement(_$_f736[454]);this.thead=document.createElement(_$_f736[455]);this.tbody=document.createElement(_$_f736[456]);this.tfoot=document.createElement(_$_f736[457]);this.headers=[];this.colgroup=[];this.colgroupContainer=document.createElement(_$_f736[458]);let a=document.createElement(_$_f736[242]);
|
|
372
|
+
a.setAttribute(_$_f736[218],_$_f736[459]);this.colgroupContainer.appendChild(a);this.headerContainer=document.createElement(_$_f736[256]);a=document.createElement(_$_f736[240]);a.classList.add(_$_f736[460]);a.innerHTML=_$_f736[257];this.headerContainer.appendChild(a);this.thead.appendChild(this.headerContainer);this.table.classList.add(_$_f736[20]);this.table.setAttribute(_$_f736[461],_$_f736[154]);this.table.setAttribute(_$_f736[462],_$_f736[154]);this.table.setAttribute(_$_f736[463],_$_f736[464]);
|
|
373
|
+
this.table.appendChild(this.colgroupContainer);this.table.appendChild(this.thead);this.table.appendChild(this.tbody);this.table.appendChild(this.tfoot);this.corner=document.createElement(_$_f736[46]);this.corner.className=_$_f736[465];this.corner.setAttribute(_$_f736[463],_$_f736[466]);this.corner.setAttribute(_$_f736[467],_$_f736[468]);this.scroll=L.build.call(c);this.content.appendChild(this.scroll);this.content.appendChild(this.table);this.content.appendChild(this.corner);this.element.appendChild(this.content);
|
|
374
|
+
!0===this.options.tableOverflow&&(this.content.classList.add(_$_f736[85]),this.options.tableWidth&&(this.content.style.width=parseInt(this.options.tableWidth)+_$_f736[19]),this.options.pagination?this.content.classList.add(_$_f736[469]):this.options.tableHeight&&(this.content.style.height=parseInt(this.options.tableHeight)+_$_f736[19]));this.options.resize&&(this.content.style.resize=this.options.resize);!1===this.options.gridline&&this.table.classList.add(_$_f736[470]);this.options.freezeRowControl&&
|
|
375
|
+
!this.options.freezeRows&&a.classList.add(_$_f736[446]);this.options.freezeColumnControl&&!this.options.freezeColumns&&a.classList.add(_$_f736[450]);this.options.defaultColAlign&&this.table.classList.add(_$_f736[244]+this.options.defaultColAlign);this.options.textOverflow&&this.table.classList.add(_$_f736[471]);!1===this.options.selectLockedCells&&this.table.classList.add(_$_f736[472]);!1===this.options.selectionCopy&&(this.corner.style.display=_$_f736[66]);l.call(this);Ba.build.call(this);ya.build.call(this);
|
|
376
|
+
Ka.build.call(this);jb.build.call(this);na.onload.call(this);ma.build.call(this);L.call(this)};e.references=function(c){var a,b,d,f=this.options.columns.length,g=this.rows.length,h=this.options.footers;for(a=0;a<f;a++)if(d=Z.element.call(this,a)){var k=d.getAttribute(_$_f736[76]);if(k!=a&&(d.setAttribute(_$_f736[76],a),d.getAttribute(_$_f736[237])||(d.childNodes[0].textContent=I.getColumnName(a)),h))for(d=this.footers.content,b=0;b<d.length;b++)d[b][a]&&d[b][a].element&&(d[b][a].element.setAttribute(_$_f736[76],
|
|
377
|
+
a),ba(h[b][a])&&(d[b][a].v=h[b][a]=Y.shiftFormula.call(this,h[b][a],a-k,0)))}for(b=0;b<g;b++)d=this.rows[b],a=d.y,a!=b&&(d.y=b,null!==d.element&&(d.element.setAttribute(_$_f736[72],b),d.element.children[0].setAttribute(_$_f736[72],b),this.rows[b].title||(d.element.children[0].childNodes[0].textContent=b+1)));d=Y.getAllReferences.call(this);var m=d.size;if(m&&c&&c.length)for(a=0;a<c.length;a++)if(h=d[_$_f736[70]](c[a]))for(k=0;k<h.length;k++)Y.updateFormulaTokens.call(this,h[k],c[a],_$_f736[322]);
|
|
378
|
+
h={};for(b=0;b<g;b++)for(k=this.records[b],a=0;a<f;a++){var n=k[a];let p=n.x;var r=n.y;p!==a&&(n.x=a,null!==n.element&&n.element.setAttribute(_$_f736[76],a),typeof h[p]===_$_f736[12]&&(h[p]=a));r!==b&&(n.y=b,null!==n.element&&n.element.setAttribute(_$_f736[72],b));if(m&&(p!==a||r!==b)&&(n=I.getColumnNameFromCoords(p,r),r=d[_$_f736[70]](n))){let u=I.getColumnNameFromCoords(a,b);for(p=0;p<r.length;p++)Y.updateFormulaTokens.call(this,r[p],n,u)}}if(m)for(f=Object.keys(h),a=0;a<f.length;a++)if(m=f[a],
|
|
379
|
+
g=I.getColumnName(m),b=d[_$_f736[70]](g))for(m=I.getColumnName(h[m]),k=0;k<b.length;k++)Y.updateFormulaTokens.call(this,b[k],g,m);Y.tracking.call(this,c);Y.updateReferences.call(this,d);za.names.call(this);this.resetBorders(_$_f736[143],!0)};e.update=function(){l.call(this);ma.refresh.call(this)};return e}(),za=function(){const l={spreadsheet:function(e,c){let a={name:null,config:{},el:e,element:e,plugins:null,worksheets:[],queue:new Map,ignoreEvents:!1,ignorePersistence:!1};Ta.spreadsheet.call(a,
|
|
380
|
+
c);e.spreadsheet=a;e.jspreadsheet=a.worksheets;t.spreadsheet.push(a);a.name||(a.name=jSuites.guid());l.bind(a.config.root?a.config.root:document);e.classList.add(_$_f736[473]);!0===c.fullscreen&&e.classList.add(_$_f736[38]);var b=document.createElement(_$_f736[46]);a.toolbar=document.createElement(_$_f736[46]);a.toolbar.className=_$_f736[474];b.appendChild(a.toolbar);a.filter=na.build.call(a);b.appendChild(a.filter);a.helper=document.createElement(_$_f736[46]);a.helper.className=_$_f736[475];b.appendChild(a.helper);
|
|
381
|
+
a.loading=document.createElement(_$_f736[46]);a.loading.classList.add(_$_f736[476]);b.appendChild(a.loading);b.appendChild(ta.build(a));b.appendChild(mb(a));a.textarea=document.createElement(_$_f736[477]);a.textarea.className=_$_f736[478];a.textarea.tabIndex=_$_f736[479];b.appendChild(a.textarea);ob.call(a).position===_$_f736[206]?e.insertBefore(b,e.children[0]):e.insertBefore(b,e.children[1]);e.appendChild(eb.call(a,t.license));a.fullscreen=fb;a.progress=gb;a.dispatch=H;Ta(a);$a(a);va(a);a.tools=
|
|
382
|
+
b;bb.build.call(a);Oa.build.call(a);Ca.build.call(a);e=Object.keys(t.extensions);if(e.length)for(b=0;b<e.length;b++)if(typeof t.extensions[e[b]].oninit==_$_f736[14])t.extensions[e[b]].oninit(a,c);return a},worksheet:function(e,c){let a={};e.worksheets.push(a);a.parent=e;Ta(a);Sa(a);ea(a);ca(a);ta(a);Ya(a);Ua(a);Ga(a);ra(a);Za(a);sb(a);ja(a);Y(a);Q(a);V(a);S(a);tb(a);lb(a);Z(a);ma(a);Ba(a);ya(a);na(a);va(a);xa(a);ab(a);vb(a);Ka(a);$a(a);da(a);ia(a);rb(a);ub(a);bb(a);Ma(a);Oa(a);La(a);jb(a);Ta.worksheet.call(a,
|
|
383
|
+
c);e.element.jspreadsheet=e.element.jspreadsheet?e.worksheets:a;Ca.execute.call(a.parent,_$_f736[480],[a]);a.onload=function(){l.worksheetOptions.call(a);this.element=e.element.tabs.appendElement(this.options.worksheetName,function(b,d){a.options.worksheetState===_$_f736[147]&&(d.style.display=_$_f736[66])});this.element.classList.add(_$_f736[481]);this.element.jspreadsheet=this;ha.build.call(this);Ca.execute.call(this.parent,_$_f736[482],[this]);t.current=this};return a},worksheetOptions:function(){var e=
|
|
384
|
+
this.options;e.worksheetName||(e.worksheetName=_$_f736[483]+$a.nextName());e.freezeColumns&&(e.freezeColumns=pa(e.freezeColumns));e.freezeRows&&(e.freezeRows=pa(e.freezeRows));var c=e.pagination;c&&(e.pagination=parseInt(c));e.tableOverflow&&(e.tableHeight||this.parent.element.style.height||(e.tableHeight=300),e.tableWidth||this.parent.element.style.width||(e.tableWidth=document.body.offsetWidth-18));Pa.call(this.parent,_$_f736[484])||!e.freezeRowControl&&!e.freezeColumnControl||(e.freezeRowControl=
|
|
385
|
+
!1,e.freezeColumnControl=!1);c=e.worksheetName;R(c)&&console.log(_$_f736[485]+c+_$_f736[486]);R(c,this);e.data&&500<e.data.length&&!L.limited.call(this)&&!e.pagination&&console.log(_$_f736[487]);c=!!e.rows;Ya.build.call(this);e.style&&Za.build.call(this,e.style);Ga.build.call(this);c&&Ua.build.call(this);Q.parseOptions.call(this,_$_f736[422],_$_f736[422],_$_f736[488]);Q.parseOptions.call(this,_$_f736[21],_$_f736[268],_$_f736[489]);Q.parseOptions.call(this,_$_f736[490],_$_f736[418],_$_f736[491]);Q.parseOptions.call(this,
|
|
386
|
+
_$_f736[492],_$_f736[269],_$_f736[493]);if(e=e.mergeCells)Q.parseOptions.call(this,_$_f736[235],_$_f736[235],_$_f736[494]),ra.build.call(this,e);l.names.call(this)},names:function(){this.names={};let e=this.options.columns;for(let c=0;c<e.length;c++){let a=e[c].title;if(a){a=a.toUpperCase();let b=I.getColumnName(c);this.names[a]=b+_$_f736[189]+b}}},row:function(e,c){var a=this.rows[e]={element:null,y:e};c&&(Object.assign(a,c),c.id&&xa[_$_f736[17]].call(this,c.id),a.height=parseInt(c.height||this.options.defaultRowHeight||
|
|
387
|
+
24));c=this.records[e]=[];this.options.data[e]||(this.options.data[e]=this.dataType?{}:[]);a=this.options.columns.length;for(let b=0;b<a;b++){let d=O.call(this,b,e),f={element:null,x:b,y:e,v:d};c[b]=f;typeof d===_$_f736[12]||null===d?O.call(this,b,e,_$_f736[11]):ba(d)&&(O.call(this,b,e,Ja(d)),this.parent.queue[_$_f736[17]](f,this))}},bind:function(e){let c=Object.keys(t.events),a,b;for(let d=0;d<c.length;d++){a=e;b={};c[d]===_$_f736[495]&&(a=window);if(c[d]===_$_f736[496]||c[d]===_$_f736[497]||c[d]===
|
|
388
|
+
_$_f736[498])b={passive:!1};a.addEventListener(c[d],t.events[c[d]],b)}},unbind:function(e){let c=Object.keys(t.events),a;for(let b=0;b<c.length;b++)a=e,c[b]===_$_f736[495]&&(a=window),a.removeEventListener(c[b],t.events[c[b]])}};return l}(),ab=function(){const l=function(c,a){let b=this.options.columns[c];b.width=a;this.colgroup[c]&&this.colgroup[c].setAttribute(_$_f736[218],a);!1===b.visible&&(b.visible=!0)},e=function(c){c.getWidth=e[_$_f736[70]];c.setWidth=e[_$_f736[17]];c.autoWidth=e.auto};e.auto=
|
|
389
|
+
function(c){if(c.length){let b=[],d=[];var a;this.table.style.tableLayout=_$_f736[499];for(let f=0;f<c.length;f++)if(a=Z.element.call(this,c[f]))a=a.offsetWidth,26<a&&(b.push(c[f]),d.push(a));this.table.style.tableLayout=_$_f736[11];this.setWidth(b,d)}};e[_$_f736[70]]=function(c){let a=this.options.columns;if(typeof c===_$_f736[12]){c=[];for(let b=0;b<a.length;b++)c.push(a[b].width);return c}return a[c].width};e[_$_f736[17]]=function(c,a,b){if(!U.call(this.parent,this))return!1;if(a){if(Array.isArray(c)){b||
|
|
390
|
+
(b=[]);for(let d=0;d<c.length;d++){b[d]||(b[d]=S.width.call(this,c[d]));let f=Array.isArray(a)&&a[d]?a[d]:a;l.call(this,c[d],f)}}else b||(b=S.width.call(this,c)),l.call(this,c,a);this.refreshBorders();K.call(this.parent,{worksheet:this,action:_$_f736[110],column:c,oldValue:b,newValue:a});M.call(this,_$_f736[110],{column:c,width:a,oldWidth:b});H.call(this.parent,_$_f736[500],this,c,a,b);L.refresh.call(this)}};return e}(),vb=function(){let l=function(c,a){a=parseInt(a);let b=V.height.call(this,c);this.rows[c].element&&
|
|
391
|
+
(this.rows[c].element.style.height=a+_$_f736[19]);!1===this.rows[c].visible&&(this.rows[c].visible=!0,this.rows[c].element&&(this.rows[c].element.style.display=_$_f736[11]));this.rows[c].height=a;return b};const e=function(c){c.getHeight=e[_$_f736[70]];c.setHeight=e[_$_f736[17]]};e[_$_f736[70]]=function(c){if(typeof c===_$_f736[12]){c=[];let a=this.rows.length;for(let b=0;b<a;b++){let d=V.height.call(this,b);d&&(c[b]=d)}return c}return V.height.call(this,c)};e[_$_f736[17]]=function(c,a,b){if(!U.call(this.parent,
|
|
392
|
+
this))return!1;var d;let f=typeof b===_$_f736[12];if(a){if(Array.isArray(c))for(!0===f&&(b=[]),d=0;d<c.length;d++){let g=Array.isArray(a)&&a[d]?a[d]:a;l.call(this,c[d],g);!0===f&&b.push(f)}else d=l.call(this,c,a),!0===f&&(b=d);this.refreshBorders();K.call(this.parent,{worksheet:this,action:_$_f736[111],row:c,oldValue:b,newValue:a});M.call(this,_$_f736[111],{row:c,height:a,oldHeight:b});H.call(this.parent,_$_f736[501],this,c,a,b);L.refresh.call(this)}};return e}(),na=function(){let l=null,e=null,c=
|
|
393
|
+
[],a=0,b=null,d=[_$_f736[502],_$_f736[503],_$_f736[504],_$_f736[505],_$_f736[506],_$_f736[507],_$_f736[508],_$_f736[509]];const f=function(m){let n=b[m];m=c[b[m]];if(!m.element){m.element=document.createElement(_$_f736[510]);m.element.innerHTML=m.value;let r=document.createElement(_$_f736[307]);r.type=_$_f736[337];r.value=n;r.o=m;m.element.insertBefore(r,m.element.firstChild)}m.element.firstChild.checked=m.selected;return m.element},g=function(m,n){if(0===n)return new RegExp(m,_$_f736[211]);if(1===
|
|
394
|
+
n)return new RegExp(_$_f736[511]+m+_$_f736[512],_$_f736[211]);if(2===n)return new RegExp(_$_f736[296]+m,_$_f736[211]);if(3===n)return new RegExp(m+_$_f736[321],_$_f736[211]);if(4===n)return new RegExp(_$_f736[296]+m+_$_f736[321],_$_f736[211]);if(5===n)return new RegExp(_$_f736[513]+m+_$_f736[514],_$_f736[211])},h=function(m){m.setFilter=h[_$_f736[17]];m.getFilter=h[_$_f736[70]];m.openFilter=h.open;m.closeFilter=h.close;m.resetFilters=h.reset;m.showFilter=h.show;m.hideFilter=h.hide};h.isVisible=function(){return e};
|
|
395
|
+
h[_$_f736[17]]=function(m,n){let r=Z.element.call(this,m);m=this.options.columns[m];Array.isArray(n)&&0<n.length?(r&&r.classList.add(_$_f736[515]),m.filters=n):(r&&r.classList.remove(_$_f736[515]),m.filters=null);h.update.call(this)};h[_$_f736[70]]=function(m){if(m)return this.options.columns[m].filters||null;m=this.options.columns.length;let n={};for(let r=0;r<m;r++)n[r]=this.options.columns[r].filters||null;return n};h.open=function(m){l=parseInt(m);var n=Z.element.call(this,l);if(n.classList.contains(_$_f736[245])){e=
|
|
396
|
+
!0;m=this.parent.element.getBoundingClientRect();var r=n.getBoundingClientRect();n=r.left-m.left;r=r.top-m.top+r.height;let p=this.parent.filter;m=m.left+m.width;p.style.display=_$_f736[39];n+p.offsetWidth>m&&(n=m-(p.offsetWidth+18));p.style.top=r+_$_f736[19];p.style.left=n+_$_f736[19];m=p.children[1].selectAll;p.children[1].textContent=_$_f736[11];p.children[1].appendChild(m);m.children[0].checked=this.options.columns[l].filters?!1:!0;n=ya.execute.call(this,null,l);n=I.invert(n);r=this.rows.length;
|
|
397
|
+
m=[];for(let u=0;u<r;u++)if(n[u]){let v=_$_f736[11]+O.call(this,l,u),w=_$_f736[11]+ja.processed.call(this,l,u,!0);ba(v)&&(v=w);m.push([v,w])}m.sort(function(u,v){return u[0]>v[0]?1:u[0]<v[0]?-1:0});c=[];for(n=0;n<m.length;n++)c[m[n][1]]={value:m[n][1],element:null,key:m[n][0]};(m=H.call(this.parent,_$_f736[517],this,l,c))&&(c=m);typeof c[_$_f736[11]]!==_$_f736[12]&&(delete c[_$_f736[11]],c[_$_f736[11]]={value:_$_f736[297]+F(_$_f736[518])+_$_f736[319],element:null});h.search.call(this,_$_f736[11]);
|
|
398
|
+
setTimeout(function(){p.children[0].firstChild.focus()})}else console.log(_$_f736[516])};h.close=function(m){let n=this.parent.filter;if(m){m=n.children[1];if(!0===m.selectAll.firstChild.checked&&b.length===Object.keys(c).length)m=null;else{m=!0===m.currentSelection.firstChild.checked?this.options.columns[l].filters||[]:[];for(let r=0;r<b.length;r++)c[b[r]].selected&&m.push(b[r])}h[_$_f736[17]].call(this,l,m)}n.style.display=_$_f736[11];n.children[0].value=_$_f736[11];l=null;e=!1;c=null;a=0;b=null};
|
|
399
|
+
h.reset=function(m){h.updateDOM.call(this,m,!1);Ea.reset.call(this);h.update.call(this)};h.execute=function(m){let n=this.options.columns,r=n.length,p=this.rows.length,u=[];for(let v=0;v<p;v++){let w=!0;for(let z=0;z<r;z++)if(n[z].filters&&m!==z){let B=_$_f736[11]+O.call(this,z,v),D=_$_f736[11]+this.getLabelFromCoords(z,v,!0);-1===n[z].filters.indexOf(B)&&-1===n[z].filters.indexOf(D)&&(w=!1)}w&&u.push(v)}return u};h.update=function(){Ea.reset.call(this);this.resetSelection();this.resetBorders();let m=
|
|
400
|
+
null,n=ya.execute.call(this,null);if(Ia.call(this,_$_f736[519])){m=h[_$_f736[70]].call(this);let r=H.call(this.parent,_$_f736[519],this,m,n);if(r)n=r;else if(!1===r)return!1}this.pageNumber=0;n&&n.length<this.rows.length&&Ea[_$_f736[17]].call(this,n);ma.refresh.call(this);L.refresh.call(this);H.call(this.parent,_$_f736[520],this,m,n)};h.show=function(m){h.updateDOM.call(this,m,!0)};h.hide=function(m){h.updateDOM.call(this,m,!1,!0);h.update.call(this)};h.search=function(m){if(null!==l){for(var n=this.parent.filter,
|
|
401
|
+
r=n.children[1];r.children[1];)r.removeChild(r.lastChild);r.currentSelection.firstChild.checked=!1;var p=parseInt(n.children[0].children[1].value);n=this.options.columns[l].filters;if(m){b=[];m=m.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,_$_f736[521]);let u=g(m,p),v=Object.keys(c);for(let w=0;w<v.length;w++){let z=v[w],B=c[z].value,D=!1;6>p?D=B.match(u)?!0:!1:6===p?D=parseFloat(B)>m:7===p&&(D=parseFloat(B)<m);D&&b.push(z);c[z].selected=D}b.length&&n&&(r.firstChild.checked=!0,r.appendChild(r.currentSelection))}else{b=
|
|
402
|
+
Object.keys(c);if(n)for(p=0;p<b.length;p++)c[b[p]].selected=0<=n.indexOf(b[p]);else for(p=0;p<b.length;p++)c[b[p]].selected=!0;r.firstChild.checked=n?!1:!0}a=0;for(p=0;p<b.length;p++)200>p&&(n=a++,r.appendChild(f(n)))}};h.build=function(){let m=document.createElement(_$_f736[46]);m.className=_$_f736[522];m.onclick=function(w){w.target.tagName===_$_f736[523]&&w.target.o&&(w.target.o.selected=w.target.checked);w=!0;for(let z=1;z<this.children.length;z++)this.children[z].children[0].checked||(w=!1);
|
|
403
|
+
this.children[0].children[0].checked=w};let n=document.createElement(_$_f736[307]);n.type=_$_f736[89];n.placeholder=F(_$_f736[524]);n.classList.add(_$_f736[525]);n.classList.add(_$_f736[81]);let r=document.createElement(_$_f736[526]);r.classList.add(_$_f736[527]);r.classList.add(_$_f736[81]);r.addEventListener(_$_f736[528],function(){h.search.call(t.current,n.value)});d.map((w,z)=>{let B=document.createElement(_$_f736[529]);B.value=z;B.textContent=F(w);r.appendChild(B)});let p=document.createElement(_$_f736[307]);
|
|
404
|
+
p.type=_$_f736[530];p.value=_$_f736[531];p.className=_$_f736[532];let u=document.createElement(_$_f736[46]);u.className=_$_f736[533];let v=document.createElement(_$_f736[46]);v.className=_$_f736[534];v.appendChild(n);v.appendChild(r);u.appendChild(v);u.appendChild(m);u.appendChild(p);m.currentSelection=document.createElement(_$_f736[510]);m.currentSelection.innerHTML=_$_f736[535]+F(_$_f736[536]);m.selectAll=document.createElement(_$_f736[510]);m.selectAll.innerHTML=_$_f736[537]+F(_$_f736[538])+_$_f736[319];
|
|
405
|
+
m.selectAll.onclick=function(){var w=this.children[0].checked;for(var z=1;z<this.parentNode.children.length;z++)this.parentNode.children[z].children[0].checked=w;if(!0===w)for(w=0;w<b.length;w++)c[b[w]].selected=!0;else for(w=Object.keys(c),z=0;z<w.length;z++)c[w[z]].selected=!1};jSuites.lazyLoading(m,{loadDown:function(){let w=0;for(;a<b.length-1&&10>w;){var z=a++;m.appendChild(f(z));w++}}});return u};const k=function(m,n,r){let p=this.headers;!0===n?p[m].classList.add(_$_f736[245]):(this.options.columns[m].filters=
|
|
406
|
+
null,p[m].classList.remove(_$_f736[515]),!0===r&&p[m].classList.remove(_$_f736[245]))};h.updateDOM=function(m,n,r){if(m)k.call(this,m,n,r);else for(m=0;m<this.headers.length;m++)k.call(this,m,n,r)};h.onload=function(){let m=this.options.columns,n=!1;if(m)for(let r=0;r<m.length;r++)if(Array.isArray(m[r].filters)&&0<m[r].filters.length){let p=Z.element.call(this,r);p&&(p.classList.add(_$_f736[515]),n=!0)}!0===n&&h.update.call(this)};return h}(),Ea=function(){const l={};l[_$_f736[17]]=function(e){let c=
|
|
407
|
+
e;this.merged.rows.length?c.length&&((e=ra.expand.call(this,c,1))&&(c=e),c.sort(function(a,b){return a-b})):c=e;for(e=0;e<c.length;e++)this.rows[c[e]].results=!0;this.results=c;Y.evaluate.call(this)};l.reset=function(){for(let e=0;e<this.rows.length;e++)!0===this.rows[e].results&&delete this.rows[e].results;this.results=null};l.refresh=function(){let e=[];for(let c=0;c<this.rows.length;c++)!0===this.rows[c].results&&e.push(c);return e};return l}(),ya=function(){const l=function(b){let d=document.createElement(_$_f736[46]),
|
|
408
|
+
f=b.options.paginationOptions;if(0<b.options.pagination&&f&&0<f.length){b.paginationDropdown=document.createElement(_$_f736[526]);b.paginationDropdown.classList.add(_$_f736[539]);b.paginationDropdown.onchange=function(){b.options.pagination=parseInt(this.value);b.page(0)};for(let g=0;g<f.length;g++){let h=document.createElement(_$_f736[529]);h.value=f[g];h.innerHTML=f[g];b.paginationDropdown.appendChild(h)}b.paginationDropdown.value=b.options.pagination;d.appendChild(document.createTextNode(F(_$_f736[540])));
|
|
409
|
+
d.appendChild(b.paginationDropdown);d.appendChild(document.createTextNode(F(_$_f736[541])))}return d},e=function(b,d){let f=this.merged.rows;if(f[d]){for(;0<d&&f[d-1];)d--;for(;f[d];)b.push(d++)}else b.push(d)},c=function(b){let d=this.searchInput.parentNode;b?d.classList.add(_$_f736[543]):setTimeout(function(){d.classList.remove(_$_f736[543])},250)},a=function(b){b.search=a.update;b.resetSearch=a.reset;b.updateSearch=a.refresh;b.showSearch=a.show;b.hideSearch=a.hide};a.execute=function(b,d){var f=
|
|
410
|
+
this.searchInput;null===b?b=f.value||_$_f736[11]:b!==f.value&&(f.value=b);this.pageNumber=0;f=[];let g=null;var h=na.execute.call(this,d);if(b)try{d=null;if(h){d={};var k=h.length;for(let p=0;p<k;p++)d[h[p]]=!0}var m=b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,_$_f736[521]);m=new RegExp(m,_$_f736[211]);let n=this.rows.length,r=this.options.columns.length;for(k=0;k<n;k++)if(g=!1,!d||d[k]){if(Ia.call(this,_$_f736[544]))g=H.call(this.parent,_$_f736[544],this,k,b,m);else for(h=0;h<r;h++){let p=O.call(this,h,
|
|
411
|
+
k);if(p)if((_$_f736[11]+p).match(m)){g=!0;break}else if(this.getLabelFromCoords(h,k).match(m)){g=!0;break}}g&&e.call(this,f,k)}}catch(n){}else f=h;if(b=this.options.freezeRows)for(m=0;m<b;m++)f.push(b[m]);if(f.length){f=new Set(f);f=Array.from(f);for(b=0;b<this.rows.length;b++)!0===this.rows[b].results&&f.push(b);f.sort(function(n,r){return n-r})}return f};a.update=function(b){c.call(this,!0);Ea.reset.call(this);this.resetSelection();this.resetBorders();H.call(this.parent,_$_f736[545],this,b);let d=
|
|
412
|
+
a.execute.call(this,b);if(Ia.call(this,_$_f736[546])){let f=H.call(this.parent,_$_f736[546],this,b,d);if(f)d=f;else if(!1===f)return c.call(this,!1),console.log(2),!1}this.pageNumber=0;d&&d.length<this.rows.length&&Ea[_$_f736[17]].call(this,d);ma.refresh.call(this);L.refresh.call(this);H.call(this.parent,_$_f736[547],this,b,d);c.call(this,!1)};a.refresh=function(){L.update.call(this);ma.refresh.call(this)};a.reset=function(){this.searchInput.value=_$_f736[11];Ea.reset.call(this);ma.refresh.call(this);
|
|
413
|
+
L.refresh.call(this)};a.show=function(){this.options.search=!0;this.searchContainer.style.display=_$_f736[11]};a.hide=function(){this.options.search=!1;this.searchContainer.style.display=_$_f736[66]};a.build=function(){this.searchContainer=document.createElement(_$_f736[46]);this.searchContainer.classList.add(_$_f736[548]);this.searchContainer.appendChild(l(this));var b=this.searchContainer,d=b.appendChild;let f=document.createElement(_$_f736[46]);f.innerHTML=F(_$_f736[524])+_$_f736[15];this.searchInput=
|
|
414
|
+
document.createElement(_$_f736[307]);this.searchInput.classList.add(_$_f736[542]);f.appendChild(this.searchInput);d.call(b,f);!1===this.options.search&&(this.searchContainer.style.display=_$_f736[66]);this.element.insertBefore(this.searchContainer,this.element.firstChild)};return a}(),mb=function(){const l=function(e){e.contextmenu=document.createElement(_$_f736[46]);e.contextmenu.className=_$_f736[549];jSuites.contextmenu(e.contextmenu,{onclick:function(c){c.close()}});return e.contextmenu};l.open=
|
|
415
|
+
function(e,c){let a,b;c[0]===_$_f736[550]?(a=c[1],b=c[2]):c[0]===_$_f736[551]?(a=null,b=c[1]):c[0]===_$_f736[552]&&(a=c[1],b=null);let d=l[_$_f736[70]](this,a,b,e,c[0],c[1],c[2]);if(Ia.call(this,_$_f736[139])){let f=this.parent.config.contextMenu(this,a,b,e,d,c[0],c[1],c[2]);if(f)d=f;else if(!1===f)return!1}e.preventDefault();d=Ca.execute.call(this.parent,_$_f736[139],[this,a,b,e,d,c[0],c[1],c[2]])[4];this.parent.contextmenu.contextmenu.open(e,d)};l.isOpened=function(){return this.parent.contextmenu.contextmenu.isOpened()};
|
|
416
|
+
l[_$_f736[70]]=function(e,c,a,b,d,f,g){c=[];let h=e.parent.config,k=-1!==navigator.userAgent.indexOf(_$_f736[553])?_$_f736[554]:_$_f736[555];d===_$_f736[556]&&(!0===h.allowRenameWorksheet&&c.push({title:F(_$_f736[557]),onclick:function(){var m=prompt(F(_$_f736[557]),b.target.textContent);m&&e.parent.renameWorksheet(f,m)}}),!0===h.allowDeleteWorksheet&&c.push({title:F(_$_f736[558]),onclick:function(){confirm(F(_$_f736[559]),b.target.textContent)&&e.parent.deleteWorksheet(f)}}),c.push({type:_$_f736[560]}));
|
|
417
|
+
d===_$_f736[561]&&(c.push({title:F(_$_f736[562]),onclick:function(){let m=prompt(F(_$_f736[562]),b.target.textContent);e.setNestedCell(f,g,{title:m})}}),c.push({type:_$_f736[560]}));if(d===_$_f736[552]||d===_$_f736[551]||d===_$_f736[550]||d===_$_f736[561])c.push({title:F(_$_f736[563]),icon:_$_f736[564],shortcut:k+_$_f736[565],onclick:function(){e.cut()}}),c.push({title:F(_$_f736[566]),icon:_$_f736[567],shortcut:k+_$_f736[568],onclick:function(){e.copy()}}),navigator&&navigator.clipboard&&navigator.clipboard.readText&&
|
|
418
|
+
c.push({title:F(_$_f736[569]),icon:_$_f736[570],shortcut:k+_$_f736[571],onclick:function(){e.selectedCell&&navigator.clipboard.readText().then(function(m){m&&e.paste(Math.min(e.selectedCell[0],e.selectedCell[2]),Math.min(e.selectedCell[1],e.selectedCell[3]),m)})}}),c.push({type:_$_f736[560]});d===_$_f736[552]&&(!0===e.options.allowInsertColumn&&c.push({title:F(_$_f736[572]),onclick:function(){e.insertColumn(1,parseInt(f),1)}}),!0===e.options.allowInsertColumn&&c.push({title:F(_$_f736[573]),onclick:function(){e.insertColumn(1,
|
|
419
|
+
parseInt(f),0)}}),!0===e.options.allowDeleteColumn&&c.push({title:F(_$_f736[574]),onclick:function(){e.deleteColumn(e.getSelectedColumns())}}),!0===e.options.allowRenameColumn&&c.push({title:F(_$_f736[575]),onclick:function(){e.setHeader(f)}}),e.options.data.length||(c.push({type:_$_f736[560]}),c.push({title:F(_$_f736[576]),onclick:function(){e.insertRow(0)}})),!0===e.options.columnSorting&&(c.push({type:_$_f736[560]}),c.push({title:F(_$_f736[577]),onclick:function(){e.orderBy(f,0)}}),c.push({title:F(_$_f736[578]),
|
|
420
|
+
onclick:function(){e.orderBy(f,1)}}),c.push({type:_$_f736[560]})),c.push({title:F(_$_f736[579]),onclick:function(){e.hideColumn(e.getSelectedColumns())}}),c.push({title:F(_$_f736[540]),onclick:function(){e.showColumn(e.getSelectedColumns())}}),c.push({type:_$_f736[560]}));if(d===_$_f736[550]||d===_$_f736[551])!0===e.options.allowInsertRow&&(c.push({title:F(_$_f736[580]),onclick:function(){e.insertRow(1,parseInt(a),1)}}),c.push({title:F(_$_f736[581]),onclick:function(){e.insertRow(1,parseInt(a))}})),
|
|
421
|
+
!0===e.options.allowDeleteRow&&c.push({title:F(_$_f736[582]),onclick:function(){e.deleteRow(e.getSelectedRows(!0))}}),c.push({type:_$_f736[560]});d===_$_f736[551]&&(c.push({title:F(_$_f736[579]),onclick:function(){e.hideRow(e.getSelectedRows())}}),c.push({title:F(_$_f736[540]),onclick:function(){e.showRow(e.getSelectedRows())}}),c.push({type:_$_f736[560]}));if(d===_$_f736[550]&&!0===e.options.allowComments){let m=e.records[g][f].element.getAttribute(_$_f736[375])||_$_f736[11];c.push({title:m?F(_$_f736[583]):
|
|
422
|
+
F(_$_f736[584]),icon:_$_f736[585],onclick:function(){let n=prompt(F(_$_f736[586]),m);if(n){let r=I.getColumnNameFromCoords(f,g);e.setComments(r,n)}}});m&&c.push({title:F(_$_f736[587]),onclick:function(){let n=I.getColumnNameFromCoords(f,g);e.setComments(n,_$_f736[11])}});c.push({type:_$_f736[560]})}d===_$_f736[588]&&(c.push({title:F(_$_f736[589]),onclick:function(){e.showRow(e.getSelectedRows());e.showColumn(e.getSelectedColumns())}}),c.push({type:_$_f736[560]}));h.allowExport&&c.push({title:F(_$_f736[590]),
|
|
423
|
+
icon:_$_f736[591],shortcut:k+_$_f736[592],onclick:function(){e.download()}});h.about&&c.push({title:F(_$_f736[593]),icon:_$_f736[594],onclick:function(){!0===h.about?alert(J().print()):alert(h.about)}});return c};return l}(),va=function(){const l=function(){return t.current?t.current.getSelected(!1,!0):[]},e=function(b){typeof b.parent===_$_f736[18]&&(b=this.parent);return b},c=function(b){b.getToolbar=c[_$_f736[70]];b.setToolbar=c[_$_f736[17]];b.showToolbar=c.show;b.hideToolbar=c.hide;b.refreshToolbar=
|
|
424
|
+
c.update};c[_$_f736[17]]=function(b){let d=e(this);d.toolbar.innerHTML=_$_f736[11];d.config.toolbar=c[_$_f736[70]].call(d,b);c.show.call(d)};c[_$_f736[70]]=function(b){let d=e(this);b||(b=d.config.toolbar);let f=c.getDefault(b);b?Array.isArray(b)?b={items:b}:typeof b===_$_f736[14]&&(b=b({items:f})):b={};typeof b!==_$_f736[18]&&(b={});b.items||(b.items=f);typeof b.responsive==_$_f736[12]&&(b.responsive=!0,b.bottom=!1,b.maxWidth=d.element.offsetWidth);return b};c.show=function(){let b=e(this);b.toolbar.innerHTML||
|
|
425
|
+
c.build.call(b);b.toolbar.style.display=_$_f736[11];b.element.classList.add(_$_f736[595])};c.hide=function(){let b=e(this);b.toolbar.style.display=_$_f736[66];b.element.classList.remove(_$_f736[595])};c.update=function(b){var d=e(this);b||(b=t.current);if(b){let f=d.toolbarInstance;f&&(f.options.responsive&&(d=d.config.fullscreen?b.element.offsetWidth:b.options.tableWidth?parseInt(b.options.tableWidth):null,f.options.maxWidth=d,f.refresh()),f.update(b))}};c.build=function(){var b=c[_$_f736[70]].call(this);
|
|
426
|
+
for(var d=0;d<b.items.length;d++)if(b.items[d].type===_$_f736[526]){if(!b.items[d].options&&b.items[d].v){b.items[d].options=[];for(let f=0;f<b.items[d].v.length;f++)b.items[d].options.push(b.items[d].v[f]);b.items[d].k&&(b.items[d].onchange=function(f,g,h,k){t.current.setStyle(t.current.getSelected(!1,!0),h.k,k)})}}else b.items[d].type===_$_f736[341]?(b.items[d].type=_$_f736[211],b.items[d].onclick=function(f,g,h){h.color||(jSuites.color(h,{onchange:function(k,m){(k=t.current.getSelected(!1,!0))&&
|
|
427
|
+
t.current.setStyle(k,h.k,m)},onopen:function(k){let m=t.current.cursor;m?(m=t.current.cursor.style[h.k])?k.color.select(k.color.toHex(m)):k.color.select(_$_f736[11]):k.color.select(_$_f736[11])}}),h.color.open())}):!b.items[d].onclick&&b.items[d].k&&(b.items[d].onclick=function(){let f=t.current.getSelected(!1,!0);f&&f.length&&t.current.setStyle(f,this.k,this.v)});(d=Ca.execute.call(this,_$_f736[140],[b]))&&(b=d[0]);this.toolbarInstance=jSuites.toolbar(this.toolbar,b);this.toolbarInstance.application=
|
|
428
|
+
this;b=this.element.tabs.getActive();this.toolbarInstance.update(this.worksheets[b])};c.item=function(b){this.isEditable()?b.classList.remove(_$_f736[596]):b.classList.add(_$_f736[596])};const a=function(b){if(t.current&&t.current.cursor)return window.getComputedStyle(t.current.cursor).getPropertyValue(b)};c.getDefault=function(){let b=[];b.push({content:_$_f736[137],onclick:function(){t.history.undo()}});b.push({content:_$_f736[138],onclick:function(){t.history.redo()}});b.push({content:_$_f736[591],
|
|
429
|
+
onclick:function(){t.current&&t.current.download()}});b.push({type:_$_f736[597]});b.push({type:_$_f736[526],width:_$_f736[598],options:[_$_f736[599],_$_f736[600],_$_f736[601],_$_f736[602]],render:function(f){return _$_f736[603]+f+_$_f736[313]+f+_$_f736[604]},onchange:function(f,g,h,k,m){if(f=l())console.log(m),t.current.setStyle(f,_$_f736[605],m?k:_$_f736[11])},updateState:function(f,g,h,k){if((f=k.selectedCell)&&f.length){let m=a(_$_f736[605])||0;m&&(m=this.picker.options.data.findIndex(function(n){return n.toLowerCase()===
|
|
430
|
+
m.toLowerCase()}),-1===m&&(m=0));h.picker.setValue(m)}c.item.call(k,h)}});b.push({type:_$_f736[526],width:_$_f736[606],content:_$_f736[607],options:[_$_f736[608],_$_f736[609],_$_f736[610],_$_f736[611],_$_f736[612]],render:function(f){return _$_f736[613]+f+_$_f736[313]+f+_$_f736[604]},onchange:function(f,g,h,k){(f=l())&&t.current.setStyle(f,_$_f736[614],k)},updateState:function(f,g,h,k){c.item.call(k,h)}});b.push({type:_$_f736[526],options:[_$_f736[205],_$_f736[263],_$_f736[47],_$_f736[615]],render:function(f){return _$_f736[616]+
|
|
431
|
+
f+_$_f736[617]},onchange:function(f,g,h,k){(f=l())&&t.current.setStyle(f,_$_f736[618],k)},updateState:function(f,g,h,k){f=a(_$_f736[618]);f||(t.current&&(f=t.current.options.defaultColAlign),f||(f=_$_f736[263]));f=h.picker.options.data.indexOf(f);-1===f&&(f=1);h.picker.setValue(f);c.item.call(k,h)}});b.push({content:_$_f736[619],onclick:function(f,g,h){f=a(_$_f736[620]);f=f===_$_f736[621]||400<f?_$_f736[11]:_$_f736[621];(g=l())&&t.current.setStyle(g,_$_f736[620],f);f===_$_f736[621]?h.classList.add(_$_f736[622]):
|
|
432
|
+
h.classList.remove(_$_f736[622])},updateState:function(f,g,h,k){c.item.call(k,h);f=a(_$_f736[620]);f===_$_f736[621]||400<f?h.classList.add(_$_f736[622]):h.classList.remove(_$_f736[622])}});b.push({type:_$_f736[341],content:_$_f736[623],k:_$_f736[341],updateState:function(f,g,h,k){c.item.call(k,h)}});b.push({type:_$_f736[341],content:_$_f736[624],k:_$_f736[625],updateState:function(f,g,h,k){c.item.call(k,h)}});let d=[_$_f736[207],_$_f736[626],_$_f736[206]];b.push({type:_$_f736[526],options:[_$_f736[627],
|
|
433
|
+
_$_f736[628],_$_f736[629]],render:function(f){return _$_f736[630]+f+_$_f736[617]},value:1,onchange:function(f,g,h,k,m){(f=l())&&t.current.setStyle(f,_$_f736[631],d[m])},updateState:function(f,g,h,k){if(f=a(_$_f736[631])||_$_f736[626])f=d.indexOf(f),h.picker.setValue(f);c.item.call(k,h)}});b.push({content:_$_f736[632],onclick:function(){if(t.current&&confirm(F(_$_f736[633]))){let f=t.current.getHighlighted();if(f&&f.length){let g=t.helpers.getColumnNameFromCoords(f[0],f[1]);t.current.records[f[1]][f[0]].merged?
|
|
434
|
+
t.current.removeMerge(g):t.current.setMerge(g,f[2]-f[0]+1,f[3]-f[1]+1)}}},tooltip:F(_$_f736[634]),updateState:function(f,g,h,k){c.item.call(k,h)}});b.push({type:_$_f736[526],data:[_$_f736[635],_$_f736[636],_$_f736[637],_$_f736[638],_$_f736[639],_$_f736[640],_$_f736[641],_$_f736[642],_$_f736[643],_$_f736[644]],columns:5,render:function(f){return _$_f736[630]+f+_$_f736[617]},right:!0,onchange:function(f,g,h,k){if(f=t.current.getHighlighted()){h=g.thickness||1;g=g.color||_$_f736[645];let m={},n=f[0],
|
|
435
|
+
r=f[1],p=f[2],u=f[3];for(let v=f[1];v<=f[3];v++)for(let w=f[0];w<=f[2];w++){let z=I.getColumnNameFromCoords(w,v);m[z]||(m[z]=_$_f736[11]);m[z]=k!==_$_f736[640]&&k!==_$_f736[636]||w!==n?(k===_$_f736[637]||k===_$_f736[639])&&w>n?m[z]+(_$_f736[646]+h+_$_f736[647]+g+_$_f736[648]):k===_$_f736[635]?m[z]+(_$_f736[646]+h+_$_f736[647]+g+_$_f736[648]):m[z]+_$_f736[649]:m[z]+(_$_f736[646]+h+_$_f736[647]+g+_$_f736[648]);m[z]=k!==_$_f736[635]&&k!==_$_f736[642]&&k!==_$_f736[636]||w!==p?m[z]+_$_f736[651]:m[z]+(_$_f736[650]+
|
|
436
|
+
h+_$_f736[647]+g+_$_f736[648]);m[z]=k!==_$_f736[641]&&k!==_$_f736[636]||v!==r?(k===_$_f736[637]||k===_$_f736[638])&&v>r?m[z]+(_$_f736[652]+h+_$_f736[647]+g+_$_f736[648]):k===_$_f736[635]?m[z]+(_$_f736[652]+h+_$_f736[647]+g+_$_f736[648]):m[z]+_$_f736[653]:m[z]+(_$_f736[652]+h+_$_f736[647]+g+_$_f736[648]);m[z]=k!==_$_f736[635]&&k!==_$_f736[643]&&k!==_$_f736[636]||v!==u?m[z]+_$_f736[655]:m[z]+(_$_f736[654]+h+_$_f736[647]+g+_$_f736[648])}Object.keys(m)&&t.current.setStyle(m,null,null,!0)}},onload:function(f,
|
|
437
|
+
g){let h=document.createElement(_$_f736[46]);var k=document.createElement(_$_f736[46]);h.appendChild(k);let m=jSuites.color(k,{closeOnChange:!1,onchange:function(n,r){n.parentNode.children[1].style.color=r;g.color=r}});k=document.createElement(_$_f736[211]);k.classList.add(_$_f736[212]);k.innerHTML=_$_f736[656];k.onclick=function(){m.open()};h.appendChild(k);f.children[1].appendChild(h);k=document.createElement(_$_f736[46]);jSuites.picker(k,{type:_$_f736[526],data:[1,2,3,4,5],render:function(n){return _$_f736[657]+
|
|
438
|
+
n+_$_f736[658]},onchange:function(n,r,p,u){g.thickness=u},width:_$_f736[659]});f.children[1].appendChild(k);k=document.createElement(_$_f736[46]);k.style.flex=_$_f736[660];f.children[1].appendChild(k)},updateState:function(f,g,h,k){c.item.call(k,h)}});b.push({type:_$_f736[597]});b.push({content:_$_f736[661],onclick:function(f,g,h){t.current&&(h.children[1].style.display=_$_f736[39])},tooltip:_$_f736[662],render:function(f){let g=document.createElement(_$_f736[46]);g.classList.add(_$_f736[663]);g.classList.add(_$_f736[664]);
|
|
439
|
+
g.classList.add(_$_f736[665]);g.onclick=function(h){50>h.target.clientWidth-h.offsetX&&50>h.offsetY&&(h.target.style.display=_$_f736[11],h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation())};f.appendChild(g);jSuites.image(g,{onchange:function(h){t.current&&t.current.setImage({src:h.content[0].content});g.textContent=_$_f736[11];g.style.display=_$_f736[11]}})}});b.push({content:_$_f736[38],onclick:function(f,g,h){h.children[0].textContent===_$_f736[38]?(t.current.fullscreen(!0),h.children[0].textContent=
|
|
440
|
+
_$_f736[666]):(t.current.fullscreen(!1),h.children[0].textContent=_$_f736[38])},tooltip:_$_f736[667],updateState:function(f,g,h,k){h.children[0].textContent=!0===k.parent.config.fullscreen?_$_f736[666]:_$_f736[38]}});b.push({content:_$_f736[668],onclick:function(f,g,h){t.current&&t.current.parent.tools.search?t.current.parent.tools.search.open(!0):h.children[0].textContent===_$_f736[668]?(ya.show.call(t.current),h.children[0].textContent=_$_f736[669]):(ya.hide.call(t.current),h.children[0].textContent=
|
|
441
|
+
_$_f736[668])},tooltip:_$_f736[670],updateState:function(f,g,h,k){h.children[0].textContent=!0===k.options.search?_$_f736[669]:_$_f736[668]}});return b};return c}(),$a=function(){const l=function(e){e.getWorksheet=l.getWorksheet;e.openWorksheet=l.openWorksheet;e.createWorksheet=l.createWorksheet;e.deleteWorksheet=l.deleteWorksheet;e.renameWorksheet=l.renameWorksheet;e.moveWorksheet=l.moveWorksheet;e.getWorksheetActive=l.getWorksheetActive;e.getWorksheetInstance=l.getWorksheetInstance;e.getWorksheetName=
|
|
442
|
+
l.getName};l.nextName=function(){let e=1,c,a=t.spreadsheet;if(a.length)for(let b=0;b<a.length;b++){let d=a[b].worksheets;if(d.length)for(let f=0;f<d.length;f++)d[f].options.worksheetName&&(c=d[f].options.worksheetName.toString().match(/(\d+)/))&&(c=parseInt(c[0])+1,c>e&&(e=c))}return e};l.getName=function(e){let c=this;typeof this.parent===_$_f736[18]&&(c=this.parent,typeof e===_$_f736[12]&&(e=c.worksheets.indexOf(this)));if(c=c.worksheets[e])return c.options.worksheetName.toUpperCase()};l.createWorksheet=
|
|
443
|
+
function(e,c){let a=this;typeof this.parent===_$_f736[18]&&(a=this.parent);if(!U.call(a))return!1;e||(e={});let b=a.worksheets.length;var d=H.call(a,_$_f736[671],e,b);if(typeof d===_$_f736[18])e=d;else if(!1===d)return!1;e.data||e.minDimensions||(e.minDimensions=[8,8]);e.worksheetId||(e.worksheetId=jSuites.guid().substring(0,8));e.worksheetName||(e.worksheetName=_$_f736[483]+l.nextName());if(R(e.worksheetName))Fa({error:_$_f736[660],message:_$_f736[672]});else return d=za.worksheet(a,e),d.onload(),
|
|
444
|
+
typeof c!==_$_f736[12]&&(a.element.tabs.move(b,c),a.worksheets.splice(c,0,a.worksheets.splice(b,1)[0])),t.current&&t.current.resetSelection(),t.current=d,va.update.call(a,t.current),K.call(a,{worksheet:d,action:_$_f736[120],options:e,index:b}),M.call(d,_$_f736[120],[e]),H.call(a,_$_f736[673],d,e,b),d};l.deleteWorksheet=function(e){let c=this;typeof this.parent===_$_f736[18]&&(c=this.parent,typeof e===_$_f736[12]&&(e=c.worksheets.indexOf(this)));let a=c.worksheets[e];if(!a||!U.call(c,a))return!1;let b=
|
|
445
|
+
a.getConfig();R(a.options.worksheetName,null);c.element.tabs.deleteElement(e);c.worksheets.splice(e,1);K.call(c,{worksheet:a,action:_$_f736[121],options:b,index:e});M.call(a,_$_f736[121],[e]);H.call(c,_$_f736[674],a,e)};l.renameWorksheet=function(e,c){let a=this;typeof this.parent===_$_f736[18]&&(a=this.parent,typeof e===_$_f736[12]&&(e=a.worksheets.indexOf(this)));let b=a.worksheets[e];if(!b||!U.call(a,b))return!1;let d=b.options.worksheetName;if(d.toLowerCase()===c.toLowerCase())return!1;c=c.replace(/[^0-9A-Za-z_\s^]+/gi,
|
|
446
|
+
_$_f736[11]);Number(c)==c&&(c=_$_f736[483]+Number(c));R(c)?Fa.call(a,{error:1,message:_$_f736[675]}):(a.element.tabs.rename(e,c),b.options.worksheetName=c,K.call(a,{worksheet:b,action:_$_f736[122],index:e,oldValue:d,newValue:c}),M.call(b,_$_f736[122],{worksheet:e,newValue:c}),R(d,null),R(c,b),Y.updateWorksheetNames.call(b,d,c),H.call(a,_$_f736[676],b,e,c,d))};l.moveWorksheet=function(e,c,a){let b=this;typeof this.parent===_$_f736[18]&&(b=this.parent);let d=b.worksheets;if(!U.call(b))return!1;d.splice(c,
|
|
447
|
+
0,d.splice(e,1)[0]);K.call(b,{worksheet:d[c],action:_$_f736[123],f:e,t:c});a||b.element.tabs.move(e,c);M.call(d[c],_$_f736[123],{f:e,t:c});H.call(b,_$_f736[677],d[c],e,c)};l.openWorksheet=function(e){let c=this;typeof this.parent===_$_f736[18]&&(c=this.parent,typeof e===_$_f736[12]&&(e=c.worksheets.indexOf(this)));let a=c.worksheets[e];!a||t.current&&t.current===a||(c.element.tabs.getActive()!==e?c.element.tabs.open(e):c.element.tabs.setBorder(e),t.current&&t.current.resetSelection(),t.current=a,
|
|
448
|
+
L.update.call(a),l.state.call(c,e),va.update.call(c,t.current),H.call(c,_$_f736[678],a,e))};l.getWorksheet=function(e){let c=this;typeof this.parent===_$_f736[18]&&(c=this.parent);if(e&&typeof e==_$_f736[18]){if(e=c.worksheets.indexOf(e),0<=e)return e}else for(let a=0;a<c.worksheets.length;a++)if(e===c.worksheets[a].options.worksheetId)return a;return!1};l.getWorksheetActive=function(){return this.element.tabs.getActive()};l.getWorksheetInstance=function(e){let c=this;return typeof this.parent===
|
|
449
|
+
_$_f736[18]&&(c=this.parent,typeof e===_$_f736[12])?this:e===_$_f736[11]||typeof e==_$_f736[10]?(e=l.getWorksheet.call(c,e),!1===e?!1:c.worksheets[e]):c.worksheets[e]};l.state=function(e){try{if(typeof localStorage!==_$_f736[12]){var c=this.config.cloud;if(c)if(typeof e!==_$_f736[12])localStorage.setItem(_$_f736[244]+c,e);else{let a=parseInt(localStorage.getItem(_$_f736[244]+c));l.openWorksheet.call(this,a)}else if(typeof e===_$_f736[12]){e=0;for(c=0;c<this.worksheets.length;c++)if(this.worksheets[c].options.worksheetState!==
|
|
450
|
+
_$_f736[147]){e=c;break}l.openWorksheet.call(this,e)}}}catch(a){}};return l}(),I=function(){const l={getCaretIndex:function(a){var b=0,d=(this.config.root||window).getSelection();d&&0!==d.rangeCount&&(b=d.getRangeAt(0),d=b.cloneRange(),d.selectNodeContents(a),d.setEnd(b.endContainer,b.endOffset),b=d.toString().length);return b},invert:function(a){let b=[],d=Object.keys(a);for(let f=0;f<d.length;f++)b[a[d[f]]]=d[f];return b}},e=[_$_f736[679],_$_f736[680],_$_f736[681],_$_f736[682],_$_f736[683],_$_f736[684],
|
|
451
|
+
_$_f736[685],_$_f736[686],_$_f736[687],_$_f736[688],_$_f736[689],_$_f736[690],_$_f736[691],_$_f736[692],_$_f736[693],_$_f736[694],_$_f736[695],_$_f736[696],_$_f736[697],_$_f736[698],_$_f736[699],_$_f736[700],_$_f736[701],_$_f736[702],_$_f736[703],_$_f736[704]];l.getColumnName=function(a){typeof a===_$_f736[10]&&(a=parseInt(a));let b=_$_f736[11];for(a+=1;0<a;){const d=(a-1)%26;b=e[d]+b;a=(a-d)/26|0}return b};l.getCellNameFromCoords=l.getColumnNameFromCoords=function(a,b){typeof a===_$_f736[10]&&(a=
|
|
452
|
+
parseInt(a));typeof b===_$_f736[10]&&(b=parseInt(b));return l.getColumnName(a)+(b+1)};l.getCoordsFromCellName=l.getCoordsFromColumnName=function(a){if(!a)return[];let b=0,d=[],f=a.length;for(var g=0;g<f;g++){let h=a.charCodeAt(g);65<=h&&90>=h?b=26*b+(h-64):48<=h&&57>=h&&d.push(h-48)}a=null;if(f=d.length){for(g=0;g<f;g++)a=10*a+d[g];a&&--a}return[b-1,a]};l.shiftFormula=Y.shiftFormula;l.getTokensFromRange=Y.getTokensFromRange;l.getRangeFromTokens=Y.getRangeFromTokens;l.getCoordsFromRange=function(a){-1!==
|
|
453
|
+
a.indexOf(_$_f736[28])&&(a=a.split(_$_f736[28]),a=a[1]);a=a.split(_$_f736[189]);a[1]||(a[1]=a[0]);let b=I.getCoordsFromColumnName(a[0]);a=I.getCoordsFromColumnName(a[1]);return[b[0],b[1],a[0],a[1]]};l.getRangeFromCoords=function(a){if(t.current)return ea.getRange.call(t.current,a)};const c=function(a){var b=a.getBoundingClientRect();b=50<b.width?b.width:50;this.type=a.getAttribute(_$_f736[705])||_$_f736[89];this.width=b+_$_f736[19];this.title=a.innerHTML;a.style.textAlign&&(this.align=a.style.textAlign);
|
|
454
|
+
a.classList.contains(_$_f736[706])&&(this.readOnly=!0);if(b=a.getAttribute(_$_f736[707]))this.name=b;if(b=a.getAttribute(_$_f736[373]))this.id=b;if(b=a.getAttribute(_$_f736[151]))this.mask=b};l.createFromTable=function(a,b){if(a.tagName!==_$_f736[708])console.log(_$_f736[709]);else{b||(b={});b.columns=[];b.data=[];var d=a.querySelectorAll(_$_f736[710]);if(d.length)for(var f=0;f<d.length;f++){var g=d[f].style.width;g||(g=d[f].getAttribute(_$_f736[218]));g&&(b.columns[f]||(b.columns[f]={}),b.columns[f].width=
|
|
455
|
+
g)}d=[];f=a.querySelectorAll(_$_f736[711]);if(f.length){for(g=0;g<f.length-1;g++){var h=[];for(var k=0;k<f[g].children.length;k++)h.push({title:f[g].children[k].textContent,colspan:f[g].children[k].getAttribute(_$_f736[228])||1});d.push(h)}f=f[f.length-1].children;for(g=0;g<f.length;g++)b.columns[g]||(b.columns[g]={}),c.call(b.columns[g],f[g])}h=0;k={};let p={},u={},v={};var m;g=a.querySelectorAll(_$_f736[712]);for(let w=0;w<g.length;w++)if(b.data[h]=[],!0!==b.parseTableFirstRowAsHeader||f.length||
|
|
456
|
+
0!==w){for(var n=0;n<g[w].children.length;n++){let z=g[w].children[n];var r=z.getAttribute(_$_f736[713]);r?ba(r)||(r=_$_f736[27]+r):r=z.innerHTML;b.data[h].push(r);r=I.getColumnNameFromCoords(n,w);(m=z.getAttribute(_$_f736[714]))&&(v[r]=m);m=parseInt(z.getAttribute(_$_f736[228]))||0;let B=parseInt(z.getAttribute(_$_f736[229]))||0;if(m||B)k[r]=[m||1,B||1];z.style&&z.style.display===_$_f736[66]&&(z.style.display=_$_f736[11]);(m=z.getAttribute(_$_f736[21]))&&(u[r]=m);z.classList.contains(_$_f736[715])&&
|
|
457
|
+
(u[r]=u[r]?u[r]+_$_f736[716]:_$_f736[717])}g[w].style&&g[w].style.height&&(p[w]={height:g[w].style.height});h++}else for(n=0;n<g[w].children.length;n++)b.columns[n]||(b.columns[n]={}),c.call(b.columns[n],g[w].children[n]);0<Object.keys(d).length&&(b.nestedHeaders=d);0<Object.keys(u).length&&(b.style=u);0<Object.keys(k).length&&(b.mergeCells=k);0<Object.keys(p).length&&(b.rows=p);0<Object.keys(v).length&&(b.classes=v);g=a.querySelectorAll(_$_f736[718]);if(g.length){a=[];for(d=0;d<g.length;d++){f=[];
|
|
458
|
+
for(h=0;h<g[d].children.length;h++)f.push(g[d].children[h].textContent);a.push(f)}0<Object.keys(a).length&&(b.footers=a)}if(!0===b.parseTableAutoCellType)for(a=[],d=0;d<b.columns.length;d++){g=f=!0;a[d]=[];for(h=0;h<b.data.length;h++)if(k=b.data[h][d],a[d][k]||(a[d][k]=0),a[d][k]++,25<k.length&&(f=!1),10===k.length){if(k.substr(4,1)!==_$_f736[292]||k.substr(7,1)!==_$_f736[292])g=!1}else g=!1;h=Object.keys(a[d]).length;g?b.columns[d].type=_$_f736[267]:!0===f&&1<h&&h<=parseInt(.1*b.data.length)&&(b.columns[d].type=
|
|
459
|
+
_$_f736[91],b.columns[d].source=Object.keys(a[d]))}return b}};l.parseCSV=function(a,b){b=b||_$_f736[51];let d=0,f=0,g=[[]],h=0,k=null,m=!1,n=!1;for(let p=0;p<a.length;p++)if(g[f]||(g[f]=[]),g[f][d]||(g[f][d]=_$_f736[11]),a[p]!==_$_f736[719])if(a[p]!==_$_f736[26]&&a[p]!==b||!1!==m&&!0!==n&&k){a[p]===_$_f736[35]&&(m=!m);if(null===k){if(k=m,!0===k)continue}else if(!0===k&&!n&&a[p]===_$_f736[35]){a[p+1]===_$_f736[35]?(m=!0,g[f][d]+=a[p],p++):n=!0;continue}g[f][d]+=a[p]}else{k=null;n=m=!1;if(g[f][d][0]===
|
|
460
|
+
_$_f736[35]){var r=g[f][d].trim();r[r.length-1]===_$_f736[35]&&(g[f][d]=r.substr(1,r.length-2))}a[p]===_$_f736[26]?(d=0,f++):(d++,d>h&&(h=d))}for(a=0;a<g.length;a++)for(b=0;b<=h;b++)typeof g[a][b]===_$_f736[12]&&(g[a][b]=_$_f736[11]);return g};return l}(),wb=function(){this.queue.forEach(function(l,e){let c=O.call(l,e.x,e.y);Q.update.call(l,e.x,e.y,c,!0)})},t=function(l,e,c){if(l){if(l.tagName===_$_f736[708]){e=t.helpers.createFromTable(l,e);var a=document.createElement(_$_f736[46]);l.parentNode.insertBefore(a,
|
|
461
|
+
l);l.parentNode.removeChild(l);l=a}e||(e={});t.defaultRowHeight||(a=document.createElement(_$_f736[46]),a.innerHTML=_$_f736[721],document.body.appendChild(a),t.defaultRowHeight=a.querySelector(_$_f736[240]).offsetHeight,a.parentNode.removeChild(a));var b=[];if(e.cloud&&!c)return typeof t.cloud==_$_f736[14]?t.cloud.load(e,function(f){if((f=t(l,f,!0))&&f.length)for(let g=0;g<f.length;g++)b.push(f[g])}):console.error(_$_f736[722]),b;if(l.spreadsheet){var d=l.spreadsheet;Ta[_$_f736[17]].call(d,e)}else d=
|
|
462
|
+
za.spreadsheet(l,e);d.processing=!0;!0===d.config.loadingSpin&&jSuites.loading.show();jSuites.ajax.oncomplete[d.name]=function(){for(var f=0;f<d.worksheets.length;f++)typeof d.worksheets[f].onload==_$_f736[14]&&(d.worksheets[f].onload(),d.worksheets[f].onload=null);d.processing=!1;wb.call(d);d.config.toolbar&&va.show.call(d);H.call(d,_$_f736[723],d);$a.state.call(d);for(f=0;f<d.worksheets.length;f++)ha.update.call(d.worksheets[f]);jSuites.loading.hide()};Array.isArray(e.worksheets)&&(e=e.worksheets);
|
|
463
|
+
if(Array.isArray(e)){for(c=0;c<e.length;c++)za.worksheet(d,e[c]);b=d.worksheets}else b=za.worksheet(d,e);jSuites.ajax.pending(d.name)||(jSuites.ajax.oncomplete[d.name](),jSuites.ajax.oncomplete[d.name]=null);return b}console.error(_$_f736[720])};t.defaultRowHeight=null;t.clipboard={};t.license=null;t.extensions={};t.spreadsheet=[];t.picker=sa;t.setLicense=function(l){t.license=l};t.setDictionary=function(l){jSuites.setDictionary(l)};t.setExtensions=function(l){let e=Object.keys(l);for(let c=0;c<e.length;c++)typeof l[e[c]]===
|
|
464
|
+
_$_f736[14]&&(t[e[c]]=l[e[c]],t.extensions[e[c]]=l[e[c]],t.license&&typeof t[e[c]].license==_$_f736[14]&&t[e[c]].license.call(t,t.license))};t.destroy=function(l,e){if(l.spreadsheet){e&&za.unbind(l);e=Object.keys(t.extensions);if(e.length)for(let c=0;c<e.length;c++)if(typeof t.extensions[e[c]].ondestroy==_$_f736[14])t.extensions[e[c]].ondestroy(l.spreadsheet);e=t.spreadsheet.indexOf(l.spreadsheet);t.spreadsheet.splice(e,1);for(e=0;e<l.spreadsheet.worksheets.length;e++)R(l.spreadsheet.worksheets[e].options.worksheetName,
|
|
465
|
+
null);l.spreadsheet=null;l.jspreadsheet=null;l.innerHTML=_$_f736[11];l.removeAttribute(_$_f736[714])}};t.version=J;t.helpers=I;typeof formula!==_$_f736[12]&&(t.formula=formula);t.history=K;t.events=function(){const l={};let e=null,c=null,a=null,b=!1,d=null,f=null,g=null;const h=function(q){function A(ka){ka.className&&(ka.classList.contains(_$_f736[473])&&(E=ka),ka.classList.contains(_$_f736[481])&&(N=ka),ka.classList.contains(_$_f736[724])&&(X=ka));ka.parentNode&&ka.parentNode.classList&&ka.parentNode.classList.contains(_$_f736[20])&&
|
|
466
|
+
(ka.tagName===_$_f736[725]?C=1:ka.tagName===_$_f736[726]?C=2:ka.tagName===_$_f736[727]&&(C=3));ka.parentNode&&!E&&A(ka.parentNode)}let C=null,G=null,E=null,N=null,X=null;var W=null;let Ha=null,nb=null;A(q.target);if(null!==X)return!1;if(E)if(q.target.classList.contains(_$_f736[460]))G=_$_f736[588];else if(q.target.classList.contains(_$_f736[465]))G=_$_f736[194];else if(q.target.classList.contains(_$_f736[362]))G=_$_f736[551],W=parseInt(q.target.getAttribute(_$_f736[72]));else if(q.target.parentNode&&
|
|
467
|
+
q.target.parentNode.classList&&q.target.parentNode.classList.contains(_$_f736[260]))W=q.target.getAttribute(_$_f736[264]),Ha=q.target.getAttribute(_$_f736[265]),null===W?G=_$_f736[588]:(G=_$_f736[561],W=parseInt(W),Ha=parseInt(Ha));else if(q.target.parentNode&&q.target.parentNode.classList&&q.target.parentNode.classList.contains(_$_f736[728]))G=_$_f736[729];else if(q.target.classList.contains(_$_f736[730]))G=_$_f736[729];else if(q.target.parentNode&&q.target.parentNode.classList&&q.target.parentNode.classList.contains(_$_f736[731]))G=
|
|
468
|
+
_$_f736[556],W=Array.prototype.indexOf.call(q.target.parentNode.children,q.target);else if(1===C)G=_$_f736[552],W=q.target.clientWidth-q.offsetX,q.target.classList.contains(_$_f736[245])&&3<W&&20>W&&(G=_$_f736[732]),W=q.target.getAttribute(_$_f736[76]);else if(2===C){if(q=k(q,E))G=_$_f736[550],W=q[0],Ha=q[1],nb=q[2]}else if(3===C){if(W=q.target.getAttribute(_$_f736[76]),Ha=q.target.getAttribute(_$_f736[72]),W||Ha)G=_$_f736[733]}else C||jSuites.findElement(q.target,_$_f736[734])&&(G=_$_f736[140]);
|
|
469
|
+
return[E,N,C,G,W,Ha,nb]},k=function(q,A){let C,G;q.changedTouches&&q.changedTouches[0]?(C=q.changedTouches[0].clientX,q=q.changedTouches[0].clientY):(C=q.clientX,q=q.clientY);A=A.spreadsheet.config.root?A.spreadsheet.config.root:document;A.elementsFromPoint?G=A.elementsFromPoint(C,q):A.msElementsFromPoint&&(G=A.msElementsFromPoint(C,q));for(A=0;A<G.length;A++)if(C=G[A].getAttribute(_$_f736[76]),q=G[A].getAttribute(_$_f736[72]),null!=C&&null!=q)return C=parseInt(C),q=parseInt(q),[C,q,G[A]];return!1},
|
|
470
|
+
m=function(q){let A=h(q);if(!1===A)return!1;A[0]?A[1]?t.current&&document.activeElement.classList.contains(_$_f736[149])?document.activeElement.worksheet||(document.activeElement.worksheet=A[1].jspreadsheet):t.current!==A[1].jspreadsheet&&(t.current&&t.current.resetSelection(),t.current=A[1].jspreadsheet):t.current||(q=A[0].tabs.getActive(),0<=q&&(t.current=A[0].spreadsheet.worksheets[q])):t.current&&!jSuites.findElement(q.target,_$_f736[81])&&(t.current.resetSelection(!0),t.current=null);return A};
|
|
471
|
+
l.input=function(q){if(q.target.tagName===_$_f736[735]&&q.target.classList.contains(_$_f736[149])){let A=null;q.target.worksheet?A=q.target.worksheet:t.current&&(A=t.current);A&&sa.parse.call(A,q.target)}else if(q.target.classList.contains(_$_f736[542])){let A=q.target;A.parentNode.classList.add(_$_f736[543]);d&&clearTimeout(d);d=setTimeout(function(){t.current.search(A.value);d=null},1E3)}};l.keydown=function(q){if(t.current){q.target.tagName===_$_f736[735]&&q.target.classList.contains(_$_f736[149])&&
|
|
472
|
+
sa.onkeydown.call(t.current,q);if(27===q.which){if(t.current.edition){t.current.closeEditor(t.current.edition,!1);q.preventDefault();return}if(Da.event){Da.cancel.call(t.current,q);q.preventDefault();return}if(fa.event){fa.cancel.call(t.current,q);return}if(!0===na.isVisible()){na.close.call(t.current,!1);q.preventDefault();return}}if(q.target.classList.contains(_$_f736[525])){let C=q.target;d&&clearTimeout(d);d=setTimeout(function(){na.search.call(t.current,C.value);d=null},500)}else if(!q.target.classList.contains(_$_f736[542])&&
|
|
473
|
+
!q.target.classList.contains(_$_f736[81]))if(t.current.edition){var A=t.current.edition.getAttribute(_$_f736[76]);13===q.which?t.current.options.columns[A].type===_$_f736[267]?t.current.closeEditor(t.current.edition,!0):t.current.options.columns[A].type!==_$_f736[91]&&t.current.options.columns[A].type!==_$_f736[736]&&t.current.options.columns[A].type!==_$_f736[585]&&(q.altKey?t.current.parent.input.classList.contains(_$_f736[737])||document.execCommand(_$_f736[738],!1,_$_f736[739]):(t.current.closeEditor(t.current.edition,
|
|
474
|
+
!0),t.current.parent.config.moveDownOnEnter&&t.current.down(),q.preventDefault())):9===q.which?(t.current.closeEditor(t.current.edition,!0),t.current.right(),q.preventDefault()):39!==q.which&&37!==q.which&&38!==q.which&&40!==q.which||t.current.parent.input.selected||(t.current.closeEditor(t.current.edition,!0),37===q.which?t.current.left(q.shiftKey,q.ctrlKey):39===q.which?t.current.right(q.shiftKey,q.ctrlKey):38===q.which?t.current.up(q.shiftKey,q.ctrlKey):40===q.which&&t.current.down(q.shiftKey,
|
|
475
|
+
q.ctrlKey),q.preventDefault())}else{if((q.ctrlKey||q.metaKey)&&!q.shiftKey){if(65===q.which){t.current.selectAll();q.preventDefault();return}if(83===q.which){t.current.download();q.preventDefault();return}if(89===q.which){t.history.redo();q.preventDefault();return}if(90===q.which){t.history.undo();q.preventDefault();return}if(70===q.which&&t.current.parent.tools.search){t.current.parent.tools.search.open(!0);q.preventDefault();return}}if(t.current.selectedCell)if(33===q.which)0<t.current.options.pagination?
|
|
476
|
+
Ka.pageUp.call(t.current):q.altKey?L.pageLeft.call(t.current):L.pageUp.call(t.current),q.preventDefault();else if(34===q.which)0<t.current.options.pagination?Ka.pageDown.call(t.current):q.altKey?L.pageRight.call(t.current):L.pageDown.call(t.current),q.preventDefault();else if(37===q.which)t.current.left(q.shiftKey,q.ctrlKey),q.preventDefault();else if(39===q.which)t.current.right(q.shiftKey,q.ctrlKey),q.preventDefault();else if(38===q.which)t.current.up(q.shiftKey,q.ctrlKey),q.preventDefault();else if(40===
|
|
477
|
+
q.which)t.current.down(q.shiftKey,q.ctrlKey),q.preventDefault();else if(36===q.which)t.current.first(q.shiftKey,q.ctrlKey),q.preventDefault();else if(35===q.which)t.current.last(q.shiftKey,q.ctrlKey),q.preventDefault();else if(32===q.which)t.current.setCheckRadioValue(),q.preventDefault();else if(46===q.which||8===q.which)t.current.isEditable()&&t.current.setValue(t.current.getSelected(!1,!0),_$_f736[11]);else if(13===q.which)t.current.options.columns.length&&(q.shiftKey?t.current.up():(A=t.current.selectedCell[1],
|
|
478
|
+
t.current.down(),!0===t.current.options.allowManualInsertRow&&t.current.selectedCell[1]===A&&(t.current.insertRow(),t.current.down()))),q.preventDefault();else if(9===q.which)t.current.rows.length&&(q.shiftKey?t.current.left():(A=t.current.selectedCell[0],t.current.right(),!0===t.current.options.allowInsertColumn&&!0===t.current.options.allowManualInsertColumn&&t.current.selectedCell[0]===A&&(t.current.insertColumn(),t.current.right()))),q.preventDefault();else if((q.ctrlKey||q.metaKey)&&!q.shiftKey)67===
|
|
479
|
+
q.which?(t.current.copy(),q.preventDefault()):88===q.which?(t.current.cut(),q.preventDefault()):86===q.which?q.target.classList.contains(_$_f736[81])||l.paste(q):189===q.which&&(!0===t.current.options.allowDeleteRow&&g[3]===_$_f736[551]?(ea.isValid.call(t.current,t.current.selectedCell)&&t.current.deleteRow(),q.preventDefault()):!0===t.current.options.allowDeleteColumn&&g[3]===_$_f736[552]&&(ea.isValid.call(t.current,t.current.selectedCell)&&t.current.deleteColumn(),q.preventDefault()));else if(t.current.isEditable()){A=
|
|
480
|
+
t.current.selectedCell[1];let C=t.current.selectedCell[0];t.current.options.columns[C].type!==_$_f736[40]&&(32===q.keyCode?t.current.options.columns[C].type===_$_f736[337]||t.current.options.columns[C].type===_$_f736[344]?q.preventDefault():t.current.openEditor(t.current.records[A][C].element,!0,q):113===q.keyCode?t.current.openEditor(t.current.records[A][C].element,!1,q):1!==q.key.length&&q.key!==_$_f736[740]||q.altKey||q.ctrlKey||t.current.records[A]&&t.current.openEditor(t.current.records[A][C].element,
|
|
481
|
+
!0,q))}}}};const n=[0,0],r=function(q,A){A||(A=400);b&&L.limited.call(t.current)&&(f&&(clearTimeout(f),f=null),f=setTimeout(function(){if(b){200<A&&(A=200);A-=10;40>A&&(A=40);let C=n[0],G=n[1],E=t.current.content.getBoundingClientRect();40>E.width-(C-E.left)?L.right.call(t.current):40>C-E.left?L.left.call(t.current):40>E.height-(G-E.top)?L.down.call(t.current):40>G-E.top&&L.up.call(t.current);r(q,A)}f=null},A))},p=function(q,A,C,G,E,N,X){if(document.activeElement.classList.contains(_$_f736[149])&&
|
|
482
|
+
sa.update.call(t.current,q,A,C,G,E,document.activeElement,X))return!0;t.current.edition&&t.current.closeEditor(t.current.edition,!0);t.current!==X&&(t.current.resetSelection(),t.current=X);sa.current?sa.range.call(t.current,q,A,C,G,E):ea[_$_f736[17]].call(t.current,q,A,C,G,E)},u=function(q){q=q||window.event;return q.buttons?q.buttons:q.button?q.button:q.which};l.mousedown=function(q){var A=u(q);if(t.current)if(!0===na.isVisible()&&(jSuites.findElement(q.target,_$_f736[533])||na.close.call(t.current,
|
|
483
|
+
!1)),t.current.edition){if(jSuites.findElement(q.target,_$_f736[155]))return!1}else if(jSuites.findElement(q.target,_$_f736[81]))return!1;let C=m(q);if(!1===C)return!1;g=C;if(1<A)if(C[3]===_$_f736[550]){if(t.current.isSelected(C[4],C[5]))return!1}else if(C[3]===_$_f736[551]){if(t.current.isSelected(0,C[4]))return!1}else if(C[3]===_$_f736[552]&&t.current.isSelected(C[4],0))return!1;if(t.current){if(C[3]===_$_f736[194])t.current.isEditable()&&(fa.event=!0);else if(C[3]===_$_f736[732])na.open.call(t.current,
|
|
484
|
+
C[4]);else if(1===C[2])if(e)e.style.cursor===_$_f736[741]?Da.start.call(t.current,q,!0):e.style.cursor===_$_f736[742]?Na.start.call(t.current,q,!0):e.style.cursor===_$_f736[743]&&(!0===e.column?da.start.call(t.current,q,0):!1===e.column?ia.start.call(t.current,q,0):da.start.call(t.current,q,parseInt(C[4])+1));else{(A=t.current.options.columns.length)&&A--;var G=t.current.options.data.length;G&&G--;if(C[3]===_$_f736[588])p(0,0,A,G,q,C[3],C[1].jspreadsheet),a=c=0;else if(C[3]===_$_f736[561]){var E=
|
|
485
|
+
Ba.range.call(t.current,C[5])[C[4]];E[1]>A&&(E[1]=A);p(E[0],0,E[1],G,q,C[3],C[1].jspreadsheet);c=E[0];a=0}else C[4]&&((q.shiftKey||q.ctrlKey)&&null!=c&&null!=a?p(c,0,C[4],G,q,C[3],C[1].jspreadsheet):(C[3]===_$_f736[552]&&c===C[4]&&!0===t.current.options.allowRenameColumn&&(f=setTimeout(function(){t.current.setHeader(C[4])},800)),p(C[4],0,C[4],G,q,C[3],C[1].jspreadsheet),c=C[4],a=0))}else if(2===C[2])if(C[3]===_$_f736[551])e?e.style.cursor===_$_f736[741]?Da.start.call(t.current,q):e.style.cursor===
|
|
486
|
+
_$_f736[744]?Na.start.call(t.current,q):e.style.cursor===_$_f736[743]&&ia.start.call(t.current,q,parseInt(C[4])+1):(A=t.current.options.columns.length-1,G=parseInt(C[4]),(q.shiftKey||q.ctrlKey)&&null!=c&&null!=a?p(0,a,A,G,q,C[3],C[1].jspreadsheet):(p(0,G,A,G,q,C[3],C[1].jspreadsheet),c=0,a=G));else{if(C[3]===_$_f736[550]){A=parseInt(C[4]);G=parseInt(C[5]);if(!t.current.edition&&(E=t.current.options.columns[C[4]].type,q.target.tagName===_$_f736[679]&&(E===_$_f736[339]||E===_$_f736[340])&&q.target.parentNode.classList.contains(_$_f736[181]))){let N=
|
|
487
|
+
q.target.textContent;E===_$_f736[339]&&(N=_$_f736[745]+N);window.open(N,_$_f736[746])}(q.shiftKey||q.ctrlKey)&&t.current.selectedCell?(q.shiftKey&&(c=A,a=G),!0===p(c,a,A,G,q,C[3],C[1].jspreadsheet)&&(c=A,a=G)):(p(A,G,A,G,q,C[3],C[1].jspreadsheet),c=A,a=G)}}else C[2]||e&&e.style.cursor===_$_f736[747]&&La.start.call(t.current,q);typeof C[3]!==_$_f736[12]&&H.call(t.current.parent,_$_f736[748],t.current,C[3],C[4],C[5],q);b=!0}else b=!1};l.mouseup=function(q){if(t.current)if(Da.event)Da.end.call(t.current,
|
|
488
|
+
q);else if(Na.event)Na.end.call(t.current,q);else if(oa.event){var A=da;typeof oa.event.x===_$_f736[12]&&(A=ia);A.end.call(t.current,q)}else La.event?La.end.call(t.current,q):fa.event?fa.end.call(t.current,q):q.target.classList.contains(_$_f736[532])?na.close.call(t.current,!0):t.current.edition&&q.target.classList.contains(_$_f736[665])&&50>q.target.clientWidth-q.offsetX&&50>q.offsetY?ta.close.call(t.current,null,!0):q.target.classList.contains(_$_f736[749])?(A=q.target.offsetWidth-q.offsetX,t.current.isEditable()&&
|
|
489
|
+
!t.current.edition&&8<A&&18>A&&t.current.openEditor(q.target,null,q)):q.target.classList.contains(_$_f736[440])&&(q=q.target.textContent===_$_f736[30]?0:q.target.textContent===_$_f736[29]?q.target.getAttribute(_$_f736[375])-1:q.target.textContent-1,Ka[_$_f736[17]].call(t.current,parseInt(q)));f&&(clearTimeout(f),f=null);b=!1;sa.current&&sa.close.call(t.current)};l.mousemove=function(q){q=q||window.event;b&&(u(q)||(b=!1));if(q.changedTouches&&q.changedTouches[0]){var A=q.changedTouches[0].clientX;
|
|
490
|
+
var C=q.changedTouches[0].clientY}else A=q.clientX,C=q.clientY;n[0]=A;n[1]=C;if(t.current)if(!0===b)if(La.event)La.update.call(t.current,q);else{if(Da.event)Da.update.call(t.current,q);else if(Na.event)Na.update.call(t.current,q);else if(oa.event)A=da,typeof oa.event.x===_$_f736[12]&&(A=ia),A.move.call(t.current,q);else if(fa.event)A=q.target.getAttribute(_$_f736[76]),C=q.target.getAttribute(_$_f736[72]),t.current.isSelected(A,C)?fa.reset.call(t.current):null!==A&&null!==C&&fa.call(t.current,A,C);
|
|
491
|
+
else if(A=h(q),A[0]){if(!document.activeElement.classList.contains(_$_f736[149])&&A[1]&&t.current!==A[1].jspreadsheet&&t.current)return!1;if(null!==c&&null!==a){if(1===A[2]&&A[3]===_$_f736[552]){C=c;var G=parseInt(q.target.getAttribute(_$_f736[76]));if(a){var E=a;var N=0}else E=0,N=t.current.options.data.length-1;p(C,E,G,N,q,A[3],A[1].jspreadsheet);f&&(clearTimeout(f),f=null)}2===A[2]&&(A[3]===_$_f736[551]?(E=a,N=parseInt(q.target.getAttribute(_$_f736[72])),c?(C=c,G=0):(C=0,G=t.current.options.columns.length-
|
|
492
|
+
1),p(C,E,G,N,q,A[3],A[1].jspreadsheet)):A[3]===_$_f736[550]&&(C=c,E=a,G=A[4],N=A[5],p(C,E,G,N,q,A[3],A[1].jspreadsheet)))}}r(q)}else E=q.target.getBoundingClientRect(),e&&(e.style.cursor=_$_f736[11],e=null),!0===t.current.options.editable&&q.target&&(q.target.classList.contains(_$_f736[460])?t.current.options.freezeRowControl&&!t.current.options.freezeRows&&5>E.height-(q.clientY-E.top)?(e=q.target,e.style.cursor=_$_f736[743],e.column=!1):t.current.options.freezeColumnControl&&!t.current.options.freezeColumns&&
|
|
493
|
+
5>E.width-(q.clientX-E.left)&&(e=q.target,e.style.cursor=_$_f736[743],e.column=!0):q.target.classList.contains(_$_f736[452])?t.current.options.resize&&15>E.width-(A-E.left)&&15>E.height-(C-E.top)&&(e=q.target,e.style.cursor=_$_f736[747]):(G=parseInt(q.target.getAttribute(_$_f736[76])),N=parseInt(q.target.getAttribute(_$_f736[72])),q.target.classList.contains(_$_f736[362])?ia.isControl.call(t.current,N)&&5>E.height-(C-E.top)?(e=q.target,e.style.cursor=_$_f736[743]):!0===t.current.options.rowResize&&
|
|
494
|
+
6>E.height-(C-E.top)?(e=q.target,e.style.cursor=_$_f736[744]):!0===t.current.options.rowDrag&&q.target.parentNode.classList.contains(_$_f736[182])&&10>E.width-(A-E.left)&&(e=q.target,e.style.cursor=_$_f736[741]):q.target.classList.contains(_$_f736[241])&&(da.isControl.call(t.current,G)&&5>E.width-(A-E.left)?(e=q.target,e.style.cursor=_$_f736[743]):!0===t.current.options.columnResize&&6>E.width-(A-E.left)?(e=q.target,e.style.cursor=_$_f736[742]):!0===t.current.options.columnDrag&&10>E.height-(C-E.top)&&
|
|
495
|
+
(e=q.target,e.style.cursor=_$_f736[741]))))};l.dblclick=function(q){if(t.current)if(q.target.classList.contains(_$_f736[465]))fa.execute.call(t.current,!1);else{let A=h(q);1===A[2]?(q=q.target.getAttribute(_$_f736[76]))&&(e&&e.style.cursor===_$_f736[742]?t.current.autoWidth(t.current.getSelectedColumns()):!0===t.current.options.columnSorting&&!0===t.current.options.columnSortingOnDblClick&&t.current.orderBy(q)):2===A[2]&&t.current.isEditable()&&!t.current.edition&&A[6]&&t.current.openEditor(A[6],
|
|
496
|
+
null,q)}};l.paste=function(q){if(!q.target.classList.contains(_$_f736[81])&&t.current&&!t.current.edition){let A=t.current.selectedCell;if(A){let C=q.clipboardData||window.clipboardData;C&&(t.current.paste(Math.min(A[0],A[2]),Math.min(A[1],A[3]),C.getData(_$_f736[89])),q&&q.preventDefault())}}};l.contextmenu=function(q){let A=m(q);!1!==A&&(A[1]||(A=g),t.current&&!t.current.edition&&(A=Array.prototype.slice.call(A,3),mb.open.call(t.current,q,A)))};let v=null,w=null,z=null,B=null,D=null;l.touchstart=
|
|
497
|
+
function(q){let A=h(q);A[0]?A[1]&&t.current!==A[1].jspreadsheet&&(t.current&&t.current.resetSelection(),t.current=A[1].jspreadsheet):t.current&&(t.current.resetSelection(),t.current=null);t.current&&!t.current.edition?A[3]===_$_f736[194]?t.current.isEditable()&&(fa.event=!0):q.target&&q.target.classList.contains(_$_f736[190])?D=parseInt(q.target.getAttribute(_$_f736[191])):A[3]===_$_f736[550]?(B=A,v===q.target&&w?t.current.openEditor(q.target,!1,q):(w=setTimeout(function(){v=w=B=null},400),z=setTimeout(function(){l.contextmenu(q);
|
|
498
|
+
z=null},800)),v=q.target):B=null:B=null};l.touchmove=function(q){if(t.current){var A=null,C=null,G=null,E=null;if(q.changedTouches&&q.changedTouches[0]){var N=q.changedTouches[0].clientX;var X=q.changedTouches[0].clientY}else N=q.clientX,X=q.clientY;if(X=document.elementFromPoint(N,X))if(N=X.getAttribute(_$_f736[76]),X=X.getAttribute(_$_f736[72]),null!==N&&null!==X&&fa.event)t.current.isSelected(N,X)||(fa.call(t.current,N,X),r(q)),q.preventDefault();else if(null!==D){N=parseInt(N);X=parseInt(X);let W=
|
|
499
|
+
t.current.selectedCell;0===D?N<=W[2]&&(A=N,G=W[2],C=W[1],E=W[3]):2===D?N>=W[0]&&(A=W[0],C=W[1],G=N,E=W[3]):1===D?X<=W[3]&&(A=W[0],C=X,G=W[2],E=W[3]):3===D&&X>=W[1]&&(A=W[0],C=W[1],G=W[2],E=X);null!==A&&t.current.updateSelectionFromCoords(A,C,G,E);q.preventDefault()}else B=null;z&&clearInterval(z)}};l.touchend=function(q){if(fa.event)fa.end.call(t.current,q);else if(null!==D)D=null;else if(B){let A,C,G,E;B[3]===_$_f736[550]?(A=B[4],C=B[5],G=A,E=C):B[3]===_$_f736[551]?(A=0,C=B[4],G=t.current.options.columns.length-
|
|
500
|
+
1,E=C):B[3]===_$_f736[552]&&(A=B[4],C=0,G=A,E=t.current.rows.length-1);null!=A&&t.current.updateSelectionFromCoords(A,C,G,E)}z&&clearInterval(z)};l.resize=function(){t.current&&!0===t.current.parent.config.fullscreen&&L.refresh.call(t.current)};return l}();t.editors=function(){const l={},e=function(a,b){return!0===a[b]||a.options&&!0===a.options[b]?!0:!!(a[b]===_$_f736[317]||a.options&&a.options[b]===_$_f736[317])},c=function(a){return!(1!==a&&!0!==a&&a!==_$_f736[317]&&a!==_$_f736[750])};l.createEditor=
|
|
501
|
+
function(a,b,d,f){f.parent.input.setAttribute(_$_f736[156],!1);a===_$_f736[307]?(a=document.createElement(_$_f736[307]),a.type=_$_f736[89],a.value=d):a=document.createElement(_$_f736[46]);a.style.width=b.offsetWidth-2+_$_f736[19];a.style.height=b.offsetHeight-1+_$_f736[19];f.parent.input.appendChild(a);return a};l.createDialog=function(a,b,d,f,g){a=l.createEditor(_$_f736[46],a,b,g);a.classList.add(_$_f736[664]);a.classList.add(_$_f736[665]);800>window.innerWidth?(g.parent.input.style.top=_$_f736[198],
|
|
502
|
+
g.parent.input.style.left=_$_f736[198]):(b=g.parent.input.getBoundingClientRect(),window.innerHeight<b.bottom&&(g.parent.input.style.marginTop=-g.parent.input.offsetHeight));return a};l.text=l.number=l.numeric=l.percent=function(){const a={createCell:function(b,d,f,g,h,k){typeof f!==_$_f736[37]&&(f=parseInt(f));typeof g!==_$_f736[37]&&(g=parseInt(g));var m=Qa(k);let n=null;d===_$_f736[11]||ba(d)||typeof d===_$_f736[37]||typeof d!=_$_f736[10]||d.trim()===_$_f736[11]||(m?(m=jSuites.mask.extract(d,m,
|
|
503
|
+
!0))&&m.value!==_$_f736[11]&&(n=m.value):!0===(!1===h.parent.config.autoCasting||!1===k.autoCasting?!1:!0)&&(k.type===_$_f736[37]||k.type===_$_f736[428]||k.type===_$_f736[355]?(m=jSuites.mask.extract(d,k,!0))&&m.value!==_$_f736[11]&&(n=m.value):jSuites.isNumeric(Number(d))&&(n=Number(d))));null!==n&&(d=n);d=a.parseValue(f,g,d,h,k,b);b&&(d instanceof Element||d instanceof HTMLDocument?(b.textContent=_$_f736[11],b.appendChild(d)):k.rotate?(b.firstChild&&b.firstChild.classList.contains(_$_f736[41])?
|
|
504
|
+
f=b.firstChild:(f=document.createElement(_$_f736[42]),f.classList.add(_$_f736[41])),f.style.transform=_$_f736[43]+parseInt(270-k.rotate)+_$_f736[44],f.textContent=d,b.appendChild(f)):k.url?(b.firstChild&&b.firstChild.classList.contains(_$_f736[751])?f=b.firstChild:(f=document.createElement(_$_f736[274]),f.classList.add(_$_f736[751])),f.href=k.url,f.textContent=d,b.appendChild(f)):b.textContent=d);if(null!==n)return n}};a.updateCell=a.createCell;a.openEditor=function(b,d,f,g,h,k){let m=h.parent.input;
|
|
505
|
+
m.onblur=function(){m.classList.contains(_$_f736[149])||h.closeEditor(b,!0)};if(k.type===_$_f736[37]||k.type===_$_f736[428]||k.type===_$_f736[355])m.classList.add(_$_f736[737]),ba(d)||k.inputmode||(k.inputmode=_$_f736[752]);f=null;ba(d)||(k.inputmode&&m.setAttribute(_$_f736[153],k.inputmode),(f=Qa(k))?k.disabledMaskOnEdition||(k.mask?(g=k.mask.split(_$_f736[300]),m.setAttribute(_$_f736[151],g[0])):k.locale&&m.setAttribute(_$_f736[753],k.locale),f.input=m,m.mask=f,jSuites.mask.render(d,f,!1)):k.type===
|
|
506
|
+
_$_f736[355]&&(d&&(d*=100),m.classList.add(_$_f736[356])));if(!f||k.disabledMaskOnEdition)m.textContent=d,jSuites.focus(m)};a.closeEditor=function(b,d,f,g,h,k){b=h.parent.input;d=d?b.textContent:_$_f736[11];ba(d)?d=d.replace(/(\r\n|\n|\r)/gm,_$_f736[11]):Qa(k)||k.type===_$_f736[355]&&b.classList.remove(_$_f736[356]);return d};a.parseValue=function(b,d,f,g,h,k){let m=!1;!0===g.parent.config.parseFormulas&&ba(f)&&(f=g.executeFormula(f,b,d),f instanceof Element||f instanceof HTMLDocument)&&(m=!0);m||
|
|
507
|
+
(f=Q.applyFormat(k,f,h));return f};a[_$_f736[70]]=function(b,d){let f=Qa(b);return f?jSuites.mask.render(d,f,!0):b.type===_$_f736[355]?100*parseFloat(d):d};a.destroyCell=function(b){b.classList.remove(_$_f736[352])};return a}();l.notes=function(){const a={};let b=null;a.updateCell=function(d,f){if(d){let g=document.createElement(_$_f736[46]);g.classList.add(_$_f736[754]);g.textContent=f;d.innerHTML=_$_f736[11];d.appendChild(g)}};a.createCell=a.updateCell;a.openEditor=function(d,f,g,h,k,m){let n=m&&
|
|
508
|
+
m.options?m.options:{};n.focus=!0;n.value=f;n.border=!1;n.height=_$_f736[755];n.toolbar=!1;b=l.createDialog(d,f,g,h,k,m);b=jSuites.editor(b,n)};a.closeEditor=function(d,f){return f?b.getData():_$_f736[11]};return a}();l.dropdown=function(){const a={createCell:function(b,d,f,g,h,k){k.render===_$_f736[756]?b.classList.add(_$_f736[757]):b.classList.add(_$_f736[749]);if(b=a.updateCell(b,d,f,g,h,k))return b},destroyCell:function(b){b.classList.remove(_$_f736[749])},updateCell:function(b,d,f,g,h,k){if(b){let m=
|
|
509
|
+
a.getItem(b,d,f,g,h,k);m?b.innerHTML=m:d?(d=a.fromLabel(b,d,f,g,h,k),d.length?(m=a.getItem(b,d,f,g,h,k),b.innerHTML=m):b.innerHTML=_$_f736[11]):b.innerHTML=_$_f736[11];return d}},openEditor:function(b,d,f,g,h,k){let m=l.createEditor(_$_f736[46],b,d,h),n=k.delimiter||_$_f736[300];k=Object.create(k);k.options||(k.options={});typeof k.filter==_$_f736[14]&&(k.source=k.filter(h,b,f,g,d,k));typeof k.filterOptions==_$_f736[14]&&(k=k.filterOptions(h,b,f,g,d,k));f=k.options;k.source&&(f.data=JSON.parse(JSON.stringify(k.source)));
|
|
510
|
+
e(k,_$_f736[758])&&(f.multiple=!0);e(k,_$_f736[90])&&(f.autocomplete=!0);f.format=!0;f.opened=!0;f.width=b.offsetWidth-2;f.onclose=function(){h.closeEditor(b,!0)};e(k,_$_f736[758])?d&&(f.value=(_$_f736[11]+d).split(n)):f.value=d;jSuites.dropdown(m,f)},closeEditor:function(b,d,f,g,h,k){let m=h.parent.input.children[0];if(m&&m.dropdown){let n=k.delimiter||_$_f736[300],r=m.dropdown.getText(!0),p=m.dropdown.getValue(!0);for(let u=0;u<p.length;u++)!1===a.getItem(b,p[u],f,g,h,k)&&k.source.push({id:p[u],
|
|
511
|
+
name:r[u]});m.dropdown.close(!0);if(d)return p.join(n)}},fromLabel:function(b,d,f,g,h,k){b=k.delimiter||_$_f736[300];f=[];g=[];Array.isArray(d)||(d=(_$_f736[11]+d).split(b));for(h=0;h<d.length;h++)g[d[h].trim()]=!0;d=Object.keys(g);!e(k,_$_f736[758])&&1<Object.keys(d).length&&(g=[],g[d[0]]=!0);if(k.source)for(d=0;d<k.source.length;d++)g[k.source[d].name]&&f.push(k.source[d].id);return f.join(b)},getItem:function(b,d,f,g,h,k){g=k.delimiter||_$_f736[300];b=[];f=[];Array.isArray(d)||(d=(_$_f736[11]+
|
|
512
|
+
d).split(g));for(g=0;g<d.length;g++)f[d[g].trim()]=!0;d=Object.keys(f);!e(k,_$_f736[758])&&1<Object.keys(d).length&&(f=[],f[d[0]]=!0);if(k.source){if(typeof k.source[0]!==_$_f736[18])for(d=0;d<k.source.length;d++)g=k.source[d],k.source[d]={id:g,name:g};for(d=0;d<k.source.length;d++)typeof f[k.source[d].id]!==_$_f736[12]&&b.push(k.render===_$_f736[341]?k.source[d].color:k.render===_$_f736[759]?k.source[d].image:k.source[d].name)}if(b.length){if(typeof k.render!==_$_f736[12]){for(f=0;f<b.length;f++)d=
|
|
513
|
+
b[f],b[f]=k.render===_$_f736[341]?_$_f736[760]+d+_$_f736[761]:k.render===_$_f736[759]?_$_f736[760]+d+_$_f736[761]:k.render===_$_f736[756]?_$_f736[763]+(k.source[f].color||_$_f736[762])+_$_f736[764]+d+_$_f736[765]:d;return b.join(_$_f736[11])}for(k=0;k<b.length;k++)b[k]=(_$_f736[11]+b[k]).replace(_$_f736[30],_$_f736[32]);return b.join(_$_f736[648])}return!1}};a[_$_f736[70]]=function(b,d){for(let f=0;f<b.source.length;f++)if(b.source[f].id==d)return b.render===_$_f736[341]?b.source[f].color:b.render===
|
|
514
|
+
_$_f736[759]?b.source[f].image:b.source[f].name};return a}();l.autocomplete=l.dropdown;l.calendar=function(){const a={};let b=null;a.updateCell=function(d,f,g,h,k,m){if(d){g=f;m=a.getFormat(m);0<f&&Number(f)==f&&(g=jSuites.calendar.numToDate(f));h=_$_f736[11]+f;h.substr(4,1)===_$_f736[292]&&h.substr(7,1)===_$_f736[292]?h=!0:(h=h.split(_$_f736[292]),h=4==h[0].length&&h[0]==Number(h[0])&&2==h[1].length&&h[1]==Number(h[1])?!0:!1);h||(h=jSuites.calendar.extractDateFromString(f,m))&&(g=h);if(g=jSuites.calendar.getDateString(g,
|
|
515
|
+
m))return d.textContent=g,f;d.textContent=_$_f736[11];return _$_f736[11]}};a.createCell=a.updateCell;a.openEditor=function(d,f,g,h,k,m){m=Object.create(m);typeof m.filterOptions==_$_f736[14]&&(m=m.filterOptions(k,d,g,h,f,m));g=m.options||{};g.opened=!0;g.onclose=function(){k.closeEditor(d,!0)};typeof m.timepicker!==_$_f736[12]&&(g.time=e(m,_$_f736[766])?!0:!1);typeof g.readonly!==_$_f736[12]&&(g.readonly=m.readonly);g.value=f||null;g.placeholder=g.format;b=l.createEditor(_$_f736[307],d,f,k);jSuites.calendar(b,
|
|
516
|
+
g);!1===b.calendar.options.readonly&&b.focus()};a.closeEditor=function(d,f){d=b.calendar.close(!0,b.value?!0:!1);d=b.value?d:_$_f736[11];if(f)return d};a.getFormat=function(d){return d&&d.format?d.format:d&&d.options&&d.options.format?d.options.format:_$_f736[767]};a[_$_f736[70]]=function(d,f){d=a.getFormat(d);return jSuites.calendar.getDateString(f,d)};return a}();l.color=function(){const a={};let b=null;a.updateCell=function(d,f,g,h,k,m){d&&(m.render===_$_f736[768]?(g=document.createElement(_$_f736[46]),
|
|
517
|
+
g.className=_$_f736[341],g.style.backgroundColor=f,d.textContent=_$_f736[11],d.appendChild(g)):(d.style.color=f,d.textContent=f))};a.createCell=a.updateCell;a.openEditor=function(d,f,g,h,k,m){m=Object.create(m);typeof m.filterOptions==_$_f736[14]&&(m=m.filterOptions(k,d,g,h,f,m));g=m.options||{};g.value=f;g.onclose=function(){k.closeEditor(d,!0)};b=l.createEditor(_$_f736[307],d,f,k);b=jSuites.color(b,g);b.open()};a.closeEditor=function(d,f){return f?b.close(!0):_$_f736[11]};a[_$_f736[70]]=function(d,
|
|
518
|
+
f){d=document.createElement(_$_f736[46]);d.style.width=_$_f736[769];d.style.height=_$_f736[48];d.style.backgroundColor=f;return d.outerHTML};return a}();l.checkbox=function(){const a={createCell:function(b,d,f,g,h,k){d=c(d);f=document.createElement(_$_f736[307]);f.type=_$_f736[337];f.checked=d;f.onclick=function(m){m.preventDefault();m.stopPropagation();if(k&&!0===k.readOnly||!h.isEditable())return!1;let n=this.checked;setTimeout(function(){h.setValue(b,n)})};b.innerHTML=_$_f736[11];b.appendChild(f);
|
|
519
|
+
return d},updateCell:function(b,d){d=c(d);b&&b.children[0]&&(b.children[0].checked=d);return d},openEditor:function(b,d,f,g,h){d=!b.children[0].checked;h.setValue(b,d);return!1},closeEditor:function(){return!1}};a[_$_f736[70]]=function(b,d){return c(d)?F(_$_f736[317]):F(_$_f736[770])};return a}();l.radio=function(){const a={createCell:function(b,d,f,g,h,k){g=document.createElement(_$_f736[307]);g.type=_$_f736[344];g.name=k.name||_$_f736[384]+f;g.checked=c(d);g.onclick=function(m){m.preventDefault();
|
|
520
|
+
m.stopPropagation();if(k&&!0===k.readOnly||!h.isEditable())return!1;setTimeout(function(){h.setValue(b,!0)})};b.innerHTML=_$_f736[11];b.appendChild(g)},updateCell:function(b,d,f,g,h){d=c(d);b&&(b.children[0].checked=d);if(!0===d){b=[];for(let k=0;k<h.options.data.length;k++)g!=k&&O.call(h,f,k)&&b.push({x:f,y:k,value:0});b.length&&h.setValue(b)}return d},openEditor:function(b,d,f,g,h){d=!b.children[0].checked;h.setValue(b,d);return!1},closeEditor:function(){return!1}};a[_$_f736[70]]=function(b,d){return c(d)?
|
|
521
|
+
F(_$_f736[317]):F(_$_f736[770])};return a}();l.autonumber=function(){const a={};let b=null;a.createCell=function(d,f,g,h,k,m){(f=parseInt(f))||d&&0<parseInt(d.textContent)&&(f=parseInt(d.textContent));m.sequence||(m.sequence=0);f?a.isValid(f,g,h,k)||(f=_$_f736[326]):f=m.sequence+1;f>m.sequence&&(m.sequence=f);d&&(d.textContent=f);return f};a.updateCell=a.createCell;a.openEditor=function(d,f,g,h,k){b=l.createEditor(_$_f736[307],d,f,k);b.onblur=function(){k.closeEditor(d,!0)};b.focus();b.value=f};a.closeEditor=
|
|
522
|
+
function(d,f){return f?b.value:_$_f736[11]};a.isValid=function(d,f,g,h){let k;for(let m=0;m<h.options.data.length;m++)if(k=h.value(f,m),k==d&&m!=g)return!1;return!0};return a}();l.progressbar=function(){const a={};let b=null;a.createCell=function(d,f){f=parseInt(f);if(100<f)f=100;else if(!f||0>f)f=0;let g;d.children[0]&&d.children[0].tagName===_$_f736[735]?g=d.children[0]:(g=document.createElement(_$_f736[46]),g.classList.add(_$_f736[342]),d.textContent=_$_f736[11],d.classList.add(_$_f736[771]),d.appendChild(g));
|
|
523
|
+
g.style.width=parseInt(f)+_$_f736[772];g.setAttribute(_$_f736[375],parseInt(f)+_$_f736[772])};a.destroyCell=function(d){d.classList.remove(_$_f736[771])};a.updateCell=a.createCell;a.openEditor=function(d,f,g,h,k){b=l.createEditor(_$_f736[307],d,f,k);b.type=_$_f736[37];b.setAttribute(_$_f736[773],0);b.setAttribute(_$_f736[774],100);b.onblur=function(){k.closeEditor(d,!0)};b.focus();b.value=f};a.closeEditor=function(d,f){return f?b.value:_$_f736[11]};return a}();l.rating=function(){const a={};let b=
|
|
524
|
+
null;a.createCell=function(d,f,g,h,k,m){return a.setCell(d,f,m)};a.destroyCell=function(d){d.classList.remove(_$_f736[775])};a.updateCell=a.createCell;a.openEditor=function(d,f,g,h,k){b=l.createEditor(_$_f736[307],d,f,k);b.type=_$_f736[37];b.setAttribute(_$_f736[773],0);b.setAttribute(_$_f736[774],5);b.onblur=function(){k.closeEditor(d,!0)};b.focus();b.value=f};a.closeEditor=function(d,f){return f?b.value:_$_f736[11]};a.setCell=function(d,f,g){f=parseInt(f);if(5<f)f=5;else if(!f||0>f)f=0;if(d){g=
|
|
525
|
+
g&&g.color?g.color:_$_f736[354];let h=document.createElement(_$_f736[46]);h.setAttribute(_$_f736[375],parseInt(f)+_$_f736[776]);h.classList.add(_$_f736[343]);for(let k=0;k<f;k++){let m=document.createElement(_$_f736[211]);m.className=_$_f736[212];m.style.color=g;m.innerHTML=_$_f736[777];h.appendChild(m)}d.innerHTML=_$_f736[11];d.className=_$_f736[775];d.appendChild(h)}return f};return a}();l.email=function(){const a={createCell:function(b,d,f,g,h,k){b&&(b.children&&b.children[0]&&b.children[0].tagName===
|
|
526
|
+
_$_f736[679]?f=b.children[0]:(f=document.createElement(_$_f736[274]),b.textContent=_$_f736[11],b.appendChild(f),k.options&&k.options.url&&f.setAttribute(_$_f736[778],k.options.url)),f.textContent=d)}};a.updateCell=a.createCell;a.openEditor=function(b,d,f,g,h){h.parent.input.classList.add(_$_f736[737]);h.parent.input.onblur=function(){h.closeEditor(b,!0)};h.parent.input.textContent=d;jSuites.focus(h.parent.input)};a.closeEditor=function(b,d,f,g,h){h.parent.input.classList.remove(_$_f736[737]);return d?
|
|
527
|
+
h.parent.input.textContent.replace(new RegExp(/\n/,_$_f736[33]),_$_f736[11]):_$_f736[11]};return a}();l.url=l.email;l.image=function(){const a={};let b=null;a.createCell=function(d,f,g,h,k,m){if(d)if(f)if(d.children&&d.children[0]&&d.children[0].tagName===_$_f736[779])d.children[0].src=f;else{let n=document.createElement(_$_f736[63]);m.render===_$_f736[780]&&n.classList.add(_$_f736[780]);m.options&&(n.style.maxWidth=_$_f736[781],m.options.absolute&&(d.classList.add(_$_f736[84]),n.setAttribute(_$_f736[80],
|
|
528
|
+
-1),n.classList.add(_$_f736[81]),n.classList.add(_$_f736[82]),n.settings=function(){k.openEditor(d,f,g,h,k,m)},n.dblclick=function(){k.openEditor(d,!0)},n[_$_f736[83]]=function(){k.setValueFromCoords(g,h,_$_f736[11])},n.refresh=function(r){if(!r){r=parseInt(n.style.top)||0;let p=parseInt(n.style.left)||0,u=parseInt(n.style.width)||40,v=parseInt(n.style.height)||40,w=d.getAttribute(_$_f736[76]),z=d.getAttribute(_$_f736[72]);k.updateProperty([{x:w,y:z,value:{top:r,left:p,width:u,height:v}}],null,null,
|
|
529
|
+
!0)}}),m.options.width&&(n.style.width=parseInt(m.options.width)+_$_f736[19]),m.options.height&&(n.style.height=parseInt(m.options.height)+_$_f736[19]),m.top&&(n.style.top=parseInt(m.top)+_$_f736[19]),m.left&&(n.style.left=parseInt(m.left)+_$_f736[19]),m.width&&(n.style.width=parseInt(m.width)+_$_f736[19]),m.height&&(n.style.height=parseInt(m.height)+_$_f736[19]));n.src=f;d.innerHTML=_$_f736[11];d.appendChild(n)}else d.innerHTML=_$_f736[11]};a.updateCell=a.createCell;a.openEditor=function(d,f,g,h,
|
|
530
|
+
k,m){(m&&m.options?m.options:{}).value=f;b=l.createDialog(d,f,g,h,k,m);f&&(d=document.createElement(_$_f736[63]),d.src=f,d.classList.add(_$_f736[782]),d.style.width=_$_f736[781],b.appendChild(d));jSuites.image(b,m)};a.closeEditor=function(d,f){if(f&&(d=b.children[0]))return d.tagName===_$_f736[779]?d.src:_$_f736[11]};a[_$_f736[70]]=function(d,f){return _$_f736[783]+f+_$_f736[784]};return a}();l.html=function(){const a={};let b=null;a.createCell=function(d,f){d.classList.add(_$_f736[785]);let g=document.createElement(_$_f736[46]);
|
|
531
|
+
g.innerHTML=f;d.appendChild(g)};a.updateCell=function(d,f){d&&(d.firstChild.innerHTML=f)};a.destroyCell=function(d){d.classList.remove(_$_f736[785])};a.openEditor=function(d,f,g,h,k,m){let n=m&&m.options?m.options:{};n.focus=!0;n.value=f;n.border=!1;n.height=_$_f736[755];f=l.createDialog(d,f,g,h,k,m);b=jSuites.editor(f,n);b.close=function(){k.closeEditor(d,!0)};jSuites.tracking(b,!0)};a.closeEditor=function(d,f){jSuites.tracking(b,!1);d=b.getData();if(f)return d};return a}();l.hidden=function(){const a=
|
|
532
|
+
{createCell:function(b,d){b&&(b.textContent=d)}};a.updateCell=a.createCell;a.openEditor=function(){return!1};a.closeEditor=function(){return!1};return a}();l.tags=function(){const a={};let b=null;a.createCell=function(d,f){d.classList.add(_$_f736[786]);a.updateCell(d,f)};a.updateCell=function(d,f){d&&(d.innerHTML=f)};a.destroyCell=function(d){d.classList.remove(_$_f736[786])};a.openEditor=function(d,f,g,h,k,m){let n=m&&m.options?m.options:{};n.value=f;b=l.createDialog(d,f,g,h,k,m);d=document.createElement(_$_f736[46]);
|
|
533
|
+
d.style.margin=_$_f736[48];d.style.marginRight=_$_f736[787];b.appendChild(d);b=jSuites.tags(d,n);d.focus();jSuites.focus(d)};a.closeEditor=function(d,f){return f?b.getValue():_$_f736[11]};return a}();l.record=function(){const a={};let b=null;a.createCell=function(d,f,g,h,k,m){d.classList.add(_$_f736[749]);let n={x:g,y:h,v:f},r=k.parent.getWorksheetInstance(m.worksheetId);r?r.rows?a.updateCell(d,f,g,h,k,m):(d.textContent=_$_f736[326],k.parent.queue[_$_f736[17]](n,k)):(d.textContent=_$_f736[326],k.parent.queue[_$_f736[17]](n,
|
|
534
|
+
k))};a.destroyCell=function(d){d.classList.remove(_$_f736[749])};a.updateCell=function(d,f,g,h,k,m){d&&(typeof m.worksheetId==_$_f736[12]?d.textContent=_$_f736[326]:d.innerHTML=a.getValue(d,f,g,h,k,m))};a.openEditor=function(d,f,g,h,k,m){let n=m.delimiter||_$_f736[300];m=Object.create(m);m.options||(m.options={});typeof m.filter==_$_f736[14]&&(m.source=m.filter(k.el,d,g,h,m.source));typeof m.filterOptions==_$_f736[14]&&(m=m.filterOptions(k,d,g,h,f,m));g=m.options;g.data=a.getSource(k,m);e(m,_$_f736[758])&&
|
|
535
|
+
(g.multiple=!0);e(m,_$_f736[90])&&(g.autocomplete=!0);g.format=!0;g.opened=!0;g.width=d.offsetWidth-2;g.onclose=function(){k.closeEditor(d,!0)};e(m,_$_f736[758])?f&&(g.value=(_$_f736[11]+f).split(n)):g.value=f;b=l.createEditor(_$_f736[46],d,f,k);b=jSuites.dropdown(b,g)};a.closeEditor=function(d,f,g,h,k,m){d=m.delimiter||_$_f736[300];g=b.getValue(!0);b.close(!0);if(f)return g.join(d)};a.getValue=function(d,f,g,h,k,m){d=[];if(typeof m.worksheetId==_$_f736[10]&&(k=k.parent.getWorksheetInstance(m.worksheetId))){g=
|
|
536
|
+
m.worksheetColumn?m.worksheetColumn:0;0<=m.worksheetImage&&(g=m.worksheetImage);if(f===_$_f736[11]||0===f||null===f||typeof f===_$_f736[12])return _$_f736[11];f=(_$_f736[11]+f).split(_$_f736[300]);for(h=0;h<f.length;h++){var n=f[h].trim();var r=k.name(g);n=k.getRowById(n);r=!1===n?_$_f736[788]:n[r];0<=m.worksheetImage&&(r=_$_f736[789]+r+_$_f736[790]);d.push(r)}return 0<=m.worksheetImage?d.join(_$_f736[11]):d.join(_$_f736[648])}return _$_f736[326]};a.getSource=function(d,f){let g=[],h=f.worksheetColumn?
|
|
537
|
+
f.worksheetColumn:0,k=null;typeof f.worksheetId==_$_f736[10]&&(k=d.parent.getWorksheetInstance(f.worksheetId));if(k){var m;for(d=0;d<k.rows.length;d++)if(m=k.value(h,d))m={id:k.getRowId(d),name:m},typeof f.worksheetImage!==_$_f736[12]&&(m.image=k.value(f.worksheetImage,d)),g.push(m)}else console.error(_$_f736[791]+f.worksheetId);return g};a[_$_f736[70]]=function(d,f){for(let g=0;g<d.source.length;g++)if(d.source[g].id===f)return d.render===_$_f736[341]?d.source[g].color:d.render===_$_f736[759]?d.source[g].image:
|
|
538
|
+
d.source[g].name};return a}();return l}();return t});
|