jspreadsheet 8.1.2 → 8.1.8

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Jspreadsheet v8.1.2
2
+ * Jspreadsheet v8.1.7
3
3
  *
4
4
  * Website: https://jspreadsheet.com
5
5
  * Description: Create amazing web based spreadsheets.
@@ -15,14 +15,14 @@ if (! jSuites && typeof(require) === 'function') {
15
15
  var jSuites = require('jsuites');
16
16
  }
17
17
 
18
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(z){var D=0;return function(){return D<z.length?{done:!1,value:z[D++]}:{done:!0}}};$jscomp.arrayIterator=function(z){return{next:$jscomp.arrayIteratorImpl(z)}};$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(z,D,F){if(z==Array.prototype||z==Object.prototype)return z;z[D]=F.value;return z};$jscomp.getGlobal=function(z){z=["object"==typeof globalThis&&globalThis,z,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var D=0;D<z.length;++D){var F=z[D];if(F&&F.Math==Math)return F}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(z,D){var F=$jscomp.propertyToPolyfillSymbol[D];if(null==F)return z[D];F=z[F];return void 0!==F?F:z[D]};
21
- $jscomp.polyfill=function(z,D,F,O){D&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(z,D,F,O):$jscomp.polyfillUnisolated(z,D,F,O))};$jscomp.polyfillUnisolated=function(z,D,F,O){F=$jscomp.global;z=z.split(".");for(O=0;O<z.length-1;O++){var M=z[O];if(!(M in F))return;F=F[M]}z=z[z.length-1];O=F[z];D=D(O);D!=O&&null!=D&&$jscomp.defineProperty(F,z,{configurable:!0,writable:!0,value:D})};
22
- $jscomp.polyfillIsolated=function(z,D,F,O){var M=z.split(".");z=1===M.length;O=M[0];O=!z&&O in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var V=0;V<M.length-1;V++){var K=M[V];if(!(K in O))return;O=O[K]}M=M[M.length-1];F=$jscomp.IS_SYMBOL_NATIVE&&"es6"===F?O[M]:null;D=D(F);null!=D&&(z?$jscomp.defineProperty($jscomp.polyfills,M,{configurable:!0,writable:!0,value:D}):D!==F&&(void 0===$jscomp.propertyToPolyfillSymbol[M]&&(F=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[M]=$jscomp.IS_SYMBOL_NATIVE?
23
- $jscomp.global.Symbol(M):$jscomp.POLYFILL_PREFIX+F+"$"+M),$jscomp.defineProperty(O,$jscomp.propertyToPolyfillSymbol[M],{configurable:!0,writable:!0,value:D})))};$jscomp.initSymbol=function(){};$jscomp.iteratorPrototype=function(z){z={next:z};z[Symbol.iterator]=function(){return this};return z};
24
- $jscomp.iteratorFromArray=function(z,D){z instanceof String&&(z+="");var F=0,O=!1,M={next:function(){if(!O&&F<z.length){var V=F++;return{value:D(V,z[V]),done:!1}}O=!0;return{done:!0,value:void 0}}};M[Symbol.iterator]=function(){return M};return M};$jscomp.polyfill("Array.prototype.values",function(z){return z?z:function(){return $jscomp.iteratorFromArray(this,function(D,F){return F})}},"es8","es3");
25
- var _$_5e1e=["use strict","{","}","","8.1.2","Base","https://jspreadsheet.com","Unlicensed","Jspreadsheet Pro\r\n"," edition ","\r\n","set","=","undefined","number","fullscreen","block","string","readonly","jss_hidden_index","div","right","10px","pointer","/v8",",","localhost",".","v8"," (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","jspreadsheet","img","/jspreadsheet/","logo.png",
18
+ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(C){var H=0;return function(){return H<C.length?{done:!1,value:C[H++]}:{done:!0}}};$jscomp.arrayIterator=function(C){return{next:$jscomp.arrayIteratorImpl(C)}};$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(C,H,K){if(C==Array.prototype||C==Object.prototype)return C;C[H]=K.value;return C};$jscomp.getGlobal=function(C){C=["object"==typeof globalThis&&globalThis,C,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<C.length;++H){var K=C[H];if(K&&K.Math==Math)return K}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(C,H){var K=$jscomp.propertyToPolyfillSymbol[H];if(null==K)return C[H];K=C[K];return void 0!==K?K:C[H]};
21
+ $jscomp.polyfill=function(C,H,K,S){H&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(C,H,K,S):$jscomp.polyfillUnisolated(C,H,K,S))};$jscomp.polyfillUnisolated=function(C,H,K,S){K=$jscomp.global;C=C.split(".");for(S=0;S<C.length-1;S++){var P=C[S];if(!(P in K))return;K=K[P]}C=C[C.length-1];S=K[C];H=H(S);H!=S&&null!=H&&$jscomp.defineProperty(K,C,{configurable:!0,writable:!0,value:H})};
22
+ $jscomp.polyfillIsolated=function(C,H,K,S){var P=C.split(".");C=1===P.length;S=P[0];S=!C&&S in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var Z=0;Z<P.length-1;Z++){var N=P[Z];if(!(N in S))return;S=S[N]}P=P[P.length-1];K=$jscomp.IS_SYMBOL_NATIVE&&"es6"===K?S[P]:null;H=H(K);null!=H&&(C?$jscomp.defineProperty($jscomp.polyfills,P,{configurable:!0,writable:!0,value:H}):H!==K&&(void 0===$jscomp.propertyToPolyfillSymbol[P]&&(K=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[P]=$jscomp.IS_SYMBOL_NATIVE?
23
+ $jscomp.global.Symbol(P):$jscomp.POLYFILL_PREFIX+K+"$"+P),$jscomp.defineProperty(S,$jscomp.propertyToPolyfillSymbol[P],{configurable:!0,writable:!0,value:H})))};$jscomp.initSymbol=function(){};$jscomp.iteratorPrototype=function(C){C={next:C};C[Symbol.iterator]=function(){return this};return C};
24
+ $jscomp.iteratorFromArray=function(C,H){C instanceof String&&(C+="");var K=0,S=!1,P={next:function(){if(!S&&K<C.length){var Z=K++;return{value:H(Z,C[Z]),done:!1}}S=!0;return{done:!0,value:void 0}}};P[Symbol.iterator]=function(){return P};return P};$jscomp.polyfill("Array.prototype.values",function(C){return C?C:function(){return $jscomp.iteratorFromArray(this,function(H,K){return K})}},"es8","es3");
25
+ var _$_9989=["use strict","{","}","","8.1.7","Base","https://jspreadsheet.com","Unlicensed","Jspreadsheet Pro\r\n"," edition ","\r\n","set","=","undefined","number","fullscreen","block","string","readonly","jss_hidden_index","div","right","10px","pointer","/v8",",","localhost",".","v8"," (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","jspreadsheet","img","/jspreadsheet/","logo.png",
26
26
  "none","status","data-x","data-y","px","X","goto","jss_scroll","jss_control","hidden","jss_freezed","get","colspan","center","300px","Jspreadsheet Pro","text","autocomplete","dropdown","GET","json","Jspreadsheet Alert: secureFormulas is set to false.","setConfig","insertRow","deleteRow","insertColumn","deleteColumn","moveRow","moveColumn","setMerge","removeMerge","setStyle","resetStyle","setWidth","setHeight","setHeader","setComments","setProperty","orderBy","setValue","renameWorksheet","moveWorksheet",
27
27
  "onundo","onredo","object","function","contextMenu","toolbar","Jspreadsheet: cursor not in the viewport","oneditionstart","oncreateeditor","jss_focus","jss_formula","oneditionend","data-mask","data-value","inputmode","0","style","jss_input","contentEditable","onevent","setRowId","onchangerowid","setBorder","resetBorders","updateCells","setFormula","updateData","onbeforesave","POST","Authorization","Bearer ","disconected",": ","Sorry, something went wrong, refreshing your spreadsheet...","_top","onsave",
28
28
  "persistence","?","?worksheet=","&worksheet=","add","remove","jss_cursor","selected","main","copying","onblur","onfocus","selection","onselection"," ","'","'!","!",":","jss_border","cloning","jss_border_","15","-2000px","#ccc","transparent","0px","tr","jss_group_container","td","&nbsp;",".jss_group","jss_group","+","width","Jspreadsheet: This column is part of a merged cell.","jss_dragging","1px","jss_helper_col","Jspreadsheet: This row is part of a merged cell","Jspreadsheet: Please clear your search before perform this action",
@@ -31,420 +31,425 @@ var _$_5e1e=["use strict","{","}","","8.1.2","Base","https://jspreadsheet.com","
31
31
  "#SPILL!","#REF!","$","Something went wrong","onafterchanges","checkbox","autonumber","radio","email","url","color","progressbar","rating","onbeforechange","onchange","oncreatecell","values","mergeCells",";","title","jss_unlocked","oncreaterow","jss_row","Jspreadsheet: Invalid origin or destination","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",
32
32
  "onbeforedeleterow","onbeforedeleterow returned false","meta","cells","comments","ondeleterow","Jspreadsheet: Invalid origin","Jspreadsheet: Invalid destination","onmovecolumn","Jspreadsheet: Insert column is not enabled in the table configuration","onbeforeinsertcolumn","onbeforeinsertcolumn returned false","col_","oninsertcolumn","Jspreadsheet: Delete column is not enabled in the table configuration","Jspreadsheet: it is not possible to delete the last column","onbeforedeletecolumn","onbeforedeletecolumn returned false",
33
33
  "ondeletecolumn","Jspreadsheet: Column does not exists.","; ","onchangestyle","No cell provided","onresetstyle","onbeforecomments","oncomments","setMeta","onchangemeta","resetMeta","onresetmeta","arrow-down","percent","numeric","onbeforesort","This action will destroy any existing merged cells. Are you sure?","onsort","arrow-up","jss_pagination","Jspreadsheet: No pagination defined","Jspreadsheet: pagination not defined","onbeforechangepage","onchangepage","No records found","jss_page","jss_page_selected",
34
- "Showing page {0} of {1} entries","jss_content","wheel","selectstart","table","thead","tbody","tfoot","colgroup","50","jss_selectall","jss","cellpadding","cellspacing","unselectable","yes","jss_wrap","jss_overflow","jss_locked","jss_corner","on","onselectstart","return false","Y","jss_table","jss_table_container","both","Freeze columns cannot be greater than the number of available columns","rows","jss_container","jss_toolbar","jss_helper","jss_loading","textarea","jss_textarea","-1","bottom","Defined names are only available on the Premium edition.",
34
+ "Showing page {0} of {1} entries","jss_content","wheel","selectstart","table","thead","tbody","tfoot","colgroup","50","jss_selectall","jss","cellpadding","cellspacing","unselectable","yes","jss_wrap","jss_overflow","jss_locked","jss_corner","on","onselectstart","return false","Y","jss_table","jss_table_container","Freeze columns cannot be greater than the number of available columns","rows","jss_container","jss_toolbar","jss_helper","jss_loading","textarea","jss_textarea","-1","bottom","Defined names are only available on the Premium edition.",
35
35
  "beforeinit","Sheet","Worksheet clash name: ",". It is highly recommended to define a unique worksheetName on the initialization.","jss_worksheet","init","To improve the performance, use tableOverflow or pagination.","resize","touchstart","touchmove","touchend","onresizecolumn","onresizerow","label","jss_filters_active","Jspreadsheet: the filter is not enabled.","Blanks","onbeforefilter","onfilter","gi","jss_filters_options","INPUT","Search","jss_filters_search","button","Ok","jss_filters_apply",
36
36
  "jss_filters",'<input type="checkbox"> ',"Add current selection to filter",'<input type="checkbox"> (',"Select all","select","jss_pagination_dropdown","option","Show","entries","jss_search","onbeforesearch","onsearch","jss_search_container","jss_contextmenu","Mac","&#8984;","Ctrl","tabs","Rename this worksheet","Delete this worksheet","Are you sure?","line","nested","Rename this cell","header","row","cell","Cut","content_cut"," + X","Copy","content_copy"," + C","Paste","content_paste"," + V","Insert a new column before",
37
- "Insert a new column after","Delete selected columns","Rename this column","Create a new row","Order ascending","Order descending","Insert a new row before","Insert a new row after","Delete selected rows","Edit comments","Add comments","notes","Comments","Clear comments","Save as","save"," + S","About","info","with-toolbar","i","undo","redo","divisor","160px","Verdana","Arial","Courier New",'<span style="font-family:',"</span>","font-family","48px","format_size","x-small","small","medium","large",
37
+ "Insert a new column after","Delete selected columns","Rename this column","Create a new row","Order ascending","Order descending","Insert a new row before","Insert a new row after","Delete selected rows","Edit comments","Add comments","notes","Comments","Clear comments","Save as","save"," + S","About","info","with-toolbar","i","undo","redo","divisor","120px","Verdana","Arial","Courier New",'<span style="font-family:',"</span>","font-family","48px","format_size","x-small","small","medium","large",
38
38
  "x-large",'<span style="font-size:',"font-size","format_align_left","format_align_center","format_align_right","format_align_justify",'<i class="material-icons">',"</i>","text-align","_","format_bold","font-weight","bold","format_color_text","format_color_fill","background-color","height","50px","Normal","Medium","Large","Extra","jss_row_medium","jss_row_large","jss_row_extra","fullscreen_exit","Toggle Fullscreen","border_all","border_outer","border_inner","border_horizontal","border_vertical","border_left",
39
39
  "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: ; ","material-icons","color_lens",'<div style="height: ','px; width: 50px; background-color: black;"></div>',"80px","1","search","search_off","Toggle Search","onbeforecreateworksheet","There is one existing worksheet with the same name.","createWorksheet","oncreateworksheet","deleteWorksheet",
40
40
  "ondeleteworksheet","It was not possible to rename worksheet due conflict name","onrenameworksheet","onmoveworksheet","onopenworksheet","jss_","TABLE","Element is not a table","colgroup > col","data-celltype","readOnly","name","id",":scope > thead > tr",":scope > tr, :scope > tbody > tr","data-formula","class","styleBold","; font-weight:bold;","font-weight:bold;","tfoot tr","\r","\n","jss_ignore","THEAD","TBODY","TFOOT","selectall","header-group","jtabs-headers","filters","footer","jtoolbar","DIV",
41
- "data-current","html","jss_nowrap","insertHTML","<br/>\n","Process","A","mailto:","_blank","onclick","jclose","col-resize","row-resize","move","Cloud plugin not loaded.","jtabs","jss_dialog","#","decimal","data-locale","%","jss_percent","\\[Red\\]","red","\\(","jss_notes","145px","tag","jss_dropdown_tags","jss_dropdown","multiple","image","<div class='jss_dropdown_icon' style='background-color: ","'></div>","orange","<div class='jss_dropdown_tag' style='background-color: ","'>","</div>","&lt;","timepicker",
42
- "YYYY-MM-DD","square","100px","false","FALSE","disabled","TRUE","jss_progressbar","min","max","jss_rating"," stars","star","href","IMG","round","100%","absolute","jfile",'<img src="','" alt="">',"jss_richtext","jss_tags","40px","#NOTFOUND","<img src='","' class='round small' />","Jspreadsheet: worksheet not found "];
43
- (function(z,D){typeof exports===_$_5e1e[84]&&typeof module!==_$_5e1e[13]?module.exports=D():typeof define===_$_5e1e[85]&&define.amd?define(D):z.jspreadsheet=z.jexcel=D()})(this,function(){_$_5e1e[0];var z=function(k,a){k=jSuites.translate(k);if(a&&a.length)for(var c=0;c<a.length;c++)k=k.replace(_$_5e1e[1]+c+_$_5e1e[2],a[c]);return k},D=function(k,a){Array.isArray(k)&&(k=k[0]);k=k.replace(new RegExp(/'/g),_$_5e1e[3]).toUpperCase();if(void 0===a)return window[k]?window[k]:null;window[k]=a},F=function(){var k=
44
- {version:_$_5e1e[4],edition:_$_5e1e[5],host:_$_5e1e[6],license:_$_5e1e[7],print:function(){return[_$_5e1e[8]+this.edition+_$_5e1e[9]+this.version+_$_5e1e[10]+this.host+_$_5e1e[10]+this.license]}};return function(){return k}}(),O=function(k){var a=parseInt(k.y);if(k.id)var c=parseInt(k.id);else k.value&&(c=parseInt(k.value));0<c&&(this.rows[a].id=c,pa[_$_5e1e[11]].call(this,c))},M=function(k){return(_$_5e1e[3]+k).substr(0,1)===_$_5e1e[12]},V=function(k){var a=this.options.columns;return a[k]&&a[k].name?
45
- a[k].name:k},K=function(k,a,c){var b;if(b=this.options.data[a]){var d=0<=k?V.call(this,k):k;typeof c===_$_5e1e[13]?c=typeof d===_$_5e1e[14]?b[k]:jSuites.path.call(b,_$_5e1e[3]+d):(typeof d===_$_5e1e[14]?b[k]=c:jSuites.path.call(b,_$_5e1e[3]+d,c),!M(c)&&this.records[a][k]&&(this.records[a][k].v=c))}else c=null;return c},N=function(k){return 0==this.config.editable||k&&0==k.options.editable?!1:(k=Fa.call(this))?7<=k?!0:!1:!0},Ga=function(k){var a=_$_5e1e[15];if(this.parent)var c=this.parent.config,
46
- b=this.parent.element,d=this;else c=this.config,b=this.element,d=t.current?t.current:null;typeof k===_$_5e1e[13]&&(k=!b.classList.contains(a));k?(b.classList.add(a),c.fullscreen=!0):(b.classList.remove(a),c.fullscreen=!1);d&&(d.tbody.innerHTML=_$_5e1e[3],C.call(d),P.refresh.call(d),ca.update.call(d.parent,d))},Ha=function(k){var a=this.loading;null===k&&(k=a.style.display==_$_5e1e[16]?!0:!1);a.style.display=k?_$_5e1e[16]:_$_5e1e[3];setTimeout(function(){a.style.display=_$_5e1e[3]},1E3)},Ca=function(k,
47
- a){if(typeof k===_$_5e1e[17]){var c=A.getCoordsFromColumnName(k);c=this.records[c[1]][c[0]];if(c.element)k=c.element;else return typeof a===_$_5e1e[13]?c.readonly:c.readonly=a?!0:!1}c=_$_5e1e[18];k=k.classList;if(typeof a===_$_5e1e[13])return k.contains(c)?!0:!1;a?k.add(c):k.remove(c)},ua=function(k){var a=_$_5e1e[19],c=this.table.classList;if(typeof k==_$_5e1e[13])return c.contains(a)?!1:!0;k?c.remove(a):c.add(a);0<this.options.freezeColumns&&ia[_$_5e1e[11]].call(this,this.options.freezeColumns);
48
- this.refreshBorders()},Fa=function(k){if(void 0===k)return this.status;var a=document.createElement(_$_5e1e[20]);a.style.textAlign=_$_5e1e[21];a.style.fontSize=_$_5e1e[22];a.style.cursor=_$_5e1e[23];a.onclick=function(){window.location.href=F().host+_$_5e1e[24]};var c=null,b=[74,50,48,50,48,33].join(_$_5e1e[3]);(function(e){c=1;try{if(e){var f=window.atob(e);f=f.split(_$_5e1e[25]);if(f[1]){f[1]=window.atob(f[1]);var g=f[0];e=b;var h=f[1],l=jSuites.sha512,n=_$_5e1e[3],q=_$_5e1e[3];128<e.length&&(e=
49
- l(e));for(var p=0;128>p;p++){var r=e[p]?e[p].charCodeAt(0):0;n+=String.fromCharCode(54^r);q+=String.fromCharCode(92^r)}var w=l(q+l(n+h));if(g!=w)c=3;else if(f[1]=JSON.parse(f[1]),f[1].date){var m=window.location.hostname||_$_5e1e[26],v=m.split(_$_5e1e[27]);m=m.split(_$_5e1e[27]);2<m.length&&!jSuites.isNumeric(m[m.length-1])&&v.shift();v=v.join(_$_5e1e[27]);m=m.join(_$_5e1e[27]);if(-1==f[1].domain.indexOf(v)&&-1==f[1].domain.indexOf(m))c=4;else if(f[1].scope&&0<=f[1].scope.indexOf(_$_5e1e[28])){m=
50
- new Date;v=parseInt(m.getTime()/1E3);var u=F();f[1].date<v?(c=f[1].date+2592E3<v&&!f[1].plan||f[1].date+15552E3<v?6:7,u.license=f[1].name+_$_5e1e[29]):(c=8,u.license=_$_5e1e[30]+f[1].name,u.edition=3==f[1].plan||6==f[1].plan?_$_5e1e[31]:_$_5e1e[5])}else c=5}else c=4}else c=2}}catch(x){}})(k);k=_$_5e1e[3];if(1==c)k=_$_5e1e[32];else if(2==c||3==c||4==c)k=_$_5e1e[33];else if(5==c)k=_$_5e1e[34];else if(6==c||7==c)k=_$_5e1e[35];a.appendChild(document.createTextNode(k));if(8>c)try{if(typeof sessionStorage!==
51
- _$_5e1e[13]&&!sessionStorage.getItem(_$_5e1e[36])){sessionStorage.setItem(_$_5e1e[36],!0);var d=document.createElement(_$_5e1e[37]);d.src=F().host+_$_5e1e[38]+_$_5e1e[39];d.style.display=_$_5e1e[40];a.appendChild(d)}}catch(e){}Object.defineProperty(this,_$_5e1e[41],{value:c,writable:!1,configurable:!1,enumerable:!1,extensible:!1});F().edition===_$_5e1e[31]&&(this.edition=1);return a},P=function(){var k=function(){if(this.edition){var d=this.edition.getAttribute(_$_5e1e[42]),e=this.edition.getAttribute(_$_5e1e[43]);
52
- Z.position.call(this,d,e)}},a=function(){this.scrollX.scrollWidth<this.scrollX.scrollLeft+this.scrollX.offsetWidth+25?(this.content.scrollLeft=this.content.scrollWidth,0<this.options.freezeColumns&&da.refresh.call(this)):this.content.scrollLeft=0;k.call(this)},c=function(){var d=this.scrollY.scrollTop+this.scrollY.offsetHeight+13,e=this.tbody.lastChild.getAttribute(_$_5e1e[43]),f=this.results?this.rows[this.results[this.results.length-1]].y:this.rows[this.rows.length-1].y;this.content.scrollTop=this.scrollY.scrollHeight<
53
- d&&e==f?this.content.scrollHeight:0;k.call(this)},b=function(){if(C.limited.call(this)){var d=ia.getWidth.call(this),e=this.content.offsetWidth,f=this.content.offsetHeight;this.width=b.width.call(this)+(d?d:1);this.height=b.height.call(this);this.tfoot.offsetHeight&&(this.height+=this.tfoot.offsetHeight+26);this.scrollX.firstChild.style.width=this.width+_$_5e1e[44];this.scrollY.firstChild.style.height=this.height+_$_5e1e[44];this.scrollX.style.width=e+_$_5e1e[44];this.scrollY.style.height=f+_$_5e1e[44];
54
- this.scrollX.style.display=this.width>e?_$_5e1e[3]:_$_5e1e[40];this.scrollY.style.display=this.height>f?_$_5e1e[3]:_$_5e1e[40]}else this.scrollX.style.display=_$_5e1e[40],this.scrollY.style.display=_$_5e1e[40]};b.refresh=function(){this.scrollY.scrollTop=0;this.scrollX.scrollLeft=0;b.call(this)};b.updateX=function(){if(b.event)return!1;var d=parseInt(this.thead.lastChild.children[(this.options.freezeColumns||0)+1].getAttribute(_$_5e1e[42]));b.setX.call(this,b.width.call(this,d));a.call(this)};b.updateY=
55
- function(){if(b.event)return!1;if(this.tbody.firstChild){var d=parseInt(this.tbody.firstChild.getAttribute(_$_5e1e[43]));b.setY.call(this,b.height.call(this,d));c.call(this)}};b.setX=function(d){b.ignore=!0;this.scrollX.scrollLeft=d};b.setY=function(d){b.ignore=!0;this.scrollY.scrollTop=d};b.update=function(d,e){e==_$_5e1e[45]?(d=b.width.call(this,null,d.target.scrollLeft/(d.target.scrollWidth-this.content.offsetWidth)*this.width),C.reset.call(this),C[_$_5e1e[46]].call(this,null,d),a.call(this)):
56
- (d=b.height.call(this,null,d.target.scrollTop/(d.target.scrollHeight-this.content.offsetHeight)*(this.height-(this.tbody.offsetHeight-5))),this.tbody.textContent=_$_5e1e[3],C[_$_5e1e[46]].call(this,d),c.call(this))};b.build=function(d){var e=this,f=document.createElement(_$_5e1e[20]),g=document.createElement(_$_5e1e[20]);f.className=_$_5e1e[47]+d;g.className=_$_5e1e[48]+d;f.appendChild(g);d==_$_5e1e[45]?f.style.height=_$_5e1e[22]:f.style.width=_$_5e1e[22];f.onscroll=function(h){if(b.ignore)return b.ignore=
57
- !1;b.event=!0;b.update.call(e,h,d);b.event=!1};return f};b.width=function(d,e){for(var f=this.options.columns,g=0,h=this.options.freezeColumns||0;h<this.options.columns.length;h++){if(d===h)return g;!1!==f[h].visible&&f[h].type!==_$_5e1e[49]&&(g+=parseInt(f[h].width));if(g>=e)return h}return e?h:g};b.height=function(d,e){var f=0,g=0;this.options.defaultRowHeight||(this.options.defaultRowHeight=26);for(var h=this.results?this.results:this.rows,l=0;l<h.length;l++){g=l;this.results&&(g=h[l]);if(d===
58
- g)return f;this.rows[g]&&!1!==this.rows[g].visible&&(f=this.rows[g].height?f+parseInt(this.rows[g].height):f+parseInt(this.options.defaultRowHeight));if(f>=e)return g}return e?g:f};return b}(),C=function(){var k=function(){var a=0;this.results&&(a=this.results[0]);k.reset.call(this,!0);k.renderX.call(this,0);k.renderY.call(this,a);ia.headers.call(this);0<this.options.pagination&&qa.update.call(this);T.update.call(this);this.refreshBorders();P.call(this)};k.limited=function(){return 1==this.options.tableOverflow||
59
- 1==this.parent.config.fullscreen};k.refresh=function(){if(!this.tbody.lastChild)return!1;var a=parseInt(this.thead.lastChild.lastChild.getAttribute(_$_5e1e[42]))+1,c=parseInt(this.tbody.lastChild.getAttribute(_$_5e1e[43]));this.results?(c=this.results.indexOf(c),c<this.results.length-1&&c++,c=this.results[c]):c++;k.renderX.call(this,a);k.renderY.call(this,c);k.adjustX.call(this,!1);k.adjustY.call(this,!1);P.call(this)};k.renderX=function(a,c,b){var d=this.options.columns,e=0,f=[],g=(this.options.freezeColumns||
60
- 0)+1;1==this.parent.config.fullscreen?e=this.content.offsetWidth:1==this.options.tableOverflow&&(e=parseInt(this.options.tableWidth));var h=this.headerContainer.offsetWidth||0;for(b||(b=0);d[a]&&(!e||h<e||0<b);){!1!==d[a].visible&&d[a].type!==_$_5e1e[49]&&(h+=parseInt(d[a].width));0<b&&b--;var l=X.getWidth.call(this,a,f);l>b&&(b=l);c?(k.renderColumn.call(this,a,g),a--):(k.renderColumn.call(this,a),a++)}X.batch.call(this,f)};k.renderY=function(a,c,b){var d=0,e=[];1==this.parent.config.fullscreen?d=
61
- this.content.offsetHeight:1==this.options.tableOverflow&&(d=parseInt(this.options.tableHeight));d&&(d-=this.thead.offsetHeight+4,this.tfoot.offsetHeight&&(d-=this.tfoot.offsetHeight+14));var f=this.tbody.offsetHeight;var g=this.options.freezeColumns||0,h=parseInt(this.headerContainer.lastChild.getAttribute(_$_5e1e[42]));g=this.headerContainer.children[g+1]?parseInt(this.headerContainer.children[g+1].getAttribute(_$_5e1e[42])):h;var l=this.results?this.results.indexOf(a):a,n=parseInt(this.options.pagination)||
62
- 0,q=this.tbody.children.length||0,p=!1;for(b||(b=0);this.options.data&&this.options.data[a]&&(!n||q<n||0<b)&&(!d||f<=d||0<b);){var r=k.renderRow.call(this,a,g,h);c?(this.tbody.insertBefore(r,this.tbody.firstChild),l--):(this.tbody.appendChild(r),l++);this.rows[a].height?(r.offsetHeight!==this.rows[a].height&&(this.rows[a].height=r.offsetHeight,p=!0),f+=this.rows[a].height):(f+=this.rows[a].height=r.offsetHeight,p=!0);0<b&&b--;a=X.getHeight.call(this,a,e);a>b&&(b=a);a=this.results?this.results[l]:
63
- l;q++}X.batch.call(this,e);p&&P.call(this)};k.renderColumn=function(a,c,b){this.headers[a]||ya.create.call(this,a);if(this.options.nestedHeaders)for(b=0;b<this.options.nestedHeaders.length;b++){var d=la.getColumns.call(this,b);void 0!==d[a]&&la.renderCell.call(this,d[a],b,c)}if(this.options.footers)for(b=0;b<this.options.footers.length;b++)d=W.create.call(this,a,b),null===c?this.tfoot.children[b].appendChild(d):this.tfoot.children[b].insertBefore(d,this.tfoot.children[b].children[c]);null===c?(this.headerContainer.appendChild(this.headers[a]),
64
- this.colgroupContainer.appendChild(this.colgroup[a])):(this.headerContainer.insertBefore(this.headers[a],this.headerContainer.children[c]),this.colgroupContainer.insertBefore(this.colgroup[a],this.colgroupContainer.children[c]));if(this.tbody.children.length)for(b=0;b<this.tbody.children.length;b++)d=parseInt(this.tbody.children[b].getAttribute(_$_5e1e[43])),(d=I[_$_5e1e[51]].call(this,a,d))&&(null===c?this.tbody.children[b].appendChild(d):this.tbody.children[b].insertBefore(d,this.tbody.children[b].children[c]))};
65
- k.renderRow=function(a,c,b,d){var e=this.options.freezeColumns||0;null==c&&(c=parseInt(this.headerContainer.children[e+1].getAttribute(_$_5e1e[42])));null==b&&(b=parseInt(this.headerContainer.lastChild.getAttribute(_$_5e1e[42])));var f=wa.create.call(this,a,d);if(f.children.length)for(;f.children[e+1];)f.removeChild(f.lastChild);if(0<e){for(var g=0;g<e;g++)f.appendChild(I[_$_5e1e[51]].call(this,g,a));ia.update.call(this,a)}for(g=c;g<=b;g++)c=I[_$_5e1e[51]].call(this,g,a,d),f.appendChild(c);return f};
66
- k.resetY=function(){if(this.options.pagination){this.pageNumber||(this.pageNumber=0);var a=this.options.pagination*this.pageNumber}else a=0;var c=0;if(this.merged.rows[a]){for(c=this.options.pagination;this.merged.rows[a]&&0<=a;)a--;a++}this.tbody.textContent=_$_5e1e[3];this.results&&this.results.length&&(a=this.results[a]);(!this.results||0<this.results.length)&&C.renderY.call(this,a,0,c);0<this.options.pagination&&qa.update.call(this);P.call(this);this.refreshBorders()};k[_$_5e1e[46]]=function(a,
67
- c){if(null!==a&&0<=a)if(0<this.options.pagination)this.page(this.whichPage(a));else if(this.rows[a]||(a=this.options.data.length-1),!wa.attached.call(this,a)){if(this.merged.rows[a]){for(;this.merged.rows[a]&&0<=a;)a--;a++}this.tbody.textContent=_$_5e1e[3];k.renderY.call(this,a);var b=this.results?this.results.indexOf(a):a;0<b&&(this.results?b=this.results[b-1]:b--,k.renderY.call(this,b,!0));P.updateY.call(this)}if(null!==c&&0<=c&&(this.options.columns[c]||(c=this.options.columns.length-1),a||(a=
68
- k.getY.call(this)),!I.attached.call(this,c,a))){if(this.merged.cols[c]){for(b=a=0;b<this.rows.length;b++)this.records[b][c].merged&&(a=this.records[b][c].merged[0]);c-=a}k.reset.call(this);k.renderX.call(this,c);0<c&&k.renderX.call(this,c-1,!0);P.updateX.call(this)}this.refreshBorders()};k.pageUp=function(a,c,b){var d=parseInt(this.tbody.firstChild.getAttribute(_$_5e1e[43]));if(c){a=null;var e=this.results?this.results[0]:0}else this.results?(e=this.results.indexOf(d),0<e&&e--,e=this.results[e]):
69
- (e=d,0<e&&e--);if(e<d){if(null==a)this.tbody.textContent=_$_5e1e[3];else{d=a;if(this.options.mergeCells){var f=parseInt(this.tbody.lastChild.getAttribute(_$_5e1e[43]));d+=X.getHeight.call(this,f)}for(f=0;f<d;f++)this.tbody.removeChild(this.tbody.lastChild)}k.renderY.call(this,e,!c,a);k.adjustY.call(this,!1);b&&b.preventDefault();P.updateY.call(this)}this.refreshBorders()};k.pageDown=function(a,c,b){var d=parseInt(this.tbody.lastChild.getAttribute(_$_5e1e[43]));if(c){a=null;var e=this.results?this.results[this.results.length-
70
- 1]:this.rows.length-1}else this.results?(e=this.results.indexOf(d),e<this.results.length-1&&e++,e=this.results[e]):(e=d,d<this.options.data.length-1&&e++);if(e>d){if(null==a)this.tbody.textContent=_$_5e1e[3];else{d=a;if(this.options.mergeCells){var f=parseInt(this.tbody.firstChild.getAttribute(_$_5e1e[43]));d+=X.getHeight.call(this,f)}for(f=0;f<d;f++)this.tbody.removeChild(this.tbody.firstChild)}k.renderY.call(this,e,c,a);k.adjustY.call(this,!0);b&&b.preventDefault();P.updateY.call(this)}this.refreshBorders()};
71
- k.removeColumns=function(a,c){var b=null===c?this.headerContainer.lastChild:this.headerContainer.children[c];if(b)b=parseInt(b.getAttribute(_$_5e1e[42]));else return!1;if(this.options.mergeCells){for(var d=0,e=b,f=0;f<a;f++){var g=X.getWidth.call(this,e);g>d&&(d=g);null===c?e--:e++}a+=d}a>=this.headerContainer.children.length&&(a=this.headerContainer.children.length-1);if((d=this.options.nestedHeaders)&&d.length)for(e=0;e<d.length;e++)for(g=la.getColumns.call(this,e),f=0;f<a;f++)if(void 0!==g[b+f]&&
72
- this.nested.content[e][g[b+f]]){var h=this.nested.content[e][g[b+f]].element,l=h.getAttribute(_$_5e1e[52]);0<l&&l--;0<l?h.setAttribute(_$_5e1e[52],l):h.parentNode&&this.thead.children[e].removeChild(h)}for(f=0;f<a;f++)null===c?(this.headerContainer.removeChild(this.headerContainer.lastChild),this.colgroupContainer.removeChild(this.colgroupContainer.lastChild)):this.headerContainer.children[c]&&(this.headerContainer.removeChild(this.headerContainer.children[c]),this.colgroupContainer.removeChild(this.colgroupContainer.children[c]));
73
- for(e=0;e<this.tbody.children.length;e++)for(f=0;f<a;f++)null===c?this.tbody.children[e].removeChild(this.tbody.children[e].lastChild):this.tbody.children[e].children[c]&&this.tbody.children[e].removeChild(this.tbody.children[e].children[c]);for(e=0;e<this.tfoot.children.length;e++)for(f=0;f<a;f++)null===c?this.tfoot.children[e].removeChild(this.tfoot.children[e].lastChild):this.tfoot.children[e].removeChild(this.tfoot.children[e].children[c])};k.pageLeft=function(a,c){var b=this.options.freezeColumns||
74
- 0;if(c){a=null;var d=b}else d=parseInt(this.thead.lastChild.children[b+1].getAttribute(_$_5e1e[42]))-1;d>=b&&(null==a?k.reset.call(this):k.removeColumns.call(this,a,null),k.renderX.call(this,d,!c,a),k.adjustX.call(this,!1),P.updateX.call(this));this.refreshBorders()};k.pageRight=function(a,c){var b=this.options.freezeColumns||0;if(c){a=null;var d=this.options.columns.length-1}else d=parseInt(this.thead.lastChild.lastChild.getAttribute(_$_5e1e[42]))+1;d<this.options.columns.length&&(null==a?k.reset.call(this):
75
- k.removeColumns.call(this,a,b+1),k.renderX.call(this,d,c,a),k.adjustX.call(this,!0),P.updateX.call(this));this.refreshBorders()};k.reset=function(a){1<this.headerContainer.children.length&&(a=a?0:this.options.freezeColumns||0,k.removeColumns.call(this,this.headerContainer.children.length-(a+1),a+1))};k.getX=function(){if(this.thead.lastChild)return parseInt(this.thead.lastChild.children[1].getAttribute(_$_5e1e[42]))};k.getY=function(){if(this.tbody.firstChild)return parseInt(this.tbody.firstChild.getAttribute(_$_5e1e[43]))};
76
- k.adjustX=function(a,c){var b=this.options.freezeColumns||0;if(a){c=this.options.columns.length-1;var d=parseInt(this.tbody.firstChild.lastChild.getAttribute(_$_5e1e[42]));b=parseInt(this.tbody.firstChild.children[b+1].getAttribute(_$_5e1e[42]))}else c=b,d=parseInt(this.tbody.firstChild.children[b+1].getAttribute(_$_5e1e[42])),b=parseInt(this.tbody.firstChild.lastChild.getAttribute(_$_5e1e[42]));d===c&&(a?b--:b++,k.renderX.call(this,b,a))};k.adjustY=function(a,c){if(a){c=this.rows.length-1;var b=
77
- parseInt(this.tbody.lastChild.getAttribute(_$_5e1e[43])),d=parseInt(this.tbody.firstChild.getAttribute(_$_5e1e[43]))}else c=0,b=parseInt(this.tbody.firstChild.getAttribute(_$_5e1e[43])),d=parseInt(this.tbody.lastChild.getAttribute(_$_5e1e[43]));b==c&&(this.results?(c=this.results.indexOf(d),d=a?this.results[c-1]:this.results[c+1]):a?d--:d++,k.renderY.call(this,d,a))};k.isVisible=function(a,c){var b=this.thead.clientHeight;c||(c=1);var d=!1,e=!1,f=a.getAttribute(_$_5e1e[42]),g=a.getAttribute(_$_5e1e[43]);
78
- var h=this.records[g][f];h.merged&&(f-=h.merged[0],g-=h.merged[1],a=this.records[g][f].element);g=this.content.getBoundingClientRect();h=a.getBoundingClientRect();var l=ia.getWidth.call(this),n=g.left+l,q=g.left+g.width;f=g.top+b;var p=g.top+g.height;var r=0;g=h.top;g>=f&&g<=p||(r++,d=!0);g=h.top+h.height;g>=f&&g<=p||r++;if(r>=c)return 2>c&&(c=this.content.scrollTop,0==d?p-f>h.height&&(this.content.scrollTop+=g-p+3,P.ignore=!0,this.scrollY.scrollTop+=g-p+3):(this.content.scrollTop=a.offsetTop-b,P.ignore=
79
- !0,this.scrollY.scrollTop-=c-this.content.scrollTop)),!1;if(!l||!a.classList.contains(_$_5e1e[50]))if(r=0,f=h.left,f>=n&&f<=q||(r++,e=!0),f=h.left+h.width,f>=n&&f<q||r++,r>=c)return 2>c&&(c=this.content.scrollLeft,0==e?q-n>h.width&&(this.content.scrollLeft+=f-q+3,P.ignore=!0,this.scrollX.scrollLeft+=f-q+3):(this.content.scrollLeft=a.offsetLeft-n-50,P.ignore=!0,this.scrollX.scrollLeft-=c-this.content.scrollLeft)),!1;return!0};return k}(),Ia=function(k,a,c,b){for(var d=this.options.columns,e=k,f,g=
80
- null;k<d.length-1;)if(k++,!1!==d[k].visible&&d[k].type!==_$_5e1e[49]){f=this.records[a]&&this.records[a][k].v===_$_5e1e[3]?!1:!0;null===g&&(g=f);if(this.records[a]&&this.records[a][k].element&&this.records[a][k].element.style.display==_$_5e1e[40]){if(this.records[a][k].merged){if(k==k+this.records[a][k].merged[0]&&(e=k,!c))break;f=!1}}else{if(c&&f!==g&&!b)break;if(c)e=k;else return k}g=f}return e},Ja=function(k,a,c,b){for(var d=this.options.columns,e=k,f,g=null;0<k;)if(k--,!1!==d[k].visible&&d[k].type!==
81
- _$_5e1e[49]){f=this.records[a]&&this.records[a][k].v===_$_5e1e[3]?!1:!0;null===g&&(g=f);if(this.records[a]&&this.records[a][k].element&&this.records[a][k].element.style.display==_$_5e1e[40]){if(this.records[a][k].merged){e=k-this.records[a][k].merged[0];if(!c)break;f=!0}}else{if(c&&f!==g&&!b)break;if(c)e=k;else return k}g=f}return e},Oa=function(){var k=function(c,b,d,e){1==c||3==c?wa.attached.call(this,d)||(0<this.options.pagination?this.page(this.whichPage(d)):(1==c?C.pageUp.call(this,1,e):C.pageDown.call(this,
82
- 1,e),wa.attached.call(this,d)||C[_$_5e1e[46]].call(this,d))):I.attached.call(this,b,d)||(0==c?C.pageLeft.call(this,1,e):C.pageRight.call(this,1,e),I.attached.call(this,b,d)||C[_$_5e1e[46]].call(this,d,b))},a=function(c){c.up=a.up;c.down=a.down;c.right=a.right;c.left=a.left;c.last=a.last;c.first=a.first};a.up=function(c,b,d){if(c)var e=parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);a:{var g=e,h=f,l=h,n=null;if(this.results&&
83
- (h=this.results.indexOf(h),-1==h)){d=l;break a}for(;0<h;){h--;var q=this.results?this.results[h]:h;if(!1!==this.rows[q].visible){var p=this.records[q][g].v===_$_5e1e[3]?!1:!0;null===n&&(n=p);if(this.records[q][g].element&&this.records[q][g].element.style.display==_$_5e1e[40]){if(this.records[q][g].merged){l=q-this.records[q][g].merged[1];if(!b)break;p=!0}}else if(b&&p!==n&&!d){d=l;break a}else if(b)l=this.records[q][g].merged?q-this.records[q][g].merged[1]:q;else{d=q;break a}n=p}}d=l}d!=f&&(f=d,c?
84
- (c=this.selectedCell[0],d=this.selectedCell[1]):(c=e,d=f,e=c,f=d),k.call(this,1,e,f,b),this.updateSelectionFromCoords(c,d,e,f))};a.down=function(c,b,d){if(c)var e=parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);a:{var g=e,h=f,l=h,n=null;if(this.results){h=this.results.indexOf(h);if(-1==h){d=l;break a}var q=this.results.length-1}else q=this.rows.length-1;for(;h<q;){h++;var p=this.results?this.results[h]:h;if(!1!==
85
- this.rows[p].visible){var r=this.records[p][g].v===_$_5e1e[3]?!1:!0;null===n&&(n=r);if(this.records[p][g].element&&this.records[p][g].element.style.display==_$_5e1e[40]){if(this.records[p][g].merged){if(!this.records[p][g].merged[1]&&(l=p,!b))break;r=!0}}else if(b&&r!==n&&!d){d=l;break a}else if(b)l=p;else{d=p;break a}n=r}}d=l}d!=f&&(f=d,c?(c=this.selectedCell[0],d=this.selectedCell[1]):(c=e,d=f,e=c,f=d),k.call(this,3,e,f,b),this.updateSelectionFromCoords(c,d,e,f))};a.right=function(c,b,d){if(c)var e=
86
- parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);d=Ia.call(this,e,f,b,d);d!=e&&(e=d,c?(c=this.selectedCell[0],d=this.selectedCell[1]):(c=e,d=f,e=c,f=d),k.call(this,2,e,f,b),this.updateSelectionFromCoords(c,d,e,f))};a.left=function(c,b,d){if(c)var e=parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);d=Ja.call(this,e,f,b,d);d!=e&&(e=
87
- d,c?(c=this.selectedCell[0],d=this.selectedCell[1]):(c=e,d=f,e=c,f=d),k.call(this,0,e,f,b),this.updateSelectionFromCoords(c,d,e,f))};a.first=function(c,b){b?a.up.call(this,c,!0,!0):a.left.call(this,c,!0,!0)};a.last=function(c,b){b?a.down.call(this,c,!0,!0):a.right.call(this,c,!0,!0)};return a}(),Pa=function(){return function(k){k.save=Ka;k.fullscreen=Ga;k.setReadOnly=Ca;k.getReadOnly=Ca;k.isReadOnly=Ca;k.setPlugins=function(a){ja.call(this.parent,a)};k.showIndex=function(){ua.call(this,!0)};k.hideIndex=
88
- function(){ua.call(this,!1)};k[_$_5e1e[46]]=C[_$_5e1e[46]];k.undo=function(){Q.undo.call(k.parent)};k.redo=function(){Q.redo.call(k.parent)};k.isEditable=function(){return N.call(k.parent,k)};k.dispatch=function(){return B.apply(this.parent,arguments)};k.setViewport=function(a,c){this.options.tableOverflow=!0;a=parseInt(a);c=parseInt(c);100<a&&(this.options.tableWidth=a+_$_5e1e[44],this.content.style.maxWidth=this.options.tableWidth);100<c&&(this.options.tableHeight=parseInt(c)+_$_5e1e[44],this.content.style.maxHeight=
89
- this.options.tableHeight);this.tbody.innerHTML=_$_5e1e[3];C.call(this);P.refresh.call(this);ca.update.call(this.parent,this)}}}(),za=function(){var k={logo:null,url:null,persistence:!1,sequence:!0,data:null,json:null,rows:[],columns:[],cells:{},role:null,nestedHeaders:null,defaultColWidth:100,defaultRowHeight:0,defaultColAlign:_$_5e1e[53],minSpareRows:0,minSpareCols:0,minDimensions:[0,0],csv:null,csvFileName:_$_5e1e[36],csvHeaders:!0,csvDelimiter:_$_5e1e[25],columnSorting:!0,columnDrag:!0,columnResize:!0,
90
- 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,pagination:!1,paginationOptions:null,textOverflow:!1,tableOverflow:!1,tableHeight:_$_5e1e[54],tableWidth:null,comments:null,meta:null,style:{},freezeColumns:0,orderBy:null,worksheetId:_$_5e1e[3],worksheetName:null,worksheetState:null,
91
- filters:!1,footers:null,validations:null,formify:null,applyMaskOnFooters:!1,pluginOptions:null,locked:!1,selectUnLockedCells:!0,selectLockedCells:!0},a={application:_$_5e1e[55],cloud:null,root:null,definedNames:{},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,
92
- allowRenameWorksheet:!0,allowMoveWorksheet:!0,onevent:null,onclick:null,onload:null,onundo:null,onredo:null,onbeforesave:null,onsave: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,onresizerow:null,onresizecolumn:null,onselection:null,onbeforecomments:null,
93
- oncomments:null,onbeforesort:null,onsort:null,onfocus:null,onblur:null,onmerge:null,onchangeheader:null,onchangefooter:null,onchangefootervalue: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,
94
- onsearch:null,onbeforefilter:null,onfilter:null,oncreatecell:null,oncreaterow:null,updateTable:null,contextMenu:null,parseTableFirstRowAsHeader:!1,parseTableAutoCellType:!1,plugins:null,wordWrap:!0,about:!0,license:null,worksheets:null},c=function(e,f){f=JSON.parse(JSON.stringify(f));var g={},h;for(h in f)e&&e.hasOwnProperty(h)?g[h]=e[h]:g[h]=f[h];return g},b=function(e){e&&(typeof e==_$_5e1e[17]&&(e=JSON.parse(e)),this.options.data=e);this.options.json&&(this.options.data=this.options.json);this.options.data||
95
- (this.options.data=[]);e=this.options.columns.length;if(this.options.data&&typeof this.options.data[0]!==_$_5e1e[13]){var f=this.options.data[0].data&&0<Object.keys(this.options.data[0].data).length?Object.keys(this.options.data[0].data):Object.keys(this.options.data[0]);f.length>e&&(e=f.length)}this.options.minDimensions[0]>e&&(e=this.options.minDimensions[0]);e||(e=8);for(var g=0;g<e;g++)this.options.columns[g]?this.options.columns[g].type||(this.options.columns[g].type=_$_5e1e[56]):this.options.columns[g]=
96
- {type:_$_5e1e[56]},this.options.columns[g].type==_$_5e1e[57]&&(this.options.columns[g].type=_$_5e1e[58],this.options.columns[g].autocomplete=!0),!this.options.columns[g].name&&f&&f[g]&&Number(f[g])!=f[g]&&(this.options.columns[g].name=f[g]),this.options.columns[g].width||(this.options.columns[g].width=this.options.defaultColWidth),this.options.columns[g].type!=_$_5e1e[58]||this.options.columns[g].source||(this.options.columns[g].source=[]),this.options.columns[g].type==_$_5e1e[58]&&this.options.columns[g].url&&
97
- jSuites.ajax({url:this.options.columns[g].url,index:g,method:_$_5e1e[59],dataType:_$_5e1e[60],worksheet:this,group:this.parent.name,success:function(h){this.worksheet.options.columns[this.index].source=h}})},d=function(e){e.getConfig=d[_$_5e1e[51]];e.setConfig=d[_$_5e1e[11]]};d.spreadsheet=function(e){this.config=c(e,a);1!=this.config.secureFormulas&&console.log(_$_5e1e[61])};d.worksheet=function(e){var f=this;f.options=c(e,k);f.options.csv?jSuites.ajax({url:f.options.csv,method:_$_5e1e[59],dataType:_$_5e1e[56],
98
- group:f.parent.name,success:function(g){g=A.parseCSV(g,f.options.csvDelimiter);if(1==f.options.csvHeaders&&0<g.length)for(var h=g.shift(),l=0;l<h.length;l++)f.options.columns[l]||(f.options.columns[l]={type:_$_5e1e[56],align:f.options.defaultColAlign,width:f.options.defaultColWidth}),typeof f.options.columns[l].title===_$_5e1e[13]&&(f.options.columns[l].title=h[l]);b.call(f,g)}}):f.options.url?jSuites.ajax({url:f.options.url,method:_$_5e1e[59],dataType:_$_5e1e[60],group:f.parent.name,success:function(g){b.call(f,
99
- g)}}):b.call(f)};d[_$_5e1e[51]]=function(){return this.options};d[_$_5e1e[11]]=function(e){typeof e==_$_5e1e[17]&&(e=JSON.parse(e));if(this.parent){f=Object.keys(e);for(g=0;g<f.length;g++)typeof k[f[g]]!==_$_5e1e[13]&&(this.options[f[g]]=e[f[g]]);!0===e.filters?Y.show.call(this):!1===e.filters&&Y.hide.call(this);!0===e.search?ma.show.call(this):!1===e.search&&ma.hide.call(this);!0===e.toolbar?ca.show.call(this.parent):!1===e.toolbar&&ca.hide.call(this.parent);e.minDimensions&&e.minDimensions[0]&&
100
- (f=parseInt(e.minDimensions[0])-this.headers.length,0<f&&this.insertColumn(f),f=parseInt(e.minDimensions[1])-this.rows.length,0<f&&this.insertRow(f));G.call(this,_$_5e1e[62],{data:JSON.stringify(e)})}else for(var f=Object.keys(e),g=0;g<f.length;g++)typeof a[f[g]]!==_$_5e1e[13]&&(this.config[f[g]]=e[f[g]])};return d}(),Q=function(k){k=function(a){if(1!=this.ignoreHistory){var c=++this.historyIndex;this.history=this.history.slice(0,c+1);this.history[c]=a}};k.undo=function(){if(0<=this.historyIndex)var a=
101
- this.history[this.historyIndex--];if(a){this.ignoreHistory=!0;var c=a.worksheet;c.openWorksheet();var b=[];if(a.action==_$_5e1e[63])c.deleteRow(a.insertBefore?a.rowNumber:a.rowNumber+1,a.numOfRows);else if(a.action==_$_5e1e[64])c.insertRow(a.numOfRows,a.rowNumber,1,a.data),I.setAttributes.call(c,a.attributes);else if(a.action==_$_5e1e[65])c.deleteColumn(a.insertBefore?a.columnNumber:a.columnNumber+1,a.numOfColumns);else if(a.action==_$_5e1e[66])c.insertColumn(a.numOfColumns,a.columnNumber,1,a.properties,
102
- a.data,a.extra),I.setAttributes.call(c,a.attributes);else if(a.action==_$_5e1e[67])c.moveRow(a.newValue,a.oldValue);else if(a.action==_$_5e1e[68])c.moveColumn(a.newValue,a.oldValue);else if(a.action==_$_5e1e[69])c.removeMerge(a.newValue,!0),c.setMerge(a.oldValue);else if(a.action==_$_5e1e[70])c.setMerge(a.oldValue);else if(a.action==_$_5e1e[71])c.setStyle(a.oldValue,null,null,1);else if(a.action==_$_5e1e[72])c.setStyle(a.oldValue);else if(a.action==_$_5e1e[73])c.setWidth(a.column,a.oldValue);else if(a.action==
103
- _$_5e1e[74])c.setHeight(a.row,a.oldValue);else if(a.action==_$_5e1e[75])c.setHeader(a.column,a.oldValue);else if(a.action==_$_5e1e[76])c.setComments(a.oldValue);else if(a.action==_$_5e1e[77])c.setProperty(a.column,a.oldValue);else if(a.action==_$_5e1e[78])c.orderBy(a.column,a.direction?0:1,a.oldValue);else if(a.action==_$_5e1e[79]){for(var d=0;d<a.records.length;d++){var e={x:a.records[d].x,y:a.records[d].y,value:a.records[d].oldValue};a.records[d].oldStyle&&(e.style=a.records[d].oldStyle);b.push(e)}c.setValue(b)}else a.action==
104
- _$_5e1e[80]?c.renameWorksheet(a.index,a.oldValue):a.action==_$_5e1e[81]&&c.moveWorksheet(a.t,a.f);a.selection&&c.updateSelectionFromCoords(a.selection);this.ignoreHistory=!1;B.call(this,_$_5e1e[82],c,a)}};k.redo=function(){if(this.historyIndex<this.history.length-1)var a=this.history[++this.historyIndex];if(a){this.ignoreHistory=!0;var c=a.worksheet;c.openWorksheet();a.action==_$_5e1e[63]?c.insertRow(a.numOfRows,a.rowNumber,a.insertBefore,a.data):a.action==_$_5e1e[64]?c.deleteRow(a.rowNumber,a.numOfRows):
105
- a.action==_$_5e1e[65]?c.insertColumn(a.numOfColumns,a.columnNumber,a.insertBefore,a.properties,a.data):a.action==_$_5e1e[66]?c.deleteColumn(a.columnNumber,a.numOfColumns):a.action==_$_5e1e[67]?c.moveRow(a.oldValue,a.newValue):a.action==_$_5e1e[68]?c.moveColumn(a.oldValue,a.newValue):a.action==_$_5e1e[69]?c.setMerge(a.newValue):a.action==_$_5e1e[70]?c.removeMerge(a.newValue):a.action==_$_5e1e[71]?c.setStyle(a.newValue,null,null,1):a.action==_$_5e1e[72]?c.resetStyle(a.cells):a.action==_$_5e1e[73]?c.setWidth(a.column,
106
- a.newValue):a.action==_$_5e1e[74]?c.setHeight(a.row,a.newValue):a.action==_$_5e1e[75]?c.setHeader(a.column,a.newValue):a.action==_$_5e1e[76]?c.setComments(a.newValue):a.action==_$_5e1e[77]?c.setProperty(a.column,a.newValue):a.action==_$_5e1e[78]?c.orderBy(a.column,a.direction,a.newValue):a.action==_$_5e1e[79]?c.setValue(a.records):a.action==_$_5e1e[80]?c.renameWorksheet(a.index,a.newValue):a.action==_$_5e1e[81]&&c.moveWorksheet(a.f,a.t);a.selection&&c.updateSelectionFromCoords(a.selection);this.ignoreHistory=
107
- !1;B.call(this,_$_5e1e[83],c,a)}};return k}(),ja=function(){var k=function(a){var c=null;if(Array.isArray(a))c=a;else if(typeof a==_$_5e1e[84]){c=[];var b=Object.keys(a);for(var d=0;d<b.length;d++)c.push({name:b[d],plugin:a[b[d]],options:{}})}if(c&&c.length)for(d=0;d<c.length;d++){if(c[d].name&&c[d].plugin){var e=c[d].name;var f=c[d].plugin;var g=c[d].options}typeof f===_$_5e1e[85]&&(this.plugins[e]=f.call(t,this,g,this.config),typeof f.license==_$_5e1e[85]&&t.license&&f.license(t.license))}};k.execute=
108
- function(a,c){if(this.plugins){var b=Object.keys(this.plugins);if(b.length)for(var d=0;d<b.length;d++)if(typeof this.plugins[b[d]][a]==_$_5e1e[85]){var e=this.plugins[b[d]][a].apply(this.plugins[b[d]],c);e&&(a==_$_5e1e[86]&&(c[4]=e),a==_$_5e1e[87]&&(c[0]=e))}return c}};return k}(),Z=function(){var k=function(a){a.getEditor=k[_$_5e1e[51]];a.openEditor=k.open;a.closeEditor=k.close};k[_$_5e1e[51]]=function(a,c){a=Da.getOptions.call(this,a,c);return[a.type&&typeof a.type==_$_5e1e[84]?a.type:t.editors[a.type],
109
- a]};k.open=function(a,c,b){if(!N.call(this.parent,this))return!1;if(1!=a.classList.contains(_$_5e1e[18])){var d=parseInt(a.getAttribute(_$_5e1e[42])),e=parseInt(a.getAttribute(_$_5e1e[43]));if(!0===this.options.locked){var f=A.getColumnNameFromCoords(d,e);if(!this.options.cells||!this.options.cells[f]||!1!==this.options.cells[f].locked)return!1}if(f=this.records[e][d].merged)d-=f[0],e-=f[1],a=this.records[e][d].element;if(!I.attached.call(this,d,e)){if(this.results&&0<this.results.length)return console.error(_$_5e1e[88]),
110
- !1;C[_$_5e1e[46]].call(this,e,d)}k.position.call(this,d,e);f=this.parent.input;f.innerText=_$_5e1e[3];B.call(this.parent,_$_5e1e[89],this,a,d,e);c=1==c?_$_5e1e[3]:K.call(this,d,e);var g=k[_$_5e1e[51]].call(this,d,e),h=!0;typeof g[0].openEditor==_$_5e1e[85]&&(!1===g[0].openEditor(a,c,d,e,this,g[1],b)?h=!1:B.call(this.parent,_$_5e1e[90],this,a,d,e,f,g[1]));h&&(1==this.options.textOverflow&&(this.records[e][d].element.style.overflow=_$_5e1e[49],0<d&&(this.records[e][d-1].element.style.overflow=_$_5e1e[49])),
111
- this.edition=a,f.classList.add(_$_5e1e[91]),1==this.parent.config.editorFormulas&&M(c)&&(f.classList.add(_$_5e1e[92]),fa.parse.call(this,f),a=document.createTextNode(_$_5e1e[3]),f.appendChild(a),jSuites.focus(f)))}};k.close=function(a,c){null===a&&(a=this.edition);this.parent.input.classList.contains(_$_5e1e[92])&&fa.close.call(this,this.parent.input);var b,d=parseInt(a.getAttribute(_$_5e1e[42])),e=parseInt(a.getAttribute(_$_5e1e[43]));1==this.options.textOverflow&&(b=this.records[e][d+1])&&b.element&&
112
- b.element.innerText==_$_5e1e[3]&&(this.records[e][d].element.style.overflow=_$_5e1e[3]);b=k[_$_5e1e[51]].call(this,d,e);if(1==c){var f=null;if(typeof b[0].closeEditor==_$_5e1e[85]){var g=b[0].closeEditor(a,!0,d,e,this,b[1]);void 0!==g&&(f=g)}null!==f&&K.call(this,d,e)!=f&&this.setValue(a,f)}else b[0].closeEditor(a,!1,d,e,this,b[1]);B.call(this.parent,_$_5e1e[93],this,a,d,e,f,c);b[1]&&typeof b[1].render==_$_5e1e[85]&&b[1].render.call(this,a,this.records[e][d].v,d,e,this,b[1]);b=this.parent.input;b.onblur&&
113
- (b.onblur=null);b.children[0]&&b.children[0].onblur&&(b.children[0].onblur=null);b.update&&(b.update=null);Z.build(this.parent);b.removeAttribute(_$_5e1e[94]);b.removeAttribute(_$_5e1e[95]);b.removeAttribute(_$_5e1e[96]);this.edition=b.mask=null;this.refreshBorders()};k.position=function(a,c){var b=null;if(b=this.records[c][a].element){var d=this.parent.element.getBoundingClientRect();b=b.getBoundingClientRect();var e=this.parent.input;e.x=a;e.y=c;0==b.width&&0==b.height?e.style.opacity=_$_5e1e[97]:
114
- (e.setAttribute(_$_5e1e[98],_$_5e1e[3]),a=b.top-d.top+1,c=b.left-d.left+1,e.style.top=a+_$_5e1e[44],e.style.left=c+_$_5e1e[44],e.style.minWidth=b.width-1+_$_5e1e[44],e.style.minHeight=b.height-1+_$_5e1e[44],setTimeout(function(){e.focus()},0))}};k.build=function(a){a.input||(a.input=document.createElement(_$_5e1e[20]));a.input.className=_$_5e1e[99];a.input.setAttribute(_$_5e1e[100],!0);a.input.innerText=_$_5e1e[3];a.input.oninput=function(c){t.current.parent.config.editorFormulas=!0;M(c.target.innerText)?
115
- c.target.classList.add(_$_5e1e[92]):c.target.classList.contains(_$_5e1e[92])&&fa.close.call(t.current,this)};return a.input};return k}(),B=function(k){if(!this.ignoreEvents){if(typeof this.config.onevent==_$_5e1e[85])var a=this.config.onevent.apply(this,arguments);typeof this.config[k]==_$_5e1e[85]&&(a=this.config[k].apply(this,Array.prototype.slice.call(arguments,1)));ja.execute.call(this,_$_5e1e[101],arguments)}return a},pa=function(){var k=function(a){a.sequence=0;a.getNextSequence=k.next;a.getRowId=
116
- k.getId;a.setRowId=k.setId;a.getRowById=k.getRowById};k[_$_5e1e[51]]=function(){return this.sequence};k[_$_5e1e[11]]=function(a,c){if(a>this.sequence||c)this.sequence=a};k.next=function(){return 1==this.options.sequence?++this.sequence:null};k.reset=function(){this.sequence=0};k.getId=function(a){if(this.rows[a]&&this.rows[a].id)return this.rows[a].id;var c=this.getPrimaryKey();if(!1!==c)return K.call(this,c,a)};k.setId=function(a,c){if(void 0!==c&&0<=parseInt(a)){var b={};b[a]=c}else b=a;a=Object.keys(b);
117
- if(a.length){for(var d=0;d<a.length;d++)c=b[a[d]],this.rows[a[d]].id=c,k[_$_5e1e[11]].call(this,c);G.call(this,_$_5e1e[102],[b]);B.call(this.parent,_$_5e1e[103],this,b)}};k.getRowById=function(a,c){for(var b=0;b<this.rows.length;b++)if(k.getId.call(this,b)==a)return!0===c?this.rows[b]:this.options.data[b];return!1};return k}(),Ka=function(){var k=function(c){for(var b=[],d={},e=0;e<c.length;e++){var f=c[e].x,g=c[e].y,h=pa.getId.call(this,g);if(!h)if(d[g])h=d[g];else if(h=pa.next.call(this))d[g]=h;
118
- b[g]||(b[g]={id:h,row:g,data:{}});f=V.call(this,f);b[g].data[f]=c[e].value}pa.setId.call(this,d);return b.filter(function(l){return null!=l})},a=function(c){var b=c[0];if(0<=[_$_5e1e[104],_$_5e1e[105],_$_5e1e[102],_$_5e1e[106]].indexOf(b))return!1;var d={};b==_$_5e1e[79]||b==_$_5e1e[107]?(b=_$_5e1e[108],d[b]=k.call(this,c[1].data)):Array.isArray(c[1])&&1==c[1].length?d[b]=c[1][0]:d[b]=c[1];return d};return function(c,b,d,e){var f=this.parent,g=this;d=null;var h=a.call(this,b);if(h)b=h;else if(!1===
119
- h)return!1;if(h=B.call(f,_$_5e1e[109],f,g,b))b=h;else if(!1===h)return!1;Ha.call(f,!0);jSuites.ajax({url:c,method:_$_5e1e[110],dataType:_$_5e1e[60],data:{data:JSON.stringify(b)},queue:!0,beforeSend:function(l){d&&l.setRequestHeader(_$_5e1e[111],_$_5e1e[112]+d)},success:function(l){f.element.classList.contains(_$_5e1e[113])&&f.element.classList.remove(_$_5e1e[113]);l&&(l.message&&(l.name=f.config.application,jSuites.notification.isVisible()?console.log(l.name+_$_5e1e[114]+l.message):jSuites.notification(l)),
120
- l.success?typeof e===_$_5e1e[85]?e(l):l.data&&Array.isArray(l.data)&&I.updateAll.call(g,l.data):l.error&&(alert(_$_5e1e[115]),window.open(window.location.href,_$_5e1e[116])));B.call(f,_$_5e1e[117],f,g,b,l)},error:function(){f.element.classList.add(_$_5e1e[113])}})}}(),G=function(){return function(){ja.execute.call(this.parent,_$_5e1e[118],[this,arguments[0],arguments[1]]);if(!this.parent.ignorePersistence){var k=null;if(this.parent.config.server){var a=this.parent.worksheets.indexOf(this);k=this.parent.config.server;
121
- k=-1==k.indexOf(_$_5e1e[119])?k+(_$_5e1e[120]+a):k+(_$_5e1e[121]+a)}else this.options.persistence&&(k=typeof this.options.persistence==_$_5e1e[17]?this.options.persistence:this.options.url);k&&Ka.call(this,k,arguments)}}}(),Aa=function(k){if(this.selectedCell){var a=this.selectedCell[0],c=this.selectedCell[1];this.records&&this.records[c]&&this.records[c][a]&&this.records[c][a].element||(this.selectedCell=this.getHighlighted(),a=this.selectedCell[0],c=this.selectedCell[1]);var b=this.getHighlighted(),
122
- d=b[0],e=b[1],f=b[2];b=b[3];k=k?_$_5e1e[122]:_$_5e1e[123];if(this.records[c]&&this.records[c][a]&&this.records[c][a].element)this.records[c][a].element.classList[k](_$_5e1e[124]);for(a=d;a<=f;a++)if(this.headers[a])this.headers[a].classList[k](_$_5e1e[125]);for(;e<=b;e++)if(this.rows[e]&&this.rows[e].element)this.rows[e].element.classList[k](_$_5e1e[125])}},va=function(){var k=function(a){a.resetSelection=k.reset;a.updateSelection=k.fromElements;a.updateSelectionFromCoords=k[_$_5e1e[11]];a.selectAll=
123
- k.all;a.isSelected=k.isSelected;a.getHighlighted=k.getHighlighted;a.getRange=k.getRange};k.getHighlighted=function(){var a=this.borders;return(a=a.main)?[a.x1,a.y1,a.x2,a.y2]:null};k.isSelected=function(a,c,b){if(!b&&(b=this.getHighlighted(),!b))return!1;var d=b[0],e=b[1],f=b[2];b=b[3];f||(f=d);b||(b=e);return null==a?c>=e&&c<=b:null==c?a>=d&&a<=f:a>=d&&a<=f&&c>=e&&c<=b};k.reset=function(){if(this.selectedCell)a=1,this.edition&&Z.close.call(this,this.edition,!0),this.resetBorders(_$_5e1e[126],!0),
124
- this.resetBorders(_$_5e1e[127],!0),this.selectedCell=null,1==a&&B.call(this.parent,_$_5e1e[128],this);else var a=0;return a};k.refresh=function(){this.selectedCell&&k[_$_5e1e[11]].call(this,this.selectedCell)};k.isValid=function(a,c,b,d){return!(a>=this.options.columns.length||c>=this.rows.length||b>=this.options.columns.length||d>=this.rows.length)};k[_$_5e1e[11]]=function(a,c,b,d,e,f,g){f||(f=_$_5e1e[126]);Array.isArray(a)&&(d=a[3],b=a[2],c=a[1],a=a[0]);null==b&&(b=a);null==d&&(d=c);if(!k.isValid.call(this,
125
- a,c,b,d))return!1;if(null!=a){if(parseInt(a)<parseInt(b))var h=parseInt(a),l=parseInt(b);else h=parseInt(b),l=parseInt(a);if(parseInt(c)<parseInt(d))var n=parseInt(c),q=parseInt(d);else n=parseInt(d),q=parseInt(c);var p;var r={};if(this.options.mergeCells){for(var w=n;w<=q;w++)for(var m=h;m<=l;m++)if(p=this.records[w][m].merged)p=A.getColumnNameFromCoords(m-p[0],w-p[1]),r[p]=!0;w=Object.keys(r);if(w.length)for(m=0;m<w.length;m++)p=A.getCoordsFromColumnName(w[m]),r=this.options.mergeCells[w[m]],p[0]<
126
- h&&(h=p[0]),p[0]+r[0]-1>l&&(l=p[0]+r[0]-1),p[1]<n&&(n=p[1]),p[1]+r[1]-1>q&&(q=p[1]+r[1]-1)}}f==_$_5e1e[126]&&(this.selectedCell?(Aa.call(this,!1),p=1):p=0,this.selectedCell=[a,c,b,d],this.records[d][b].element&&C.isVisible.call(this,this.records[d][b].element),Z.position.call(this,a,c),0==p&&B.call(this.parent,_$_5e1e[129],this));da[_$_5e1e[11]].call(this,h,n,l,q,f,g);f==_$_5e1e[126]&&(ja.execute.call(this.parent,_$_5e1e[130],[this,h,n,l,q,e]),B.call(this.parent,_$_5e1e[131],this,h,n,l,q,e),ca.update.call(this.parent,
127
- t.current,this.selectedCell))};k.fromElements=function(a,c,b){var d=a.getAttribute(_$_5e1e[42]);a=a.getAttribute(_$_5e1e[43]);if(c){var e=c.getAttribute(_$_5e1e[42]);c=c.getAttribute(_$_5e1e[43])}else e=d,c=a;this.updateSelectionFromCoords(d,a,e,c,b)};k.all=function(){k[_$_5e1e[11]].call(this,0,0,this.options.columns.length-1,this.records.length-1)};k.getRange=function(){var a=this.selectedCell;if(!a)return _$_5e1e[3];var c=A.getColumnNameFromCoords(a[0],a[1]);a=A.getColumnNameFromCoords(a[2],a[3]);
128
- var b=this.options.worksheetName;b=-1!=b.indexOf(_$_5e1e[132])?_$_5e1e[133]+b+_$_5e1e[134]:b+_$_5e1e[135];return c==a?b+c:b+t.helpers.getRangeFromTokens(t.helpers.getTokensFromRange(c+_$_5e1e[136]+a))};return k}(),da=function(){var k=function(b){b.borders=[];b.setBorder=k[_$_5e1e[11]];b.getBorder=k[_$_5e1e[51]];b.resetBorders=k.reset;b.refreshBorders=k.refresh};k[_$_5e1e[51]]=function(b){return this.borders[b]};var a=function(b,d,e,f,g,h){g||(g=0);if(!va.isValid.call(this,b,d,e,f))return!1;if(this.borders[g])l=
129
- this.borders[g];else{var l={};l.element=document.createElement(_$_5e1e[20]);l.element.classList.add(_$_5e1e[137]);g==_$_5e1e[127]||g==_$_5e1e[138]||g==_$_5e1e[126]?l.element.classList.add(_$_5e1e[139]+g):(h=h?h:jSuites.randomColor(!0),l.color=h,l.element.style.backgroundColor=h+_$_5e1e[140],l.element.style.borderColor=h);this.content.appendChild(l.element)}l.x1=b;l.y1=d;l.x2=e;l.y2=f;h=this.headers[b]?this.headers[b].offsetLeft:0;var n=this.headers[e]?this.headers[e].offsetLeft:0,q=this.rows[d].element?
130
- this.rows[d].element.offsetTop:0,p=this.rows[f].element?this.rows[f].element.offsetTop:0;l.element.style.top=_$_5e1e[141];l.element.style.left=_$_5e1e[141];l.active=0;var r=this.options.freezeColumns||0,w=!1,m=null,v=null,u=null,x=null;this.tbody.firstChild&&(v=parseInt(this.tbody.firstChild.getAttribute(_$_5e1e[43])),x=parseInt(this.tbody.lastChild.getAttribute(_$_5e1e[43])));this.thead.lastChild&&(m=parseInt(this.thead.lastChild.children[r+1].getAttribute(_$_5e1e[42])),u=parseInt(this.thead.lastChild.lastChild.getAttribute(_$_5e1e[42])),
131
- this.thead.lastChild.children[1].style.display==_$_5e1e[40]&&(m=Ia.call(this,m,v)),this.thead.lastChild.lastChild.style.display==_$_5e1e[40]&&(u=Ja.call(this,u,x)));null==m||e<m&&b>=r||b>u||f<v||d>x||(h?l.element.style.borderLeftColor=l.color?l.color:_$_5e1e[3]:(h=this.thead.lastChild.children[r+1].offsetLeft,l.element.style.borderLeftColor=g==_$_5e1e[127]?_$_5e1e[142]:_$_5e1e[143]),n?(n+=this.headers[e].offsetWidth,l.element.style.borderRightColor=l.color?l.color:_$_5e1e[3]):(e>u?(n=this.headers[u].offsetLeft+
132
- this.headers[u].offsetWidth,w=!0):n=this.thead.lastChild.children[r].offsetLeft+this.thead.lastChild.children[r].offsetWidth,l.element.style.borderRightColor=g==_$_5e1e[127]?_$_5e1e[142]:_$_5e1e[143]),n=n-h-1,q?l.element.style.borderTopColor=l.color?l.color:_$_5e1e[3]:(q=this.tbody.firstChild.offsetTop,l.element.style.borderTopColor=g==_$_5e1e[127]?_$_5e1e[142]:_$_5e1e[143]),p?(p+=this.rows[f].element.offsetHeight,l.element.style.borderBottomColor=l.color?l.color:_$_5e1e[3]):(p=this.rows[x].element.offsetTop+
133
- this.rows[x].element.offsetHeight,l.element.style.borderBottomColor=g==_$_5e1e[127]?_$_5e1e[142]:_$_5e1e[143],w=!0),p=p-q-1,this.options.freezeColumns&&(l.element.style.borderLeftWidth=_$_5e1e[3],l.element.style.borderRightWidth=_$_5e1e[3],d=0<this.content.scrollLeft?ia.getWidth.call(this):0)&&(b=b<this.options.freezeColumns,e=e<this.options.freezeColumns,b&&e||!b&&e||(b&&!e?(e=d+this.content.scrollLeft,e>h+n&&(l.element.style.borderRightWidth=_$_5e1e[144],n+=e-(h+n))):(e=d+this.content.scrollLeft,
134
- e>h&&(e-=h,e>n?h=q=-2E3:(h=h+e+1,n-=e,l.element.style.borderLeftWidth=_$_5e1e[144]))))),l.element.style.top=q+_$_5e1e[44],l.element.style.left=h+_$_5e1e[44],l.element.style.width=n+_$_5e1e[44],l.element.style.height=p+_$_5e1e[44],l.t=q,l.l=h,l.w=n,l.h=p,l.active=1);g==_$_5e1e[126]&&(l.active&&1!=w?(this.corner.style.top=q+p-2+_$_5e1e[44],this.corner.style.left=h+n-2+_$_5e1e[44]):(this.corner.style.top=_$_5e1e[141],this.corner.style.left=_$_5e1e[141]));this.borders[g]=l},c=function(b,d){b.element.style.top=
135
- _$_5e1e[141];b.element.style.left=_$_5e1e[141];b.active=0;d&&(b.x1=null,b.y1=null,b.x2=null,b.y2=null)};k[_$_5e1e[11]]=function(b,d,e,f,g,h){a.call(this,b,d,e,f,g,h);g==_$_5e1e[126]&&(Aa.call(this,!0),G.call(this,_$_5e1e[104],{x1:b,y1:d,x2:e,y2:f}))};k.reset=function(b,d){b&&b!=_$_5e1e[126]||(this.corner.style.top=_$_5e1e[141],this.corner.style.left=_$_5e1e[141],Aa.call(this,!1));if(b)this.borders[b]&&c(this.borders[b],d);else{d=Object.keys(this.borders);for(var e=0;e<d.length;e++)c(this.borders[d[e]])}b&&
136
- b!=_$_5e1e[126]||G.call(this,_$_5e1e[105])};k.refresh=function(b){var d=this.borders;if(b)d[b]&&null!=d[b].x1&&a.call(this,d[b].x1,d[b].y1,d[b].x2,d[b].y2,b);else{b=Object.keys(d);for(var e=0;e<b.length;e++)d[b[e]]&&null!=d[b[e]].x1&&a.call(this,d[b[e]].x1,d[b[e]].y1,d[b[e]].x2,d[b[e]].y2,b[e])}this.edition&&(d=this.parent.input,Z.position.call(this,d.x,d.y))};k.destroy=function(b){var d;if(d=this.borders[b])d.element.remove(),delete this.borders[b]};return k}(),Qa=function(){var k=function(a){a.setGroup=
137
- k[_$_5e1e[11]];a.unsetGroup=k.unset};k[_$_5e1e[11]]=function(a,c,b){0==a&&(b=document.createElement(_$_5e1e[145]),b.classList.add(_$_5e1e[146]),this.thead.insertBefore(b,this.thead.firstChild),a=document.createElement(_$_5e1e[147]),a.innerHTML=_$_5e1e[148],b.appendChild(a),a=document.createElement(_$_5e1e[147]),b.appendChild(a),c=this.headers[c])&&(c=c.querySelector(_$_5e1e[149]),c||(c=document.createElement(_$_5e1e[20]),c.classList.add(_$_5e1e[150]),c.innerText=_$_5e1e[151],a.appendChild(c)))};k.unset=
138
- function(a,c){};return k}(),ta=function(){var k={start:function(a){if(!N.call(this.parent,this))return!1;if(null!==a.target.getAttribute(_$_5e1e[43])){var c=a.target.getAttribute(_$_5e1e[43]);k.event={y:parseInt(c),h:a.target.offsetHeight,p:a.pageY}}else null!==a.target.getAttribute(_$_5e1e[42])&&(c=a.target.getAttribute(_$_5e1e[42]),k.event={x:parseInt(c),w:a.target.offsetWidth,p:a.pageX})},end:function(a){var c=[];if(null!=k.event.y){var b=parseInt(this.rows[k.event.y].element.offsetHeight);var d=
139
- this.getSelectedRows(!0);a=d.indexOf(parseInt(k.event.y));if(d.length&&-1<a)for(var e=0;e<d.length;e++)c.push(parseInt(this.rows[d[e]].element.offsetHeight));else d=[];-1==a?(d.push(k.event.y),c.push(k.event.h)):c[a]=k.event.h;this.setHeight(d,b,c)}else if(null!=k.event.x){b=parseInt(this.colgroup[k.event.x].getAttribute(_$_5e1e[152]));d=this.getSelectedColumns();a=d.indexOf(parseInt(k.event.x));if(d.length&&-1<a)for(e=0;e<d.length;e++)c.push(parseInt(this.options.columns[d[e]].width));else d=[];
140
- -1==a?(d.push(k.event.x),c.push(k.event.w)):c[a]=k.event.w;this.setWidth(d,b,c)}k.event=null},update:function(a){null!=k.event.y?(a=a.pageY-k.event.p,0<k.event.h+a&&(this.rows[k.event.y].element.style.height=k.event.h+a+_$_5e1e[44],this.refreshBorders())):null!=k.event.x&&(a=a.pageX-k.event.p,0<k.event.w+a&&(this.colgroup[k.event.x].setAttribute(_$_5e1e[152],k.event.w+a),this.options.columns[k.event.x].width=k.event.w+a,0<this.options.freezeColumns&&ia.width.call(this),this.refreshBorders()))},cancel:function(){k.end.call(this)}};
141
- return k}(),La=function(){var k={start:function(a){var c=this.parent.helper;a=parseInt(a.target.getAttribute(_$_5e1e[42]));if(this.merged.cols[a])console.error(_$_5e1e[153]);else{k.event={x:a,d:a};this.headers[a].classList.add(_$_5e1e[154]);for(var b=0;b<this.tbody.children.length;b++){var d=this.tbody.children[b].getAttribute(_$_5e1e[43]);this.records[d][a].element.classList.add(_$_5e1e[154])}b=this.parent.element.getBoundingClientRect();a=this.headers[a].getBoundingClientRect();d=this.content.getBoundingClientRect();
142
- c.style.display=_$_5e1e[16];c.style.top=d.top-b.top+_$_5e1e[44];c.style.left=a.left-d.left+_$_5e1e[44];c.style.width=_$_5e1e[155];c.style.height=d.height+_$_5e1e[44];c.classList.add(_$_5e1e[156])}},end:function(){this.headers[k.event.x].classList.remove(_$_5e1e[154]);for(var a=0;a<this.tbody.children.length;a++){var c=this.tbody.children[a].getAttribute(_$_5e1e[43]);this.records[c][k.event.x].element.classList.remove(_$_5e1e[154])}null!=k.event.d&&k.event.x!=k.event.d&&(this.moveColumn(k.event.x,
143
- k.event.d),this.refreshBorders());this.parent.helper.classList.remove(_$_5e1e[156]);this.parent.helper.style.display=_$_5e1e[3];k.event=null},cancel:function(){k.event.d=null;k.end.call(this)},update:function(a){var c=a.target.getAttribute(_$_5e1e[42]);if(null!=c)if(c=parseInt(c),this.merged.cols[c])console.error(_$_5e1e[153]);else{a=a.target.clientWidth/2>a.offsetX;k.event.d=a?k.event.x<c?parseInt(c)-1:parseInt(c):k.event.x>c?parseInt(c)+1:parseInt(c);c=this.headers[c].getBoundingClientRect();var b=
144
- this.content.getBoundingClientRect();this.parent.helper.style.left=(a?c.left:c.right)-b.left+_$_5e1e[44]}}};return k}(),na=function(){var k={start:function(a){if(N.call(this.parent,this)){this.resetSelection();var c=this.parent.helper;if(null!==a.target.getAttribute(_$_5e1e[43])){var b=parseInt(a.target.getAttribute(_$_5e1e[43]));this.merged.rows[b]?console.error(_$_5e1e[157]):this.results?console.error(_$_5e1e[158]):(k.event={y:b,d:b},this.rows[b].element.classList.add(_$_5e1e[154]),a=this.parent.element.getBoundingClientRect(),
145
- b=this.rows[b].element.getBoundingClientRect(),c.style.display=_$_5e1e[16],c.style.top=b.top-a.top+_$_5e1e[44],c.style.left=_$_5e1e[159],c.style.width=this.content.offsetWidth-50+_$_5e1e[44],c.style.height=_$_5e1e[155],c.classList.add(_$_5e1e[160]))}else if(null!==a.target.getAttribute(_$_5e1e[42]))if(b=parseInt(a.target.getAttribute(_$_5e1e[42])),this.merged.cols[b])console.error(_$_5e1e[153]);else{k.event={x:b,d:b};this.headers[b].classList.add(_$_5e1e[154]);for(a=0;a<this.tbody.children.length;a++){var d=
146
- this.tbody.children[a].getAttribute(_$_5e1e[43]);this.records[d][b].element.classList.add(_$_5e1e[154])}a=this.parent.element.getBoundingClientRect();b=this.headers[b].getBoundingClientRect();d=this.content.getBoundingClientRect();c.style.display=_$_5e1e[16];c.style.top=d.top-a.top+_$_5e1e[44];c.style.left=b.left-d.left+_$_5e1e[44];c.style.width=_$_5e1e[155];c.style.height=d.height+_$_5e1e[44];c.classList.add(_$_5e1e[156])}}else return!1},end:function(){if(null!=k.event.y)this.rows[k.event.y].element.classList.remove(_$_5e1e[154]),
147
- null!=k.event.d&&k.event.y!=k.event.d&&(this.moveRow(k.event.y,k.event.d),this.updateSelectionFromCoords(0,k.event.d,this.options.columns.length-1,k.event.d)),this.parent.helper.classList.remove(_$_5e1e[160]);else if(null!=k.event.x){this.headers[k.event.x].classList.remove(_$_5e1e[154]);for(var a=0;a<this.tbody.children.length;a++){var c=this.tbody.children[a].getAttribute(_$_5e1e[43]);this.records[c][k.event.x].element.classList.remove(_$_5e1e[154])}null!=k.event.d&&k.event.x!=k.event.d&&(this.moveColumn(k.event.x,
148
- k.event.d),this.refreshBorders());this.parent.helper.classList.remove(_$_5e1e[156])}this.parent.helper.style.display=_$_5e1e[3];k.event=null},cancel:function(){k.event.d=null;k.end.call(this)},update:function(a){if(null!=k.event.y){var c=a.target.getAttribute(_$_5e1e[43]);if(null!=c){var b=c=parseInt(c),d=a.target.clientHeight/2>a.offsetY;d?k.event.y<c&&(b=c-1):k.event.y>c&&(b=c+1);a=!1;this.merged.rows[b]&&(k.event.y>b?this.merged.rows[b-1]&&(a=!0):this.merged.rows[b+1]&&(a=!0));a||(k.event.d=b,
149
- b=this.parent.element.getBoundingClientRect(),c=this.rows[c].element.getBoundingClientRect(),this.parent.helper.style.top=(d?c.top:c.bottom)-b.top+_$_5e1e[44])}}else d=a.target.getAttribute(_$_5e1e[42]),null!=d&&(b=d=parseInt(d),(c=a.target.clientWidth/2>a.offsetX)?k.event.x<d&&(b=d-1):k.event.x>d&&(b=d+1),a=!1,this.merged.cols[b]&&(k.event.x>b?this.merged.cols[b-1]&&(a=!0):this.merged.cols[b+1]&&(a=!0)),a||(k.event.d=b,b=this.headers[d].getBoundingClientRect(),d=this.content.getBoundingClientRect(),
150
- this.parent.helper.style.left=(c?b.left:b.right)-d.left+_$_5e1e[44]))}};return k}(),X=function(){var k=function(a){a.getMerge=k[_$_5e1e[51]];a.setMerge=k[_$_5e1e[11]];a.updateMerge=k.update;a.removeMerge=k.remove;a.destroyMerged=a.destroyMerge=k.destroy};k.getHeight=function(a,c){var b,d=1;if(this.merged.rows[a])for(var e=0;e<this.options.columns.length;e++){var f=A.getColumnNameFromCoords(e,a);if(f=this.merged.cells[f])if(b=this.options.mergeCells[f])c&&void 0!==c[f]||(b[1]>d&&(d=b[1]),c&&(c[f]=
151
- this.records[a][e].element&&!this.records[a][e].merged?!0:!1))}return d-1};k.getWidth=function(a,c){var b,d=1;if(this.merged.cols[a])for(var e=0;e<this.options.data.length;e++){var f=A.getColumnNameFromCoords(a,e);if(f=this.merged.cells[f])if(b=this.options.mergeCells[f])c&&void 0!==c[f]||(b[0]>d&&(d=b[0]),c&&(c[f]=this.records[e][a].element&&!this.records[e][a].merged?!0:!1))}return d-1};k[_$_5e1e[51]]=function(a){return a?this.options.mergeCells[a]:this.options.mergeCells};k[_$_5e1e[11]]=function(a,
152
- c,b){if(!N.call(this.parent,this))return!1;this.options.mergeCells||(this.options.mergeCells={});var d,e=null,f={},g={},h={},l=!1;typeof a==_$_5e1e[17]?h[a]=[c,b]:typeof a==_$_5e1e[84]?h=a:((e=this.getHighlighted())?e=[A.getColumnNameFromCoords(e[0],e[1]),e[2]-e[0]+1,e[3]-e[1]+1]:(jSuites.notification({message:z(_$_5e1e[161])}),e=!1),e&&(h[e[0]]=[e[1],e[2]]));c=Object.keys(h);if(c.length){for(b=0;b<c.length;b++){var n=c[b],q=h[c[b]][0],p=h[c[b]][1];q=parseInt(q);p=parseInt(p);if((!q||2>q)&&(!p||2>
153
- p))console.log(z(_$_5e1e[162])+_$_5e1e[136]+n);else if(this.options.mergeCells[n])g[n]=[q,p],f[n]=this.options.mergeCells[n],k.update.call(this,n,q,p);else{e=A.getCoordsFromColumnName(n);for(var r=e[1];r<e[1]+p;r++)for(var w=e[0];w<e[0]+q;w++)a=A.getColumnNameFromCoords(w,r),(d=this.merged.cells[a])&&this.options.mergeCells[d]&&(f[d]=this.options.mergeCells[d],k.applyDestroy.call(this,d));g[n]=this.options.mergeCells[n]=[q,p];k.applyCreate.call(this,n);I.attached.call(this,e[0],e[1])||(l=e)}}Object.keys(g).length&&
154
- (l&&C[_$_5e1e[46]].call(this,e[1],e[0]),Q.call(this.parent,{worksheet:this,action:_$_5e1e[69],newValue:g,oldValue:f}),G.call(this,_$_5e1e[69],[g]),k.build.call(this),va.refresh.call(this),da.refresh.call(this),B.call(this.parent,_$_5e1e[163],this,g,f))}};k.update=function(a,c,b){var d=this.options.mergeCells;if(d[a]){var e=d[a][1];if(c!==d[a][0]||e!==b)k.applyDestroy.call(this,a),c&&b&&(d[a]=[c,b],k.applyCreate.call(this,a))}};k.remove=function(a,c){if(!N.call(this.parent,this))return!1;c={};var b=
155
- {},d={};typeof a==_$_5e1e[17]?d[a]=!0:typeof a==_$_5e1e[84]&&(d=a);a=Object.keys(d);for(d=0;d<a.length;d++)this.options.mergeCells[a[d]]&&(c[a[d]]=this.options.mergeCells[a[d]],b[a[d]]=!0,k.applyDestroy.call(this,a[d],!0));Q.call(this.parent,{worksheet:this,action:_$_5e1e[70],newValue:b,oldValue:c});G.call(this,_$_5e1e[70],{data:b})};k.destroy=function(){k.remove.call(this,this.options.mergeCells,!0)};k.applyCreate=function(a,c){var b=this.options.mergeCells;if(b[a]){var d=b[a][0]||1,e=b[a][1]||1;
156
- a=A.getCoordsFromColumnName(a);if(!this.records[a[1]][a[0]].merged||1==c)if(b=I[_$_5e1e[51]].call(this,a[0],a[1])){b.style.display=_$_5e1e[3];1<d?b.setAttribute(_$_5e1e[52],d):b.removeAttribute(_$_5e1e[52]);1<e?b.setAttribute(_$_5e1e[164],e):b.removeAttribute(_$_5e1e[164]);1==this.options.textOverflow&&(b.style.overflow=_$_5e1e[49]);for(var f=0;f<e;f++)for(var g=0;g<d;g++){c=a[0]+g;var h=a[1]+f;if(b=this.records[h][c])if(b.merged=[g,f,b.v,b.v],0!=g||0!=f)b.element||I[_$_5e1e[51]].call(this,c,h),b.element.style.display=
157
- _$_5e1e[40],b.merged[3]=b.element.innerText,b.element.innerText=_$_5e1e[3],K.call(this,c,h,_$_5e1e[3])}}}};k.applyDestroy=function(a,c){var b=this.options.mergeCells;if(b[a]){var d=A.getCoordsFromColumnName(a),e=d[0];d=d[1];var f=b[a][0],g=b[a][1];delete this.options.mergeCells[a];for(a=0;a<g;a++)for(var h=0;h<f;h++)if(b=this.records[d+a][e+h])b.element&&(0==h&&0==a?(b.element.removeAttribute(_$_5e1e[52]),b.element.removeAttribute(_$_5e1e[164])):(b.element.style.display=_$_5e1e[3],1==c&&(K.call(this,
158
- e+h,d+a,b.merged[2]),b.element.innerHTML=b.merged[3]))),b.merged&&delete b.merged}};k.updateConfig=function(a,c,b,d){if(1==c)var e=[b];else{e=[];for(var f=b;f<b+d;f++)e.push(f)}var g=this.options.mergeCells,h=Object.keys(g),l={};for(f=0;f<h.length;f++){b=A.getCoordsFromColumnName(h[f]);for(var n=b[a];n<b[a]+g[h[f]][a];n++)-1!==e.indexOf(n)&&(l[h[f]]||(l[h[f]]=[g[h[f]][0],g[h[f]][1]],1==c&&(l[h[f]][a]+=d)),0==c&&l[h[f]][a]--)}h=Object.keys(l);for(f=0;f<h.length;f++)k.update.call(this,h[f],l[h[f]][0],
159
- l[h[f]][1]);k.build.call(this)};k.build=function(){var a=this.options.mergeCells;this.merged={cols:[],rows:[],cells:[]};if(a)for(var c=Object.keys(a),b=0;b<c.length;b++){for(var d=A.getCoordsFromColumnName(c[b]),e=parseInt(a[c[b]][0]),f=parseInt(a[c[b]][1]),g=0;g<e;g++)this.merged.cols[d[0]+g]=!0;for(var h=0;h<f;h++)this.merged.rows[d[1]+h]=!0;for(h=0;h<f;h++)for(g=0;g<e;g++){var l=A.getColumnNameFromCoords(d[0]+g,d[1]+h);this.merged.cells[l]=c[b]}}};k.batch=function(a){var c=Object.keys(a);if(c.length)for(var b=
160
- 0;b<c.length;b++)!1===a[c[b]]&&k.applyCreate.call(this,c[b])};return k}(),ya=function(){var k=function(a){a.getHeader=k[_$_5e1e[51]];a.setHeader=k[_$_5e1e[11]];a.getHeaders=k.all};k[_$_5e1e[51]]=function(a){var c;if(c=this.options.columns)return c[a].title||A.getColumnName(a)};k.all=function(a){for(var c=[],b=0;b<this.options.columns.length;b++)c.push(k[_$_5e1e[51]].call(this,b));return a?c:c.join(this.options.csvDelimiter)};k[_$_5e1e[11]]=function(a,c){if(!N.call(this.parent,this))return!1;var b;
161
- if(b=this.options.columns[a]){var d=k[_$_5e1e[51]].call(this,a);if(!c&&(c=prompt(z(_$_5e1e[165]),d),!c))return!1;b.title=c;if(b=this.headers[a])b.innerHTML=c,b.setAttribute(_$_5e1e[166],c);Q.call(this.parent,{worksheet:this,action:_$_5e1e[75],column:a,oldValue:d,newValue:c});G.call(this,_$_5e1e[75],{column:a,title:c});B.call(this.parent,_$_5e1e[167],this,a,c,d)}};k.create=function(a){var c=this.options.columns[a],b=c.width||this.options.defaultColWidth,d=c.align||_$_5e1e[53],e=c.title||A.getColumnName(a),
162
- f=document.createElement(_$_5e1e[147]);this.parent.config.stripHTML?f.innerText=e:f.innerHTML=e;f.setAttribute(_$_5e1e[42],a);f.style.textAlign=d;c.title&&f.setAttribute(_$_5e1e[166],f.innerText);c.tooltip&&(f.title=c.tooltip);d=this.options.filters;!0===c.filter&&(d=!0);!1===c.filter&&(d=!1);!0===d&&f.classList.add(_$_5e1e[168]);!1===c.visible&&(b=_$_5e1e[97]);d=document.createElement(_$_5e1e[169]);d.setAttribute(_$_5e1e[152],b);c.type==_$_5e1e[49]&&(f.style.display=_$_5e1e[40],d.style.display=_$_5e1e[40]);
163
- this.headers[a]=f;this.colgroup[a]=d};return k}(),W=function(){var k=function(c,b,d){var e=this.footers.content,f;e&&e[b]&&e[b][c]&&(f=e[b][c].element)&&(void 0===d&&(e=this.options.footers,d=e[b]&&e[b][c]?e[b][c]:_$_5e1e[3]),M(d)&&1==this.parent.config.parseFormulas&&(d=S.execute.call(this,d,c,null,!1)),this.options.applyMaskOnFooters&&(e=Z[_$_5e1e[51]].call(this,c),d=t.editors.general.parseValue(c,b,d,this,e[1],f)),d instanceof Element||d instanceof HTMLDocument?(f.innerHTML=_$_5e1e[3],f.appendChild(d)):
164
- 1==this.parent.config.stripHTML?f.innerText=d:f.innerHTML=d)},a=function(c){c.getFooter=a[_$_5e1e[51]];c.setFooter=a[_$_5e1e[11]];c.resetFooter=a.reset;c.refreshFooter=a.refresh;c.getFooterValue=a.value;c.setFooterValue=a.value};a[_$_5e1e[51]]=function(){return this.options.footers};a[_$_5e1e[11]]=function(c){if(c){var b=this.options.footers;this.options.footers=c}this.options.footers!=b&&(W.build.call(this),C.limited.call(this)?C.refresh.call(this):a.render.call(this),G.call(this,_$_5e1e[170],{data:this.options.footers}),
165
- B.call(this.parent,_$_5e1e[171],this,this.options.footers,b))};a.refresh=function(){var c=this.options.footers;if(c&&c.length)for(var b=0;b<c.length;b++)for(var d=0;d<c[b].length;d++)k.call(this,d,b,c[b][d])};a.value=function(c,b,d){if(void 0===d)return this.options.footers[b][c];k.call(this,c,b,d);G.call(this,_$_5e1e[172],{x:c,y:b,value:d});B.call(this.parent,_$_5e1e[173],this,c,b,d)};a.reset=function(){var c=this.options.footers;this.options.footers=null;this.footers.content=null;this.tfoot.innerHTML=
166
- _$_5e1e[3];G.call(this,_$_5e1e[174],{});B.call(this.parent,_$_5e1e[171],this,null,c)};a.create=function(c,b){var d=this.footers.content[b][c];if(d&&d.element)return d.element;d=this.footers.content[b][c]={};var e=this.options.columns[c].align?this.options.columns[c].align:_$_5e1e[53];d.element=document.createElement(_$_5e1e[147]);d.element.style.textAlign=e;d.element.setAttribute(_$_5e1e[42],c);d.element.setAttribute(_$_5e1e[43],b);k.call(this,c,b);this.options.columns[c].type==_$_5e1e[49]&&(d.element.style.display=
167
- _$_5e1e[40]);return d.element};a.build=function(){this.footers={element:this.tfoot,content:[]};if(this.options.footers)for(var c=0;c<this.options.footers.length;c++){if(!this.footers.content[c]){this.footers.content[c]=[];var b=document.createElement(_$_5e1e[145]),d=document.createElement(_$_5e1e[147]);d.innerHTML=_$_5e1e[148];b.appendChild(d);this.footers.element.appendChild(b)}for(b=0;b<this.options.columns.length;b++)this.options.footers[c][b]||(this.options.footers[c][b]=_$_5e1e[3]),this.footers.content[c][b]||
168
- (this.footers.content[c][b]={})}};a.render=function(){for(var c=this.options.footers,b=0;b<c.length;b++)for(var d=0;d<c[b].length;d++){var e=W.create.call(this,d,b);this.tfoot.children[b].appendChild(e)}};a.adjust=function(c,b,d){var e=[],f=this.options.footers,g=this.footers.content;if(f)if(1==d){if(this.headers[c]&&this.headers[c].parentNode)var h=this.headers[c]==this.thead.lastChild.lastChild?!0:!1,l=!0;for(d=0;d<f.length;d++){for(var n=f[d].splice(c),q=c;q<c+b;q++)f[d][q]=_$_5e1e[3];f[d]=f[d].concat(n);
169
- n=g[d].splice(c);for(q=c;q<c+b;q++)g[d][q]={element:a.create.call(this,q,d)},l&&(1==h?this.tfoot.children[d].appendChild(g[d][q].element):this.tfoot.children[d].insertBefore(g[d][q].element,this.tfoot.children[d].children[c].nextSibling));g[d]=g[d].concat(n)}}else for(d=0;d<f.length;d++){for(q=c;q<c+b;q++)(h=this.footers.content[d][q].element)&&h.parentNode&&h.parentNode.removeChild(h);g[d].splice(c,b);e[d]=f[d].splice(c,b)}return e};return a}(),la=function(){var k=function(a){a.setNestedCell=k.cell;
170
- a.getNestedCell=k.cell;a.setNestedHeaders=k[_$_5e1e[11]];a.getNestedHeaders=k[_$_5e1e[51]];a.resetNestedHeaders=k.reset};k[_$_5e1e[51]]=function(){return this.options.nestedHeaders};k[_$_5e1e[11]]=function(a){k.reset.call(this);this.options.nestedHeaders=a;k.build.call(this);k.render.call(this);da.refresh.call(this);P.call(this);G.call(this,_$_5e1e[175],{data:a});B.call(this.parent,_$_5e1e[176],this,a)};k.reset=function(){var a=[],c=this.thead.children;this.options.nestedHeaders=null;for(var b=0;b<
171
- c.length;b++)c[b].classList.contains(_$_5e1e[177])&&a.push(c[b]);if(a.length)for(;c=a.shift();)c.remove();this.nested=null;da.refresh.call(this);P.call(this);G.call(this,_$_5e1e[178]);B.call(this.parent,_$_5e1e[176],this,[])};k.cell=function(a,c,b){if(b){if(!N.call(this.parent,this))return!1;var d=this.options.nestedHeaders[c][a],e=this.nested.content[c][a].element;void 0!==b.title&&(e.innerText=b.title);void 0!==b.tooltip&&(e.title=b.tooltip);void 0!==b.colspan&&(d.colspan=b.colspan,e.setAttribute(_$_5e1e[52],
172
- b.colspan),e.style.display=0==d.colspan?_$_5e1e[40]:_$_5e1e[3]);G.call(this,_$_5e1e[179],{x:a,y:c,properties:b});B.call(this.parent,_$_5e1e[180],this,a,c,b)}else return this.nested.content[c][a].element};k.range=function(a){a=this.options.nestedHeaders[a];for(var c=[],b=0,d=0;d<a.length;d++){var e=parseInt(a[d].colspan);c[d]=[b,b+e-1];b+=e}return c};k.getColumns=function(a){a=this.options.nestedHeaders[a];for(var c=[],b=0;b<a.length;b++)for(var d=a[b].colspan,e=0;e<d;e++)c.push(b);return c};k.create=
173
- function(a,c){if(this.nested.content[c][a])return this.nested.content[c][a].element;var b=this.options.nestedHeaders[c][a]||{},d=this.nested.content[c][a]={};b.colspan||(b.colspan=1);b.align||(b.align=_$_5e1e[53]);b.title||(b.title=_$_5e1e[3]);var e=document.createElement(_$_5e1e[147]);e.setAttribute(_$_5e1e[181],a);e.setAttribute(_$_5e1e[182],c);e.setAttribute(_$_5e1e[52],b.colspan);e.setAttribute(_$_5e1e[183],b.align);e.innerHTML=b.title;b.tooltip&&(e.title=b.tooltip);return d.element=e};k.build=
174
- function(){this.nested||(this.nested={content:[]});if(this.options.nestedHeaders)for(var a=0;a<this.options.nestedHeaders.length;a++){this.nested.content[a]=[];var c=document.createElement(_$_5e1e[147]);c.innerHTML=_$_5e1e[148];var b=document.createElement(_$_5e1e[145]);b.classList.add(_$_5e1e[177]);b.appendChild(c);this.thead.insertBefore(b,this.thead.lastChild)}};k.render=function(){for(var a,c=this.options.nestedHeaders,b=0;b<c.length;b++)for(var d=0;d<this.thead.lastChild.children.length;d++){a=
175
- this.thead.lastChild.children[d].getAttribute(_$_5e1e[42]);var e=k.getColumns.call(this,b);void 0!==e[a]&&k.renderCell.call(this,e[a],b)}};k.renderCell=function(a,c,b){var d=la.create.call(this,a,c);d.parentNode?(a=d.getAttribute(_$_5e1e[52]),a++,d.setAttribute(_$_5e1e[52],a)):(d.setAttribute(_$_5e1e[52],1),b?this.thead.children[c].insertBefore(d,this.thead.children[c].children[b]):this.thead.children[c].appendChild(d),0==a&&0<this.options.freezeColumns&&(d.classList.add(_$_5e1e[50]),d.style.left=
176
- ua.call(this)?_$_5e1e[159]:_$_5e1e[155]))};k.adjust=function(a,c,b,d){var e=this.options.nestedHeaders;if(e)if(1==b)if(d&&d.nested)for(b=0;b<e.length;b++)for(var f=0;f<e[b].length;f++)k.cell.call(this,f,b,{colspan:d.nested[b][f]});else for(b=0;b<e.length;b++){if(f=k.getColumns.call(this,b)){f=f[a];var g=parseInt(e[b][f].colspan)+c;k.cell.call(this,f,b,{colspan:g})}}else{d=[];for(b=0;b<e.length;b++)if(g=k.getColumns.call(this,b)){d[b]=[];for(f=0;f<c;f++){var h=g[a+f];typeof d[b][h]==_$_5e1e[13]&&(d[b][h]=
177
- e[b][h].colspan);e[b][h].colspan--}g=Object.keys(d[b]);for(f=0;f<g.length;f++)k.cell.call(this,g[f],b,{colspan:e[b][g[f]].colspan})}return d}};return k}(),ha=function(){var k=function(a,c){var b=function(q){var p;(p=this.results)?q=p.indexOf(q):p=this.rows;q--;for(var r=q;0<=r;r--)if(q=this.results?p[r]:r,this.rows[q]&&this.rows[q].element)return q;return 0},d=function(q){var p;(p=this.results)?q=p.indexOf(q):p=this.rows;q++;for(var r=q;r<p.length;r++)if(q=this.results?p[r]:r,this.rows[q]&&this.rows[q].element)return q;
178
- return p[p.length-1]},e=function(q,p){for(;0<=q;q--)if(this.records[p][q].element&&this.records[p][q].element.style.display!=_$_5e1e[40])return q;return 0},f=function(q,p){for(;q<this.options.columns.length;q++)if(this.records[p][q].element&&this.records[p][q].element.style.display!=_$_5e1e[40])return q;return this.options.columns-1},g=this.getHighlighted(),h=g[0],l=g[1],n=g[2];g=g[3];a=parseInt(a);c=parseInt(c);null!=a&&null!=c&&(0<a-n?(f=f.call(this,parseInt(n)+1,c),a=parseInt(a)):(f=parseInt(a),
179
- a=e.call(this,parseInt(h)-1,c)),0<c-g?(d=d.call(this,parseInt(g)),c=parseInt(c)):(d=parseInt(c),c=b.call(this,parseInt(l))),a-f<=c-d?(f=parseInt(h),a=parseInt(n)):(d=parseInt(l),c=parseInt(g)),this.setBorder(f,d,a,c,_$_5e1e[138]))};k.execute=function(a){if(!N.call(this.parent,this))return!1;var c=this.borders.cloning;if(a)if(c&&c.active){a=c.x1;var b=c.y1,d=c.x2,e=c.y2}else return!1;else if(d=this.getSelected(),d.length)a=d[0].x,b=parseInt(d[d.length-1].y)+1,d=d[d.length-1].x,e=this.options.data.length-
180
- 1;else return!1;var f,g=0,h=[],l=[],n=!1,q=this.getHighlighted(),p=Ba[_$_5e1e[51]].call(this,q,!1,!1),r=this.getSelected();if(f=this.getStyle(r,!0)){var w=Object.keys(f);if(w.length)for(var m=0;m<w.length;m++)h.push(f[w[m]])}if(q[0]==a)var v=b<q[1]?b-q[1]:1,u=0;else u=a<q[0]?a-q[0]:1,v=0;w=0;a=parseInt(a);d=parseInt(d);b=parseInt(b);e=parseInt(e);for(var x=b;x<=e;x++)if(!this.results||-1!=this.results.indexOf(x)){void 0==p[g]&&(g=0);f=0;q[0]!=a&&(u=a<q[0]?a-q[0]:1);for(m=a;m<=d;m++){if(!(0!=n||this.records[x][m].element&&
181
- this.records[x][m].element.classList.contains(_$_5e1e[18]))){if((!c||1!=c.active)&&K.call(this,m,x)){n=!0;continue}void 0==p[g]?f=0:void 0==p[g][f]&&(f=0);var y=p[g][f];y&&!p[1]&&1==this.parent.config.autoIncrement&&(this.options.columns[m].type==_$_5e1e[56]||this.options.columns[m].type==_$_5e1e[14]?M(y)?y=S.shiftFormula(y,u,x-q[1]):y==Number(y)&&(y=Number(y)+v):this.options.columns[m].type==_$_5e1e[184]&&(y=new Date(y),y.setDate(y.getDate()+v),y=y.getFullYear()+_$_5e1e[185]+jSuites.two(parseInt(y.getMonth()+
182
- 1))+_$_5e1e[185]+jSuites.two(y.getDate())+_$_5e1e[132]+_$_5e1e[186]));y={x:m,y:x,value:y};h&&null!=h[w]&&(y.style=h[w],w++,w>=h.length&&(w=0));l.push(y)}f++;q[0]!=a&&u++}g++;v++}l.length&&(r[0].x<a&&(a=r[0].x),r[0].y<b&&(b=r[0].y),r[r.length-1].x>d&&(d=r[r.length-1].x),r[r.length-1].y>e&&(e=r[r.length-1].y),this.setValue(l),this.resetBorders(_$_5e1e[138],!0),this.updateSelectionFromCoords(a,b,d,e))};k.end=function(a){ha.event=!1;ha.execute.call(this,!0)};k.cancel=function(a){ha.event=!1;this.resetBorders(_$_5e1e[138],
183
- !0)};return k}(),Ba=function(){var k=function(a){a.getData=k[_$_5e1e[51]];a.getJson=k[_$_5e1e[51]];a.setData=k[_$_5e1e[11]];a.loadData=k.load;a.getRowData=k.getRowData;a.setRowData=k.setRowData;a.getColumnData=k.getColumnData;a.setColumnData=k.setColumnData;a.updateData=k.update;a.refresh=k.refresh;a.data=k[_$_5e1e[51]];a.download=k.download;a.copy=k.copy;a.paste=k.paste;a.cut=function(){return a.copy(!0)}};k[_$_5e1e[51]]=function(a,c,b){!0===a&&(a=this.getHighlighted());for(var d=a?!0:!1,e,f=[],
184
- g=this.options.columns.length,h=this.options.data.length,l,n=this.dataType&&typeof b==_$_5e1e[13]?1:0,q=0;q<h;q++){l=null;e=n?{}:[];for(var p=0;p<g;p++){var r;if(!(r=!d)){r=a[1];var w=a[2],m=a[3];r=p>=a[0]&&p<=w&&q>=r&&q<=m?!0:!1}if(r&&(!d||!this.results||-1!=this.results.indexOf(q))){r=K.call(this,p,q);if(c){if(d&&!1===this.rows[q].visible)continue;l=aa.processed.call(this,p,q);void 0!==l&&(r=l)}b&&r.match&&(r.match(b)||r.match(/\n/)||r.match(/"/))&&(r=r.replace(new RegExp(_$_5e1e[187],_$_5e1e[188]),
185
- _$_5e1e[189]),r=_$_5e1e[187]+r+_$_5e1e[187]);n?jSuites.path.call(e,_$_5e1e[3]+V.call(this,p),r):e.push(r);l=!0}}l&&(b?f.push(e.join(b)):f.push(e))}return b?f.join(_$_5e1e[10])+_$_5e1e[10]:f};k.parse=function(){for(var a,c={},b=0,d,e=[],f=this.options.data,g=0;g<f.length;g++)a=null,d=g,f[g].data&&(Array.isArray(f[g].data)||typeof f[g].data==_$_5e1e[84])&&(typeof f[g].id==_$_5e1e[14]&&(a=parseInt(f[g].id)),typeof f[g].row==_$_5e1e[14]&&(d=f[g].row),e[d]=f[g].data,f[g]=[]),d>b&&(b=d),a&&(c[d]=a);if(Object.keys(e).length)for(g=
186
- 0;g<=b;g++)e[g]&&(f[g]=e[g]);b=this.getPrimaryKey();if(!1!==b)for(b=V.call(this,b),g=0;g<f.length;g++)c[g]||!1===b||(a=parseInt(f[g][b]),0<a&&(c[g]=a));return c};k.type=function(){for(var a=this.dataType=0;a<this.options.columns.length;a++)typeof this.options.columns[a].name!==_$_5e1e[13]&&(this.dataType=1)};k[_$_5e1e[11]]=function(a){a=k.standardize(a);var c={},b=[],d={};var e=Object.keys(a[0]).length-this.options.columns.length;0<e&&this.insertRow(e);var f=a.length-this.options.data.length;0<f&&
187
- this.insertRow(f);for(var g=0;g<this.options.data.length;g++){void 0===a[g]&&(a[g]={row:g,data:[]});for(var h=0;h<this.options.columns.length;h++)a[g].data[h]||(a[g].data[h]=_$_5e1e[3])}for(h=0;h<this.options.columns.length;h++){var l=V.call(this,h);d[l]=h}for(g=0;g<a.length;g++){f=a[g].row;l=Object.keys(a[g].data);for(h=0;h<l.length;h++)e=null,void 0!==d[l[h]]?e=d[l[h]]:-1<l[h]&&(e=parseInt(l[h])),null!==e&&b.push({x:e,y:f,value:a[g].data[l[h]]});a[g].id&&(c[f]=a[g].id)}pa.setId.call(this,c);aa[_$_5e1e[11]].call(this,
188
- b,null,!0)};k.build=function(){this.results=null;this.rows=[];this.records=[];this.sequence=0;k.type.call(this);if(this.options.data){var a=k.parse.call(this),c=this.options.data.length;this.options.minDimensions[1]>c&&(c=this.options.minDimensions[1]);for(var b=0;b<c;b++){var d=a[b]?a[b]:null;ka.row.call(this,b,d)}}};k.load=function(a){this.resetBorders();this.resetSelection();this.tbody.innerText=_$_5e1e[3];this.options.data=a;k.build.call(this);C.call(this)};k.refresh=function(a){if(typeof a!==
189
- _$_5e1e[13])for(var c=0;c<this.options.columns.length;c++){var b=this.records[a]&&this.records[a][c].element?this.records[a][c].element:null,d=Z[_$_5e1e[51]].call(this,c,a);typeof d[0].updateCell==_$_5e1e[85]&&d[0].updateCell(b,K.call(this,c,a),c,a,this,d[1]);b&&I.applyOverflow.call(this,b,c,a)}else if(this.options.url){var e=this;1==this.parent.config.loadingSpin&&jSuites.loading.show();jSuites.ajax({url:this.options.url,method:_$_5e1e[59],dataType:_$_5e1e[60],success:function(f){e.setData(f);jSuites.loading.hide()}})}};
190
- k.getRowData=function(a,c){if(typeof this.options.data[a]===_$_5e1e[13])return!1;if(c){if(this.dataType){c={};for(var b=0;b<this.options.columns.length;b++){var d=_$_5e1e[3]+V.call(this,b),e=_$_5e1e[3]+aa.processed.call(this,b,a,!0);jSuites.path.call(c,d,e)}}else for(c=[],b=0;b<this.options.columns.length;b++)c.push(aa.processed.call(this,b,a,!0));return c}return JSON.parse(JSON.stringify(this.options.data[a]))};k.setRowData=function(a,c,b){for(var d=[],e=0;e<this.options.columns.length;e++)typeof c[e]===
191
- _$_5e1e[13]&&(c[e]=_$_5e1e[3]),d.push({x:e,y:a,value:c[e]});d.length&&this.setValue(d,null,b)};k.getColumnData=function(a,c){if(typeof this.options.columns[a]===_$_5e1e[13])return!1;for(var b=[],d=0;d<this.options.data.length;d++){var e=c?aa.processed.call(this,a,d,!0):K.call(this,a,d);b.push(e)}return b};k.setColumnData=function(a,c,b){for(var d=[],e=0;e<this.rows.length;e++)typeof c[e]===_$_5e1e[13]&&(c[e]=_$_5e1e[3]),d.push({x:a,y:e,value:c[e]});d.length&&this.setValue(d,null,b)};k.copy=function(a){var c=
192
- this,b=this.getHighlighted(),d=function(){c.setBorder(b[0],b[1],b[2],b[3],_$_5e1e[127]);c.borders.copying.clear=1==a?!0:!1},e=k[_$_5e1e[51]].call(this,b,!0,_$_5e1e[190]),f=B.call(this.parent,_$_5e1e[191],this,b,e);if(f)e=f;else if(!1===f)return!1;navigator.clipboard?navigator.clipboard.writeText(e).then(d):(this.parent.textarea.value=e,this.parent.textarea.select(),document.execCommand(_$_5e1e[192]),d());return e};k.paste=function(a,c,b){if(!N.call(this.parent,this))return!1;var d=this,e=function(){d.borders.copying&&
193
- (d.resetBorders(_$_5e1e[127],!0),d.borders.copying.clear=!1)},f=b,g=null,h=this.options.style,l=null,n=null,q=[];if(this.borders.copying){var p=[this.borders.copying.x1,this.borders.copying.y1,this.borders.copying.x2,this.borders.copying.y2];l=p[0];n=p[1];var r=jSuites.hash(b),w=jSuites.hash(k[_$_5e1e[51]].call(this,p,!0,_$_5e1e[190]));if(r!=w)e();else{var m=0,v=0;b=k[_$_5e1e[51]].call(this,p,!1,!1);for(r=p[1];r<=p[3];r++)if(!this.results||-1!=this.results.indexOf(r)){q[v]=[];m=0;for(w=p[0];w<=p[2];w++)g=
194
- A.getColumnNameFromCoords(w,r),q[v][m]=h&&h[g]?h[g]:_$_5e1e[193],m++;v++}}}a=parseInt(a);c=parseInt(c);100<f.length&&!this.options.pagination&&!C.limited.call(this)&&console.log(_$_5e1e[194]);if(r=B.call(this.parent,_$_5e1e[195],this,b,a,c,q,f))b=r;else if(!1===r)return!1;if(b){Array.isArray(b)||(b=A.parseCSV(b,_$_5e1e[190]));if(f=this.getHighlighted()){g=[];m=[];v=[];h=[];var u=0,x=0;for(r=f[1];r<=f[3];r++)if(!this.results||-1!=this.results.indexOf(r)){g=[];m=[];for(w=f[0];w<=f[2];w++)g.push(b[x][u]),
195
- q&&q[x]&&q[x][u]?m.push(q[x][u]):m.push(_$_5e1e[3]),u++,u>=b[0].length&&(u=0);v.push(g);h.push(m);x++;x>=b.length&&(x=0)}0==v.length%b.length&&0==v[0].length%b[0].length&&(b=v,q=h)}h=null;f=[];if(this.borders.copying&&!0===this.borders.copying.clear){for(r=p[1];r<=p[3];r++)for(w=p[0];w<=p[2];w++)(!this.results||this.results&&0<=this.results.indexOf(r))&&f.push({x:w,y:r,value:_$_5e1e[3],style:_$_5e1e[3]});e()}r=a+b[0].length-this.options.columns.length;0<r&&this.insertColumn(r);r=c+b.length-this.rows.length;
196
- 0<r&&this.insertRow(r);m=g=a;u=v=c;x=null;this.results&&(h=this.results.indexOf(c));for(r=0;r<b.length;r++)for(w=0;w<b[r].length;w++){null!==l&&null!==n&&b[r][w][0]==_$_5e1e[12]&&(b[r][w]=S.shiftFormula(b[r][w],a-l,c-n));m=a+w;u=c+r;this.results&&(u=this.results[h+r]);var y={x:m,y:u,value:b[r][w]};q&&q[r]&&q[r][w]&&(y.style=q[r][w]);f.push(y);null===x&&va.isSelected.call(this,m,u,p)&&(x=!0)}x&&e();f.length&&(aa[_$_5e1e[11]].call(this,f,null,this.parent.config.forceUpdateOnPaste?!0:!1),B.call(this.parent,
197
- _$_5e1e[196],this,f),this.updateSelectionFromCoords(g,v,m,u))}};k.download=function(a,c){if(this.parent.config.allowExport){void 0===c&&(c=!0);var b=_$_5e1e[3];if(1==a||1==this.parent.config.includeHeadersOnDownload)b+=this.getHeaders().replace(/\s+/gm,_$_5e1e[132])+_$_5e1e[10];b+=k[_$_5e1e[51]].call(this,null,c,this.options.csvDelimiter);c=new Blob([_$_5e1e[198]+b],{type:_$_5e1e[199]});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(c,this.options.csvFileName+
198
- _$_5e1e[200]):(a=document.createElement(_$_5e1e[201]),c=URL.createObjectURL(c),a.href=c,a.setAttribute(_$_5e1e[202],this.options.csvFileName+_$_5e1e[200]),document.body.appendChild(a),a.click(),a.parentNode.removeChild(a))}else console.error(_$_5e1e[197])};k.standardize=function(a){a||(a=[]);Array.isArray(a)||(a=[a]);void 0==a[0]||Array.isArray(a[0])||typeof a[0]==_$_5e1e[84]||(a=[a]);for(var c=0;c<a.length;c++){var b={};Array.isArray(a[c])||void 0==a[c].data?b.data=a[c]:b=a[c];b.row=void 0==a[c].row?
199
- c:a[c].row;a[c]=b}return a};return k}(),Ra=function(){var k=function(a){a.getLabel=k[_$_5e1e[51]];a.getLabelFromCoords=k[_$_5e1e[51]]};k[_$_5e1e[51]]=function(a,c,b){if(typeof a==_$_5e1e[17]){a=A.getCoordsFromColumnName(a);var d=a[0];c=a[1]}else d=a;return this.getProcessed(d,c,b)};return k}(),Ea=function(){var k=function(a){a.getDefinedNames=k[_$_5e1e[51]];a.setDefinedNames=k[_$_5e1e[11]]};k[_$_5e1e[11]]=function(a){var c=Object.keys(a);if(c.length){for(var b=0;b<c.length;b++)this.parent.config.definedNames[c[b]]=
200
- a[c[b]];G.call(this,_$_5e1e[203],[a])}};k[_$_5e1e[51]]=function(a){var c=this.parent.config.definedNames;return a?c[a]:c};k.updateAll=function(a,c){var b,d={};if(b=this.parent.config.definedNames){var e=Object.keys(b);if(e.length){for(var f=this.getWorksheetName(),g=0;g<e.length;g++){var h=S.update.call(this,b[e[g]],a,c,f);h!==b[e[g]]&&(d[e[g]]=h)}k[_$_5e1e[11]].call(this,d)}}};k.updateWorksheetName=function(a,c){var b,d={};if(b=this.parent.config.definedNames){var e=Object.keys(b);if(e.length){for(var f=
201
- 0;f<e.length;f++){var g=S.updateWorksheetName(b[e[f]],a,c);g!==b[e[f]]&&(d[e[f]]=g)}k[_$_5e1e[11]].call(this,d)}}};return k}(),fa=function(){var k=[_$_5e1e[204],_$_5e1e[205],_$_5e1e[206],_$_5e1e[207],_$_5e1e[208]],a=[_$_5e1e[185],_$_5e1e[151],_$_5e1e[209],_$_5e1e[210],_$_5e1e[211],_$_5e1e[212],_$_5e1e[1],_$_5e1e[213],_$_5e1e[25],_$_5e1e[214],_$_5e1e[12],_$_5e1e[215],_$_5e1e[216]],c=[],b=function(){if(0<c.length){for(var f=0;f<c.length;f++)da.destroy.call(this,c[f]);c=[]}},d=function(f){b.call(this);
202
- for(var g=0,h=[],l,n=0;n<f.children.length;n++)if(l=f.children[n].getAttribute(_$_5e1e[217])){h[l]||(h[l]=k[g++],4<g&&(g=0));f.children[n].style.color=h[l];if(-1===l.indexOf(_$_5e1e[135])){if(0<=l.indexOf(_$_5e1e[136])){var q=l.split(_$_5e1e[136]),p=A.getCoordsFromColumnName(q[0]);q=A.getCoordsFromColumnName(q[1])}else q=p=A.getCoordsFromColumnName(l);va[_$_5e1e[11]].call(this,p[0],p[1],q[0],q[1],null,l,h[l])}c.push(l)}},e=function(f,g){f.classList.add(_$_5e1e[92]);f.classList.add(_$_5e1e[218]);f.classList.add(_$_5e1e[219]);
203
- f.classList.add(_$_5e1e[220]);f.setAttribute(_$_5e1e[221],!0);f.onclick=function(h){h=h.changedTouches&&h.changedTouches[0]?h.changedTouches[0].clientX:h.clientX;var l=this.getBoundingClientRect();24>l.width-(h-l.left)&&(e.current=f,f.classList.add(_$_5e1e[222]))};f.onblur=function(){f.worksheet&&(b.call(f.worksheet),typeof f.onchange==_$_5e1e[85]&&f.onchange.call(f),f.worksheet=null)};f.onchange=g};e.current=null;e.parse=function(f){for(var g=_$_5e1e[3],h=_$_5e1e[3],l=window.getSelection(),n=document.createRange(),
204
- q=A.getCaretIndex.call(this.parent,f),p=S.tokenize(f.innerText.replace(/(\r\n|\n|\r)/gm,_$_5e1e[3])),r=0;r<p.length;r++)p[r]&&S.tokenIdentifier.test(p[r].trim())?(r==p.length-1&&(h=_$_5e1e[223]),g+=_$_5e1e[224]+h+_$_5e1e[225]+p[r].trim().replace(/\$/g,_$_5e1e[3])+_$_5e1e[226]+p[r]+_$_5e1e[227]):g+=p[r];f.innerHTML=g;g=null;for(r=0;r<f.childNodes.length&&!(g=f.childNodes[r],h=g.tagName?g.innerText.length:g.length,0>=q-h);r++)q-=h;g&&(g.tagName?n.setStart(g.firstChild,q):n.setStart(g,q),l.removeAllRanges(),
205
- l.addRange(n));d.call(this,f)};e.close=function(f){b.call(this);f?f.classList.remove(_$_5e1e[92]):e.current&&(typeof e.current.onchange==_$_5e1e[85]&&e.current.onchange.call(e.current),e.current.classList.remove(_$_5e1e[222]),e.current.worksheet=null,e.current=null)};e.getName=function(f,g,h,l,n){f=A.getColumnNameFromCoords(f,g);h=A.getColumnNameFromCoords(h,l);n.ctrlKey&&(f=h);return f!==h?(n=f+_$_5e1e[136]+h,n=S.getTokensFromRange.call(this,n),S.getRangeFromTokens.call(this,n)):f};e.range=function(f,
206
- g,h,l,n){e.current.getAttribute(_$_5e1e[228])==_$_5e1e[229]&&(f=h,g=l);f=e.getName.call(this,f,g,h,l,n);g=document.createElement(_$_5e1e[230]);g.innerText=f;g.setAttribute(_$_5e1e[217],f);e.current.innerText=_$_5e1e[3];e.current.appendChild(g);d.call(this,e.current);jSuites.focus(g);n.preventDefault()};e.update=function(f,g,h,l,n){var q=this,p=jSuites.getNode();if(p){var r=e.getName.call(this,f,g,h,l,n);f=function(w){var m=document.createElement(_$_5e1e[230]);m.innerText=r;m.setAttribute(_$_5e1e[217],
207
- r);p.parentNode===q.parent.input&&!1===w?p.parentNode.insertBefore(m,p.nextSibling):q.parent.input.appendChild(m);p=m};if(p.getAttribute(_$_5e1e[217]))n.ctrlKey?(q.parent.input.appendChild(document.createTextNode(_$_5e1e[25])),f(!0)):(p.innerText=r,p.setAttribute(_$_5e1e[217],r));else{if(p.innerText!==_$_5e1e[3]&&-1==a.indexOf(p.innerText.slice(-1))||p.nextElementSibling&&p.nextElementSibling.getAttribute(_$_5e1e[217]))return!1;f(!1)}jSuites.focus(p);d.call(q,q.parent.input);n.preventDefault();return!0}return!1};
208
- e.onkeydown=function(f){f.target.worksheet=this;if(f.ctrlKey){if(67==f.which||88==f.which)f=window.getSelection().toString().replace(/(\r\n|\n|\r)/gm,_$_5e1e[3]),navigator.clipboard?navigator.clipboard.writeText(f):(this.parent.textarea.value=f,this.parent.textarea.select(),document.execCommand(_$_5e1e[192]))}else if(36==f.which){var g=window.getSelection(),h=document.createRange();h.setStart(f.target,0);g.removeAllRanges();g.addRange(h)}else 35==f.which?jSuites.focus(f.target):187==f.which&&!f.target.innerText.replace(/(\r\n|\n|\r)/gm,
209
- _$_5e1e[3])&&f.target.getAttribute(_$_5e1e[94])&&f.target.removeAttribute(_$_5e1e[94])};return e}(),S=function(){var k=new RegExp(/^(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]+)(:\$?[A-Z]+\$?[0-9]+)?$/i),a=function(h){h=c(h);for(var l=[_$_5e1e[185],_$_5e1e[151],_$_5e1e[209],_$_5e1e[210],_$_5e1e[211],_$_5e1e[231]],n=[_$_5e1e[212],_$_5e1e[232],_$_5e1e[1],_$_5e1e[2],_$_5e1e[213],_$_5e1e[233],_$_5e1e[25],_$_5e1e[214],_$_5e1e[12],_$_5e1e[215],_$_5e1e[216]],q=_$_5e1e[3],p=[],r=0,w=0;w<h.length;w++){if(h[w]==_$_5e1e[187]||
210
- h[w]==_$_5e1e[133])r=0==r?1:0;0==r&&(-1<l.indexOf(h[w])||-1<n.indexOf(h[w]))?(q&&(p.push(q),q=_$_5e1e[3]),p.push(h[w])):q+=h[w]}q&&p.push(q);for(w=0;w<p.length;w++)-1==p[w].indexOf(_$_5e1e[187])&&-1==p[w].indexOf(_$_5e1e[133])&&(p[w]=p[w].replace(/\s/g,_$_5e1e[3]));return p},c=function(h,l){for(var n=_$_5e1e[3],q=0,p=[_$_5e1e[12],_$_5e1e[135],_$_5e1e[216],_$_5e1e[215]],r=0;r<h.length;r++)h[r]==_$_5e1e[187]&&(q=0==q?1:0),1==q?n+=h[r]:(n+=h[r].toUpperCase(),1==l&&0<r&&h[r]==_$_5e1e[12]&&-1==p.indexOf(h[r-
211
- 1])&&-1==p.indexOf(h[r+1])&&(n+=_$_5e1e[12]));return n},b=function(h){h.setFormula=b[_$_5e1e[11]];h.executeFormula=b.execute;h.formula=[]};b.run=function(h,l){var n=_$_5e1e[3],q=Object.keys(l);if(q.length){for(var p={},r=0;r<q.length;r++){var w=q[r].replace(/!/g,_$_5e1e[27]);0<w.indexOf(_$_5e1e[27])&&(w=w.split(_$_5e1e[27]),p[w[0]]=!0)}w=Object.keys(p);for(r=0;r<w.length;r++)n+=_$_5e1e[234]+w[r]+_$_5e1e[235];for(r=0;r<q.length;r++)w=q[r].replace(/!/g,_$_5e1e[27]),jSuites.isNumeric(l[q[r]])||(p=l[q[r]].match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&
212
- p.length&&(l[q[r]]=e(p,l[q[r]])),n=0<w.indexOf(_$_5e1e[27])?n+(w+_$_5e1e[236]+l[q[r]]+_$_5e1e[237]):n+(_$_5e1e[234]+w+_$_5e1e[236]+l[q[r]]+_$_5e1e[237])}h=h.replace(/\$/g,_$_5e1e[3]);(p=h.match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&p.length&&(h=e(p,h));h=h.replace(/!/g,_$_5e1e[27]);return(new Function(n+_$_5e1e[238]+h))()};b[_$_5e1e[11]]=function(){};var d=function(h){h=c(h,!0);return h.replace(/\$/g,_$_5e1e[3])},e=function(h,l){for(var n=0;n<h.length;n++){var q=b.getTokensFromRange.call(this,
213
- h[n]);l=l.replace(h[n],_$_5e1e[213]+q.join(_$_5e1e[25])+_$_5e1e[233])}return l},f=function(h,l,n){for(var q=this.config.definedNames,p=0;p<h.length;p++)h[p]&&q&&q[h[p]]&&(l=l.replace(h[p],q[h[p]]),n&&(n[h[p]]=q[h[p]]));return d(l)},g=function(h,l){var n;if(n=this.records[l][h].a)for(var q=0;q<n.length;q++)for(var p=0;p<n[q].length;p++)n[q][p]&&(n[q][p].innerText=_$_5e1e[3],this.records[l+q][h+p].v=_$_5e1e[3]);this.records[l][h].a=[]};b.execute=function(h,l,n,q,p){if(1==this.parent.processing)return null!==
214
- l&&null!==n&&this.parent.queue.push([this,l,n]),_$_5e1e[3];var r=[],w=function(H,L,E,ba){if(void 0!=L&&void 0!=E){var ra=A.getColumnNameFromCoords(L,E);E=ba.getWorksheetName()+_$_5e1e[27]+ra;r[E]||(r[E]=0);r[E]++;if(3<r[E])throw{error:_$_5e1e[239],message:_$_5e1e[240],reference:E};}else ra=null;p||(H=d(H));var J=H,U=J.match(/[A-Z_]+[A-Z0-9_\.]*/g);U&&U.length&&(J=f.call(ba.parent,U,J,m));(U=J.match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&U.length&&(J=e.call(ba,U,J));U=[];
215
- J=a(J);for(var R=0;R<J.length;R++)J[R]&&k.test(J[R])&&U.push(J[R]);if(U){if(-1<U.indexOf(ra))throw{error:_$_5e1e[241],message:_$_5e1e[242]};for(J=0;J<U.length;J++){R=U[J].split(_$_5e1e[135]);R[1]?(L=R[1],R=D(R[0]),E=ba.getWorksheetName()+_$_5e1e[27]+ra):(L=R[0],R=ba,E=ra);if(typeof R==_$_5e1e[13]||typeof R.formula==_$_5e1e[13])throw{error:_$_5e1e[243],message:_$_5e1e[244]};E&&(R.formula[L]||(R.formula[L]=[]),0>R.formula[L].indexOf(E)&&R.formula[L].push(E));if(!m[U[J]]){E=A.getCoordsFromColumnName(L);
216
- L=E[0];E=E[1];var oa=void 0!==R.records[E][L].v?R.records[E][L].v:K.call(R,L,E);m[U[J]]||((_$_5e1e[3]+oa).substr(0,1)==_$_5e1e[12]?m[U[J]]=w(oa,L,E,R):(oa?oa!=Number(oa)&&(oa=_$_5e1e[187]+oa+_$_5e1e[187]):oa=0,m[U[J]]=oa))}}}return H.substr(1)},m={};try{if(h=w(h,l,n,this)){var v=p?b.run(h,m):t.formula(h,m,l,n,this);if(!1!==q&&void 0!=l&&void 0!=n)if(v instanceof Date)this.records[n][l].v=jSuites.calendar.dateToNum(v);else if(Array.isArray(v)){g.call(this,l,n);q=[];for(var u=null,x=0;x<v.length;x++)for(var y=
217
- 0;y<v[x].length;y++)null===u&&(0<x&&x>y&&this.options.data[n+x][l+y]?u=_$_5e1e[245]:(this.records[n+x][l+y].v=v[x][y],this.records[n+x][l+y].element&&(q[x]||(q[x]=[]),q[x][y]=this.records[n+x][l+y].element,this.records[n+x][l+y].element.innerText=v[x][y])));null===u?(u=v[0][0],this.records[n][l].a=q):g.call(this,l,n);v=this.records[n][l].v=u}else this.records[n][l].v=v;return v}}catch(H){return 1==this.parent.config.debugFormulas&&console.log(h,m,H),H&&H.error?H.error:_$_5e1e[243]}};b.update=function(h,
218
- l,n,q){var p=null,r=null,w=function(u){n&&n[u]&&(u=_$_5e1e[246]);l[u]&&(u=l[u]);return u};h=c(h,!0);h=a(h);for(var m=0;m<h.length;m++)if(h[m]&&k.test(h[m])){if(-1==h[m].indexOf(_$_5e1e[135])){if(r=h[m],p=_$_5e1e[3],q)continue}else if(r=h[m].split(_$_5e1e[135]),p=r[0],r=r[1],q!=p)continue;if(0<=r.indexOf(_$_5e1e[136])){r=b.getTokensFromRange.call(this,r);for(var v=0;v<r.length;v++)r[v]=w(r[v]);r=b.getRangeFromTokens.call(this,r)}else-1==r.indexOf(_$_5e1e[247])?r=w(r):(r=w(r.replace(/\$/g,_$_5e1e[3])),
219
- r=_$_5e1e[247]+r.match(/[A-Z]+/g)+_$_5e1e[247]+r.match(/[0-9]+/g));p&&(r=p+_$_5e1e[135]+r);h[m]=r}return h.join(_$_5e1e[3])};b.getChain=function(h){if(void 0===h)return[];var l=[],n=[],q=[],p=function(m){if(0<=m.indexOf(_$_5e1e[27])){var v=m.split(_$_5e1e[27]),u=v[0],x=v[1];v=D(v[0])}else v=this,u=v.getWorksheetName(),x=m;if(v.formula[x]&&!q[m]){var y=!1;q[m]=!0;for(m=0;m<v.formula[x].length;m++){var H=v.formula[x][m];-1==H.indexOf(_$_5e1e[27])&&(H=u+_$_5e1e[27]+H);if(!n[H]){var L=v.getValue(H);M(L)?
220
- l.push([H,L,b.getTokens.call(v,L,u)]):(y=!0,v.formula[x][m]=null);p.call(v,H);n[H]=!0}}1==y&&(v.formula[x]=v.formula[x].filter(function(E){return null!=E}))}},r=Object.keys(h);for(h=0;h<r.length;h++)p.call(this,r[h]);r=0;for(h=l.length-1;0<=h;h--){for(var w=0;w<h;w++)if(0<=l[w][2].indexOf(l[h][0])){l.splice(w,0,l.splice(h,1)[0]);h=l.length;break}r++;if(1E6<r){console.error(_$_5e1e[248]);break}}n=[];for(h=0;h<l.length;h++)n[l[h][0]]=l[h][1];return n};b.updateAll=function(h,l){var n,q;Ea.updateAll.call(this,
221
- h,l);var p=Object.keys(this.formula);var r=[];var w=[];for(n=0;n<p.length;n++){var m=p[n];var v=this.formula[m];if(l&&l[m])for(var u=0;u<v.length;u++)h[v[u]]&&(v[u]=h[v[u]]),w[v[u]]=!0;else{var x=[];for(u=0;u<v.length;u++)l&&l[v[u]]||(h[v[u]]&&(v[u]=h[v[u]]),w[v[u]]=!0,x.push(v[u]));x.length&&(h[m]&&(m=h[m]),r[m]=x)}}this.formula=r;x=this.getWorksheetName();for(var y=0;y<t.spreadsheet.length;y++)for(var H=t.spreadsheet[y].worksheets,L=0;L<H.length;L++)if(H[L].getWorksheetName()!==x)for(p=Object.keys(H[L].formula),
222
- n=0;n<p.length;n++){r=[];v=H[L].formula[p[n]];for(u=0;u<v.length;u++)m=v[u].split(_$_5e1e[27]),m[0]==x&&m[1]?l&&l[m[1]]||(h[m[1]]&&(m[1]=h[m[1]]),r.push(m[0]+_$_5e1e[27]+m[1])):r.push(v[u]);H[L].formula[p[n]]=r}p=[];m=Object.keys(w);for(u=0;u<m.length;u++)0<=m[u].indexOf(_$_5e1e[27])?(v=m[u].split(_$_5e1e[27]),r=D(v[0]),n=v[1],x=this.getWorksheetName(),v=v[0]):(r=this,n=m[u],x=null,v=this.getWorksheetName()),(q=r.getValue(n))&&M(q)&&(r=b.update.call(r,q,h,l,x),r!=q&&(w[m[u]]=r,n=A.getCoordsFromColumnName(n),
223
- p[v]||(p[v]=[]),p[v].push({x:n[0],y:n[1],value:r,force:!0})));m=Object.keys(p);for(h=0;h<m.length;h++)r=D(m[h]),p[m[h]]=aa.applyValues.call(r,p[m[h]]),aa.setValueChained.call(r,p[m[h]]),G.call(r,_$_5e1e[107],{data:p[m[h]]})};b.updateWorksheetName=function(h,l,n){for(var q=a(h),p=0;p<q.length;p++)h=q[p].split(_$_5e1e[135]),h[1]&&(h[0]=h[0].replace(new RegExp(_$_5e1e[133],_$_5e1e[188]),_$_5e1e[3]),h[0].toUpperCase()==l.toUpperCase()&&(h[0]=n,0<=h[0].indexOf(_$_5e1e[132])&&(h[0]=_$_5e1e[133]+h[0]+_$_5e1e[133]),
224
- q[p]=h.join(_$_5e1e[135])));return q.join(_$_5e1e[3])};b.updateWorksheetNames=function(h,l){for(var n,q,p=0;p<t.spreadsheet.length;p++)for(var r=[],w=t.spreadsheet[p].worksheets,m=0;m<w.length;m++){for(var v=0;v<w[m].options.data.length;v++)for(var u=0;u<w[m].options.data[v].length;u++)(n=w[m].options.data[v][u])&&M(n)&&(q=b.updateWorksheetName(n,h,l),q!=n&&r.push({x:u,y:v,value:q,force:!0}));r=aa.applyValues.call(w[m],r);G.call(w[m],_$_5e1e[107],{data:r})}};b.shiftFormula=function(h,l,n){var q=a(h,
225
- !0);h=function(m){if(-1==m.indexOf(_$_5e1e[135])){m=A.getCoordsFromColumnName(m);var v=_$_5e1e[3]}else v=q[p].split(_$_5e1e[135]),m=A.getCoordsFromColumnName(v[1]),v=v[0]+_$_5e1e[135];var u=m[0]+l;m=m[1]+n;return m=0>u||0>m?_$_5e1e[246]:v+A.getColumnNameFromCoords(u,m)};for(var p=0;p<q.length;p++)if(k.test(q[p])&&-1==q[p].indexOf(_$_5e1e[247])){var r=-1==q[p].indexOf(_$_5e1e[135])?[_$_5e1e[3],q[p]]:q[p].split(_$_5e1e[135]);if(-1==r[1].indexOf(_$_5e1e[136]))r[1]=h(r[1]);else{var w=r[1].split(_$_5e1e[136]);
226
- r[1]=h(w[0])+_$_5e1e[136]+h(w[1])}q[p]=r[0]?r.join(_$_5e1e[135]):r[1]}return q.join(_$_5e1e[3])};b.getTokensFromRange=function(h){var l=this,n=_$_5e1e[3],q=_$_5e1e[3];0<=h.indexOf(_$_5e1e[27])?q=_$_5e1e[27]:0<=h.indexOf(_$_5e1e[135])&&(q=_$_5e1e[135]);h=h.replace(/\$/g,_$_5e1e[3]);q&&(n=h.split(q),l=D(n[0]),h=n[1],n=n[0]+q);q=[];h=h.split(_$_5e1e[136]);var p=A.getCoordsFromColumnName(h[0]),r=A.getCoordsFromColumnName(h[1]);if(p[0]<=r[0]){h=p[0];var w=r[0]}else h=r[0],w=p[0];if(null===p[1]&&null==
227
- r[1]){var m=0;p=0;l.options&&l.options.data&&(p=l.options.data.length-1)}else p[1]<=r[1]?(m=p[1],p=r[1]):(m=r[1],p=p[1]);for(l=m;l<=p;l++)for(m=h;m<=w;m++)q.push(n+A.getColumnNameFromCoords(m,l));return q};b.getRangeFromTokens=function(h){h=h.filter(function(q){return q!=_$_5e1e[246]});for(var l=_$_5e1e[3],n=0;n<h.length;n++)0<=h[n].indexOf(_$_5e1e[27])&&(l=h[n].split(_$_5e1e[27]),h[n]=l[1],l=l[0]);l&&(l+=_$_5e1e[27]);h.sort(function(q,p){q=A.getCoordsFromColumnName(q);p=A.getCoordsFromColumnName(p);
228
- return q[1]>p[1]?1:q[1]<p[1]?-1:q[0]>p[0]?1:q[0]<p[0]?-1:0});return h.length?l+(h[0]+_$_5e1e[136]+h[h.length-1]):_$_5e1e[246]};b.getTokens=function(h,l){var n=d(h);h.replace(/!/g,_$_5e1e[27]);(h=n.match(/[A-Z_]+[A-Z0-9_\.]*/g))&&h.length&&(n=f.call(this.parent,h,n));(h=n.match(/('.*?'?|\w*\.)?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&h.length&&(n=e.call(this,h,n));h=n.match(/('.*?'?|\w*\.)?(\$?[A-Z]+\$?[0-9]+)(:\$?[A-Z]+\$?[0-9]+)?/g);for(n=0;n<h.length;n++)-1==h[n].indexOf(_$_5e1e[27])&&l&&
229
- (h[n]=l+_$_5e1e[27]+h[n]);return h};b.tokenIdentifier=k;b.tokenize=a;return b}(),aa=function(){var k=function(a){a.name=V;a.value=K;a.getValue=k[_$_5e1e[51]];a.getValueFromCoords=k.getFromCoords;a.setValue=k[_$_5e1e[11]];a.setValueFromCoords=k.setFromCoords;a.setCheckRadioValue=k.setCheckRadio;a.getProcessed=k.processed};k[_$_5e1e[51]]=function(a,c){var b=this;if(typeof a==_$_5e1e[84]){var d=a.x;a=a.y}else 0<=a.indexOf(_$_5e1e[27])&&(b=a.split(_$_5e1e[27]),a=b[1],b=D(b[0])),a=A.getCoordsFromColumnName(a),
230
- d=a[0],a=a[1];return k.getFromCoords.call(b,d,a,c)};k.getFromCoords=function(a,c,b){var d=null;null!=a&&null!=c&&(d=b?k.processed.call(this,a,c):K.call(this,a,c));return d};k[_$_5e1e[11]]=function(a,c,b){if(!N.call(this.parent,this))return!1;var d=null,e=null,f=null,g=[];b=b?!0:!1;var h=function(q,p){var r=null;typeof q==_$_5e1e[17]?(f=A.getCoordsFromColumnName(q),d=f[0],e=f[1]):q.tagName?(d=q.getAttribute(_$_5e1e[42]),e=q.getAttribute(_$_5e1e[43])):q.element&&q.element.tagName?(d=q.element.getAttribute(_$_5e1e[42]),
231
- e=q.element.getAttribute(_$_5e1e[43])):(d=q.x,e=q.y,void 0!==q.value&&(p=q.value),void 0!==q.style&&(r=q.style));q={x:d,y:e,value:p,force:b};null!==r&&(q.style=r);g.push(q)};if(a&&Array.isArray(a))for(var l=0;l<a.length;l++)h(a[l],c);else if(typeof a==_$_5e1e[84]&&void 0==a.x&&void 0==a.tagName)for(c=Object.keys(a),l=0;l<c.length;l++)h(c[l],a[c[l]]);else h(a,c);if(g.length){g=k.applyValues.call(this,g);this.parent.config.parseFormulas&&k.setValueChained.call(this,g);T.update.call(this,!0);this.refreshBorders();
232
- var n=this;setTimeout(function(){da.refresh.call(n)},250);if(g.length){Q.call(this.parent,{worksheet:n,action:_$_5e1e[79],records:g,selection:this.selectedCell});a=this.getPrimaryKey();if(!1!==a)for(l=0;l<g.length;l++)g[l].x===a&&g[l].value&&O.call(this,g[l]);G.call(this,_$_5e1e[79],{data:g});B.call(this.parent,_$_5e1e[249],this,g)}}};k.setFromCoords=function(a,c,b,d){var e=[];e.push({x:a,y:c,value:b});k[_$_5e1e[11]].call(this,e,null,d)};k.setCheckRadio=function(){for(var a=[],c=this.getSelected(),
233
- b=0;b<c.length;b++){var d=c[b].x,e=c[b].y;if(!this.options.columns[d].readOnly&&this.options.columns[d].type==_$_5e1e[250]){var f=K.call(this,d,e)?!1:!0;a.push({x:d,y:e,value:f})}}a.length&&k[_$_5e1e[11]].call(this,a)};k.applyValues=function(a){for(var c,b,d=this.options.style||{},e=[],f={},g=0;g<a.length;g++)if(c=a[g],b=this.updateCell(c.x,c.y,c.value,c.force),void 0!==b.value){if(void 0!==c.style){var h=A.getColumnNameFromCoords(c.x,c.y);b.style=f[h]=c.style;b.oldStyle=d&&d[h]?d[h]:_$_5e1e[193]}e.push(b)}0<
234
- Object.keys(f).length&&Ma.update.call(this,f);return e};k.processed=function(a,c,b){var d=K.call(this,a,c);if(null===d)return null;var e=Z[_$_5e1e[51]].call(this,a,c),f=e[1];f.type!=_$_5e1e[49]&&f.type!=_$_5e1e[251]&&f.type!=_$_5e1e[252]&&f.type!=_$_5e1e[253]&&f.type!=_$_5e1e[254]&&0!=f.process&&(!0===b||f.type!=_$_5e1e[255]&&f.type!=_$_5e1e[256]&&f.type!=_$_5e1e[257])&&(f.type==_$_5e1e[250]?d=e[0][_$_5e1e[51]](f,d,b):this.records[c][a].element?d=1==this.parent.config.stripHTML?this.records[c][a].element.innerText:
235
- this.records[c][a].element.innerHTML:((_$_5e1e[3]+d).substr(0,1)==_$_5e1e[12]&&(d=this.executeFormula(d,a,c,!1)),e[0]&&typeof e[0][_$_5e1e[51]]==_$_5e1e[85]&&(d=e[0][_$_5e1e[51]](f,d,b))));return d};k.setValueChained=function(a){for(var c,b=[],d,e=0;e<a.length;e++)c=a[e],d=A.getColumnNameFromCoords(c.x,c.y),b[d]=c.value;b=S.getChain.call(this,b);a=Object.keys(b);for(e=0;e<a.length;e++)0<=a[e].indexOf(_$_5e1e[27])?(c=a[e].split(_$_5e1e[27]),d=c[1],c=D(c[0])):(d=a[e],c=this),d=A.getCoordsFromColumnName(d),
236
- I.update.call(c,d[0],d[1],b[a[e]],!0)};return k}(),I=function(){var k=function(a){a.getCell=k[_$_5e1e[51]];a.getCellFromCoords=k[_$_5e1e[51]];a.updateCell=k.update;a.updateCells=k.updateAll;a.getSelected=k.selected;a.getCells=k.getCells;a.setCells=k.setCells;a.isAttached=k.attached};k.attached=function(a,c){return this.records[c]&&this.records[c][a]&&this.records[c][a].element&&this.records[c][a].element.parentNode&&this.records[c][a].element.parentNode.parentNode?!0:!1};k[_$_5e1e[51]]=function(a,
237
- c,b){typeof a==_$_5e1e[17]&&(c=A.getCoordsFromColumnName(a),a=c[0],c=c[1]);a=parseInt(a);c=parseInt(c);if(this.records[c]&&this.records[c][a]&&this.records[c][a].element)return this.records[c][a].element;var d=K.call(this,a,c);null===d&&(d=_$_5e1e[3]);return I.create.call(this,a,c,d,b)};k.getFromCoords=function(a,c,b){if(!a)return null;var d=[],e=a[0],f=a[1],g=a[2];a=a[3];for(b&&(b=this.results?A.invert(this.results):null);f<=a;f++)for(var h=e;h<=g;h++)if(!b||b[f])c?d.push(A.getColumnNameFromCoords(h,
238
- f)):d.push(this.records[f][h]);return d};k.selected=function(a,c){return k.getFromCoords.call(this,this.getHighlighted(),a,c)};k.getSelectedColumns=function(){var a=[],c=this.getHighlighted();if(c)for(var b=c[0];b<=c[2];b++)a.push(b);return a};k.updateAll=function(a){for(var c=this.getPrimaryKey(),b=[],d=0;d<a.length;d++)void 0!==a[d].id?(O.call(this,a[d]),b.push({id:a[d].id,y:a[d].y}),!1!==c&&k.update.call(this,c,a[d].y,a[d].id,!0)):b.push(k.update.call(this,a[d].x,a[d].y,a[d].value,a[d].force));
239
- G.call(this,_$_5e1e[106],[b])};k.update=function(a,c,b,d){var e=this.records[c];if(e=e&&e[a]?e[a]:null)if(e=e.element,!d&&e&&1==e.classList.contains(_$_5e1e[18]))d={x:a,y:c};else{d=B.call(this.parent,_$_5e1e[258],this,e,a,c,b);void 0!==d&&(b=d);d=Z[_$_5e1e[51]].call(this,a,c);typeof d[0].updateCell==_$_5e1e[85]&&(d=d[0].updateCell(e,b,a,c,this,d[1]),void 0!==d&&(b=d));d={x:a,y:c};var f=K.call(this,a,c);f!==b&&(b=K.call(this,a,c,b),d.oldValue=f,d.value=b,e&&k.applyOverflow.call(this,e,a,c),B.call(this.parent,
240
- _$_5e1e[259],this,e,a,c,d.value,d.oldValue))}else return!1;return d};k.create=function(a,c,b,d){var e=document.createElement(_$_5e1e[147]);e.setAttribute(_$_5e1e[42],a);e.setAttribute(_$_5e1e[43],c);var f=Z[_$_5e1e[51]].call(this,a,c);f[0]&&typeof f[0].createCell==_$_5e1e[85]&&(f=f[0].createCell(e,b,a,c,this,f[1]),void 0!==f&&(b=f));K.call(this,a,c,b);this.records[c][a]||ka.cell.call(this,a,c,b);this.records[c][a].element=e;!b&&this.records[c][a].v&&(e.innerText=this.records[c][a].v);k.applyProperties.call(this,
241
- e,a,c,d);k.applyOverflow.call(this,e,a,c);B.call(this.parent,_$_5e1e[260],this,e,a,c,b);return e};k.getAttributes=function(a,c,b){b[a]||(b[a]={});a==_$_5e1e[261]?b[a][c]=this.getValue(c):a==_$_5e1e[262]?this.merged.cells&&(c=this.merged.cells[c])&&(b[a][c]=this.options.mergeCells[c]):this.options[a]&&this.options[a][c]&&(b[a][c]=this.options[a][c])};k.setAttributes=function(a){a&&a.style&&this.setStyle(a.style);a&&a.comments&&this.setComments(a.comments);a&&a.meta&&this.setMeta(a.meta);a&&a.cells&&
242
- this.setCells(a.cells);a&&a.mergeCells&&this.setMerge(a.mergeCells);a&&a.values&&k.batch.call(this,a.values);a&&a.formulas&&k.batch.call(this,a.formulas,!0)};k.applyProperties=function(a,c,b,d){if(!d){d=A.getColumnNameFromCoords(c,b);var e=this.options.style,f=this.options.comments,g=this.options.cells,h=this.options.rows;if(e&&e[d]){var l=(l=a.getAttribute(_$_5e1e[98]))?l+(_$_5e1e[263]+e[d]):e[d];a.setAttribute(_$_5e1e[98],l)}f&&f[d]&&a.setAttribute(_$_5e1e[264],f[d]);g&&g[d]&&(1==g[d].readOnly&&
243
- a.classList.add(_$_5e1e[18]),!1===g[d].locked&&!0===this.options.selectUnLockedCells&&a.classList.add(_$_5e1e[265]));h&&h[b]&&1==h[b].readOnly&&a.classList.add(_$_5e1e[18])}f=this.options.columns[c];a.style.textAlign||(a.style.textAlign=f.align?f.align:this.options.defaultColAlign);!1===this.records[b][c].readonly||1!=this.records[b][c].readonly&&1!=f.readOnly&&1!=f.readonly||a.classList.add(_$_5e1e[18])};k.applyOverflow=function(a,c,b){1==this.options.textOverflow&&0<c&&(c==this.options.columns.length-
244
- 1&&(a.style.overflow=_$_5e1e[49]),this.records[b][c-1]&&this.records[b][c-1].element&&(this.records[b][c-1].element.style.overflow=!a.innerText&&this.headers[c-1]&&this.headers[c-1].offsetWidth?_$_5e1e[3]:_$_5e1e[49]))};k.batch=function(a,c){var b=[],d=Object.keys(a);if(d.length)for(var e=0;e<d.length;e++){if(0<=d[e].indexOf(_$_5e1e[27])){var f=d[e].split(_$_5e1e[27]);var g=D(f[0]);var h=f[1];f=f[0]}else g=this,h=d[e],f=this.getWorksheetName();h=A.getCoordsFromColumnName(h);h=g.updateCell(h[0],h[1],
245
- a[d[e]],!0);b[f]||(b[f]=[]);b[f].push(h)}if(1==c&&(d=Object.keys(b),d.length))for(e=0;e<d.length;e++)g=D(d[e]),G.call(g,_$_5e1e[107],b[d[e]])};k.getCells=function(a){return a?this.options.cells[a]:this.options.cells};k.setCells=function(a,c){if(!N.call(this.parent,this))return!1;if(typeof a==_$_5e1e[17])this.options.cells[a]=c;else{c=Object.keys(a);for(var b=0;b<c.length;b++)this.options.cells[c[b]]=a[c[b]]}};return k}(),wa=function(){var k=function(c,b){Array.isArray(b)||(b=[b]);for(var d,e=c?_$_5e1e[3]:
246
- _$_5e1e[40],f=Object.keys(b),g=0;g<f.length;g++)if(d=this.rows[b[f[g]]])d.element&&(d.element.style.display=e),d.visible=c;this.resetBorders();C.refresh.call(this)},a=function(c){c.getRow=a[_$_5e1e[51]];c.moveRow=a.move;c.insertRow=a.add;c.deleteRow=a.del;c.getSelectedRows=a.selected;c.showRow=k.bind(c,!0);c.hideRow=k.bind(c,!1)};a[_$_5e1e[51]]=function(c){return this.rows[c]};a.attached=function(c){return this.rows[c]&&this.rows[c].element&&this.rows[c].element.parentNode?!0:!1};a.selected=function(c){var b=
247
- [],d=this.getHighlighted();if(d)for(var e=d[1];e<=d[3];e++)c?b.push(e):b.push(this.rows[e].element);return b};a.create=function(c,b){if(this.rows[c]&&this.rows[c].element)return this.rows[c].element;this.rows[c]||ka.row.call(this,c);var d=document.createElement(_$_5e1e[145]);d.setAttribute(_$_5e1e[43],c);this.rows[c].element=d;var e=null;this.options.rows[c]&&!b&&(this.options.rows[c].style&&d.setAttribute(_$_5e1e[98],this.options.rows[c].style),this.options.rows[c].height&&(d.style.height=parseInt(this.options.rows[c].height)+
248
- _$_5e1e[44]),this.options.rows[c].title&&(e=this.options.rows[c].title),0==this.options.rows[c].visible&&(this.rows[c].visible=!1),this.options.rows[c].id&&(this.rows[c].id=this.options.rows[c].id));B.call(this.parent,_$_5e1e[266],this,c,d);0==this.rows[c].visible&&(d.style.display=_$_5e1e[40]);e||(e=parseInt(c+1));b=document.createElement(_$_5e1e[147]);b.innerHTML=e;b.setAttribute(_$_5e1e[43],c);b.className=_$_5e1e[267];d.appendChild(b);return d};a.move=function(c,b){if(!N.call(this.parent,this))return!1;
249
- c=parseInt(c);b=parseInt(b);if(!this.rows[b]||!this.rows[c])return console.error(_$_5e1e[268]),!1;if(0<Object.keys(this.getMerge()).length){var d=null;this.merged.rows[c]?d=!0:this.merged.rows[b]&&(c>b?this.merged.rows[b-1]&&(d=!0):this.merged.rows[b+1]&&(d=!0));d&&this.destroyMerged()}this.resetBorders();0<=Array.prototype.indexOf.call(this.tbody.children,this.rows[b].element)?(d=C.renderRow.call(this,c),c>b?this.tbody.insertBefore(d,this.rows[b].element):this.tbody.insertBefore(d,this.rows[b].element.nextSibling)):
250
- this.rows[c].element&&(this.tbody.removeChild(this.rows[c].element),C.refresh.call(this));this.rows.splice(b,0,this.rows.splice(c,1)[0]);this.records.splice(b,0,this.records.splice(c,1)[0]);this.options.data.splice(b,0,this.options.data.splice(c,1)[0]);0<this.options.pagination&&this.tbody.children.length!=this.options.pagination&&this.page(this.pageNumber);G.call(this,_$_5e1e[67],{f:c,t:b});T.references.call(this);T.update.call(this);Q.call(this.parent,{worksheet:this,action:_$_5e1e[67],oldValue:c,
251
- newValue:b});B.call(this.parent,_$_5e1e[269],this,c,b)};a.add=function(c,b,d,e){if(!N.call(this.parent,this))return!1;if(!this.options.allowInsertRow)return console.error(_$_5e1e[270]),!1;var f=[];if(0<c)var g=parseInt(c);else g=1,Array.isArray(c)&&!e&&(Array.isArray(c[0])?e=c:(e=[],e.push(c)));e=Ba.standardize(e);d=d?!0:!1;var h=this.options.data?this.options.data.length-1:0;if(void 0==b||b>h||0>b)b=h,d=!1;g||(g=1);if(!1===B.call(this.parent,_$_5e1e[271],this,b,g,d))return console.log(_$_5e1e[272]),
252
- !1;this.resetBorders();var l=d?b:b+1,n=0;c=[];for(var q=[],p=this.rows.splice(l),r=this.options.data?this.options.data.splice(l):[],w=this.records.splice(l),m=l;m<g+l;m++){var v=e[n]&&e[n].id?e[n].id:pa.next.call(this);ka.row.call(this,m,v);var u=this.dataType?{}:[];for(var x=0;x<this.options.columns.length;x++){var y=V.call(this,x);u[y]=_$_5e1e[3];e&&e[n]&&e[n].data&&(typeof e[n].data[y]!==_$_5e1e[13]?u[y]=e[n].data[y]:typeof e[n].data[x]!==_$_5e1e[13]&&(u[y]=e[n].data[x]));f.push({x,y:m,value:u[y],
253
- force:!0})}q.push({id:v,data:u});n++}this.rows=this.rows.concat(p);this.records=this.records.concat(w);this.options.data=this.options.data.concat(r);this.results&&0<this.results.length&&(h=this.results[this.results.length-1]);e=!1;p[0]?0<=Array.prototype.indexOf.call(this.tbody.children,p[0].element)&&(e=!0):this.rows[h]?this.rows[h].element&&0<=Array.prototype.indexOf.call(this.tbody.children,this.rows[h].element)&&(e=!0):e=!0;for(m=l;m<g+l;m++)this.results&&(this.rows[m].results=!0),1==e&&(h=p[0]?
254
- p[0].element:null,y=C.renderRow.call(this,m,null,null,!0),h?this.tbody.insertBefore(y,h):this.tbody.appendChild(y),0<this.options.pagination?Array.prototype.indexOf.call(this.tbody.children,y)>=this.options.pagination&&(e=!1):C.limited.call(this)&&(C.isVisible.call(this,y.children[1])||(e=!1))),c.push(this.records[m]);this.merged.rows[l]&&X.updateConfig.call(this,1,1,l-1,g);G.call(this,_$_5e1e[63],{numOfRows:g,rowNumber:b,insertBefore:d?1:0,data:q});l=this.tbody.firstChild.getAttribute(_$_5e1e[43]);
255
- this.results&&(l=this.results.indexOf(parseInt(l)),this.results=sa.refresh.call(this));T.references.call(this);f.length&&aa.applyValues.call(this,f);0<this.options.pagination?qa[_$_5e1e[11]].call(this,this.pageNumber):(this.results&&(l=this.results[l]),this.tbody.textContent=_$_5e1e[3],C[_$_5e1e[46]].call(this,l));T.update.call(this);P.call(this);da.refresh.call(this);Q.call(this.parent,{worksheet:this,action:_$_5e1e[63],rowNumber:b,numOfRows:g,insertBefore:d,data:q});B.call(this.parent,_$_5e1e[273],
256
- this,b,g,c,d)};a.del=function(c,b){if(!N.call(this.parent,this))return!1;if(!this.options.allowDeleteRow)return console.error(_$_5e1e[274]),!1;var d=null,e={},f=[],g=0;void 0==c&&(b=this.getSelectedRows(),b[0]?(c=parseInt(b[0].getAttribute(_$_5e1e[43])),b=b.length):(c=this.options.data.length-1,b=1));d=this.options.data.length-1;if(void 0==c||c>d||0>c)c=d;b||(b=1);c+b>=this.options.data.length&&(b=this.options.data.length-c,b>=this.options.data.length&&(b=this.options.data.length,this.resetSelection()));
257
- if(!1===B.call(this.parent,_$_5e1e[275],this,c,b))return console.log(_$_5e1e[276]),!1;if(-1<parseInt(c)&&0<parseInt(b)){this.resetBorders();for(var h=c;h<c+b;h++)for(var l=0;l<this.options.columns.length;l++)d=A.getColumnNameFromCoords(l,h),I.getAttributes.call(this,_$_5e1e[277],d,e),I.getAttributes.call(this,_$_5e1e[98],d,e),I.getAttributes.call(this,_$_5e1e[278],d,e),I.getAttributes.call(this,_$_5e1e[279],d,e),I.getAttributes.call(this,_$_5e1e[262],d,e),I.getAttributes.call(this,_$_5e1e[261],d,
258
- e),f[d]=!0;if(d=S.getChain.call(this,e.values))e.formulas=d;for(h=c;h<c+b;h++)0<=Array.prototype.indexOf.call(this.tbody.children,this.rows[h].element)&&(this.rows[h].element.parentNode.removeChild(this.rows[h].element),g++);d=[];for(h=c;h<c+b;h++)d.push({id:this.getRowId(h),row:h,data:this.getRowData(h)});this.rows.splice(c,b);h=this.records.splice(c,b);this.options.data.splice(c,b);X.updateConfig.call(this,1,0,c,b);G.call(this,_$_5e1e[64],{rowNumber:c,numOfRows:b,data:d});T.references.call(this,
259
- f);this.results&&(this.results=sa.refresh.call(this));if(0<this.options.pagination)this.page(this.pageNumber,function(){if(0==this.tbody.children.length){var n=this.whichPage(this.options.data.length-1);this.page(n)}});else if(C.limited.call(this)&&0<g)if(0==this.tbody.children.length)this[_$_5e1e[46]](c);else C.refresh.call(this);T.update.call(this,!0);this.resetBorders();Q.call(this.parent,{worksheet:this,action:_$_5e1e[64],rowNumber:c,numOfRows:b,insertBefore:1,data:d,attributes:e});B.call(this.parent,
260
- _$_5e1e[280],this,c,b,h,d,e)}};return a}(),Da=function(){var k=function(c,b){Array.isArray(b)||(b=[b]);for(var d,e,f=Object.keys(b),g=0;g<f.length;g++)if(d=b[f[g]],e=this.options.columns[d])this.colgroup[d]&&(this.colgroup[d].style.width=c?parseInt(e.width||this.options.defaultColWidth)+_$_5e1e[44]:_$_5e1e[144]),e.visible=c;this.resetBorders();C.refresh.call(this)},a=function(c){c.getColumn=a[_$_5e1e[51]];c.getColumnIdByName=a.getByName;c.getPrimaryKey=a.getPrimaryKey;c.getSelectedColumns=a.selected;
261
- c.getOptions=a.getOptions;c.getColumnOptions=a.getOptions;c.moveColumn=a.move;c.insertColumn=a.add;c.deleteColumn=a.del;c.getProperties=a.properties;c.setProperties=a.properties;c.getProperty=a.properties;c.setProperty=a.properties;c.showColumn=k.bind(c,!0);c.hideColumn=k.bind(c,!1)};a[_$_5e1e[51]]=function(c){return this.options.columns[c]||!1};a.getByName=function(c){for(var b=this.options.columns,d=0;d<b.length;d++)if(b[d].name==c)return d;return!1};a.getPrimaryKey=function(){for(var c=0;c<this.options.columns.length;c++)if(1==
262
- this.options.columns[c].primaryKey)return c;return!1};a.getOptions=function(c,b){var d=this.options.columns[c];Object.keys(this.options.cells).length&&void 0!==b&&(c=A.getColumnNameFromCoords(c,b),this.options.cells[c]&&(d=this.options.cells[c]));if(!d)d={type:_$_5e1e[56]};else if(!d.type||typeof d.type==_$_5e1e[17]&&!t.editors[d.type])d.type=_$_5e1e[56];return d};a.selected=function(c){c=[];var b=this.getHighlighted();if(b)for(var d=b[0];d<=b[2];d++)c.push(d);return c};a.move=function(c,b){if(!N.call(this.parent,
263
- this))return!1;c=parseInt(c);b=parseInt(b);if(!this.options.columns[c])return console.error(_$_5e1e[281]),!1;if(!this.options.columns[b])return console.error(_$_5e1e[282]),!1;if(0<Object.keys(this.getMerge()).length){var d=null;this.merged.cols[c]?d=!0:this.merged.cols[b]&&(c>b?this.merged.cols[b-1]&&(d=!0):this.merged.cols[b+1]&&(d=!0));d&&this.destroyMerged()}this.resetBorders();d=this.options.freezeColumns;0<d&&(c<d||b<d)?ia.reset.call(this):d=null;if(this.headers[b]&&this.headers[b].parentNode){this.headers[c]||
264
- ya.create.call(this,c);var e=(c>b?this.headers[b]:this.headers[b].nextSibling)||null;this.headerContainer.insertBefore(this.headers[c],e);e=(c>b?this.colgroup[b]:this.colgroup[b].nextSibling)||null;this.colgroupContainer.insertBefore(this.colgroup[c],e);for(var f=0;f<this.tbody.children.length;f++){var g=this.tbody.children[f].getAttribute(_$_5e1e[43]);e=(c>b?this.records[g][b].element:this.records[g][b].element.nextSibling)||null;this.tbody.children[f].insertBefore(I[_$_5e1e[51]].call(this,c,g),
265
- e)}if(this.options.footers)for(f=0;f<this.tfoot.children.length;f++)e=(c>b?this.footers.content[f][b].element:this.footers.content[f][b].element.nextSibling)||null,this.tfoot.children[f].insertBefore(W.create.call(this,c,f),e)}else if(this.headers[c]&&this.headers[c].parentNode){this.headerContainer.removeChild(this.headers[c]);this.colgroupContainer.removeChild(this.colgroup[c]);for(f=0;f<this.tbody.children.length;f++)g=parseInt(this.tbody.children[f].getAttribute(_$_5e1e[43])),this.tbody.children[f].removeChild(this.records[g][c].element);
266
- if(this.options.footers)for(f=0;f<this.tfoot.children.length;f++)this.tfoot.children[f].removeChild(this.footers.content[f][c].element)}this.options.columns.splice(b,0,this.options.columns.splice(c,1)[0]);this.headers.splice(b,0,this.headers.splice(c,1)[0]);this.colgroup.splice(b,0,this.colgroup.splice(c,1)[0]);for(f=0;f<this.rows.length;f++)this.dataType||this.options.data[f].splice(b,0,this.options.data[f].splice(c,1)[0]),this.records[f].splice(b,0,this.records[f].splice(c,1)[0]);if(this.options.footers)for(f=
267
- 0;f<this.options.footers.length;f++)this.options.footers[f].splice(b,0,this.options.footers[f].splice(c,1)[0]),this.footers.content[f].splice(b,0,this.footers.content[f].splice(c,1)[0]);G.call(this,_$_5e1e[68],{f:c,t:b});T.references.call(this);T.update.call(this);0<d&&(c<=d||d<=d)&&ia[_$_5e1e[11]].call(this,d);Q.call(this.parent,{worksheet:this,action:_$_5e1e[68],oldValue:c,newValue:b});B.call(this.parent,_$_5e1e[283],this,c,b)};a.add=function(c,b,d,e,f,g){if(!N.call(this.parent,this))return!1;if(!this.options.allowInsertColumn)return console.error(_$_5e1e[284]),
268
- !1;var h=[];if(0<c)var l=parseInt(c);else if(l=1,Array.isArray(c)&&!f)if(Array.isArray(c[0]))f=c;else{f=[];for(var n=0;n<c.length;n++)f[n]=[c[n]]}f||(f=[]);d=d?!0:!1;c=this.options.columns.length-1;if(void 0==b||b>c||0>b)b=c,d=!1;l||(l=1);if(!1===B.call(this.parent,_$_5e1e[285],this,b,l,d))return console.log(_$_5e1e[286]),!1;da.reset.call(this);if(1==this.dataType)var q=parseInt((_$_5e1e[3]+Date.now()).substr(-8));e||(e=[]);for(n=0;n<l;n++)e[n]||(e[n]={type:_$_5e1e[56],source:[],options:[],width:this.options.defaultColWidth,
269
- align:this.options.defaultColAlign}),1==this.dataType&&typeof e[n].name==_$_5e1e[13]&&(e[n].name=_$_5e1e[287]+(q+n));var p=d?b:b+1;this.options.columns=A.injectArray(this.options.columns,p,e);q=function(u,x){for(var y=p;y<l+p;y++)ya.create.call(this,y),u?(this.headerContainer.insertBefore(this.headers[y],u),this.colgroupContainer.insertBefore(this.colgroup[y],x)):(this.headerContainer.appendChild(this.headers[y]),this.colgroupContainer.appendChild(this.colgroup[y]))};n=function(u,x){if(x)for(var y=
270
- p;y<l+p;y++)this.rows[u].element.insertBefore(I[_$_5e1e[51]].call(this,y,u),x);else for(y=p;y<l+p;y++)this.rows[u].element.appendChild(I[_$_5e1e[51]].call(this,y,u))};var r=this.headers.splice(p),w=this.colgroup.splice(p);r[0]?0<=Array.prototype.indexOf.call(this.headerContainer.children,r[0])&&q.call(this,r[0],w[0]):this.headers[c]&&0<=Array.prototype.indexOf.call(this.headerContainer.children,this.headers[c])&&q.call(this);this.headers=this.headers.concat(r);this.colgroup=this.colgroup.concat(w);
271
- W.adjust.call(this,p,l,1);la.adjust.call(this,b,l,1,g);g=0;w=r=q=null;for(var m=0;m<this.options.data.length;m++){this.dataType||(r=this.options.data[m].splice(p));w=this.records[m].splice(p);g=0;for(var v=p;v<l+p;v++)q=f[m]&&f[m][g]?f[m][g]:_$_5e1e[3],K.call(this,v,m,q),h.push({x:v,y:m,value:q}),ka.cell.call(this,v,m),g++;this.rows[m].element&&this.rows[m].element.parentNode&&(w[0]?0<=Array.prototype.indexOf.call(this.rows[m].element.children,w[0].element)&&n.call(this,m,w[0].element):this.records[m][c].element&&
272
- 0<=Array.prototype.indexOf.call(this.rows[m].element.children,this.records[m][c].element)&&n.call(this,m));this.dataType||(this.options.data[m]=this.options.data[m].concat(r));this.records[m]=this.records[m].concat(w)}this.merged.cols[p]&&X.updateConfig.call(this,0,1,p-1,l);G.call(this,_$_5e1e[65],{numOfColumns:l,columnNumber:b,insertBefore:d?1:0,properties:e,data:f});T.references.call(this);h.length&&aa.applyValues.call(this,h);T.update.call(this);this.refreshBorders();Q.call(this.parent,{worksheet:this,
273
- action:_$_5e1e[65],columnNumber:b,numOfColumns:l,insertBefore:d,properties:e,data:f});B.call(this.parent,_$_5e1e[288],this,b,l,[],d)};a.del=function(c,b){if(!N.call(this.parent,this))return!1;if(!this.options.allowDeleteColumn)return console.error(_$_5e1e[289]),!1;var d={},e=[],f=0;if(1<this.options.columns.length){void 0==c&&(b=this.getSelectedColumns(!0),b.length?(c=parseInt(b[0]),b=parseInt(b.length)):(c=this.options.columns.length-1,b=1));var g=this.options.columns.length-1;if(void 0==c||c>g||
274
- 0>c)c=g;b||(b=1);c+b>=this.options.columns.length&&(b=this.options.columns.length-c,b>=this.options.columns.length&&(b--,console.error(_$_5e1e[290])));if(!1===B.call(this.parent,_$_5e1e[291],this,c,b))return console.log(_$_5e1e[292]),!1;if(-1<parseInt(c)&&0<parseInt(b)){this.resetBorders();g=null;var h=[],l=[],n=[];var q=0;for(var p=c;p<c+b;p++)0<=Array.prototype.indexOf.call(this.headerContainer.children,this.headers[p])&&(this.colgroup[p].parentNode.removeChild(this.colgroup[p]),this.headers[p].parentNode.removeChild(this.headers[p]),
275
- f++),n[q]=this.options.columns[p],q++;for(var r=0;r<this.options.data.length;r++)for(p=c;p<c+b;p++)q=A.getColumnNameFromCoords(p,r),I.getAttributes.call(this,_$_5e1e[277],q,d),I.getAttributes.call(this,_$_5e1e[98],q,d),I.getAttributes.call(this,_$_5e1e[278],q,d),I.getAttributes.call(this,_$_5e1e[279],q,d),I.getAttributes.call(this,_$_5e1e[262],q,d),I.getAttributes.call(this,_$_5e1e[261],q,d),e[q]=!0,this.records[r][p].element&&0<=Array.prototype.indexOf.call(this.rows[r].element.children,this.records[r][p].element)&&
276
- this.records[r][p].element.parentNode.removeChild(this.records[r][p].element);if(p=S.getChain.call(this,d.values))d.formulas=p;this.options.columns.splice(c,b);this.headers.splice(c,b);this.colgroup.splice(c,b);for(r=0;r<this.options.data.length;r++)this.dataType||(l[r]=this.options.data[r].splice(c,b)),h[r]=this.records[r].splice(c,b);W.adjust.call(this,c,b,0);(p=la.adjust.call(this,c,b,0))&&(g={nested:p});X.updateConfig.call(this,0,0,c,b);G.call(this,_$_5e1e[66],{columnNumber:c,numOfColumns:b});
277
- T.references.call(this,e);0<f&&(1==this.thead.children.length?C[_$_5e1e[46]].call(this,null,c):C.refresh.call(this));T.update.call(this,!0);this.refreshBorders();Q.call(this.parent,{worksheet:this,action:_$_5e1e[66],columnNumber:c,numOfColumns:b,insertBefore:1,data:l,properties:n,attributes:d,extra:g});B.call(this.parent,_$_5e1e[293],this,c,b,h,n,d)}}};a.properties=function(c,b){if(this.options.columns[c]){if(b){if(!N.call(this.parent,this))return!1;b=typeof b==_$_5e1e[17]?{type:b}:b;b.type&&t.editors[b.type]||
278
- (b.type=_$_5e1e[56]);parseInt(b.width)||(b.width=this.options.defaultColWidth||100);this.edition&&this.closeEditor(this.edition,!1);var d=this.options.columns[c],e=t.editors[d.type],f=t.editors[b.type];if(e&&typeof e.destroyCell==_$_5e1e[85])for(var g=0;g<this.records.length;g++)this.records[g][c].element&&e.destroyCell(this.records[g][c].element);this.options.columns[c]=b;if(f&&typeof f.createCell==_$_5e1e[85])for(g=0;g<this.records.length;g++)this.records[g]&&this.records[g][c]&&this.records[g][c].element&&
279
- (I.applyProperties.call(this,this.records[g][c].element,c,g),f.createCell(this.records[g][c].element,K.call(this,c,g),c,g,this,b));b.width&&this.colgroup[c]&&this.colgroup[c].setAttribute(_$_5e1e[152],parseInt(b.width));b.title&&(this.headers[c]&&(this.headers[c].innerText=b.title,this.headers[c].setAttribute(_$_5e1e[166],b.title)),this.options.columns[c].title=b.title);b.tooltip&&(this.headers[c]&&(this.headers[c].title=b.tooltip),this.options.columns[c].tooltip=b.tooltip);this.refreshBorders();
280
- Q.call(this.parent,{worksheet:this,action:_$_5e1e[77],column:c,newValue:b,oldValue:d});G.call(this,_$_5e1e[77],{column:c,options:b});return!0}return this.options.columns[c]}console.error(_$_5e1e[294])};return a}(),Ma=function(){var k={},a={},c=function(d){if(typeof d==_$_5e1e[17]){var e=d;d=A.getCoordsFromColumnName(d);var f=d[0];d=d[1]}else f=d.x,d=d.y,e=A.getColumnNameFromCoords(f,d);if(this.records[d]&&this.records[d][f]&&this.records[d][f].element){a[e]=this.options.style[e];this.records[d][f].element.setAttribute(_$_5e1e[98],
281
- _$_5e1e[3]);var g=this.options.columns[f].align?this.options.columns[f].align:this.options.defaultColAlign;g&&(this.records[d][f].element.style.textAlign=g)}this.options.style&&this.options.style[e]&&delete this.options.style[e]},b=function(d){d.getStyle=b[_$_5e1e[51]];d.setStyle=b[_$_5e1e[11]];d.resetStyle=b.reset};b[_$_5e1e[51]]=function(d){var e=this.options.style;if(!e)return!1;if(d){if(typeof d==_$_5e1e[17])return e[d];var f=[],g=Object.keys(d);if(0<g.length)for(var h=0;h<g.length;h++){if(typeof d[h]==
282
- _$_5e1e[17])var l=e&&e[d[h]]?e[d[h]]:_$_5e1e[3];else l=A.getColumnNameFromCoords(d[h].x,d[h].y),l=e&&e[l]?e[l]:_$_5e1e[3];f.push(l)}return f}return this.options.style};b[_$_5e1e[11]]=function(d,e,f,g){if(!N.call(this.parent,this))return!1;this.options.style||(this.options.style={});var h=this.options.style,l=null,n=[],q=[],p={};q=function(m,v,u){if(!p[m]&&(h[m]?n=h[m].split(_$_5e1e[263]):(h[m]=_$_5e1e[3],n=[]),p[m]={},n.length))for(var x=0;x<n.length;x++)n[x]&&n[x].trim()&&(l=n[x].split(_$_5e1e[136]),
283
- p[m][l[0].trim()]=l[1].trim());a[m]||(a[m]=[]);k[m]||(k[m]=[]);p[m][v]||(p[m][v]=_$_5e1e[3]);a[m].push([v+_$_5e1e[136]+p[m][v]]);p[m][v]=p[m][v]&&p[m][v]==u&&!g?_$_5e1e[3]:u;k[m].push([v+_$_5e1e[136]+p[m][v]]);u=A.getCoordsFromColumnName(m);this.records[u[1]]&&this.records[u[1]][u[0]]&&this.records[u[1]][u[0]].element&&(this.records[u[1]][u[0]].element.style[v]=p[m][v]);p[m][v]||delete p[m][v]};k={};a={};if(e)if(typeof d==_$_5e1e[17])q.call(this,d,e,f);else{if(d&&d.length)for(var r=0;r<d.length;r++){var w=
284
- A.getColumnNameFromCoords(d[r].x,d[r].y);q.call(this,w,e,f)}}else for(f=Object.keys(d),r=0;r<f.length;r++)if(w=d[f[r]])for(typeof w==_$_5e1e[17]&&(w=w.split(_$_5e1e[263])),e=0;e<w.length;e++)w[e]&&(typeof w[e]==_$_5e1e[17]&&(w[e]=w[e].split(_$_5e1e[136])),w[e][0].trim()&&q.call(this,f[r],w[e][0].trim(),w[e][1].trim()));n={};q=Object.keys(p);if(q.length){for(r=0;r<q.length;r++){n[q[r]]||(n[q[r]]=[]);d=Object.keys(p[q[r]]);for(e=0;e<d.length;e++)n[q[r]].push(d[e]+_$_5e1e[114]+p[q[r]][d[e]]);this.options.style[q[r]]=
285
- n[q[r]].join(_$_5e1e[295])}q=Object.keys(k);for(r=0;r<q.length;r++)k[q[r]]=k[q[r]].join(_$_5e1e[263]);q=Object.keys(a);for(r=0;r<q.length;r++)a[q[r]]=a[q[r]].join(_$_5e1e[263]);this.refreshBorders();Q.call(this.parent,{worksheet:this,action:_$_5e1e[71],oldValue:a,newValue:k});G.call(this,_$_5e1e[71],[k]);B.call(this.parent,_$_5e1e[296],this,k,a)}};b.reset=function(d){if(!N.call(this.parent,this))return!1;if(d){a={};if(Array.isArray(d))for(var e=0;e<d.length;e++)c.call(this,d[e]);else c.call(this,
286
- d);this.refreshBorders();Q.call(this.parent,{worksheet:this,action:_$_5e1e[72],cells:d,oldValue:a});G.call(this,_$_5e1e[72],[d]);B.call(this.parent,_$_5e1e[298],this,d)}else console.error(_$_5e1e[297])};b.update=function(d){k={};a={};for(var e=Object.keys(d),f=0;f<e.length;f++){a[e[f]]=this.options.style[e[f]]||_$_5e1e[3];k[e[f]]=this.options.style[e[f]]=d[e[f]];var g=A.getCoordsFromColumnName(e[f]),h=g[0];g=g[1];this.records[g]&&this.records[g][h]&&this.records[g][h].element&&(this.records[g][h].element.setAttribute(_$_5e1e[98],
287
- d[e[f]]),this.records[g][h].element.style.textAlign||(this.records[g][h].element.style.textAlign=this.options.columns[h].align||this.options.defaultColAlign||_$_5e1e[53]))}G.call(this,_$_5e1e[72],[e]);G.call(this,_$_5e1e[71],[k]);B.call(this.parent,_$_5e1e[296],this,k,a)};return b}(),Sa=function(){var k=function(a){a.getComments=k[_$_5e1e[51]];a.setComments=k[_$_5e1e[11]]};k[_$_5e1e[51]]=function(a){return a&&typeof a==_$_5e1e[17]?this.options.comments&&this.options.comments[a]?this.options.comments[a]:
288
- !1:this.options.comments};k[_$_5e1e[11]]=function(a,c){if(!N.call(this.parent,this))return!1;if(typeof a==_$_5e1e[17]){var b={};b[a]=c}else b=a;if(c=B.call(this.parent,_$_5e1e[299],this,b))b=c;else if(!1===c)return!1;this.options.comments||(this.options.comments={});a={};var d=Object.keys(b);if(d.length){for(var e=0;e<d.length;e++){var f=A.getCoordsFromColumnName(d[e]);this.records[f[1]]&&this.records[f[1]][f[0]]&&(a[d[e]]=this.options.comments[d[e]]||_$_5e1e[3],(c=b[d[e]])?this.options.comments[d[e]]=
289
- c:delete this.options.comments[d[e]],this.records[f[1]][f[0]].element&&(c?this.records[f[1]][f[0]].element.setAttribute(_$_5e1e[264],c):this.records[f[1]][f[0]].element.removeAttribute(_$_5e1e[264])))}Q.call(this.parent,{worksheet:this,action:_$_5e1e[76],newValue:b,oldValue:a});G.call(this,_$_5e1e[76],[b]);B.call(this.parent,_$_5e1e[300],this,b,a)}};return k}(),Ta=function(){var k=function(a){a.getMeta=k[_$_5e1e[51]];a.setMeta=k[_$_5e1e[11]];a.resetMeta=k.reset};k[_$_5e1e[51]]=function(a,c){if(a){if(this.options.meta[a])return c?
290
- this.options.meta[a][c]:this.options.meta[a]}else return this.options.meta};k[_$_5e1e[11]]=function(a,c,b){if(!N.call(this.parent,this))return!1;this.options.meta||(this.options.meta={});if(typeof a==_$_5e1e[17]&&c){b||(b=_$_5e1e[3]);var d={};d[a]={};d[a][c]=b;a=d}c=Object.keys(a);if(c.length){b={};for(d=0;d<c.length;d++){this.options.meta[c[d]]||(this.options.meta[c[d]]={});b[c[d]]||(b[c[d]]={});for(var e=Object.keys(a[c[d]]),f=0;f<e.length;f++)this.options.meta[c[d]][e[f]]=a[c[d]][e[f]],b[c[d]][e[f]]=
291
- a[c[d]][e[f]]}Object.keys(b).length&&(G.call(this,_$_5e1e[301],[b]),B.call(this.parent,_$_5e1e[302],this,b))}};k.reset=function(){this.options.meta={};G.call(this,_$_5e1e[303],{});B.call(this.parent,_$_5e1e[304],this,{})};return k}(),Ua=function(){var k=function(a){a.orderBy=k.execute};k.handler=function(a,c){return function(b,d){b=b[1];d=d[1];return a?b===_$_5e1e[3]&&d!==_$_5e1e[3]?1:b!==_$_5e1e[3]&&d===_$_5e1e[3]?-1:b>d?-1:b<d?1:0:b===_$_5e1e[3]&&d!==_$_5e1e[3]?1:b!==_$_5e1e[3]&&d===_$_5e1e[3]?
292
- -1:b>d?1:b<d?-1:0}};k.execute=function(a,c,b){if(0<=a){c=null==c?this.headers[a].classList.contains(_$_5e1e[305])?1:0:c?1:0;for(var d,e,f=[],g=0;g<this.options.data.length;g++)d=Da.getOptions.call(this,a,g),e=this.records[g][a].v,e=d.type==_$_5e1e[251]||d.type==_$_5e1e[256]||d.type==_$_5e1e[257]||d.type==_$_5e1e[306]||d.type==_$_5e1e[14]||d.type==_$_5e1e[307]?Number(e):jSuites.isNumeric(e)?Number(e):e.toLowerCase(),f[g]=[g,e];g=typeof this.parent.config.sorting===_$_5e1e[85]?this.parent.config.sorting(c,
293
- a):k.handler(c,a);f.sort(g);d=b?!0:!1;if(!b)for(b=[],g=0;g<f.length;g++)b[g]=f[g][0];if(g=B.call(this.parent,_$_5e1e[308],this,a,c,b))b=g;else if(!1===g)return!1;if(d)this.destroyMerged();else if(0<Object.keys(this.getMerge()).length)if(confirm(z(_$_5e1e[309])))this.destroyMerged();else return!1;if(b.length<f.length)for(g=0;g<f.length;g++)-1==b.indexOf(f[g][0])&&b.push(f[g][0]);f=[];for(g=0;g<b.length;g++)f[b[g]]=g;Aa.call(this,!1);da.reset.call(this);G.call(this,_$_5e1e[78],{column:a,direction:c,
294
- order:b});k.update.call(this,b);k.arrow.call(this,a,c);da.refresh.call(this);Q.call(this.parent,{worksheet:this,action:_$_5e1e[78],column:a,newValue:b,oldValue:f,direction:c});B.call(this.parent,_$_5e1e[310],this,a,c,b);return!0}};k.update=function(a){for(var c=[],b=0;b<a.length;b++)c[b]=this.options.data[a[b]];for(b=0;b<a.length;b++)this.options.data[b]=c[b];c=[];for(b=0;b<a.length;b++)c[b]=this.records[a[b]];this.records=c;c=[];for(b=0;b<a.length;b++)c[b]=this.rows[a[b]];this.rows=c;T.references.call(this);
295
- this.searchInput&&this.searchInput.value?ma.update.call(this,null):Y.update.call(this)};k.arrow=function(a,c){for(var b=0;b<this.headers.length;b++)this.headers[b].classList.remove(_$_5e1e[311]),this.headers[b].classList.remove(_$_5e1e[305]);c?this.headers[a].classList.add(_$_5e1e[311]):this.headers[a].classList.add(_$_5e1e[305])};return k}(),qa=function(){var k=function(a){a.whichPage=k.whichPage;a.quantityOfPages=k.quantityOfPages;a.page=k[_$_5e1e[11]];a.updatePagination=k.update};k.build=function(){this.pageNumber=
296
- 0;var a=document.createElement(_$_5e1e[20]),c=document.createElement(_$_5e1e[20]);this.pagination=document.createElement(_$_5e1e[20]);this.pagination.classList.add(_$_5e1e[312]);this.pagination.appendChild(a);this.pagination.appendChild(c);this.options.pagination||(this.pagination.style.display=_$_5e1e[40]);this.element.appendChild(this.pagination)};k.pageUp=function(){0<this.pageNumber&&(this.pageNumber--,k[_$_5e1e[11]].call(this,this.pageNumber))};k.pageDown=function(){this.pageNumber<k.quantityOfPages.call(this)-
297
- 1&&(this.pageNumber++,k[_$_5e1e[11]].call(this,this.pageNumber))};k.whichPage=function(a){if(0<this.options.pagination)return this.rows[a]?(this.results&&(a=this.results.indexOf(parseInt(a))),Math.ceil((parseInt(a)+1)/parseInt(this.options.pagination))-1):null;console.log(_$_5e1e[313]);return!1};k.quantityOfPages=function(){if(0<this.options.pagination)return Math.ceil((this.results?this.results.length:this.rows.length)/parseInt(this.options.pagination));console.log(_$_5e1e[313]);return!1};k[_$_5e1e[11]]=
298
- function(a,c){var b=this.pageNumber,d=parseInt(this.options.pagination);if(d){if(null==a||-1==a)a=Math.ceil((this.results?this.results:this.rows).length/d)-1;if(!1===B.call(this.parent,_$_5e1e[315],this,a,b,d))return!1;this.pageNumber=a;C.resetY.call(this);W.refresh.call(this);typeof c==_$_5e1e[85]&&c.call(this);B.call(this.parent,_$_5e1e[316],this,a,b,d)}else console.error(_$_5e1e[314])};k.update=function(){this.pagination.children[0].innerHTML=_$_5e1e[3];this.pagination.children[1].innerHTML=_$_5e1e[3];
299
- if(this.options.pagination){var a=this.results?this.results.length:this.rows.length;if(a){a=Math.ceil(a/this.options.pagination);if(6>this.pageNumber)var c=1,b=10>a?a:10;else 5>a-this.pageNumber?(c=a-9,b=a,1>c&&(c=1)):(c=this.pageNumber-4,b=this.pageNumber+5);if(1<c){var d=document.createElement(_$_5e1e[20]);d.className=_$_5e1e[318];d.innerHTML=_$_5e1e[215];d.title=1;this.pagination.children[1].appendChild(d)}for(;c<=b;c++)d=document.createElement(_$_5e1e[20]),d.className=_$_5e1e[318],d.innerHTML=
300
- c,this.pagination.children[1].appendChild(d),this.pageNumber==c-1&&d.classList.add(_$_5e1e[319]);b<a&&(d=document.createElement(_$_5e1e[20]),d.className=_$_5e1e[318],d.innerHTML=_$_5e1e[216],d.title=a,this.pagination.children[1].appendChild(d));this.pagination.children[0].innerHTML=z(_$_5e1e[320],[this.pageNumber+1,a])}else this.pagination.children[0].innerHTML=z(_$_5e1e[317])}};return k}(),ia=function(){var k=function(a){a.setFreezeColumns=k[_$_5e1e[11]];a.resetFreezeColumns=k.reset};k.width=function(){if(this.options.freezeColumns){k.headers.call(this);
301
- for(var a=0;a<this.rows.length;a++)this.rows[a].element&&k.update.call(this,a)}};k.update=function(a){var c,b;if(b=this.options.freezeColumns){var d=ua.call(this)?50:0;if(this.rows[a].element)for(var e=0;e<b;e++){if(c=this.records[a][e].element)c.classList.add(_$_5e1e[50]),c.style.left=d+1+_$_5e1e[44];d+=this.options.columns[e].width}}};k.headers=function(){var a=ua.call(this)?50:0,c;if(c=this.options.freezeColumns)for(var b=0;b<c;b++){if(this.headers[b]){this.headers[b].classList.add(_$_5e1e[50]);
302
- this.headers[b].style.left=a+1+_$_5e1e[44];if(this.options.footers)for(var d=0;d<this.options.footers.length;d++)this.footers.content[d][b].element.classList.add(_$_5e1e[50]),this.footers.content[d][b].element.style.left=a+1+_$_5e1e[44];a+=this.options.columns[b].width}}else k.reset.call(this)};k[_$_5e1e[11]]=function(a){k.reset.call(this);this.options.freezeColumns=a;k.width.call(this);C.call(this)};k.reset=function(){C[_$_5e1e[46]].call(this,null,this.options.freezeColumns);for(var a,c=1;c<=this.options.freezeColumns;c++){if(a=
303
- this.thead.lastChild)a.children[c].classList.remove(_$_5e1e[50]),a.children[c].style.left=_$_5e1e[3];for(var b=0;b<this.rows.length;b++)if(a=this.rows[b].element)a.children[c].classList.remove(_$_5e1e[50]),a.children[c].style.left=_$_5e1e[3];if(this.options.footers)for(b=0;b<this.options.footers.length;b++)this.tfoot.children[b].children[c].classList.remove(_$_5e1e[50]),this.tfoot.children[b].children[c].style.left=_$_5e1e[3]}this.options.freezeColumns=0};k.getWidth=function(){var a=ua.call(this)?
304
- 50:0;if(0<this.options.freezeColumns)for(var c=0;c<=this.options.freezeColumns;c++)a=this.thead.lastChild.children[c]?a+this.thead.lastChild.children[c].offsetWidth:a+this.options.columns[c].width;return a};return k}(),T=function(){var k=function(b,d){if(this.options[b]){for(var e={},f=Object.keys(this.options[b]),g=0;g<f.length;g++)e[d&&void 0!=d[f[g]]?d[f[g]]:f[g]]=this.options[b][f[g]];this.options[b]=e}},a=function(){if(0<this.options.minSpareRows){for(var b=0,d=this.rows.length-1;0<=d;d--){for(var e=
305
- !1,f=0;f<this.options.columns.length;f++)K.call(this,f,d)&&(e=!0);if(e)break;else b++}0<this.options.minSpareRows-b&&this.insertRow(this.options.minSpareRows-b)}if(0<this.options.minSpareCols){b=0;for(f=this.options.columns.length-1;0<=f;f--){e=!1;for(d=0;d<this.rows.length;d++)K.call(this,f,d)&&(e=!0);if(e)break;else b++}0<this.options.minSpareCols-b&&this.insertColumn(this.options.minSpareCols-b)}},c=function(){};c.build=function(){var b=this;this.content=document.createElement(_$_5e1e[20]);this.content.classList.add(_$_5e1e[321]);
306
- this.content.addEventListener(_$_5e1e[322],function(f){if(C.limited.call(b)&&!b.options.pagination){var g=Math.abs(f.deltaX),h=Math.abs(f.deltaY);f.shiftKey||g>h?0>f.deltaX||0>f.deltaY?C.pageLeft.call(b,1,null,f):C.pageRight.call(b,1,null,f):0>f.deltaY?C.pageUp.call(b,1,null,f):C.pageDown.call(b,1,null,f)}});this.content.addEventListener(_$_5e1e[323],function(f){if(!b.edition)return f.preventDefault(),!1});this.table=document.createElement(_$_5e1e[324]);this.thead=document.createElement(_$_5e1e[325]);
307
- this.tbody=document.createElement(_$_5e1e[326]);this.tfoot=document.createElement(_$_5e1e[327]);this.headers=[];this.colgroup=[];this.colgroupContainer=document.createElement(_$_5e1e[328]);var d=document.createElement(_$_5e1e[169]);d.setAttribute(_$_5e1e[152],_$_5e1e[329]);this.colgroupContainer.appendChild(d);this.headerContainer=document.createElement(_$_5e1e[145]);d=document.createElement(_$_5e1e[147]);d.classList.add(_$_5e1e[330]);this.headerContainer.appendChild(d);this.thead.appendChild(this.headerContainer);
308
- this.table.classList.add(_$_5e1e[331]);this.table.setAttribute(_$_5e1e[332],_$_5e1e[97]);this.table.setAttribute(_$_5e1e[333],_$_5e1e[97]);this.table.setAttribute(_$_5e1e[334],_$_5e1e[335]);this.table.appendChild(this.colgroupContainer);this.table.appendChild(this.thead);this.table.appendChild(this.tbody);this.table.appendChild(this.tfoot);this.parent.config.wordWrap&&this.table.classList.add(_$_5e1e[336]);this.options.textOverflow||this.table.classList.add(_$_5e1e[337]);!1===this.options.selectLockedCells&&
309
- this.table.classList.add(_$_5e1e[338]);this.corner=document.createElement(_$_5e1e[20]);this.corner.className=_$_5e1e[339];this.corner.setAttribute(_$_5e1e[334],_$_5e1e[340]);this.corner.setAttribute(_$_5e1e[341],_$_5e1e[342]);0==this.options.selectionCopy&&(this.corner.style.display=_$_5e1e[40]);this.scrollX=P.build.call(b,_$_5e1e[45]);this.scrollY=P.build.call(b,_$_5e1e[343]);d=document.createElement(_$_5e1e[20]);d.appendChild(this.content);d.appendChild(this.scrollY);d.classList.add(_$_5e1e[344]);
310
- var e=document.createElement(_$_5e1e[20]);e.appendChild(d);e.appendChild(this.scrollX);e.classList.add(_$_5e1e[345]);this.content.appendChild(this.table);this.content.appendChild(this.corner);this.element.appendChild(e);1==this.options.tableOverflow&&(this.options.tableHeight||(this.options.tableHeight=300),this.options.tableWidth||(this.options.tableWidth=document.body.offsetWidth-8),this.content.style.maxHeight=parseInt(this.options.tableHeight)+_$_5e1e[44],this.content.style.maxWidth=parseInt(this.options.tableWidth)+
311
- _$_5e1e[44],1==this.options.tableOverflowResizable&&(this.content.style.resize=_$_5e1e[346]));this.options.freezeColumns>this.options.columns.length&&console.error(_$_5e1e[347]);ma.build.call(this);la.build.call(this);qa.build.call(this);Ba.build.call(this);X.build.call(this);W.build.call(this);C.call(this);Y.onload.call(this);a.call(this)};c.references=function(b){var d=[],e=[],f=null,g=null,h=null,l=null;for(f=0;f<this.options.columns.length;f++)if(g=this.headers[f])h=g.getAttribute(_$_5e1e[42]),
312
- h!=f&&(g.setAttribute(_$_5e1e[42],f),g.getAttribute(_$_5e1e[166])||(g.innerHTML=A.getColumnName(f)));for(var n=0;n<this.rows.length;n++)g=this.rows[n],l=g.y,l!=n&&(g.y=n,d[l]=n,g.element&&(g.element.setAttribute(_$_5e1e[43],n),g.element.children[0].setAttribute(_$_5e1e[43],n),f=this.options.rows&&this.options.rows[l]&&this.options.rows[l].title?this.options.rows[l].title:n+1,g.element.children[0].innerHTML=f));var q=function(r,w){g=this.records[w][r];h=g.x;l=g.y;h!=r&&(g.x=r,g.element&&g.element.setAttribute(_$_5e1e[42],
313
- r));l!=w&&(g.y=w,g.element&&g.element.setAttribute(_$_5e1e[43],w));if(h!=r||l!=w){var m=A.getColumnNameFromCoords(h,l);r=A.getColumnNameFromCoords(r,w);e[m]=r}};if(b){n=function(r,w){r&&r[w]&&delete r[w]};var p=Object.keys(b);for(f=0;f<p.length;f++)n(this,p[f]),n(this.options.meta,p[f]),n(this.options.cells,p[f]),n(this.options.style,p[f]),n(this.options.comments,p[f])}for(n=0;n<this.rows.length;n++)for(f=0;f<this.options.columns.length;f++)q.call(this,f,n);k.call(this,_$_5e1e[348],d);k.call(this,
314
- _$_5e1e[277],e);k.call(this,_$_5e1e[278],e);k.call(this,_$_5e1e[98],e);k.call(this,_$_5e1e[279],e);k.call(this,_$_5e1e[262],e);this.options.mergeCells&&X.build.call(this);S.updateAll.call(this,e,b);return e};c.update=function(b){b&&a.call(this);if(typeof this.parent.config.updateTable==_$_5e1e[85])for(var d=0;d<this.rows.length;d++)for(var e=0;e<this.options.columns.length;e++)b=this.records[d][e],this.parent.config.updateTable.call(this,this,b.element,e,d,K.call(this,e,d),b.r?b.r:b.v);P.call(this);
315
- W.refresh.call(this)};return c}(),ka=function(){var k={spreadsheet:function(a,c){var b={name:null,config:{},el:a,element:a,plugins:[],worksheets:[],history:[],historyIndex:-1,queue:[],ignoreEvents:!1,ignoreHistory:!1,ignorePersistence:!1};za.spreadsheet.call(b,c);b.config.license&&(t.license=b.config.license);a.spreadsheet=b;a.jspreadsheet=a.jexcel=b.worksheets;t.spreadsheet.push(b);b.name||(b.name=jSuites.guid());k.bind(b.config.root?b.config.root:document);var d=b.config.tabs;typeof d!==_$_5e1e[84]&&
316
- (d={allowCreate:d?!0:!1,hideHeaders:d?!1:!0,allowChangePosition:b.config.allowMoveWorksheet?!0:!1});d.maxWidth||(d.maxWidth=a.offsetWidth-50+_$_5e1e[44]);d.animation=void 0==d.animation?!0:d.animation;d.onbeforecreate=function(){b.createWorksheet();return!1};d.onclick=function(f,g,h,l,n){0<=h&&b.openWorksheet(h)};d.onchangeposition=function(f,g,h){b.updateWorksheet(g,h)};jSuites.tabs(a,d);a.classList.add(_$_5e1e[349]);1==c.fullscreen&&a.classList.add(_$_5e1e[15]);var e=document.createElement(_$_5e1e[20]);
317
- b.toolbar=document.createElement(_$_5e1e[20]);b.toolbar.className=_$_5e1e[350];e.appendChild(b.toolbar);b.filter=Y.build.call(b);e.appendChild(b.filter);b.helper=document.createElement(_$_5e1e[20]);b.helper.className=_$_5e1e[351];e.appendChild(b.helper);b.loading=document.createElement(_$_5e1e[20]);b.loading.classList.add(_$_5e1e[352]);e.appendChild(b.loading);e.appendChild(Z.build(b));e.appendChild(Na(b));b.textarea=document.createElement(_$_5e1e[353]);b.textarea.className=_$_5e1e[354];b.textarea.tabIndex=
318
- _$_5e1e[355];e.appendChild(b.textarea);d.position===_$_5e1e[356]?a.insertBefore(e,a.children[0]):a.insertBefore(e,a.children[1]);a.appendChild(Fa.call(b,t.license));b.createWorksheet=ea.createWorksheet;b.deleteWorksheet=ea.deleteWorksheet;b.renameWorksheet=ea.renameWorksheet;b.updateWorksheet=ea.updateWorksheet;b.openWorksheet=ea.openWorksheet;b.moveWorksheet=ea.moveWorksheet;b.getWorksheet=ea.getWorksheet;b.getWorksheetActive=ea.getWorksheetActive;b.getWorksheetInstance=ea.getWorksheetInstance;b.getConfig=
319
- function(){var f=b.config;f.worksheets=[];for(var g=0;g<b.worksheets.length;g++)f.worksheets.push(b.worksheets[g].getConfig());return f};b.fullscreen=Ga;b.progress=Ha;b.undo=Q.undo;b.redo=Q.redo;b.setToolbar=ca[_$_5e1e[11]];b.getToolbar=ca[_$_5e1e[51]];b.showToolbar=ca.show;b.hideToolbar=ca.hide;b.tools=e;1!==b.edition&&(a=Object.keys(b.config.definedNames))&&a.length&&(b.config.definedNames={},console.log(_$_5e1e[357]));c.plugins&&ja.call(b,c.plugins);b.setPlugins=function(f){ja.call(b,f)};a=Object.keys(t.extensions);
320
- if(a.length)for(d=0;d<a.length;d++)if(typeof t.extensions[a[d]].oninit==_$_5e1e[85])t.extensions[a[d]].oninit(b,c);return b},worksheet:function(a,c){var b={};a.worksheets.push(b);b.parent=a;za(b);Oa(b);va(b);da(b);Z(b);Ba(b);Qa(b);X(b);Ma(b);Ra(b);aa(b);S(b);I(b);wa(b);Da(b);Ta(b);Sa(b);ya(b);W(b);la(b);ma(b);Y(b);ca(b);pa(b);Va(b);Wa(b);qa(b);ea(b);ia(b);Pa(b);Ua(b);Ea(b);za.worksheet.call(b,c);!t.license&&b.options.license&&(t.license=b.options.license);a.element.jexcel=a.worksheets?a.worksheets:
321
- b;ja.execute.call(b.parent,_$_5e1e[358],[b]);b.onload=function(){this.options.worksheetName||(this.options.worksheetName=_$_5e1e[359]+ea.nextName());var d=this.options.worksheetName;D(d)&&console.log(_$_5e1e[360]+d+_$_5e1e[361]);D(d,b);this.element=a.element.tabs.appendElement(this.options.worksheetName,function(e,f){b.options.worksheetState===_$_5e1e[49]&&(f.style.display=_$_5e1e[40])});this.element.classList.add(_$_5e1e[362]);this.element.jexcel=this;T.build.call(this);ja.execute.call(this.parent,
322
- _$_5e1e[363],[this]);this.options.data&&500<this.options.data.length&&!C.limited.call(this)&&!this.options.pagination&&console.error(_$_5e1e[364])};return b},row:function(a,c){this.rows[a]||(this.rows[a]={element:null,y:a});c&&(this.rows[a].id=c,pa[_$_5e1e[11]].call(this,c));this.options.rows&&this.options.rows[a]&&this.options.rows[a].height&&(this.rows[a].height=this.options.rows[a].height);this.records[a]||(this.records[a]=[]);this.options.data[a]||(this.options.data[a]=this.dataType?{}:[]);for(c=
323
- 0;c<this.options.columns.length;c++)k.cell.call(this,c,a)},cell:function(a,c,b){typeof b==_$_5e1e[13]&&(b=K.call(this,a,c),null===b||void 0===b)&&(b=_$_5e1e[3],K.call(this,a,c,b));this.records[c][a]||(this.records[c][a]={element:null,x:a,y:c,v:b})},bind:function(a){for(var c=Object.keys(xa),b=0;b<c.length;b++)(c[b]==_$_5e1e[365]?window:a).addEventListener(c[b],xa[c[b]],c[b]==_$_5e1e[366]||c[b]==_$_5e1e[367]||c[b]==_$_5e1e[368]?{passive:!1}:{})},unbind:function(a){for(var c=Object.keys(xa),b=0;b<c.length;b++)(c[b]==
324
- _$_5e1e[365]?window:a).removeEventListener(c[b],xa[c[b]])}};return k}(),Va=function(){var k=function(a){a.getWidth=k[_$_5e1e[51]];a.setWidth=k[_$_5e1e[11]]};k[_$_5e1e[51]]=function(a){var c=this.options.columns;if(typeof a===_$_5e1e[13]){a=[];for(var b=0;b<c.length;b++)a.push(c[b].width)}else a=c[a].width;return a};k[_$_5e1e[11]]=function(a,c,b){if(!N.call(this.parent,this))return!1;if(c){if(Array.isArray(a)){b||(b=[]);for(var d=0;d<a.length;d++){b[d]||(b[d]=this.colgroup[a[d]].getAttribute(_$_5e1e[152]));
325
- var e=Array.isArray(c)&&c[d]?c[d]:c;this.colgroup[a[d]].setAttribute(_$_5e1e[152],e);this.options.columns[a[d]].width=e}}else b||(b=this.colgroup[a].getAttribute(_$_5e1e[152])),this.colgroup[a].setAttribute(_$_5e1e[152],c),this.options.columns[a].width=c;this.refreshBorders();Q.call(this.parent,{worksheet:this,action:_$_5e1e[73],column:a,oldValue:b,newValue:c});G.call(this,_$_5e1e[73],{column:a,width:c,oldWidth:b});B.call(this.parent,_$_5e1e[369],this,a,c,b)}C.refresh.call(this)};return k}(),Wa=function(){var k=
326
- function(c){c.getHeight=k[_$_5e1e[51]];c.setHeight=k[_$_5e1e[11]]};k[_$_5e1e[51]]=function(c){if(c)c=this.rows[c].element.style.height;else{c=[];for(var b=0;b<this.rows.length;b++){var d=this.rows[b].element.style.height;d&&(c[b]=d)}}return c};var a=function(c,b){b=parseInt(b);var d=this.rows[c].height?this.rows[c].height:this.rows[c].element.offsetHeight||this.options.defaultRowHeight;this.rows[c].element.style.height=b+_$_5e1e[44];this.options.rows[c]||(this.options.rows[c]={});this.options.rows[c].height=
327
- b+_$_5e1e[44];this.rows[c].height=b;return d};k[_$_5e1e[11]]=function(c,b,d){if(!N.call(this.parent,this))return!1;var e,f=typeof d==_$_5e1e[13]?!0:!1;if(b){if(Array.isArray(c))for(!0===f&&(d=[]),e=0;e<c.length;e++){var g=Array.isArray(b)&&b[e]?b[e]:b;a.call(this,c[e],g);1==f&&d.push(f)}else e=a.call(this,c,b),1==f&&(d=e);this.refreshBorders();Q.call(this.parent,{worksheet:this,action:_$_5e1e[74],row:c,oldValue:d,newValue:b});G.call(this,_$_5e1e[74],{row:c,height:b,oldHeight:d});B.call(this.parent,
328
- _$_5e1e[370],this,c,b,d)}C.refresh.call(this)};return k}(),Y=function(){var k=function(g){var h=e[g];g=b[e[g]];if(!g.element){g.element=document.createElement(_$_5e1e[371]);g.element.innerHTML=g.value;var l=document.createElement(_$_5e1e[220]);l.type=_$_5e1e[250];l.value=h;l.o=g;g.element.insertBefore(l,g.element.firstChild)}g.element.firstChild.checked=g.selected;return g.element},a=null,c=null,b=[],d=0,e=null,f=function(g){g.setFilter=f[_$_5e1e[11]];g.getFilter=f[_$_5e1e[51]];g.openFilter=f.open;
329
- g.closeFilter=f.close;g.resetFilters=f.reset;g.showFilter=f.show;g.hideFilter=f.hide};f.isVisible=function(){return c};f[_$_5e1e[11]]=function(g,h){var l=this.headers[g];g=this.options.columns[g];Array.isArray(h)&&0<h.length?(l&&l.classList.add(_$_5e1e[372]),g.filters=h):(l&&l.classList.remove(_$_5e1e[372]),g.filters=null);f.update.call(this)};f[_$_5e1e[51]]=function(g){if(g)return this.options.columns[g].filters||null;g={};for(var h=0;h<this.options.columns.length;h++)g[h]=this.options.columns[h].filters||
330
- null;return g};f.open=function(g){a=parseInt(g);if(this.headers[a].classList.contains(_$_5e1e[168])){c=!0;var h=this.parent.element.getBoundingClientRect(),l=this.headers[a].getBoundingClientRect();g=l.left-h.left;l=l.top-h.top+l.height;h=this.parent.filter;h.style.display=_$_5e1e[16];h.style.top=l+_$_5e1e[44];h.style.left=g+_$_5e1e[44];h.children[0].focus();g=h.children[1].selectAll;h.children[1].textContent=_$_5e1e[3];h.children[1].appendChild(g);this.options.columns[a].filters||(g.children[0].checked=
331
- !0);g=ma.execute.call(this,null,a);g=A.invert(g);h=[];for(l=0;l<this.rows.length;l++)if(g[l]){var n=_$_5e1e[3]+K.call(this,a,l),q=_$_5e1e[3]+aa.processed.call(this,a,l,!0);n.substr(0,1)==_$_5e1e[12]&&(n=q);h.push([n,q])}h.sort(function(p,r){return p[0]>r[0]?1:p[0]<r[0]?-1:0});b=[];for(l=0;l<h.length;l++)b[h[l][0]]={value:h[l][1],element:null};void 0!==b[_$_5e1e[3]]&&(delete b[_$_5e1e[3]],b[_$_5e1e[3]]={value:_$_5e1e[212]+z(_$_5e1e[374])+_$_5e1e[232],element:null});f.search.call(this,_$_5e1e[3])}else console.log(_$_5e1e[373])};
332
- f.close=function(g){if(g){g=this.parent.filter.children[1];if(1==g.selectAll.firstChild.checked&&e.length==Object.keys(b).length)g=null;else{g=1==g.currentSelection.firstChild.checked?this.options.columns[a].filters||[]:[];for(var h=0;h<e.length;h++)b[e[h]].selected&&g.push(e[h])}f[_$_5e1e[11]].call(this,a,g)}this.parent.filter.style.display=_$_5e1e[3];this.parent.filter.children[0].value=_$_5e1e[3];a=null;c=!1;b=null;d=0;e=null};f.reset=function(g){f.updateDOM.call(this,g,!1);sa.reset.call(this);
333
- f.update.call(this)};f.execute=function(g){for(var h=this.options.columns,l=[],n=0;n<this.options.data.length;n++){for(var q=!0,p=0;p<h.length;p++)if(h[p].filters&&g!==p){var r=_$_5e1e[3]+K.call(this,p,n),w=_$_5e1e[3]+this.getLabelFromCoords(p,n,!0);-1==h[p].filters.indexOf(r)&&-1==h[p].filters.indexOf(w)&&(q=!1)}q&&l.push(n)}return l};f.update=function(){sa.reset.call(this);this.resetSelection();this.resetBorders();var g=ma.execute.call(this,null);if(typeof this.parent.config.onbeforefilter==_$_5e1e[85]){var h=
334
- f[_$_5e1e[51]].call(this),l=B.call(this.parent,_$_5e1e[375],this,h,g);if(l)g=l;else if(!1===l)return!1}this.pageNumber=0;g&&g.length<this.rows.length&&sa[_$_5e1e[11]].call(this,g);C.resetY.call(this);W.refresh.call(this);B.call(this.parent,_$_5e1e[376],this,h,g)};f.show=function(g){f.updateDOM.call(this,g,!0)};f.hide=function(g){f.updateDOM.call(this,g,!1,!0);f.update.call(this)};f.search=function(g){for(var h=this.parent.filter.children[1];h.children[1];)h.removeChild(h.lastChild);h.currentSelection.firstChild.checked=
335
- !1;if(g){e=[];g=new RegExp(g,_$_5e1e[377]);for(var l=Object.keys(b),n=0;n<l.length;n++)(_$_5e1e[3]+l[n]).match(g)||(_$_5e1e[3]+b[l[n]]).match(g)?(e.push(l[n]),b[l[n]].selected=!0):b[l[n]].selected=!1;h.firstChild.checked=!0;this.options.columns[a].filters&&h.appendChild(h.currentSelection)}else{e=Object.keys(b);if(g=this.options.columns[a].filters)for(n=0;n<e.length;n++)b[e[n]].selected=!1,0<=g.indexOf(e[n])&&(b[e[n]].selected=!0);else for(n=0;n<e.length;n++)b[e[n]].selected=!0;h.firstChild.checked=
336
- g?!1:!0}for(n=d=0;n<e.length;n++)200>n&&(g=d++,h.appendChild(k(g)))};f.build=function(){var g=document.createElement(_$_5e1e[20]);g.className=_$_5e1e[378];g.onclick=function(q){q.target.tagName==_$_5e1e[379]&&q.target.o&&(q.target.o.selected=q.target.checked);q=!0;for(var p=1;p<this.children.length;p++)this.children[p].children[0].checked||(q=!1);this.children[0].children[0].checked=q};var h=document.createElement(_$_5e1e[220]);h.type=_$_5e1e[56];h.placeholder=z(_$_5e1e[380]);h.className=_$_5e1e[381];
337
- var l=document.createElement(_$_5e1e[220]);l.type=_$_5e1e[382];l.value=_$_5e1e[383];l.className=_$_5e1e[384];var n=document.createElement(_$_5e1e[20]);n.className=_$_5e1e[385];n.appendChild(h);n.appendChild(g);n.appendChild(l);g.currentSelection=document.createElement(_$_5e1e[371]);g.currentSelection.innerHTML=_$_5e1e[386]+z(_$_5e1e[387]);g.selectAll=document.createElement(_$_5e1e[371]);g.selectAll.innerHTML=_$_5e1e[388]+z(_$_5e1e[389])+_$_5e1e[232];g.selectAll.onclick=function(){for(var q=this.children[0].checked,
338
- p=1;p<this.parentNode.children.length;p++)this.parentNode.children[p].children[0].checked=q;if(1==q)for(p=0;p<e.length;p++)b[e[p]].selected=!0;else for(q=Object.keys(b),p=0;p<q.length;p++)b[q[p]].selected=!1};jSuites.lazyLoading(g,{loadDown:function(q){for(q=0;d<e.length-1&&10>q;){var p=d++;g.appendChild(k(p));q++}}});return n};f.updateDOM=function(g,h,l){var n=this.headers,q=function(p){1==h?n[p].classList.add(_$_5e1e[168]):(this.options.columns[p].filters=null,n[p].classList.remove(_$_5e1e[372]),
339
- 1==l&&n[p].classList.remove(_$_5e1e[168]))};if(g)q.call(this,g);else for(g=0;g<n.length;g++)q.call(this,g)};f.onload=function(){var g,h=!1;if(g=this.options.columns)for(var l=0;l<g.length;l++)Array.isArray(g[l].filters)&&0<g[l].filters.length&&this.headers[l]&&(this.headers[l].classList.add(_$_5e1e[372]),h=!0);1==h&&f.update.call(this)};return f}(),sa=function(){var k={};k[_$_5e1e[11]]=function(a){for(var c=0;c<a.length;c++)this.rows[a[c]].results=!0;this.results=a};k.reset=function(){for(var a=0;a<
340
- this.rows.length;a++)!0===this.rows[a].results&&delete this.rows[a].results;this.results=null};k.refresh=function(){for(var a=[],c=0;c<this.rows.length;c++)!0===this.rows[c].results&&a.push(c);return a};return k}(),ma=function(){var k=function(b){var d=document.createElement(_$_5e1e[20]);if(0<b.options.pagination&&b.options.paginationOptions&&0<b.options.paginationOptions.length){b.paginationDropdown=document.createElement(_$_5e1e[390]);b.paginationDropdown.classList.add(_$_5e1e[391]);b.paginationDropdown.onchange=
341
- function(){b.options.pagination=parseInt(this.value);b.page(0)};for(var e=0;e<b.options.paginationOptions.length;e++){var f=document.createElement(_$_5e1e[392]);f.value=b.options.paginationOptions[e];f.innerHTML=b.options.paginationOptions[e];b.paginationDropdown.appendChild(f)}b.paginationDropdown.value=b.options.pagination;d.appendChild(document.createTextNode(z(_$_5e1e[393])));d.appendChild(b.paginationDropdown);d.appendChild(document.createTextNode(z(_$_5e1e[394])))}return d},a=function(b,d){var e=
342
- this.merged.rows;if(e[d]){for(;0<d&&e[d-1];)d--;for(;e[d];)b.push(d++)}else b.push(d)},c=function(b){b.search=c.update;b.resetSearch=c.reset;b.updateSearch=c.refresh;b.showSearch=c.show;b.hideSearch=c.hide};c.execute=function(b,d){null===b?b=this.searchInput.value||_$_5e1e[3]:b!==this.searchInput.value&&(this.searchInput.value=b);this.pageNumber=0;var e=[],f=null;d=Y.execute.call(this,d);if(b)try{b=new RegExp(b,_$_5e1e[377]);for(var g=0;g<this.rows.length;g++){f=!1;if(!d||0<=d.indexOf(g))for(var h=
343
- 0;h<this.options.columns.length;h++){var l=_$_5e1e[3]+K.call(this,h,g),n=_$_5e1e[3]+this.getLabelFromCoords(h,g);if(l.match(b)||n.match(b))f=!0}1==f&&a.call(this,e,g)}}catch(q){}else e=d;if(e.length){for(g=0;g<this.rows.length;g++)!0===this.rows[g].results&&e.push(g);e.sort(function(q,p){return q-p})}return e};c.update=function(b){sa.reset.call(this);this.resetSelection();this.resetBorders();var d=c.execute.call(this,b);if(typeof this.parent.config.onbeforesearch==_$_5e1e[85]){var e=B.call(this.parent,
344
- _$_5e1e[396],this,b,d);if(e)d=e;else if(!1===e)return!1}this.pageNumber=0;d&&d.length<this.rows.length&&sa[_$_5e1e[11]].call(this,d);C.resetY.call(this);W.refresh.call(this);B.call(this.parent,_$_5e1e[397],this,b,d)};c.refresh=function(){C.resetY.call(this);W.refresh.call(this)};c.reset=function(){this.searchInput.value=_$_5e1e[3];sa.reset.call(this);C.resetY.call(this);W.refresh.call(this)};c.show=function(){this.options.search=!0;this.searchContainer.style.display=_$_5e1e[3]};c.hide=function(){this.options.search=
345
- !1;this.searchContainer.style.display=_$_5e1e[40]};c.build=function(){this.searchContainer=document.createElement(_$_5e1e[20]);this.searchContainer.classList.add(_$_5e1e[398]);this.searchContainer.appendChild(k(this));var b=this.searchContainer,d=b.appendChild,e=document.createElement(_$_5e1e[20]);e.innerHTML=z(_$_5e1e[380])+_$_5e1e[114];this.searchInput=document.createElement(_$_5e1e[220]);this.searchInput.classList.add(_$_5e1e[395]);e.appendChild(this.searchInput);d.call(b,e);0==this.options.search&&
346
- (this.searchContainer.style.display=_$_5e1e[40]);this.element.insertBefore(this.searchContainer,this.element.firstChild)};return c}(),Na=function(){var k=function(a){a.contextmenu=document.createElement(_$_5e1e[20]);a.contextmenu.className=_$_5e1e[399];jSuites.contextmenu(a.contextmenu,{onclick:function(c,b,d){c.close()}});return a.contextmenu};k.open=function(a,c){var b=a.target.getAttribute(_$_5e1e[42]),d=a.target.getAttribute(_$_5e1e[43]),e=k[_$_5e1e[51]](this,b,d,a,c[0],c[1],c[2]);if(typeof this.parent.config.contextMenu==
347
- _$_5e1e[85]){var f=this.parent.config.contextMenu(this,b,d,a,e,c[0],c[1],c[2]);if(f)e=f;else if(!1===f)return!1}a.preventDefault();f=ja.execute.call(this.parent,_$_5e1e[86],[this,b,d,a,e,c[0],c[1],c[2]]);e=f[4];this.parent.contextmenu.contextmenu.open(a,e)};k[_$_5e1e[51]]=function(a,c,b,d,e,f,g){var h=[],l=a.parent.config,n=-1!=navigator.userAgent.indexOf(_$_5e1e[400])?_$_5e1e[401]:_$_5e1e[402];e==_$_5e1e[403]&&(1==l.allowRenameWorksheet&&h.push({title:z(_$_5e1e[404]),onclick:function(){var p=prompt(z(_$_5e1e[404]),
348
- d.target.innerText);p&&a.parent.renameWorksheet(f,p)}}),1==l.allowDeleteWorksheet&&h.push({title:z(_$_5e1e[405]),onclick:function(){confirm(z(_$_5e1e[406]),d.target.innerText)&&a.parent.deleteWorksheet(f)}}),h.push({type:_$_5e1e[407]}));e==_$_5e1e[408]&&(h.push({title:z(_$_5e1e[409]),onclick:function(){var p=prompt(z(_$_5e1e[409]),d.target.innerText);a.setNestedCell(f,g,{title:p})}}),h.push({type:_$_5e1e[407]}));if(e==_$_5e1e[410]||e==_$_5e1e[411]||e==_$_5e1e[412]||e==_$_5e1e[408])h.push({title:z(_$_5e1e[413]),
349
- icon:_$_5e1e[414],shortcut:n+_$_5e1e[415],onclick:function(){a.cut()}}),h.push({title:z(_$_5e1e[416]),icon:_$_5e1e[417],shortcut:n+_$_5e1e[418],onclick:function(){a.copy()}}),navigator&&navigator.clipboard&&navigator.clipboard.readText&&h.push({title:z(_$_5e1e[419]),icon:_$_5e1e[420],shortcut:n+_$_5e1e[421],onclick:function(){a.selectedCell&&navigator.clipboard.readText().then(function(p){p&&a.paste(a.selectedCell[0],a.selectedCell[1],p)})}}),h.push({type:_$_5e1e[407]});e==_$_5e1e[410]&&(1==a.options.allowInsertColumn&&
350
- h.push({title:z(_$_5e1e[422]),onclick:function(){a.insertColumn(1,parseInt(f),1)}}),1==a.options.allowInsertColumn&&h.push({title:z(_$_5e1e[423]),onclick:function(){a.insertColumn(1,parseInt(f),0)}}),1==a.options.allowDeleteColumn&&h.push({title:z(_$_5e1e[424]),onclick:function(){a.deleteColumn(a.getSelectedColumns().length?void 0:parseInt(c))}}),1==a.options.allowRenameColumn&&h.push({title:z(_$_5e1e[425]),onclick:function(){a.setHeader(f)}}),a.options.data.length||(h.push({type:_$_5e1e[407]}),h.push({title:z(_$_5e1e[426]),
351
- onclick:function(){a.insertRow(0)}})),1==a.options.columnSorting&&(h.push({type:_$_5e1e[407]}),h.push({title:z(_$_5e1e[427]),onclick:function(){a.orderBy(f,0)}}),h.push({title:z(_$_5e1e[428]),onclick:function(){a.orderBy(f,1)}}),h.push({type:_$_5e1e[407]})));if(e==_$_5e1e[412]||e==_$_5e1e[411])1==a.options.allowInsertRow&&(h.push({title:z(_$_5e1e[429]),onclick:function(){a.insertRow(1,parseInt(b),1)}}),h.push({title:z(_$_5e1e[430]),onclick:function(){a.insertRow(1,parseInt(b))}})),1==a.options.allowDeleteRow&&
352
- h.push({title:z(_$_5e1e[431]),onclick:function(){a.deleteRow(a.getSelectedRows().length?void 0:parseInt(b))}}),h.push({type:_$_5e1e[407]});if(e==_$_5e1e[412]&&1==a.options.allowComments){var q=a.records[g][f].element.getAttribute(_$_5e1e[264])||_$_5e1e[3];h.push({title:q?z(_$_5e1e[432]):z(_$_5e1e[433]),icon:_$_5e1e[434],onclick:function(){var p=A.getColumnNameFromCoords(f,g),r=prompt(z(_$_5e1e[435]),q);r&&a.setComments(p,r)}});q&&h.push({title:z(_$_5e1e[436]),onclick:function(){var p=A.getColumnNameFromCoords(f,
353
- g);a.setComments(p,_$_5e1e[3])}});h.push({type:_$_5e1e[407]})}l.allowExport&&h.push({title:z(_$_5e1e[437]),icon:_$_5e1e[438],shortcut:n+_$_5e1e[439],onclick:function(){a.download()}});l.about&&h.push({title:z(_$_5e1e[440]),icon:_$_5e1e[441],onclick:function(){!0===l.about?alert(F().print()):alert(l.about)}});return h};return k}(),ca=function(){var k=function(a){a.showToolbar=function(){k.show.call(a.parent)};a.hideToolbar=function(){k.hide.call(a.parent)};a.refreshToolbar=function(){k.update.call(a.parent,
354
- a)}};k[_$_5e1e[11]]=function(a){this.toolbar.innerHTML=_$_5e1e[3];this.config.toolbar=k[_$_5e1e[51]].call(this,a);k.show.call(this)};k[_$_5e1e[51]]=function(a){a||(a=this.config.toolbar);a?Array.isArray(a)?a={items:a}:typeof a===_$_5e1e[85]&&(a=a({items:k.getDefault()})):a={};typeof a!==_$_5e1e[84]&&(a={});a.items||(a.items=k.getDefault());typeof a.responsive==_$_5e1e[13]&&(a.responsive=!0,a.bottom=!1,a.maxWidth=this.element.offsetWidth);return a};k.show=function(){this.toolbar.innerHTML||k.build.call(this);
355
- this.toolbar.style.display=_$_5e1e[3];this.element.classList.add(_$_5e1e[442])};k.hide=function(){this.toolbar.style.display=_$_5e1e[40];this.element.classList.remove(_$_5e1e[442])};k.update=function(a,c){if(c=this.toolbarInstance)if(c.update(a),c.options.responsive){var b=parseInt(a.content.style.maxWidth);if(!b||this.config.fullscreen)b=a.element.offsetWidth;c.options.maxWidth=b;c.refresh()}};k.build=function(){for(var a=k[_$_5e1e[51]].call(this),c=0;c<a.items.length;c++)if(a.items[c].type==_$_5e1e[390]){if(!a.items[c].options&&
356
- a.items[c].v){a.items[c].options=[];for(var b=0;b<a.items[c].v.length;b++)a.items[c].options.push(a.items[c].v[b]);a.items[c].k&&(a.items[c].onchange=function(d,e,f,g){t.current.setStyle(t.current.getSelected(),f.k,g)})}}else a.items[c].type==_$_5e1e[255]?(a.items[c].type=_$_5e1e[443],a.items[c].onclick=function(d,e,f){f.color||jSuites.color(f,{onchange:function(g,h){t.current.setStyle(t.current.getSelected(),f.k,h)}}).open()}):!a.items[c].onclick&&a.items[c].k&&(a.items[c].onclick=function(){t.current.setStyle(t.current.getSelected(),
357
- this.k,this.v)});(c=ja.execute.call(this,_$_5e1e[87],[a]))&&(a=c[0]);this.toolbarInstance=jSuites.toolbar(this.toolbar,a);this.toolbarInstance.application=this;a=this.element.tabs.getActive();this.toolbarInstance.update(this.worksheets[a])};k.getDefault=function(){return[{content:_$_5e1e[444],onclick:function(){t.current&&t.current.undo()}},{content:_$_5e1e[445],onclick:function(){t.current&&t.current.redo()}},{content:_$_5e1e[438],onclick:function(){t.current&&t.current.download()}},{type:_$_5e1e[446]},
358
- {type:_$_5e1e[390],width:_$_5e1e[447],options:[_$_5e1e[448],_$_5e1e[449],_$_5e1e[450]],render:function(a){return _$_5e1e[451]+a+_$_5e1e[226]+a+_$_5e1e[452]},onchange:function(a,c,b,d){t.current&&t.current.setStyle(t.current.getSelected(),_$_5e1e[453],d)}},{type:_$_5e1e[390],width:_$_5e1e[454],content:_$_5e1e[455],options:[_$_5e1e[456],_$_5e1e[457],_$_5e1e[458],_$_5e1e[459],_$_5e1e[460]],render:function(a){return _$_5e1e[461]+a+_$_5e1e[226]+a+_$_5e1e[452]},onchange:function(a,c,b,d){t.current&&t.current.setStyle(t.current.getSelected(),
359
- _$_5e1e[462],d)}},{type:_$_5e1e[390],columns:4,options:[_$_5e1e[463],_$_5e1e[464],_$_5e1e[465],_$_5e1e[466]],render:function(a){return _$_5e1e[467]+a+_$_5e1e[468]},onchange:function(a,c,b,d){t.current&&t.current.setStyle(t.current.getSelected(),_$_5e1e[469],d.split(_$_5e1e[470])[2])}},{type:_$_5e1e[443],content:_$_5e1e[471],k:_$_5e1e[472],v:_$_5e1e[473]},{type:_$_5e1e[255],content:_$_5e1e[474],k:_$_5e1e[255]},{type:_$_5e1e[255],content:_$_5e1e[475],k:_$_5e1e[476]},{type:_$_5e1e[390],content:_$_5e1e[477],
360
- width:_$_5e1e[478],options:[_$_5e1e[479],_$_5e1e[480],_$_5e1e[481],_$_5e1e[482]],onchange:function(a,c,b,d,e){a=t.current.table;a.classList.remove(_$_5e1e[483]);a.classList.remove(_$_5e1e[484]);a.classList.remove(_$_5e1e[485]);1==e?a.classList.add(_$_5e1e[483]):2==e?a.classList.add(_$_5e1e[484]):3==e&&a.classList.add(_$_5e1e[485]);t.current.refreshBorders()}},{content:_$_5e1e[15],onclick:function(a,c,b){b.children[0].innerText==_$_5e1e[15]?(t.current.fullscreen(!0),b.children[0].innerText=_$_5e1e[486]):
361
- (t.current.fullscreen(!1),b.children[0].innerText=_$_5e1e[15])},tooltip:_$_5e1e[487],updateState:function(a,c,b,d){b.children[0].innerText=1==d.parent.config.fullscreen?_$_5e1e[486]:_$_5e1e[15]}},{type:_$_5e1e[390],data:[_$_5e1e[488],_$_5e1e[489],_$_5e1e[490],_$_5e1e[491],_$_5e1e[492],_$_5e1e[493],_$_5e1e[494],_$_5e1e[495],_$_5e1e[496],_$_5e1e[497]],columns:5,render:function(a){return _$_5e1e[467]+a+_$_5e1e[468]},right:!0,onchange:function(a,c,b,d,e){if(a=t.current.getHighlighted()){b=c.thickness||
362
- 1;c=c.color||_$_5e1e[498];e={};for(var f=a[0],g=a[1],h=a[2],l=a[3],n=a[1];n<=a[3];n++)for(var q=a[0];q<=a[2];q++){var p=A.getColumnNameFromCoords(q,n);e[p]||(e[p]=_$_5e1e[3]);e[p]=d!=_$_5e1e[493]&&d!=_$_5e1e[489]||q!=f?(d==_$_5e1e[490]||d==_$_5e1e[492])&&q>f?e[p]+(_$_5e1e[499]+b+_$_5e1e[500]+c+_$_5e1e[295]):d==_$_5e1e[488]?e[p]+(_$_5e1e[499]+b+_$_5e1e[500]+c+_$_5e1e[295]):e[p]+_$_5e1e[501]:e[p]+(_$_5e1e[499]+b+_$_5e1e[500]+c+_$_5e1e[295]);e[p]=d!=_$_5e1e[488]&&d!=_$_5e1e[495]&&d!=_$_5e1e[489]||q!=
363
- h?e[p]+_$_5e1e[503]:e[p]+(_$_5e1e[502]+b+_$_5e1e[500]+c+_$_5e1e[295]);e[p]=d!=_$_5e1e[494]&&d!=_$_5e1e[489]||n!=g?(d==_$_5e1e[490]||d==_$_5e1e[491])&&n>g?e[p]+(_$_5e1e[504]+b+_$_5e1e[500]+c+_$_5e1e[295]):d==_$_5e1e[488]?e[p]+(_$_5e1e[504]+b+_$_5e1e[500]+c+_$_5e1e[295]):e[p]+_$_5e1e[505]:e[p]+(_$_5e1e[504]+b+_$_5e1e[500]+c+_$_5e1e[295]);e[p]=d!=_$_5e1e[488]&&d!=_$_5e1e[496]&&d!=_$_5e1e[489]||n!=l?e[p]+_$_5e1e[507]:e[p]+(_$_5e1e[506]+b+_$_5e1e[500]+c+_$_5e1e[295])}Object.keys(e)&&t.current.setStyle(e,
364
- null,null,!0)}},onload:function(a,c){var b=document.createElement(_$_5e1e[20]),d=document.createElement(_$_5e1e[20]);b.appendChild(d);var e=jSuites.color(d,{closeOnChange:!1,onchange:function(f,g){f.parentNode.children[1].style.color=g;c.color=g}});d=document.createElement(_$_5e1e[443]);d.classList.add(_$_5e1e[508]);d.innerHTML=_$_5e1e[509];d.onclick=function(){e.open()};b.appendChild(d);a.children[1].appendChild(b);d=document.createElement(_$_5e1e[20]);jSuites.picker(d,{type:_$_5e1e[390],data:[1,
365
- 2,3,4,5],render:function(f){return _$_5e1e[510]+f+_$_5e1e[511]},onchange:function(f,g,h,l){c.thickness=l},width:_$_5e1e[512]});a.children[1].appendChild(d);d=document.createElement(_$_5e1e[20]);d.style.flex=_$_5e1e[513];a.children[1].appendChild(d)}},{content:_$_5e1e[514],onclick:function(a,c,b){b.children[0].innerText==_$_5e1e[514]?(ma.show.call(t.current),b.children[0].innerText=_$_5e1e[515]):(ma.hide.call(t.current),b.children[0].innerText=_$_5e1e[514])},tooltip:_$_5e1e[516],updateState:function(a,
366
- c,b,d){b.children[0].innerText=1==d.options.search?_$_5e1e[515]:_$_5e1e[514]}}]};return k}(),ea=function(){var k=function(a){a.createWorksheet=function(c){return a.parent.createWorksheet(c)};a.deleteWorksheet=function(c){return a.parent.deleteWorksheet(c)};a.renameWorksheet=function(c,b){return a.parent.renameWorksheet(c,b)};a.moveWorksheet=function(c,b){return a.parent.moveWorksheet(c,b)};a.openWorksheet=function(){return a.parent.openWorksheet(a.parent.getWorksheet(a))};a.getWorksheet=function(c){return a.parent.getWorksheet(c)};
367
- a.getWorksheetActive=function(){return a.parent.getWorksheetActive()};a.getWorksheetName=function(){return a.options.worksheetName.toUpperCase()}};k.nextName=function(){var a=1,c,b=t.spreadsheet;if(b.length)for(var d=0;d<b.length;d++){var e=b[d].worksheets;if(e.length)for(var f=0;f<e.length;f++)e[f].options.worksheetName&&(c=e[f].options.worksheetName.match(/(\d+)/))&&(c=parseInt(c[0])+1,c>a&&(a=c))}return a};k.createWorksheet=function(a){if(!N.call(this))return!1;a||(a={});var c=this.worksheets.length,
368
- b=B.call(this,_$_5e1e[517],a,c);if(typeof b===_$_5e1e[84])a=b;else if(!1===b)return!1;a.data||a.minDimensions||(a.minDimensions=[8,8]);a.worksheetId||(a.worksheetId=jSuites.guid().substring(0,8));a.worksheetName||(a.worksheetName=_$_5e1e[359]+k.nextName());D(a.worksheetName)?jSuites.notification({error:_$_5e1e[513],message:_$_5e1e[518]}):(b=ka.worksheet(this,a),b.onload(),G.call(b,_$_5e1e[519],[a]),B.call(this,_$_5e1e[520],b,a,c))};k.deleteWorksheet=function(a){var c=this.worksheets[a];if(!N.call(this,
369
- c))return!1;D(c.options.worksheetName,null);this.element.tabs.deleteElement(a);this.worksheets.splice(a,1);G.call(c,_$_5e1e[521],[a]);B.call(this,_$_5e1e[522],c,a)};k.renameWorksheet=function(a,c){var b=this.worksheets[a];if(!N.call(this,b))return!1;var d=b.options.worksheetName;if(d.toLowerCase()==c.toLowerCase())return!1;c=c.replace(/[^0-9A-Za-z_\s^]+/gi,_$_5e1e[3]);Number(c)==c&&(c=_$_5e1e[359]+Number(c));D(c)?alert(_$_5e1e[523]):(D(d,null),this.element.tabs.rename(a,c),b.options.worksheetName=
370
- c,D(c,b),Q.call(this,{worksheet:b,action:_$_5e1e[80],index:a,oldValue:d,newValue:c}),G.call(b,_$_5e1e[80],{worksheet:a,newValue:c}),Ea.updateWorksheetName.call(b,d,c),S.updateWorksheetNames.call(b,d,c),B.call(this,_$_5e1e[524],b,a,c,d))};k.updateWorksheet=function(a,c){var b=this.worksheets;if(!N.call(this))return!1;this.worksheets.splice(c,0,b.splice(a,1)[0]);Q.call(this,{worksheet:b[c],action:_$_5e1e[81],f:a,t:c});G.call(b[c],_$_5e1e[81],{f:a,t:c});B.call(this,_$_5e1e[525],b[c],a,c)};k.moveWorksheet=
371
- function(a,c){this.element.tabs.move(a,c)};k.openWorksheet=function(a){var c=this.worksheets[a];!c||t.current&&t.current==c||(this.element.tabs.getActive()!=a?this.element.tabs.open(a):this.element.tabs.setBorder(a),t.current&&t.current.resetSelection(),t.current=c,t.current.refreshBorders(),P.call(t.current),k.state.call(this,a),ca.update.call(this,t.current),B.call(this,_$_5e1e[526],c,a))};k.getWorksheet=function(a){if(a&&typeof a==_$_5e1e[84]){if(a=this.worksheets.indexOf(a),0<=a)return a}else for(var c=
372
- 0;c<this.worksheets.length;c++)if(a===this.worksheets[c].options.worksheetId)return c;return!1};k.getWorksheetActive=function(){return this.element.tabs.getActive()};k.getWorksheetInstance=function(a){return a===_$_5e1e[3]||typeof a==_$_5e1e[17]?(a=k.getWorksheet.call(this,a),!1===a?!1:this.worksheets[a]):this.worksheets[a]};k.state=function(a){try{if(typeof localStorage!==_$_5e1e[13]){var c=this.config.cloud?this.config.cloud:this.element.id;if(c)if(typeof a!==_$_5e1e[13])localStorage.setItem(_$_5e1e[527]+
373
- c,a);else{var b=parseInt(localStorage.getItem(_$_5e1e[527]+c));k.openWorksheet.call(this,b)}}}catch(d){}};return k}(),A=function(){var k={getCaretIndex:function(a){var c=0,b=(this.config.root?this.config.root:window).getSelection();b&&0!==b.rangeCount&&(c=b.getRangeAt(0),b=c.cloneRange(),b.selectNodeContents(a),b.setEnd(c.endContainer,c.endOffset),c=b.toString().length);return c},invert:function(a){for(var c=[],b=Object.keys(a),d=0;d<b.length;d++)c[a[b[d]]]=b[d];return c},getColumnName:function(a){var c=
374
- _$_5e1e[3];701<a?(c+=String.fromCharCode(64+parseInt(a/676)),c+=String.fromCharCode(64+parseInt(a%676/26))):25<a&&(c+=String.fromCharCode(64+parseInt(a/26)));return c+=String.fromCharCode(65+a%26)},getColumnNameFromCoords:function(a,c){return k.getColumnName(parseInt(a))+(parseInt(c)+1)},getCoordsFromColumnName:function(a){var c=/^[a-zA-Z]+/.exec(a);if(c){for(var b=0,d=0;d<c[0].length;d++)b+=parseInt(c[0].charCodeAt(d)-64)*Math.pow(26,c[0].length-1-d);b--;0>b&&(b=0);a=parseInt(/[0-9]+$/.exec(a))||
375
- null;0<a&&a--;return[b,a]}}};k.shiftFormula=S.shiftFormula;k.createFromTable=function(a,c){if(a.tagName!=_$_5e1e[528])console.log(_$_5e1e[529]);else{c||(c={});c.columns=[];c.data=[];var b=a.querySelectorAll(_$_5e1e[530]);if(b.length)for(var d=0;d<b.length;d++){var e=b[d].style.width;e||(e=b[d].getAttribute(_$_5e1e[152]));e&&(c.columns[d]||(c.columns[d]={}),c.columns[d].width=e)}e=function(u){var x=u.getBoundingClientRect();x=50<x.width?x.width:50;c.columns[d]||(c.columns[d]={});u.getAttribute(_$_5e1e[531])?
376
- c.columns[d].type=u.getAttribute(_$_5e1e[531]):c.columns[d].type=_$_5e1e[56];c.columns[d].width=x+_$_5e1e[44];c.columns[d].title=u.innerHTML;c.columns[d].align=u.style.textAlign||(c.defaultColAlign?c.defaultColAlign:_$_5e1e[53]);u.classList.contains(_$_5e1e[532])&&(c.columns[d].readOnly=!0);if(x=u.getAttribute(_$_5e1e[533]))c.columns[d].name=x;if(x=u.getAttribute(_$_5e1e[534]))c.columns[d].id=x};var f=[],g=a.querySelectorAll(_$_5e1e[535]);if(g.length){for(b=0;b<g.length-1;b++){var h=[];for(d=0;d<
377
- g[b].children.length;d++){var l={title:g[b].children[d].innerText,colspan:g[b].children[d].getAttribute(_$_5e1e[52])||1};h.push(l)}f.push(h)}g=g[g.length-1].children;for(d=0;d<g.length;d++)e(g[d])}l=0;var n={},q={},p={},r={},w=null;h=a.querySelectorAll(_$_5e1e[536]);for(b=0;b<h.length;b++)if(c.data[l]=[],1!=c.parseTableFirstRowAsHeader||g.length||0!=b){for(d=0;d<h[b].children.length;d++){var m=h[b].children[d].getAttribute(_$_5e1e[537]);m?m.substr(0,1)!=_$_5e1e[12]&&(m=_$_5e1e[12]+m):m=h[b].children[d].innerHTML;
378
- c.data[l].push(m);m=A.getColumnNameFromCoords(d,b);(w=h[b].children[d].getAttribute(_$_5e1e[538]))&&(r[m]=w);w=parseInt(h[b].children[d].getAttribute(_$_5e1e[52]))||0;var v=parseInt(h[b].children[d].getAttribute(_$_5e1e[164]))||0;if(w||v)n[m]=[w||1,v||1];if(w=h[b].children[d].style&&h[b].children[d].style.display==_$_5e1e[40])h[b].children[d].style.display=_$_5e1e[3];(w=h[b].children[d].getAttribute(_$_5e1e[98]))&&(p[m]=w);h[b].children[d].classList.contains(_$_5e1e[539])&&(p[m]=p[m]?p[m]+_$_5e1e[540]:
379
- _$_5e1e[541])}h[b].style&&h[b].style.height&&(q[b]={height:h[b].style.height});l++}else for(d=0;d<h[b].children.length;d++)e(h[b].children[d]);0<Object.keys(f).length&&(c.nestedHeaders=f);0<Object.keys(p).length&&(c.style=p);0<Object.keys(n).length&&(c.mergeCells=n);0<Object.keys(q).length&&(c.rows=q);0<Object.keys(r).length&&(c.classes=r);h=a.querySelectorAll(_$_5e1e[542]);if(h.length){a=[];for(b=0;b<h.length;b++){e=[];for(d=0;d<h[b].children.length;d++)e.push(h[b].children[d].innerText);a.push(e)}0<
380
- Object.keys(a).length&&(c.footers=a)}if(1==c.parseTableAutoCellType)for(a=[],d=0;d<c.columns.length;d++){f=e=!0;a[d]=[];for(b=0;b<c.data.length;b++)if(m=c.data[b][d],a[d][m]||(a[d][m]=0),a[d][m]++,25<m.length&&(e=!1),10==m.length){if(m.substr(4,1)!=_$_5e1e[185]||m.substr(7,1)!=_$_5e1e[185])f=!1}else f=!1;b=Object.keys(a[d]).length;f?c.columns[d].type=_$_5e1e[184]:1==e&&1<b&&b<=parseInt(.1*c.data.length)&&(c.columns[d].type=_$_5e1e[58],c.columns[d].source=Object.keys(a[d]))}return c}};k.injectArray=
381
- function(a,c,b){return a.slice(0,c).concat(b).concat(a.slice(c))};k.parseCSV=function(a,c){c=c||_$_5e1e[25];for(var b=0,d=0,e=[[]],f=0,g=null,h=!1,l=!1,n=0;n<a.length;n++)if(e[d]||(e[d]=[]),e[d][b]||(e[d][b]=_$_5e1e[3]),a[n]!=_$_5e1e[543])if(a[n]!=_$_5e1e[544]&&a[n]!=c||0!=h&&1!=l&&g){a[n]==_$_5e1e[187]&&(h=!h);if(null===g){if(g=h,1==g)continue}else if(!0===g&&!l&&a[n]==_$_5e1e[187]){a[n+1]==_$_5e1e[187]?(h=!0,e[d][b]+=a[n],n++):l=!0;continue}e[d][b]+=a[n]}else{g=null;l=h=!1;if(e[d][b][0]==_$_5e1e[187]){var q=
382
- e[d][b].trim();q[q.length-1]==_$_5e1e[187]&&(e[d][b]=q.substr(1,q.length-2))}a[n]==_$_5e1e[544]?(b=0,d++):(b++,b>f&&(f=b))}for(a=0;a<e.length;a++)for(n=0;n<=f;n++)void 0===e[a][n]&&(e[a][n]=_$_5e1e[3]);return e};k.getTokensFromRange=S.getTokensFromRange;k.getRangeFromTokens=S.getRangeFromTokens;return k}(),xa=function(){var k={},a=null,c=null,b=null,d=!1,e=null,f=null,g=null,h=function(m){function v(J){J.className&&(J.classList.contains(_$_5e1e[349])&&(y=J),J.classList.contains(_$_5e1e[362])&&(H=
383
- J),J.classList.contains(_$_5e1e[545])&&(L=J));J.tagName==_$_5e1e[546]?u=1:J.tagName==_$_5e1e[547]?u=2:J.tagName==_$_5e1e[548]&&(u=3);J.parentNode&&!y&&v(J.parentNode)}var u=null,x=null,y=null,H=null,L=null,E=null,ba=null,ra=null;v(m.target);if(null!==L)return!1;if(y)if(m.target.classList.contains(_$_5e1e[330]))x=_$_5e1e[549];else if(m.target.classList.contains(_$_5e1e[339]))x=_$_5e1e[138];else if(m.target.classList.contains(_$_5e1e[267]))x=_$_5e1e[411],E=parseInt(m.target.getAttribute(_$_5e1e[43]));
384
- else if(m.target.parentNode&&m.target.parentNode.classList.contains(_$_5e1e[177]))E=m.target.getAttribute(_$_5e1e[181]),ba=m.target.getAttribute(_$_5e1e[182]),null===E?x=_$_5e1e[549]:(x=_$_5e1e[408],E=parseInt(E),ba=parseInt(ba));else if(m.target.parentNode&&m.target.parentNode.classList.contains(_$_5e1e[146]))x=_$_5e1e[550];else if(m.target.classList.contains(_$_5e1e[150]))x=_$_5e1e[550];else if(m.target.parentNode&&m.target.parentNode.classList.contains(_$_5e1e[551]))x=_$_5e1e[403],E=Array.prototype.indexOf.call(m.target.parentNode.children,
385
- m.target);else if(1==u)x=_$_5e1e[410],E=m.target.clientWidth-m.offsetX,m.target.classList.contains(_$_5e1e[168])&&3<E&&20>E&&(x=_$_5e1e[552]),E=m.target.getAttribute(_$_5e1e[42]);else if(2==u){if(m=l(m,y))x=_$_5e1e[412],E=m[0],ba=m[1],ra=m[2]}else if(3==u){if(E=m.target.getAttribute(_$_5e1e[42]),ba=m.target.getAttribute(_$_5e1e[43]),E||ba)x=_$_5e1e[553]}else u||jSuites.findElement(m.target,_$_5e1e[554])&&(x=_$_5e1e[87]);return[y,H,u,x,E,ba,ra]},l=function(m,v){if(m.changedTouches&&m.changedTouches[0]){var u=
386
- m.changedTouches[0].clientX;m=m.changedTouches[0].clientY}else u=m.clientX,m=m.clientY;v=(v.spreadsheet.config.root?v.spreadsheet.config.root:document).elementsFromPoint(u,m);for(var x=0;x<v.length;x++)if(u=v[x].getAttribute(_$_5e1e[42]),m=v[x].getAttribute(_$_5e1e[43]),null!=u&&null!=m)return u=parseInt(u),m=parseInt(m),[u,m,v[x]];return!1},n=function(m){var v=h(m);if(!1===v)return!1;v[0]?v[1]?t.current!=v[1].jexcel&&(t.current&&t.current.resetSelection(),t.current=v[1].jexcel):(m=v[0].tabs.getActive(),
387
- 0<=m&&(t.current=v[0].spreadsheet.worksheets[m])):t.current&&!jSuites.findElement(m.target,_$_5e1e[219])&&(t.current.resetSelection(!0),t.current=null);return v};k.input=function(m){if(m.target.tagName==_$_5e1e[555]&&m.target.classList.contains(_$_5e1e[92])){var v=null;t.current?v=t.current:m.target.getAttribute(_$_5e1e[556])&&(v=D(m.target.getAttribute(_$_5e1e[556])));v&&fa.parse.call(v,m.target)}};k.keydown=function(m){if(t.current){m.target.tagName==_$_5e1e[555]&&m.target.classList.contains(_$_5e1e[92])&&
388
- fa.onkeydown.call(t.current,m);if(27==m.which){if(t.current.edition)return t.current.closeEditor(t.current.edition,!1),m.preventDefault(),!1;if(na.event)return na.cancel.call(t.current,m),m.preventDefault(),!1;if(ha.event)return ha.cancel.call(t.current,m),!1;if(1==Y.isVisible())return Y.close.call(t.current,!1),m.preventDefault(),!1}if(!m.target.classList.contains(_$_5e1e[219]))if(m.target.classList.contains(_$_5e1e[381])){var v=m.target;e&&clearTimeout(e);e=setTimeout(function(){Y.search.call(t.current,
389
- v.value);e=null},500)}else if(m.target.classList.contains(_$_5e1e[395]))v=m.target,e&&clearTimeout(e),e=setTimeout(function(){t.current.search(v.value);e=null},400);else if(t.current.edition){var u=t.current.edition.getAttribute(_$_5e1e[42]);13==m.which?t.current.options.columns[u].type==_$_5e1e[184]?t.current.closeEditor(t.current.edition,!0):t.current.options.columns[u].type!=_$_5e1e[58]&&t.current.options.columns[u].type!=_$_5e1e[557]&&t.current.options.columns[u].type!=_$_5e1e[434]&&(m.altKey?
390
- t.current.parent.input.classList.contains(_$_5e1e[558])||document.execCommand(_$_5e1e[559],!1,_$_5e1e[560]):(t.current.closeEditor(t.current.edition,!0),t.current.down(),m.preventDefault())):9==m.which&&(t.current.closeEditor(t.current.edition,!0),t.current.right(),m.preventDefault())}else if(t.current.selectedCell)if(33==m.which)0<t.current.options.pagination?qa.pageUp.call(t.current):C.pageUp.call(t.current);else if(34==m.which)0<t.current.options.pagination?qa.pageDown.call(t.current):C.pageDown.call(t.current);
391
- else if(37==m.which)t.current.left(m.shiftKey,m.ctrlKey),m.preventDefault();else if(39==m.which)t.current.right(m.shiftKey,m.ctrlKey),m.preventDefault();else if(38==m.which)t.current.up(m.shiftKey,m.ctrlKey),m.preventDefault();else if(40==m.which)t.current.down(m.shiftKey,m.ctrlKey),m.preventDefault();else if(36==m.which)t.current.first(m.shiftKey,m.ctrlKey),m.preventDefault();else if(35==m.which)t.current.last(m.shiftKey,m.ctrlKey),m.preventDefault();else if(32==m.which)t.current.setCheckRadioValue(),
392
- m.preventDefault();else if(46==m.which||8==m.which)t.current.isEditable()&&t.current.setValue(t.current.getSelected(!1,!0),_$_5e1e[3]);else if(13==m.which)m.shiftKey?t.current.up():(1==t.current.options.allowManualInsertRow&&t.current.selectedCell[1]==(t.current.results?t.current.results[t.current.results.length-1]:t.current.rows.length-1)&&t.current.insertRow(),t.current.selectedCell&&t.current.down()),m.preventDefault();else if(9==m.which)m.shiftKey?t.current.left():(u=t.current.selectedCell[0],
393
- t.current.right(),1==t.current.options.allowInsertColumn&&1==t.current.options.allowManualInsertColumn&&t.current.selectedCell[0]==u&&(t.current.insertColumn(),t.current.right())),m.preventDefault();else if((m.ctrlKey||m.metaKey)&&!m.shiftKey)65==m.which?(t.current.selectAll(),m.preventDefault()):83==m.which?(t.current.download(),m.preventDefault()):89==m.which?(t.current.parent.redo(),m.preventDefault()):90==m.which?(t.current.parent.undo(),m.preventDefault()):67==m.which?(t.current.copy(),m.preventDefault()):
394
- 88==m.which?(t.current.cut(),m.preventDefault()):86==m.which?k.paste(m):189==m.which&&(1==t.current.options.allowDeleteRow&&b==_$_5e1e[411]?(t.current.deleteRow(),m.preventDefault()):1==t.current.options.allowDeleteColumn&&b==_$_5e1e[410]&&(t.current.deleteColumn(),m.preventDefault()));else if(t.current.selectedCell&&t.current.isEditable()){u=t.current.selectedCell[1];var x=t.current.selectedCell[0];t.current.options.columns[x].type!=_$_5e1e[18]&&(32==m.keyCode?t.current.options.columns[x].type==
395
- _$_5e1e[250]||t.current.options.columns[x].type==_$_5e1e[252]?m.preventDefault():t.current.openEditor(t.current.records[u][x].element,!0,m):113==m.keyCode?t.current.openEditor(t.current.records[u][x].element,!1,m):1!=m.key.length&&m.key!=_$_5e1e[561]||m.altKey||m.ctrlKey||t.current.records[u]&&t.current.openEditor(t.current.records[u][x].element,!0,m))}}};var q=function(m,v,u,x,y,H){if(1==t.current.parent.input.classList.contains(_$_5e1e[92])&&fa.update.call(t.current,m,v,u,x,y))return!1;if(t.current.edition)t.current.closeEditor(t.current.edition,
396
- !0);else if(b&&b!==H)return!1;fa.current?fa.range.call(t.current,m,v,u,x,y):va[_$_5e1e[11]].call(t.current,m,v,u,x,y)};k.mousedown=function(m){m=m||window.event;var v=m.buttons?m.buttons:m.button?m.button:m.which;if(t.current)if(1==Y.isVisible()&&(jSuites.findElement(m.target,_$_5e1e[385])||Y.close.call(t.current,!1)),t.current.edition){if(jSuites.findElement(m.target,_$_5e1e[99]))return!1}else if(jSuites.findElement(m.target,_$_5e1e[219]))return!1;var u=n(m);if(!1===u)return!1;g=u;if(1<v)if(u[3]==
397
- _$_5e1e[410]){if(t.current.isSelected(u[4],null))return!1}else if(u[3]==_$_5e1e[411]){if(t.current.isSelected(null,u[4]))return!1}else if(u[3]==_$_5e1e[412]&&t.current.isSelected(u[4],u[5]))return!1;if(t.current){if(u[3]==_$_5e1e[138])t.current.isEditable()&&(ha.event=!0);else if(u[3]==_$_5e1e[552])Y.open.call(t.current,u[4]);else{if(1==u[2])if(1==t.current.options.columnDrag&&6>m.target.offsetHeight-m.offsetY)na.start.call(t.current,m);else if(1==t.current.options.columnResize&&6>m.target.offsetWidth-
398
- m.offsetX)ta.start.call(t.current,m);else{v=t.current.options.columns.length-1;var x=t.current.options.data.length-1;if(u[3]==_$_5e1e[549])q(0,0,v,x,m,u[3]),c=a=0;else if(u[3]==_$_5e1e[408]){var y=la.range.call(t.current,u[5])[u[4]];y[1]>v&&(y[1]=v);q(y[0],0,y[1],x,m,u[3]);a=y[0];c=0}else(m.shiftKey||m.ctrlKey)&&null!=a&&null!=c?q(a,0,u[4],x,m,u[3]):(u[3]==_$_5e1e[410]&&a==u[4]&&1==t.current.options.allowRenameColumn&&(f=setTimeout(function(){t.current.setHeader(u[4])},800)),q(u[4],0,u[4],x,m,u[3]),
399
- a=u[4],c=0)}if(2==u[2])if(u[3]==_$_5e1e[411])1==t.current.options.rowDrag&&6>m.target.offsetWidth-m.offsetX?na.start.call(t.current,m):1==t.current.options.rowResize&&6>m.target.offsetHeight-m.offsetY?ta.start.call(t.current,m):(v=t.current.options.columns.length-1,x=parseInt(u[4]),(m.shiftKey||m.ctrlKey)&&null!=a&&null!=c?q(0,c,v,x,m,u[3]):(q(0,x,v,x,m,u[3]),a=0,c=x));else if(u[3]==_$_5e1e[412]){v=parseInt(u[4]);x=parseInt(u[5]);if(!t.current.edition&&(y=t.current.options.columns[u[4]].type,m.target.tagName==
400
- _$_5e1e[562]&&(y==_$_5e1e[253]||y==_$_5e1e[254])&&m.target.parentNode.classList.contains(_$_5e1e[124]))){var H=m.target.innerText;y==_$_5e1e[253]&&(H=_$_5e1e[563]+H);window.open(H,_$_5e1e[564])}(m.shiftKey||m.ctrlKey)&&null!=a&&null!=c?q(a,c,v,x,m,u[3]):(q(v,x,v,x,m,u[3]),a=v,c=x)}}b=u[3];typeof u[3]!==_$_5e1e[13]&&B.call(t.current.parent,_$_5e1e[565],t.current,u[3],u[4],u[5]);d=!0}else d=!1};k.mouseup=function(m){t.current&&(na.event?na.end.call(t.current,m):ta.event?ta.end.call(t.current,m):ha.event?
401
- ha.end.call(t.current,m):m.target.classList.contains(_$_5e1e[384])?Y.close.call(t.current,!0):t.current.edition&&m.target.classList.contains(_$_5e1e[566])&&50>m.target.clientWidth-m.offsetX&&50>m.offsetY?Z.close.call(t.current,null,!0):m.target.classList.contains(_$_5e1e[318])&&(m=m.target.innerText==_$_5e1e[215]?0:m.target.innerText==_$_5e1e[216]?m.target.getAttribute(_$_5e1e[264])-1:m.target.innerText-1,qa[_$_5e1e[11]].call(t.current,parseInt(m))));f&&(clearTimeout(f),f=null);d=b=!1;fa.current&&
402
- fa.close.call(t.current)};k.mousemove=function(m){m=m||window.event;if(t.current){var v=m.target.getAttribute(_$_5e1e[42]),u=m.target.getAttribute(_$_5e1e[43]);if(1==d)na.event?na.update.call(t.current,m):ta.event?ta.update.call(t.current,m):La.event&&La.update.call(t.current,m);else{var x=m.target.getBoundingClientRect();t.current.cursor&&(t.current.cursor.style.cursor=_$_5e1e[3],t.current.cursor=null);1==t.current.options.editable&&(v||u)&&(1==t.current.options.rowResize&&m.target&&v&&!u&&5>x.width-
403
- (m.clientX-x.left)?(t.current.cursor=m.target,t.current.cursor.style.cursor=_$_5e1e[567]):1==t.current.options.columnResize&&m.target&&!v&&u&&5>x.height-(m.clientY-x.top)?(t.current.cursor=m.target,t.current.cursor.style.cursor=_$_5e1e[568]):1==t.current.options.rowDrag&&m.target&&!v&&u&&5>x.width-(m.clientX-x.left)?(t.current.cursor=m.target,t.current.cursor.style.cursor=_$_5e1e[569]):1==t.current.options.columnDrag&&m.target&&v&&!u&&5>x.height-(m.clientY-x.top)&&(t.current.cursor=m.target,t.current.cursor.style.cursor=
404
- _$_5e1e[569]))}}};k.mouseover=function(m){m=m||window.event;var v=!1;if(t.current&&1==d){var u=h(m);if(u[0]){if(u[1]&&t.current!=u[1].jexcel&&t.current)return!1;if(!na.event&&!ta.event)if(ha.event){var x=m.target.getAttribute(_$_5e1e[42]),y=m.target.getAttribute(_$_5e1e[43]);t.current.isSelected(x,y)||null===x||null===y||(ha.call(t.current,x,y),v=!0)}else null!==a&&null!==c&&(1==u[2]&&(x=a,u[3]==_$_5e1e[410]&&(x=m.target.getAttribute(_$_5e1e[42])),y=t.current.options.data.length-1,q(a,0,x,y,m,u[3])),
405
- 2==u[2]&&(u[3]==_$_5e1e[411]?(x=t.current.options.columns.length-1,y=parseInt(m.target.getAttribute(_$_5e1e[43])),q(0,c,x,y,m,u[3])):u[3]==_$_5e1e[412]&&(x=m.target.getAttribute(_$_5e1e[42]),y=m.target.getAttribute(_$_5e1e[43]),x&&y&&(q(a,c,x,y,m,u[3]),v=!0))))}}1==v&&!f&&C.limited.call(t.current)?f=setTimeout(function(){var H=t.current.content.getBoundingClientRect();if(m.changedTouches&&m.changedTouches[0])var L=m.changedTouches[0].clientX,E=m.changedTouches[0].clientY;else L=m.clientX,E=m.clientY;
406
- 50>H.height-(E-H.top)?C.pageDown.call(t.current,1,null,m):80>E-H.top&&C.pageUp.call(t.current,1,null,m);50>H.width-(L-H.left)?C.pageRight.call(t.current,1,null,m):80>L-H.left&&C.pageLeft.call(t.current,1,null,m);f=null},100):f&&(clearTimeout(f),f=null)};k.dblclick=function(m){if(t.current)if(m.target.classList.contains(_$_5e1e[339]))ha.execute.call(t.current,!1);else{var v=h(m);1==v[2]?1==t.current.options.columnSorting&&(m=m.target.getAttribute(_$_5e1e[42]))&&t.current.orderBy(m):2==v[2]&&t.current.isEditable()&&
407
- !t.current.edition&&v[6]&&t.current.openEditor(v[6])}};k.paste=function(m){if(t.current&&t.current.selectedCell&&!t.current.edition){var v=m.clipboardData||window.clipboardData;v&&(t.current.paste(t.current.selectedCell[0],t.current.selectedCell[1],v.getData(_$_5e1e[56])),m&&m.preventDefault())}};k.contextmenu=function(m){var v=n(m);!1!==v&&(v[1]||(v=g),t.current&&!t.current.edition&&(v=Array.prototype.slice.call(v,3),Na.open.call(t.current,m,v)))};var p=null,r=null,w=null;k.touchstart=function(m){var v=
408
- h(m);v[0]?v[1]&&t.current!=v[1].jexcel&&(t.current&&t.current.resetSelection(),t.current=v[1].jexcel):t.current&&(t.current.resetSelection(),t.current=null);if(t.current&&!t.current.edition){var u=v[4];v=v[5];r=m.touches[0];p=m.touches.length;w=[u,v];if(null!==u&&null!==v){t.current.updateSelectionFromCoords(u,v,u,v);var x=m.target;f=setTimeout(function(){t.current.openEditor(x,!1,m);f=null},250)}}};k.touchmove=function(m){f&&(clearTimeout(f),f=null);if(t.current){m=m.changedTouches[0];if(r)if(1<
409
- p){var v=document.elementFromPoint(m.pageX,m.pageY),u=v.getAttribute(_$_5e1e[42]);v=v.getAttribute(_$_5e1e[43]);null!==u&&null!==v&&t.current.updateSelectionFromCoords(w[0],w[1],u,v)}else t.current.scrollY.scrollTop+=-1*(m.clientY-r.clientY),t.current.scrollX.scrollLeft+=-1*(m.clientX-r.clientX);r=m}};k.touchend=function(m){f&&(clearTimeout(f),f=null);w=r=p=null};k.resize=function(){t.current&&1==t.current.parent.config.fullscreen&&C.refresh.call(t.current)};return k}(),t=function(k,a,c){a||(a={});
410
- if(a.cloud&&!c)typeof a.plugins.cloud==_$_5e1e[85]?a.plugins.cloud.load(a,function(f){t(k,f,!0)}):console.error(_$_5e1e[570]);else{if(k.spreadsheet)b=k.spreadsheet,za[_$_5e1e[11]].call(b,a);else var b=ka.spreadsheet(k,a);b.processing=!0;1==b.config.loadingSpin&&jSuites.loading.show();jSuites.ajax.oncomplete[b.name]=function(){for(var f=0;f<b.worksheets.length;f++)b.worksheets[f].onload();b.processing=!1;if(Array.isArray(b.queue)&&0<b.queue.length)for(;f=b.queue.shift();)f[0].updateCell(f[1],f[2],
411
- K.call(f[0],f[1],f[2]),!0);b.config.toolbar&&ca.show.call(b);for(f=0;f<b.worksheets.length;f++)W.refresh.call(b.worksheets[f]);if(typeof b.config.onload==_$_5e1e[85])b.config.onload(b);ea.state.call(b);jSuites.loading.hide()};Array.isArray(a.worksheets)&&(a=a.worksheets);if(Array.isArray(a)){c=null;for(var d=[],e=0;e<a.length;e++)c=ka.worksheet(b,a[e]),d.push(c)}else d=ka.worksheet(b,a);jSuites.ajax.pending(b.name)||(jSuites.ajax.oncomplete[b.name](),jSuites.ajax.oncomplete[b.name]=null);return d}};
412
- t.license=null;t.setLicense=function(k){t.license=k};t.spreadsheet=[];t.picker=fa;t.setDictionary=function(k){jSuites.setDictionary(k)};t.extensions={};t.setExtensions=function(k){for(var a=Object.keys(k),c=0;c<a.length;c++)typeof k[a[c]]===_$_5e1e[85]&&(t[a[c]]=k[a[c]],t.extensions[a[c]]=k[a[c]],t.license&&typeof t[a[c]].license==_$_5e1e[85]&&t[a[c]].license.call(t,t.license))};t.destroy=function(k,a){k.spreadsheet&&(a&&ka.unbind(k),a=t.spreadsheet.indexOf(k.spreadsheet),t.spreadsheet.splice(a,1),
413
- k.spreadsheet=null,k.jexcel=null,k.innerHTML=_$_5e1e[3],k.classList.remove(_$_5e1e[571]),k.classList.remove(_$_5e1e[349]))};t.version=F;t.helpers=A;t.events=xa;typeof formula!==_$_5e1e[13]&&(t.formula=formula);t.editors=function(){var k={},a=function(c,b){return 1==c[b]||c.options&&1==c.options[b]?!0:c[b]==_$_5e1e[229]||c.options&&c.options[b]==_$_5e1e[229]?!0:!1};k.createEditor=function(c,b,d,e){e.parent.input.setAttribute(_$_5e1e[100],!1);c==_$_5e1e[220]?(c=document.createElement(_$_5e1e[220]),
414
- c.type=_$_5e1e[56],c.value=d):c=document.createElement(_$_5e1e[20]);c.style.width=b.offsetWidth-2+_$_5e1e[44];c.style.height=b.offsetHeight-1+_$_5e1e[44];e.parent.input.appendChild(c);return c};k.createDialog=function(c,b,d,e,f,g){c=k.createEditor(_$_5e1e[20],c,b,f);c.classList.add(_$_5e1e[572]);c.classList.add(_$_5e1e[566]);800>window.innerWidth?(f.parent.input.style.top=_$_5e1e[144],f.parent.input.style.left=_$_5e1e[144]):(b=f.parent.input.getBoundingClientRect(),window.innerHeight<b.bottom&&(f.parent.input.style.marginTop=
415
- -f.parent.input.offsetHeight));return c};k.general=function(){var c={},b=function(e){e=(_$_5e1e[3]+e)[0];return e==_$_5e1e[12]||e==_$_5e1e[573]?!0:!1},d=function(e){if(e.format||e.mask||e.locale){var f={};e.mask?f.mask=e.mask:e.format?f.mask=e.format:(f.locale=e.locale,f.options=e.options);e.decimal&&(f.options||(f.options={}),f.options={decimal:e.decimal});return f}return null};c.updateCell=function(e,f,g,h,l,n){g=parseInt(g);h=parseInt(h);if(e){var q=d(n),p=null;f===_$_5e1e[3]||b(f)||typeof f===
416
- _$_5e1e[14]||(q?(q=jSuites.mask.extract(f,q,!0))&&q.value!==_$_5e1e[3]&&(p=q.value):1==(!1===l.options.autoCasting||!1===n.autoCasting?!1:!0)&&(n.type==_$_5e1e[14]||n.type==_$_5e1e[307]||n.type==_$_5e1e[306]?(q=jSuites.mask.extract(f,n,!0))&&q.value!==_$_5e1e[3]&&(p=q.value):jSuites.isNumeric(Number(f))&&(p=Number(f))));null!==p&&(f=p);f=c.parseValue(g,h,f,l,n,e);f instanceof Element||f instanceof HTMLDocument?(e.innerHTML=_$_5e1e[3],e.appendChild(f)):1==l.parent.config.stripHTML?e.innerText=f:e.innerHTML=
417
- f;if(null!==p)return p}};c.createCell=c.updateCell;c.openEditor=function(e,f,g,h,l,n){var q=l.parent.input;q.onblur=function(){q.classList.contains(_$_5e1e[92])||l.closeEditor(e,!0)};if(n.type==_$_5e1e[14]||n.type==_$_5e1e[307]||n.type==_$_5e1e[306])q.classList.add(_$_5e1e[558]),b(f)||n.inputmode||(n.inputmode=_$_5e1e[574]);g=null;b(f)||(n.inputmode&&q.setAttribute(_$_5e1e[96],n.inputmode),(g=d(n))?(n.disabledMaskOnEdition||(n.mask?(n=n.mask.split(_$_5e1e[263]),q.setAttribute(_$_5e1e[94],n[0])):n.locale&&
418
- q.setAttribute(_$_5e1e[575],n.locale)),g.input=l.parent.input,l.parent.input.mask=g,jSuites.mask.render(f,g,!1)):f&&n.type==_$_5e1e[306]&&(f*=100));g||(q.innerText=f,jSuites.focus(l.parent.input))};c.closeEditor=function(e,f,g,h,l,n){e=l.parent.input;f=f?e.innerText:_$_5e1e[3];b(f)?f=f.replace(/(\r\n|\n|\r)/gm,_$_5e1e[3]):n.type==_$_5e1e[306]&&(f+=_$_5e1e[576],e.classList.remove(_$_5e1e[577]));return f};c.parseValue=function(e,f,g,h,l,n){b(g)&&1==h.parent.config.parseFormulas&&(g=h.executeFormula(g,
419
- e,f));g instanceof Element||g instanceof HTMLDocument||!l||b(g)||!(f=d(l))||(e=jSuites.mask.render(g,f,!0),n&&f.mask&&(f=f.mask.split(_$_5e1e[263]),f[1]&&(f[1].match(new RegExp(_$_5e1e[578],_$_5e1e[377]))&&(0>g?n.classList.add(_$_5e1e[579]):n.classList.remove(_$_5e1e[579])),f[1].match(new RegExp(_$_5e1e[580],_$_5e1e[377]))&&0>g&&(e=_$_5e1e[212]+e+_$_5e1e[232]))),e&&(g=e));return g};c[_$_5e1e[51]]=function(e,f){var g;return(g=d(e))?jSuites.mask.render(f,g,!0):e.type==_$_5e1e[306]?100*parseFloat(f):
420
- f};return c}();k.text=k.general;k.number=k.general;k.numeric=k.general;k.percent=k.general;k.notes=function(){var c={},b=null;c.updateCell=function(d,e,f,g,h,l){d&&(f=document.createElement(_$_5e1e[20]),f.classList.add(_$_5e1e[581]),1==h.parent.config.stripHTML?f.innerText=e:f.innerHTML=e,d.innerHTML=_$_5e1e[3],d.appendChild(f))};c.createCell=c.updateCell;c.openEditor=function(d,e,f,g,h,l){var n=l&&l.options?l.options:{};n.focus=!0;n.value=e;n.border=!1;n.height=_$_5e1e[582];n.toolbar=!1;b=k.createDialog(d,
421
- e,f,g,h,l);b=jSuites.editor(b,n)};c.closeEditor=function(d,e,f,g,h,l){return e?b.getData():_$_5e1e[3]};return c}();k.dropdown=function(){var c={createCell:function(b,d,e,f,g,h){h.render==_$_5e1e[583]?b.classList.add(_$_5e1e[584]):b.classList.add(_$_5e1e[585]);if(b=c.updateCell(b,d,e,f,g,h))return b},destroyCell:function(b){b.classList.remove(_$_5e1e[585])},updateCell:function(b,d,e,f,g,h){if(b){var l=c.getItem(b,d,e,f,g,h);l?b.innerHTML=l:d?(d=c.fromLabel(b,d,e,f,g,h),d.length?(l=c.getItem(b,d,e,
422
- f,g,h),b.innerHTML=l):b.innerHTML=_$_5e1e[3]):b.innerHTML=_$_5e1e[3];return d}},openEditor:function(b,d,e,f,g,h){var l=k.createEditor(_$_5e1e[20],b,d,g),n=h.delimiter||_$_5e1e[263];h=Object.create(h);h.options||(h.options={});typeof h.filter==_$_5e1e[85]&&(h.source=h.filter(g.el,b,e,f,h.source));typeof h.filterOptions==_$_5e1e[85]&&(h=h.filterOptions(g,b,e,f,d,h));e=h.options;h.source&&(e.data=JSON.parse(JSON.stringify(h.source)));a(h,_$_5e1e[586])&&(e.multiple=!0);a(h,_$_5e1e[57])&&(e.autocomplete=
423
- !0);e.format=!0;e.opened=!0;e.width=b.offsetWidth-2;e.onclose=function(){g.closeEditor(b,!0)};a(h,_$_5e1e[586])?d&&(e.value=(_$_5e1e[3]+d).split(n)):e.value=d;jSuites.dropdown(l,e)},closeEditor:function(b,d,e,f,g,h){for(var l=g.parent.input.children[0],n=h.delimiter||_$_5e1e[263],q=l.dropdown.getText(!0),p=l.dropdown.getValue(!0),r=0;r<p.length;r++)!1===c.getItem(b,p[r],e,f,g,h)&&h.source.push({id:p[r],name:q[r]});l.dropdown.close(!0);if(d)return p.join(n)},fromLabel:function(b,d,e,f,g,h){b=h.delimiter||
424
- _$_5e1e[263];e=[];f=[];Array.isArray(d)||(d=(_$_5e1e[3]+d).split(b));for(g=0;g<d.length;g++)f[d[g].trim()]=!0;d=Object.keys(f);!a(h,_$_5e1e[586])&&1<Object.keys(d).length&&(f=[],f[d[0]]=!0);for(d=0;d<h.source.length;d++)f[h.source[d].name]&&e.push(h.source[d].id);return e.join(b)},getItem:function(b,d,e,f,g,h){f=h.delimiter||_$_5e1e[263];b=[];e=[];Array.isArray(d)||(d=(_$_5e1e[3]+d).split(f));for(f=0;f<d.length;f++)e[d[f].trim()]=!0;f=Object.keys(e);!a(h,_$_5e1e[586])&&1<Object.keys(f).length&&(d=
425
- [],d[f[0]]=!0,e=d);if(h.source&&typeof h.source[0]!==_$_5e1e[84])for(d=0;d<h.source.length;d++)f=h.source[d],h.source[d]={id:f,name:f};for(d=0;d<h.source.length;d++)typeof e[h.source[d].id]!==_$_5e1e[13]&&b.push(h.render==_$_5e1e[255]?h.source[d].color:h.render==_$_5e1e[587]?h.source[d].image:h.source[d].name);if(b.length){if(typeof h.render!==_$_5e1e[13]){for(d=0;d<b.length;d++)e=d,f=b[d],f=h.render==_$_5e1e[255]?_$_5e1e[588]+f+_$_5e1e[589]:h.render==_$_5e1e[587]?_$_5e1e[588]+f+_$_5e1e[589]:h.render==
426
- _$_5e1e[583]?_$_5e1e[591]+(h.source[d].color||_$_5e1e[590])+_$_5e1e[592]+f+_$_5e1e[593]:void 0,b[e]=f;return b.join(_$_5e1e[3])}for(d=0;d<b.length;d++)b[d]=(_$_5e1e[3]+b[d]).replace(_$_5e1e[215],_$_5e1e[594]);return b.join(_$_5e1e[295])}return!1}};c[_$_5e1e[51]]=function(b,d){for(var e=0;e<b.source.length;e++)if(b.source[e].id==d)return b.render==_$_5e1e[255]?b.source[e].color:b.render==_$_5e1e[587]?b.source[e].image:b.source[e].name};return c}();k.autocomplete=k.dropdown;k.calendar=function(){var c=
427
- {},b=null;c.updateCell=function(d,e,f,g,h,l){if(d){f=e;l=c.getFormat(l);0<e&&Number(e)==e&&(f=jSuites.calendar.numToDate(e));g=_$_5e1e[3]+e;g.substr(4,1)==_$_5e1e[185]&&g.substr(7,1)==_$_5e1e[185]?g=!0:(g=g.split(_$_5e1e[185]),g=4==g[0].length&&g[0]==Number(g[0])&&2==g[1].length&&g[1]==Number(g[1])?!0:!1);g||(g=jSuites.calendar.extractDateFromString(e,l))&&(f=g);if(f=jSuites.calendar.getDateString(f,l))return d.innerText=f,e;d.innerText=_$_5e1e[3];return _$_5e1e[3]}};c.createCell=c.updateCell;c.openEditor=
428
- function(d,e,f,g,h,l){l=Object.create(l);typeof l.filterOptions==_$_5e1e[85]&&(l=l.filterOptions(h,d,f,g,e,l));f=l.options||{};f.opened=!0;f.onclose=function(n,q){h.closeEditor(d,!0)};typeof l.timepicker!==_$_5e1e[13]&&(f.time=a(l,_$_5e1e[595])?!0:!1);typeof f.readonly!==_$_5e1e[13]&&(f.readonly=f.readonly);f.value=e||null;f.placeholder=f.format;b=k.createEditor(_$_5e1e[220],d,e,h);jSuites.calendar(b,f);!1===b.calendar.options.readonly&&b.focus()};c.closeEditor=function(d,e,f,g,h){d=b.calendar.close(!0,
429
- b.value?!0:!1);d=b.value?d:_$_5e1e[3];if(e)return d};c.getFormat=function(d){return d&&d.format?d.format:d&&d.options&&d.options.format?d.options.format:_$_5e1e[596]};c[_$_5e1e[51]]=function(d,e){d=c.getFormat(d);return jSuites.calendar.getDateString(e,d)};return c}();k.color=function(){var c={},b=null;c.updateCell=function(d,e,f,g,h,l){d&&(l.render==_$_5e1e[597]?(f=document.createElement(_$_5e1e[20]),f.className=_$_5e1e[255],f.style.backgroundColor=e,d.innerText=_$_5e1e[3],d.appendChild(f)):(d.style.color=
430
- e,d.innerText=e))};c.createCell=c.updateCell;c.openEditor=function(d,e,f,g,h,l){l=Object.create(l);typeof l.filterOptions==_$_5e1e[85]&&(l=l.filterOptions(h,d,f,g,e,l));l.value=e;l.onclose=function(n,q){h.closeEditor(d,!0)};b=k.createEditor(_$_5e1e[220],d,e,h);b=jSuites.color(b,l);b.open()};c.closeEditor=function(d,e,f,g,h,l){d=b.close(!0);if(e)return d};c[_$_5e1e[51]]=function(d,e){d=document.createElement(_$_5e1e[20]);d.style.width=_$_5e1e[598];d.style.height=_$_5e1e[22];d.style.backgroundColor=
431
- e;return d.outerHTML};return c}();k.checkbox=function(){var c={createCell:function(b,d,e,f,g,h){d=d&&d!=_$_5e1e[599]&&d!=_$_5e1e[600]?!0:!1;e=document.createElement(_$_5e1e[220]);e.type=_$_5e1e[250];e.checked=d;e.onclick=function(){g.setValue(b,this.checked)};(h&&1==h.readOnly||!g.isEditable())&&e.setAttribute(_$_5e1e[601],_$_5e1e[601]);b.innerHTML=_$_5e1e[3];b.appendChild(e);return d},updateCell:function(b,d){d=d&&d!=_$_5e1e[599]&&d!=_$_5e1e[600]?!0:!1;b&&(b.children[0].checked=d);return d},openEditor:function(b,
432
- d,e,f,g){d=b.children[0].checked?!1:!0;g.setValue(b,d);return!1},closeEditor:function(b,d){return!1}};c[_$_5e1e[51]]=function(b,d){return 1==d||1==d||d==_$_5e1e[229]?jSuites.translate(_$_5e1e[229]):jSuites.translate(_$_5e1e[599])};return c}();k.radio=function(){var c={createCell:function(b,d,e,f,g,h){b.getAttribute(_$_5e1e[42]);e=document.createElement(_$_5e1e[220]);e.type=_$_5e1e[252];e.checked=1==d||1==d||d==_$_5e1e[229]?!0:!1;e.onclick=function(){g.setValue(b,!0)};(h&&1==h.readOnly||!g.isEditable())&&
433
- e.setAttribute(_$_5e1e[601],_$_5e1e[601]);b.innerHTML=_$_5e1e[3];b.appendChild(e)},updateCell:function(b,d,e,f,g){d=1==d||1==d||d==_$_5e1e[229]||d==_$_5e1e[602]?!0:!1;b&&(b.children[0].checked=d);if(1==d){b=[];for(var h=0;h<g.options.data.length;h++)f!=h&&g.options.data[h][e]&&b.push({x:e,y:h,value:0});b.length&&g.setValue(b)}return d},openEditor:function(b,d,e,f,g){return!1},closeEditor:function(b,d){return!1}};c[_$_5e1e[51]]=function(b,d){return 1==d||1==d||d==_$_5e1e[229]?_$_5e1e[229]:_$_5e1e[599]};
434
- return c}();k.autonumber=function(){var c={},b=null;c.createCell=function(d,e,f,g,h,l){(e=parseInt(e))||0<parseInt(d.innerText)&&(e=parseInt(d.innerText));l.sequence||(l.sequence=0);e?c.isValid(e,f,g,h)||(e=_$_5e1e[243]):e=l.sequence+1;e>l.sequence&&(l.sequence=e);return d.innerText=e};c.updateCell=c.createCell;c.openEditor=function(d,e,f,g,h,l){b=k.createEditor(_$_5e1e[220],d,e,h);b.onblur=function(){h.closeEditor(d,!0)};b.focus();b.value=e};c.closeEditor=function(d,e,f,g,h){return e?b.value:_$_5e1e[3]};
435
- c.isValid=function(d,e,f,g){for(var h,l=0;l<g.options.data.length;l++)if(h=g.value(e,l),h==d&&l!=f)return!1;return!0};return c}();k.progressbar=function(){var c={},b=null;c.createCell=function(d,e){e=parseInt(e);if(100<e)e=100;else if(!e||0>e)e=0;if(d.children[0]&&d.children[0].tagName==_$_5e1e[555])var f=d.children[0];else f=document.createElement(_$_5e1e[20]),f.classList.add(_$_5e1e[256]),d.innerText=_$_5e1e[3],d.classList.add(_$_5e1e[603]),d.appendChild(f);f.style.width=parseInt(e)+_$_5e1e[576];
436
- f.setAttribute(_$_5e1e[264],parseInt(e)+_$_5e1e[576])};c.destroyCell=function(d){d.classList.remove(_$_5e1e[603])};c.updateCell=c.createCell;c.openEditor=function(d,e,f,g,h,l){b=k.createEditor(_$_5e1e[220],d,e,h);b.type=_$_5e1e[14];b.setAttribute(_$_5e1e[604],0);b.setAttribute(_$_5e1e[605],100);b.onblur=function(){h.closeEditor(d,!0)};b.focus();b.value=e};c.closeEditor=function(d,e,f,g,h){return e?b.value:_$_5e1e[3]};return c}();k.rating=function(){var c={},b=null;c.createCell=function(d,e,f,g,h,
437
- l){return c.setCell(d,e,l)};c.destroyCell=function(d){d.classList.remove(_$_5e1e[606])};c.updateCell=c.createCell;c.openEditor=function(d,e,f,g,h,l){b=k.createEditor(_$_5e1e[220],d,e,h);b.type=_$_5e1e[14];b.setAttribute(_$_5e1e[604],0);b.setAttribute(_$_5e1e[605],5);b.onblur=function(){h.closeEditor(d,!0)};b.focus();b.value=e};c.closeEditor=function(d,e,f,g,h,l){return e?b.value:_$_5e1e[3]};c.setCell=function(d,e,f){e=parseInt(e);if(5<e)e=5;else if(!e||0>e)e=0;if(d){f=f&&f.color?f.color:_$_5e1e[579];
438
- var g=document.createElement(_$_5e1e[20]);g.setAttribute(_$_5e1e[264],parseInt(e)+_$_5e1e[607]);g.classList.add(_$_5e1e[257]);for(var h=0;h<e;h++){var l=document.createElement(_$_5e1e[443]);l.className=_$_5e1e[508];l.style.color=f;l.innerHTML=_$_5e1e[608];g.appendChild(l)}d.innerHTML=_$_5e1e[3];d.className=_$_5e1e[606];d.appendChild(g)}return e};return c}();k.email=function(){var c={createCell:function(b,d,e,f,g,h){b&&(b.children&&b.children[0]&&b.children[0].tagName==_$_5e1e[562]?e=b.children[0]:
439
- (e=document.createElement(_$_5e1e[201]),b.innerText=_$_5e1e[3],b.appendChild(e),h.options&&h.options.url&&e.setAttribute(_$_5e1e[609],h.options.url)),e.innerText=d)}};c.updateCell=c.createCell;c.openEditor=function(b,d,e,f,g,h){g.parent.input.classList.add(_$_5e1e[558]);g.parent.input.onblur=function(){g.closeEditor(b,!0)};g.parent.input.innerText=d;jSuites.focus(g.parent.input)};c.closeEditor=function(b,d,e,f,g){g.parent.input.classList.remove(_$_5e1e[558]);return d?g.parent.input.innerText.replace(new RegExp(/\n/,
440
- _$_5e1e[188]),_$_5e1e[3]):_$_5e1e[3]};return c}();k.url=k.email;k.image=function(){var c={},b=null;c.createCell=function(d,e,f,g,h,l){d&&(e?d.children&&d.children[0]&&d.children[0].tagName==_$_5e1e[610]?d.children[0].src=e:(f=document.createElement(_$_5e1e[37]),l.render==_$_5e1e[611]&&f.classList.add(_$_5e1e[611]),l.options&&(f.style.maxWidth=_$_5e1e[612],l.options.absolute&&(f.style.position=_$_5e1e[613]),l.options.width&&(f.style.maxWidth=parseInt(l.options.width)+_$_5e1e[44]),l.options.height&&
441
- (f.style.maxHeight=parseInt(l.options.height)+_$_5e1e[44],f.style.marginTop=-1*parseInt(l.options.height)/2+_$_5e1e[44])),f.src=e,d.innerHTML=_$_5e1e[3],d.appendChild(f)):d.innerHTML=_$_5e1e[3])};c.updateCell=c.createCell;c.openEditor=function(d,e,f,g,h,l){(l&&l.options?l.options:{}).value=e;b=k.createDialog(d,e,f,g,h,l);e&&(d=document.createElement(_$_5e1e[37]),d.src=e,d.classList.add(_$_5e1e[614]),d.style.width=_$_5e1e[612],b.appendChild(d));jSuites.image(b,l)};c.closeEditor=function(d,e,f,g,h,
442
- l){if(e&&(d=b.children[0]))return d.tagName==_$_5e1e[610]?d.src:_$_5e1e[3]};c[_$_5e1e[51]]=function(d,e){return _$_5e1e[615]+e+_$_5e1e[616]};return c}();k.html=function(){var c={},b=null;c.createCell=function(d,e){d.classList.add(_$_5e1e[617]);var f=document.createElement(_$_5e1e[20]);f.innerHTML=e;d.appendChild(f)};c.updateCell=function(d,e){d&&(d.firstChild.innerHTML=e)};c.destroyCell=function(d){d.classList.remove(_$_5e1e[617])};c.openEditor=function(d,e,f,g,h,l){var n=l&&l.options?l.options:{};
443
- n.focus=!0;n.value=e;n.border=!1;n.height=_$_5e1e[582];e=k.createDialog(d,e,f,g,h,l);b=jSuites.editor(e,n);b.close=function(){h.closeEditor(d,!0)};jSuites.tracking(b,!0)};c.closeEditor=function(d,e,f,g,h,l){jSuites.tracking(b,!1);d=b.getData();if(e)return d};return c}();k.hidden=function(){return{createCell:function(c,b,d,e,f){c.style.display=_$_5e1e[40];c.innerText=b},updateCell:function(c,b,d,e,f){c&&(c.innerText=b)},openEditor:function(c,b,d,e,f){return!1},closeEditor:function(c,b){return!1}}}();
444
- k.tags=function(){var c={},b=null;c.createCell=function(d,e){d.classList.add(_$_5e1e[618]);c.updateCell(d,e)};c.updateCell=function(d,e){d&&(d.innerHTML=e)};c.destroyCell=function(d){d.classList.remove(_$_5e1e[618])};c.openEditor=function(d,e,f,g,h,l){var n=l&&l.options?l.options:{};n.value=e;b=k.createDialog(d,e,f,g,h,l);d=document.createElement(_$_5e1e[20]);d.style.margin=_$_5e1e[22];d.style.marginRight=_$_5e1e[619];b.appendChild(d);b=jSuites.tags(d,n);d.focus();jSuites.focus(d)};c.closeEditor=
445
- function(d,e,f,g,h,l){d=b.getValue();if(e)return d};return c}();k.record=function(){var c={},b=null;c.createCell=function(d,e,f,g,h,l){d.classList.add(_$_5e1e[585]);var n;(n=h.parent.getWorksheetInstance(l.worksheetId))?n.rows?c.updateCell(d,e,f,g,h,l):(d.innerText=_$_5e1e[243],h.parent.queue.push([h,f,g])):(d.innerText=_$_5e1e[243],h.parent.queue.push([h,f,g]))};c.destroyCell=function(d){d.classList.remove(_$_5e1e[585])};c.updateCell=function(d,e,f,g,h,l){d&&(typeof l.worksheetId==_$_5e1e[13]?d.innerText=
446
- _$_5e1e[243]:d.innerHTML=c.getValue(d,e,f,g,h,l))};c.openEditor=function(d,e,f,g,h,l){var n=l.delimiter||_$_5e1e[263];l=Object.create(l);l.options||(l.options={});typeof l.filter==_$_5e1e[85]&&(l.source=l.filter(h.el,d,f,g,l.source));typeof l.filterOptions==_$_5e1e[85]&&(l=l.filterOptions(h,d,f,g,e,l));f=l.options;f.data=c.getSource(h,l);a(l,_$_5e1e[586])&&(f.multiple=!0);a(l,_$_5e1e[57])&&(f.autocomplete=!0);f.opened=!0;f.width=d.offsetWidth-2;f.onclose=function(){h.closeEditor(d,!0)};a(l,_$_5e1e[586])?
447
- e&&(f.value=(_$_5e1e[3]+e).split(n)):f.value=e;b=k.createEditor(_$_5e1e[20],d,e,h);b=jSuites.dropdown(b,f)};c.closeEditor=function(d,e,f,g,h,l){d=l.delimiter||_$_5e1e[263];f=b.getValue(!0);b.close(!0);if(e)return f.join(d)};c.getValue=function(d,e,f,g,h,l){d=[];if(typeof l.worksheetId==_$_5e1e[17]&&(h=h.parent.getWorksheetInstance(l.worksheetId))){f=l.worksheetColumn?l.worksheetColumn:0;0<=l.worksheetImage&&(f=l.worksheetImage);if(e==_$_5e1e[3]||0==e||null==e||void 0==e)return _$_5e1e[3];e=(_$_5e1e[3]+
448
- e).split(_$_5e1e[263]);for(g=0;g<e.length;g++){var n=e[g].trim();var q=h.name(f);n=h.getRowById(n);q=!1===n?_$_5e1e[620]:n[q];0<=l.worksheetImage&&(q=_$_5e1e[621]+q+_$_5e1e[622]);d.push(q)}return 0<=l.worksheetImage?d.join(_$_5e1e[3]):d.join(_$_5e1e[295])}return _$_5e1e[243]};c.getSource=function(d,e){var f=e.worksheetColumn?e.worksheetColumn:0,g=null;typeof e.worksheetId==_$_5e1e[17]&&(g=d.parent.getWorksheetInstance(e.worksheetId));if(g){var h,l=[];for(d=0;d<g.rows.length;d++)if(h=g.value(f,d))h=
449
- {id:g.getRowId(d),name:h},void 0!=e.worksheetImage&&(h.image=g.value(e.worksheetImage,d)),l.push(h)}else console.error(_$_5e1e[623]+e.worksheetId);return l};c[_$_5e1e[51]]=function(d,e){for(var f=0;f<d.source.length;f++)if(d.source[f].id==e)return d.render==_$_5e1e[255]?d.source[f].color:d.render==_$_5e1e[587]?d.source[f].image:d.source[f].name};return c}();return k}();typeof jQuery!==_$_5e1e[13]&&function(k){k.fn.jspreadsheet=k.fn.jexcel=function(a){var c=k(this)[_$_5e1e[51]](0);if(c.jspreadsheet){if(typeof arguments[0]==
450
- _$_5e1e[14])var b=arguments[0],d=2;else b=0,d=1;return c.jspreadsheet[b][a].apply(c.jspreadsheet[b],Array.prototype.slice.call(arguments,d))}return t(k(this)[_$_5e1e[51]](0),arguments[0])}}(jQuery);return t});
41
+ "data-current","html","jss_nowrap","insertHTML","<br/>\n","Process","A","mailto:","_blank","onclick","jclose","col-resize","row-resize","move","TD","Cloud plugin not loaded.","jtabs","jss_dialog","#","decimal","data-locale","%","jss_percent","\\[Red\\]","red","\\(","jss_notes","145px","tag","jss_dropdown_tags","jss_dropdown","multiple","image","<div class='jss_dropdown_icon' style='background-color: ","'></div>","orange","<div class='jss_dropdown_tag' style='background-color: ","'>","</div>","&lt;",
42
+ "timepicker","YYYY-MM-DD","square","100px","false","FALSE","disabled","TRUE","jss_progressbar","min","max","jss_rating"," stars","star","href","IMG","round","100%","absolute","jfile",'<img src="','" alt="">',"jss_richtext","jss_tags","40px","#NOTFOUND","<img src='","' class='round small' />","Jspreadsheet: worksheet not found "];
43
+ (function(C,H){typeof exports===_$_9989[84]&&typeof module!==_$_9989[13]?module.exports=H():typeof define===_$_9989[85]&&define.amd?define(H):C.jspreadsheet=C.jexcel=H()})(this,function(){_$_9989[0];var C=function(k,c){k=jSuites.translate(k);if(c&&c.length)for(var b=0;b<c.length;b++)k=k.replace(_$_9989[1]+b+_$_9989[2],c[b]);return k},H=function(k,c){Array.isArray(k)&&(k=k[0]);k=k.replace(new RegExp(/'/g),_$_9989[3]).toUpperCase();if(void 0===c)return window[k]?window[k]:null;window[k]=c},K=function(){var k=
44
+ {version:_$_9989[4],edition:_$_9989[5],host:_$_9989[6],license:_$_9989[7],print:function(){return[_$_9989[8]+this.edition+_$_9989[9]+this.version+_$_9989[10]+this.host+_$_9989[10]+this.license]}};return function(){return k}}(),S=function(k){var c=parseInt(k.y);if(k.id)var b=parseInt(k.id);else k.value&&(b=parseInt(k.value));0<b&&(this.rows[c].id=b,sa[_$_9989[11]].call(this,b))},P=function(k){return(_$_9989[3]+k).substr(0,1)===_$_9989[12]},Z=function(k){var c=this.options.columns;return c[k]&&c[k].name?
45
+ c[k].name:k},N=function(k,c,b){var a;if(a=this.options.data[c]){var d=0<=k?Z.call(this,k):k;typeof b===_$_9989[13]?b=typeof d===_$_9989[14]?a[k]:jSuites.path.call(a,_$_9989[3]+d):(typeof d===_$_9989[14]?a[k]=b:jSuites.path.call(a,_$_9989[3]+d,b),!P(b)&&this.records[c][k]&&(this.records[c][k].v=b))}else b=null;return b},Q=function(k){return 0==this.config.editable||k&&0==k.options.editable?!1:(k=Ia.call(this))?7<=k?!0:!1:!0},Ja=function(k){var c=_$_9989[15];if(this.parent)var b=this.parent.config,
46
+ a=this.parent.element,d=this;else b=this.config,a=this.element,d=t.current?t.current:null;typeof k===_$_9989[13]&&(k=!a.classList.contains(c));k?(a.classList.add(c),b.fullscreen=!0):(a.classList.remove(c),b.fullscreen=!1);d&&(d.tbody.innerHTML=_$_9989[3],G.call(d),T.refresh.call(d),fa.update.call(d.parent,d))},Ka=function(k){var c=this.loading;null===k&&(k=c.style.display==_$_9989[16]?!0:!1);c.style.display=k?_$_9989[16]:_$_9989[3];setTimeout(function(){c.style.display=_$_9989[3]},1E3)},Fa=function(k,
47
+ c){if(typeof k===_$_9989[17]){var b=E.getCoordsFromColumnName(k);b=this.records[b[1]][b[0]];if(b.element)k=b.element;else return typeof c===_$_9989[13]?b.readonly:b.readonly=c?!0:!1}b=_$_9989[18];k=k.classList;if(typeof c===_$_9989[13])return k.contains(b)?!0:!1;c?k.add(b):k.remove(b)},xa=function(k){var c=_$_9989[19],b=this.table.classList;if(typeof k==_$_9989[13])return b.contains(c)?!1:!0;k?b.remove(c):b.add(c);0<this.options.freezeColumns&&ma[_$_9989[11]].call(this,this.options.freezeColumns);
48
+ this.refreshBorders()},Ia=function(k){if(void 0===k)return this.status;var c=document.createElement(_$_9989[20]);c.style.textAlign=_$_9989[21];c.style.fontSize=_$_9989[22];c.style.cursor=_$_9989[23];c.onclick=function(){window.location.href=K().host+_$_9989[24]};var b=null,a=[74,50,48,50,48,33].join(_$_9989[3]);(function(e){b=1;try{if(e){var f=window.atob(e);f=f.split(_$_9989[25]);if(f[1]){f[1]=window.atob(f[1]);var g=f[0];e=a;var h=f[1],l=jSuites.sha512,m=_$_9989[3],n=_$_9989[3];128<e.length&&(e=
49
+ l(e));for(var p=0;128>p;p++){var q=e[p]?e[p].charCodeAt(0):0;m+=String.fromCharCode(54^q);n+=String.fromCharCode(92^q)}var v=l(n+l(m+h));if(g!=v)b=3;else if(f[1]=JSON.parse(f[1]),f[1].date){var u=window.location.hostname||_$_9989[26],w=u.split(_$_9989[27]);u=u.split(_$_9989[27]);2<u.length&&!jSuites.isNumeric(u[u.length-1])&&w.shift();w=w.join(_$_9989[27]);u=u.join(_$_9989[27]);if(-1==f[1].domain.indexOf(w)&&-1==f[1].domain.indexOf(u))b=4;else if(f[1].scope&&0<=f[1].scope.indexOf(_$_9989[28])){u=
50
+ new Date;w=parseInt(u.getTime()/1E3);var y=K();f[1].date<w?(b=f[1].date+2592E3<w&&!f[1].plan||f[1].date+15552E3<w?6:7,y.license=f[1].name+_$_9989[29]):(b=8,y.license=_$_9989[30]+f[1].name,y.edition=3==f[1].plan||6==f[1].plan?_$_9989[31]:_$_9989[5])}else b=5}else b=4}else b=2}}catch(x){}})(k);k=_$_9989[3];if(1==b)k=_$_9989[32];else if(2==b||3==b||4==b)k=_$_9989[33];else if(5==b)k=_$_9989[34];else if(6==b||7==b)k=_$_9989[35];c.appendChild(document.createTextNode(k));if(8>b)try{if(typeof sessionStorage!==
51
+ _$_9989[13]&&!sessionStorage.getItem(_$_9989[36])){sessionStorage.setItem(_$_9989[36],!0);var d=document.createElement(_$_9989[37]);d.src=K().host+_$_9989[38]+_$_9989[39];d.style.display=_$_9989[40];c.appendChild(d)}}catch(e){}Object.defineProperty(this,_$_9989[41],{value:b,writable:!1,configurable:!1,enumerable:!1,extensible:!1});K().edition===_$_9989[31]&&(this.edition=1);return c},T=function(){var k=function(){if(this.edition){var d=this.edition.getAttribute(_$_9989[42]),e=this.edition.getAttribute(_$_9989[43]);
52
+ da.position.call(this,d,e)}},c=function(){this.scrollX.scrollWidth<this.scrollX.scrollLeft+this.scrollX.offsetWidth+25?(this.content.scrollLeft=this.content.scrollWidth,0<this.options.freezeColumns&&ha.refresh.call(this)):this.content.scrollLeft=0;k.call(this)},b=function(){var d=this.tbody.lastChild.getAttribute(_$_9989[43]),e=this.scrollY.scrollHeight-this.content.offsetHeight-this.scrollY.scrollTop;this.content.scrollTop=d!=(this.results?this.rows[this.results[this.results.length-1]].y:this.rows[this.rows.length-
53
+ 1].y)&&e?0:this.content.scrollHeight;k.call(this)},a=function(){if(G.limited.call(this)){var d=ma.getWidth.call(this),e=this.content.offsetWidth,f=this.content.offsetHeight;this.width=a.width.call(this)+(d?d:1);this.height=a.height.call(this);this.tfoot.offsetHeight&&(this.height+=this.tfoot.offsetHeight+26);this.scrollX.firstChild.style.width=this.width+_$_9989[44];this.scrollY.firstChild.style.height=this.height+_$_9989[44];this.scrollX.style.width=e+_$_9989[44];this.scrollY.style.height=f+_$_9989[44];
54
+ this.scrollX.style.display=this.width>e?_$_9989[3]:_$_9989[40];this.scrollY.style.display=this.height>f?_$_9989[3]:_$_9989[40]}else this.scrollX.style.display=_$_9989[40],this.scrollY.style.display=_$_9989[40]};a.refresh=function(){this.scrollY.scrollTop=0;this.scrollX.scrollLeft=0;a.call(this)};a.updateX=function(){if(a.event)return!1;var d=parseInt(this.thead.lastChild.children[(this.options.freezeColumns||0)+1].getAttribute(_$_9989[42]));a.setX.call(this,a.width.call(this,d));c.call(this)};a.updateY=
55
+ function(){if(a.event)return!1;if(this.tbody.firstChild){var d=parseInt(this.tbody.firstChild.getAttribute(_$_9989[43]));a.setY.call(this,a.height.call(this,d));b.call(this)}};a.setX=function(d){a.ignore=!0;this.scrollX.scrollLeft=d};a.setY=function(d){a.ignore=!0;this.scrollY.scrollTop=d};a.update=function(d,e){e==_$_9989[45]?(d=a.width.call(this,null,d.target.scrollLeft/(d.target.scrollWidth-this.content.offsetWidth)*this.width),G.reset.call(this),G[_$_9989[46]].call(this,null,d),c.call(this)):
56
+ (d=a.height.call(this,null,d.target.scrollTop/(d.target.scrollHeight-this.content.offsetHeight)*(this.height-(this.tbody.offsetHeight-5))),this.tbody.textContent=_$_9989[3],G[_$_9989[46]].call(this,d),b.call(this))};a.build=function(d){var e=this,f=document.createElement(_$_9989[20]),g=document.createElement(_$_9989[20]);f.className=_$_9989[47]+d;g.className=_$_9989[48]+d;f.appendChild(g);d==_$_9989[45]?f.style.height=_$_9989[22]:f.style.width=_$_9989[22];f.onscroll=function(h){if(a.ignore)return a.ignore=
57
+ !1;a.event=!0;a.update.call(e,h,d);a.event=!1};return f};a.width=function(d,e){for(var f=this.options.columns,g=0,h=this.options.freezeColumns||0;h<this.options.columns.length;h++){if(d===h)return g;!1!==f[h].visible&&f[h].type!==_$_9989[49]&&(g+=parseInt(f[h].width));if(g>=e)return h}return e?h:g};a.height=function(d,e){var f=0,g=0;this.options.defaultRowHeight||(this.options.defaultRowHeight=26);for(var h=this.results?this.results:this.rows,l=0;l<h.length;l++){g=l;this.results&&(g=h[l]);if(d===
58
+ g)return f;this.rows[g]&&!1!==this.rows[g].visible&&(f=this.rows[g].height?f+parseInt(this.rows[g].height):this.rows[g].element&&this.rows[g].element.offsetHeight?f+parseInt(this.rows[g].element.offsetHeight):f+parseInt(this.options.defaultRowHeight));if(f>=e)return g}return e?g:f};return a}(),G=function(){var k=function(b,a){var d=this.thead.clientHeight;a||(a=1);var e=!1,f=!1,g=b.getAttribute(_$_9989[42]),h=b.getAttribute(_$_9989[43]);var l=this.records[h][g];l.merged&&(g-=l.merged[0],h-=l.merged[1],
59
+ b=this.records[h][g].element);h=this.content.getBoundingClientRect();l=b.getBoundingClientRect();var m=ma.getWidth.call(this),n=h.left+m,p=h.left+h.width;g=h.top+d;var q=h.top+h.height;var v=0;h=l.top;h>=g&&h<=q||(v++,e=!0);h=l.top+l.height;h>=g&&h<=q||v++;if(v>=a)return 2>a&&(a=this.content.scrollTop,0==e?q-g>l.height&&(this.content.scrollTop+=h-q+3,T.ignore=!0,this.scrollY.scrollTop+=h-q+3):(this.content.scrollTop=b.offsetTop-d,T.ignore=!0,this.scrollY.scrollTop-=a-this.content.scrollTop)),!1;if(!m||
60
+ !b.classList.contains(_$_9989[50]))if(v=0,g=l.left,g>=n&&g<=p||(v++,f=!0),g=l.left+l.width,g>=n&&g<p||v++,v>=a)return 2>a&&(a=this.content.scrollLeft,0==f?p-n>l.width&&(this.content.scrollLeft+=g-p+3,T.ignore=!0,this.scrollX.scrollLeft+=g-p+3):(this.content.scrollLeft=b.offsetLeft-n-50,T.ignore=!0,this.scrollX.scrollLeft-=a-this.content.scrollLeft)),!1;return!0},c=function(){var b=0;this.results&&(b=this.results[0]);c.reset.call(this,!0);c.renderX.call(this,0);c.renderY.call(this,b);ma.headers.call(this);
61
+ 0<this.options.pagination&&ta.update.call(this);X.update.call(this);this.refreshBorders();T.call(this)};c.limited=function(){return 1==this.options.tableOverflow||1==this.parent.config.fullscreen};c.refresh=function(){if(!this.tbody.lastChild)return!1;var b=parseInt(this.thead.lastChild.lastChild.getAttribute(_$_9989[42]))+1,a=parseInt(this.tbody.lastChild.getAttribute(_$_9989[43]));this.results?(a=this.results.indexOf(a),a<this.results.length-1&&a++,a=this.results[a]):a++;c.renderX.call(this,b);
62
+ c.renderY.call(this,a);c.adjustX.call(this,!1,!0);c.adjustY.call(this,!1,!0);T.call(this)};c.renderX=function(b,a,d){var e=this.options.columns,f=0,g=[],h=(this.options.freezeColumns||0)+1;1==this.parent.config.fullscreen?f=this.content.offsetWidth:1==this.options.tableOverflow&&(f=parseInt(this.options.tableWidth));var l=this.headerContainer.offsetWidth||0;for(d||(d=0);e[b]&&(!f||l<f||0<d);){!1!==e[b].visible&&e[b].type!==_$_9989[49]&&(l+=parseInt(e[b].width));0<d&&d--;var m=ba.getWidth.call(this,
63
+ b,g);m>d&&(d=m);a?(c.renderColumn.call(this,b,h),b--):(c.renderColumn.call(this,b),b++)}ba.batch.call(this,g)};c.renderY=function(b,a,d){var e=0,f=[];1==this.parent.config.fullscreen?e=this.content.offsetHeight:1==this.options.tableOverflow&&(e=parseInt(this.options.tableHeight));e&&(e-=this.thead.offsetHeight+4,this.tfoot.offsetHeight&&(e-=this.tfoot.offsetHeight+14));var g=this.tbody.offsetHeight;var h=this.options.freezeColumns||0,l=parseInt(this.headerContainer.lastChild.getAttribute(_$_9989[42]));
64
+ h=this.headerContainer.children[h+1]?parseInt(this.headerContainer.children[h+1].getAttribute(_$_9989[42])):l;var m=this.results?this.results.indexOf(b):b,n=parseInt(this.options.pagination)||0,p=this.tbody.children.length||0,q=!1;for(d||(d=0);this.options.data&&this.options.data[b]&&(!n||p<n||0<d)&&(!e||g<=e||0<d);){var v=c.renderRow.call(this,b,h,l);a?(this.tbody.insertBefore(v,this.tbody.firstChild),m--):(this.tbody.appendChild(v),m++);this.rows[b].height?(v.offsetHeight!==this.rows[b].height&&
65
+ (this.rows[b].height=v.offsetHeight,q=!0),g+=this.rows[b].height):(g+=this.rows[b].height=v.offsetHeight,q=!0);0<d&&d--;b=ba.getHeight.call(this,b,f);b>d&&(d=b);b=this.results?this.results[m]:m;p++}ba.batch.call(this,f);q&&T.call(this)};c.renderColumn=function(b,a,d){this.headers[b]||Ba.create.call(this,b);if(this.options.nestedHeaders)for(d=0;d<this.options.nestedHeaders.length;d++){var e=pa.getColumns.call(this,d);void 0!==e[b]&&pa.renderCell.call(this,e[b],d,a)}if(this.options.footers)for(d=0;d<
66
+ this.options.footers.length;d++)e=aa.create.call(this,b,d),null===a?this.tfoot.children[d].appendChild(e):this.tfoot.children[d].insertBefore(e,this.tfoot.children[d].children[a]);null===a?(this.headerContainer.appendChild(this.headers[b]),this.colgroupContainer.appendChild(this.colgroup[b])):(this.headerContainer.insertBefore(this.headers[b],this.headerContainer.children[a]),this.colgroupContainer.insertBefore(this.colgroup[b],this.colgroupContainer.children[a]));if(this.tbody.children.length)for(d=
67
+ 0;d<this.tbody.children.length;d++)e=parseInt(this.tbody.children[d].getAttribute(_$_9989[43])),(e=M[_$_9989[51]].call(this,b,e))&&(null===a?this.tbody.children[d].appendChild(e):this.tbody.children[d].insertBefore(e,this.tbody.children[d].children[a]))};c.renderRow=function(b,a,d,e){var f=this.options.freezeColumns||0;null==a&&(a=parseInt(this.headerContainer.children[f+1].getAttribute(_$_9989[42])));null==d&&(d=parseInt(this.headerContainer.lastChild.getAttribute(_$_9989[42])));var g=za.create.call(this,
68
+ b,e);if(g.children.length)for(;g.children[f+1];)g.removeChild(g.lastChild);if(0<f){for(var h=0;h<f;h++)g.appendChild(M[_$_9989[51]].call(this,h,b));ma.update.call(this,b)}for(h=a;h<=d;h++)a=M[_$_9989[51]].call(this,h,b,e),g.appendChild(a);return g};c.resetY=function(){if(this.options.pagination){this.pageNumber||(this.pageNumber=0);var b=this.options.pagination*this.pageNumber}else b=0;var a=0;if(this.merged.rows[b]){for(a=this.options.pagination;this.merged.rows[b]&&0<=b;)b--;b++}this.tbody.textContent=
69
+ _$_9989[3];this.results&&this.results.length&&(b=this.results[b]);(!this.results||0<this.results.length)&&G.renderY.call(this,b,0,a);0<this.options.pagination&&ta.update.call(this);T.call(this);this.refreshBorders()};c[_$_9989[46]]=function(b,a){if(null!==b&&0<=b)if(0<this.options.pagination)this.page(this.whichPage(b));else if(this.rows[b]||(b=this.options.data.length-1),!za.attached.call(this,b)){if(this.merged.rows[b]){for(;this.merged.rows[b]&&0<=b;)b--;b++}this.tbody.textContent=_$_9989[3];c.renderY.call(this,
70
+ b);var d=this.results?this.results.indexOf(b):b;0<d&&(this.results?d=this.results[d-1]:d--,c.renderY.call(this,d,!0));T.updateY.call(this)}if(null!==a&&0<=a&&(this.options.columns[a]||(a=this.options.columns.length-1),b||(b=c.getY.call(this)),!M.attached.call(this,a,b))){if(this.merged.cols[a]){for(d=b=0;d<this.rows.length;d++)this.records[d][a].merged&&(b=this.records[d][a].merged[0]);a-=b}c.reset.call(this);c.renderX.call(this,a);0<a&&c.renderX.call(this,a-1,!0);T.updateX.call(this)}this.refreshBorders()};
71
+ c.pageUp=function(b,a,d){var e=parseInt(this.tbody.firstChild.getAttribute(_$_9989[43]));if(a){b=null;var f=this.results?this.results[0]:0}else this.results?(f=this.results.indexOf(e),0<f&&f--,f=this.results[f]):(f=e,0<f&&f--);if(f<e){if(null==b)this.tbody.textContent=_$_9989[3];else{e=b;if(this.options.mergeCells){var g=parseInt(this.tbody.lastChild.getAttribute(_$_9989[43]));e+=ba.getHeight.call(this,g)}for(g=0;g<e;g++)this.tbody.removeChild(this.tbody.lastChild)}c.renderY.call(this,f,!a,b);c.adjustY.call(this,
72
+ !1);d&&d.preventDefault();T.updateY.call(this)}this.refreshBorders()};c.pageDown=function(b,a,d){var e=parseInt(this.tbody.lastChild.getAttribute(_$_9989[43]));if(a){b=null;var f=this.results?this.results[this.results.length-1]:this.rows.length-1}else this.results?(f=this.results.indexOf(e),f<this.results.length-1&&f++,f=this.results[f]):(f=e,e<this.options.data.length-1&&f++);if(f>e){if(null==b)this.tbody.textContent=_$_9989[3];else{e=b;if(this.options.mergeCells){var g=parseInt(this.tbody.firstChild.getAttribute(_$_9989[43]));
73
+ e+=ba.getHeight.call(this,g)}for(g=0;g<e;g++)this.tbody.removeChild(this.tbody.firstChild)}c.renderY.call(this,f,a,b);c.adjustY.call(this,!0);d&&d.preventDefault();T.updateY.call(this)}this.refreshBorders()};c.removeColumns=function(b,a){var d=null===a?this.headerContainer.lastChild:this.headerContainer.children[a];if(d)d=parseInt(d.getAttribute(_$_9989[42]));else return!1;if(this.options.mergeCells){for(var e=0,f=d,g=0;g<b;g++){var h=ba.getWidth.call(this,f);h>e&&(e=h);null===a?f--:f++}b+=e}b>=this.headerContainer.children.length&&
74
+ (b=this.headerContainer.children.length-1);if((e=this.options.nestedHeaders)&&e.length)for(f=0;f<e.length;f++)for(h=pa.getColumns.call(this,f),g=0;g<b;g++)if(void 0!==h[d+g]&&this.nested.content[f][h[d+g]]){var l=this.nested.content[f][h[d+g]].element,m=l.getAttribute(_$_9989[52]);0<m&&m--;0<m?l.setAttribute(_$_9989[52],m):l.parentNode&&this.thead.children[f].removeChild(l)}for(g=0;g<b;g++)null===a?(this.headerContainer.removeChild(this.headerContainer.lastChild),this.colgroupContainer.removeChild(this.colgroupContainer.lastChild)):
75
+ this.headerContainer.children[a]&&(this.headerContainer.removeChild(this.headerContainer.children[a]),this.colgroupContainer.removeChild(this.colgroupContainer.children[a]));for(f=0;f<this.tbody.children.length;f++)for(g=0;g<b;g++)null===a?this.tbody.children[f].removeChild(this.tbody.children[f].lastChild):this.tbody.children[f].children[a]&&this.tbody.children[f].removeChild(this.tbody.children[f].children[a]);for(f=0;f<this.tfoot.children.length;f++)for(g=0;g<b;g++)null===a?this.tfoot.children[f].removeChild(this.tfoot.children[f].lastChild):
76
+ this.tfoot.children[f].removeChild(this.tfoot.children[f].children[a])};c.pageLeft=function(b,a){var d=this.options.freezeColumns||0;if(a){b=null;var e=d}else e=parseInt(this.thead.lastChild.children[d+1].getAttribute(_$_9989[42]))-1;e>=d&&(null==b?c.reset.call(this):c.removeColumns.call(this,b,null),c.renderX.call(this,e,!a,b),c.adjustX.call(this,!1),T.updateX.call(this));this.refreshBorders()};c.pageRight=function(b,a){var d=this.options.freezeColumns||0;if(a){b=null;var e=this.options.columns.length-
77
+ 1}else e=parseInt(this.thead.lastChild.lastChild.getAttribute(_$_9989[42]))+1;e<this.options.columns.length&&(null==b?c.reset.call(this):c.removeColumns.call(this,b,d+1),c.renderX.call(this,e,a,b),c.adjustX.call(this,!0),T.updateX.call(this));this.refreshBorders()};c.reset=function(b){1<this.headerContainer.children.length&&(b=b?0:this.options.freezeColumns||0,c.removeColumns.call(this,this.headerContainer.children.length-(b+1),b+1))};c.getX=function(){if(this.thead.lastChild)return parseInt(this.thead.lastChild.children[1].getAttribute(_$_9989[42]))};
78
+ c.getY=function(){if(this.tbody.firstChild)return parseInt(this.tbody.firstChild.getAttribute(_$_9989[43]))};c.adjustX=function(b,a){var d=this.options.freezeColumns||0;if(b)var e=this.options.columns.length-1,f=parseInt(this.tbody.firstChild.lastChild.getAttribute(_$_9989[42])),g=parseInt(this.tbody.firstChild.children[d+1].getAttribute(_$_9989[42]));else e=d,f=parseInt(this.tbody.firstChild.children[d+1].getAttribute(_$_9989[42])),g=parseInt(this.tbody.firstChild.lastChild.getAttribute(_$_9989[42]));
79
+ f===e&&(b?g--:g++,c.renderX.call(this,g,b));if(!0===a){b=[];for(d+=1;d<this.thead.lastChild.children.length;d++)k.call(this,this.tbody.firstChild.children[d],2)||b.push(d);b.length&&c.removeColumns.call(this,b.length,b[0])}};c.adjustY=function(b,a){if(b)var d=this.rows.length-1,e=parseInt(this.tbody.lastChild.getAttribute(_$_9989[43])),f=parseInt(this.tbody.firstChild.getAttribute(_$_9989[43]));else d=0,e=parseInt(this.tbody.firstChild.getAttribute(_$_9989[43])),f=parseInt(this.tbody.lastChild.getAttribute(_$_9989[43]));
80
+ e==d&&(this.results?(d=this.results.indexOf(f),f=b?this.results[d-1]:this.results[d+1]):b?f--:f++,c.renderY.call(this,f,b));if(!0===a){b=[];for(a=0;a<this.tbody.children.length;a++)this.tbody.children[a].children[1]&&(k.call(this,this.tbody.children[a].children[1],2)||b.push(this.tbody.children[a].firstChild.getAttribute(_$_9989[43])));if(b.length)for(a=0;a<b.length;a++)this.rows[b[a]].element.remove()}};c.isVisible=k;return c}(),La=function(k,c,b,a){for(var d=this.options.columns,e=k,f,g=null;k<
81
+ d.length-1;)if(k++,!1!==d[k].visible&&d[k].type!==_$_9989[49]){f=this.records[c]&&this.records[c][k].v===_$_9989[3]?!1:!0;null===g&&(g=f);if(this.records[c]&&this.records[c][k].element&&this.records[c][k].element.style.display==_$_9989[40]){if(this.records[c][k].merged){if(k==k+this.records[c][k].merged[0]&&(e=k,!b))break;f=!1}}else{if(b&&f!==g&&!a)break;if(b)e=k;else return k}g=f}return e},Ma=function(k,c,b,a){for(var d=this.options.columns,e=k,f,g=null;0<k;)if(k--,!1!==d[k].visible&&d[k].type!==
82
+ _$_9989[49]){f=this.records[c]&&this.records[c][k].v===_$_9989[3]?!1:!0;null===g&&(g=f);if(this.records[c]&&this.records[c][k].element&&this.records[c][k].element.style.display==_$_9989[40]){if(this.records[c][k].merged){e=k-this.records[c][k].merged[0];if(!b)break;f=!0}}else{if(b&&f!==g&&!a)break;if(b)e=k;else return k}g=f}return e},Sa=function(){var k=function(b,a,d,e){1==b||3==b?za.attached.call(this,d)||(0<this.options.pagination?this.page(this.whichPage(d)):(1==b?G.pageUp.call(this,1,e):G.pageDown.call(this,
83
+ 1,e),za.attached.call(this,d)||G[_$_9989[46]].call(this,d))):M.attached.call(this,a,d)||(0==b?G.pageLeft.call(this,1,e):G.pageRight.call(this,1,e),M.attached.call(this,a,d)||G[_$_9989[46]].call(this,d,a))},c=function(b){b.up=c.up;b.down=c.down;b.right=c.right;b.left=c.left;b.last=c.last;b.first=c.first};c.up=function(b,a,d){if(b)var e=parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);a:{var g=e,h=f,l=h,m=null;if(this.results&&
84
+ (h=this.results.indexOf(h),-1==h)){d=l;break a}for(;0<h;){h--;var n=this.results?this.results[h]:h;if(!1!==this.rows[n].visible){var p=this.records[n][g].v===_$_9989[3]?!1:!0;null===m&&(m=p);if(this.records[n][g].element&&this.records[n][g].element.style.display==_$_9989[40]){if(this.records[n][g].merged){l=n-this.records[n][g].merged[1];if(!a)break;p=!0}}else if(a&&p!==m&&!d){d=l;break a}else if(a)l=this.records[n][g].merged?n-this.records[n][g].merged[1]:n;else{d=n;break a}m=p}}d=l}d!=f&&(f=d,b?
85
+ (b=this.selectedCell[0],d=this.selectedCell[1]):(b=e,d=f,e=b,f=d),k.call(this,1,e,f,a),this.updateSelectionFromCoords(b,d,e,f))};c.down=function(b,a,d){if(b)var e=parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);a:{var g=e,h=f,l=h,m=null;if(this.results){h=this.results.indexOf(h);if(-1==h){d=l;break a}var n=this.results.length-1}else n=this.rows.length-1;for(;h<n;){h++;var p=this.results?this.results[h]:h;if(!1!==
86
+ this.rows[p].visible){var q=this.records[p][g].v===_$_9989[3]?!1:!0;null===m&&(m=q);if(this.records[p][g].element&&this.records[p][g].element.style.display==_$_9989[40]){if(this.records[p][g].merged){if(!this.records[p][g].merged[1]&&(l=p,!a))break;q=!0}}else if(a&&q!==m&&!d){d=l;break a}else if(a)l=p;else{d=p;break a}m=q}}d=l}d!=f&&(f=d,b?(b=this.selectedCell[0],d=this.selectedCell[1]):(b=e,d=f,e=b,f=d),k.call(this,3,e,f,a),this.updateSelectionFromCoords(b,d,e,f))};c.right=function(b,a,d){if(b)var e=
87
+ parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);d=La.call(this,e,f,a,d);d!=e&&(e=d,b?(b=this.selectedCell[0],d=this.selectedCell[1]):(b=e,d=f,e=b,f=d),k.call(this,2,e,f,a),this.updateSelectionFromCoords(b,d,e,f))};c.left=function(b,a,d){if(b)var e=parseInt(this.selectedCell[2]),f=parseInt(this.selectedCell[3]);else e=parseInt(this.selectedCell[0]),f=parseInt(this.selectedCell[1]);d=Ma.call(this,e,f,a,d);d!=e&&(e=
88
+ d,b?(b=this.selectedCell[0],d=this.selectedCell[1]):(b=e,d=f,e=b,f=d),k.call(this,0,e,f,a),this.updateSelectionFromCoords(b,d,e,f))};c.first=function(b,a){a?c.up.call(this,b,!0,!0):c.left.call(this,b,!0,!0)};c.last=function(b,a){a?c.down.call(this,b,!0,!0):c.right.call(this,b,!0,!0)};return c}(),Ta=function(){return function(k){k.save=Na;k.fullscreen=Ja;k.setReadOnly=Fa;k.getReadOnly=Fa;k.isReadOnly=Fa;k.setPlugins=function(c){na.call(this.parent,c)};k.showIndex=function(){xa.call(this,!0)};k.hideIndex=
89
+ function(){xa.call(this,!1)};k[_$_9989[46]]=G[_$_9989[46]];k.undo=function(){U.undo.call(k.parent)};k.redo=function(){U.redo.call(k.parent)};k.isEditable=function(){return Q.call(k.parent,k)};k.dispatch=function(){return F.apply(this.parent,arguments)};k.setViewport=function(c,b){this.options.tableOverflow=!0;c=parseInt(c);b=parseInt(b);this.content.style.overflow=_$_9989[49];100<c&&(this.options.tableWidth=c+_$_9989[44],this.content.style.maxWidth=this.options.tableWidth);100<b&&(this.options.tableHeight=
90
+ parseInt(b)+_$_9989[44],this.content.style.maxHeight=this.options.tableHeight);this.tbody.innerHTML=_$_9989[3];G.call(this);T.refresh.call(this);fa.update.call(this.parent,this)}}}(),Ca=function(){var k={logo:null,url:null,persistence:!1,sequence:!0,data:null,json:null,rows:[],columns:[],cells:{},role:null,nestedHeaders:null,defaultColWidth:100,defaultRowHeight:0,defaultColAlign:_$_9989[53],minSpareRows:0,minSpareCols:0,minDimensions:[0,0],csv:null,csvFileName:_$_9989[36],csvHeaders:!0,csvDelimiter:_$_9989[25],
91
+ columnSorting:!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,pagination:!1,paginationOptions:null,textOverflow:!1,tableOverflow:!1,tableHeight:_$_9989[54],tableWidth:null,comments:null,meta:null,style:{},freezeColumns:0,orderBy:null,worksheetId:_$_9989[3],
92
+ worksheetName:null,worksheetState:null,filters:!1,footers:null,validations:null,formify:null,applyMaskOnFooters:!1,pluginOptions:null,locked:!1,selectUnLockedCells:!0,selectLockedCells:!0},c={application:_$_9989[55],cloud:null,root:null,definedNames:{},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,
93
+ tabs:!1,allowDeleteWorksheet:!0,allowRenameWorksheet:!0,allowMoveWorksheet:!0,onevent:null,onclick:null,onload:null,onundo:null,onredo:null,onbeforesave:null,onsave: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,onresizerow:null,onresizecolumn:null,
94
+ onselection:null,onbeforecomments:null,oncomments:null,onbeforesort:null,onsort:null,onfocus:null,onblur:null,onmerge:null,onchangeheader:null,onchangefooter:null,onchangefootervalue: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,
95
+ onchangerowid:null,onbeforesearch:null,onsearch:null,onbeforefilter:null,onfilter:null,oncreatecell:null,oncreaterow:null,updateTable:null,contextMenu:null,parseTableFirstRowAsHeader:!1,parseTableAutoCellType:!1,plugins:null,wordWrap:!0,about:!0,license:null,worksheets:null},b=function(e,f){f=JSON.parse(JSON.stringify(f));var g={},h;for(h in f)e&&e.hasOwnProperty(h)?g[h]=e[h]:g[h]=f[h];return g},a=function(e){e&&(typeof e==_$_9989[17]&&(e=JSON.parse(e)),this.options.data=e);this.options.json&&(this.options.data=
96
+ this.options.json);this.options.data||(this.options.data=[]);e=this.options.columns.length;if(this.options.data&&typeof this.options.data[0]!==_$_9989[13]){var f=this.options.data[0].data&&0<Object.keys(this.options.data[0].data).length?Object.keys(this.options.data[0].data):Object.keys(this.options.data[0]);f.length>e&&(e=f.length)}this.options.minDimensions[0]>e&&(e=this.options.minDimensions[0]);e||(e=8);for(var g=0;g<e;g++)this.options.columns[g]?this.options.columns[g].type||(this.options.columns[g].type=
97
+ _$_9989[56]):this.options.columns[g]={type:_$_9989[56]},this.options.columns[g].type==_$_9989[57]&&(this.options.columns[g].type=_$_9989[58],this.options.columns[g].autocomplete=!0),!this.options.columns[g].name&&f&&f[g]&&Number(f[g])!=f[g]&&(this.options.columns[g].name=f[g]),this.options.columns[g].width||(this.options.columns[g].width=this.options.defaultColWidth),this.options.columns[g].type!=_$_9989[58]||this.options.columns[g].source||(this.options.columns[g].source=[]),this.options.columns[g].type==
98
+ _$_9989[58]&&this.options.columns[g].url&&jSuites.ajax({url:this.options.columns[g].url,index:g,method:_$_9989[59],dataType:_$_9989[60],worksheet:this,group:this.parent.name,success:function(h){this.worksheet.options.columns[this.index].source=h}})},d=function(e){e.getConfig=d[_$_9989[51]];e.setConfig=d[_$_9989[11]]};d.spreadsheet=function(e){this.config=b(e,c);1!=this.config.secureFormulas&&console.log(_$_9989[61])};d.worksheet=function(e){var f=this;f.options=b(e,k);f.options.csv?jSuites.ajax({url:f.options.csv,
99
+ method:_$_9989[59],dataType:_$_9989[56],group:f.parent.name,success:function(g){g=E.parseCSV(g,f.options.csvDelimiter);if(1==f.options.csvHeaders&&0<g.length)for(var h=g.shift(),l=0;l<h.length;l++)f.options.columns[l]||(f.options.columns[l]={type:_$_9989[56],align:f.options.defaultColAlign,width:f.options.defaultColWidth}),typeof f.options.columns[l].title===_$_9989[13]&&(f.options.columns[l].title=h[l]);a.call(f,g)}}):f.options.url?jSuites.ajax({url:f.options.url,method:_$_9989[59],dataType:_$_9989[60],
100
+ group:f.parent.name,success:function(g){a.call(f,g)}}):a.call(f)};d[_$_9989[51]]=function(){return this.options};d[_$_9989[11]]=function(e){typeof e==_$_9989[17]&&(e=JSON.parse(e));if(this.parent){f=Object.keys(e);for(g=0;g<f.length;g++)typeof k[f[g]]!==_$_9989[13]&&(this.options[f[g]]=e[f[g]]);!0===e.filters?ca.show.call(this):!1===e.filters&&ca.hide.call(this);!0===e.search?qa.show.call(this):!1===e.search&&qa.hide.call(this);!0===e.toolbar?fa.show.call(this.parent):!1===e.toolbar&&fa.hide.call(this.parent);
101
+ e.minDimensions&&e.minDimensions[0]&&(f=parseInt(e.minDimensions[0])-this.headers.length,0<f&&this.insertColumn(f),f=parseInt(e.minDimensions[1])-this.rows.length,0<f&&this.insertRow(f));L.call(this,_$_9989[62],{data:JSON.stringify(e)})}else for(var f=Object.keys(e),g=0;g<f.length;g++)typeof c[f[g]]!==_$_9989[13]&&(this.config[f[g]]=e[f[g]])};return d}(),U=function(k){k=function(c){if(1!=this.ignoreHistory){var b=++this.historyIndex;this.history=this.history.slice(0,b+1);this.history[b]=c}};k.undo=
102
+ function(){if(0<=this.historyIndex)var c=this.history[this.historyIndex--];if(c){this.ignoreHistory=!0;var b=c.worksheet;b.openWorksheet();var a=[];if(c.action==_$_9989[63])b.deleteRow(c.insertBefore?c.rowNumber:c.rowNumber+1,c.numOfRows);else if(c.action==_$_9989[64])b.insertRow(c.numOfRows,c.rowNumber,1,c.data),M.setAttributes.call(b,c.attributes);else if(c.action==_$_9989[65])b.deleteColumn(c.insertBefore?c.columnNumber:c.columnNumber+1,c.numOfColumns);else if(c.action==_$_9989[66])b.insertColumn(c.numOfColumns,
103
+ c.columnNumber,1,c.properties,c.data,c.extra),M.setAttributes.call(b,c.attributes);else if(c.action==_$_9989[67])b.moveRow(c.newValue,c.oldValue);else if(c.action==_$_9989[68])b.moveColumn(c.newValue,c.oldValue);else if(c.action==_$_9989[69])b.removeMerge(c.newValue,!0),b.setMerge(c.oldValue);else if(c.action==_$_9989[70])b.setMerge(c.oldValue);else if(c.action==_$_9989[71])b.setStyle(c.oldValue,null,null,1);else if(c.action==_$_9989[72])b.setStyle(c.oldValue);else if(c.action==_$_9989[73])b.setWidth(c.column,
104
+ c.oldValue);else if(c.action==_$_9989[74])b.setHeight(c.row,c.oldValue);else if(c.action==_$_9989[75])b.setHeader(c.column,c.oldValue);else if(c.action==_$_9989[76])b.setComments(c.oldValue);else if(c.action==_$_9989[77])b.setProperty(c.column,c.oldValue);else if(c.action==_$_9989[78])b.orderBy(c.column,c.direction?0:1,c.oldValue);else if(c.action==_$_9989[79]){for(var d=0;d<c.records.length;d++){var e={x:c.records[d].x,y:c.records[d].y,value:c.records[d].oldValue};c.records[d].oldStyle&&(e.style=
105
+ c.records[d].oldStyle);a.push(e)}b.setValue(a)}else c.action==_$_9989[80]?b.renameWorksheet(c.index,c.oldValue):c.action==_$_9989[81]&&b.moveWorksheet(c.t,c.f);c.selection&&b.updateSelectionFromCoords(c.selection);this.ignoreHistory=!1;F.call(this,_$_9989[82],b,c)}};k.redo=function(){if(this.historyIndex<this.history.length-1)var c=this.history[++this.historyIndex];if(c){this.ignoreHistory=!0;var b=c.worksheet;b.openWorksheet();c.action==_$_9989[63]?b.insertRow(c.numOfRows,c.rowNumber,c.insertBefore,
106
+ c.data):c.action==_$_9989[64]?b.deleteRow(c.rowNumber,c.numOfRows):c.action==_$_9989[65]?b.insertColumn(c.numOfColumns,c.columnNumber,c.insertBefore,c.properties,c.data):c.action==_$_9989[66]?b.deleteColumn(c.columnNumber,c.numOfColumns):c.action==_$_9989[67]?b.moveRow(c.oldValue,c.newValue):c.action==_$_9989[68]?b.moveColumn(c.oldValue,c.newValue):c.action==_$_9989[69]?b.setMerge(c.newValue):c.action==_$_9989[70]?b.removeMerge(c.newValue):c.action==_$_9989[71]?b.setStyle(c.newValue,null,null,1):
107
+ c.action==_$_9989[72]?b.resetStyle(c.cells):c.action==_$_9989[73]?b.setWidth(c.column,c.newValue):c.action==_$_9989[74]?b.setHeight(c.row,c.newValue):c.action==_$_9989[75]?b.setHeader(c.column,c.newValue):c.action==_$_9989[76]?b.setComments(c.newValue):c.action==_$_9989[77]?b.setProperty(c.column,c.newValue):c.action==_$_9989[78]?b.orderBy(c.column,c.direction,c.newValue):c.action==_$_9989[79]?b.setValue(c.records):c.action==_$_9989[80]?b.renameWorksheet(c.index,c.newValue):c.action==_$_9989[81]&&
108
+ b.moveWorksheet(c.f,c.t);c.selection&&b.updateSelectionFromCoords(c.selection);this.ignoreHistory=!1;F.call(this,_$_9989[83],b,c)}};return k}(),na=function(){var k=function(c){var b=null;if(Array.isArray(c))b=c;else if(typeof c==_$_9989[84]){b=[];var a=Object.keys(c);for(var d=0;d<a.length;d++)b.push({name:a[d],plugin:c[a[d]],options:{}})}if(b&&b.length)for(d=0;d<b.length;d++){if(b[d].name&&b[d].plugin){var e=b[d].name;var f=b[d].plugin;var g=b[d].options}typeof f===_$_9989[85]&&(this.plugins[e]=
109
+ f.call(t,this,g,this.config),typeof f.license==_$_9989[85]&&t.license&&f.license(t.license))}};k.execute=function(c,b){if(this.plugins){var a=Object.keys(this.plugins);if(a.length)for(var d=0;d<a.length;d++)if(typeof this.plugins[a[d]][c]==_$_9989[85]){var e=this.plugins[a[d]][c].apply(this.plugins[a[d]],b);e&&(c==_$_9989[86]&&(b[4]=e),c==_$_9989[87]&&(b[0]=e))}return b}};return k}(),da=function(){var k=function(c){c.getEditor=k[_$_9989[51]];c.openEditor=k.open;c.closeEditor=k.close};k[_$_9989[51]]=
110
+ function(c,b){c=Ga.getOptions.call(this,c,b);return[c.type&&typeof c.type==_$_9989[84]?c.type:t.editors[c.type],c]};k.open=function(c,b,a){if(!Q.call(this.parent,this))return!1;if(1!=c.classList.contains(_$_9989[18])){var d=parseInt(c.getAttribute(_$_9989[42])),e=parseInt(c.getAttribute(_$_9989[43]));if(!0===this.options.locked){var f=E.getColumnNameFromCoords(d,e);if(!this.options.cells||!this.options.cells[f]||!1!==this.options.cells[f].locked)return!1}if(f=this.records[e][d].merged)d-=f[0],e-=
111
+ f[1],c=this.records[e][d].element;if(!M.attached.call(this,d,e)){if(this.results&&0<this.results.length)return console.error(_$_9989[88]),!1;G[_$_9989[46]].call(this,e,d)}k.position.call(this,d,e);f=this.parent.input;f.innerText=_$_9989[3];F.call(this.parent,_$_9989[89],this,c,d,e);b=1==b?_$_9989[3]:N.call(this,d,e);var g=k[_$_9989[51]].call(this,d,e),h=!0;typeof g[0].openEditor==_$_9989[85]&&(!1===g[0].openEditor(c,b,d,e,this,g[1],a)?h=!1:F.call(this.parent,_$_9989[90],this,c,d,e,f,g[1]));h&&(1==
112
+ this.options.textOverflow&&(this.records[e][d].element.style.overflow=_$_9989[49],0<d&&(this.records[e][d-1].element.style.overflow=_$_9989[49])),this.edition=c,f.classList.add(_$_9989[91]),1==this.parent.config.editorFormulas&&P(b)&&(f.classList.add(_$_9989[92]),ka.parse.call(this,f),c=document.createTextNode(_$_9989[3]),f.appendChild(c),jSuites.focus(f)))}};k.close=function(c,b){null===c&&(c=this.edition);this.parent.input.classList.contains(_$_9989[92])&&ka.close.call(this,this.parent.input);var a,
113
+ d=parseInt(c.getAttribute(_$_9989[42])),e=parseInt(c.getAttribute(_$_9989[43]));1==this.options.textOverflow&&(a=this.records[e][d+1])&&a.element&&a.element.innerText==_$_9989[3]&&(this.records[e][d].element.style.overflow=_$_9989[3]);a=k[_$_9989[51]].call(this,d,e);if(1==b){var f=null;if(typeof a[0].closeEditor==_$_9989[85]){var g=a[0].closeEditor(c,!0,d,e,this,a[1]);void 0!==g&&(f=g)}null!==f&&N.call(this,d,e)!=f&&this.setValue(c,f)}else a[0].closeEditor(c,!1,d,e,this,a[1]);F.call(this.parent,_$_9989[93],
114
+ this,c,d,e,f,b);a[1]&&typeof a[1].render==_$_9989[85]&&a[1].render.call(this,c,this.records[e][d].v,d,e,this,a[1]);a=this.parent.input;a.onblur&&(a.onblur=null);a.children[0]&&a.children[0].onblur&&(a.children[0].onblur=null);a.update&&(a.update=null);da.build(this.parent);a.removeAttribute(_$_9989[94]);a.removeAttribute(_$_9989[95]);a.removeAttribute(_$_9989[96]);this.edition=a.mask=null;this.refreshBorders()};k.position=function(c,b){var a=null;if(a=this.records[b][c].element){var d=this.parent.element.getBoundingClientRect();
115
+ a=a.getBoundingClientRect();var e=this.parent.input;e.x=c;e.y=b;0==a.width&&0==a.height?e.style.opacity=_$_9989[97]:(e.setAttribute(_$_9989[98],_$_9989[3]),c=a.top-d.top+1,b=a.left-d.left+1,e.style.top=c+_$_9989[44],e.style.left=b+_$_9989[44],e.style.minWidth=a.width-1+_$_9989[44],e.style.minHeight=a.height-1+_$_9989[44],setTimeout(function(){e.focus()},0))}};k.build=function(c){c.input||(c.input=document.createElement(_$_9989[20]));c.input.className=_$_9989[99];c.input.setAttribute(_$_9989[100],
116
+ !0);c.input.innerText=_$_9989[3];c.input.oninput=function(b){t.current.parent.config.editorFormulas=!0;P(b.target.innerText)?b.target.classList.add(_$_9989[92]):b.target.classList.contains(_$_9989[92])&&ka.close.call(t.current,this)};return c.input};return k}(),F=function(k){if(!this.ignoreEvents){if(typeof this.config.onevent==_$_9989[85])var c=this.config.onevent.apply(this,arguments);typeof this.config[k]==_$_9989[85]&&(c=this.config[k].apply(this,Array.prototype.slice.call(arguments,1)));na.execute.call(this,
117
+ _$_9989[101],arguments)}return c},sa=function(){var k=function(c){c.sequence=0;c.getNextSequence=k.next;c.getRowId=k.getId;c.setRowId=k.setId;c.getRowById=k.getRowById};k[_$_9989[51]]=function(){return this.sequence};k[_$_9989[11]]=function(c,b){if(c>this.sequence||b)this.sequence=c};k.next=function(){return 1==this.options.sequence?++this.sequence:null};k.reset=function(){this.sequence=0};k.getId=function(c){if(this.rows[c]&&this.rows[c].id)return this.rows[c].id;var b=this.getPrimaryKey();if(!1!==
118
+ b)return N.call(this,b,c)};k.setId=function(c,b){if(void 0!==b&&0<=parseInt(c)){var a={};a[c]=b}else a=c;c=Object.keys(a);if(c.length){for(var d=0;d<c.length;d++)b=a[c[d]],this.rows[c[d]].id=b,k[_$_9989[11]].call(this,b);L.call(this,_$_9989[102],[a]);F.call(this.parent,_$_9989[103],this,a)}};k.getRowById=function(c,b){for(var a=0;a<this.rows.length;a++)if(k.getId.call(this,a)==c)return!0===b?this.rows[a]:this.options.data[a];return!1};return k}(),Na=function(){var k=function(b){for(var a=[],d={},
119
+ e=0;e<b.length;e++){var f=b[e].x,g=b[e].y,h=sa.getId.call(this,g);if(!h)if(d[g])h=d[g];else if(h=sa.next.call(this))d[g]=h;a[g]||(a[g]={id:h,row:g,data:{}});f=Z.call(this,f);a[g].data[f]=b[e].value}sa.setId.call(this,d);return a.filter(function(l){return null!=l})},c=function(b){var a=b[0];if(0<=[_$_9989[104],_$_9989[105],_$_9989[102],_$_9989[106]].indexOf(a))return!1;var d={};a==_$_9989[79]||a==_$_9989[107]?(a=_$_9989[108],d[a]=k.call(this,b[1].data)):Array.isArray(b[1])&&1==b[1].length?d[a]=b[1][0]:
120
+ d[a]=b[1];return d};return function(b,a,d,e){var f=this.parent,g=this;d=null;var h=c.call(this,a);if(h)a=h;else if(!1===h)return!1;if(h=F.call(f,_$_9989[109],f,g,a))a=h;else if(!1===h)return!1;Ka.call(f,!0);jSuites.ajax({url:b,method:_$_9989[110],dataType:_$_9989[60],data:{data:JSON.stringify(a)},queue:!0,beforeSend:function(l){d&&l.setRequestHeader(_$_9989[111],_$_9989[112]+d)},success:function(l){f.element.classList.contains(_$_9989[113])&&f.element.classList.remove(_$_9989[113]);l&&(l.message&&
121
+ (l.name=f.config.application,jSuites.notification.isVisible()?console.log(l.name+_$_9989[114]+l.message):jSuites.notification(l)),l.success?typeof e===_$_9989[85]?e(l):l.data&&Array.isArray(l.data)&&M.updateAll.call(g,l.data):l.error&&(alert(_$_9989[115]),window.open(window.location.href,_$_9989[116])));F.call(f,_$_9989[117],f,g,a,l)},error:function(){f.element.classList.add(_$_9989[113])}})}}(),L=function(){return function(){na.execute.call(this.parent,_$_9989[118],[this,arguments[0],arguments[1]]);
122
+ if(!this.parent.ignorePersistence){var k=null;if(this.parent.config.server){var c=this.parent.worksheets.indexOf(this);k=this.parent.config.server;k=-1==k.indexOf(_$_9989[119])?k+(_$_9989[120]+c):k+(_$_9989[121]+c)}else this.options.persistence&&(k=typeof this.options.persistence==_$_9989[17]?this.options.persistence:this.options.url);k&&Na.call(this,k,arguments)}}}(),Da=function(k){if(this.selectedCell){var c=this.selectedCell[0],b=this.selectedCell[1];this.records&&this.records[b]&&this.records[b][c]&&
123
+ this.records[b][c].element||(this.selectedCell=this.getHighlighted(),c=this.selectedCell[0],b=this.selectedCell[1]);var a=this.getHighlighted(),d=a[0],e=a[1],f=a[2];a=a[3];k=k?_$_9989[122]:_$_9989[123];if(this.records[b]&&this.records[b][c]&&this.records[b][c].element)this.records[b][c].element.classList[k](_$_9989[124]);for(c=d;c<=f;c++)if(this.headers[c])this.headers[c].classList[k](_$_9989[125]);for(;e<=a;e++)if(this.rows[e]&&this.rows[e].element)this.rows[e].element.classList[k](_$_9989[125])}},
124
+ ya=function(){var k=function(c){c.resetSelection=k.reset;c.updateSelection=k.fromElements;c.updateSelectionFromCoords=k[_$_9989[11]];c.selectAll=k.all;c.isSelected=k.isSelected;c.getHighlighted=k.getHighlighted;c.getRange=k.getRange};k.getHighlighted=function(){var c=this.borders;return(c=c.main)?[c.x1,c.y1,c.x2,c.y2]:null};k.isSelected=function(c,b,a){if(!a&&(a=this.getHighlighted(),!a))return!1;var d=a[0],e=a[1],f=a[2];a=a[3];f||(f=d);a||(a=e);return null==c?b>=e&&b<=a:null==b?c>=d&&c<=f:c>=d&&
125
+ c<=f&&b>=e&&b<=a};k.reset=function(){if(this.selectedCell)c=1,this.edition&&da.close.call(this,this.edition,!0),this.resetBorders(_$_9989[126],!0),this.resetBorders(_$_9989[127],!0),this.selectedCell=null,1==c&&F.call(this.parent,_$_9989[128],this);else var c=0;return c};k.refresh=function(){this.selectedCell&&k[_$_9989[11]].call(this,this.selectedCell)};k.isValid=function(c,b,a,d){return!(c>=this.options.columns.length||b>=this.rows.length||a>=this.options.columns.length||d>=this.rows.length)};k[_$_9989[11]]=
126
+ function(c,b,a,d,e,f,g){f||(f=_$_9989[126]);Array.isArray(c)&&(d=c[3],a=c[2],b=c[1],c=c[0]);null==a&&(a=c);null==d&&(d=b);if(!k.isValid.call(this,c,b,a,d))return!1;if(null!=c){if(parseInt(c)<parseInt(a))var h=parseInt(c),l=parseInt(a);else h=parseInt(a),l=parseInt(c);if(parseInt(b)<parseInt(d))var m=parseInt(b),n=parseInt(d);else m=parseInt(d),n=parseInt(b);var p;var q={};if(this.options.mergeCells){for(var v=m;v<=n;v++)for(var u=h;u<=l;u++)if(p=this.records[v][u].merged)p=E.getColumnNameFromCoords(u-
127
+ p[0],v-p[1]),q[p]=!0;v=Object.keys(q);if(v.length)for(u=0;u<v.length;u++)p=E.getCoordsFromColumnName(v[u]),q=this.options.mergeCells[v[u]],p[0]<h&&(h=p[0]),p[0]+q[0]-1>l&&(l=p[0]+q[0]-1),p[1]<m&&(m=p[1]),p[1]+q[1]-1>n&&(n=p[1]+q[1]-1)}}f==_$_9989[126]&&(this.selectedCell?(Da.call(this,!1),p=1):p=0,this.selectedCell=[c,b,a,d],this.records[d][a].element&&G.isVisible.call(this,this.records[d][a].element),da.position.call(this,c,b),0==p&&F.call(this.parent,_$_9989[129],this));ha[_$_9989[11]].call(this,
128
+ h,m,l,n,f,g);f==_$_9989[126]&&(na.execute.call(this.parent,_$_9989[130],[this,h,m,l,n,e]),F.call(this.parent,_$_9989[131],this,h,m,l,n,e),fa.update.call(this.parent,t.current,this.selectedCell))};k.fromElements=function(c,b,a){var d=c.getAttribute(_$_9989[42]);c=c.getAttribute(_$_9989[43]);if(b){var e=b.getAttribute(_$_9989[42]);b=b.getAttribute(_$_9989[43])}else e=d,b=c;this.updateSelectionFromCoords(d,c,e,b,a)};k.all=function(){k[_$_9989[11]].call(this,0,0,this.options.columns.length-1,this.records.length-
129
+ 1)};k.getRange=function(){var c=this.selectedCell;if(!c)return _$_9989[3];var b=E.getColumnNameFromCoords(c[0],c[1]);c=E.getColumnNameFromCoords(c[2],c[3]);var a=this.options.worksheetName;a=-1!=a.indexOf(_$_9989[132])?_$_9989[133]+a+_$_9989[134]:a+_$_9989[135];return b==c?a+b:a+t.helpers.getRangeFromTokens(t.helpers.getTokensFromRange(b+_$_9989[136]+c))};return k}(),ha=function(){var k=function(a){a.borders=[];a.setBorder=k[_$_9989[11]];a.getBorder=k[_$_9989[51]];a.resetBorders=k.reset;a.refreshBorders=
130
+ k.refresh};k[_$_9989[51]]=function(a){return this.borders[a]};var c=function(a,d,e,f,g,h){g||(g=0);if(!ya.isValid.call(this,a,d,e,f))return!1;if(this.borders[g])l=this.borders[g];else{var l={};l.element=document.createElement(_$_9989[20]);l.element.classList.add(_$_9989[137]);g==_$_9989[127]||g==_$_9989[138]||g==_$_9989[126]?l.element.classList.add(_$_9989[139]+g):(h=h?h:jSuites.randomColor(!0),l.color=h,l.element.style.backgroundColor=h+_$_9989[140],l.element.style.borderColor=h);this.content.appendChild(l.element)}l.x1=
131
+ a;l.y1=d;l.x2=e;l.y2=f;h=this.headers[a]?this.headers[a].offsetLeft:0;var m=this.headers[e]?this.headers[e].offsetLeft:0,n=this.rows[d].element?this.rows[d].element.offsetTop:0,p=this.rows[f].element?this.rows[f].element.offsetTop:0;l.element.style.top=_$_9989[141];l.element.style.left=_$_9989[141];l.active=0;var q=this.options.freezeColumns||0,v=!1,u=null,w=null,y=null,x=null;this.tbody.firstChild&&(w=parseInt(this.tbody.firstChild.getAttribute(_$_9989[43])),x=parseInt(this.tbody.lastChild.getAttribute(_$_9989[43])));
132
+ this.thead.lastChild&&(u=parseInt(this.thead.lastChild.children[q+1].getAttribute(_$_9989[42])),y=parseInt(this.thead.lastChild.lastChild.getAttribute(_$_9989[42])),this.thead.lastChild.children[1].style.display==_$_9989[40]&&(u=La.call(this,u,w)),this.thead.lastChild.lastChild.style.display==_$_9989[40]&&(y=Ma.call(this,y,x)));null==u||e<u&&a>=q||a>y||f<w||d>x||(h?l.element.style.borderLeftColor=l.color?l.color:_$_9989[3]:(h=this.thead.lastChild.children[q+1].offsetLeft,l.element.style.borderLeftColor=
133
+ g==_$_9989[127]?_$_9989[142]:_$_9989[143]),m?(m+=this.headers[e].offsetWidth,l.element.style.borderRightColor=l.color?l.color:_$_9989[3]):(e>y?(m=this.headers[y].offsetLeft+this.headers[y].offsetWidth,v=!0):m=this.thead.lastChild.children[q].offsetLeft+this.thead.lastChild.children[q].offsetWidth,l.element.style.borderRightColor=g==_$_9989[127]?_$_9989[142]:_$_9989[143]),m=m-h-1,n?l.element.style.borderTopColor=l.color?l.color:_$_9989[3]:(n=this.tbody.firstChild.offsetTop,l.element.style.borderTopColor=
134
+ g==_$_9989[127]?_$_9989[142]:_$_9989[143]),p?(p+=this.rows[f].element.offsetHeight,l.element.style.borderBottomColor=l.color?l.color:_$_9989[3]):(p=this.rows[x].element.offsetTop+this.rows[x].element.offsetHeight,l.element.style.borderBottomColor=g==_$_9989[127]?_$_9989[142]:_$_9989[143],v=!0),p=p-n-1,this.options.freezeColumns&&(l.element.style.borderLeftWidth=_$_9989[3],l.element.style.borderRightWidth=_$_9989[3],d=0<this.content.scrollLeft?ma.getWidth.call(this):0)&&(a=a<this.options.freezeColumns,
135
+ e=e<this.options.freezeColumns,a&&e||!a&&e||(a&&!e?(e=d+this.content.scrollLeft,e>h+m&&(l.element.style.borderRightWidth=_$_9989[144],m+=e-(h+m))):(e=d+this.content.scrollLeft,e>h&&(e-=h,e>m?h=n=-2E3:(h=h+e+1,m-=e,l.element.style.borderLeftWidth=_$_9989[144]))))),l.element.style.top=n+_$_9989[44],l.element.style.left=h+_$_9989[44],l.element.style.width=m+_$_9989[44],l.element.style.height=p+_$_9989[44],l.t=n,l.l=h,l.w=m,l.h=p,l.active=1);g==_$_9989[126]&&(l.active&&1!=v?(this.corner.style.top=n+p-
136
+ 2+_$_9989[44],this.corner.style.left=h+m-2+_$_9989[44]):(this.corner.style.top=_$_9989[141],this.corner.style.left=_$_9989[141]));this.borders[g]=l},b=function(a,d){a.element.style.top=_$_9989[141];a.element.style.left=_$_9989[141];a.active=0;d&&(a.x1=null,a.y1=null,a.x2=null,a.y2=null)};k[_$_9989[11]]=function(a,d,e,f,g,h){c.call(this,a,d,e,f,g,h);g==_$_9989[126]&&(Da.call(this,!0),L.call(this,_$_9989[104],{x1:a,y1:d,x2:e,y2:f}))};k.reset=function(a,d){a&&a!=_$_9989[126]||(this.corner.style.top=
137
+ _$_9989[141],this.corner.style.left=_$_9989[141],Da.call(this,!1));if(a)this.borders[a]&&b(this.borders[a],d);else{d=Object.keys(this.borders);for(var e=0;e<d.length;e++)b(this.borders[d[e]])}a&&a!=_$_9989[126]||L.call(this,_$_9989[105])};k.refresh=function(a){var d=this.borders;if(a)d[a]&&null!=d[a].x1&&c.call(this,d[a].x1,d[a].y1,d[a].x2,d[a].y2,a);else{a=Object.keys(d);for(var e=0;e<a.length;e++)d[a[e]]&&null!=d[a[e]].x1&&c.call(this,d[a[e]].x1,d[a[e]].y1,d[a[e]].x2,d[a[e]].y2,a[e])}this.edition&&
138
+ (d=this.parent.input,da.position.call(this,d.x,d.y))};k.destroy=function(a){var d;if(d=this.borders[a])d.element.remove(),delete this.borders[a]};return k}(),Ua=function(){var k=function(c){c.setGroup=k[_$_9989[11]];c.unsetGroup=k.unset};k[_$_9989[11]]=function(c,b,a){0==c&&(a=document.createElement(_$_9989[145]),a.classList.add(_$_9989[146]),this.thead.insertBefore(a,this.thead.firstChild),c=document.createElement(_$_9989[147]),c.innerHTML=_$_9989[148],a.appendChild(c),c=document.createElement(_$_9989[147]),
139
+ a.appendChild(c),b=this.headers[b])&&(b=b.querySelector(_$_9989[149]),b||(b=document.createElement(_$_9989[20]),b.classList.add(_$_9989[150]),b.innerText=_$_9989[151],c.appendChild(b)))};k.unset=function(c,b){};return k}(),va=function(){var k={start:function(c){if(!Q.call(this.parent,this))return!1;if(null!==c.target.getAttribute(_$_9989[43])){var b=c.target.getAttribute(_$_9989[43]);k.event={y:parseInt(b),h:c.target.offsetHeight,p:c.pageY}}else null!==c.target.getAttribute(_$_9989[42])&&(b=c.target.getAttribute(_$_9989[42]),
140
+ k.event={x:parseInt(b),w:c.target.offsetWidth,p:c.pageX})},end:function(c){var b=[];if(null!=k.event.y){var a=parseInt(this.rows[k.event.y].element.offsetHeight);var d=this.getSelectedRows(!0);c=d.indexOf(parseInt(k.event.y));if(d.length&&-1<c)for(var e=0;e<d.length;e++)b.push(parseInt(this.rows[d[e]].element.offsetHeight));else d=[];-1==c?(d.push(k.event.y),b.push(k.event.h)):b[c]=k.event.h;this.setHeight(d,a,b)}else if(null!=k.event.x){a=parseInt(this.colgroup[k.event.x].getAttribute(_$_9989[152]));
141
+ d=this.getSelectedColumns();c=d.indexOf(parseInt(k.event.x));if(d.length&&-1<c)for(e=0;e<d.length;e++)b.push(parseInt(this.options.columns[d[e]].width));else d=[];-1==c?(d.push(k.event.x),b.push(k.event.w)):b[c]=k.event.w;this.setWidth(d,a,b)}k.event=null},update:function(c){null!=k.event.y?(c=c.pageY-k.event.p,0<k.event.h+c&&(this.rows[k.event.y].element.style.height=k.event.h+c+_$_9989[44],this.refreshBorders())):null!=k.event.x&&(c=c.pageX-k.event.p,0<k.event.w+c&&(this.colgroup[k.event.x].setAttribute(_$_9989[152],
142
+ k.event.w+c),this.options.columns[k.event.x].width=k.event.w+c,0<this.options.freezeColumns&&ma.width.call(this),this.refreshBorders()))},cancel:function(){k.end.call(this)}};return k}(),Oa=function(){var k={start:function(c){var b=this.parent.helper;c=parseInt(c.target.getAttribute(_$_9989[42]));if(this.merged.cols[c])console.error(_$_9989[153]);else{k.event={x:c,d:c};this.headers[c].classList.add(_$_9989[154]);for(var a=0;a<this.tbody.children.length;a++){var d=this.tbody.children[a].getAttribute(_$_9989[43]);
143
+ this.records[d][c].element.classList.add(_$_9989[154])}a=this.parent.element.getBoundingClientRect();c=this.headers[c].getBoundingClientRect();d=this.content.getBoundingClientRect();b.style.display=_$_9989[16];b.style.top=d.top-a.top+_$_9989[44];b.style.left=c.left-d.left+_$_9989[44];b.style.width=_$_9989[155];b.style.height=d.height+_$_9989[44];b.classList.add(_$_9989[156])}},end:function(){this.headers[k.event.x].classList.remove(_$_9989[154]);for(var c=0;c<this.tbody.children.length;c++){var b=
144
+ this.tbody.children[c].getAttribute(_$_9989[43]);this.records[b][k.event.x].element.classList.remove(_$_9989[154])}null!=k.event.d&&k.event.x!=k.event.d&&(this.moveColumn(k.event.x,k.event.d),this.refreshBorders());this.parent.helper.classList.remove(_$_9989[156]);this.parent.helper.style.display=_$_9989[3];k.event=null},cancel:function(){k.event.d=null;k.end.call(this)},update:function(c){var b=c.target.getAttribute(_$_9989[42]);if(null!=b)if(b=parseInt(b),this.merged.cols[b])console.error(_$_9989[153]);
145
+ else{c=c.target.clientWidth/2>c.offsetX;k.event.d=c?k.event.x<b?parseInt(b)-1:parseInt(b):k.event.x>b?parseInt(b)+1:parseInt(b);b=this.headers[b].getBoundingClientRect();var a=this.content.getBoundingClientRect();this.parent.helper.style.left=(c?b.left:b.right)-a.left+_$_9989[44]}}};return k}(),ra=function(){var k={start:function(c){if(Q.call(this.parent,this)){this.resetSelection();var b=this.parent.helper;if(null!==c.target.getAttribute(_$_9989[43])){var a=parseInt(c.target.getAttribute(_$_9989[43]));
146
+ this.merged.rows[a]?console.error(_$_9989[157]):this.results?console.error(_$_9989[158]):(k.event={y:a,d:a},this.rows[a].element.classList.add(_$_9989[154]),c=this.parent.element.getBoundingClientRect(),a=this.rows[a].element.getBoundingClientRect(),b.style.display=_$_9989[16],b.style.top=a.top-c.top+_$_9989[44],b.style.left=_$_9989[159],b.style.width=this.content.offsetWidth-50+_$_9989[44],b.style.height=_$_9989[155],b.classList.add(_$_9989[160]))}else if(null!==c.target.getAttribute(_$_9989[42]))if(a=
147
+ parseInt(c.target.getAttribute(_$_9989[42])),this.merged.cols[a])console.error(_$_9989[153]);else{k.event={x:a,d:a};this.headers[a].classList.add(_$_9989[154]);for(c=0;c<this.tbody.children.length;c++){var d=this.tbody.children[c].getAttribute(_$_9989[43]);this.records[d][a].element.classList.add(_$_9989[154])}c=this.parent.element.getBoundingClientRect();a=this.headers[a].getBoundingClientRect();d=this.content.getBoundingClientRect();b.style.display=_$_9989[16];b.style.top=d.top-c.top+_$_9989[44];
148
+ b.style.left=a.left-d.left+_$_9989[44];b.style.width=_$_9989[155];b.style.height=d.height+_$_9989[44];b.classList.add(_$_9989[156])}}else return!1},end:function(){if(null!=k.event.y)this.rows[k.event.y].element.classList.remove(_$_9989[154]),null!=k.event.d&&k.event.y!=k.event.d&&(this.moveRow(k.event.y,k.event.d),this.updateSelectionFromCoords(0,k.event.d,this.options.columns.length-1,k.event.d)),this.parent.helper.classList.remove(_$_9989[160]);else if(null!=k.event.x){this.headers[k.event.x].classList.remove(_$_9989[154]);
149
+ for(var c=0;c<this.tbody.children.length;c++){var b=this.tbody.children[c].getAttribute(_$_9989[43]);this.records[b][k.event.x].element.classList.remove(_$_9989[154])}null!=k.event.d&&k.event.x!=k.event.d&&(this.moveColumn(k.event.x,k.event.d),this.refreshBorders());this.parent.helper.classList.remove(_$_9989[156])}this.parent.helper.style.display=_$_9989[3];k.event=null},cancel:function(){k.event.d=null;k.end.call(this)},update:function(c){if(null!=k.event.y){var b=c.target.getAttribute(_$_9989[43]);
150
+ if(null!=b){var a=b=parseInt(b),d=c.target.clientHeight/2>c.offsetY;d?k.event.y<b&&(a=b-1):k.event.y>b&&(a=b+1);c=!1;this.merged.rows[a]&&(k.event.y>a?this.merged.rows[a-1]&&(c=!0):this.merged.rows[a+1]&&(c=!0));c||(k.event.d=a,a=this.parent.element.getBoundingClientRect(),b=this.rows[b].element.getBoundingClientRect(),this.parent.helper.style.top=(d?b.top:b.bottom)-a.top+_$_9989[44])}}else d=c.target.getAttribute(_$_9989[42]),null!=d&&(a=d=parseInt(d),(b=c.target.clientWidth/2>c.offsetX)?k.event.x<
151
+ d&&(a=d-1):k.event.x>d&&(a=d+1),c=!1,this.merged.cols[a]&&(k.event.x>a?this.merged.cols[a-1]&&(c=!0):this.merged.cols[a+1]&&(c=!0)),c||(k.event.d=a,a=this.headers[d].getBoundingClientRect(),d=this.content.getBoundingClientRect(),this.parent.helper.style.left=(b?a.left:a.right)-d.left+_$_9989[44]))}};return k}(),ba=function(){var k=function(c){c.getMerge=k[_$_9989[51]];c.setMerge=k[_$_9989[11]];c.updateMerge=k.update;c.removeMerge=k.remove;c.destroyMerged=c.destroyMerge=k.destroy};k.getHeight=function(c,
152
+ b){var a,d=1;if(this.merged.rows[c])for(var e=0;e<this.options.columns.length;e++){var f=E.getColumnNameFromCoords(e,c);if(f=this.merged.cells[f])if(a=this.options.mergeCells[f])b&&void 0!==b[f]||(a[1]>d&&(d=a[1]),b&&(b[f]=this.records[c][e].element&&!this.records[c][e].merged?!0:!1))}return d-1};k.getWidth=function(c,b){var a,d=1;if(this.merged.cols[c])for(var e=0;e<this.options.data.length;e++){var f=E.getColumnNameFromCoords(c,e);if(f=this.merged.cells[f])if(a=this.options.mergeCells[f])b&&void 0!==
153
+ b[f]||(a[0]>d&&(d=a[0]),b&&(b[f]=this.records[e][c].element&&!this.records[e][c].merged?!0:!1))}return d-1};k[_$_9989[51]]=function(c){return c?this.options.mergeCells[c]:this.options.mergeCells};k[_$_9989[11]]=function(c,b,a){if(!Q.call(this.parent,this))return!1;this.options.mergeCells||(this.options.mergeCells={});var d,e=null,f={},g={},h={},l=!1;typeof c==_$_9989[17]?h[c]=[b,a]:typeof c==_$_9989[84]?h=c:((e=this.getHighlighted())?e=[E.getColumnNameFromCoords(e[0],e[1]),e[2]-e[0]+1,e[3]-e[1]+1]:
154
+ (jSuites.notification({message:C(_$_9989[161])}),e=!1),e&&(h[e[0]]=[e[1],e[2]]));b=Object.keys(h);if(b.length){for(a=0;a<b.length;a++){var m=b[a],n=h[b[a]][0],p=h[b[a]][1];n=parseInt(n);p=parseInt(p);if((!n||2>n)&&(!p||2>p))console.log(C(_$_9989[162])+_$_9989[136]+m);else if(this.options.mergeCells[m])g[m]=[n,p],f[m]=this.options.mergeCells[m],k.update.call(this,m,n,p);else{e=E.getCoordsFromColumnName(m);for(var q=e[1];q<e[1]+p;q++)for(var v=e[0];v<e[0]+n;v++)c=E.getColumnNameFromCoords(v,q),(d=this.merged.cells[c])&&
155
+ this.options.mergeCells[d]&&(f[d]=this.options.mergeCells[d],k.applyDestroy.call(this,d));g[m]=this.options.mergeCells[m]=[n,p];k.applyCreate.call(this,m);M.attached.call(this,e[0],e[1])||(l=e)}}Object.keys(g).length&&(l&&G[_$_9989[46]].call(this,e[1],e[0]),U.call(this.parent,{worksheet:this,action:_$_9989[69],newValue:g,oldValue:f}),L.call(this,_$_9989[69],[g]),k.build.call(this),ya.refresh.call(this),ha.refresh.call(this),F.call(this.parent,_$_9989[163],this,g,f))}};k.update=function(c,b,a){var d=
156
+ this.options.mergeCells;if(d[c]){var e=d[c][1];if(b!==d[c][0]||e!==a)k.applyDestroy.call(this,c),b&&a&&(d[c]=[b,a],k.applyCreate.call(this,c))}};k.remove=function(c,b){if(!Q.call(this.parent,this))return!1;b={};var a={},d={};typeof c==_$_9989[17]?d[c]=!0:typeof c==_$_9989[84]&&(d=c);c=Object.keys(d);for(d=0;d<c.length;d++)this.options.mergeCells[c[d]]&&(b[c[d]]=this.options.mergeCells[c[d]],a[c[d]]=!0,k.applyDestroy.call(this,c[d],!0));U.call(this.parent,{worksheet:this,action:_$_9989[70],newValue:a,
157
+ oldValue:b});L.call(this,_$_9989[70],{data:a})};k.destroy=function(){k.remove.call(this,this.options.mergeCells,!0)};k.applyCreate=function(c,b){var a=this.options.mergeCells;if(a[c]){var d=a[c][0]||1,e=a[c][1]||1;c=E.getCoordsFromColumnName(c);if(!this.records[c[1]][c[0]].merged||1==b)if(a=M[_$_9989[51]].call(this,c[0],c[1])){a.style.display=_$_9989[3];1<d?a.setAttribute(_$_9989[52],d):a.removeAttribute(_$_9989[52]);1<e?a.setAttribute(_$_9989[164],e):a.removeAttribute(_$_9989[164]);1==this.options.textOverflow&&
158
+ (a.style.overflow=_$_9989[49]);for(var f=0;f<e;f++)for(var g=0;g<d;g++){b=c[0]+g;var h=c[1]+f;if(a=this.records[h][b])if(a.merged=[g,f,a.v,a.v],0!=g||0!=f)a.element||M[_$_9989[51]].call(this,b,h),a.element.style.display=_$_9989[40],a.merged[3]=a.element.innerText,a.element.innerText=_$_9989[3],N.call(this,b,h,_$_9989[3])}}}};k.applyDestroy=function(c,b){var a=this.options.mergeCells;if(a[c]){var d=E.getCoordsFromColumnName(c),e=d[0];d=d[1];var f=a[c][0],g=a[c][1];delete this.options.mergeCells[c];
159
+ for(c=0;c<g;c++)for(var h=0;h<f;h++)if(a=this.records[d+c][e+h])a.element&&(0==h&&0==c?(a.element.removeAttribute(_$_9989[52]),a.element.removeAttribute(_$_9989[164])):(a.element.style.display=_$_9989[3],1==b&&(N.call(this,e+h,d+c,a.merged[2]),a.element.innerHTML=a.merged[3]))),a.merged&&delete a.merged}};k.updateConfig=function(c,b,a,d){if(1==b)var e=[a];else{e=[];for(var f=a;f<a+d;f++)e.push(f)}var g=this.options.mergeCells,h=Object.keys(g),l={};for(f=0;f<h.length;f++){a=E.getCoordsFromColumnName(h[f]);
160
+ for(var m=a[c];m<a[c]+g[h[f]][c];m++)-1!==e.indexOf(m)&&(l[h[f]]||(l[h[f]]=[g[h[f]][0],g[h[f]][1]],1==b&&(l[h[f]][c]+=d)),0==b&&l[h[f]][c]--)}h=Object.keys(l);for(f=0;f<h.length;f++)k.update.call(this,h[f],l[h[f]][0],l[h[f]][1]);k.build.call(this)};k.build=function(){var c=this.options.mergeCells;this.merged={cols:[],rows:[],cells:[]};if(c)for(var b=Object.keys(c),a=0;a<b.length;a++){for(var d=E.getCoordsFromColumnName(b[a]),e=parseInt(c[b[a]][0]),f=parseInt(c[b[a]][1]),g=0;g<e;g++)this.merged.cols[d[0]+
161
+ g]=!0;for(var h=0;h<f;h++)this.merged.rows[d[1]+h]=!0;for(h=0;h<f;h++)for(g=0;g<e;g++){var l=E.getColumnNameFromCoords(d[0]+g,d[1]+h);this.merged.cells[l]=b[a]}}};k.batch=function(c){var b=Object.keys(c);if(b.length)for(var a=0;a<b.length;a++)!1===c[b[a]]&&k.applyCreate.call(this,b[a])};return k}(),Ba=function(){var k=function(c){c.getHeader=k[_$_9989[51]];c.setHeader=k[_$_9989[11]];c.getHeaders=k.all};k[_$_9989[51]]=function(c){var b;if(b=this.options.columns)return b[c].title||E.getColumnName(c)};
162
+ k.all=function(c){for(var b=[],a=0;a<this.options.columns.length;a++)b.push(k[_$_9989[51]].call(this,a));return c?b:b.join(this.options.csvDelimiter)};k[_$_9989[11]]=function(c,b){if(!Q.call(this.parent,this))return!1;var a;if(a=this.options.columns[c]){var d=k[_$_9989[51]].call(this,c);if(!b&&(b=prompt(C(_$_9989[165]),d),!b))return!1;a.title=b;if(a=this.headers[c])a.innerHTML=b,a.setAttribute(_$_9989[166],b);U.call(this.parent,{worksheet:this,action:_$_9989[75],column:c,oldValue:d,newValue:b});L.call(this,
163
+ _$_9989[75],{column:c,title:b});F.call(this.parent,_$_9989[167],this,c,b,d)}};k.create=function(c){var b=this.options.columns[c],a=b.width||this.options.defaultColWidth,d=b.align||_$_9989[53],e=b.title||E.getColumnName(c),f=document.createElement(_$_9989[147]);this.parent.config.stripHTML?f.innerText=e:f.innerHTML=e;f.setAttribute(_$_9989[42],c);f.style.textAlign=d;b.title&&f.setAttribute(_$_9989[166],f.innerText);b.tooltip&&(f.title=b.tooltip);d=this.options.filters;!0===b.filter&&(d=!0);!1===b.filter&&
164
+ (d=!1);!0===d&&f.classList.add(_$_9989[168]);!1===b.visible&&(a=_$_9989[97]);d=document.createElement(_$_9989[169]);d.setAttribute(_$_9989[152],a);b.type==_$_9989[49]&&(f.style.display=_$_9989[40],d.style.display=_$_9989[40]);this.headers[c]=f;this.colgroup[c]=d};return k}(),aa=function(){var k=function(b,a,d){var e=this.footers.content,f;e&&e[a]&&e[a][b]&&(f=e[a][b].element)&&(void 0===d&&(e=this.options.footers,d=e[a]&&e[a][b]?e[a][b]:_$_9989[3]),P(d)&&1==this.parent.config.parseFormulas&&(d=V.execute.call(this,
165
+ d,b,null,!1)),this.options.applyMaskOnFooters&&(e=da[_$_9989[51]].call(this,b),d=t.editors.general.parseValue(b,a,d,this,e[1],f)),d instanceof Element||d instanceof HTMLDocument?(f.innerHTML=_$_9989[3],f.appendChild(d)):1==this.parent.config.stripHTML?f.innerText=d:f.innerHTML=d)},c=function(b){b.getFooter=c[_$_9989[51]];b.setFooter=c[_$_9989[11]];b.resetFooter=c.reset;b.refreshFooter=c.refresh;b.getFooterValue=c.value;b.setFooterValue=c.value};c[_$_9989[51]]=function(){return this.options.footers};
166
+ c[_$_9989[11]]=function(b){if(b){var a=this.options.footers;this.options.footers=b}this.options.footers!=a&&(aa.build.call(this),c.render.call(this),G.limited.call(this)&&(this.scrollY.style.display=_$_9989[40],G.resetY.call(this)),L.call(this,_$_9989[170],{data:this.options.footers}),F.call(this.parent,_$_9989[171],this,this.options.footers,a))};c.refresh=function(){var b=this.options.footers;if(b&&b.length)for(var a=0;a<b.length;a++)for(var d=0;d<b[a].length;d++)k.call(this,d,a,b[a][d])};c.value=
167
+ function(b,a,d){if(void 0===d)return this.options.footers[a][b];k.call(this,b,a,d);L.call(this,_$_9989[172],{x:b,y:a,value:d});F.call(this.parent,_$_9989[173],this,b,a,d)};c.reset=function(){var b=this.options.footers;this.options.footers=null;this.footers.content=null;this.tfoot.innerHTML=_$_9989[3];L.call(this,_$_9989[174],{});F.call(this.parent,_$_9989[171],this,null,b)};c.create=function(b,a){var d=this.footers.content[a][b];if(d&&d.element)return d.element;d=this.footers.content[a][b]={};var e=
168
+ this.options.columns[b].align?this.options.columns[b].align:_$_9989[53];d.element=document.createElement(_$_9989[147]);d.element.style.textAlign=e;d.element.setAttribute(_$_9989[42],b);d.element.setAttribute(_$_9989[43],a);k.call(this,b,a);this.options.columns[b].type==_$_9989[49]&&(d.element.style.display=_$_9989[40]);return d.element};c.build=function(){this.footers={element:this.tfoot,content:[]};if(this.options.footers){this.tfoot.innerHTML=_$_9989[3];for(var b=0;b<this.options.footers.length;b++){if(!this.footers.content[b]){this.footers.content[b]=
169
+ [];var a=document.createElement(_$_9989[145]),d=document.createElement(_$_9989[147]);d.innerHTML=_$_9989[148];a.appendChild(d);this.footers.element.appendChild(a)}for(a=0;a<this.options.columns.length;a++)this.options.footers[b][a]||(this.options.footers[b][a]=_$_9989[3]),this.footers.content[b][a]||(this.footers.content[b][a]={})}}};c.render=function(){for(var b=this.options.footers,a=0;a<b.length;a++)for(var d=0;d<b[a].length;d++){var e=aa.create.call(this,d,a);this.tfoot.children[a].appendChild(e)}};
170
+ c.adjust=function(b,a,d){var e=[],f=this.options.footers,g=this.footers.content;if(f)if(1==d){if(this.headers[b]&&this.headers[b].parentNode)var h=this.headers[b]==this.thead.lastChild.lastChild?!0:!1,l=!0;for(d=0;d<f.length;d++){for(var m=f[d].splice(b),n=b;n<b+a;n++)f[d][n]=_$_9989[3];f[d]=f[d].concat(m);m=g[d].splice(b);for(n=b;n<b+a;n++)g[d][n]={element:c.create.call(this,n,d)},l&&(1==h?this.tfoot.children[d].appendChild(g[d][n].element):this.tfoot.children[d].insertBefore(g[d][n].element,this.tfoot.children[d].children[b].nextSibling));
171
+ g[d]=g[d].concat(m)}}else for(d=0;d<f.length;d++){for(n=b;n<b+a;n++)(h=this.footers.content[d][n].element)&&h.parentNode&&h.parentNode.removeChild(h);g[d].splice(b,a);e[d]=f[d].splice(b,a)}return e};return c}(),pa=function(){var k=function(c){c.setNestedCell=k.cell;c.getNestedCell=k.cell;c.setNestedHeaders=k[_$_9989[11]];c.getNestedHeaders=k[_$_9989[51]];c.resetNestedHeaders=k.reset};k[_$_9989[51]]=function(){return this.options.nestedHeaders};k[_$_9989[11]]=function(c){k.reset.call(this);this.options.nestedHeaders=
172
+ c;k.build.call(this);k.render.call(this);ha.refresh.call(this);T.call(this);L.call(this,_$_9989[175],{data:c});F.call(this.parent,_$_9989[176],this,c)};k.reset=function(){var c=[],b=this.thead.children;this.options.nestedHeaders=null;for(var a=0;a<b.length;a++)b[a].classList.contains(_$_9989[177])&&c.push(b[a]);if(c.length)for(;b=c.shift();)b.remove();this.nested=null;ha.refresh.call(this);T.call(this);L.call(this,_$_9989[178]);F.call(this.parent,_$_9989[176],this,[])};k.cell=function(c,b,a){if(a){if(!Q.call(this.parent,
173
+ this))return!1;var d=this.options.nestedHeaders[b][c],e=this.nested.content[b][c].element;void 0!==a.title&&(e.innerText=a.title);void 0!==a.tooltip&&(e.title=a.tooltip);void 0!==a.colspan&&(d.colspan=a.colspan,e.setAttribute(_$_9989[52],a.colspan),e.style.display=0==d.colspan?_$_9989[40]:_$_9989[3]);L.call(this,_$_9989[179],{x:c,y:b,properties:a});F.call(this.parent,_$_9989[180],this,c,b,a)}else return this.nested.content[b][c].element};k.range=function(c){c=this.options.nestedHeaders[c];for(var b=
174
+ [],a=0,d=0;d<c.length;d++){var e=parseInt(c[d].colspan);b[d]=[a,a+e-1];a+=e}return b};k.getColumns=function(c){c=this.options.nestedHeaders[c];for(var b=[],a=0;a<c.length;a++)for(var d=c[a].colspan,e=0;e<d;e++)b.push(a);return b};k.create=function(c,b){if(this.nested.content[b][c])return this.nested.content[b][c].element;var a=this.options.nestedHeaders[b][c]||{},d=this.nested.content[b][c]={};a.colspan||(a.colspan=1);a.align||(a.align=_$_9989[53]);a.title||(a.title=_$_9989[3]);var e=document.createElement(_$_9989[147]);
175
+ e.setAttribute(_$_9989[181],c);e.setAttribute(_$_9989[182],b);e.setAttribute(_$_9989[52],a.colspan);e.setAttribute(_$_9989[183],a.align);e.innerHTML=a.title;a.tooltip&&(e.title=a.tooltip);return d.element=e};k.build=function(){this.nested||(this.nested={content:[]});if(this.options.nestedHeaders)for(var c=0;c<this.options.nestedHeaders.length;c++){this.nested.content[c]=[];var b=document.createElement(_$_9989[147]);b.innerHTML=_$_9989[148];var a=document.createElement(_$_9989[145]);a.classList.add(_$_9989[177]);
176
+ a.appendChild(b);this.thead.insertBefore(a,this.thead.lastChild)}};k.render=function(){for(var c,b=this.options.nestedHeaders,a=0;a<b.length;a++)for(var d=0;d<this.thead.lastChild.children.length;d++){c=this.thead.lastChild.children[d].getAttribute(_$_9989[42]);var e=k.getColumns.call(this,a);void 0!==e[c]&&k.renderCell.call(this,e[c],a)}};k.renderCell=function(c,b,a){var d=pa.create.call(this,c,b);d.parentNode?(c=d.getAttribute(_$_9989[52]),c++,d.setAttribute(_$_9989[52],c)):(d.setAttribute(_$_9989[52],
177
+ 1),a?this.thead.children[b].insertBefore(d,this.thead.children[b].children[a]):this.thead.children[b].appendChild(d),0==c&&0<this.options.freezeColumns&&(d.classList.add(_$_9989[50]),d.style.left=xa.call(this)?_$_9989[159]:_$_9989[155]))};k.adjust=function(c,b,a,d){var e=this.options.nestedHeaders;if(e)if(1==a)if(d&&d.nested)for(a=0;a<e.length;a++)for(var f=0;f<e[a].length;f++)k.cell.call(this,f,a,{colspan:d.nested[a][f]});else for(a=0;a<e.length;a++){if(f=k.getColumns.call(this,a)){f=f[c];var g=
178
+ parseInt(e[a][f].colspan)+b;k.cell.call(this,f,a,{colspan:g})}}else{d=[];for(a=0;a<e.length;a++)if(g=k.getColumns.call(this,a)){d[a]=[];for(f=0;f<b;f++){var h=g[c+f];typeof d[a][h]==_$_9989[13]&&(d[a][h]=e[a][h].colspan);e[a][h].colspan--}g=Object.keys(d[a]);for(f=0;f<g.length;f++)k.cell.call(this,g[f],a,{colspan:e[a][g[f]].colspan})}return d}};return k}(),la=function(){var k=function(c,b){var a=function(n){var p;(p=this.results)?n=p.indexOf(n):p=this.rows;n--;for(var q=n;0<=q;q--)if(n=this.results?
179
+ p[q]:q,this.rows[n]&&this.rows[n].element)return n;return 0},d=function(n){var p;(p=this.results)?n=p.indexOf(n):p=this.rows;n++;for(var q=n;q<p.length;q++)if(n=this.results?p[q]:q,this.rows[n]&&this.rows[n].element)return n;return p[p.length-1]},e=function(n,p){for(;0<=n;n--)if(this.records[p][n].element&&this.records[p][n].element.style.display!=_$_9989[40])return n;return 0},f=function(n,p){for(;n<this.options.columns.length;n++)if(this.records[p][n].element&&this.records[p][n].element.style.display!=
180
+ _$_9989[40])return n;return this.options.columns-1},g=this.getHighlighted(),h=g[0],l=g[1],m=g[2];g=g[3];c=parseInt(c);b=parseInt(b);null!=c&&null!=b&&(0<c-m?(f=f.call(this,parseInt(m)+1,b),c=parseInt(c)):(f=parseInt(c),c=e.call(this,parseInt(h)-1,b)),0<b-g?(d=d.call(this,parseInt(g)),b=parseInt(b)):(d=parseInt(b),b=a.call(this,parseInt(l))),c-f<=b-d?(f=parseInt(h),c=parseInt(m)):(d=parseInt(l),b=parseInt(g)),this.setBorder(f,d,c,b,_$_9989[138]))};k.execute=function(c){if(!Q.call(this.parent,this))return!1;
181
+ var b=this.borders.cloning;if(c)if(b&&b.active){c=b.x1;var a=b.y1,d=b.x2,e=b.y2}else return!1;else if(d=this.getSelected(),d.length)c=d[0].x,a=parseInt(d[d.length-1].y)+1,d=d[d.length-1].x,e=this.options.data.length-1;else return!1;var f,g=0,h=[],l=[],m=!1,n=this.getHighlighted(),p=Ea[_$_9989[51]].call(this,n,!1,!1),q=this.getSelected();if(f=this.getStyle(q,!0)){var v=Object.keys(f);if(v.length)for(var u=0;u<v.length;u++)h.push(f[v[u]])}if(n[0]==c)var w=a<n[1]?a-n[1]:1,y=0;else y=c<n[0]?c-n[0]:1,
182
+ w=0;v=0;c=parseInt(c);d=parseInt(d);a=parseInt(a);e=parseInt(e);for(var x=a;x<=e;x++)if(!this.results||-1!=this.results.indexOf(x)){void 0==p[g]&&(g=0);f=0;n[0]!=c&&(y=c<n[0]?c-n[0]:1);for(u=c;u<=d;u++){if(!(0!=m||this.records[x][u].element&&this.records[x][u].element.classList.contains(_$_9989[18]))){if((!b||1!=b.active)&&N.call(this,u,x)){m=!0;continue}void 0==p[g]?f=0:void 0==p[g][f]&&(f=0);var D=p[g][f];D&&!p[1]&&1==this.parent.config.autoIncrement&&(this.options.columns[u].type==_$_9989[56]||
183
+ this.options.columns[u].type==_$_9989[14]?P(D)?D=V.shiftFormula(D,y,x-n[1]):D==Number(D)&&(D=Number(D)+w):this.options.columns[u].type==_$_9989[184]&&(D=new Date(D),D.setDate(D.getDate()+w),D=D.getFullYear()+_$_9989[185]+jSuites.two(parseInt(D.getMonth()+1))+_$_9989[185]+jSuites.two(D.getDate())+_$_9989[132]+_$_9989[186]));D={x:u,y:x,value:D};h&&null!=h[v]&&(D.style=h[v],v++,v>=h.length&&(v=0));l.push(D)}f++;n[0]!=c&&y++}g++;w++}l.length&&(q[0].x<c&&(c=q[0].x),q[0].y<a&&(a=q[0].y),q[q.length-1].x>
184
+ d&&(d=q[q.length-1].x),q[q.length-1].y>e&&(e=q[q.length-1].y),this.setValue(l),this.resetBorders(_$_9989[138],!0),this.updateSelectionFromCoords(c,a,d,e))};k.end=function(c){la.event=!1;la.execute.call(this,!0)};k.cancel=function(c){la.event=!1;this.resetBorders(_$_9989[138],!0)};return k}(),Ea=function(){var k=function(c){c.getData=k[_$_9989[51]];c.getJson=k[_$_9989[51]];c.setData=k[_$_9989[11]];c.loadData=k.load;c.getRowData=k.getRowData;c.setRowData=k.setRowData;c.getColumnData=k.getColumnData;
185
+ c.setColumnData=k.setColumnData;c.updateData=k.update;c.refresh=k.refresh;c.data=k[_$_9989[51]];c.download=k.download;c.copy=k.copy;c.paste=k.paste;c.cut=function(){return c.copy(!0)}};k[_$_9989[51]]=function(c,b,a){!0===c&&(c=this.getHighlighted());for(var d=c?!0:!1,e,f=[],g=this.options.columns.length,h=this.options.data.length,l,m=this.dataType&&typeof a==_$_9989[13]?1:0,n=0;n<h;n++){l=null;e=m?{}:[];for(var p=0;p<g;p++){var q;if(!(q=!d)){q=c[1];var v=c[2],u=c[3];q=p>=c[0]&&p<=v&&n>=q&&n<=u?!0:
186
+ !1}if(q&&(!d||!this.results||-1!=this.results.indexOf(n))){q=N.call(this,p,n);if(b){if(d&&!1===this.rows[n].visible)continue;l=ea.processed.call(this,p,n);void 0!==l&&(q=l)}a&&q.match&&(q.match(a)||q.match(/\n/)||q.match(/"/))&&(q=q.replace(new RegExp(_$_9989[187],_$_9989[188]),_$_9989[189]),q=_$_9989[187]+q+_$_9989[187]);m?jSuites.path.call(e,_$_9989[3]+Z.call(this,p),q):e.push(q);l=!0}}l&&(a?f.push(e.join(a)):f.push(e))}return a?f.join(_$_9989[10])+_$_9989[10]:f};k.parse=function(){for(var c,b=
187
+ {},a=0,d,e=[],f=this.options.data,g=0;g<f.length;g++)c=null,d=g,f[g].data&&(Array.isArray(f[g].data)||typeof f[g].data==_$_9989[84])&&(typeof f[g].id==_$_9989[14]&&(c=parseInt(f[g].id)),typeof f[g].row==_$_9989[14]&&(d=f[g].row),e[d]=f[g].data,f[g]=[]),d>a&&(a=d),c&&(b[d]=c);if(Object.keys(e).length)for(g=0;g<=a;g++)e[g]&&(f[g]=e[g]);a=this.getPrimaryKey();if(!1!==a)for(a=Z.call(this,a),g=0;g<f.length;g++)b[g]||!1===a||(c=parseInt(f[g][a]),0<c&&(b[g]=c));return b};k.type=function(){for(var c=this.dataType=
188
+ 0;c<this.options.columns.length;c++)typeof this.options.columns[c].name!==_$_9989[13]&&(this.dataType=1)};k[_$_9989[11]]=function(c){c=k.standardize(c);var b={},a=[],d={};var e=Object.keys(c[0]).length-this.options.columns.length;0<e&&this.insertRow(e);var f=c.length-this.options.data.length;0<f&&this.insertRow(f);for(var g=0;g<this.options.data.length;g++){void 0===c[g]&&(c[g]={row:g,data:[]});for(var h=0;h<this.options.columns.length;h++)c[g].data[h]||(c[g].data[h]=_$_9989[3])}for(h=0;h<this.options.columns.length;h++){var l=
189
+ Z.call(this,h);d[l]=h}for(g=0;g<c.length;g++){f=c[g].row;l=Object.keys(c[g].data);for(h=0;h<l.length;h++)e=null,void 0!==d[l[h]]?e=d[l[h]]:-1<l[h]&&(e=parseInt(l[h])),null!==e&&a.push({x:e,y:f,value:c[g].data[l[h]]});c[g].id&&(b[f]=c[g].id)}sa.setId.call(this,b);ea[_$_9989[11]].call(this,a,null,!0)};k.build=function(){this.results=null;this.rows=[];this.records=[];this.sequence=0;k.type.call(this);if(this.options.data){var c=k.parse.call(this),b=this.options.data.length;this.options.minDimensions[1]>
190
+ b&&(b=this.options.minDimensions[1]);for(var a=0;a<b;a++){var d=c[a]?c[a]:null;oa.row.call(this,a,d)}}};k.load=function(c){this.resetBorders();this.resetSelection();this.tbody.innerText=_$_9989[3];this.options.data=c;k.build.call(this);G.call(this)};k.refresh=function(c){if(typeof c!==_$_9989[13])for(var b=0;b<this.options.columns.length;b++){var a=this.records[c]&&this.records[c][b].element?this.records[c][b].element:null,d=da[_$_9989[51]].call(this,b,c);typeof d[0].updateCell==_$_9989[85]&&d[0].updateCell(a,
191
+ N.call(this,b,c),b,c,this,d[1]);a&&M.applyOverflow.call(this,a,b,c)}else if(this.options.url){var e=this;1==this.parent.config.loadingSpin&&jSuites.loading.show();jSuites.ajax({url:this.options.url,method:_$_9989[59],dataType:_$_9989[60],success:function(f){e.setData(f);jSuites.loading.hide()}})}};k.getRowData=function(c,b){if(typeof this.options.data[c]===_$_9989[13])return!1;if(b){if(this.dataType){b={};for(var a=0;a<this.options.columns.length;a++){var d=_$_9989[3]+Z.call(this,a),e=_$_9989[3]+
192
+ ea.processed.call(this,a,c,!0);jSuites.path.call(b,d,e)}}else for(b=[],a=0;a<this.options.columns.length;a++)b.push(ea.processed.call(this,a,c,!0));return b}return JSON.parse(JSON.stringify(this.options.data[c]))};k.setRowData=function(c,b,a){for(var d=[],e=0;e<this.options.columns.length;e++)typeof b[e]===_$_9989[13]&&(b[e]=_$_9989[3]),d.push({x:e,y:c,value:b[e]});d.length&&this.setValue(d,null,a)};k.getColumnData=function(c,b){if(typeof this.options.columns[c]===_$_9989[13])return!1;for(var a=[],
193
+ d=0;d<this.options.data.length;d++){var e=b?ea.processed.call(this,c,d,!0):N.call(this,c,d);a.push(e)}return a};k.setColumnData=function(c,b,a){for(var d=[],e=0;e<this.rows.length;e++)typeof b[e]===_$_9989[13]&&(b[e]=_$_9989[3]),d.push({x:c,y:e,value:b[e]});d.length&&this.setValue(d,null,a)};k.copy=function(c){var b=this,a=this.getHighlighted(),d=function(){b.setBorder(a[0],a[1],a[2],a[3],_$_9989[127]);b.borders.copying.clear=1==c?!0:!1},e=k[_$_9989[51]].call(this,a,!0,_$_9989[190]),f=F.call(this.parent,
194
+ _$_9989[191],this,a,e);if(f)e=f;else if(!1===f)return!1;navigator.clipboard?navigator.clipboard.writeText(e).then(d):(this.parent.textarea.value=e,this.parent.textarea.select(),document.execCommand(_$_9989[192]),d());return e};k.paste=function(c,b,a){if(!Q.call(this.parent,this))return!1;var d=this,e=function(){d.borders.copying&&(d.resetBorders(_$_9989[127],!0),d.borders.copying.clear=!1)},f=a,g=null,h=this.options.style,l=null,m=null,n=[];if(this.borders.copying){var p=[this.borders.copying.x1,
195
+ this.borders.copying.y1,this.borders.copying.x2,this.borders.copying.y2];l=p[0];m=p[1];var q=jSuites.hash(a),v=jSuites.hash(k[_$_9989[51]].call(this,p,!0,_$_9989[190]));if(q!=v)e();else{var u=0,w=0;a=k[_$_9989[51]].call(this,p,!1,!1);for(q=p[1];q<=p[3];q++)if(!this.results||-1!=this.results.indexOf(q)){n[w]=[];u=0;for(v=p[0];v<=p[2];v++)g=E.getColumnNameFromCoords(v,q),n[w][u]=h&&h[g]?h[g]:_$_9989[193],u++;w++}}}c=parseInt(c);b=parseInt(b);100<f.length&&!this.options.pagination&&!G.limited.call(this)&&
196
+ console.log(_$_9989[194]);if(q=F.call(this.parent,_$_9989[195],this,a,c,b,n,f))a=q;else if(!1===q)return!1;if(a){Array.isArray(a)||(a=E.parseCSV(a,_$_9989[190]));if(f=this.getHighlighted()){g=[];u=[];w=[];h=[];var y=0,x=0;for(q=f[1];q<=f[3];q++)if(!this.results||-1!=this.results.indexOf(q)){g=[];u=[];for(v=f[0];v<=f[2];v++)g.push(a[x][y]),n&&n[x]&&n[x][y]?u.push(n[x][y]):u.push(_$_9989[3]),y++,y>=a[0].length&&(y=0);w.push(g);h.push(u);x++;x>=a.length&&(x=0)}0==w.length%a.length&&0==w[0].length%a[0].length&&
197
+ (a=w,n=h)}h=null;f=[];if(this.borders.copying&&!0===this.borders.copying.clear){for(q=p[1];q<=p[3];q++)for(v=p[0];v<=p[2];v++)(!this.results||this.results&&0<=this.results.indexOf(q))&&f.push({x:v,y:q,value:_$_9989[3],style:_$_9989[3]});e()}q=c+a[0].length-this.options.columns.length;0<q&&this.insertColumn(q);q=b+a.length-this.rows.length;0<q&&this.insertRow(q);u=g=c;y=w=b;x=null;this.results&&(h=this.results.indexOf(b));for(q=0;q<a.length;q++)for(v=0;v<a[q].length;v++){null!==l&&null!==m&&a[q][v][0]==
198
+ _$_9989[12]&&(a[q][v]=V.shiftFormula(a[q][v],c-l,b-m));u=c+v;y=b+q;this.results&&(y=this.results[h+q]);var D={x:u,y,value:a[q][v]};n&&n[q]&&n[q][v]&&(D.style=n[q][v]);f.push(D);null===x&&ya.isSelected.call(this,u,y,p)&&(x=!0)}x&&e();f.length&&(ea[_$_9989[11]].call(this,f,null,this.parent.config.forceUpdateOnPaste?!0:!1),F.call(this.parent,_$_9989[196],this,f),this.updateSelectionFromCoords(g,w,u,y))}};k.download=function(c,b){if(this.parent.config.allowExport){void 0===b&&(b=!0);var a=_$_9989[3];
199
+ if(1==c||1==this.parent.config.includeHeadersOnDownload)a+=this.getHeaders().replace(/\s+/gm,_$_9989[132])+_$_9989[10];a+=k[_$_9989[51]].call(this,null,b,this.options.csvDelimiter);b=new Blob([_$_9989[198]+a],{type:_$_9989[199]});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(b,this.options.csvFileName+_$_9989[200]):(c=document.createElement(_$_9989[201]),b=URL.createObjectURL(b),c.href=b,c.setAttribute(_$_9989[202],this.options.csvFileName+_$_9989[200]),document.body.appendChild(c),
200
+ c.click(),c.parentNode.removeChild(c))}else console.error(_$_9989[197])};k.standardize=function(c){c||(c=[]);Array.isArray(c)||(c=[c]);void 0==c[0]||Array.isArray(c[0])||typeof c[0]==_$_9989[84]||(c=[c]);for(var b=0;b<c.length;b++){var a={};Array.isArray(c[b])||void 0==c[b].data?a.data=c[b]:a=c[b];a.row=void 0==c[b].row?b:c[b].row;c[b]=a}return c};return k}(),Va=function(){var k=function(c){c.getLabel=k[_$_9989[51]];c.getLabelFromCoords=k[_$_9989[51]]};k[_$_9989[51]]=function(c,b,a){if(typeof c==
201
+ _$_9989[17]){c=E.getCoordsFromColumnName(c);var d=c[0];b=c[1]}else d=c;return this.getProcessed(d,b,a)};return k}(),Ha=function(){var k=function(c){c.getDefinedNames=k[_$_9989[51]];c.setDefinedNames=k[_$_9989[11]]};k[_$_9989[11]]=function(c){var b=Object.keys(c);if(b.length){for(var a=0;a<b.length;a++)this.parent.config.definedNames[b[a]]=c[b[a]];L.call(this,_$_9989[203],[c])}};k[_$_9989[51]]=function(c){var b=this.parent.config.definedNames;return c?b[c]:b};k.updateAll=function(c,b){var a,d={};if(a=
202
+ this.parent.config.definedNames){var e=Object.keys(a);if(e.length){for(var f=this.getWorksheetName(),g=0;g<e.length;g++){var h=V.update.call(this,a[e[g]],c,b,f);h!==a[e[g]]&&(d[e[g]]=h)}k[_$_9989[11]].call(this,d)}}};k.updateWorksheetName=function(c,b){var a,d={};if(a=this.parent.config.definedNames){var e=Object.keys(a);if(e.length){for(var f=0;f<e.length;f++){var g=V.updateWorksheetName(a[e[f]],c,b);g!==a[e[f]]&&(d[e[f]]=g)}k[_$_9989[11]].call(this,d)}}};return k}(),ka=function(){var k=[_$_9989[204],
203
+ _$_9989[205],_$_9989[206],_$_9989[207],_$_9989[208]],c=[_$_9989[185],_$_9989[151],_$_9989[209],_$_9989[210],_$_9989[211],_$_9989[212],_$_9989[1],_$_9989[213],_$_9989[25],_$_9989[214],_$_9989[12],_$_9989[215],_$_9989[216]],b=[],a=function(){if(0<b.length){for(var f=0;f<b.length;f++)ha.destroy.call(this,b[f]);b=[]}},d=function(f){a.call(this);for(var g=0,h=[],l,m=0;m<f.children.length;m++)if(l=f.children[m].getAttribute(_$_9989[217])){h[l]||(h[l]=k[g++],4<g&&(g=0));f.children[m].style.color=h[l];if(-1===
204
+ l.indexOf(_$_9989[135])){if(0<=l.indexOf(_$_9989[136])){var n=l.split(_$_9989[136]),p=E.getCoordsFromColumnName(n[0]);n=E.getCoordsFromColumnName(n[1])}else n=p=E.getCoordsFromColumnName(l);ya[_$_9989[11]].call(this,p[0],p[1],n[0],n[1],null,l,h[l])}b.push(l)}},e=function(f,g){f.classList.add(_$_9989[92]);f.classList.add(_$_9989[218]);f.classList.add(_$_9989[219]);f.classList.add(_$_9989[220]);f.setAttribute(_$_9989[221],!0);f.onclick=function(h){h=h.changedTouches&&h.changedTouches[0]?h.changedTouches[0].clientX:
205
+ h.clientX;var l=this.getBoundingClientRect();24>l.width-(h-l.left)&&(e.current=f,f.classList.add(_$_9989[222]))};f.onblur=function(){f.worksheet&&(a.call(f.worksheet),typeof f.onchange==_$_9989[85]&&f.onchange.call(f),f.worksheet=null)};f.onchange=g};e.current=null;e.parse=function(f){for(var g=_$_9989[3],h=_$_9989[3],l=window.getSelection(),m=document.createRange(),n=E.getCaretIndex.call(this.parent,f),p=V.tokenize(f.innerText.replace(/(\r\n|\n|\r)/gm,_$_9989[3])),q=0;q<p.length;q++)p[q]&&V.tokenIdentifier.test(p[q].trim())?
206
+ (q==p.length-1&&(h=_$_9989[223]),g+=_$_9989[224]+h+_$_9989[225]+p[q].trim().replace(/\$/g,_$_9989[3])+_$_9989[226]+p[q]+_$_9989[227]):g+=p[q];f.innerHTML=g;g=null;for(q=0;q<f.childNodes.length&&!(g=f.childNodes[q],h=g.tagName?g.innerText.length:g.length,0>=n-h);q++)n-=h;g&&(g.tagName?m.setStart(g.firstChild,n):m.setStart(g,n),l.removeAllRanges(),l.addRange(m));d.call(this,f)};e.close=function(f){a.call(this);f?f.classList.remove(_$_9989[92]):e.current&&(typeof e.current.onchange==_$_9989[85]&&e.current.onchange.call(e.current),
207
+ e.current.classList.remove(_$_9989[222]),e.current.worksheet=null,e.current=null)};e.getName=function(f,g,h,l,m){f=E.getColumnNameFromCoords(f,g);h=E.getColumnNameFromCoords(h,l);m.ctrlKey&&(f=h);return f!==h?(m=f+_$_9989[136]+h,m=V.getTokensFromRange.call(this,m),V.getRangeFromTokens.call(this,m)):f};e.range=function(f,g,h,l,m){e.current.getAttribute(_$_9989[228])==_$_9989[229]&&(f=h,g=l);f=e.getName.call(this,f,g,h,l,m);g=document.createElement(_$_9989[230]);g.innerText=f;g.setAttribute(_$_9989[217],
208
+ f);e.current.innerText=_$_9989[3];e.current.appendChild(g);d.call(this,e.current);jSuites.focus(g);m.preventDefault()};e.update=function(f,g,h,l,m){var n=this,p=jSuites.getNode();if(p){var q=e.getName.call(this,f,g,h,l,m);f=function(v){var u=document.createElement(_$_9989[230]);u.innerText=q;u.setAttribute(_$_9989[217],q);p.parentNode===n.parent.input&&!1===v?p.parentNode.insertBefore(u,p.nextSibling):n.parent.input.appendChild(u);p=u};if(p.getAttribute(_$_9989[217]))m.ctrlKey?(n.parent.input.appendChild(document.createTextNode(_$_9989[25])),
209
+ f(!0)):(p.innerText=q,p.setAttribute(_$_9989[217],q));else{if(p.innerText!==_$_9989[3]&&-1==c.indexOf(p.innerText.slice(-1))||p.nextElementSibling&&p.nextElementSibling.getAttribute(_$_9989[217]))return!1;f(!1)}jSuites.focus(p);d.call(n,n.parent.input);m.preventDefault();return!0}return!1};e.onkeydown=function(f){f.target.worksheet=this;if(f.ctrlKey){if(67==f.which||88==f.which)f=window.getSelection().toString().replace(/(\r\n|\n|\r)/gm,_$_9989[3]),navigator.clipboard?navigator.clipboard.writeText(f):
210
+ (this.parent.textarea.value=f,this.parent.textarea.select(),document.execCommand(_$_9989[192]))}else if(36==f.which){var g=window.getSelection(),h=document.createRange();h.setStart(f.target,0);g.removeAllRanges();g.addRange(h)}else 35==f.which?jSuites.focus(f.target):187==f.which&&!f.target.innerText.replace(/(\r\n|\n|\r)/gm,_$_9989[3])&&f.target.getAttribute(_$_9989[94])&&f.target.removeAttribute(_$_9989[94])};return e}(),V=function(){var k=new RegExp(/^(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]+)(:\$?[A-Z]+\$?[0-9]+)?$/i),
211
+ c=function(h){h=b(h);for(var l=[_$_9989[185],_$_9989[151],_$_9989[209],_$_9989[210],_$_9989[211],_$_9989[231]],m=[_$_9989[212],_$_9989[232],_$_9989[1],_$_9989[2],_$_9989[213],_$_9989[233],_$_9989[25],_$_9989[214],_$_9989[12],_$_9989[215],_$_9989[216]],n=_$_9989[3],p=[],q=0,v=0;v<h.length;v++){if(h[v]==_$_9989[187]||h[v]==_$_9989[133])q=0==q?1:0;0==q&&(-1<l.indexOf(h[v])||-1<m.indexOf(h[v]))?(n&&(p.push(n),n=_$_9989[3]),p.push(h[v])):n+=h[v]}n&&p.push(n);for(v=0;v<p.length;v++)-1==p[v].indexOf(_$_9989[187])&&
212
+ -1==p[v].indexOf(_$_9989[133])&&(p[v]=p[v].replace(/\s/g,_$_9989[3]));return p},b=function(h,l){for(var m=_$_9989[3],n=0,p=[_$_9989[12],_$_9989[135],_$_9989[216],_$_9989[215]],q=0;q<h.length;q++)h[q]==_$_9989[187]&&(n=0==n?1:0),1==n?m+=h[q]:(m+=h[q].toUpperCase(),1==l&&0<q&&h[q]==_$_9989[12]&&-1==p.indexOf(h[q-1])&&-1==p.indexOf(h[q+1])&&(m+=_$_9989[12]));return m},a=function(h){h.setFormula=a[_$_9989[11]];h.executeFormula=a.execute;h.formula=[]};a.run=function(h,l){var m=_$_9989[3],n=Object.keys(l);
213
+ if(n.length){for(var p={},q=0;q<n.length;q++){var v=n[q].replace(/!/g,_$_9989[27]);0<v.indexOf(_$_9989[27])&&(v=v.split(_$_9989[27]),p[v[0]]=!0)}v=Object.keys(p);for(q=0;q<v.length;q++)m+=_$_9989[234]+v[q]+_$_9989[235];for(q=0;q<n.length;q++)v=n[q].replace(/!/g,_$_9989[27]),jSuites.isNumeric(l[n[q]])||(p=l[n[q]].match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&p.length&&(l[n[q]]=e(p,l[n[q]])),m=0<v.indexOf(_$_9989[27])?m+(v+_$_9989[236]+l[n[q]]+_$_9989[237]):m+(_$_9989[234]+
214
+ v+_$_9989[236]+l[n[q]]+_$_9989[237])}h=h.replace(/\$/g,_$_9989[3]);(p=h.match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&p.length&&(h=e(p,h));h=h.replace(/!/g,_$_9989[27]);return(new Function(m+_$_9989[238]+h))()};a[_$_9989[11]]=function(){};var d=function(h){h=b(h,!0);return h.replace(/\$/g,_$_9989[3])},e=function(h,l){for(var m=0;m<h.length;m++){var n=a.getTokensFromRange.call(this,h[m]);l=l.replace(h[m],_$_9989[213]+n.join(_$_9989[25])+_$_9989[233])}return l},f=function(h,
215
+ l,m){for(var n=this.config.definedNames,p=0;p<h.length;p++)h[p]&&n&&n[h[p]]&&(l=l.replace(h[p],n[h[p]]),m&&(m[h[p]]=n[h[p]]));return d(l)},g=function(h,l){var m;if(m=this.records[l][h].a)for(var n=0;n<m.length;n++)for(var p=0;p<m[n].length;p++)m[n][p]&&(m[n][p].innerText=_$_9989[3],this.records[l+n][h+p].v=_$_9989[3]);this.records[l][h].a=[]};a.execute=function(h,l,m,n,p){if(1==this.parent.processing)return null!==l&&null!==m&&this.parent.queue.push([this,l,m]),_$_9989[3];var q=[],v=function(R,O,
216
+ r,A){if(void 0!=O&&void 0!=r){var z=E.getColumnNameFromCoords(O,r);r=A.getWorksheetName()+_$_9989[27]+z;q[r]||(q[r]=0);q[r]++;if(3<q[r])throw{error:_$_9989[239],message:_$_9989[240],reference:r};}else z=null;p||(R=d(R));var B=R,I=B.match(/[A-Z_]+[A-Z0-9_\.]*/g);I&&I.length&&(B=f.call(A.parent,I,B,u));(I=B.match(/(('.*?'!)|(\w*!))?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&I.length&&(B=e.call(A,I,B));I=[];B=c(B);for(var J=0;J<B.length;J++)B[J]&&k.test(B[J])&&I.push(B[J]);if(I){if(-1<I.indexOf(z))throw{error:_$_9989[241],
217
+ message:_$_9989[242]};for(B=0;B<I.length;B++){J=I[B].split(_$_9989[135]);J[1]?(O=J[1],J=H(J[0]),r=A.getWorksheetName()+_$_9989[27]+z):(O=J[0],J=A,r=z);if(typeof J==_$_9989[13]||typeof J.formula==_$_9989[13])throw{error:_$_9989[243],message:_$_9989[244]};r&&(J.formula[O]||(J.formula[O]=[]),0>J.formula[O].indexOf(r)&&J.formula[O].push(r));if(!u[I[B]]){r=E.getCoordsFromColumnName(O);O=r[0];r=r[1];var Y=void 0!==J.records[r][O].v?J.records[r][O].v:N.call(J,O,r);u[I[B]]||((_$_9989[3]+Y).substr(0,1)==_$_9989[12]?
218
+ u[I[B]]=v(Y,O,r,J):(Y?Y!=Number(Y)&&(Y=_$_9989[187]+Y+_$_9989[187]):Y=0,u[I[B]]=Y))}}}return R.substr(1)},u={};try{if(h=v(h,l,m,this)){var w=p?a.run(h,u):t.formula(h,u,l,m,this);if(!1!==n&&void 0!=l&&void 0!=m)if(w instanceof Date)this.records[m][l].v=jSuites.calendar.dateToNum(w);else if(Array.isArray(w)){g.call(this,l,m);n=[];for(var y=null,x=0;x<w.length;x++)for(var D=0;D<w[x].length;D++)null===y&&(0<x&&x>D&&this.options.data[m+x][l+D]?y=_$_9989[245]:(this.records[m+x][l+D].v=w[x][D],this.records[m+
219
+ x][l+D].element&&(n[x]||(n[x]=[]),n[x][D]=this.records[m+x][l+D].element,this.records[m+x][l+D].element.innerText=w[x][D])));null===y?(y=w[0][0],this.records[m][l].a=n):g.call(this,l,m);w=this.records[m][l].v=y}else this.records[m][l].v=w;return w}}catch(R){return 1==this.parent.config.debugFormulas&&console.log(h,u,R),R&&R.error?R.error:_$_9989[243]}};a.update=function(h,l,m,n){var p=null,q=null,v=function(y){m&&m[y]&&(y=_$_9989[246]);l[y]&&(y=l[y]);return y};h=b(h,!0);h=c(h);for(var u=0;u<h.length;u++)if(h[u]&&
220
+ k.test(h[u])){if(-1==h[u].indexOf(_$_9989[135])){if(q=h[u],p=_$_9989[3],n)continue}else if(q=h[u].split(_$_9989[135]),p=q[0],q=q[1],n!=p)continue;if(0<=q.indexOf(_$_9989[136])){q=a.getTokensFromRange.call(this,q);for(var w=0;w<q.length;w++)q[w]=v(q[w]);q=a.getRangeFromTokens.call(this,q)}else-1==q.indexOf(_$_9989[247])?q=v(q):(q=v(q.replace(/\$/g,_$_9989[3])),q=_$_9989[247]+q.match(/[A-Z]+/g)+_$_9989[247]+q.match(/[0-9]+/g));p&&(q=p+_$_9989[135]+q);h[u]=q}return h.join(_$_9989[3])};a.getChain=function(h){if(void 0===
221
+ h)return[];var l=[],m=[],n=[],p=function(u){if(0<=u.indexOf(_$_9989[27])){var w=u.split(_$_9989[27]),y=w[0],x=w[1];w=H(w[0])}else w=this,y=w.getWorksheetName(),x=u;if(w.formula[x]&&!n[u]){var D=!1;n[u]=!0;for(u=0;u<w.formula[x].length;u++){var R=w.formula[x][u];-1==R.indexOf(_$_9989[27])&&(R=y+_$_9989[27]+R);if(!m[R]){var O=w.getValue(R);P(O)?l.push([R,O,a.getTokens.call(w,O,y)]):(D=!0,w.formula[x][u]=null);p.call(w,R);m[R]=!0}}1==D&&(w.formula[x]=w.formula[x].filter(function(r){return null!=r}))}},
222
+ q=Object.keys(h);for(h=0;h<q.length;h++)p.call(this,q[h]);q=0;for(h=l.length-1;0<=h;h--){for(var v=0;v<h;v++)if(0<=l[v][2].indexOf(l[h][0])){l.splice(v,0,l.splice(h,1)[0]);h=l.length;break}q++;if(1E6<q){console.error(_$_9989[248]);break}}m=[];for(h=0;h<l.length;h++)m[l[h][0]]=l[h][1];return m};a.updateAll=function(h,l){var m,n;Ha.updateAll.call(this,h,l);var p=Object.keys(this.formula);var q=[];var v=[];for(m=0;m<p.length;m++){var u=p[m];var w=this.formula[u];if(l&&l[u])for(var y=0;y<w.length;y++)h[w[y]]&&
223
+ (w[y]=h[w[y]]),v[w[y]]=!0;else{var x=[];for(y=0;y<w.length;y++)l&&l[w[y]]||(h[w[y]]&&(w[y]=h[w[y]]),v[w[y]]=!0,x.push(w[y]));x.length&&(h[u]&&(u=h[u]),q[u]=x)}}this.formula=q;x=this.getWorksheetName();for(var D=0;D<t.spreadsheet.length;D++)for(var R=t.spreadsheet[D].worksheets,O=0;O<R.length;O++)if(R[O].getWorksheetName()!==x)for(p=Object.keys(R[O].formula),m=0;m<p.length;m++){q=[];w=R[O].formula[p[m]];for(y=0;y<w.length;y++)u=w[y].split(_$_9989[27]),u[0]==x&&u[1]?l&&l[u[1]]||(h[u[1]]&&(u[1]=h[u[1]]),
224
+ q.push(u[0]+_$_9989[27]+u[1])):q.push(w[y]);R[O].formula[p[m]]=q}p=[];u=Object.keys(v);for(y=0;y<u.length;y++)0<=u[y].indexOf(_$_9989[27])?(w=u[y].split(_$_9989[27]),q=H(w[0]),m=w[1],x=this.getWorksheetName(),w=w[0]):(q=this,m=u[y],x=null,w=this.getWorksheetName()),(n=q.getValue(m))&&P(n)&&(q=a.update.call(q,n,h,l,x),q!=n&&(v[u[y]]=q,m=E.getCoordsFromColumnName(m),p[w]||(p[w]=[]),p[w].push({x:m[0],y:m[1],value:q,force:!0})));u=Object.keys(p);for(h=0;h<u.length;h++)q=H(u[h]),p[u[h]]=ea.applyValues.call(q,
225
+ p[u[h]]),ea.setValueChained.call(q,p[u[h]]),L.call(q,_$_9989[107],{data:p[u[h]]})};a.updateWorksheetName=function(h,l,m){for(var n=c(h),p=0;p<n.length;p++)h=n[p].split(_$_9989[135]),h[1]&&(h[0]=h[0].replace(new RegExp(_$_9989[133],_$_9989[188]),_$_9989[3]),h[0].toUpperCase()==l.toUpperCase()&&(h[0]=m,0<=h[0].indexOf(_$_9989[132])&&(h[0]=_$_9989[133]+h[0]+_$_9989[133]),n[p]=h.join(_$_9989[135])));return n.join(_$_9989[3])};a.updateWorksheetNames=function(h,l){for(var m,n,p=0;p<t.spreadsheet.length;p++)for(var q=
226
+ [],v=t.spreadsheet[p].worksheets,u=0;u<v.length;u++){for(var w=0;w<v[u].options.data.length;w++)for(var y=0;y<v[u].options.data[w].length;y++)(m=v[u].options.data[w][y])&&P(m)&&(n=a.updateWorksheetName(m,h,l),n!=m&&q.push({x:y,y:w,value:n,force:!0}));q=ea.applyValues.call(v[u],q);L.call(v[u],_$_9989[107],{data:q})}};a.shiftFormula=function(h,l,m){var n=c(h,!0);h=function(u){if(-1==u.indexOf(_$_9989[135])){u=E.getCoordsFromColumnName(u);var w=_$_9989[3]}else w=n[p].split(_$_9989[135]),u=E.getCoordsFromColumnName(w[1]),
227
+ w=w[0]+_$_9989[135];var y=u[0]+l;u=u[1]+m;return u=0>y||0>u?_$_9989[246]:w+E.getColumnNameFromCoords(y,u)};for(var p=0;p<n.length;p++)if(k.test(n[p])&&-1==n[p].indexOf(_$_9989[247])){var q=-1==n[p].indexOf(_$_9989[135])?[_$_9989[3],n[p]]:n[p].split(_$_9989[135]);if(-1==q[1].indexOf(_$_9989[136]))q[1]=h(q[1]);else{var v=q[1].split(_$_9989[136]);q[1]=h(v[0])+_$_9989[136]+h(v[1])}n[p]=q[0]?q.join(_$_9989[135]):q[1]}return n.join(_$_9989[3])};a.getTokensFromRange=function(h){var l=this,m=_$_9989[3],n=
228
+ _$_9989[3];0<=h.indexOf(_$_9989[27])?n=_$_9989[27]:0<=h.indexOf(_$_9989[135])&&(n=_$_9989[135]);h=h.replace(/\$/g,_$_9989[3]);n&&(m=h.split(n),l=H(m[0]),h=m[1],m=m[0]+n);n=[];h=h.split(_$_9989[136]);var p=E.getCoordsFromColumnName(h[0]),q=E.getCoordsFromColumnName(h[1]);if(p[0]<=q[0]){h=p[0];var v=q[0]}else h=q[0],v=p[0];if(null===p[1]&&null==q[1]){var u=0;p=0;l.options&&l.options.data&&(p=l.options.data.length-1)}else p[1]<=q[1]?(u=p[1],p=q[1]):(u=q[1],p=p[1]);for(l=u;l<=p;l++)for(u=h;u<=v;u++)n.push(m+
229
+ E.getColumnNameFromCoords(u,l));return n};a.getRangeFromTokens=function(h){h=h.filter(function(n){return n!=_$_9989[246]});for(var l=_$_9989[3],m=0;m<h.length;m++)0<=h[m].indexOf(_$_9989[27])&&(l=h[m].split(_$_9989[27]),h[m]=l[1],l=l[0]);l&&(l+=_$_9989[27]);h.sort(function(n,p){n=E.getCoordsFromColumnName(n);p=E.getCoordsFromColumnName(p);return n[1]>p[1]?1:n[1]<p[1]?-1:n[0]>p[0]?1:n[0]<p[0]?-1:0});return h.length?l+(h[0]+_$_9989[136]+h[h.length-1]):_$_9989[246]};a.getTokens=function(h,l){var m=d(h);
230
+ h.replace(/!/g,_$_9989[27]);(h=m.match(/[A-Z_]+[A-Z0-9_\.]*/g))&&h.length&&(m=f.call(this.parent,h,m));(h=m.match(/('.*?'?|\w*\.)?(\$?[A-Z]+\$?[0-9]*):(\$?[A-Z]+\$?[0-9]*)?/g))&&h.length&&(m=e.call(this,h,m));h=m.match(/('.*?'?|\w*\.)?(\$?[A-Z]+\$?[0-9]+)(:\$?[A-Z]+\$?[0-9]+)?/g);for(m=0;m<h.length;m++)-1==h[m].indexOf(_$_9989[27])&&l&&(h[m]=l+_$_9989[27]+h[m]);return h};a.tokenIdentifier=k;a.tokenize=c;return a}(),ea=function(){var k=function(c){c.name=Z;c.value=N;c.getValue=k[_$_9989[51]];c.getValueFromCoords=
231
+ k.getFromCoords;c.setValue=k[_$_9989[11]];c.setValueFromCoords=k.setFromCoords;c.setCheckRadioValue=k.setCheckRadio;c.getProcessed=k.processed};k[_$_9989[51]]=function(c,b){var a=this;if(typeof c==_$_9989[84]){var d=c.x;c=c.y}else 0<=c.indexOf(_$_9989[27])&&(a=c.split(_$_9989[27]),c=a[1],a=H(a[0])),c=E.getCoordsFromColumnName(c),d=c[0],c=c[1];return k.getFromCoords.call(a,d,c,b)};k.getFromCoords=function(c,b,a){var d=null;null!=c&&null!=b&&(d=a?k.processed.call(this,c,b):N.call(this,c,b));return d};
232
+ k[_$_9989[11]]=function(c,b,a){if(!Q.call(this.parent,this))return!1;var d=null,e=null,f=null,g=[];a=a?!0:!1;var h=function(n,p){var q=null;typeof n==_$_9989[17]?(f=E.getCoordsFromColumnName(n),d=f[0],e=f[1]):n.tagName?(d=n.getAttribute(_$_9989[42]),e=n.getAttribute(_$_9989[43])):n.element&&n.element.tagName?(d=n.element.getAttribute(_$_9989[42]),e=n.element.getAttribute(_$_9989[43])):(d=n.x,e=n.y,void 0!==n.value&&(p=n.value),void 0!==n.style&&(q=n.style));n={x:d,y:e,value:p,force:a};null!==q&&(n.style=
233
+ q);g.push(n)};if(c&&Array.isArray(c))for(var l=0;l<c.length;l++)h(c[l],b);else if(typeof c==_$_9989[84]&&void 0==c.x&&void 0==c.tagName)for(b=Object.keys(c),l=0;l<b.length;l++)h(b[l],c[b[l]]);else h(c,b);if(g.length){g=k.applyValues.call(this,g);this.parent.config.parseFormulas&&k.setValueChained.call(this,g);X.update.call(this,!0);this.refreshBorders();var m=this;setTimeout(function(){ha.refresh.call(m)},250);if(g.length){U.call(this.parent,{worksheet:m,action:_$_9989[79],records:g,selection:this.selectedCell});
234
+ c=this.getPrimaryKey();if(!1!==c)for(l=0;l<g.length;l++)g[l].x===c&&g[l].value&&S.call(this,g[l]);L.call(this,_$_9989[79],{data:g});F.call(this.parent,_$_9989[249],this,g)}}};k.setFromCoords=function(c,b,a,d){var e=[];e.push({x:c,y:b,value:a});k[_$_9989[11]].call(this,e,null,d)};k.setCheckRadio=function(){for(var c=[],b=this.getSelected(),a=0;a<b.length;a++){var d=b[a].x,e=b[a].y;if(!this.options.columns[d].readOnly&&this.options.columns[d].type==_$_9989[250]){var f=N.call(this,d,e)?!1:!0;c.push({x:d,
235
+ y:e,value:f})}}c.length&&k[_$_9989[11]].call(this,c)};k.applyValues=function(c){for(var b,a,d=this.options.style||{},e=[],f={},g=0;g<c.length;g++)if(b=c[g],a=this.updateCell(b.x,b.y,b.value,b.force),void 0!==a.value){if(void 0!==b.style){var h=E.getColumnNameFromCoords(b.x,b.y);a.style=f[h]=b.style;a.oldStyle=d&&d[h]?d[h]:_$_9989[193]}e.push(a)}0<Object.keys(f).length&&Pa.update.call(this,f);return e};k.processed=function(c,b,a){var d=N.call(this,c,b);if(null===d)return null;var e=da[_$_9989[51]].call(this,
236
+ c,b),f=e[1];f.type!=_$_9989[49]&&f.type!=_$_9989[251]&&f.type!=_$_9989[252]&&f.type!=_$_9989[253]&&f.type!=_$_9989[254]&&0!=f.process&&(!0===a||f.type!=_$_9989[255]&&f.type!=_$_9989[256]&&f.type!=_$_9989[257])&&(f.type==_$_9989[250]?d=e[0][_$_9989[51]](f,d,a):this.records[b][c].element?d=1==this.parent.config.stripHTML?this.records[b][c].element.innerText:this.records[b][c].element.innerHTML:((_$_9989[3]+d).substr(0,1)==_$_9989[12]&&(d=this.executeFormula(d,c,b,!1)),e[0]&&typeof e[0][_$_9989[51]]==
237
+ _$_9989[85]&&(d=e[0][_$_9989[51]](f,d,a))));return d};k.setValueChained=function(c){for(var b,a=[],d,e=0;e<c.length;e++)b=c[e],d=E.getColumnNameFromCoords(b.x,b.y),a[d]=b.value;a=V.getChain.call(this,a);c=Object.keys(a);for(e=0;e<c.length;e++)0<=c[e].indexOf(_$_9989[27])?(b=c[e].split(_$_9989[27]),d=b[1],b=H(b[0])):(d=c[e],b=this),d=E.getCoordsFromColumnName(d),M.update.call(b,d[0],d[1],a[c[e]],!0)};return k}(),M=function(){var k=function(c){c.getCell=k[_$_9989[51]];c.getCellFromCoords=k[_$_9989[51]];
238
+ c.updateCell=k.update;c.updateCells=k.updateAll;c.getSelected=k.selected;c.getCells=k.getCells;c.setCells=k.setCells;c.isAttached=k.attached};k.attached=function(c,b){return this.records[b]&&this.records[b][c]&&this.records[b][c].element&&this.records[b][c].element.parentNode&&this.records[b][c].element.parentNode.parentNode?!0:!1};k[_$_9989[51]]=function(c,b,a){typeof c==_$_9989[17]&&(b=E.getCoordsFromColumnName(c),c=b[0],b=b[1]);c=parseInt(c);b=parseInt(b);if(this.records[b]&&this.records[b][c]&&
239
+ this.records[b][c].element)return this.records[b][c].element;var d=N.call(this,c,b);null===d&&(d=_$_9989[3]);return M.create.call(this,c,b,d,a)};k.getFromCoords=function(c,b,a){if(!c)return null;var d=[],e=c[0],f=c[1],g=c[2];c=c[3];for(a&&(a=this.results?E.invert(this.results):null);f<=c;f++)for(var h=e;h<=g;h++)if(!a||a[f])b?d.push(E.getColumnNameFromCoords(h,f)):d.push(this.records[f][h]);return d};k.selected=function(c,b){return k.getFromCoords.call(this,this.getHighlighted(),c,b)};k.getSelectedColumns=
240
+ function(){var c=[],b=this.getHighlighted();if(b)for(var a=b[0];a<=b[2];a++)c.push(a);return c};k.updateAll=function(c){for(var b=this.getPrimaryKey(),a=[],d=0;d<c.length;d++)void 0!==c[d].id?(S.call(this,c[d]),a.push({id:c[d].id,y:c[d].y}),!1!==b&&k.update.call(this,b,c[d].y,c[d].id,!0)):a.push(k.update.call(this,c[d].x,c[d].y,c[d].value,c[d].force));L.call(this,_$_9989[106],[a])};k.update=function(c,b,a,d){var e=this.records[b];if(e=e&&e[c]?e[c]:null)if(e=e.element,!d&&e&&1==e.classList.contains(_$_9989[18]))d=
241
+ {x:c,y:b};else{d=F.call(this.parent,_$_9989[258],this,e,c,b,a);void 0!==d&&(a=d);d=da[_$_9989[51]].call(this,c,b);typeof d[0].updateCell==_$_9989[85]&&(d=d[0].updateCell(e,a,c,b,this,d[1]),void 0!==d&&(a=d));d={x:c,y:b};var f=N.call(this,c,b);f!==a&&(a=N.call(this,c,b,a),d.oldValue=f,d.value=a,e&&k.applyOverflow.call(this,e,c,b),F.call(this.parent,_$_9989[259],this,e,c,b,d.value,d.oldValue))}else return!1;return d};k.create=function(c,b,a,d){var e=document.createElement(_$_9989[147]);e.setAttribute(_$_9989[42],
242
+ c);e.setAttribute(_$_9989[43],b);var f=da[_$_9989[51]].call(this,c,b);f[0]&&typeof f[0].createCell==_$_9989[85]&&(f=f[0].createCell(e,a,c,b,this,f[1]),void 0!==f&&(a=f));N.call(this,c,b,a);this.records[b][c]||oa.cell.call(this,c,b,a);this.records[b][c].element=e;!a&&this.records[b][c].v&&(e.innerText=this.records[b][c].v);k.applyProperties.call(this,e,c,b,d);k.applyOverflow.call(this,e,c,b);F.call(this.parent,_$_9989[260],this,e,c,b,a);return e};k.getAttributes=function(c,b,a){a[c]||(a[c]={});c==
243
+ _$_9989[261]?a[c][b]=this.getValue(b):c==_$_9989[262]?this.merged.cells&&(b=this.merged.cells[b])&&(a[c][b]=this.options.mergeCells[b]):this.options[c]&&this.options[c][b]&&(a[c][b]=this.options[c][b])};k.setAttributes=function(c){c&&c.style&&this.setStyle(c.style);c&&c.comments&&this.setComments(c.comments);c&&c.meta&&this.setMeta(c.meta);c&&c.cells&&this.setCells(c.cells);c&&c.mergeCells&&this.setMerge(c.mergeCells);c&&c.values&&k.batch.call(this,c.values);c&&c.formulas&&k.batch.call(this,c.formulas,
244
+ !0)};k.applyProperties=function(c,b,a,d){if(!d){d=E.getColumnNameFromCoords(b,a);var e=this.options.style,f=this.options.comments,g=this.options.cells,h=this.options.rows;if(e&&e[d]){var l=(l=c.getAttribute(_$_9989[98]))?l+(_$_9989[263]+e[d]):e[d];c.setAttribute(_$_9989[98],l)}f&&f[d]&&c.setAttribute(_$_9989[264],f[d]);g&&g[d]&&(1==g[d].readOnly&&c.classList.add(_$_9989[18]),!1===g[d].locked&&!0===this.options.selectUnLockedCells&&c.classList.add(_$_9989[265]));h&&h[a]&&1==h[a].readOnly&&c.classList.add(_$_9989[18])}f=
245
+ this.options.columns[b];c.style.textAlign||(c.style.textAlign=f.align?f.align:this.options.defaultColAlign);!1===this.records[a][b].readonly||1!=this.records[a][b].readonly&&1!=f.readOnly&&1!=f.readonly||c.classList.add(_$_9989[18])};k.applyOverflow=function(c,b,a){1==this.options.textOverflow&&0<b&&(b==this.options.columns.length-1&&(c.style.overflow=_$_9989[49]),this.records[a][b-1]&&this.records[a][b-1].element&&(this.records[a][b-1].element.style.overflow=!c.innerText&&this.headers[b-1]&&this.headers[b-
246
+ 1].offsetWidth?_$_9989[3]:_$_9989[49]))};k.batch=function(c,b){var a=[],d=Object.keys(c);if(d.length)for(var e=0;e<d.length;e++){if(0<=d[e].indexOf(_$_9989[27])){var f=d[e].split(_$_9989[27]);var g=H(f[0]);var h=f[1];f=f[0]}else g=this,h=d[e],f=this.getWorksheetName();h=E.getCoordsFromColumnName(h);h=g.updateCell(h[0],h[1],c[d[e]],!0);a[f]||(a[f]=[]);a[f].push(h)}if(1==b&&(d=Object.keys(a),d.length))for(e=0;e<d.length;e++)g=H(d[e]),L.call(g,_$_9989[107],a[d[e]])};k.getCells=function(c){return c?this.options.cells[c]:
247
+ this.options.cells};k.setCells=function(c,b){if(!Q.call(this.parent,this))return!1;if(typeof c==_$_9989[17])this.options.cells[c]=b;else{b=Object.keys(c);for(var a=0;a<b.length;a++)this.options.cells[b[a]]=c[b[a]]}};return k}(),za=function(){var k=function(b,a){Array.isArray(a)||(a=[a]);for(var d,e=b?_$_9989[3]:_$_9989[40],f=Object.keys(a),g=0;g<f.length;g++)if(d=this.rows[a[f[g]]])d.element&&(d.element.style.display=e),d.visible=b;this.resetBorders();G.refresh.call(this)},c=function(b){b.getRow=
248
+ c[_$_9989[51]];b.moveRow=c.move;b.insertRow=c.add;b.deleteRow=c.del;b.getSelectedRows=c.selected;b.showRow=k.bind(b,!0);b.hideRow=k.bind(b,!1)};c[_$_9989[51]]=function(b){return this.rows[b]};c.attached=function(b){return this.rows[b]&&this.rows[b].element&&this.rows[b].element.parentNode?!0:!1};c.selected=function(b){var a=[],d=this.getHighlighted();if(d)for(var e=d[1];e<=d[3];e++)b?a.push(e):a.push(this.rows[e].element);return a};c.create=function(b,a){if(this.rows[b]&&this.rows[b].element)return this.rows[b].element;
249
+ this.rows[b]||oa.row.call(this,b);var d=document.createElement(_$_9989[145]);d.setAttribute(_$_9989[43],b);this.rows[b].element=d;var e=null;this.options.rows[b]&&!a&&(this.options.rows[b].style&&d.setAttribute(_$_9989[98],this.options.rows[b].style),this.options.rows[b].height&&(d.style.height=parseInt(this.options.rows[b].height)+_$_9989[44]),this.options.rows[b].title&&(e=this.options.rows[b].title),0==this.options.rows[b].visible&&(this.rows[b].visible=!1),this.options.rows[b].id&&(this.rows[b].id=
250
+ this.options.rows[b].id));F.call(this.parent,_$_9989[266],this,b,d);0==this.rows[b].visible&&(d.style.display=_$_9989[40]);e||(e=parseInt(b+1));a=document.createElement(_$_9989[147]);a.innerHTML=e;a.setAttribute(_$_9989[43],b);a.className=_$_9989[267];d.appendChild(a);return d};c.move=function(b,a){if(!Q.call(this.parent,this))return!1;b=parseInt(b);a=parseInt(a);if(!this.rows[a]||!this.rows[b])return console.error(_$_9989[268]),!1;if(0<Object.keys(this.getMerge()).length){var d=null;this.merged.rows[b]?
251
+ d=!0:this.merged.rows[a]&&(b>a?this.merged.rows[a-1]&&(d=!0):this.merged.rows[a+1]&&(d=!0));d&&this.destroyMerged()}this.resetBorders();0<=Array.prototype.indexOf.call(this.tbody.children,this.rows[a].element)?(d=G.renderRow.call(this,b),b>a?this.tbody.insertBefore(d,this.rows[a].element):this.tbody.insertBefore(d,this.rows[a].element.nextSibling)):this.rows[b].element&&(this.tbody.removeChild(this.rows[b].element),G.refresh.call(this));this.rows.splice(a,0,this.rows.splice(b,1)[0]);this.records.splice(a,
252
+ 0,this.records.splice(b,1)[0]);this.options.data.splice(a,0,this.options.data.splice(b,1)[0]);0<this.options.pagination&&this.tbody.children.length!=this.options.pagination&&this.page(this.pageNumber);L.call(this,_$_9989[67],{f:b,t:a});X.references.call(this);X.update.call(this);U.call(this.parent,{worksheet:this,action:_$_9989[67],oldValue:b,newValue:a});F.call(this.parent,_$_9989[269],this,b,a)};c.add=function(b,a,d,e){if(!Q.call(this.parent,this))return!1;if(!this.options.allowInsertRow)return console.error(_$_9989[270]),
253
+ !1;var f=[];if(0<b)var g=parseInt(b);else g=1,Array.isArray(b)&&!e&&(Array.isArray(b[0])?e=b:(e=[],e.push(b)));e=Ea.standardize(e);d=d?!0:!1;var h=this.options.data?this.options.data.length-1:0;if(void 0==a||a>h||0>a)a=h,d=!1;g||(g=1);if(!1===F.call(this.parent,_$_9989[271],this,a,g,d))return console.log(_$_9989[272]),!1;this.resetBorders();var l=d?a:a+1,m=0;b=[];for(var n=[],p=this.rows.splice(l),q=this.options.data?this.options.data.splice(l):[],v=this.records.splice(l),u=l;u<g+l;u++){var w=e[m]&&
254
+ e[m].id?e[m].id:sa.next.call(this);oa.row.call(this,u,w);var y=this.dataType?{}:[];for(var x=0;x<this.options.columns.length;x++){var D=Z.call(this,x);y[D]=_$_9989[3];e&&e[m]&&e[m].data&&(typeof e[m].data[D]!==_$_9989[13]?y[D]=e[m].data[D]:typeof e[m].data[x]!==_$_9989[13]&&(y[D]=e[m].data[x]));f.push({x,y:u,value:y[D],force:!0})}n.push({id:w,data:y});m++}this.rows=this.rows.concat(p);this.records=this.records.concat(v);this.options.data=this.options.data.concat(q);this.results&&0<this.results.length&&
255
+ (h=this.results[this.results.length-1]);e=!1;p[0]?0<=Array.prototype.indexOf.call(this.tbody.children,p[0].element)&&(e=!0):this.rows[h]?this.rows[h].element&&0<=Array.prototype.indexOf.call(this.tbody.children,this.rows[h].element)&&(e=!0):e=!0;for(u=l;u<g+l;u++)this.results&&(this.rows[u].results=!0),1==e&&(h=p[0]?p[0].element:null,D=G.renderRow.call(this,u,null,null,!0),h?this.tbody.insertBefore(D,h):this.tbody.appendChild(D),0<this.options.pagination?Array.prototype.indexOf.call(this.tbody.children,
256
+ D)>=this.options.pagination&&(e=!1):G.limited.call(this)&&(G.isVisible.call(this,D.children[1])||(e=!1))),b.push(this.records[u]);this.merged.rows[l]&&ba.updateConfig.call(this,1,1,l-1,g);L.call(this,_$_9989[63],{numOfRows:g,rowNumber:a,insertBefore:d?1:0,data:n});l=this.tbody.firstChild.getAttribute(_$_9989[43]);this.results&&(l=this.results.indexOf(parseInt(l)),this.results=ua.refresh.call(this));X.references.call(this);f.length&&ea.applyValues.call(this,f);0<this.options.pagination?ta[_$_9989[11]].call(this,
257
+ this.pageNumber):(this.results&&(l=this.results[l]),this.tbody.textContent=_$_9989[3],G[_$_9989[46]].call(this,l));X.update.call(this);T.call(this);ha.refresh.call(this);U.call(this.parent,{worksheet:this,action:_$_9989[63],rowNumber:a,numOfRows:g,insertBefore:d,data:n});F.call(this.parent,_$_9989[273],this,a,g,b,d)};c.del=function(b,a){if(!Q.call(this.parent,this))return!1;if(!this.options.allowDeleteRow)return console.error(_$_9989[274]),!1;var d=null,e={},f=[],g=0;void 0==b&&(a=this.getSelectedRows(),
258
+ a[0]?(b=parseInt(a[0].getAttribute(_$_9989[43])),a=a.length):(b=this.options.data.length-1,a=1));var h=this.options.data.length-1;if(void 0==b||b>h||0>b)b=h;a||(a=1);b+a>=this.options.data.length&&(a=this.options.data.length-b,a>=this.options.data.length&&(a=this.options.data.length,this.resetSelection()));if(!1===F.call(this.parent,_$_9989[275],this,b,a))return console.log(_$_9989[276]),!1;if(-1<parseInt(b)&&0<parseInt(a)){h=parseInt(this.thead.lastChild.children[1].getAttribute(_$_9989[42]));var l=
259
+ parseInt(this.tbody.firstChild.getAttribute(_$_9989[43]));this.resetBorders();for(var m=b;m<b+a;m++)for(var n=0;n<this.options.columns.length;n++)d=E.getColumnNameFromCoords(n,m),M.getAttributes.call(this,_$_9989[277],d,e),M.getAttributes.call(this,_$_9989[98],d,e),M.getAttributes.call(this,_$_9989[278],d,e),M.getAttributes.call(this,_$_9989[279],d,e),M.getAttributes.call(this,_$_9989[262],d,e),M.getAttributes.call(this,_$_9989[261],d,e),f[d]=!0;if(d=V.getChain.call(this,e.values))e.formulas=d;for(m=
260
+ b;m<b+a;m++)0<=Array.prototype.indexOf.call(this.tbody.children,this.rows[m].element)&&(this.rows[m].element.parentNode.removeChild(this.rows[m].element),g++);d=[];for(m=b;m<b+a;m++)d.push({id:this.getRowId(m),row:m,data:this.getRowData(m)});this.rows.splice(b,a);m=this.records.splice(b,a);this.options.data.splice(b,a);ba.updateConfig.call(this,1,0,b,a);L.call(this,_$_9989[64],{rowNumber:b,numOfRows:a,data:d});X.references.call(this,f);this.results&&(this.results=ua.refresh.call(this));0<this.options.pagination?
261
+ this.page(this.pageNumber,function(){if(0==this.tbody.children.length){var p=this.whichPage(this.options.data.length-1);this.page(p)}}):G.limited.call(this)&&0<g&&(this.tbody.textContent=_$_9989[3],G.call(this),G[_$_9989[46]].call(this,l,h));X.update.call(this,!0);U.call(this.parent,{worksheet:this,action:_$_9989[64],rowNumber:b,numOfRows:a,insertBefore:1,data:d,attributes:e});F.call(this.parent,_$_9989[280],this,b,a,m,d,e)}};return c}(),Ga=function(){var k=function(b,a){Array.isArray(a)||(a=[a]);
262
+ for(var d,e,f=Object.keys(a),g=0;g<f.length;g++)if(d=a[f[g]],e=this.options.columns[d])this.colgroup[d]&&(this.colgroup[d].style.width=b?parseInt(e.width||this.options.defaultColWidth)+_$_9989[44]:_$_9989[144]),e.visible=b;this.resetBorders();G.refresh.call(this)},c=function(b){b.getColumn=c[_$_9989[51]];b.getColumnIdByName=c.getByName;b.getPrimaryKey=c.getPrimaryKey;b.getSelectedColumns=c.selected;b.getOptions=c.getOptions;b.getColumnOptions=c.getOptions;b.moveColumn=c.move;b.insertColumn=c.add;
263
+ b.deleteColumn=c.del;b.getProperties=c.properties;b.setProperties=c.properties;b.getProperty=c.properties;b.setProperty=c.properties;b.showColumn=k.bind(b,!0);b.hideColumn=k.bind(b,!1)};c[_$_9989[51]]=function(b){return this.options.columns[b]||!1};c.getByName=function(b){for(var a=this.options.columns,d=0;d<a.length;d++)if(a[d].name==b)return d;return!1};c.getPrimaryKey=function(){for(var b=0;b<this.options.columns.length;b++)if(1==this.options.columns[b].primaryKey)return b;return!1};c.getOptions=
264
+ function(b,a){var d=this.options.columns[b];Object.keys(this.options.cells).length&&void 0!==a&&(b=E.getColumnNameFromCoords(b,a),this.options.cells[b]&&(d=this.options.cells[b]));if(!d)d={type:_$_9989[56]};else if(!d.type||typeof d.type==_$_9989[17]&&!t.editors[d.type])d.type=_$_9989[56];return d};c.selected=function(b){b=[];var a=this.getHighlighted();if(a)for(var d=a[0];d<=a[2];d++)b.push(d);return b};c.move=function(b,a){if(!Q.call(this.parent,this))return!1;b=parseInt(b);a=parseInt(a);if(!this.options.columns[b])return console.error(_$_9989[281]),
265
+ !1;if(!this.options.columns[a])return console.error(_$_9989[282]),!1;if(0<Object.keys(this.getMerge()).length){var d=null;this.merged.cols[b]?d=!0:this.merged.cols[a]&&(b>a?this.merged.cols[a-1]&&(d=!0):this.merged.cols[a+1]&&(d=!0));d&&this.destroyMerged()}this.resetBorders();d=this.options.freezeColumns;0<d&&(b<d||a<d)?ma.reset.call(this):d=null;if(this.headers[a]&&this.headers[a].parentNode){this.headers[b]||Ba.create.call(this,b);var e=(b>a?this.headers[a]:this.headers[a].nextSibling)||null;this.headerContainer.insertBefore(this.headers[b],
266
+ e);e=(b>a?this.colgroup[a]:this.colgroup[a].nextSibling)||null;this.colgroupContainer.insertBefore(this.colgroup[b],e);for(var f=0;f<this.tbody.children.length;f++){var g=this.tbody.children[f].getAttribute(_$_9989[43]);e=(b>a?this.records[g][a].element:this.records[g][a].element.nextSibling)||null;this.tbody.children[f].insertBefore(M[_$_9989[51]].call(this,b,g),e)}if(this.options.footers)for(f=0;f<this.tfoot.children.length;f++)e=(b>a?this.footers.content[f][a].element:this.footers.content[f][a].element.nextSibling)||
267
+ null,this.tfoot.children[f].insertBefore(aa.create.call(this,b,f),e)}else if(this.headers[b]&&this.headers[b].parentNode){this.headerContainer.removeChild(this.headers[b]);this.colgroupContainer.removeChild(this.colgroup[b]);for(f=0;f<this.tbody.children.length;f++)g=parseInt(this.tbody.children[f].getAttribute(_$_9989[43])),this.tbody.children[f].removeChild(this.records[g][b].element);if(this.options.footers)for(f=0;f<this.tfoot.children.length;f++)this.tfoot.children[f].removeChild(this.footers.content[f][b].element)}this.options.columns.splice(a,
268
+ 0,this.options.columns.splice(b,1)[0]);this.headers.splice(a,0,this.headers.splice(b,1)[0]);this.colgroup.splice(a,0,this.colgroup.splice(b,1)[0]);for(f=0;f<this.rows.length;f++)this.dataType||this.options.data[f].splice(a,0,this.options.data[f].splice(b,1)[0]),this.records[f].splice(a,0,this.records[f].splice(b,1)[0]);if(this.options.footers)for(f=0;f<this.options.footers.length;f++)this.options.footers[f].splice(a,0,this.options.footers[f].splice(b,1)[0]),this.footers.content[f].splice(a,0,this.footers.content[f].splice(b,
269
+ 1)[0]);L.call(this,_$_9989[68],{f:b,t:a});X.references.call(this);X.update.call(this);0<d&&(b<=d||d<=d)&&ma[_$_9989[11]].call(this,d);U.call(this.parent,{worksheet:this,action:_$_9989[68],oldValue:b,newValue:a});F.call(this.parent,_$_9989[283],this,b,a)};c.add=function(b,a,d,e,f,g){if(!Q.call(this.parent,this))return!1;if(!this.options.allowInsertColumn)return console.error(_$_9989[284]),!1;var h=[];if(0<b)var l=parseInt(b);else if(l=1,Array.isArray(b)&&!f)if(Array.isArray(b[0]))f=b;else{f=[];for(var m=
270
+ 0;m<b.length;m++)f[m]=[b[m]]}f||(f=[]);d=d?!0:!1;b=this.options.columns.length-1;if(void 0==a||a>b||0>a)a=b,d=!1;l||(l=1);if(!1===F.call(this.parent,_$_9989[285],this,a,l,d))return console.log(_$_9989[286]),!1;ha.reset.call(this);if(1==this.dataType)var n=parseInt((_$_9989[3]+Date.now()).substr(-8));e||(e=[]);for(m=0;m<l;m++)e[m]||(e[m]={type:_$_9989[56],source:[],options:[],width:this.options.defaultColWidth,align:this.options.defaultColAlign}),1==this.dataType&&typeof e[m].name==_$_9989[13]&&(e[m].name=
271
+ _$_9989[287]+(n+m));var p=d?a:a+1;this.options.columns=E.injectArray(this.options.columns,p,e);n=function(y,x){for(var D=p;D<l+p;D++)Ba.create.call(this,D),y?(this.headerContainer.insertBefore(this.headers[D],y),this.colgroupContainer.insertBefore(this.colgroup[D],x)):(this.headerContainer.appendChild(this.headers[D]),this.colgroupContainer.appendChild(this.colgroup[D]))};m=function(y,x){if(x)for(var D=p;D<l+p;D++)this.rows[y].element.insertBefore(M[_$_9989[51]].call(this,D,y,!0),x);else for(D=p;D<
272
+ l+p;D++)this.rows[y].element.appendChild(M[_$_9989[51]].call(this,D,y,!0))};var q=this.headers.splice(p),v=this.colgroup.splice(p);q[0]?0<=Array.prototype.indexOf.call(this.headerContainer.children,q[0])&&n.call(this,q[0],v[0]):this.headers[b]&&0<=Array.prototype.indexOf.call(this.headerContainer.children,this.headers[b])&&n.call(this);this.headers=this.headers.concat(q);this.colgroup=this.colgroup.concat(v);aa.adjust.call(this,p,l,1);pa.adjust.call(this,a,l,1,g);g=0;v=q=n=null;for(var u=0;u<this.options.data.length;u++){this.dataType||
273
+ (q=this.options.data[u].splice(p));v=this.records[u].splice(p);g=0;for(var w=p;w<l+p;w++)n=f[u]&&f[u][g]?f[u][g]:_$_9989[3],N.call(this,w,u,n),h.push({x:w,y:u,value:n}),oa.cell.call(this,w,u),g++;this.rows[u].element&&this.rows[u].element.parentNode&&(v[0]?0<=Array.prototype.indexOf.call(this.rows[u].element.children,v[0].element)&&m.call(this,u,v[0].element):this.records[u][b].element&&0<=Array.prototype.indexOf.call(this.rows[u].element.children,this.records[u][b].element)&&m.call(this,u));this.dataType||
274
+ (this.options.data[u]=this.options.data[u].concat(q));this.records[u]=this.records[u].concat(v)}this.merged.cols[p]&&ba.updateConfig.call(this,0,1,p-1,l);L.call(this,_$_9989[65],{numOfColumns:l,columnNumber:a,insertBefore:d?1:0,properties:e,data:f});X.references.call(this);h.length&&ea.applyValues.call(this,h);X.update.call(this);this.refreshBorders();U.call(this.parent,{worksheet:this,action:_$_9989[65],columnNumber:a,numOfColumns:l,insertBefore:d,properties:e,data:f});F.call(this.parent,_$_9989[288],
275
+ this,a,l,[],d)};c.del=function(b,a){if(!Q.call(this.parent,this))return!1;if(!this.options.allowDeleteColumn)return console.error(_$_9989[289]),!1;var d={},e=[],f=0;if(1<this.options.columns.length){void 0==b&&(a=this.getSelectedColumns(!0),a.length?(b=parseInt(a[0]),a=parseInt(a.length)):(b=this.options.columns.length-1,a=1));var g=this.options.columns.length-1;if(void 0==b||b>g||0>b)b=g;a||(a=1);b+a>=this.options.columns.length&&(a=this.options.columns.length-b,a>=this.options.columns.length&&(a--,
276
+ console.error(_$_9989[290])));if(!1===F.call(this.parent,_$_9989[291],this,b,a))return console.log(_$_9989[292]),!1;if(-1<parseInt(b)&&0<parseInt(a)){g=parseInt(this.thead.lastChild.children[1].getAttribute(_$_9989[42]));var h=parseInt(this.tbody.firstChild.getAttribute(_$_9989[43]));this.resetBorders();var l=null,m=[],n=[],p=[];var q=0;for(var v=b;v<b+a;v++)0<=Array.prototype.indexOf.call(this.headerContainer.children,this.headers[v])&&(this.colgroup[v].parentNode.removeChild(this.colgroup[v]),this.headers[v].parentNode.removeChild(this.headers[v]),
277
+ f++),p[q]=this.options.columns[v],q++;for(var u=0;u<this.options.data.length;u++)for(v=b;v<b+a;v++)q=E.getColumnNameFromCoords(v,u),M.getAttributes.call(this,_$_9989[277],q,d),M.getAttributes.call(this,_$_9989[98],q,d),M.getAttributes.call(this,_$_9989[278],q,d),M.getAttributes.call(this,_$_9989[279],q,d),M.getAttributes.call(this,_$_9989[262],q,d),M.getAttributes.call(this,_$_9989[261],q,d),e[q]=!0,this.records[u][v].element&&0<=Array.prototype.indexOf.call(this.rows[u].element.children,this.records[u][v].element)&&
278
+ this.records[u][v].element.parentNode.removeChild(this.records[u][v].element);if(v=V.getChain.call(this,d.values))d.formulas=v;this.options.columns.splice(b,a);this.headers.splice(b,a);this.colgroup.splice(b,a);for(u=0;u<this.options.data.length;u++)this.dataType||(n[u]=this.options.data[u].splice(b,a)),m[u]=this.records[u].splice(b,a);aa.adjust.call(this,b,a,0);(v=pa.adjust.call(this,b,a,0))&&(l={nested:v});ba.updateConfig.call(this,0,0,b,a);L.call(this,_$_9989[66],{columnNumber:b,numOfColumns:a});
279
+ X.references.call(this,e);G.limited.call(this)&&0<f&&(this.tbody.textContent=_$_9989[3],G.call(this),G[_$_9989[46]].call(this,h,g));X.update.call(this,!0);U.call(this.parent,{worksheet:this,action:_$_9989[66],columnNumber:b,numOfColumns:a,insertBefore:1,data:n,properties:p,attributes:d,extra:l});F.call(this.parent,_$_9989[293],this,b,a,m,p,d)}}};c.properties=function(b,a){if(this.options.columns[b]){if(a){if(!Q.call(this.parent,this))return!1;a=typeof a==_$_9989[17]?{type:a}:a;a.type&&t.editors[a.type]||
280
+ (a.type=_$_9989[56]);parseInt(a.width)||(a.width=this.options.defaultColWidth||100);this.edition&&this.closeEditor(this.edition,!1);var d=this.options.columns[b],e=t.editors[d.type],f=t.editors[a.type];if(e&&typeof e.destroyCell==_$_9989[85])for(var g=0;g<this.records.length;g++)this.records[g][b].element&&e.destroyCell(this.records[g][b].element);this.options.columns[b]=a;if(f&&typeof f.createCell==_$_9989[85])for(g=0;g<this.records.length;g++)this.records[g]&&this.records[g][b]&&this.records[g][b].element&&
281
+ (M.applyProperties.call(this,this.records[g][b].element,b,g),f.createCell(this.records[g][b].element,N.call(this,b,g),b,g,this,a));a.width&&this.colgroup[b]&&this.colgroup[b].setAttribute(_$_9989[152],parseInt(a.width));a.title&&(this.headers[b]&&(this.headers[b].innerText=a.title,this.headers[b].setAttribute(_$_9989[166],a.title)),this.options.columns[b].title=a.title);a.tooltip&&(this.headers[b]&&(this.headers[b].title=a.tooltip),this.options.columns[b].tooltip=a.tooltip);this.refreshBorders();
282
+ U.call(this.parent,{worksheet:this,action:_$_9989[77],column:b,newValue:a,oldValue:d});L.call(this,_$_9989[77],{column:b,options:a});return!0}return this.options.columns[b]}console.error(_$_9989[294])};return c}(),Pa=function(){var k={},c={},b=function(d){if(typeof d==_$_9989[17]){var e=d;d=E.getCoordsFromColumnName(d);var f=d[0];d=d[1]}else f=d.x,d=d.y,e=E.getColumnNameFromCoords(f,d);if(this.records[d]&&this.records[d][f]&&this.records[d][f].element){c[e]=this.options.style[e];this.records[d][f].element.setAttribute(_$_9989[98],
283
+ _$_9989[3]);var g=this.options.columns[f].align?this.options.columns[f].align:this.options.defaultColAlign;g&&(this.records[d][f].element.style.textAlign=g)}this.options.style&&this.options.style[e]&&delete this.options.style[e]},a=function(d){d.getStyle=a[_$_9989[51]];d.setStyle=a[_$_9989[11]];d.resetStyle=a.reset};a[_$_9989[51]]=function(d){var e=this.options.style;if(!e)return!1;if(d){if(typeof d==_$_9989[17])return e[d];var f=[],g=Object.keys(d);if(0<g.length)for(var h=0;h<g.length;h++){if(typeof d[h]==
284
+ _$_9989[17])var l=e&&e[d[h]]?e[d[h]]:_$_9989[3];else l=E.getColumnNameFromCoords(d[h].x,d[h].y),l=e&&e[l]?e[l]:_$_9989[3];f.push(l)}return f}return this.options.style};a[_$_9989[11]]=function(d,e,f,g){if(!Q.call(this.parent,this))return!1;this.options.style||(this.options.style={});var h=this.options.style,l=null,m=[],n=[],p={};n=function(u,w,y){if(!p[u]&&(h[u]?m=h[u].split(_$_9989[263]):(h[u]=_$_9989[3],m=[]),p[u]={},m.length))for(var x=0;x<m.length;x++)m[x]&&m[x].trim()&&(l=m[x].split(_$_9989[136]),
285
+ p[u][l[0].trim()]=l[1].trim());c[u]||(c[u]=[]);k[u]||(k[u]=[]);p[u][w]||(p[u][w]=_$_9989[3]);c[u].push([w+_$_9989[136]+p[u][w]]);p[u][w]=p[u][w]&&p[u][w]==y&&!g?_$_9989[3]:y;k[u].push([w+_$_9989[136]+p[u][w]]);y=E.getCoordsFromColumnName(u);this.records[y[1]]&&this.records[y[1]][y[0]]&&this.records[y[1]][y[0]].element&&(this.records[y[1]][y[0]].element.style[w]=p[u][w]);p[u][w]||delete p[u][w]};k={};c={};if(e)if(typeof d==_$_9989[17])n.call(this,d,e,f);else{if(d&&d.length)for(var q=0;q<d.length;q++){var v=
286
+ E.getColumnNameFromCoords(d[q].x,d[q].y);n.call(this,v,e,f)}}else for(f=Object.keys(d),q=0;q<f.length;q++)if(v=d[f[q]])for(typeof v==_$_9989[17]&&(v=v.split(_$_9989[263])),e=0;e<v.length;e++)v[e]&&(typeof v[e]==_$_9989[17]&&(v[e]=v[e].split(_$_9989[136])),v[e][0].trim()&&n.call(this,f[q],v[e][0].trim(),v[e][1].trim()));m={};n=Object.keys(p);if(n.length){for(q=0;q<n.length;q++){m[n[q]]||(m[n[q]]=[]);d=Object.keys(p[n[q]]);for(e=0;e<d.length;e++)m[n[q]].push(d[e]+_$_9989[114]+p[n[q]][d[e]]);this.options.style[n[q]]=
287
+ m[n[q]].join(_$_9989[295])}n=Object.keys(k);for(q=0;q<n.length;q++)k[n[q]]=k[n[q]].join(_$_9989[263]);n=Object.keys(c);for(q=0;q<n.length;q++)c[n[q]]=c[n[q]].join(_$_9989[263]);this.refreshBorders();U.call(this.parent,{worksheet:this,action:_$_9989[71],oldValue:c,newValue:k});L.call(this,_$_9989[71],[k]);F.call(this.parent,_$_9989[296],this,k,c)}};a.reset=function(d){if(!Q.call(this.parent,this))return!1;if(d){c={};if(Array.isArray(d))for(var e=0;e<d.length;e++)b.call(this,d[e]);else b.call(this,
288
+ d);this.refreshBorders();U.call(this.parent,{worksheet:this,action:_$_9989[72],cells:d,oldValue:c});L.call(this,_$_9989[72],[d]);F.call(this.parent,_$_9989[298],this,d)}else console.error(_$_9989[297])};a.update=function(d){k={};c={};for(var e=Object.keys(d),f=0;f<e.length;f++){c[e[f]]=this.options.style[e[f]]||_$_9989[3];k[e[f]]=this.options.style[e[f]]=d[e[f]];var g=E.getCoordsFromColumnName(e[f]),h=g[0];g=g[1];this.records[g]&&this.records[g][h]&&this.records[g][h].element&&(this.records[g][h].element.setAttribute(_$_9989[98],
289
+ d[e[f]]),this.records[g][h].element.style.textAlign||(this.records[g][h].element.style.textAlign=this.options.columns[h].align||this.options.defaultColAlign||_$_9989[53]))}L.call(this,_$_9989[72],[e]);L.call(this,_$_9989[71],[k]);F.call(this.parent,_$_9989[296],this,k,c)};return a}(),Wa=function(){var k=function(c){c.getComments=k[_$_9989[51]];c.setComments=k[_$_9989[11]]};k[_$_9989[51]]=function(c){return c&&typeof c==_$_9989[17]?this.options.comments&&this.options.comments[c]?this.options.comments[c]:
290
+ !1:this.options.comments};k[_$_9989[11]]=function(c,b){if(!Q.call(this.parent,this))return!1;if(typeof c==_$_9989[17]){var a={};a[c]=b}else a=c;if(b=F.call(this.parent,_$_9989[299],this,a))a=b;else if(!1===b)return!1;this.options.comments||(this.options.comments={});c={};var d=Object.keys(a);if(d.length){for(var e=0;e<d.length;e++){var f=E.getCoordsFromColumnName(d[e]);this.records[f[1]]&&this.records[f[1]][f[0]]&&(c[d[e]]=this.options.comments[d[e]]||_$_9989[3],(b=a[d[e]])?this.options.comments[d[e]]=
291
+ b:delete this.options.comments[d[e]],this.records[f[1]][f[0]].element&&(b?this.records[f[1]][f[0]].element.setAttribute(_$_9989[264],b):this.records[f[1]][f[0]].element.removeAttribute(_$_9989[264])))}U.call(this.parent,{worksheet:this,action:_$_9989[76],newValue:a,oldValue:c});L.call(this,_$_9989[76],[a]);F.call(this.parent,_$_9989[300],this,a,c)}};return k}(),Xa=function(){var k=function(c){c.getMeta=k[_$_9989[51]];c.setMeta=k[_$_9989[11]];c.resetMeta=k.reset};k[_$_9989[51]]=function(c,b){if(c){if(this.options.meta[c])return b?
292
+ this.options.meta[c][b]:this.options.meta[c]}else return this.options.meta};k[_$_9989[11]]=function(c,b,a){if(!Q.call(this.parent,this))return!1;this.options.meta||(this.options.meta={});if(typeof c==_$_9989[17]&&b){a||(a=_$_9989[3]);var d={};d[c]={};d[c][b]=a;c=d}b=Object.keys(c);if(b.length){a={};for(d=0;d<b.length;d++){this.options.meta[b[d]]||(this.options.meta[b[d]]={});a[b[d]]||(a[b[d]]={});for(var e=Object.keys(c[b[d]]),f=0;f<e.length;f++)this.options.meta[b[d]][e[f]]=c[b[d]][e[f]],a[b[d]][e[f]]=
293
+ c[b[d]][e[f]]}Object.keys(a).length&&(L.call(this,_$_9989[301],[a]),F.call(this.parent,_$_9989[302],this,a))}};k.reset=function(){this.options.meta={};L.call(this,_$_9989[303],{});F.call(this.parent,_$_9989[304],this,{})};return k}(),Ya=function(){var k=function(c){c.orderBy=k.execute};k.handler=function(c,b){return function(a,d){a=a[1];d=d[1];return c?a===_$_9989[3]&&d!==_$_9989[3]?1:a!==_$_9989[3]&&d===_$_9989[3]?-1:a>d?-1:a<d?1:0:a===_$_9989[3]&&d!==_$_9989[3]?1:a!==_$_9989[3]&&d===_$_9989[3]?
294
+ -1:a>d?1:a<d?-1:0}};k.execute=function(c,b,a){if(0<=c){b=null==b?this.headers[c].classList.contains(_$_9989[305])?1:0:b?1:0;for(var d,e,f=[],g=0;g<this.options.data.length;g++)d=Ga.getOptions.call(this,c,g),e=this.records[g][c].v,e=d.type==_$_9989[251]||d.type==_$_9989[256]||d.type==_$_9989[257]||d.type==_$_9989[306]||d.type==_$_9989[14]||d.type==_$_9989[307]?Number(e):jSuites.isNumeric(e)?Number(e):e.toLowerCase(),f[g]=[g,e];g=typeof this.parent.config.sorting===_$_9989[85]?this.parent.config.sorting(b,
295
+ c):k.handler(b,c);f.sort(g);d=a?!0:!1;if(!a)for(a=[],g=0;g<f.length;g++)a[g]=f[g][0];if(g=F.call(this.parent,_$_9989[308],this,c,b,a))a=g;else if(!1===g)return!1;if(d)this.destroyMerged();else if(0<Object.keys(this.getMerge()).length)if(confirm(C(_$_9989[309])))this.destroyMerged();else return!1;if(a.length<f.length)for(g=0;g<f.length;g++)-1==a.indexOf(f[g][0])&&a.push(f[g][0]);f=[];for(g=0;g<a.length;g++)f[a[g]]=g;Da.call(this,!1);ha.reset.call(this);L.call(this,_$_9989[78],{column:c,direction:b,
296
+ order:a});k.update.call(this,a);k.arrow.call(this,c,b);ha.refresh.call(this);U.call(this.parent,{worksheet:this,action:_$_9989[78],column:c,newValue:a,oldValue:f,direction:b});F.call(this.parent,_$_9989[310],this,c,b,a);return!0}};k.update=function(c){for(var b=[],a=0;a<c.length;a++)b[a]=this.options.data[c[a]];for(a=0;a<c.length;a++)this.options.data[a]=b[a];b=[];for(a=0;a<c.length;a++)b[a]=this.records[c[a]];this.records=b;b=[];for(a=0;a<c.length;a++)b[a]=this.rows[c[a]];this.rows=b;X.references.call(this);
297
+ this.searchInput&&this.searchInput.value?qa.update.call(this,null):ca.update.call(this)};k.arrow=function(c,b){for(var a=0;a<this.headers.length;a++)this.headers[a].classList.remove(_$_9989[311]),this.headers[a].classList.remove(_$_9989[305]);b?this.headers[c].classList.add(_$_9989[311]):this.headers[c].classList.add(_$_9989[305])};return k}(),ta=function(){var k=function(c){c.whichPage=k.whichPage;c.quantityOfPages=k.quantityOfPages;c.page=k[_$_9989[11]];c.updatePagination=k.update};k.build=function(){this.pageNumber=
298
+ 0;var c=document.createElement(_$_9989[20]),b=document.createElement(_$_9989[20]);this.pagination=document.createElement(_$_9989[20]);this.pagination.classList.add(_$_9989[312]);this.pagination.appendChild(c);this.pagination.appendChild(b);this.options.pagination||(this.pagination.style.display=_$_9989[40]);this.element.appendChild(this.pagination)};k.pageUp=function(){0<this.pageNumber&&(this.pageNumber--,k[_$_9989[11]].call(this,this.pageNumber))};k.pageDown=function(){this.pageNumber<k.quantityOfPages.call(this)-
299
+ 1&&(this.pageNumber++,k[_$_9989[11]].call(this,this.pageNumber))};k.whichPage=function(c){if(0<this.options.pagination)return this.rows[c]?(this.results&&(c=this.results.indexOf(parseInt(c))),Math.ceil((parseInt(c)+1)/parseInt(this.options.pagination))-1):null;console.log(_$_9989[313]);return!1};k.quantityOfPages=function(){if(0<this.options.pagination)return Math.ceil((this.results?this.results.length:this.rows.length)/parseInt(this.options.pagination));console.log(_$_9989[313]);return!1};k[_$_9989[11]]=
300
+ function(c,b){var a=this.pageNumber,d=parseInt(this.options.pagination);if(d){if(null==c||-1==c)c=Math.ceil((this.results?this.results:this.rows).length/d)-1;if(!1===F.call(this.parent,_$_9989[315],this,c,a,d))return!1;this.pageNumber=c;G.resetY.call(this);aa.refresh.call(this);typeof b==_$_9989[85]&&b.call(this);F.call(this.parent,_$_9989[316],this,c,a,d)}else console.error(_$_9989[314])};k.update=function(){this.pagination.children[0].innerHTML=_$_9989[3];this.pagination.children[1].innerHTML=_$_9989[3];
301
+ if(this.options.pagination){var c=this.results?this.results.length:this.rows.length;if(c){c=Math.ceil(c/this.options.pagination);if(6>this.pageNumber)var b=1,a=10>c?c:10;else 5>c-this.pageNumber?(b=c-9,a=c,1>b&&(b=1)):(b=this.pageNumber-4,a=this.pageNumber+5);if(1<b){var d=document.createElement(_$_9989[20]);d.className=_$_9989[318];d.innerHTML=_$_9989[215];d.title=1;this.pagination.children[1].appendChild(d)}for(;b<=a;b++)d=document.createElement(_$_9989[20]),d.className=_$_9989[318],d.innerHTML=
302
+ b,this.pagination.children[1].appendChild(d),this.pageNumber==b-1&&d.classList.add(_$_9989[319]);a<c&&(d=document.createElement(_$_9989[20]),d.className=_$_9989[318],d.innerHTML=_$_9989[216],d.title=c,this.pagination.children[1].appendChild(d));this.pagination.children[0].innerHTML=C(_$_9989[320],[this.pageNumber+1,c])}else this.pagination.children[0].innerHTML=C(_$_9989[317])}};return k}(),ma=function(){var k=function(c){c.setFreezeColumns=k[_$_9989[11]];c.resetFreezeColumns=k.reset};k.width=function(){if(this.options.freezeColumns){k.headers.call(this);
303
+ for(var c=0;c<this.rows.length;c++)this.rows[c].element&&k.update.call(this,c)}};k.update=function(c){var b,a;if(a=this.options.freezeColumns){var d=xa.call(this)?50:0;if(this.rows[c].element)for(var e=0;e<a;e++){if(b=this.records[c][e].element)b.classList.add(_$_9989[50]),b.style.left=d+1+_$_9989[44];d+=this.options.columns[e].width}}};k.headers=function(){var c=xa.call(this)?50:0,b;if(b=this.options.freezeColumns)for(var a=0;a<b;a++){if(this.headers[a]){this.headers[a].classList.add(_$_9989[50]);
304
+ this.headers[a].style.left=c+1+_$_9989[44];if(this.options.footers)for(var d=0;d<this.options.footers.length;d++)this.footers.content[d][a].element.classList.add(_$_9989[50]),this.footers.content[d][a].element.style.left=c+1+_$_9989[44];c+=this.options.columns[a].width}}else k.reset.call(this)};k[_$_9989[11]]=function(c){k.reset.call(this);this.options.freezeColumns=c;k.width.call(this);G.limited.call(this)&&T.call(this)};k.reset=function(){G[_$_9989[46]].call(this,null,this.options.freezeColumns);
305
+ for(var c,b=1;b<=this.options.freezeColumns;b++){if(c=this.thead.lastChild)c.children[b].classList.remove(_$_9989[50]),c.children[b].style.left=_$_9989[3];for(var a=0;a<this.rows.length;a++)if(c=this.rows[a].element)c.children[b].classList.remove(_$_9989[50]),c.children[b].style.left=_$_9989[3];if(this.options.footers)for(a=0;a<this.options.footers.length;a++)this.tfoot.children[a].children[b].classList.remove(_$_9989[50]),this.tfoot.children[a].children[b].style.left=_$_9989[3]}this.options.freezeColumns=
306
+ 0};k.getWidth=function(){var c=xa.call(this)?50:0;if(0<this.options.freezeColumns)for(var b=0;b<=this.options.freezeColumns;b++)c=this.thead.lastChild.children[b]?c+this.thead.lastChild.children[b].offsetWidth:c+this.options.columns[b].width;return c};return k}(),X=function(){var k=function(a,d){if(this.options[a]){for(var e={},f=Object.keys(this.options[a]),g=0;g<f.length;g++)e[d&&void 0!=d[f[g]]?d[f[g]]:f[g]]=this.options[a][f[g]];this.options[a]=e}},c=function(){if(0<this.options.minSpareRows){for(var a=
307
+ 0,d=this.rows.length-1;0<=d;d--){for(var e=!1,f=0;f<this.options.columns.length;f++)N.call(this,f,d)&&(e=!0);if(e)break;else a++}0<this.options.minSpareRows-a&&this.insertRow(this.options.minSpareRows-a)}if(0<this.options.minSpareCols){a=0;for(f=this.options.columns.length-1;0<=f;f--){e=!1;for(d=0;d<this.rows.length;d++)N.call(this,f,d)&&(e=!0);if(e)break;else a++}0<this.options.minSpareCols-a&&this.insertColumn(this.options.minSpareCols-a)}},b=function(){};b.build=function(){var a=this;this.content=
308
+ document.createElement(_$_9989[20]);this.content.classList.add(_$_9989[321]);this.content.addEventListener(_$_9989[322],function(f){if(G.limited.call(a)&&!a.options.pagination){var g=Math.abs(f.deltaX),h=Math.abs(f.deltaY);f.shiftKey||g>h?0>f.deltaX||0>f.deltaY?G.pageLeft.call(a,1,null,f):G.pageRight.call(a,1,null,f):0>f.deltaY?G.pageUp.call(a,1,null,f):G.pageDown.call(a,1,null,f)}});this.content.addEventListener(_$_9989[323],function(f){if(!a.edition)return f.preventDefault(),!1});this.table=document.createElement(_$_9989[324]);
309
+ this.thead=document.createElement(_$_9989[325]);this.tbody=document.createElement(_$_9989[326]);this.tfoot=document.createElement(_$_9989[327]);this.headers=[];this.colgroup=[];this.colgroupContainer=document.createElement(_$_9989[328]);var d=document.createElement(_$_9989[169]);d.setAttribute(_$_9989[152],_$_9989[329]);this.colgroupContainer.appendChild(d);this.headerContainer=document.createElement(_$_9989[145]);d=document.createElement(_$_9989[147]);d.classList.add(_$_9989[330]);this.headerContainer.appendChild(d);
310
+ this.thead.appendChild(this.headerContainer);this.table.classList.add(_$_9989[331]);this.table.setAttribute(_$_9989[332],_$_9989[97]);this.table.setAttribute(_$_9989[333],_$_9989[97]);this.table.setAttribute(_$_9989[334],_$_9989[335]);this.table.appendChild(this.colgroupContainer);this.table.appendChild(this.thead);this.table.appendChild(this.tbody);this.table.appendChild(this.tfoot);this.parent.config.wordWrap&&this.table.classList.add(_$_9989[336]);this.options.textOverflow||this.table.classList.add(_$_9989[337]);
311
+ !1===this.options.selectLockedCells&&this.table.classList.add(_$_9989[338]);this.corner=document.createElement(_$_9989[20]);this.corner.className=_$_9989[339];this.corner.setAttribute(_$_9989[334],_$_9989[340]);this.corner.setAttribute(_$_9989[341],_$_9989[342]);0==this.options.selectionCopy&&(this.corner.style.display=_$_9989[40]);this.scrollX=T.build.call(a,_$_9989[45]);this.scrollY=T.build.call(a,_$_9989[343]);d=document.createElement(_$_9989[20]);d.appendChild(this.content);d.appendChild(this.scrollY);
312
+ d.classList.add(_$_9989[344]);var e=document.createElement(_$_9989[20]);e.appendChild(d);e.appendChild(this.scrollX);e.classList.add(_$_9989[345]);this.content.appendChild(this.table);this.content.appendChild(this.corner);this.element.appendChild(e);1==this.options.tableOverflow&&(this.options.tableHeight||(this.options.tableHeight=300),this.options.tableWidth||(this.options.tableWidth=document.body.offsetWidth-8),this.content.style.overflow=_$_9989[49],this.content.style.maxHeight=parseInt(this.options.tableHeight)+
313
+ _$_9989[44],this.content.style.maxWidth=parseInt(this.options.tableWidth)+_$_9989[44]);this.options.freezeColumns>this.options.columns.length&&console.error(_$_9989[346]);qa.build.call(this);pa.build.call(this);ta.build.call(this);Ea.build.call(this);ba.build.call(this);aa.build.call(this);G.call(this);ca.onload.call(this);c.call(this)};b.references=function(a){var d=[],e=[],f=null,g=null,h=null,l=null;for(f=0;f<this.options.columns.length;f++)if(g=this.headers[f])h=g.getAttribute(_$_9989[42]),h!=
314
+ f&&(g.setAttribute(_$_9989[42],f),g.getAttribute(_$_9989[166])||(g.innerHTML=E.getColumnName(f)));for(var m=0;m<this.rows.length;m++)g=this.rows[m],l=g.y,l!=m&&(g.y=m,d[l]=m,g.element&&(g.element.setAttribute(_$_9989[43],m),g.element.children[0].setAttribute(_$_9989[43],m),f=this.options.rows&&this.options.rows[l]&&this.options.rows[l].title?this.options.rows[l].title:m+1,g.element.children[0].innerHTML=f));var n=function(q,v){g=this.records[v][q];h=g.x;l=g.y;h!=q&&(g.x=q,g.element&&g.element.setAttribute(_$_9989[42],
315
+ q));l!=v&&(g.y=v,g.element&&g.element.setAttribute(_$_9989[43],v));if(h!=q||l!=v){var u=E.getColumnNameFromCoords(h,l);q=E.getColumnNameFromCoords(q,v);e[u]=q}};if(a){m=function(q,v){q&&q[v]&&delete q[v]};var p=Object.keys(a);for(f=0;f<p.length;f++)m(this,p[f]),m(this.options.meta,p[f]),m(this.options.cells,p[f]),m(this.options.style,p[f]),m(this.options.comments,p[f])}for(m=0;m<this.rows.length;m++)for(f=0;f<this.options.columns.length;f++)n.call(this,f,m);k.call(this,_$_9989[347],d);k.call(this,
316
+ _$_9989[277],e);k.call(this,_$_9989[278],e);k.call(this,_$_9989[98],e);k.call(this,_$_9989[279],e);k.call(this,_$_9989[262],e);this.options.mergeCells&&ba.build.call(this);V.updateAll.call(this,e,a);return e};b.update=function(a){a&&c.call(this);if(typeof this.parent.config.updateTable==_$_9989[85])for(var d=0;d<this.rows.length;d++)for(var e=0;e<this.options.columns.length;e++)a=this.records[d][e],this.parent.config.updateTable.call(this,this,a.element,e,d,N.call(this,e,d),a.r?a.r:a.v);T.call(this);
317
+ aa.refresh.call(this)};return b}(),oa=function(){var k={spreadsheet:function(c,b){var a={name:null,config:{},el:c,element:c,plugins:[],worksheets:[],history:[],historyIndex:-1,queue:[],ignoreEvents:!1,ignoreHistory:!1,ignorePersistence:!1};Ca.spreadsheet.call(a,b);a.config.license&&(t.license=a.config.license);c.spreadsheet=a;c.jspreadsheet=c.jexcel=a.worksheets;t.spreadsheet.push(a);a.name||(a.name=jSuites.guid());k.bind(a.config.root?a.config.root:document);var d=a.config.tabs;typeof d!==_$_9989[84]&&
318
+ (d={allowCreate:d?!0:!1,hideHeaders:d?!1:!0,allowChangePosition:a.config.allowMoveWorksheet?!0:!1});d.maxWidth||(d.maxWidth=c.offsetWidth-50+_$_9989[44]);d.animation=void 0==d.animation?!0:d.animation;d.onbeforecreate=function(){a.createWorksheet();return!1};d.onclick=function(f,g,h,l,m){0<=h&&a.openWorksheet(h)};d.onchangeposition=function(f,g,h){a.updateWorksheet(g,h)};jSuites.tabs(c,d);c.classList.add(_$_9989[348]);1==b.fullscreen&&c.classList.add(_$_9989[15]);var e=document.createElement(_$_9989[20]);
319
+ a.toolbar=document.createElement(_$_9989[20]);a.toolbar.className=_$_9989[349];e.appendChild(a.toolbar);a.filter=ca.build.call(a);e.appendChild(a.filter);a.helper=document.createElement(_$_9989[20]);a.helper.className=_$_9989[350];e.appendChild(a.helper);a.loading=document.createElement(_$_9989[20]);a.loading.classList.add(_$_9989[351]);e.appendChild(a.loading);e.appendChild(da.build(a));e.appendChild(Qa(a));a.textarea=document.createElement(_$_9989[352]);a.textarea.className=_$_9989[353];a.textarea.tabIndex=
320
+ _$_9989[354];e.appendChild(a.textarea);d.position===_$_9989[355]?c.insertBefore(e,c.children[0]):c.insertBefore(e,c.children[1]);c.appendChild(Ia.call(a,t.license));a.createWorksheet=ia.createWorksheet;a.deleteWorksheet=ia.deleteWorksheet;a.renameWorksheet=ia.renameWorksheet;a.updateWorksheet=ia.updateWorksheet;a.openWorksheet=ia.openWorksheet;a.moveWorksheet=ia.moveWorksheet;a.getWorksheet=ia.getWorksheet;a.getWorksheetActive=ia.getWorksheetActive;a.getWorksheetInstance=ia.getWorksheetInstance;a.getConfig=
321
+ function(){var f=a.config;f.worksheets=[];for(var g=0;g<a.worksheets.length;g++)f.worksheets.push(a.worksheets[g].getConfig());return f};a.fullscreen=Ja;a.progress=Ka;a.undo=U.undo;a.redo=U.redo;a.setToolbar=fa[_$_9989[11]];a.getToolbar=fa[_$_9989[51]];a.showToolbar=fa.show;a.hideToolbar=fa.hide;a.tools=e;1!==a.edition&&(c=Object.keys(a.config.definedNames))&&c.length&&(a.config.definedNames={},console.log(_$_9989[356]));b.plugins&&na.call(a,b.plugins);a.setPlugins=function(f){na.call(a,f)};c=Object.keys(t.extensions);
322
+ if(c.length)for(d=0;d<c.length;d++)if(typeof t.extensions[c[d]].oninit==_$_9989[85])t.extensions[c[d]].oninit(a,b);return a},worksheet:function(c,b){var a={};c.worksheets.push(a);a.parent=c;Ca(a);Sa(a);ya(a);ha(a);da(a);Ea(a);Ua(a);ba(a);Pa(a);Va(a);ea(a);V(a);M(a);za(a);Ga(a);Xa(a);Wa(a);Ba(a);aa(a);pa(a);qa(a);ca(a);fa(a);sa(a);Za(a);$a(a);ta(a);ia(a);ma(a);Ta(a);Ya(a);Ha(a);Ca.worksheet.call(a,b);!t.license&&a.options.license&&(t.license=a.options.license);c.element.jexcel=c.worksheets?c.worksheets:
323
+ a;na.execute.call(a.parent,_$_9989[357],[a]);a.onload=function(){this.options.worksheetName||(this.options.worksheetName=_$_9989[358]+ia.nextName());var d=this.options.worksheetName;H(d)&&console.log(_$_9989[359]+d+_$_9989[360]);H(d,a);this.element=c.element.tabs.appendElement(this.options.worksheetName,function(e,f){a.options.worksheetState===_$_9989[49]&&(f.style.display=_$_9989[40])});this.element.classList.add(_$_9989[361]);this.element.jexcel=this;X.build.call(this);na.execute.call(this.parent,
324
+ _$_9989[362],[this]);this.options.data&&500<this.options.data.length&&!G.limited.call(this)&&!this.options.pagination&&console.error(_$_9989[363])};return a},row:function(c,b){this.rows[c]||(this.rows[c]={element:null,y:c});b&&(this.rows[c].id=b,sa[_$_9989[11]].call(this,b));this.options.rows&&this.options.rows[c]&&this.options.rows[c].height&&(this.rows[c].height=this.options.rows[c].height);this.records[c]||(this.records[c]=[]);this.options.data[c]||(this.options.data[c]=this.dataType?{}:[]);for(b=
325
+ 0;b<this.options.columns.length;b++)k.cell.call(this,b,c)},cell:function(c,b,a){typeof a==_$_9989[13]&&(a=N.call(this,c,b),null===a||void 0===a)&&(a=_$_9989[3],N.call(this,c,b,a));this.records[b][c]||(this.records[b][c]={element:null,x:c,y:b,v:a})},bind:function(c){for(var b=Object.keys(Aa),a=0;a<b.length;a++)(b[a]==_$_9989[364]?window:c).addEventListener(b[a],Aa[b[a]],b[a]==_$_9989[365]||b[a]==_$_9989[366]||b[a]==_$_9989[367]?{passive:!1}:{})},unbind:function(c){for(var b=Object.keys(Aa),a=0;a<b.length;a++)(b[a]==
326
+ _$_9989[364]?window:c).removeEventListener(b[a],Aa[b[a]])}};return k}(),Za=function(){var k=function(c){c.getWidth=k[_$_9989[51]];c.setWidth=k[_$_9989[11]]};k[_$_9989[51]]=function(c){var b=this.options.columns;if(typeof c===_$_9989[13]){c=[];for(var a=0;a<b.length;a++)c.push(b[a].width)}else c=b[c].width;return c};k[_$_9989[11]]=function(c,b,a){if(!Q.call(this.parent,this))return!1;if(b){if(Array.isArray(c)){a||(a=[]);for(var d=0;d<c.length;d++){a[d]||(a[d]=this.colgroup[c[d]].getAttribute(_$_9989[152]));
327
+ var e=Array.isArray(b)&&b[d]?b[d]:b;this.colgroup[c[d]].setAttribute(_$_9989[152],e);this.options.columns[c[d]].width=e}}else a||(a=this.colgroup[c].getAttribute(_$_9989[152])),this.colgroup[c].setAttribute(_$_9989[152],b),this.options.columns[c].width=b;this.refreshBorders();U.call(this.parent,{worksheet:this,action:_$_9989[73],column:c,oldValue:a,newValue:b});L.call(this,_$_9989[73],{column:c,width:b,oldWidth:a});F.call(this.parent,_$_9989[368],this,c,b,a)}G.refresh.call(this)};return k}(),$a=function(){var k=
328
+ function(b){b.getHeight=k[_$_9989[51]];b.setHeight=k[_$_9989[11]]};k[_$_9989[51]]=function(b){if(b)b=this.rows[b].element.style.height;else{b=[];for(var a=0;a<this.rows.length;a++){var d=this.rows[a].element.style.height;d&&(b[a]=d)}}return b};var c=function(b,a){a=parseInt(a);var d=this.rows[b].height?this.rows[b].height:this.rows[b].element.offsetHeight||this.options.defaultRowHeight;this.rows[b].element.style.height=a+_$_9989[44];this.options.rows[b]||(this.options.rows[b]={});this.options.rows[b].height=
329
+ a+_$_9989[44];this.rows[b].height=a;return d};k[_$_9989[11]]=function(b,a,d){if(!Q.call(this.parent,this))return!1;var e,f=typeof d==_$_9989[13]?!0:!1;if(a){if(Array.isArray(b))for(!0===f&&(d=[]),e=0;e<b.length;e++){var g=Array.isArray(a)&&a[e]?a[e]:a;c.call(this,b[e],g);1==f&&d.push(f)}else e=c.call(this,b,a),1==f&&(d=e);this.refreshBorders();U.call(this.parent,{worksheet:this,action:_$_9989[74],row:b,oldValue:d,newValue:a});L.call(this,_$_9989[74],{row:b,height:a,oldHeight:d});F.call(this.parent,
330
+ _$_9989[369],this,b,a,d)}G.refresh.call(this)};return k}(),ca=function(){var k=function(g){var h=e[g];g=a[e[g]];if(!g.element){g.element=document.createElement(_$_9989[370]);g.element.innerHTML=g.value;var l=document.createElement(_$_9989[220]);l.type=_$_9989[250];l.value=h;l.o=g;g.element.insertBefore(l,g.element.firstChild)}g.element.firstChild.checked=g.selected;return g.element},c=null,b=null,a=[],d=0,e=null,f=function(g){g.setFilter=f[_$_9989[11]];g.getFilter=f[_$_9989[51]];g.openFilter=f.open;
331
+ g.closeFilter=f.close;g.resetFilters=f.reset;g.showFilter=f.show;g.hideFilter=f.hide};f.isVisible=function(){return b};f[_$_9989[11]]=function(g,h){var l=this.headers[g];g=this.options.columns[g];Array.isArray(h)&&0<h.length?(l&&l.classList.add(_$_9989[371]),g.filters=h):(l&&l.classList.remove(_$_9989[371]),g.filters=null);f.update.call(this)};f[_$_9989[51]]=function(g){if(g)return this.options.columns[g].filters||null;g={};for(var h=0;h<this.options.columns.length;h++)g[h]=this.options.columns[h].filters||
332
+ null;return g};f.open=function(g){c=parseInt(g);if(this.headers[c].classList.contains(_$_9989[168])){b=!0;var h=this.parent.element.getBoundingClientRect(),l=this.headers[c].getBoundingClientRect();g=l.left-h.left;l=l.top-h.top+l.height;h=this.parent.filter;h.style.display=_$_9989[16];h.style.top=l+_$_9989[44];h.style.left=g+_$_9989[44];h.children[0].focus();g=h.children[1].selectAll;h.children[1].textContent=_$_9989[3];h.children[1].appendChild(g);this.options.columns[c].filters||(g.children[0].checked=
333
+ !0);g=qa.execute.call(this,null,c);g=E.invert(g);h=[];for(l=0;l<this.rows.length;l++)if(g[l]){var m=_$_9989[3]+N.call(this,c,l),n=_$_9989[3]+ea.processed.call(this,c,l,!0);m.substr(0,1)==_$_9989[12]&&(m=n);h.push([m,n])}h.sort(function(p,q){return p[0]>q[0]?1:p[0]<q[0]?-1:0});a=[];for(l=0;l<h.length;l++)a[h[l][0]]={value:h[l][1],element:null};void 0!==a[_$_9989[3]]&&(delete a[_$_9989[3]],a[_$_9989[3]]={value:_$_9989[212]+C(_$_9989[373])+_$_9989[232],element:null});f.search.call(this,_$_9989[3])}else console.log(_$_9989[372])};
334
+ f.close=function(g){if(g){g=this.parent.filter.children[1];if(1==g.selectAll.firstChild.checked&&e.length==Object.keys(a).length)g=null;else{g=1==g.currentSelection.firstChild.checked?this.options.columns[c].filters||[]:[];for(var h=0;h<e.length;h++)a[e[h]].selected&&g.push(e[h])}f[_$_9989[11]].call(this,c,g)}this.parent.filter.style.display=_$_9989[3];this.parent.filter.children[0].value=_$_9989[3];c=null;b=!1;a=null;d=0;e=null};f.reset=function(g){f.updateDOM.call(this,g,!1);ua.reset.call(this);
335
+ f.update.call(this)};f.execute=function(g){for(var h=this.options.columns,l=[],m=0;m<this.options.data.length;m++){for(var n=!0,p=0;p<h.length;p++)if(h[p].filters&&g!==p){var q=_$_9989[3]+N.call(this,p,m),v=_$_9989[3]+this.getLabelFromCoords(p,m,!0);-1==h[p].filters.indexOf(q)&&-1==h[p].filters.indexOf(v)&&(n=!1)}n&&l.push(m)}return l};f.update=function(){ua.reset.call(this);this.resetSelection();this.resetBorders();var g=qa.execute.call(this,null);if(typeof this.parent.config.onbeforefilter==_$_9989[85]){var h=
336
+ f[_$_9989[51]].call(this),l=F.call(this.parent,_$_9989[374],this,h,g);if(l)g=l;else if(!1===l)return!1}this.pageNumber=0;g&&g.length<this.rows.length&&ua[_$_9989[11]].call(this,g);G.resetY.call(this);aa.refresh.call(this);F.call(this.parent,_$_9989[375],this,h,g)};f.show=function(g){f.updateDOM.call(this,g,!0)};f.hide=function(g){f.updateDOM.call(this,g,!1,!0);f.update.call(this)};f.search=function(g){for(var h=this.parent.filter.children[1];h.children[1];)h.removeChild(h.lastChild);h.currentSelection.firstChild.checked=
337
+ !1;if(g){e=[];g=new RegExp(g,_$_9989[376]);for(var l=Object.keys(a),m=0;m<l.length;m++)(_$_9989[3]+l[m]).match(g)||(_$_9989[3]+a[l[m]]).match(g)?(e.push(l[m]),a[l[m]].selected=!0):a[l[m]].selected=!1;h.firstChild.checked=!0;this.options.columns[c].filters&&h.appendChild(h.currentSelection)}else{e=Object.keys(a);if(g=this.options.columns[c].filters)for(m=0;m<e.length;m++)a[e[m]].selected=!1,0<=g.indexOf(e[m])&&(a[e[m]].selected=!0);else for(m=0;m<e.length;m++)a[e[m]].selected=!0;h.firstChild.checked=
338
+ g?!1:!0}for(m=d=0;m<e.length;m++)200>m&&(g=d++,h.appendChild(k(g)))};f.build=function(){var g=document.createElement(_$_9989[20]);g.className=_$_9989[377];g.onclick=function(n){n.target.tagName==_$_9989[378]&&n.target.o&&(n.target.o.selected=n.target.checked);n=!0;for(var p=1;p<this.children.length;p++)this.children[p].children[0].checked||(n=!1);this.children[0].children[0].checked=n};var h=document.createElement(_$_9989[220]);h.type=_$_9989[56];h.placeholder=C(_$_9989[379]);h.className=_$_9989[380];
339
+ var l=document.createElement(_$_9989[220]);l.type=_$_9989[381];l.value=_$_9989[382];l.className=_$_9989[383];var m=document.createElement(_$_9989[20]);m.className=_$_9989[384];m.appendChild(h);m.appendChild(g);m.appendChild(l);g.currentSelection=document.createElement(_$_9989[370]);g.currentSelection.innerHTML=_$_9989[385]+C(_$_9989[386]);g.selectAll=document.createElement(_$_9989[370]);g.selectAll.innerHTML=_$_9989[387]+C(_$_9989[388])+_$_9989[232];g.selectAll.onclick=function(){for(var n=this.children[0].checked,
340
+ p=1;p<this.parentNode.children.length;p++)this.parentNode.children[p].children[0].checked=n;if(1==n)for(p=0;p<e.length;p++)a[e[p]].selected=!0;else for(n=Object.keys(a),p=0;p<n.length;p++)a[n[p]].selected=!1};jSuites.lazyLoading(g,{loadDown:function(n){for(n=0;d<e.length-1&&10>n;){var p=d++;g.appendChild(k(p));n++}}});return m};f.updateDOM=function(g,h,l){var m=this.headers,n=function(p){1==h?m[p].classList.add(_$_9989[168]):(this.options.columns[p].filters=null,m[p].classList.remove(_$_9989[371]),
341
+ 1==l&&m[p].classList.remove(_$_9989[168]))};if(g)n.call(this,g);else for(g=0;g<m.length;g++)n.call(this,g)};f.onload=function(){var g,h=!1;if(g=this.options.columns)for(var l=0;l<g.length;l++)Array.isArray(g[l].filters)&&0<g[l].filters.length&&this.headers[l]&&(this.headers[l].classList.add(_$_9989[371]),h=!0);1==h&&f.update.call(this)};return f}(),ua=function(){var k={};k[_$_9989[11]]=function(c){for(var b=0;b<c.length;b++)this.rows[c[b]].results=!0;this.results=c};k.reset=function(){for(var c=0;c<
342
+ this.rows.length;c++)!0===this.rows[c].results&&delete this.rows[c].results;this.results=null};k.refresh=function(){for(var c=[],b=0;b<this.rows.length;b++)!0===this.rows[b].results&&c.push(b);return c};return k}(),qa=function(){var k=function(a){var d=document.createElement(_$_9989[20]);if(0<a.options.pagination&&a.options.paginationOptions&&0<a.options.paginationOptions.length){a.paginationDropdown=document.createElement(_$_9989[389]);a.paginationDropdown.classList.add(_$_9989[390]);a.paginationDropdown.onchange=
343
+ function(){a.options.pagination=parseInt(this.value);a.page(0)};for(var e=0;e<a.options.paginationOptions.length;e++){var f=document.createElement(_$_9989[391]);f.value=a.options.paginationOptions[e];f.innerHTML=a.options.paginationOptions[e];a.paginationDropdown.appendChild(f)}a.paginationDropdown.value=a.options.pagination;d.appendChild(document.createTextNode(C(_$_9989[392])));d.appendChild(a.paginationDropdown);d.appendChild(document.createTextNode(C(_$_9989[393])))}return d},c=function(a,d){var e=
344
+ this.merged.rows;if(e[d]){for(;0<d&&e[d-1];)d--;for(;e[d];)a.push(d++)}else a.push(d)},b=function(a){a.search=b.update;a.resetSearch=b.reset;a.updateSearch=b.refresh;a.showSearch=b.show;a.hideSearch=b.hide};b.execute=function(a,d){null===a?a=this.searchInput.value||_$_9989[3]:a!==this.searchInput.value&&(this.searchInput.value=a);this.pageNumber=0;var e=[],f=null;d=ca.execute.call(this,d);if(a)try{a=new RegExp(a,_$_9989[376]);for(var g=0;g<this.rows.length;g++){f=!1;if(!d||0<=d.indexOf(g))for(var h=
345
+ 0;h<this.options.columns.length;h++){var l=_$_9989[3]+N.call(this,h,g),m=_$_9989[3]+this.getLabelFromCoords(h,g);if(l.match(a)||m.match(a))f=!0}1==f&&c.call(this,e,g)}}catch(n){}else e=d;if(e.length){for(g=0;g<this.rows.length;g++)!0===this.rows[g].results&&e.push(g);e.sort(function(n,p){return n-p})}return e};b.update=function(a){ua.reset.call(this);this.resetSelection();this.resetBorders();var d=b.execute.call(this,a);if(typeof this.parent.config.onbeforesearch==_$_9989[85]){var e=F.call(this.parent,
346
+ _$_9989[395],this,a,d);if(e)d=e;else if(!1===e)return!1}this.pageNumber=0;d&&d.length<this.rows.length&&ua[_$_9989[11]].call(this,d);G.resetY.call(this);aa.refresh.call(this);F.call(this.parent,_$_9989[396],this,a,d)};b.refresh=function(){G.resetY.call(this);aa.refresh.call(this)};b.reset=function(){this.searchInput.value=_$_9989[3];ua.reset.call(this);G.resetY.call(this);aa.refresh.call(this)};b.show=function(){this.options.search=!0;this.searchContainer.style.display=_$_9989[3]};b.hide=function(){this.options.search=
347
+ !1;this.searchContainer.style.display=_$_9989[40]};b.build=function(){this.searchContainer=document.createElement(_$_9989[20]);this.searchContainer.classList.add(_$_9989[397]);this.searchContainer.appendChild(k(this));var a=this.searchContainer,d=a.appendChild,e=document.createElement(_$_9989[20]);e.innerHTML=C(_$_9989[379])+_$_9989[114];this.searchInput=document.createElement(_$_9989[220]);this.searchInput.classList.add(_$_9989[394]);e.appendChild(this.searchInput);d.call(a,e);0==this.options.search&&
348
+ (this.searchContainer.style.display=_$_9989[40]);this.element.insertBefore(this.searchContainer,this.element.firstChild)};return b}(),Qa=function(){var k=function(c){c.contextmenu=document.createElement(_$_9989[20]);c.contextmenu.className=_$_9989[398];jSuites.contextmenu(c.contextmenu,{onclick:function(b,a,d){b.close()}});return c.contextmenu};k.open=function(c,b){var a=c.target.getAttribute(_$_9989[42]),d=c.target.getAttribute(_$_9989[43]),e=k[_$_9989[51]](this,a,d,c,b[0],b[1],b[2]);if(typeof this.parent.config.contextMenu==
349
+ _$_9989[85]){var f=this.parent.config.contextMenu(this,a,d,c,e,b[0],b[1],b[2]);if(f)e=f;else if(!1===f)return!1}c.preventDefault();f=na.execute.call(this.parent,_$_9989[86],[this,a,d,c,e,b[0],b[1],b[2]]);e=f[4];this.parent.contextmenu.contextmenu.open(c,e)};k[_$_9989[51]]=function(c,b,a,d,e,f,g){var h=[],l=c.parent.config,m=-1!=navigator.userAgent.indexOf(_$_9989[399])?_$_9989[400]:_$_9989[401];e==_$_9989[402]&&(1==l.allowRenameWorksheet&&h.push({title:C(_$_9989[403]),onclick:function(){var p=prompt(C(_$_9989[403]),
350
+ d.target.innerText);p&&c.parent.renameWorksheet(f,p)}}),1==l.allowDeleteWorksheet&&h.push({title:C(_$_9989[404]),onclick:function(){confirm(C(_$_9989[405]),d.target.innerText)&&c.parent.deleteWorksheet(f)}}),h.push({type:_$_9989[406]}));e==_$_9989[407]&&(h.push({title:C(_$_9989[408]),onclick:function(){var p=prompt(C(_$_9989[408]),d.target.innerText);c.setNestedCell(f,g,{title:p})}}),h.push({type:_$_9989[406]}));if(e==_$_9989[409]||e==_$_9989[410]||e==_$_9989[411]||e==_$_9989[407])h.push({title:C(_$_9989[412]),
351
+ icon:_$_9989[413],shortcut:m+_$_9989[414],onclick:function(){c.cut()}}),h.push({title:C(_$_9989[415]),icon:_$_9989[416],shortcut:m+_$_9989[417],onclick:function(){c.copy()}}),navigator&&navigator.clipboard&&navigator.clipboard.readText&&h.push({title:C(_$_9989[418]),icon:_$_9989[419],shortcut:m+_$_9989[420],onclick:function(){c.selectedCell&&navigator.clipboard.readText().then(function(p){p&&c.paste(c.selectedCell[0],c.selectedCell[1],p)})}}),h.push({type:_$_9989[406]});e==_$_9989[409]&&(1==c.options.allowInsertColumn&&
352
+ h.push({title:C(_$_9989[421]),onclick:function(){c.insertColumn(1,parseInt(f),1)}}),1==c.options.allowInsertColumn&&h.push({title:C(_$_9989[422]),onclick:function(){c.insertColumn(1,parseInt(f),0)}}),1==c.options.allowDeleteColumn&&h.push({title:C(_$_9989[423]),onclick:function(){c.deleteColumn(c.getSelectedColumns().length?void 0:parseInt(b))}}),1==c.options.allowRenameColumn&&h.push({title:C(_$_9989[424]),onclick:function(){c.setHeader(f)}}),c.options.data.length||(h.push({type:_$_9989[406]}),h.push({title:C(_$_9989[425]),
353
+ onclick:function(){c.insertRow(0)}})),1==c.options.columnSorting&&(h.push({type:_$_9989[406]}),h.push({title:C(_$_9989[426]),onclick:function(){c.orderBy(f,0)}}),h.push({title:C(_$_9989[427]),onclick:function(){c.orderBy(f,1)}}),h.push({type:_$_9989[406]})));if(e==_$_9989[411]||e==_$_9989[410])1==c.options.allowInsertRow&&(h.push({title:C(_$_9989[428]),onclick:function(){c.insertRow(1,parseInt(a),1)}}),h.push({title:C(_$_9989[429]),onclick:function(){c.insertRow(1,parseInt(a))}})),1==c.options.allowDeleteRow&&
354
+ h.push({title:C(_$_9989[430]),onclick:function(){c.deleteRow(c.getSelectedRows().length?void 0:parseInt(a))}}),h.push({type:_$_9989[406]});if(e==_$_9989[411]&&1==c.options.allowComments){var n=c.records[g][f].element.getAttribute(_$_9989[264])||_$_9989[3];h.push({title:n?C(_$_9989[431]):C(_$_9989[432]),icon:_$_9989[433],onclick:function(){var p=E.getColumnNameFromCoords(f,g),q=prompt(C(_$_9989[434]),n);q&&c.setComments(p,q)}});n&&h.push({title:C(_$_9989[435]),onclick:function(){var p=E.getColumnNameFromCoords(f,
355
+ g);c.setComments(p,_$_9989[3])}});h.push({type:_$_9989[406]})}l.allowExport&&h.push({title:C(_$_9989[436]),icon:_$_9989[437],shortcut:m+_$_9989[438],onclick:function(){c.download()}});l.about&&h.push({title:C(_$_9989[439]),icon:_$_9989[440],onclick:function(){!0===l.about?alert(K().print()):alert(l.about)}});return h};return k}(),fa=function(){var k=function(c){c.showToolbar=function(){k.show.call(c.parent)};c.hideToolbar=function(){k.hide.call(c.parent)};c.refreshToolbar=function(){k.update.call(c.parent,
356
+ c)}};k[_$_9989[11]]=function(c){this.toolbar.innerHTML=_$_9989[3];this.config.toolbar=k[_$_9989[51]].call(this,c);k.show.call(this)};k[_$_9989[51]]=function(c){c||(c=this.config.toolbar);c?Array.isArray(c)?c={items:c}:typeof c===_$_9989[85]&&(c=c({items:k.getDefault()})):c={};typeof c!==_$_9989[84]&&(c={});c.items||(c.items=k.getDefault());typeof c.responsive==_$_9989[13]&&(c.responsive=!0,c.bottom=!1,c.maxWidth=this.element.offsetWidth);return c};k.show=function(){this.toolbar.innerHTML||k.build.call(this);
357
+ this.toolbar.style.display=_$_9989[3];this.element.classList.add(_$_9989[441])};k.hide=function(){this.toolbar.style.display=_$_9989[40];this.element.classList.remove(_$_9989[441])};k.update=function(c,b){if(b=this.toolbarInstance)if(b.update(c),b.options.responsive){var a=parseInt(c.content.style.maxWidth);if(!a||this.config.fullscreen)a=c.element.offsetWidth;b.options.maxWidth=a;b.refresh()}};k.build=function(){for(var c=k[_$_9989[51]].call(this),b=0;b<c.items.length;b++)if(c.items[b].type==_$_9989[389]){if(!c.items[b].options&&
358
+ c.items[b].v){c.items[b].options=[];for(var a=0;a<c.items[b].v.length;a++)c.items[b].options.push(c.items[b].v[a]);c.items[b].k&&(c.items[b].onchange=function(d,e,f,g){t.current.setStyle(t.current.getSelected(),f.k,g)})}}else c.items[b].type==_$_9989[255]?(c.items[b].type=_$_9989[442],c.items[b].onclick=function(d,e,f){f.color||jSuites.color(f,{onchange:function(g,h){t.current.setStyle(t.current.getSelected(),f.k,h)}}).open()}):!c.items[b].onclick&&c.items[b].k&&(c.items[b].onclick=function(){t.current.setStyle(t.current.getSelected(),
359
+ this.k,this.v)});(b=na.execute.call(this,_$_9989[87],[c]))&&(c=b[0]);this.toolbarInstance=jSuites.toolbar(this.toolbar,c);this.toolbarInstance.application=this;c=this.element.tabs.getActive();this.toolbarInstance.update(this.worksheets[c])};k.getDefault=function(){return[{content:_$_9989[443],onclick:function(){t.current&&t.current.undo()}},{content:_$_9989[444],onclick:function(){t.current&&t.current.redo()}},{content:_$_9989[437],onclick:function(){t.current&&t.current.download()}},{type:_$_9989[445]},
360
+ {type:_$_9989[389],width:_$_9989[446],options:[_$_9989[447],_$_9989[448],_$_9989[449]],render:function(c){return _$_9989[450]+c+_$_9989[226]+c+_$_9989[451]},onchange:function(c,b,a,d){t.current&&t.current.setStyle(t.current.getSelected(),_$_9989[452],d)}},{type:_$_9989[389],width:_$_9989[453],content:_$_9989[454],options:[_$_9989[455],_$_9989[456],_$_9989[457],_$_9989[458],_$_9989[459]],render:function(c){return _$_9989[460]+c+_$_9989[226]+c+_$_9989[451]},onchange:function(c,b,a,d){t.current&&t.current.setStyle(t.current.getSelected(),
361
+ _$_9989[461],d)}},{type:_$_9989[389],options:[_$_9989[462],_$_9989[463],_$_9989[464],_$_9989[465]],render:function(c){return _$_9989[466]+c+_$_9989[467]},onchange:function(c,b,a,d){t.current&&t.current.setStyle(t.current.getSelected(),_$_9989[468],d.split(_$_9989[469])[2])}},{type:_$_9989[442],content:_$_9989[470],k:_$_9989[471],v:_$_9989[472]},{type:_$_9989[255],content:_$_9989[473],k:_$_9989[255]},{type:_$_9989[255],content:_$_9989[474],k:_$_9989[475]},{type:_$_9989[389],content:_$_9989[476],width:_$_9989[477],
362
+ options:[_$_9989[478],_$_9989[479],_$_9989[480],_$_9989[481]],onchange:function(c,b,a,d,e){c=t.current.table;c.classList.remove(_$_9989[482]);c.classList.remove(_$_9989[483]);c.classList.remove(_$_9989[484]);1==e?c.classList.add(_$_9989[482]):2==e?c.classList.add(_$_9989[483]):3==e&&c.classList.add(_$_9989[484]);t.current.refreshBorders()}},{content:_$_9989[15],onclick:function(c,b,a){a.children[0].innerText==_$_9989[15]?(t.current.fullscreen(!0),a.children[0].innerText=_$_9989[485]):(t.current.fullscreen(!1),
363
+ a.children[0].innerText=_$_9989[15])},tooltip:_$_9989[486],updateState:function(c,b,a,d){a.children[0].innerText=1==d.parent.config.fullscreen?_$_9989[485]:_$_9989[15]}},{type:_$_9989[389],data:[_$_9989[487],_$_9989[488],_$_9989[489],_$_9989[490],_$_9989[491],_$_9989[492],_$_9989[493],_$_9989[494],_$_9989[495],_$_9989[496]],columns:5,render:function(c){return _$_9989[466]+c+_$_9989[467]},right:!0,onchange:function(c,b,a,d,e){if(c=t.current.getHighlighted()){a=b.thickness||1;b=b.color||_$_9989[497];
364
+ e={};for(var f=c[0],g=c[1],h=c[2],l=c[3],m=c[1];m<=c[3];m++)for(var n=c[0];n<=c[2];n++){var p=E.getColumnNameFromCoords(n,m);e[p]||(e[p]=_$_9989[3]);e[p]=d!=_$_9989[492]&&d!=_$_9989[488]||n!=f?(d==_$_9989[489]||d==_$_9989[491])&&n>f?e[p]+(_$_9989[498]+a+_$_9989[499]+b+_$_9989[295]):d==_$_9989[487]?e[p]+(_$_9989[498]+a+_$_9989[499]+b+_$_9989[295]):e[p]+_$_9989[500]:e[p]+(_$_9989[498]+a+_$_9989[499]+b+_$_9989[295]);e[p]=d!=_$_9989[487]&&d!=_$_9989[494]&&d!=_$_9989[488]||n!=h?e[p]+_$_9989[502]:e[p]+
365
+ (_$_9989[501]+a+_$_9989[499]+b+_$_9989[295]);e[p]=d!=_$_9989[493]&&d!=_$_9989[488]||m!=g?(d==_$_9989[489]||d==_$_9989[490])&&m>g?e[p]+(_$_9989[503]+a+_$_9989[499]+b+_$_9989[295]):d==_$_9989[487]?e[p]+(_$_9989[503]+a+_$_9989[499]+b+_$_9989[295]):e[p]+_$_9989[504]:e[p]+(_$_9989[503]+a+_$_9989[499]+b+_$_9989[295]);e[p]=d!=_$_9989[487]&&d!=_$_9989[495]&&d!=_$_9989[488]||m!=l?e[p]+_$_9989[506]:e[p]+(_$_9989[505]+a+_$_9989[499]+b+_$_9989[295])}Object.keys(e)&&t.current.setStyle(e,null,null,!0)}},onload:function(c,
366
+ b){var a=document.createElement(_$_9989[20]),d=document.createElement(_$_9989[20]);a.appendChild(d);var e=jSuites.color(d,{closeOnChange:!1,onchange:function(f,g){f.parentNode.children[1].style.color=g;b.color=g}});d=document.createElement(_$_9989[442]);d.classList.add(_$_9989[507]);d.innerHTML=_$_9989[508];d.onclick=function(){e.open()};a.appendChild(d);c.children[1].appendChild(a);d=document.createElement(_$_9989[20]);jSuites.picker(d,{type:_$_9989[389],data:[1,2,3,4,5],render:function(f){return _$_9989[509]+
367
+ f+_$_9989[510]},onchange:function(f,g,h,l){b.thickness=l},width:_$_9989[511]});c.children[1].appendChild(d);d=document.createElement(_$_9989[20]);d.style.flex=_$_9989[512];c.children[1].appendChild(d)}},{content:_$_9989[513],onclick:function(c,b,a){a.children[0].innerText==_$_9989[513]?(qa.show.call(t.current),a.children[0].innerText=_$_9989[514]):(qa.hide.call(t.current),a.children[0].innerText=_$_9989[513])},tooltip:_$_9989[515],updateState:function(c,b,a,d){a.children[0].innerText=1==d.options.search?
368
+ _$_9989[514]:_$_9989[513]}}]};return k}(),ia=function(){var k=function(c){c.createWorksheet=function(b){return c.parent.createWorksheet(b)};c.deleteWorksheet=function(b){return c.parent.deleteWorksheet(b)};c.renameWorksheet=function(b,a){return c.parent.renameWorksheet(b,a)};c.moveWorksheet=function(b,a){return c.parent.moveWorksheet(b,a)};c.openWorksheet=function(){return c.parent.openWorksheet(c.parent.getWorksheet(c))};c.getWorksheet=function(b){return c.parent.getWorksheet(b)};c.getWorksheetActive=
369
+ function(){return c.parent.getWorksheetActive()};c.getWorksheetName=function(){return c.options.worksheetName.toUpperCase()}};k.nextName=function(){var c=1,b,a=t.spreadsheet;if(a.length)for(var d=0;d<a.length;d++){var e=a[d].worksheets;if(e.length)for(var f=0;f<e.length;f++)e[f].options.worksheetName&&(b=e[f].options.worksheetName.match(/(\d+)/))&&(b=parseInt(b[0])+1,b>c&&(c=b))}return c};k.createWorksheet=function(c){if(!Q.call(this))return!1;c||(c={});var b=this.worksheets.length,a=F.call(this,
370
+ _$_9989[516],c,b);if(typeof a===_$_9989[84])c=a;else if(!1===a)return!1;c.data||c.minDimensions||(c.minDimensions=[8,8]);c.worksheetId||(c.worksheetId=jSuites.guid().substring(0,8));c.worksheetName||(c.worksheetName=_$_9989[358]+k.nextName());H(c.worksheetName)?jSuites.notification({error:_$_9989[512],message:_$_9989[517]}):(a=oa.worksheet(this,c),a.onload(),L.call(a,_$_9989[518],[c]),F.call(this,_$_9989[519],a,c,b))};k.deleteWorksheet=function(c){var b=this.worksheets[c];if(!Q.call(this,b))return!1;
371
+ H(b.options.worksheetName,null);this.element.tabs.deleteElement(c);this.worksheets.splice(c,1);L.call(b,_$_9989[520],[c]);F.call(this,_$_9989[521],b,c)};k.renameWorksheet=function(c,b){var a=this.worksheets[c];if(!Q.call(this,a))return!1;var d=a.options.worksheetName;if(d.toLowerCase()==b.toLowerCase())return!1;b=b.replace(/[^0-9A-Za-z_\s^]+/gi,_$_9989[3]);Number(b)==b&&(b=_$_9989[358]+Number(b));H(b)?alert(_$_9989[522]):(H(d,null),this.element.tabs.rename(c,b),a.options.worksheetName=b,H(b,a),U.call(this,
372
+ {worksheet:a,action:_$_9989[80],index:c,oldValue:d,newValue:b}),L.call(a,_$_9989[80],{worksheet:c,newValue:b}),Ha.updateWorksheetName.call(a,d,b),V.updateWorksheetNames.call(a,d,b),F.call(this,_$_9989[523],a,c,b,d))};k.updateWorksheet=function(c,b){var a=this.worksheets;if(!Q.call(this))return!1;this.worksheets.splice(b,0,a.splice(c,1)[0]);U.call(this,{worksheet:a[b],action:_$_9989[81],f:c,t:b});L.call(a[b],_$_9989[81],{f:c,t:b});F.call(this,_$_9989[524],a[b],c,b)};k.moveWorksheet=function(c,b){this.element.tabs.move(c,
373
+ b)};k.openWorksheet=function(c){var b=this.worksheets[c];!b||t.current&&t.current==b||(this.element.tabs.getActive()!=c?this.element.tabs.open(c):this.element.tabs.setBorder(c),t.current&&t.current.resetSelection(),t.current=b,t.current.refreshBorders(),T.call(t.current),k.state.call(this,c),fa.update.call(this,t.current),F.call(this,_$_9989[525],b,c))};k.getWorksheet=function(c){if(c&&typeof c==_$_9989[84]){if(c=this.worksheets.indexOf(c),0<=c)return c}else for(var b=0;b<this.worksheets.length;b++)if(c===
374
+ this.worksheets[b].options.worksheetId)return b;return!1};k.getWorksheetActive=function(){return this.element.tabs.getActive()};k.getWorksheetInstance=function(c){return c===_$_9989[3]||typeof c==_$_9989[17]?(c=k.getWorksheet.call(this,c),!1===c?!1:this.worksheets[c]):this.worksheets[c]};k.state=function(c){try{if(typeof localStorage!==_$_9989[13]){var b=this.config.cloud?this.config.cloud:this.element.id;if(b)if(typeof c!==_$_9989[13])localStorage.setItem(_$_9989[526]+b,c);else{var a=parseInt(localStorage.getItem(_$_9989[526]+
375
+ b));k.openWorksheet.call(this,a)}}}catch(d){}};return k}(),E=function(){var k={getCaretIndex:function(c){var b=0,a=(this.config.root?this.config.root:window).getSelection();a&&0!==a.rangeCount&&(b=a.getRangeAt(0),a=b.cloneRange(),a.selectNodeContents(c),a.setEnd(b.endContainer,b.endOffset),b=a.toString().length);return b},invert:function(c){for(var b=[],a=Object.keys(c),d=0;d<a.length;d++)b[c[a[d]]]=a[d];return b},getColumnName:function(c){var b=_$_9989[3];701<c?(b+=String.fromCharCode(64+parseInt(c/
376
+ 676)),b+=String.fromCharCode(64+parseInt(c%676/26))):25<c&&(b+=String.fromCharCode(64+parseInt(c/26)));return b+=String.fromCharCode(65+c%26)},getColumnNameFromCoords:function(c,b){return k.getColumnName(parseInt(c))+(parseInt(b)+1)},getCoordsFromColumnName:function(c){var b=/^[a-zA-Z]+/.exec(c);if(b){for(var a=0,d=0;d<b[0].length;d++)a+=parseInt(b[0].charCodeAt(d)-64)*Math.pow(26,b[0].length-1-d);a--;0>a&&(a=0);c=parseInt(/[0-9]+$/.exec(c))||null;0<c&&c--;return[a,c]}}};k.shiftFormula=V.shiftFormula;
377
+ k.createFromTable=function(c,b){if(c.tagName!=_$_9989[527])console.log(_$_9989[528]);else{b||(b={});b.columns=[];b.data=[];var a=c.querySelectorAll(_$_9989[529]);if(a.length)for(var d=0;d<a.length;d++){var e=a[d].style.width;e||(e=a[d].getAttribute(_$_9989[152]));e&&(b.columns[d]||(b.columns[d]={}),b.columns[d].width=e)}e=function(y){var x=y.getBoundingClientRect();x=50<x.width?x.width:50;b.columns[d]||(b.columns[d]={});y.getAttribute(_$_9989[530])?b.columns[d].type=y.getAttribute(_$_9989[530]):b.columns[d].type=
378
+ _$_9989[56];b.columns[d].width=x+_$_9989[44];b.columns[d].title=y.innerHTML;b.columns[d].align=y.style.textAlign||(b.defaultColAlign?b.defaultColAlign:_$_9989[53]);y.classList.contains(_$_9989[531])&&(b.columns[d].readOnly=!0);if(x=y.getAttribute(_$_9989[532]))b.columns[d].name=x;if(x=y.getAttribute(_$_9989[533]))b.columns[d].id=x};var f=[],g=c.querySelectorAll(_$_9989[534]);if(g.length){for(a=0;a<g.length-1;a++){var h=[];for(d=0;d<g[a].children.length;d++){var l={title:g[a].children[d].innerText,
379
+ colspan:g[a].children[d].getAttribute(_$_9989[52])||1};h.push(l)}f.push(h)}g=g[g.length-1].children;for(d=0;d<g.length;d++)e(g[d])}l=0;var m={},n={},p={},q={},v=null;h=c.querySelectorAll(_$_9989[535]);for(a=0;a<h.length;a++)if(b.data[l]=[],1!=b.parseTableFirstRowAsHeader||g.length||0!=a){for(d=0;d<h[a].children.length;d++){var u=h[a].children[d].getAttribute(_$_9989[536]);u?u.substr(0,1)!=_$_9989[12]&&(u=_$_9989[12]+u):u=h[a].children[d].innerHTML;b.data[l].push(u);u=E.getColumnNameFromCoords(d,a);
380
+ (v=h[a].children[d].getAttribute(_$_9989[537]))&&(q[u]=v);v=parseInt(h[a].children[d].getAttribute(_$_9989[52]))||0;var w=parseInt(h[a].children[d].getAttribute(_$_9989[164]))||0;if(v||w)m[u]=[v||1,w||1];if(v=h[a].children[d].style&&h[a].children[d].style.display==_$_9989[40])h[a].children[d].style.display=_$_9989[3];(v=h[a].children[d].getAttribute(_$_9989[98]))&&(p[u]=v);h[a].children[d].classList.contains(_$_9989[538])&&(p[u]=p[u]?p[u]+_$_9989[539]:_$_9989[540])}h[a].style&&h[a].style.height&&
381
+ (n[a]={height:h[a].style.height});l++}else for(d=0;d<h[a].children.length;d++)e(h[a].children[d]);0<Object.keys(f).length&&(b.nestedHeaders=f);0<Object.keys(p).length&&(b.style=p);0<Object.keys(m).length&&(b.mergeCells=m);0<Object.keys(n).length&&(b.rows=n);0<Object.keys(q).length&&(b.classes=q);h=c.querySelectorAll(_$_9989[541]);if(h.length){c=[];for(a=0;a<h.length;a++){e=[];for(d=0;d<h[a].children.length;d++)e.push(h[a].children[d].innerText);c.push(e)}0<Object.keys(c).length&&(b.footers=c)}if(1==
382
+ b.parseTableAutoCellType)for(c=[],d=0;d<b.columns.length;d++){f=e=!0;c[d]=[];for(a=0;a<b.data.length;a++)if(u=b.data[a][d],c[d][u]||(c[d][u]=0),c[d][u]++,25<u.length&&(e=!1),10==u.length){if(u.substr(4,1)!=_$_9989[185]||u.substr(7,1)!=_$_9989[185])f=!1}else f=!1;a=Object.keys(c[d]).length;f?b.columns[d].type=_$_9989[184]:1==e&&1<a&&a<=parseInt(.1*b.data.length)&&(b.columns[d].type=_$_9989[58],b.columns[d].source=Object.keys(c[d]))}return b}};k.injectArray=function(c,b,a){return c.slice(0,b).concat(a).concat(c.slice(b))};
383
+ k.parseCSV=function(c,b){b=b||_$_9989[25];for(var a=0,d=0,e=[[]],f=0,g=null,h=!1,l=!1,m=0;m<c.length;m++)if(e[d]||(e[d]=[]),e[d][a]||(e[d][a]=_$_9989[3]),c[m]!=_$_9989[542])if(c[m]!=_$_9989[543]&&c[m]!=b||0!=h&&1!=l&&g){c[m]==_$_9989[187]&&(h=!h);if(null===g){if(g=h,1==g)continue}else if(!0===g&&!l&&c[m]==_$_9989[187]){c[m+1]==_$_9989[187]?(h=!0,e[d][a]+=c[m],m++):l=!0;continue}e[d][a]+=c[m]}else{g=null;l=h=!1;if(e[d][a][0]==_$_9989[187]){var n=e[d][a].trim();n[n.length-1]==_$_9989[187]&&(e[d][a]=
384
+ n.substr(1,n.length-2))}c[m]==_$_9989[543]?(a=0,d++):(a++,a>f&&(f=a))}for(c=0;c<e.length;c++)for(m=0;m<=f;m++)void 0===e[c][m]&&(e[c][m]=_$_9989[3]);return e};k.getTokensFromRange=V.getTokensFromRange;k.getRangeFromTokens=V.getRangeFromTokens;return k}(),Aa=function(){function k(r){return t.current&&t.current.options.tableOverflow&&r.target.tagName==_$_9989[569]&&r.target.hasAttribute(_$_9989[42])}function c(){x.x1=x.x2;x.y1=x.y2;D=null}function b(r,A=1){A*=.1;return 0>r?Math.min(0,Math.ceil(r/(1+
385
+ A))+1):Math.max(0,Math.ceil(r/(1+A))-1)}function a(){0<Math.abs(x.speeds.vertical)&&(x.speeds.vertical=b(x.speeds.vertical,1),t.current.scrollY.scrollTop+=d(x.speeds.vertical),0==t.current.scrollY.scrollTop||t.current.scrollY.scrollHeight-t.current.scrollY.scrollTop===t.current.scrollY.clientHeight)&&(x.speeds.vertical=0);0<Math.abs(x.speeds.horizontal)&&(x.speeds.horizontal=b(x.speeds.horizontal,1),t.current.scrollX.scrollLeft+=d(x.speeds.horizontal),0==t.current.scrollX.scrollLeft||t.current.scrollX.scrollWidth-
386
+ t.current.scrollX.scrollLeft===t.current.scrollX.clientWidth)&&(x.speeds.horizontal=0);0>=Math.abs(x.speeds.vertical)&&0>=Math.abs(x.speeds.horizontal)||requestAnimationFrame(a)}function d(r,A=100){return Math.ceil(A/1E3*r)}var e={},f=null,g=null,h=null,l=!1,m=null,n=null,p=null,q=function(r){function A(ja){ja.className&&(ja.classList.contains(_$_9989[348])&&(I=ja),ja.classList.contains(_$_9989[361])&&(J=ja),ja.classList.contains(_$_9989[544])&&(Y=ja));ja.tagName==_$_9989[545]?z=1:ja.tagName==_$_9989[546]?
387
+ z=2:ja.tagName==_$_9989[547]&&(z=3);ja.parentNode&&!I&&A(ja.parentNode)}var z=null,B=null,I=null,J=null,Y=null,W=null,wa=null,Ra=null;A(r.target);if(null!==Y)return!1;if(I)if(r.target.classList.contains(_$_9989[330]))B=_$_9989[548];else if(r.target.classList.contains(_$_9989[339]))B=_$_9989[138];else if(r.target.classList.contains(_$_9989[267]))B=_$_9989[410],W=parseInt(r.target.getAttribute(_$_9989[43]));else if(r.target.parentNode&&r.target.parentNode.classList.contains(_$_9989[177]))W=r.target.getAttribute(_$_9989[181]),
388
+ wa=r.target.getAttribute(_$_9989[182]),null===W?B=_$_9989[548]:(B=_$_9989[407],W=parseInt(W),wa=parseInt(wa));else if(r.target.parentNode&&r.target.parentNode.classList.contains(_$_9989[146]))B=_$_9989[549];else if(r.target.classList.contains(_$_9989[150]))B=_$_9989[549];else if(r.target.parentNode&&r.target.parentNode.classList.contains(_$_9989[550]))B=_$_9989[402],W=Array.prototype.indexOf.call(r.target.parentNode.children,r.target);else if(1==z)B=_$_9989[409],W=r.target.clientWidth-r.offsetX,r.target.classList.contains(_$_9989[168])&&
389
+ 3<W&&20>W&&(B=_$_9989[551]),W=r.target.getAttribute(_$_9989[42]);else if(2==z){if(r=v(r,I))B=_$_9989[411],W=r[0],wa=r[1],Ra=r[2]}else if(3==z){if(W=r.target.getAttribute(_$_9989[42]),wa=r.target.getAttribute(_$_9989[43]),W||wa)B=_$_9989[552]}else z||jSuites.findElement(r.target,_$_9989[553])&&(B=_$_9989[87]);return[I,J,z,B,W,wa,Ra]},v=function(r,A){if(r.changedTouches&&r.changedTouches[0]){var z=r.changedTouches[0].clientX;r=r.changedTouches[0].clientY}else z=r.clientX,r=r.clientY;A=(A.spreadsheet.config.root?
390
+ A.spreadsheet.config.root:document).elementsFromPoint(z,r);for(var B=0;B<A.length;B++)if(z=A[B].getAttribute(_$_9989[42]),r=A[B].getAttribute(_$_9989[43]),null!=z&&null!=r)return z=parseInt(z),r=parseInt(r),[z,r,A[B]];return!1},u=function(r){var A=q(r);if(!1===A)return!1;A[0]?A[1]?t.current!=A[1].jexcel&&(t.current&&t.current.resetSelection(),t.current=A[1].jexcel):(r=A[0].tabs.getActive(),0<=r&&(t.current=A[0].spreadsheet.worksheets[r])):t.current&&!jSuites.findElement(r.target,_$_9989[219])&&(t.current.resetSelection(!0),
391
+ t.current=null);return A};e.input=function(r){if(r.target.tagName==_$_9989[554]&&r.target.classList.contains(_$_9989[92])){var A=null;t.current?A=t.current:r.target.getAttribute(_$_9989[555])&&(A=H(r.target.getAttribute(_$_9989[555])));A&&ka.parse.call(A,r.target)}};e.keydown=function(r){if(t.current){r.target.tagName==_$_9989[554]&&r.target.classList.contains(_$_9989[92])&&ka.onkeydown.call(t.current,r);if(27==r.which){if(t.current.edition)return t.current.closeEditor(t.current.edition,!1),r.preventDefault(),
392
+ !1;if(ra.event)return ra.cancel.call(t.current,r),r.preventDefault(),!1;if(la.event)return la.cancel.call(t.current,r),!1;if(1==ca.isVisible())return ca.close.call(t.current,!1),r.preventDefault(),!1}if(!r.target.classList.contains(_$_9989[219]))if(r.target.classList.contains(_$_9989[380])){var A=r.target;m&&clearTimeout(m);m=setTimeout(function(){ca.search.call(t.current,A.value);m=null},500)}else if(r.target.classList.contains(_$_9989[394]))A=r.target,m&&clearTimeout(m),m=setTimeout(function(){t.current.search(A.value);
393
+ m=null},400);else if(t.current.edition){var z=t.current.edition.getAttribute(_$_9989[42]);13==r.which?t.current.options.columns[z].type==_$_9989[184]?t.current.closeEditor(t.current.edition,!0):t.current.options.columns[z].type!=_$_9989[58]&&t.current.options.columns[z].type!=_$_9989[556]&&t.current.options.columns[z].type!=_$_9989[433]&&(r.altKey?t.current.parent.input.classList.contains(_$_9989[557])||document.execCommand(_$_9989[558],!1,_$_9989[559]):(t.current.closeEditor(t.current.edition,!0),
394
+ t.current.down(),r.preventDefault())):9==r.which&&(t.current.closeEditor(t.current.edition,!0),t.current.right(),r.preventDefault())}else if(t.current.selectedCell)if(33==r.which)0<t.current.options.pagination?ta.pageUp.call(t.current):G.pageUp.call(t.current);else if(34==r.which)0<t.current.options.pagination?ta.pageDown.call(t.current):G.pageDown.call(t.current);else if(37==r.which)t.current.left(r.shiftKey,r.ctrlKey),r.preventDefault();else if(39==r.which)t.current.right(r.shiftKey,r.ctrlKey),
395
+ r.preventDefault();else if(38==r.which)t.current.up(r.shiftKey,r.ctrlKey),r.preventDefault();else if(40==r.which)t.current.down(r.shiftKey,r.ctrlKey),r.preventDefault();else if(36==r.which)t.current.first(r.shiftKey,r.ctrlKey),r.preventDefault();else if(35==r.which)t.current.last(r.shiftKey,r.ctrlKey),r.preventDefault();else if(32==r.which)t.current.setCheckRadioValue(),r.preventDefault();else if(46==r.which||8==r.which)t.current.isEditable()&&t.current.setValue(t.current.getSelected(!1,!0),_$_9989[3]);
396
+ else if(13==r.which)r.shiftKey?t.current.up():(1==t.current.options.allowManualInsertRow&&t.current.selectedCell[1]==(t.current.results?t.current.results[t.current.results.length-1]:t.current.rows.length-1)&&t.current.insertRow(),t.current.selectedCell&&t.current.down()),r.preventDefault();else if(9==r.which)r.shiftKey?t.current.left():(z=t.current.selectedCell[0],t.current.right(),1==t.current.options.allowInsertColumn&&1==t.current.options.allowManualInsertColumn&&t.current.selectedCell[0]==z&&
397
+ (t.current.insertColumn(),t.current.right())),r.preventDefault();else if((r.ctrlKey||r.metaKey)&&!r.shiftKey)65==r.which?(t.current.selectAll(),r.preventDefault()):83==r.which?(t.current.download(),r.preventDefault()):89==r.which?(t.current.parent.redo(),r.preventDefault()):90==r.which?(t.current.parent.undo(),r.preventDefault()):67==r.which?(t.current.copy(),r.preventDefault()):88==r.which?(t.current.cut(),r.preventDefault()):86==r.which?e.paste(r):189==r.which&&(1==t.current.options.allowDeleteRow&&
398
+ h==_$_9989[410]?(t.current.deleteRow(),r.preventDefault()):1==t.current.options.allowDeleteColumn&&h==_$_9989[409]&&(t.current.deleteColumn(),r.preventDefault()));else if(t.current.selectedCell&&t.current.isEditable()){z=t.current.selectedCell[1];var B=t.current.selectedCell[0];t.current.options.columns[B].type!=_$_9989[18]&&(32==r.keyCode?t.current.options.columns[B].type==_$_9989[250]||t.current.options.columns[B].type==_$_9989[252]?r.preventDefault():t.current.openEditor(t.current.records[z][B].element,
399
+ !0,r):113==r.keyCode?t.current.openEditor(t.current.records[z][B].element,!1,r):1!=r.key.length&&r.key!=_$_9989[560]||r.altKey||r.ctrlKey||t.current.records[z]&&t.current.openEditor(t.current.records[z][B].element,!0,r))}}};var w=function(r,A,z,B,I,J){if(1==t.current.parent.input.classList.contains(_$_9989[92])&&ka.update.call(t.current,r,A,z,B,I))return!1;if(t.current.edition)t.current.closeEditor(t.current.edition,!0);else if(h&&h!==J)return!1;ka.current?ka.range.call(t.current,r,A,z,B,I):ya[_$_9989[11]].call(t.current,
400
+ r,A,z,B,I)};e.mousedown=function(r){r=r||window.event;var A=r.buttons?r.buttons:r.button?r.button:r.which;if(t.current)if(1==ca.isVisible()&&(jSuites.findElement(r.target,_$_9989[384])||ca.close.call(t.current,!1)),t.current.edition){if(jSuites.findElement(r.target,_$_9989[99]))return!1}else if(jSuites.findElement(r.target,_$_9989[219]))return!1;var z=u(r);if(!1===z)return!1;p=z;if(1<A)if(z[3]==_$_9989[409]){if(t.current.isSelected(z[4],null))return!1}else if(z[3]==_$_9989[410]){if(t.current.isSelected(null,
401
+ z[4]))return!1}else if(z[3]==_$_9989[411]&&t.current.isSelected(z[4],z[5]))return!1;if(t.current){if(z[3]==_$_9989[138])t.current.isEditable()&&(la.event=!0);else if(z[3]==_$_9989[551])ca.open.call(t.current,z[4]);else{if(1==z[2])if(1==t.current.options.columnDrag&&6>r.target.offsetHeight-r.offsetY)ra.start.call(t.current,r);else if(1==t.current.options.columnResize&&6>r.target.offsetWidth-r.offsetX)va.start.call(t.current,r);else{A=t.current.options.columns.length-1;var B=t.current.options.data.length-
402
+ 1;if(z[3]==_$_9989[548])w(0,0,A,B,r,z[3]),g=f=0;else if(z[3]==_$_9989[407]){var I=pa.range.call(t.current,z[5])[z[4]];I[1]>A&&(I[1]=A);w(I[0],0,I[1],B,r,z[3]);f=I[0];g=0}else(r.shiftKey||r.ctrlKey)&&null!=f&&null!=g?w(f,0,z[4],B,r,z[3]):(z[3]==_$_9989[409]&&f==z[4]&&1==t.current.options.allowRenameColumn&&(n=setTimeout(function(){t.current.setHeader(z[4])},800)),w(z[4],0,z[4],B,r,z[3]),f=z[4],g=0)}if(2==z[2])if(z[3]==_$_9989[410])1==t.current.options.rowDrag&&6>r.target.offsetWidth-r.offsetX?ra.start.call(t.current,
403
+ r):1==t.current.options.rowResize&&6>r.target.offsetHeight-r.offsetY?va.start.call(t.current,r):(A=t.current.options.columns.length-1,B=parseInt(z[4]),(r.shiftKey||r.ctrlKey)&&null!=f&&null!=g?w(0,g,A,B,r,z[3]):(w(0,B,A,B,r,z[3]),f=0,g=B));else if(z[3]==_$_9989[411]){A=parseInt(z[4]);B=parseInt(z[5]);if(!t.current.edition&&(I=t.current.options.columns[z[4]].type,r.target.tagName==_$_9989[561]&&(I==_$_9989[253]||I==_$_9989[254])&&r.target.parentNode.classList.contains(_$_9989[124]))){var J=r.target.innerText;
404
+ I==_$_9989[253]&&(J=_$_9989[562]+J);window.open(J,_$_9989[563])}(r.shiftKey||r.ctrlKey)&&null!=f&&null!=g?w(f,g,A,B,r,z[3]):(w(A,B,A,B,r,z[3]),f=A,g=B)}}h=z[3];typeof z[3]!==_$_9989[13]&&F.call(t.current.parent,_$_9989[564],t.current,z[3],z[4],z[5]);l=!0}else l=!1};e.mouseup=function(r){t.current&&(ra.event?ra.end.call(t.current,r):va.event?va.end.call(t.current,r):la.event?la.end.call(t.current,r):r.target.classList.contains(_$_9989[383])?ca.close.call(t.current,!0):t.current.edition&&r.target.classList.contains(_$_9989[565])&&
405
+ 50>r.target.clientWidth-r.offsetX&&50>r.offsetY?da.close.call(t.current,null,!0):r.target.classList.contains(_$_9989[318])&&(r=r.target.innerText==_$_9989[215]?0:r.target.innerText==_$_9989[216]?r.target.getAttribute(_$_9989[264])-1:r.target.innerText-1,ta[_$_9989[11]].call(t.current,parseInt(r))));n&&(clearTimeout(n),n=null);l=h=!1;ka.current&&ka.close.call(t.current)};e.mousemove=function(r){r=r||window.event;if(t.current){var A=r.target.getAttribute(_$_9989[42]),z=r.target.getAttribute(_$_9989[43]);
406
+ if(1==l)ra.event?ra.update.call(t.current,r):va.event?va.update.call(t.current,r):Oa.event&&Oa.update.call(t.current,r);else{var B=r.target.getBoundingClientRect();t.current.cursor&&(t.current.cursor.style.cursor=_$_9989[3],t.current.cursor=null);1==t.current.options.editable&&(A||z)&&(1==t.current.options.rowResize&&r.target&&A&&!z&&5>B.width-(r.clientX-B.left)?(t.current.cursor=r.target,t.current.cursor.style.cursor=_$_9989[566]):1==t.current.options.columnResize&&r.target&&!A&&z&&5>B.height-(r.clientY-
407
+ B.top)?(t.current.cursor=r.target,t.current.cursor.style.cursor=_$_9989[567]):1==t.current.options.rowDrag&&r.target&&!A&&z&&5>B.width-(r.clientX-B.left)?(t.current.cursor=r.target,t.current.cursor.style.cursor=_$_9989[568]):1==t.current.options.columnDrag&&r.target&&A&&!z&&5>B.height-(r.clientY-B.top)&&(t.current.cursor=r.target,t.current.cursor.style.cursor=_$_9989[568]))}}};e.mouseover=function(r){r=r||window.event;var A=!1;if(t.current&&1==l){var z=q(r);if(z[0]){if(z[1]&&t.current!=z[1].jexcel&&
408
+ t.current)return!1;if(!ra.event&&!va.event)if(la.event){var B=r.target.getAttribute(_$_9989[42]),I=r.target.getAttribute(_$_9989[43]);t.current.isSelected(B,I)||null===B||null===I||(la.call(t.current,B,I),A=!0)}else null!==f&&null!==g&&(1==z[2]&&(B=f,z[3]==_$_9989[409]&&(B=r.target.getAttribute(_$_9989[42])),I=t.current.options.data.length-1,w(f,0,B,I,r,z[3])),2==z[2]&&(z[3]==_$_9989[410]?(B=t.current.options.columns.length-1,I=parseInt(r.target.getAttribute(_$_9989[43])),w(0,g,B,I,r,z[3])):z[3]==
409
+ _$_9989[411]&&(B=r.target.getAttribute(_$_9989[42]),I=r.target.getAttribute(_$_9989[43]),B&&I&&(w(f,g,B,I,r,z[3]),A=!0))))}}1==A&&!n&&G.limited.call(t.current)?n=setTimeout(function(){var J=t.current.content.getBoundingClientRect();if(r.changedTouches&&r.changedTouches[0])var Y=r.changedTouches[0].clientX,W=r.changedTouches[0].clientY;else Y=r.clientX,W=r.clientY;50>J.height-(W-J.top)?G.pageDown.call(t.current,1,null,r):80>W-J.top&&G.pageUp.call(t.current,1,null,r);50>J.width-(Y-J.left)?G.pageRight.call(t.current,
410
+ 1,null,r):80>Y-J.left&&G.pageLeft.call(t.current,1,null,r);n=null},100):n&&(clearTimeout(n),n=null)};e.dblclick=function(r){if(t.current)if(r.target.classList.contains(_$_9989[339]))la.execute.call(t.current,!1);else{var A=q(r);1==A[2]?1==t.current.options.columnSorting&&(r=r.target.getAttribute(_$_9989[42]))&&t.current.orderBy(r):2==A[2]&&t.current.isEditable()&&!t.current.edition&&A[6]&&t.current.openEditor(A[6])}};e.paste=function(r){if(t.current&&t.current.selectedCell&&!t.current.edition){var A=
411
+ r.clipboardData||window.clipboardData;A&&(t.current.paste(t.current.selectedCell[0],t.current.selectedCell[1],A.getData(_$_9989[56])),r&&r.preventDefault())}};e.contextmenu=function(r){var A=u(r);!1!==A&&(A[1]||(A=p),t.current&&!t.current.edition&&(A=Array.prototype.slice.call(A,3),Qa.open.call(t.current,r,A)))};var y=Date.now(),x={},D=null,R=null,O=null;e.touchstart=function(r){var A=q(r);A[0]?A[1]&&t.current!=A[1].jexcel&&(t.current&&t.current.resetSelection(),t.current=A[1].jexcel):t.current&&
412
+ (t.current.resetSelection(),t.current=null);if(t.current&&!t.current.edition){var z=A[4];A=A[5];k(r)&&(O=r.touches[0],R=r.touches.length,y=Date.now(),x.x1=r.touches[0].screenX,x.y1=r.touches[0].screenY,x.x2=r.touches[0].screenX,x.y2=r.touches[0].screenY,D=setTimeout(c,250),null!=x.speeds&&(x.speeds.vertical=0,x.speeds.horizontal=0));if(null!==z&&null!==A){t.current.updateSelectionFromCoords(z,A,z,A);var B=r.target;n=setTimeout(function(){t.current.openEditor(B,!1,r);n=null},300)}}};e.touchmove=function(r){n&&
413
+ (clearTimeout(n),n=null);if(k(r)&&1==R){var A=r.changedTouches[0];O&&(t.current.scrollY.scrollTop+=-1*(A.clientY-O.clientY),t.current.scrollX.scrollLeft+=-1*(A.clientX-O.clientX));O=A;x.x2=r.touches[0].screenX;x.y2=r.touches[0].screenY;null!=x.speeds&&(x.speeds.vertical=0,x.speeds.horizontal=0);null==D&&(D=setTimeout(c,250));r.cancelable&&t.current.options.tableOverflow&&r.preventDefault()}};e.touchend=function(r){n&&(clearTimeout(n),n=null);D&&(clearTimeout(D),D=null);O=R=null;if(k(r)){r=Date.now()-
414
+ y;var A=x.x1,z=x.y1,B=x.x2,I=x.y2,J=A==A&&z==I?0:Math.sqrt(Math.pow(A-A,2)+Math.pow(z-I,2));I>z&&(J=-J);10>Math.abs(I-z)&&(J=0);I=0>=r?-1:Math.ceil(J/(r/1E3));z=A==B&&z==z?0:Math.sqrt(Math.pow(A-B,2)+Math.pow(z-z,2));B>A&&(z=-z);10>Math.abs(B-A)&&(z=0);x.speeds={vertical:I,horizontal:0>=r?-1:Math.ceil(z/(r/1E3))};(250>r&&200<Math.abs(x.speeds.vertical)||250>r&&200<Math.abs(x.speeds.horizontal))&&requestAnimationFrame(a)}};e.resize=function(){t.current&&1==t.current.parent.config.fullscreen&&G.refresh.call(t.current)};
415
+ return e}(),t=function(k,c,b){c||(c={});if(c.cloud&&!b)typeof c.plugins.cloud==_$_9989[85]?c.plugins.cloud.load(c,function(f){t(k,f,!0)}):console.error(_$_9989[570]);else{if(k.spreadsheet)a=k.spreadsheet,Ca[_$_9989[11]].call(a,c);else var a=oa.spreadsheet(k,c);a.processing=!0;1==a.config.loadingSpin&&jSuites.loading.show();jSuites.ajax.oncomplete[a.name]=function(){for(var f=0;f<a.worksheets.length;f++)a.worksheets[f].onload();a.processing=!1;if(Array.isArray(a.queue)&&0<a.queue.length)for(;f=a.queue.shift();)f[0].updateCell(f[1],
416
+ f[2],N.call(f[0],f[1],f[2]),!0);a.config.toolbar&&fa.show.call(a);for(f=0;f<a.worksheets.length;f++)aa.refresh.call(a.worksheets[f]);if(typeof a.config.onload==_$_9989[85])a.config.onload(a);ia.state.call(a);jSuites.loading.hide()};Array.isArray(c.worksheets)&&(c=c.worksheets);if(Array.isArray(c)){b=null;for(var d=[],e=0;e<c.length;e++)b=oa.worksheet(a,c[e]),d.push(b)}else d=oa.worksheet(a,c);jSuites.ajax.pending(a.name)||(jSuites.ajax.oncomplete[a.name](),jSuites.ajax.oncomplete[a.name]=null);return d}};
417
+ t.license=null;t.setLicense=function(k){t.license=k};t.spreadsheet=[];t.picker=ka;t.setDictionary=function(k){jSuites.setDictionary(k)};t.extensions={};t.setExtensions=function(k){for(var c=Object.keys(k),b=0;b<c.length;b++)typeof k[c[b]]===_$_9989[85]&&(t[c[b]]=k[c[b]],t.extensions[c[b]]=k[c[b]],t.license&&typeof t[c[b]].license==_$_9989[85]&&t[c[b]].license.call(t,t.license))};t.destroy=function(k,c){k.spreadsheet&&(c&&oa.unbind(k),c=t.spreadsheet.indexOf(k.spreadsheet),t.spreadsheet.splice(c,1),
418
+ k.spreadsheet=null,k.jexcel=null,k.innerHTML=_$_9989[3],k.classList.remove(_$_9989[571]),k.classList.remove(_$_9989[348]))};t.version=K;t.helpers=E;t.events=Aa;typeof formula!==_$_9989[13]&&(t.formula=formula);t.editors=function(){var k={},c=function(b,a){return 1==b[a]||b.options&&1==b.options[a]?!0:b[a]==_$_9989[229]||b.options&&b.options[a]==_$_9989[229]?!0:!1};k.createEditor=function(b,a,d,e){e.parent.input.setAttribute(_$_9989[100],!1);b==_$_9989[220]?(b=document.createElement(_$_9989[220]),
419
+ b.type=_$_9989[56],b.value=d):b=document.createElement(_$_9989[20]);b.style.width=a.offsetWidth-2+_$_9989[44];b.style.height=a.offsetHeight-1+_$_9989[44];e.parent.input.appendChild(b);return b};k.createDialog=function(b,a,d,e,f,g){b=k.createEditor(_$_9989[20],b,a,f);b.classList.add(_$_9989[572]);b.classList.add(_$_9989[565]);800>window.innerWidth?(f.parent.input.style.top=_$_9989[144],f.parent.input.style.left=_$_9989[144]):(a=f.parent.input.getBoundingClientRect(),window.innerHeight<a.bottom&&(f.parent.input.style.marginTop=
420
+ -f.parent.input.offsetHeight));return b};k.general=function(){var b={},a=function(e){e=(_$_9989[3]+e)[0];return e==_$_9989[12]||e==_$_9989[573]?!0:!1},d=function(e){if(e.format||e.mask||e.locale){var f={};e.mask?f.mask=e.mask:e.format?f.mask=e.format:(f.locale=e.locale,f.options=e.options);e.decimal&&(f.options||(f.options={}),f.options={decimal:e.decimal});return f}return null};b.updateCell=function(e,f,g,h,l,m){g=parseInt(g);h=parseInt(h);if(e){var n=d(m),p=null;f===_$_9989[3]||a(f)||typeof f===
421
+ _$_9989[14]||(n?(n=jSuites.mask.extract(f,n,!0))&&n.value!==_$_9989[3]&&(p=n.value):1==(!1===l.options.autoCasting||!1===m.autoCasting?!1:!0)&&(m.type==_$_9989[14]||m.type==_$_9989[307]||m.type==_$_9989[306]?(n=jSuites.mask.extract(f,m,!0))&&n.value!==_$_9989[3]&&(p=n.value):jSuites.isNumeric(Number(f))&&(p=Number(f))));null!==p&&(f=p);f=b.parseValue(g,h,f,l,m,e);f instanceof Element||f instanceof HTMLDocument?(e.innerHTML=_$_9989[3],e.appendChild(f)):1==l.parent.config.stripHTML?e.innerText=f:e.innerHTML=
422
+ f;if(null!==p)return p}};b.createCell=b.updateCell;b.openEditor=function(e,f,g,h,l,m){var n=l.parent.input;n.onblur=function(){n.classList.contains(_$_9989[92])||l.closeEditor(e,!0)};if(m.type==_$_9989[14]||m.type==_$_9989[307]||m.type==_$_9989[306])n.classList.add(_$_9989[557]),a(f)||m.inputmode||(m.inputmode=_$_9989[574]);g=null;a(f)||(m.inputmode&&n.setAttribute(_$_9989[96],m.inputmode),(g=d(m))?(m.disabledMaskOnEdition||(m.mask?(m=m.mask.split(_$_9989[263]),n.setAttribute(_$_9989[94],m[0])):m.locale&&
423
+ n.setAttribute(_$_9989[575],m.locale)),g.input=l.parent.input,l.parent.input.mask=g,jSuites.mask.render(f,g,!1)):f&&m.type==_$_9989[306]&&(f*=100));g||(n.innerText=f,jSuites.focus(l.parent.input))};b.closeEditor=function(e,f,g,h,l,m){e=l.parent.input;f=f?e.innerText:_$_9989[3];a(f)?f=f.replace(/(\r\n|\n|\r)/gm,_$_9989[3]):m.type==_$_9989[306]&&(f+=_$_9989[576],e.classList.remove(_$_9989[577]));return f};b.parseValue=function(e,f,g,h,l,m){a(g)&&1==h.parent.config.parseFormulas&&(g=h.executeFormula(g,
424
+ e,f));g instanceof Element||g instanceof HTMLDocument||!l||a(g)||!(f=d(l))||(e=jSuites.mask.render(g,f,!0),m&&f.mask&&(f=f.mask.split(_$_9989[263]),f[1]&&(f[1].match(new RegExp(_$_9989[578],_$_9989[376]))&&(0>g?m.classList.add(_$_9989[579]):m.classList.remove(_$_9989[579])),f[1].match(new RegExp(_$_9989[580],_$_9989[376]))&&0>g&&(e=_$_9989[212]+e+_$_9989[232]))),e&&(g=e));return g};b[_$_9989[51]]=function(e,f){var g;return(g=d(e))?jSuites.mask.render(f,g,!0):e.type==_$_9989[306]?100*parseFloat(f):
425
+ f};return b}();k.text=k.general;k.number=k.general;k.numeric=k.general;k.percent=k.general;k.notes=function(){var b={},a=null;b.updateCell=function(d,e,f,g,h,l){d&&(f=document.createElement(_$_9989[20]),f.classList.add(_$_9989[581]),1==h.parent.config.stripHTML?f.innerText=e:f.innerHTML=e,d.innerHTML=_$_9989[3],d.appendChild(f))};b.createCell=b.updateCell;b.openEditor=function(d,e,f,g,h,l){var m=l&&l.options?l.options:{};m.focus=!0;m.value=e;m.border=!1;m.height=_$_9989[582];m.toolbar=!1;a=k.createDialog(d,
426
+ e,f,g,h,l);a=jSuites.editor(a,m)};b.closeEditor=function(d,e,f,g,h,l){return e?a.getData():_$_9989[3]};return b}();k.dropdown=function(){var b={createCell:function(a,d,e,f,g,h){h.render==_$_9989[583]?a.classList.add(_$_9989[584]):a.classList.add(_$_9989[585]);if(a=b.updateCell(a,d,e,f,g,h))return a},destroyCell:function(a){a.classList.remove(_$_9989[585])},updateCell:function(a,d,e,f,g,h){if(a){var l=b.getItem(a,d,e,f,g,h);l?a.innerHTML=l:d?(d=b.fromLabel(a,d,e,f,g,h),d.length?(l=b.getItem(a,d,e,
427
+ f,g,h),a.innerHTML=l):a.innerHTML=_$_9989[3]):a.innerHTML=_$_9989[3];return d}},openEditor:function(a,d,e,f,g,h){var l=k.createEditor(_$_9989[20],a,d,g),m=h.delimiter||_$_9989[263];h=Object.create(h);h.options||(h.options={});typeof h.filter==_$_9989[85]&&(h.source=h.filter(g.el,a,e,f,h.source));typeof h.filterOptions==_$_9989[85]&&(h=h.filterOptions(g,a,e,f,d,h));e=h.options;h.source&&(e.data=JSON.parse(JSON.stringify(h.source)));c(h,_$_9989[586])&&(e.multiple=!0);c(h,_$_9989[57])&&(e.autocomplete=
428
+ !0);e.format=!0;e.opened=!0;e.width=a.offsetWidth-2;e.onclose=function(){g.closeEditor(a,!0)};c(h,_$_9989[586])?d&&(e.value=(_$_9989[3]+d).split(m)):e.value=d;jSuites.dropdown(l,e)},closeEditor:function(a,d,e,f,g,h){for(var l=g.parent.input.children[0],m=h.delimiter||_$_9989[263],n=l.dropdown.getText(!0),p=l.dropdown.getValue(!0),q=0;q<p.length;q++)!1===b.getItem(a,p[q],e,f,g,h)&&h.source.push({id:p[q],name:n[q]});l.dropdown.close(!0);if(d)return p.join(m)},fromLabel:function(a,d,e,f,g,h){a=h.delimiter||
429
+ _$_9989[263];e=[];f=[];Array.isArray(d)||(d=(_$_9989[3]+d).split(a));for(g=0;g<d.length;g++)f[d[g].trim()]=!0;d=Object.keys(f);!c(h,_$_9989[586])&&1<Object.keys(d).length&&(f=[],f[d[0]]=!0);for(d=0;d<h.source.length;d++)f[h.source[d].name]&&e.push(h.source[d].id);return e.join(a)},getItem:function(a,d,e,f,g,h){f=h.delimiter||_$_9989[263];a=[];e=[];Array.isArray(d)||(d=(_$_9989[3]+d).split(f));for(f=0;f<d.length;f++)e[d[f].trim()]=!0;f=Object.keys(e);!c(h,_$_9989[586])&&1<Object.keys(f).length&&(d=
430
+ [],d[f[0]]=!0,e=d);if(h.source&&typeof h.source[0]!==_$_9989[84])for(d=0;d<h.source.length;d++)f=h.source[d],h.source[d]={id:f,name:f};for(d=0;d<h.source.length;d++)typeof e[h.source[d].id]!==_$_9989[13]&&a.push(h.render==_$_9989[255]?h.source[d].color:h.render==_$_9989[587]?h.source[d].image:h.source[d].name);if(a.length){if(typeof h.render!==_$_9989[13]){for(d=0;d<a.length;d++)e=d,f=a[d],f=h.render==_$_9989[255]?_$_9989[588]+f+_$_9989[589]:h.render==_$_9989[587]?_$_9989[588]+f+_$_9989[589]:h.render==
431
+ _$_9989[583]?_$_9989[591]+(h.source[d].color||_$_9989[590])+_$_9989[592]+f+_$_9989[593]:void 0,a[e]=f;return a.join(_$_9989[3])}for(d=0;d<a.length;d++)a[d]=(_$_9989[3]+a[d]).replace(_$_9989[215],_$_9989[594]);return a.join(_$_9989[295])}return!1}};b[_$_9989[51]]=function(a,d){for(var e=0;e<a.source.length;e++)if(a.source[e].id==d)return a.render==_$_9989[255]?a.source[e].color:a.render==_$_9989[587]?a.source[e].image:a.source[e].name};return b}();k.autocomplete=k.dropdown;k.calendar=function(){var b=
432
+ {},a=null;b.updateCell=function(d,e,f,g,h,l){if(d){f=e;l=b.getFormat(l);0<e&&Number(e)==e&&(f=jSuites.calendar.numToDate(e));g=_$_9989[3]+e;g.substr(4,1)==_$_9989[185]&&g.substr(7,1)==_$_9989[185]?g=!0:(g=g.split(_$_9989[185]),g=4==g[0].length&&g[0]==Number(g[0])&&2==g[1].length&&g[1]==Number(g[1])?!0:!1);g||(g=jSuites.calendar.extractDateFromString(e,l))&&(f=g);if(f=jSuites.calendar.getDateString(f,l))return d.innerText=f,e;d.innerText=_$_9989[3];return _$_9989[3]}};b.createCell=b.updateCell;b.openEditor=
433
+ function(d,e,f,g,h,l){l=Object.create(l);typeof l.filterOptions==_$_9989[85]&&(l=l.filterOptions(h,d,f,g,e,l));f=l.options||{};f.opened=!0;f.onclose=function(m,n){h.closeEditor(d,!0)};typeof l.timepicker!==_$_9989[13]&&(f.time=c(l,_$_9989[595])?!0:!1);typeof f.readonly!==_$_9989[13]&&(f.readonly=f.readonly);f.value=e||null;f.placeholder=f.format;a=k.createEditor(_$_9989[220],d,e,h);jSuites.calendar(a,f);!1===a.calendar.options.readonly&&a.focus()};b.closeEditor=function(d,e,f,g,h){d=a.calendar.close(!0,
434
+ a.value?!0:!1);d=a.value?d:_$_9989[3];if(e)return d};b.getFormat=function(d){return d&&d.format?d.format:d&&d.options&&d.options.format?d.options.format:_$_9989[596]};b[_$_9989[51]]=function(d,e){d=b.getFormat(d);return jSuites.calendar.getDateString(e,d)};return b}();k.color=function(){var b={},a=null;b.updateCell=function(d,e,f,g,h,l){d&&(l.render==_$_9989[597]?(f=document.createElement(_$_9989[20]),f.className=_$_9989[255],f.style.backgroundColor=e,d.innerText=_$_9989[3],d.appendChild(f)):(d.style.color=
435
+ e,d.innerText=e))};b.createCell=b.updateCell;b.openEditor=function(d,e,f,g,h,l){l=Object.create(l);typeof l.filterOptions==_$_9989[85]&&(l=l.filterOptions(h,d,f,g,e,l));l.value=e;l.onclose=function(m,n){h.closeEditor(d,!0)};a=k.createEditor(_$_9989[220],d,e,h);a=jSuites.color(a,l);a.open()};b.closeEditor=function(d,e,f,g,h,l){d=a.close(!0);if(e)return d};b[_$_9989[51]]=function(d,e){d=document.createElement(_$_9989[20]);d.style.width=_$_9989[598];d.style.height=_$_9989[22];d.style.backgroundColor=
436
+ e;return d.outerHTML};return b}();k.checkbox=function(){var b={createCell:function(a,d,e,f,g,h){d=d&&d!=_$_9989[599]&&d!=_$_9989[600]?!0:!1;e=document.createElement(_$_9989[220]);e.type=_$_9989[250];e.checked=d;e.onclick=function(){g.setValue(a,this.checked)};(h&&1==h.readOnly||!g.isEditable())&&e.setAttribute(_$_9989[601],_$_9989[601]);a.innerHTML=_$_9989[3];a.appendChild(e);return d},updateCell:function(a,d){d=d&&d!=_$_9989[599]&&d!=_$_9989[600]?!0:!1;a&&(a.children[0].checked=d);return d},openEditor:function(a,
437
+ d,e,f,g){d=a.children[0].checked?!1:!0;g.setValue(a,d);return!1},closeEditor:function(a,d){return!1}};b[_$_9989[51]]=function(a,d){return 1==d||1==d||d==_$_9989[229]?jSuites.translate(_$_9989[229]):jSuites.translate(_$_9989[599])};return b}();k.radio=function(){var b={createCell:function(a,d,e,f,g,h){a.getAttribute(_$_9989[42]);e=document.createElement(_$_9989[220]);e.type=_$_9989[252];e.checked=1==d||1==d||d==_$_9989[229]?!0:!1;e.onclick=function(){g.setValue(a,!0)};(h&&1==h.readOnly||!g.isEditable())&&
438
+ e.setAttribute(_$_9989[601],_$_9989[601]);a.innerHTML=_$_9989[3];a.appendChild(e)},updateCell:function(a,d,e,f,g){d=1==d||1==d||d==_$_9989[229]||d==_$_9989[602]?!0:!1;a&&(a.children[0].checked=d);if(1==d){a=[];for(var h=0;h<g.options.data.length;h++)f!=h&&g.options.data[h][e]&&a.push({x:e,y:h,value:0});a.length&&g.setValue(a)}return d},openEditor:function(a,d,e,f,g){return!1},closeEditor:function(a,d){return!1}};b[_$_9989[51]]=function(a,d){return 1==d||1==d||d==_$_9989[229]?_$_9989[229]:_$_9989[599]};
439
+ return b}();k.autonumber=function(){var b={},a=null;b.createCell=function(d,e,f,g,h,l){(e=parseInt(e))||0<parseInt(d.innerText)&&(e=parseInt(d.innerText));l.sequence||(l.sequence=0);e?b.isValid(e,f,g,h)||(e=_$_9989[243]):e=l.sequence+1;e>l.sequence&&(l.sequence=e);return d.innerText=e};b.updateCell=b.createCell;b.openEditor=function(d,e,f,g,h,l){a=k.createEditor(_$_9989[220],d,e,h);a.onblur=function(){h.closeEditor(d,!0)};a.focus();a.value=e};b.closeEditor=function(d,e,f,g,h){return e?a.value:_$_9989[3]};
440
+ b.isValid=function(d,e,f,g){for(var h,l=0;l<g.options.data.length;l++)if(h=g.value(e,l),h==d&&l!=f)return!1;return!0};return b}();k.progressbar=function(){var b={},a=null;b.createCell=function(d,e){e=parseInt(e);if(100<e)e=100;else if(!e||0>e)e=0;if(d.children[0]&&d.children[0].tagName==_$_9989[554])var f=d.children[0];else f=document.createElement(_$_9989[20]),f.classList.add(_$_9989[256]),d.innerText=_$_9989[3],d.classList.add(_$_9989[603]),d.appendChild(f);f.style.width=parseInt(e)+_$_9989[576];
441
+ f.setAttribute(_$_9989[264],parseInt(e)+_$_9989[576])};b.destroyCell=function(d){d.classList.remove(_$_9989[603])};b.updateCell=b.createCell;b.openEditor=function(d,e,f,g,h,l){a=k.createEditor(_$_9989[220],d,e,h);a.type=_$_9989[14];a.setAttribute(_$_9989[604],0);a.setAttribute(_$_9989[605],100);a.onblur=function(){h.closeEditor(d,!0)};a.focus();a.value=e};b.closeEditor=function(d,e,f,g,h){return e?a.value:_$_9989[3]};return b}();k.rating=function(){var b={},a=null;b.createCell=function(d,e,f,g,h,
442
+ l){return b.setCell(d,e,l)};b.destroyCell=function(d){d.classList.remove(_$_9989[606])};b.updateCell=b.createCell;b.openEditor=function(d,e,f,g,h,l){a=k.createEditor(_$_9989[220],d,e,h);a.type=_$_9989[14];a.setAttribute(_$_9989[604],0);a.setAttribute(_$_9989[605],5);a.onblur=function(){h.closeEditor(d,!0)};a.focus();a.value=e};b.closeEditor=function(d,e,f,g,h,l){return e?a.value:_$_9989[3]};b.setCell=function(d,e,f){e=parseInt(e);if(5<e)e=5;else if(!e||0>e)e=0;if(d){f=f&&f.color?f.color:_$_9989[579];
443
+ var g=document.createElement(_$_9989[20]);g.setAttribute(_$_9989[264],parseInt(e)+_$_9989[607]);g.classList.add(_$_9989[257]);for(var h=0;h<e;h++){var l=document.createElement(_$_9989[442]);l.className=_$_9989[507];l.style.color=f;l.innerHTML=_$_9989[608];g.appendChild(l)}d.innerHTML=_$_9989[3];d.className=_$_9989[606];d.appendChild(g)}return e};return b}();k.email=function(){var b={createCell:function(a,d,e,f,g,h){a&&(a.children&&a.children[0]&&a.children[0].tagName==_$_9989[561]?e=a.children[0]:
444
+ (e=document.createElement(_$_9989[201]),a.innerText=_$_9989[3],a.appendChild(e),h.options&&h.options.url&&e.setAttribute(_$_9989[609],h.options.url)),e.innerText=d)}};b.updateCell=b.createCell;b.openEditor=function(a,d,e,f,g,h){g.parent.input.classList.add(_$_9989[557]);g.parent.input.onblur=function(){g.closeEditor(a,!0)};g.parent.input.innerText=d;jSuites.focus(g.parent.input)};b.closeEditor=function(a,d,e,f,g){g.parent.input.classList.remove(_$_9989[557]);return d?g.parent.input.innerText.replace(new RegExp(/\n/,
445
+ _$_9989[188]),_$_9989[3]):_$_9989[3]};return b}();k.url=k.email;k.image=function(){var b={},a=null;b.createCell=function(d,e,f,g,h,l){d&&(e?d.children&&d.children[0]&&d.children[0].tagName==_$_9989[610]?d.children[0].src=e:(f=document.createElement(_$_9989[37]),l.render==_$_9989[611]&&f.classList.add(_$_9989[611]),l.options&&(f.style.maxWidth=_$_9989[612],l.options.absolute&&(f.style.position=_$_9989[613]),l.options.width&&(f.style.maxWidth=parseInt(l.options.width)+_$_9989[44]),l.options.height&&
446
+ (f.style.maxHeight=parseInt(l.options.height)+_$_9989[44])),f.src=e,d.innerHTML=_$_9989[3],d.appendChild(f)):d.innerHTML=_$_9989[3])};b.updateCell=b.createCell;b.openEditor=function(d,e,f,g,h,l){(l&&l.options?l.options:{}).value=e;a=k.createDialog(d,e,f,g,h,l);e&&(d=document.createElement(_$_9989[37]),d.src=e,d.classList.add(_$_9989[614]),d.style.width=_$_9989[612],a.appendChild(d));jSuites.image(a,l)};b.closeEditor=function(d,e,f,g,h,l){if(e&&(d=a.children[0]))return d.tagName==_$_9989[610]?d.src:
447
+ _$_9989[3]};b[_$_9989[51]]=function(d,e){return _$_9989[615]+e+_$_9989[616]};return b}();k.html=function(){var b={},a=null;b.createCell=function(d,e){d.classList.add(_$_9989[617]);var f=document.createElement(_$_9989[20]);f.innerHTML=e;d.appendChild(f)};b.updateCell=function(d,e){d&&(d.firstChild.innerHTML=e)};b.destroyCell=function(d){d.classList.remove(_$_9989[617])};b.openEditor=function(d,e,f,g,h,l){var m=l&&l.options?l.options:{};m.focus=!0;m.value=e;m.border=!1;m.height=_$_9989[582];e=k.createDialog(d,
448
+ e,f,g,h,l);a=jSuites.editor(e,m);a.close=function(){h.closeEditor(d,!0)};jSuites.tracking(a,!0)};b.closeEditor=function(d,e,f,g,h,l){jSuites.tracking(a,!1);d=a.getData();if(e)return d};return b}();k.hidden=function(){return{createCell:function(b,a,d,e,f){b.style.display=_$_9989[40];b.innerText=a},updateCell:function(b,a,d,e,f){b&&(b.innerText=a)},openEditor:function(b,a,d,e,f){return!1},closeEditor:function(b,a){return!1}}}();k.tags=function(){var b={},a=null;b.createCell=function(d,e){d.classList.add(_$_9989[618]);
449
+ b.updateCell(d,e)};b.updateCell=function(d,e){d&&(d.innerHTML=e)};b.destroyCell=function(d){d.classList.remove(_$_9989[618])};b.openEditor=function(d,e,f,g,h,l){var m=l&&l.options?l.options:{};m.value=e;a=k.createDialog(d,e,f,g,h,l);d=document.createElement(_$_9989[20]);d.style.margin=_$_9989[22];d.style.marginRight=_$_9989[619];a.appendChild(d);a=jSuites.tags(d,m);d.focus();jSuites.focus(d)};b.closeEditor=function(d,e,f,g,h,l){d=a.getValue();if(e)return d};return b}();k.record=function(){var b={},
450
+ a=null;b.createCell=function(d,e,f,g,h,l){d.classList.add(_$_9989[585]);var m;(m=h.parent.getWorksheetInstance(l.worksheetId))?m.rows?b.updateCell(d,e,f,g,h,l):(d.innerText=_$_9989[243],h.parent.queue.push([h,f,g])):(d.innerText=_$_9989[243],h.parent.queue.push([h,f,g]))};b.destroyCell=function(d){d.classList.remove(_$_9989[585])};b.updateCell=function(d,e,f,g,h,l){d&&(typeof l.worksheetId==_$_9989[13]?d.innerText=_$_9989[243]:d.innerHTML=b.getValue(d,e,f,g,h,l))};b.openEditor=function(d,e,f,g,h,
451
+ l){var m=l.delimiter||_$_9989[263];l=Object.create(l);l.options||(l.options={});typeof l.filter==_$_9989[85]&&(l.source=l.filter(h.el,d,f,g,l.source));typeof l.filterOptions==_$_9989[85]&&(l=l.filterOptions(h,d,f,g,e,l));f=l.options;f.data=b.getSource(h,l);c(l,_$_9989[586])&&(f.multiple=!0);c(l,_$_9989[57])&&(f.autocomplete=!0);f.opened=!0;f.width=d.offsetWidth-2;f.onclose=function(){h.closeEditor(d,!0)};c(l,_$_9989[586])?e&&(f.value=(_$_9989[3]+e).split(m)):f.value=e;a=k.createEditor(_$_9989[20],
452
+ d,e,h);a=jSuites.dropdown(a,f)};b.closeEditor=function(d,e,f,g,h,l){d=l.delimiter||_$_9989[263];f=a.getValue(!0);a.close(!0);if(e)return f.join(d)};b.getValue=function(d,e,f,g,h,l){d=[];if(typeof l.worksheetId==_$_9989[17]&&(h=h.parent.getWorksheetInstance(l.worksheetId))){f=l.worksheetColumn?l.worksheetColumn:0;0<=l.worksheetImage&&(f=l.worksheetImage);if(e==_$_9989[3]||0==e||null==e||void 0==e)return _$_9989[3];e=(_$_9989[3]+e).split(_$_9989[263]);for(g=0;g<e.length;g++){var m=e[g].trim();var n=
453
+ h.name(f);m=h.getRowById(m);n=!1===m?_$_9989[620]:m[n];0<=l.worksheetImage&&(n=_$_9989[621]+n+_$_9989[622]);d.push(n)}return 0<=l.worksheetImage?d.join(_$_9989[3]):d.join(_$_9989[295])}return _$_9989[243]};b.getSource=function(d,e){var f=e.worksheetColumn?e.worksheetColumn:0,g=null;typeof e.worksheetId==_$_9989[17]&&(g=d.parent.getWorksheetInstance(e.worksheetId));if(g){var h,l=[];for(d=0;d<g.rows.length;d++)if(h=g.value(f,d))h={id:g.getRowId(d),name:h},void 0!=e.worksheetImage&&(h.image=g.value(e.worksheetImage,
454
+ d)),l.push(h)}else console.error(_$_9989[623]+e.worksheetId);return l};b[_$_9989[51]]=function(d,e){for(var f=0;f<d.source.length;f++)if(d.source[f].id==e)return d.render==_$_9989[255]?d.source[f].color:d.render==_$_9989[587]?d.source[f].image:d.source[f].name};return b}();return k}();typeof jQuery!==_$_9989[13]&&function(k){k.fn.jspreadsheet=k.fn.jexcel=function(c){var b=k(this)[_$_9989[51]](0);if(b.jspreadsheet){if(typeof arguments[0]==_$_9989[14])var a=arguments[0],d=2;else a=0,d=1;return b.jspreadsheet[a][c].apply(b.jspreadsheet[a],
455
+ Array.prototype.slice.call(arguments,d))}return t(k(this)[_$_9989[51]](0),arguments[0])}}(jQuery);return t});