qcell-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/13ed1c65978f4020fa6a.png +0 -0
- package/dist/1b1e25d6e625a94444f7.png +0 -0
- package/dist/1b3e50ff32fd8cd301f8.png +0 -0
- package/dist/1e4ab48d0ebabfe3d60c.png +0 -0
- package/dist/2063e67670eabbe08666.png +0 -0
- package/dist/262f7047c15f67938eb0.png +0 -0
- package/dist/278ab06fc1417e702a7e.png +0 -0
- package/dist/2d6f55fd9854663f7aa0.png +0 -0
- package/dist/3332fcf7e2e919a02b8d.png +0 -0
- package/dist/5b35a39c5f877ba43637.png +0 -0
- package/dist/5bc8277cf199d850ab1a.png +0 -0
- package/dist/64a176ed8c98be3354b3.png +0 -0
- package/dist/669597e9324aec578be1.gif +0 -0
- package/dist/7461bf5c81f039b5349d.png +0 -0
- package/dist/82f655c470657e263722.png +0 -0
- package/dist/8b0fe626ee1f018a8d0f.png +0 -0
- package/dist/9b9e5601b8e92cfc15ed.png +0 -0
- package/dist/ae8a9da394dac0b9613c.png +0 -0
- package/dist/b332c225924811955b70.png +0 -0
- package/dist/bdff706f5f3c937e20c8.png +0 -0
- package/dist/c0a2f0a86ad43bccd6d6.png +0 -0
- package/dist/c60516270777bee173fe.png +0 -0
- package/dist/cde3eb37d2e1d732a7e3.png +0 -0
- package/dist/cf17885bda2090955715.png +0 -0
- package/dist/deb42a8f9bdab8258db4.png +0 -0
- package/dist/e06bce03725e8eae52ff.png +0 -0
- package/dist/e4949d095544f9f6339d.png +0 -0
- package/dist/f5b9e4600b993d7c15a3.png +0 -0
- package/dist/f7f48d547e176aef16e5.png +0 -0
- package/dist/index.js +1 -0
- package/package.json +41 -0
- package/src/QCELL/css/qcell.css +735 -0
- package/src/QCELL/css/qcell_layout.css +1 -0
- package/src/QCELL/css/qcell_scrollbar.css +1328 -0
- package/src/types/index.d.ts +41 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var r="object"==typeof exports?e(require("react")):e(t.react);for(var a in r)("object"==typeof exports?exports:t)[a]=r[a]}}(this,(t=>(()=>{var e={395:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var r={config:{locale:"kr"},def:{key:{ENTER:13,ESC:27,BACKSPACE:8,SPACE:32,TAB:9,SHIFT:16,CTRL:17,ALT:18,PAGEUP:33,PAGEDOWN:34,LEFT:37,UP:38,RIGHT:39,DOWN:40,F2:113,C:67,V:86,DELETE:46},which:{LEFT_BUTTON:1,MIDDLE_BUTTON:2,RIGHT_BUTTON:3}},util:{},st:{},$:void 0===window.$?window.jQuery.noConflict():window.$,_:void 0===window._?window._.noConflict():window._,s:window.s,moment:window.moment,log:function(t,e,r,a){var o=new Date;console.log("["+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds()+"]["+e+"]["+("err"===t?"ERROR][":"LOG][")+r+"()] "+a)},hasInstance:function(t,e){return!!t.storage.containsKey(e)},getInstance:function(t,e){return t.storage.containsKey(e)?t.storage.get(e):null},getInstanceIDs:function(t){return t.storage.keys()},deleteInstance:function(t,e){return!!t.storage.containsKey(e)&&(t.storage.get(e).destroy(),t.storage.remove(e),!0)},deleteAllInstances:function(t){var e=!0;return t.storage.each((function(r){!1===t.deleteInstance(r)&&(e=!1)})),e},License:{key:"RightTechLicense",value:"U2FsdGVkX19T7Nd3e2J04HRtOdB87u87FU5w0bYRWmQ="},checkLicense:function(t,e){var a=window.CryptoJS.AES.decrypt(t,window.CryptoJS.AES.decrypt(r.License.value,r.License.key).toString(window.CryptoJS.enc.Utf8)).toString(window.CryptoJS.enc.Utf8);return""!==a&&a===e},decryptLicense:function(t){return window.CryptoJS.AES.decrypt(t,window.CryptoJS.AES.decrypt(r.License.value,r.License.key).toString(window.CryptoJS.enc.Utf8)).toString(window.CryptoJS.enc.Utf8)}};r.st.asc=function(t,e){return t-e},r.st.desc=function(t,e){return e-t},r.st.eventProcess=function(t){var e=t.data.target;e&&e.tag()&&e.tag().indexOf("QBOX")>-1&&e._defaultAction.apply(e,arguments)},Array.prototype.indexOf=function(t,e){return r._.indexOf(this,t,e)},Array.prototype.lastIndexOf=function(t,e){return r._.lastIndexOf(this,t,e)},Array.prototype.swap=function(t,e){var r=this[t];this[t]=this[e],this[e]=r,r=null},Array.prototype.RT_move=function(t,e){if(t>this.length||e>this.length||t<0||e<0)return!1;var r=this.splice(t,1)[0];return this.splice(e,0,r),!0},Array.prototype.RT_insert=function(t,e){this.splice(t,0,e)},Array.prototype.RT_insertArray=function(t,e){for(var a=r._.clone(e).reverse(),o=0,i=a.length;o<i;o++)this.RT_insert(t,a[o])},Array.prototype.RT_clear=function(){for(;this.length;)this.pop()},Array.prototype.RT_clone=function(){return r._.clone(this)},Array.prototype.RT_union=function(t){for(var e=[],a=0;a<t.length;a++)-1===r._.indexOf(this,t[a],!0)&&e.push(t[a]);return this.concat(e).sort(r.st.asc)},Array.prototype.RT_intersection=function(t){for(var e=[];this.length>0&&t.length>0;)this[0]<t[0]?this.shift():(this[0]>t[0]||e.push(this.shift()),t.shift());return e},Array.prototype.RT_difference=function(t){for(var e=0,a=t.length;e<a;e++){var o=r._.indexOf(this,t[e],!0);o>-1&&this.splice(o,1)}return this},r.util._extendSortMultiple=function(){if(arguments[1]instanceof Array){for(var t=arguments[1],e=[],a=[],o=[],i=0;i<t.length;i++)e.push(t[i][0]),a.push(void 0===t[i][1]||"asc"!==t[i][1]&&"desc"!==t[i][1]?"asc":t[i][1]),o.push(void 0===t[i][2]||"string"!==t[i][2]&&"number"!==t[i][2]?"string":t[i][2]);return function(t,i,s){for(var l=0,n=0,c=e.length;0===n&&l<c;)n=r.util._extendSort(e[l],a[l],o[l])(t,i,s),l++;return n}}if("string"==typeof arguments[1]||"number"==typeof arguments[1]){var s=arguments[1],l=void 0===arguments[2]||"asc"!==arguments[2]&&"desc"!==arguments[2]?"asc":arguments[2],n=void 0===arguments[3]||"string"!==arguments[3]&&"number"!==arguments[3]?"string":arguments[3];return function(t,e,a){return r.util._extendSort(s,l,n)(t,e,a)}}},r.util._extendSort=function(t,e,a){return"asc"===e?e=1:"desc"===e&&(e=-1),"number"===a?function(a,o){var i,s;return null===(i=a[t])&&(i=""),null===(s=o[t])&&(s=""),void 0!==i&&r._.isString(i)&&(i=r.util.replaceAll(i,",","")),void 0!==s&&r._.isString(s)&&(s=r.util.replaceAll(s,",","")),i=Number(a[t]),s=Number(o[t]),isNaN(i)&&(i=""),isNaN(s)&&(s=""),void 0===i&&void 0!==s?(""-s)*e:void 0!==i&&void 0===s?(i-"")*e:(i-s)*e}:function(r,a){var o=r[t],i=a[t];return null===o&&(o=""),null===i&&(i=""),void 0===o&&void 0!==i?(""<i?-1:"">i?1:0)*e:void 0!==o&&void 0===i?(o<""?-1:o>""?1:0)*e:(o<i?-1:o>i?1:0)*e}},Array.prototype.RT_sortBy=function(){return this.sort(r.util._extendSortMultiple.apply(null,arguments))},r.util.RT_sortBy=function(t){return t.sort(r.util._extendSortMultiple.apply(null,arguments))},r.util.rAF=null,r.util.cAF=null,function(){for(var t=0,e=["ms","moz","webkit","o"],a=0;a<e.length&&!window.requestAnimationFrame;++a)window.requestAnimationFrame=window[e[a]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[a]+"CancelAnimationFrame"]||window[e[a]+"CancelRequestAnimationFrame"];r.util.rAF=window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(e){var r=(new Date).getTime(),a=Math.max(0,2-(r-t)),o=window.setTimeout((function(){e(r+a)}),a);return t=r+a,o},r.util.cAF=window.cancelAnimationFrame?function(t){window.cancelAnimationFrame(t)}:function(t){window.clearTimeout(t)}}(),r.util.inherit=function(t,e){t.prototype=new e},r.util.addMethod=function(t,e,r){var a=t[e];t[e]=function(){return r.length===arguments.length?r.apply(this,arguments):"function"==typeof a?a.apply(this,arguments):void 0}},r.util.checkType=function(t,a){var o=!1;switch(a){case"array":o=!!r._.isArray(t);break;case"boolean":o="boolean"==typeof t;break;case"element":o=!!r._.isElement(t);break;case"function":o=!!r._.isFunction(t);break;case"jquery":o=!(!t||!t.jquery);break;case"number":o="number"==typeof t;break;case"object":o="object"==e(t);break;case"string":o="string"==typeof t;break;default:o=!1}return o},r.util.addClass=function(t,e){if(!(arguments.length<2)&&e&&("string"==typeof e||r._.isArray(e))&&(r._.isElement(t)&&(t=[t]),r._.isArray(t)))for(var a="string"==typeof e?e.split(/\s+/):e,o=0,i=t.length;o<i;o++){var s=t[o];if(r._.isElement(s))if(s.className||1!==a.length){for(var l=" "+s.className+" ",n=0,c=a.length;n<c;n++)~l.indexOf(" "+a[n]+" ")||(l+=a[n]+" ");s.className=r.$.trim(l)}else s.className=e;s=null}},r.util.removeClass=function(t,e){if(!(arguments.length<1)&&(e&&("string"==typeof e||r._.isArray(e))||void 0===e)&&(r._.isElement(t)&&(t=[t]),r._.isArray(t)))for(var a,o,i="string"==typeof e?(e||"").split(/\s+/):e,s=/[\n\t\r]/g,l=0,n=t.length;l<n;l++){if(a=t[l],r._.isElement(a))if(e){o=(" "+a.className+" ").replace(s," ");for(var c=0,d=i.length;c<d;c++)o=o.replace(" "+i[c]+" "," ");a.className=r.$.trim(o)}else a.className="";a=null}},r.util.hasClass=function(t,e){if(r._.isElement(t)&&e&&("string"==typeof e||r._.isArray(e))){var a=" "+("string"==typeof e?e:e.join().replace(/,/gi," "))+" ";if(1===t.nodeType&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\t\r\n\f]/g," ").indexOf(a)>-1)return!0}return!1},r.util.bind=function(t,e,a){return!!r._.isArray(r._.isElement(t)?[t]:t)&&(r._.each(t,(function(t){t.addEventListener?t.addEventListener(e,a,!1):t.attachEvent&&t.attachEvent(e,a)})),!0)},r.util.addMethod(r.util,"textContent",(function(t){return null==t?"":void 0===t.textContent||null===t.textContent?t.innerText:t.textContent})),r.util.addMethod(r.util,"textContent",(function(t,e){null!=t&&(void 0===t.textContent||null===t.textContent?t.innerText=e:t.textContent=e)})),r.util.empty=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},r.util.findCSSRule=function(t){return r.$.stylesheet(t).rules()},r.util.createCSSRule=function(t,e){r.$.stylesheet(t).css(null).css(e)},r.util.removeCSSRule=function(t){r.$.stylesheet(t).css(null)},r.util._CheckMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return r.util._CheckMobile.Android()||r.util._CheckMobile.BlackBerry()||r.util._CheckMobile.iOS()||r.util._CheckMobile.Opera()||r.util._CheckMobile.Windows()}},r.util.isMobile=function(){return r.util._CheckMobile.any()},r.util._dragElement=function(t){var e=document.getElementById(t),a=0,o=0,i=0,s=0;function l(t){(t=t||window.event).preventDefault(),a=i-t.clientX,o=s-t.clientY,i=t.clientX,s=t.clientY,e.style.top=e.offsetTop-o+"px",e.style.left=e.offsetLeft-a+"px"}function n(){document.onmouseup=null,document.onmousemove=null}e.onmousedown=function(t){t.target.classList.contains(r.QCELL.def.css.EXCLUDE_DRAGABLE)||((t=t||window.event).preventDefault(),i=t.clientX,s=t.clientY,document.onmouseup=n,document.onmousemove=l)}},r.util.replaceAll=function(t,e,r){return t.split(e).join(r)},r.util.strbyte={getByteLength:function(t){if(null===t||0===t.length)return 0;for(var e=0,r=0;r<t.length;r++)e+=this.charByteSize(t.charAt(r));return e},cutByteLength:function(t,e){if(null===t||0===t.length)return 0;for(var r=0,a=t.length,o=0;o<t.length;o++){if((r+=this.charByteSize(t.charAt(o)))===e){a=o+1;break}if(r>e){a=o;break}}return t.substring(0,a)},charByteSize:function(t){if(null===t||0===t.length)return 0;var e=t.charCodeAt(0);return e<=127?1:e<=2047?2:e<=65535?3:4}},r.Base=function(t){if(!1===r.util.checkType(t,"object"))return null;this._initGridProperties=function(t){var e,a=r._.clone(t);if(void 0===t.columns)return a;for(a.columns=[],e=0;e<t.columns.length;e++)a.columns.push(r._.clone(t.columns[e]));return a};var e="",a=["array","boolean","element","function","jquery","number","object","string"],o=t,i=this._initGridProperties(t),s=new window._QHashtable,l=new window._QHashtable,n=new window._QHashtable;r._.each(a,(function(t){l.put(t,new window._QHashSet)})),l.put("all",new window._QHashSet),this.log=function(){console.log.apply(console,arguments)},this.getProperties=function(){return o},this.setPropertiesColumn=function(t){o.columns=t},this.getInitProperties=function(){o.columns=[];for(var t=0;t<i.columns.length;t++)o.columns.push(r._.clone(i.columns[t]));return i},this.destroy=function(){var t=this;this._clearAttrs(),this.clear(),l.clear(),n.clear(),r._.each(r._.keys(t),(function(e){delete t[e]})),a=o=s=l=t=null},this.clear=function(){l.each((function(t,e){e.clear()})),s.clear()},this.removeAttr=function(t){if(n.containsKey(t)){var e=n.get(t);if(l.containsKey(e)){var r=l.get(e);return r&&r.contains(t)&&r.remove(t),n.remove(t),l.get("all").remove(t),s.remove(t),!0}}return!1},r.util.addMethod(this,"attr",(function(t){return s.get(t)})),r.util.addMethod(this,"attr",(function(t,e,o){try{if(null==e||r.util.checkType(e,o))if(s.containsKey(t)){if(r._.indexOf(a,o)>-1&&l.get(o).contains(t))return s.put(t,e),!0}else if(r._.indexOf(a,o)>-1)return l.get(o).add(t),s.put(t,e),l.get("all").add(t),n.put(t,o),!0;return!1}catch(t){console.log(t.message)}})),r.util.addMethod(this,"attrList",(function(){return l.get("all").values().sort()})),r.util.addMethod(this,"attrList",(function(t){return r._.indexOf(a,t,!0)>-1?l.get(t).values().sort():[]})),r.util.addMethod(this,"tag",(function(){return e})),r.util.addMethod(this,"tag",(function(t){return!!r._.isString(t)&&(e=t,!0)})),this._initTag(),this._initMOL(),this._init(t)},r.Base.prototype._initMOL=function(){r.util.addMethod(this,"_parent",(function(){return this.attr("parent")})),r.util.addMethod(this,"_parent",(function(t){}))},r.Base.prototype._initTag=function(t){this.tag("QBOX.Base")},r.Base.prototype._init=function(t){this._initAttrs(t),this._setParent()},r.Base.prototype._initAttrs=function(t){this.attr("id",t.id,"string"),this.attr("parentid",t.parentid,"string"),this.attr("parent",null,"object"),this.attr("prev_param",t,"object")},r.Base.prototype._setParent=function(){},r.Base.prototype._clearAttrs=function(){},r.Element=function(t){if(!1===r.util.checkType(t,"object"))return null;r.Base.call(this,t)},r.util.inherit(r.Element,r.Base),r.Element.prototype._initTag=function(t){this.tag("QBOX.Element")},r.Element.prototype._init=function(t){r.Base.prototype._init.call(this,t)},r.Element.prototype._initAttrs=function(t){r.Base.prototype._initAttrs.call(this,t),this.attr("element",null,"element")},r.Element.prototype._setElement=function(t){return!!r._.isElement(t)&&(this.attr("element",t,"element"),!0)},r.QCELL={name:"QCELL",log:function(t,e,a){r.log(t,this.name,e,a)},storage:new window._QHashtable,module:{},colconfig:{},config:{locale:r.config.locale},def:{msg:{},areaname:{},cssprefix:"",css:{},rowgroup:{},type:{}},st:{replaceText2HeaderText:function(t){return r._.escape(t).replace(/(\n|\r\n)/g,"<br>")}},_create:function(t){var e,a=null,o=-1;if(void 0===window[r.License.key])o=0;else if("demo"===window[r.License.key])o=2;else if(r._.isArray(window[r.License.key]))window[r.License.key].forEach((function(t){""!==(e=window.CryptoJS.AES.decrypt(t,window.CryptoJS.AES.decrypt(r.License.value,r.License.key).toString(window.CryptoJS.enc.Utf8)).toString(window.CryptoJS.enc.Utf8))&&e===window.location.hostname&&(o=1)}));else if(r._.isString(window[r.License.key])){var i=window[r.License.key];""!==(e=window.CryptoJS.AES.decrypt(i,window.CryptoJS.AES.decrypt(r.License.value,r.License.key).toString(window.CryptoJS.enc.Utf8)).toString(window.CryptoJS.enc.Utf8))&&e===window.location.hostname&&(o=1)}else o=0;switch(r._s=o,this.module){case"basic":a=r.QCELL.BasicQCELL.create(t);break;case"normal":a=r.QCELL.NormalQCELL.create(t)}if(null!==a){if(a._createCols()&&a._create())return this.storage.put(t.id,a),a=null,!0;a.destroy()}return a=null,!1},_hasInstance:function(t){try{return r.hasInstance(this,t)}catch(t){this.log("err","hasInstance",t.message)}},_getInstance:function(t){try{return r.getInstance(this,t)}catch(t){this.log("err","getInstance",t.message)}},_getInstanceIDs:function(){try{return r.getInstanceIDs(this)}catch(t){this.log("err","getInstanceIDs",t.message)}},_deleteInstance:function(t){try{return r.deleteInstance(this,t)}catch(t){this.log("err","deleteInstance",t.message)}},_deleteAllInstances:function(){try{return r.deleteAllInstances(this)}catch(t){this.log("err","deleteAllInstances",t.message)}}},r.QCELL.create=function(t){return this._create(t)},r.QCELL.hasInstance=function(t){return this._hasInstance(t)},r.QCELL.getInstance=function(t){return this._getInstance(t)},r.QCELL.getInstanceIDs=function(){return this._getInstanceIDs()},r.QCELL.deleteInstance=function(t){return this._deleteInstance(t)},r.QCELL.deleteAllInstances=function(){return this._deleteAllInstances()},r.QCELL.def.areaname=r._.extend(r.QCELL.def.areaname,{ROOT:"root",PANEL:"panel",CONTAINER:"container",PAGINATIONPANEL:"paginationpanel",SHEETPANEL:"sheetpanel",INPUTFORM:"inputform",VIEWPORT:"viewport",FOOTERROWHEADER:"frowheader",FOOTER:"footer",EDGEHEADER:"edgeheader",ROWHEADER:"rowheader",COLHEADER:"colheader",HSCROLLBAR:"hscrollbar",VSCROLLBAR:"vscrollbar",PAGINATION:"pagination",GROUPUI:"group-ui",COLSTYLEEDITOR:"colStyleEditor",STATIC:"static",GRANDTOTAL:"grandtotal",DATEPICKER:"datepicker"}),r.QCELL.def.cssprefix="rt-qc-",r.QCELL.def.css=r._.extend(r.QCELL.def.css,{ROOT:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROOT,PANEL:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PANEL,CONTAINER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.CONTAINER,PAGINATIONPANEL:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATIONPANEL,SHEETPANEL:r.QCELL.def.cssprefix+r.QCELL.def.areaname.SHEETPANEL,INPUTFORM:r.QCELL.def.cssprefix+r.QCELL.def.areaname.INPUTFORM,INPUTFORM_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.INPUTFORM+"-inner",INPUTFORM_HEADER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.INPUTFORM+"-header",INPUTFORM_ITEM:r.QCELL.def.cssprefix+r.QCELL.def.areaname.INPUTFORM+"-item",PAGINATION_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-inner",VIEWPORT:r.QCELL.def.cssprefix+r.QCELL.def.areaname.VIEWPORT,VIEWPORT_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.VIEWPORT+"-inner",FOOTERROWHEADER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.FOOTERROWHEADER,FOOTERROWHEADER_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.FOOTERROWHEADER+"-inner",FOOTER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.FOOTER,FOOTER_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.FOOTER+"-inner",EDGEHEADER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.EDGEHEADER,EDGEHEADER_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.EDGEHEADER+"-inner",EDGEHEADER_CELL_CHECKBOX:r.QCELL.def.cssprefix+r.QCELL.def.areaname.EDGEHEADER+"-cell-checkbox",EDGEHEADER_CELL_RADIO:r.QCELL.def.cssprefix+r.QCELL.def.areaname.EDGEHEADER+"-cell-radio",ROWHEADER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER,ROWHEADER_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-inner",ROWHEADER_CELL_CHECKBOX:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-cell-checkbox",ROWHEADER_CELL_RADIO:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-cell-radio",ROWHEADER_STATE_INIT:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-state-init",ROWHEADER_STATE_INSERT:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-state-insert",ROWHEADER_STATE_UPDATE:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-state-update",ROWHEADER_STATE_DELETE:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-state-delete",ROWHEADER_CUSTOM:r.QCELL.def.cssprefix+r.QCELL.def.areaname.ROWHEADER+"-custom",COLHEADER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLHEADER,COLHEADER_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLHEADER+"-inner",COLHEADER_CELL_CHECKBOX:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLHEADER+"-cell-checkbox",COLHEADER_CHECKBOX:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLHEADER+"-checkbox",COLHEADER_RADIO:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLHEADER+"-radio",COLHEADER_AREA:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLHEADER+"-area",HSCROLLBAR:r.QCELL.def.cssprefix+r.QCELL.def.areaname.HSCROLLBAR,HSCROLL_THUMB:r.QCELL.def.cssprefix+"hsthumb",VSCROLLBAR:r.QCELL.def.cssprefix+r.QCELL.def.areaname.VSCROLLBAR,VSCROLL_THUMB:r.QCELL.def.cssprefix+"vsthumb",CELL:r.QCELL.def.cssprefix+"cell",CELL_FOCUS:r.QCELL.def.cssprefix+"cell-focus",CELL_SELECT:r.QCELL.def.cssprefix+"cell-select",CELL_HIGHLIGHTREPEAT:r.QCELL.def.cssprefix+"cell-highlightrepeat",CELL_VIEWPORT:r.QCELL.def.cssprefix+"cell-viewport",CELL_FOOTERROWHEADER:r.QCELL.def.cssprefix+"cell-frowheader",CELL_FOOTER:r.QCELL.def.cssprefix+"cell-footer",CELL_EDGEHEADER:r.QCELL.def.cssprefix+"cell-edgeheader",CELL_ROWHEADER:r.QCELL.def.cssprefix+"cell-rowheader",CELL_COLHEADER:r.QCELL.def.cssprefix+"cell-colheader",CELL_HEADERROWS:r.QCELL.def.cssprefix+"cell-headerrows",CELL_FROZENROWS:r.QCELL.def.cssprefix+"cell-frozenrows",CELL_NORMALROWS:r.QCELL.def.cssprefix+"cell-normalrows",CELL_FROZENBOTTOMROWS:r.QCELL.def.cssprefix+"cell-frozenbottomrows",CELL_FROZENBOTTOMROWS_PANEL:r.QCELL.def.cssprefix+"cell-frozenbottomrows-panel",CELL_FOOTERROWS:r.QCELL.def.cssprefix+"cell-footerrows",CELL_HEADERCOLS:r.QCELL.def.cssprefix+"cell-headercols",CELL_FROZENCOLS:r.QCELL.def.cssprefix+"cell-frozencols",CELL_NORMALCOLS:r.QCELL.def.cssprefix+"cell-normalcols",COLHEADER_DRAG_AND_DROP_AREA:r.QCELL.def.cssprefix+"colheaderdndarea",COLMOVE_SHADOW:r.QCELL.def.cssprefix+"colmoveshadow",COLMOVELINE:r.QCELL.def.cssprefix+"colmoveline",GROUPTREEUI:r.QCELL.def.cssprefix+"gtui",GROUPTREEUI_ARROW:r.QCELL.def.cssprefix+"gtui-arrow",GROUPTREEUI_ARROW_EXPAND:r.QCELL.def.cssprefix+"gtui-arrow-expand",GROUPTREEUI_ARROW_COLLAPSE:r.QCELL.def.cssprefix+"gtui-arrow-collapse",GROUPTREEUI_FOLDER:r.QCELL.def.cssprefix+"gtui-folder",GROUPTREEUI_FOLDER_EXPAND:r.QCELL.def.cssprefix+"gtui-folder-expand",GROUPTREEUI_FOLDER_COLLAPSE:r.QCELL.def.cssprefix+"gtui-folder-collapse",GROUPTREEUI_DOT:r.QCELL.def.cssprefix+"gtui-dot",GROUPTREEUI_HEADER:r.QCELL.def.cssprefix+"gtui-header",GROUPTREEUI_FOOTER:r.QCELL.def.cssprefix+"gtui-footer",SORT_AREA:r.QCELL.def.cssprefix+"sortarea",SORT_ASC:r.QCELL.def.cssprefix+"sort-asc",SORT_DESC:r.QCELL.def.cssprefix+"sort-desc",MULTI_SORT_ORDER:r.QCELL.def.cssprefix+"multisort-order",SORTABLE:r.QCELL.def.cssprefix+"sortable",COLRESIZE_AREA:r.QCELL.def.cssprefix+"colresizearea",COLRESIZE_AREA_HOVER:r.QCELL.def.cssprefix+"colresizearea-hover",COLRESIZELINE:r.QCELL.def.cssprefix+"colresizeline",COLRESIZETOOLTIP:r.QCELL.def.cssprefix+"colresizetooltip",EMPTYMESSAGE:r.QCELL.def.cssprefix+"emptymessasge",PAGINATION_UI_CENTER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-ui-center",PAGINATION_UI_RIGHT:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-ui-right",PAGINATION_NAV:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav",PAGINATION_NAV_BTN:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-btn",PAGINATION_NAV_INPUT:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-input",PAGINATION_NAV_SELECT:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-select",PAGINATION_NAV_INFO:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-info",PAGINATION_NAV_PAGER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-pager",PAGINATION_NAV_PAGER_NOW:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-pager-now",PAGINATION_NAV_PAGER_SKIP:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-pager-skip",PAGINATION_NAV_EXTEND_MOVE:r.QCELL.def.cssprefix+r.QCELL.def.areaname.PAGINATION+"-nav-extend-move",CELL_ROWHEADER_CHECKBOX:r.QCELL.def.cssprefix+"cell-rowheader-checkbox",CELL_ROWHEADER_RADIO:r.QCELL.def.cssprefix+"cell-rowheader-radio",FILTER_AREA:r.QCELL.def.cssprefix+"filterarea",FILTER_AREA_ADJUST:r.QCELL.def.cssprefix+"filterarea-adjust",FILTER_AREA_HOVER:r.QCELL.def.cssprefix+"filterarea-hover",FILTER_TITLE_AREA:r.QCELL.def.cssprefix+"filter-title-area",FILTER_TITLE_SPAN:r.QCELL.def.cssprefix+"filter-title-span",FILTER_UI_AREA:r.QCELL.def.cssprefix+"filter-ui-area",FILTER_UI_BTN:r.QCELL.def.cssprefix+"filter-ui-btn",FILTER_UI_CLOSE:r.QCELL.def.cssprefix+"filter-ui-close",FILTER_UI_ADDOPERATOR:r.QCELL.def.cssprefix+"filter-ui-addoperator",FILTER_UI_ADDOPERATOR_CLOSE:r.QCELL.def.cssprefix+"filter-ui-addoperator_close",EXCLUDE_DRAGABLE:r.QCELL.def.cssprefix+"exclude-dragable",CONTEXTMENU:r.QCELL.def.cssprefix+"contextmenu",CONTEXTMENU_AREA:r.QCELL.def.cssprefix+"contextmenu-area",CONTEXTMENU_ROOT:r.QCELL.def.cssprefix+"contextmenu-root",CONTEXTMENU_MENU:r.QCELL.def.cssprefix+"contextmenu-menu",CONTEXTMENU_SUB_MENU:r.QCELL.def.cssprefix+"contextmenu-sub-menu",CONTEXTMENU_ITEM:r.QCELL.def.cssprefix+"contextmenu-item",CONTEXTMENU_ITEM_IMG:r.QCELL.def.cssprefix+"contextmenu-item-img",CONTEXTMENU_ITEM_LABEL:r.QCELL.def.cssprefix+"contextmenu-item-label",CONTEXTMENU_ITEM_SUB:r.QCELL.def.cssprefix+"contextmenu-item-sub",CONTEXTMENU_DIVINE:r.QCELL.def.cssprefix+"contextmenu-divine",CONTEXTMENU_HOVER:r.QCELL.def.cssprefix+"contextmenu-hover",CONTEXTMENU_DISABLE:r.QCELL.def.cssprefix+"contextmenu-disable",COLSEARCH_AREA:r.QCELL.def.cssprefix+"colsearch-area",COLSEARCH_AREA_HOVER:r.QCELL.def.cssprefix+"colsearch-area-hover",COLSEARCH_UI_AREA:r.QCELL.def.cssprefix+"colsearch-ui-area",COLSEARCH_UI_BTN:r.QCELL.def.cssprefix+"colsearch-ui-btn",COLSEARCH_UI_CLOSE:r.QCELL.def.cssprefix+"colsearch-ui-close",PROGRESS_UI:r.QCELL.def.cssprefix+"progress-ui",TOOLTIP:r.QCELL.def.cssprefix+"tooltip",GROUPUI:r.QCELL.def.cssprefix+r.QCELL.def.areaname.GROUPUI,GROUPUI_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.GROUPUI+"-inner",UI_ICON:r.QCELL.def.cssprefix+"ui-icon",UI_ICON_CLOSE:r.QCELL.def.cssprefix+"ui-icon-close",EDITOR_AREA:r.QCELL.def.cssprefix+"coleditor-area",EDITOR_AREA_HOVER:r.QCELL.def.cssprefix+"coleditor-area-hover",EDITOR_UI_STYLE:r.QCELL.def.cssprefix+"coleditor-ui-style",COLSTYLEEDITOR:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLSTYLEEDITOR,COLSTYLEEDITOR_WRAP:r.QCELL.def.cssprefix+r.QCELL.def.areaname.COLSTYLEEDITOR+"-wrap",STATIC_ROW:r.QCELL.def.cssprefix+r.QCELL.def.areaname.STATIC+"-row",GRANDTOTAL:r.QCELL.def.cssprefix+r.QCELL.def.areaname.GRANDTOTAL+"-row",TYPE_DATEPICKER:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+"-type",SHEETPANEL_INNER:r.QCELL.def.cssprefix+r.QCELL.def.areaname.SHEETPANEL+"-inner",SHEETPANEL_INNER_SPAN:r.QCELL.def.cssprefix+r.QCELL.def.areaname.SHEETPANEL+"-inner-span",REMOVE_AREA:r.QCELL.def.cssprefix+"removearea"}),r.QCELL.def.rowgroup=r._.extend(r.QCELL.def.rowgroup,{FROZEN:1,NORMAL:2,FROZENBOTTOM:3}),r.QCELL.module="basic",r.QCELL.BasicQCELL=function(t){if(!1===r.util.checkType(t,"object"))return null;r.Element.call(this,t)},r.util.inherit(r.QCELL.BasicQCELL,r.Element),r.QCELL.BasicQCELL.prototype._initMOL=function(){r.Element.prototype._initMOL.call(this),r.util.addMethod(this,"_rows",(function(){return this.attr("rows")})),r.util.addMethod(this,"_rows",(function(t){return!!r._.isNumber(t)&&(this.attr("rows",t,"number"),!0)})),r.util.addMethod(this,"_cols",(function(){return this.attr("cols")})),r.util.addMethod(this,"_cols",(function(t){return!!r._.isNumber(t)&&(this.attr("cols",t,"number"),!0)})),r.util.addMethod(this,"_idx",(function(t,e){return this._idx(t,e,"current")})),r.util.addMethod(this,"_idx",(function(t,e,r){try{return this._getIdxInfo(e,t)[r]}catch(t){return-1}})),r.util.addMethod(this,"_idx",(function(t,e,r,a){try{return this._getIdxInfo(e,t)[r]=a,!0}catch(t){return!1}})),r.util.addMethod(this,"_focusCell",(function(t){var e=parseInt(t.getAttribute("data-row")),r=parseInt(t.getAttribute("data-col"));return this._focusCell(e,r,t)})),r.util.addMethod(this,"_focusCell",(function(t,e){return this._focusCell(t,e,this._getCellDOM(t,e))})),r.util.addMethod(this,"_focusCell",(function(t,e,a){if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var o=this._findNextCell(t,e,"up");t=o.row,e=o.col,a=this._getCellDOM(t,e)}if(this._updateIdx("focus",t,e)){this._clearFocusCSS(),r._.isElement(a)&&this._addFocusStyleClass(a);var i=this._getCellDOM(t,e);if(r._.isElement(i)&&r.util.hasClass(i,r.QCELL.def.css.CELL)){var s=r.QCELL.def.css;if("0"===i.getAttribute("tabindex")&&i.focus(),this._updateIdx("cursor",t,e),r.util.hasClass(i,s.CELL)){var l=parseInt(i.getAttribute("data-row")),n=parseInt(i.getAttribute("data-col"));if(r.util.hasClass(i,s.CELL_VIEWPORT))switch(this.attr("selectmode")){case"rows":void 0!==window.event&&!0===window.event.ctrlKey||this._clearSelection(),this._selectRow(l);break;case"row":this._clearSelection(),this._selectRow(l);break;case"cols":void 0!==window.event&&!0===window.event.ctrlKey||this._clearSelection(),this._selectCol(n);break;case"col":this._clearSelection(),this._selectCol(n);break;default:this._clearSelection(),this._selectCell(l,n)}}}return!0}return!1})),r.util.addMethod(this,"_headerCellValue",(function(t,e){return this.attr("headertext")[e][t]})),r.util.addMethod(this,"_headerCellValue",(function(t,e,a){try{var o=this._getCellDOM(t,e);return a=void 0===a?"":a,this.attr("headertext")[e][t]=a,r._.isElement(o)&&(o.innerHTML=this._getHeaderCellSpan(a,t,e)),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._headerCellValue",t.message),!1}})),r.util.addMethod(this,"_hiddenHeaderCellValue",(function(t,e){if(this.attr("hiddenheadertext").length>0)for(var r=0;r<this.attr("hiddenheadertext").length;r++)if(this.attr("hiddenheadertext")[r].key===e)return this.attr("hiddenheadertext")[r].title[t];return null})),r.util.addMethod(this,"_hiddenHeaderCellValue",(function(t,e,a){try{if(a=void 0===a?"":a,this.attr("hiddenheadertext").length>0)for(var o=0;o<this.attr("hiddenheadertext").length;o++)if(this.attr("hiddenheadertext")[o].key===e)return this.attr("hiddenheadertext")[o].title[t]=a,!0;return!1}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._hiddenHeaderCellValue",t.message),!1}})),r.util.addMethod(this,"_dataCellValue",(function(t,e){return this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]})),r.util.addMethod(this,"_dataCellValue",(function(t,e,a){try{var o=this._getCellDOM(t,e);return this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=a,r._.isElement(o)&&r.util.textContent(o,void 0===a?"":a),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._dataCellValue",t.message),!1}})),r.util.addMethod(this,"_cellValue",(function(t,e){var r=this.attr("headerrows"),a=this.attr("rows"),o=this.attr("headercols"),i=this.attr("cols");return t>=0&&t<r&&e>=o&&e<i?this._headerCellValue(t,e):t>=r&&t<a&&e>=o&&e<i?this._dataCellValue(t,e):void 0})),r.util.addMethod(this,"_cellValue",(function(t,e,r){var a=this.attr("headerrows"),o=this.attr("rows"),i=this.attr("headercols"),s=this.attr("cols");return t>=0&&t<a&&e>=i&&e<s?this._headerCellValue(t,e,r):t>=a&&t<o&&e>=i&&e<s&&this._dataCellValue(t,e,r)}))},r.QCELL.BasicQCELL.prototype._initTag=function(){this.tag("QBOX.QCELL.BasicQCELL")},r.QCELL.BasicQCELL.prototype._init=function(t){r.Element.prototype._init.call(this,t)},r.QCELL.BasicQCELL.prototype._initAttrs=function(t){r.Element.prototype._initAttrs.call(this,t),this.removeAttr("parent"),this.attr("locale",r.QCELL.config.locale,"string"),this.attr("msg",r.QCELL.def.msg[this.attr("locale")],"object"),this.attr("width",t.width,"string"),this.attr("height",t.height,"string"),this.attr("lineheight",3,"number"),this._initAttr("rowheight",t.rowheight,"object"),this.attr("dynamicrowheight",new window._QHashtable,"object"),this.attr("headercolwidth",50,"number"),this.attr("colwidths",[],"array"),this.attr("colwidthsperpixel",[],"array"),this.attr("scrollbarwidth",17,"number"),this.attr("layoutsize",{root:{},panel:{},sheetpanel:{},container:{},edgeheader:{},rowheader:{},colheader:{},viewport:{},footerrowheader:{},footer:{},hscrollbar:{},vscrollbar:{}},"object"),this.attr("percentwidth",t.width.indexOf("%")>-1,"boolean"),this.attr("percentheight",t.height.indexOf("%")>-1,"boolean"),this.attr("percentcolwidth",!1,"boolean"),this.attr("qcellcols",[],"array");for(var e=0;e<t.columns.length;e++)void 0!==t.columns[e].style&&void 0===t.columns[e].style_backup&&(t.columns[e].style_backup=r._.clone(t.columns[e].style));this._initAttr("colsprops",t.columns,"array"),this._initAttr("hiddencolsprops",t.hiddencolumns,"array"),this.attr("colkeys",[],"array"),this.attr("colids",[],"array"),this.attr("colkeysinfo",new window._QHashtable,"object"),this.attr("colidsinfo",{},"object"),this.attr("rows",0,"number"),this.attr("cols",0,"number"),this.attr("idxinfo",{cursor:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},drag:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},click:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},focus:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},dblclick:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},selected:{row:new window._QHashtable,col:new window._QHashtable},style:{row:new window._QHashtable,col:new window._QHashtable},hover:{row:new window._QHashtable,col:new window._QHashtable}},"object"),this.attr("syncinfo",{row:new window._QHashtable,col:new window._QHashtable},"object"),this._initAttr("selectmode",t.selectmode,"string"),this.attr("eventparam",{target:this},"object"),this.attr("mousedown",!1,"boolean"),this.attr("usereventinfo",r._.clone(t.events),"object"),this.attr("dragging",!1,"boolean"),this.attr("hdhandle",null,"number"),this.attr("vdhandle",null,"number"),this.attr("hdcount",0,"number"),this.attr("vdcount",0,"number"),this.attr("colmove",!1,"boolean"),this.attr("colmoveexecution",!1,"boolean"),this.attr("colheaderdndarea",null,"jquery"),this.attr("colmoveshadow",null,"jquery"),this.attr("colmoveline",null,"jquery"),this.attr("colresize",!1,"boolean"),this.attr("colresizearea",null,"jquery"),this.attr("colresizeline",null,"jquery"),this.attr("colresizetooltip",null,"jquery"),this.attr("sortinfo",[],"array"),this.attr("defaultsortarea",null,"jquery"),this.attr("dataindexpool",new window._QHashtable,"object"),this.attr("filterarea",null,"jquery"),this.attr("filteruiarea",null,"jquery"),this.attr("filteruivisible",!1,"boolean"),this.attr("headerrows",0,"number"),this.attr("headercols",0,"number"),this.attr("headertext",[],"array"),this.attr("hiddenheadertext",{},"object"),this._initAttr("rowheaders",t.rowheaders,"array"),this._initAttr("rowheaderstitle",t.rowheaderstitle,"array"),this._initAttr("rowheaderssort",t.rowheaderssort,"array"),this._initAttr("rowheaderstitlekey",t.rowheaderstitlekey,"array"),this._initAttr("rowheaderoptions",t.rowheaderoptions,"array"),this._initAttr("frozencols",t.frozencols,"number"),this._initAttr("frozenrows",t.frozenrows,"number"),this._initAttr("frozenbottomrows",t.frozenbottomrows,"number"),this._initAttr("frozenbottomstyle",t.frozenbottomstyle,"string"),this._initAttr("makefrozenbottomdata",t.makefrozenbottomdata,"boolean"),this._initAttr("highlightrepeat",t.highlightrepeat,"number"),this._initAttr("merge",r._.clone(t.merge),"object"),this.attr("merge_header_info",[],"array"),this.attr("merge_data_info",[],"array"),this.attr("footerrows",0,"number"),this.attr("parent",null,"element"),this.attr("elementpool",new window._QHashtable,"object"),this.attr("cellmatrix",new window._QHashtable,"object"),this.attr("focuscell",null,"element"),this.attr("currentdata",[],"array"),void 0===t.data&&(t.data={type:"object",input:[]}),this._initAttr("data",t.data,"object"),this._initAttr("original",t.original,"boolean"),this._initAttr("origindata",[],"array"),this._initAttr("originstate",{i:[],d:[]},"object"),this.attr("rowheaderdata",[],"array"),this.attr("accumulatedwheel",0,"number"),this.attr("hsinfo",{},"object"),this.attr("vsinfo",{},"object"),this.attr("adjustrow",!1,"boolean"),this.attr("adjustcol",!1,"boolean"),this._initHSInfo(),this._initVSInfo(),this.attr("timeoutid",null,"number"),this._initAttr("copy",t.copy,"boolean"),this._initAttr("paste",t.paste,"boolean"),this.attr("onloadurl",t.onloadurl,"string"),this.attr("onloadurlparam",t.onloadurlparam,"object"),this.attr("onloadurlsucesscallback",t.onloadurlsucesscallback,"function"),this.attr("onloadurlfailcallback",t.onloadurlfailcallback,"function"),this.attr("paginationinfo",t.pagination,"object"),this.attr("pagesyncorgindata",void 0!==t.pagination&&void 0!==t.pagination.syncorgindata&&t.pagination.syncorgindata,"boolean"),this.attr("groupinfo",{showpanel:t.group.showpanel,type:t.group.type,expand:r._.clone(t.group.expand),header:r._.clone(t.group.header),footer:r._.clone(t.group.footer)},"object"),this.attr("groupstate",{grouped:!1,type:"normal",data:[],columnsinfo:new window._QHashtable,nodes:new window._QHashtable,treeuirows:[],treeuirownodes:[],headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[]},"object"),this.attr("treestate",{grouped:!1,type:"tree",data:[],columnsinfo:new window._QHashtable,nodes:new window._QHashtable,treeuirows:[],treeuirownodes:[],headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[],state:{}},"object"),this.attr("hierachystate",{grouped:!1,type:"tree",data:[],columninfo:{},nodes:new window._QHashtable,headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[],state:{}},"object"),this.attr("useGroupUI",t.useGroupUI,"boolean"),this.attr("groupuiinfo",[],"array"),this.attr("emptymessage",t.emptymessage,"string"),this.attr("useemptymessage",t.useemptymessage,"boolean"),this.attr("contextmenu",t.contextmenu,"object"),this.attr("contextmenuheader",t.contextmenu.header,"object"),this.attr("contextmenudata",t.contextmenu.data,"object"),this.attr("contextmenudisable",[],"array"),this.attr("contextmenuheaderdisable",[],"array"),this.attr("contextmenudatadisable",[],"array"),this.attr("contextmneuui",null,"jquery"),this.attr("contextmenuid","","string"),this.attr("colsearcharea",null,"jquery"),this.attr("colsearchuiarea",null,"jquery"),this.attr("colsearchuivisible",!1,"boolean"),this.attr("colsearchinfo",{},"object"),this.attr("tooltipvisible",!1,"boolean"),this.attr("isscrollleft",!1,"boolean"),this.attr("colstyleeditorarea",null,"jquery"),this.attr("colstyleeditorui",null,"jquery"),this.attr("colstyleeditor",{},"object"),this.attr("groupdata",t.groupdata,"object"),this._initAttr("bottompanel",t.bottompanel,"boolean"),this._initAttr("bottompanelheight",t.bottompanelheight,"number"),this._initAttr("bottompanelstyle",t.bottompanelstyle,"string"),this.attr("bottompanelcallback",t.bottompanelcallback,"function"),this.attr("rowheadercheckboxclick",[],"array"),this._initAttr("excelexportwithformat",t.excelexportwithformat,"boolean"),this.attr("beforepastecallback",t.beforepastecallback,"function"),this.attr("additionaldataindex",t.additionaldataindex,"array"),void 0!==t.rowheaderwidth&&r._.isNumber(t.rowheaderwidth)&&this.attr("headercolwidth",t.rowheaderwidth,"number"),this._initAttr("usetooltipinellipsis",t.usetooltipinellipsis,"boolean"),this._initAttr("policy",t.policy,"string"),"sequence"===this.attr("policy")?this.attr("usedynamic",!0,"boolean"):(this.attr("useall","dynamic"!==this.attr("policy"),"boolean"),!0===r.QCELL.isForceDynamic&&(this.attr("useall",!1,"boolean"),r.QCELL.isForceDynamic=!1)),this.attr("isfirstsort",!1,"boolean"),this._initAttr("useexcelstylepanel",t.useexcelstylepanel,"boolean"),this.attr("filteruiwidth",void 0===t.filteruiwidth?0:t.filteruiwidth,"number"),this.attr("presentseqatfooter",t.presentseqatfooter,"boolean"),this._initAttr("disabletooltip",t.disabletooltip,"boolean"),this.attr("copypastemode",t.copypastemode,"string"),this.attr("losefocusonleave",t.losefocusonleave,"boolean")},r.QCELL.BasicQCELL.prototype._initAttr=function(t,e,a){this.attr(t,void 0===e?r.QCELL.config[t]:e,a)},r.QCELL.BasicQCELL.prototype._setParent=function(){var t=document.getElementById(this.attr("parentid"));this.attr("parent",r._.isElement(t)?t:null,"element")},r.QCELL.BasicQCELL.prototype._clearAttrs=function(){var t=this.attr("id");r._.each(this.attr("qcellcols"),(function(t){t.destroy()})),r._.isElement(this.attr("parent"))&&r.$(this.attr("parent")).empty(),r.$(window).off(this._getUserEventName("resize")),r.$(document).off("mouseup."+t).off("mousemove."+t)},r.QCELL.BasicQCELL.prototype._rebuild=function(t){try{var e=this.getCustomPanel(),a=this.getUserEventInfo(),o=[],i=[];if(!0===this.attr("isResizing")){for(var s=this.attr("headercols");s<this.attr("cols");s++){var l=r._.clone(this._getQCellCol(s).getProperties());l.width=this._getColWidth(s)+"",o.push(l)}i=r._.clone(this.attr("sortinfo"))}this._clearAttrs(),this._removeContextMenu(),void 0!==t&&!0===t&&(this.attr("bRebuildWithPrevData",!0,"boolean"),this.attr("bLoadurlstop",!0,"boolean"),this.attr("arrBackupData",r._.clone(this.attr("currentdata")),"array"),this.attr("objBackupIdx",r._.clone(this.attr("idxinfo")),"object"),this.attr("arrBackupDeletedrowsdata",r._.clone(this.attr("deletedrowsdata")),"array"));var n=!0===this.attr("useInitProp")||!0===this.attr("useRemoveUI")&&!0===this.attr("useRebuildAPI")?this.getInitProperties():this.getProperties();return!0===this.attr("isResizing")&&(n.columns=o),this._init(n),this.attr("usereventinfo",a,"object"),this._createCols(),this._create(),this.attr("bRebuildWithPrevData",!1,"boolean"),!0===t&&null!==this.attr("prevcontextmenu")&&this._setContextMenu(this.attr("prevcontextmenu")),i.length&&(this.attr("sortinfo",i,"array"),this._updateSingleSortIcon(i)),this.resetCustomPanel(e),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._refresh",t.message),!1}},r.QCELL.BasicQCELL.prototype._refresh=function(){try{return this._refreshRs(),this._refreshCs(),this._refreshDRs(),this._refreshDCs(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._refresh",t.message),!1}},r.QCELL.BasicQCELL.QCellCol=function(t){if(!1===r.util.checkType(t,"object"))return null;r.Base.call(this,t)},r.util.inherit(r.QCELL.BasicQCELL.QCellCol,r.Base),r.util.addMethod(r.QCELL.BasicQCELL.QCellCol,"create",(function(t){return new r.QCELL.BasicQCELL.QCellCol(this._adjustProps(t))})),r.util.addMethod(r.QCELL.BasicQCELL.QCellCol,"create",(function(t,e){return this._create(t,e)})),r.QCELL.BasicQCELL.QCellCol.prototype._initMOL=function(){r.Base.prototype._initMOL.call(this),r.util.addMethod(this,"_styleInfo",(function(t,e){return this.attr("styleinfo")[t][e]})),r.util.addMethod(this,"_styleInfo",(function(t,e,r){this.attr("styleinfo")[t][e]=r}))},r.QCELL.BasicQCELL.QCellCol.prototype._initTag=function(){this.tag("QBOX.QCELL.BasicQCELL.QCellCol")},r.QCELL.BasicQCELL.QCellCol.prototype._init=function(t){r.Base.prototype._init.call(this,t),this._initStyleInfo(),this._initStyle()},r.QCELL.BasicQCELL.QCellCol.prototype._initAttrs=function(t){r.Base.prototype._initAttrs.call(this,t),this.removeAttr("parentid"),this.attr("parent",t.parent,"object"),this.attr("styleinfo",{header:{classname:"",rule:"",css:{}},data:{classname:"",rule:"",css:{}}},"object"),this._initAttr("width",t.width,"string"),this._initAttr("title",t.title,"array"),this._initAttr("key",t.key,r._.isFunction(this.attr("parent").attr)&&"array"===this.attr("parent").attr("data").type?"number":"string"),this._initAttr("styleclassname",t.styleclassname,"object"),this._initAttr("options",t.options,"object"),this._initAttr("format",t.options.format,"object"),this._initAttr("formatstatic",{},"object"),this._initAttr("datatype",t.datatype,"string"),this.attr("sortinfoofcol",{sorttype:"none",order:0},"object"),this.attr("colsortarea",null,"jquery"),this._initAttr("tooltipcallback",t.options.tooltipcallback,"function");var e=!r._.isUndefined(t.options.wordwrap)&&t.options.wordwrap,a=!r._.isUndefined(t.options.required)&&t.options.required;if(this.attr("type","static","string"),void 0!==t.style.header&&"center"===t.style.header["text-align"]&&delete t.style.header["text-align"],void 0!==r.QCELL.config.excludeStyle){var o;if(void 0!==r.QCELL.config.excludeStyle.header&&void 0!==t.style.header)for(o in r.QCELL.config.excludeStyle.header)t.style.header[o]===r.QCELL.config.excludeStyle.header[o]&&delete t.style.header[o];if(void 0!==r.QCELL.config.excludeStyle.data&&void 0!==t.style.data)for(o in r.QCELL.config.excludeStyle.data)t.style.data[o]===r.QCELL.config.excludeStyle.data[o]&&delete t.style.data[o]}if(this.attr("usedatatextalign",!1,"boolean"),void 0!==t.style){if(void 0!==t.style_backup){var i="";if(void 0!==t.style_backup.header)for(i in t.style.header={},t.style_backup.header)t.style.header[i]=t.style_backup.header[i];if(void 0!==t.style_backup.data)for(i in t.style.data={},t.style_backup.data)t.style.data[i]=t.style_backup.data[i]}void 0!==t.style.header&&void 0!==t.style.header["text-align"]&&(this.attr("header_text_algin",t.style.header["text-align"],"string"),delete t.style.header["text-align"]),void 0!==t.style.data&&void 0!==t.style.data["text-align"]&&(this.attr("data_text_algin",t.style.data["text-align"],"string"),this.attr("usedatatextalign",!0,"boolean"),delete t.style.data["text-align"])}null===this.attr("header_text_algin")&&this._initAttr("header_text_algin",void 0,"string"),null===this.attr("data_text_algin")&&this._initAttr("data_text_algin",void 0,"string"),this._initAttr("style",t.style,"object"),this._initAttr("editor",t.editor,"boolean"),this.attr("colstyleeditorvisivle",!1,"boolean"),this.attr("colstyleeditorbdata","QCELL_COL_DATA","string"),this.attr("colstyleeditordata","","string");var s=!!r._.isUndefined(t.options.mergecol)||t.options.mergecol;this._initAttr("mergecol",s,"boolean"),this.attr("mergeref",t.options.mergeref,"string"),this.attr("exportdatatype",void 0===t.options?"":t.options.exportdatatype,"string"),this.attr("colremovearea",null,"jquery"),this._initAttr("removecallback",t.options.removecallback,"function"),this._initAttr("topmove",t.topmove,"boolean"),this._initAttr("move",t.move,"boolean"),this._initAttr("resize",t.resize,"boolean"),this._initAttr("sort",t.sort,"boolean"),this._initAttr("filter",t.filter,"boolean"),this._initAttr("search",t.search,"boolean"),this._initAttr("tooltip",t.tooltip,"boolean"),this._initAttr("required",a,"boolean"),this._initAttr("remove",t.remove,"boolean"),this._initAttr("wordwrap",e,"boolean")},r.QCELL.BasicQCELL.QCellCol.prototype._initAttr=function(t,e,a){this.attr(t,void 0===e?r.QCELL.colconfig[t]:e,a)},r.QCELL.colconfig=r._.extend(r._.clone(r.QCELL.colconfig),{title:[""],type:"static",width:"100px",key:"",styleclassname:{header:"",data:""},style:{},move:!1,resize:!1,sort:!1,search:!1,tooltip:!1,editor:!1,format:{type:"",rule:"",origin:"",callback:null},datatype:"string",options:{},header_text_align:"center",data_text_align:"left",remove:!1}),r.QCELL.BasicQCELL.QCellCol._create=function(t,e){return this._checkRequiredProps(t,e)&&this._checkValidationOfProps(t,e)?new r.QCELL.BasicQCELL.QCellCol(this._adjustProps(e)):null},r.QCELL.BasicQCELL.QCellCol._checkRequiredProps=function(t,e){var a=!0;if(r._.isObject(e)&&!1===r._.isArray(e)){for(var o=["id","parent"],i=0,s=o.length;i<s;i++){var l=o[i];if(void 0===e[l]){r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+l+'" property.'),a=!1;break}}o.RT_clear(),o=null}else r.QCELL.log("err","QCELL.create",'Please check "columns['+t+']"\'s type is "object".'),a=!1;return a},r.QCELL.BasicQCELL.QCellCol._checkValidationOfProps=function(t,e){var a=!0;return r.$.each(e,(function(e,o){return a=r.QCELL.BasicQCELL.QCellCol._checkValidationOfProp(t,e,o)})),a},r.QCELL.BasicQCELL.QCellCol._checkValidationOfProp=function(t,e,a){var o=!0,i=!0,s="";switch(e){case"width":s="string",!1===r._.isString(a)?"width"===e&&!1!==r._.isNumber(a)||(o=!1):"width"===e&&a.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0&&(r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "number" or "px" or "%" as value.'),o=!1);break;case"datatype":if(s="string",!1===r._.isString(a))o=!1;else switch(a){case"string":case"number":break;default:r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "string" or "number" as value.'),o=!1,i=!1}break;case"move":case"resize":case"editor":case"search":case"tooltip":s="boolean",!1===r._.isBoolean(a)&&(o=!1);break;case"styleclassname":s="object",r._.isArray(a)||!1===r._.isObject(a)?o=!1:!1===r._.every(r._.keys(a),(function(t){return"header"===t||"data"===t}))?(r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "header" or "data" as key.'),o=!1,i=!1):r.$.each(a,(function(a,s){!1===r._.isString(s)&&(r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+"."+a+'" property. This property\'s type is "string".'),o=!1,i=!1)}));break;case"style":s="object",r._.isArray(a)||!1===r._.isObject(a)?o=!1:!1===r._.every(r._.keys(a),(function(t){return"header"===t||"data"===t}))?(r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "header" or "data" as key.'),o=!1,i=!1):r.$.each(a,(function(a,s){!1===r._.isObject(s)&&(r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+"."+a+'" property. This property\'s type is "object".'),o=!1,i=!1)}));break;case"options":if(void 0!==a&&!1===r._.isObject(a)||!0===r._.isArray(a))s="object",o=!1;else if(void 0!==a.format&&null!==a.format)if(void 0!==a.format.type&&!1===r._.isString(a.format.type))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.type"\'s type is "'+s+'".'),o=!1,i=!1;else switch(a.format.type){case"date":void 0===a.format.origin&&!1===r._.isString(a.format.origin)?(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.origin"\'s type is "'+s+'".'),o=!1,i=!1):void 0===a.format.rule&&!1===r._.isString(a.format.rule)&&(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.rule"\'s type is "'+s+'".'),o=!1,i=!1);break;case"number":case"string":void 0===a.format.rule&&!1===r._.isString(a.format.rule)&&(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.rule"\'s type is "'+s+'".'),o=!1,i=!1);break;case"custom":void 0===a.format.callback&&!1===r._.isFunction(a.format.origin)&&(s="callback",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.origin"\'s type is "'+s+'".'),o=!1,i=!1)}}return!1===o&&i&&r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'"\'s type is "'+s+'".'),o},r.QCELL.BasicQCELL.QCellCol._adjustProps=function(t){return r._.assign(r._.clone(r.QCELL.colconfig),r._.mapValues(t,(function(t,e){return r.QCELL.BasicQCELL.QCellCol._adjustProp(e,t)})))},r.QCELL.BasicQCELL.QCellCol._adjustProp=function(t,e){var a=null;if(void 0===e)a=this._getDefaultValueOfProp(t);else switch(t){case"width":a=r._.isNumber(e)?e+"":e;break;case"move":case"resize":case"sort":case"search":case"tooltip":case"editor":a=!0===r._.isBoolean(e)&&e;break;case"styleclassname":a={header:void 0===e.header?this._getDefaultValueOfProp("styleclassname").header:e.header,data:void 0===e.data?this._getDefaultValueOfProp("styleclassname").data:e.data};break;case"styler":a=!0===r._.isFunction(e)?e:null;break;default:a=e}return a},r.QCELL.BasicQCELL.QCellCol._getDefaultValueOfProp=function(t){var e=r.QCELL.colconfig[t];return r._.isArray(e)||r._.isObject(e)&&!1===r._.isArray(e)?r._.clone(e):e},r.QCELL.BasicQCELL.QCellCol.prototype._setSortInfoOfCol=function(t,e){var r=!1;return"asc"!==t&&"desc"!==t&&"none"!==t||e>-1&&(this.attr("sortinfoofcol",{sorttype:t,order:e},"object"),r=!0),r},r.QCELL.BasicQCELL.QCellCol.prototype._initStyleInfo=function(){var t,e,a=r.QCELL.def,o=",",i=".",s=a.cssprefix+this.attr("parent").attr("id")+"-"+this.attr("id")+"-";t=s+"header-style",this._styleInfo("header","classname",t),this._styleInfo("header","rule",i+t+o+i+a.css.CELL_COLHEADER+i+t),e=s+"data-style",this._styleInfo("data","classname",e),this._styleInfo("data","rule",i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_FROZENROWS+i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_NORMALROWS+i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_FROZENBOTTOMROWS+i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_FROZENBOTTOMROWS_PANEL+i+e+o+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_FROZENROWS+i+e+o+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_NORMALROWS+i+e+o+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_FROZENBOTTOMROWS+i+e+o+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_FROZENBOTTOMROWS_PANEL+i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_FROZENROWS+i+a.css.CELL_HIGHLIGHTREPEAT+i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_NORMALROWS+i+a.css.CELL_HIGHLIGHTREPEAT+i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_FROZENBOTTOMROWS+i+a.css.CELL_HIGHLIGHTREPEAT+i+e+o+i+a.css.CELL_FROZENCOLS+i+a.css.CELL_FROZENBOTTOMROWS_PANEL+i+a.css.CELL_HIGHLIGHTREPEAT+i+e+o+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_FROZENROWS+i+a.css.CELL_HIGHLIGHTREPEAT+i+e+o+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_NORMALROWS+i+a.css.CELL_HIGHLIGHTREPEAT+i+e+o+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_FROZENBOTTOMROWS+i+a.css.CELL_HIGHLIGHTREPEAT+i+e+i+a.css.CELL_NORMALCOLS+i+a.css.CELL_FROZENBOTTOMROWS_PANEL+i+a.css.CELL_HIGHLIGHTREPEAT+i+e)},r.QCELL.BasicQCELL.QCellCol.prototype._initStyle=function(){return this._removeStyle("all")&&this._setStyle(this.attr("style").header,"header")&&this._setStyle(this.attr("style").data,"data")},r.QCELL.BasicQCELL.QCellCol.prototype._getStyle=function(t){return"header"===t||"data"===t?r._.clone(this._styleInfo(t,"css")):{}},r.QCELL.BasicQCELL.QCellCol.prototype._setStyle=function(t,e){var a=!1;return"header"!==e&&"all"!==e||(r._.size(t)>0&&(this.attr("usercolstyle_header",t,"object"),this._styleInfo("header","css",r._.extend(r._.clone(this._styleInfo("header","css")),t)),r.util.createCSSRule(this._styleInfo("header","rule"),this._styleInfo("header","css"))),a=!0),"data"!==e&&"all"!==e||(r._.size(t)>0&&(this.attr("usercolstyle_data",t,"object"),this._styleInfo("data","css",r._.extend(r._.clone(this._styleInfo("data","css")),t)),r.util.createCSSRule(this._styleInfo("data","rule"),this._styleInfo("data","css"))),a=!0),a},r.QCELL.BasicQCELL.QCellCol.prototype._removeStyle=function(t){var e=!1;return"header"!==t&&"all"!==t||(r._.size(this._styleInfo("header","css"))>0&&(r.util.removeCSSRule(this._styleInfo("header","rule")),this._styleInfo("header","css",{})),e=!0),"data"!==t&&"all"!==t||(r._.size(this._styleInfo("data","css"))>0&&(r.util.removeCSSRule(this._styleInfo("data","rule")),this._styleInfo("data","css",{})),e=!0),e},r.QCELL.BasicQCELL.QCellCol.prototype._initUserColStyle=function(){null!==this.attr("usercolstyle_header")&&(this._removeStyle("header"),this._setStyle(this.attr("usercolstyle_header"),"header")),null!==this.attr("usercolstyle_data")&&(this._removeStyle("data"),this._setStyle(this.attr("usercolstyle_data"),"data"))},r.QCELL.BasicQCELL.QCellCol.prototype.getStyleClassName=function(t){return this.attr("styleclassname")[t]},r.QCELL.BasicQCELL.QCellCol.prototype.setStyleClassName=function(t,e){return this.attr("styleclassname")[t]=e,!0},r.QCELL.BasicQCELL.QCellCol.prototype.setSortInfoOfCol=function(t,e){return this._setSortInfoOfCol(t,e)},r.QCELL.BasicQCELL.QCellCol.prototype.getStyleInfo=function(t,e){return this._styleInfo(t,e)},r.QCELL.BasicQCELL.QCellCol.prototype.initStyle=function(){return this._initStyle()},r.QCELL.BasicQCELL.QCellCol.prototype.getStyle=function(t){return this._getStyle(t)},r.QCELL.BasicQCELL.QCellCol.prototype.setStyle=function(t,e){return this._setStyle(t,e)},r.QCELL.BasicQCELL.QCellCol.prototype.removeStyle=function(t){return this._removeStyle(t)},r.QCELL.BasicQCELL.prototype.onKeyWidth=function(t,e,a){var o=this,i=this.getColWidth(a),s=t===r.def.key.LEFT?-20:20;setTimeout((function(){o.setColWidth(a,i+s),setTimeout((function(){r.$(o._getCellDOM(e,a)).focus()}))}))},r.QCELL.BasicQCELL.prototype.onKeyDown=function(t){try{var e,a,o,i=t.target,s=t.keyCode,l=r.QCELL.def.css,n=this._idx("row","focus"),c=this._idx("col","focus"),d=this;if((this.attr("useall")||this.attr("usetreeall"))&&!r.$(t.target).hasClass("rt-qc-ui-selectmenu-button"))if(s!==r.def.key.LEFT&&s!==r.def.key.RIGHT||t.ctrlKey){if(s===r.def.key.UP||s===r.def.key.DOWN){if(o=this.attr("vsinfo"),r.$(t.target).hasClass("rt-qc-radio-cell-style"))return;if(!0===o.bVScroll)return s===r.def.key.UP?(e=o.nTop+3*o.nLengthPerRow)>0&&(e=0):(e=o.nTop-3*o.nLengthPerRow)>o.nLength&&(e=o.nLength),setTimeout((function(){d.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",e)}),10),t.preventDefault(),void t.stopPropagation();t.preventDefault(),t.stopPropagation()}else if(s===r.def.key.TAB)return}else{if(a=this.attr("hsinfo"),r.$(t.target).hasClass("rt-qc-radio-cell-style"))return;if(!0===a.bHScroll)return s===r.def.key.LEFT?(e=a.nLeft+a.nLengthPerCol)>0&&(e=0):(e=a.nLeft-a.nLengthPerCol)>a.nLength&&(e=a.nLength),setTimeout((function(){d.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",e)}),100),t.preventDefault(),void t.stopPropagation();t.preventDefault(),t.stopPropagation()}if(-1===n&&-1===c&&this.getRows()-this.getRows("header")<=0&&(s===r.def.key.LEFT||s===r.def.key.RIGHT)&&!0===(a=this.attr("hsinfo")).bHScroll)return s===r.def.key.LEFT?(e=a.nLeft+a.nLengthPerCol)>0&&(e=0):(e=a.nLeft-a.nLengthPerCol)>a.nLength&&(e=a.nLength),void d.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",e);if(r.util.hasClass(i,l.TYPE_INPUT_EDIT_STYLE)&&(i=i.parentElement),(this.attr("useall")||this.attr("usetreeall"))&&r.util.hasClass(i,"rt-qc-container")&&-1!==n&&-1!==c&&(i=this._getCellDOM(n,c)),r.util.hasClass(i,l.CELL)){if(n>=this.attr("headerrows")&&c>=this.attr("headercols")){if(this._getQCellCol(c).attr("resize")&&!0===t.ctrlKey&&(s===r.def.key.LEFT||s===r.def.key.RIGHT))return void this.onKeyWidth(s,n,c);switch(s){case r.def.key.LEFT:this._leftKey(t.shiftKey,t.ctrlKey),t.ctrlKey&&this.onKeyWidth(s,n,c);break;case r.def.key.RIGHT:this._rightKey(t.shiftKey,t.ctrlKey),t.ctrlKey&&this.onKeyWidth(s,n,c);break;case r.def.key.UP:this._upKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case r.def.key.DOWN:this._downKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case r.def.key.PAGEUP:this._pageUpKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case r.def.key.PAGEDOWN:this._pageDownKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case r.def.key.TAB:!0===this._tabKey(t.shiftKey,t.ctrlKey)&&(t.stopPropagation(),t.preventDefault());break;case r.def.key.C:this.attr("copy")&&t.ctrlKey&&(this.onCopy(),t.stopPropagation());break;case r.def.key.V:this.attr("paste")&&t.ctrlKey&&(this.onPaste(),t.stopPropagation())}}}else r.util.hasClass(i,l.PAGINATION_NAV)&&r.util.hasClass(i,l.PAGINATION_NAV_INPUT)&&s===r.def.key.ENTER&&this._movePage(Number(r.$(i).val()))}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onKeyDown",t.message)}},r.QCELL.BasicQCELL.prototype.onCopy=function(){var t=this.attr("selectmode"),e=this._getSelectedRows(),a=this._getSelectedCols();if("focus"===this.attr("copypastemode")&&(t="cell",(e=[]).push(this.getIdx("row","focus")),(a=[]).push(this.getIdx("col","focus"))),e.length>0||a.length>0){var o,i,s,l,n="";switch(t){case"cell":case"cells":var c=!1;if(this._idx("row","focus","current")!==e[e.length-1]&&this._idx("col","focus","current")!==a[a.length-1]&&(c=!0),c)alert("다중 선택 범위에서는 클립보드 복사를 사용할 수 없습니다.");else{for(e.sort(r.st.asc),a.sort(r.st.asc),o=0;o<e.length;o++)for(s=e[o],o>0&&(n+="\n"),i=0;i<a.length;i++)l=a[i],i>0&&(n+="\t"),n+=void 0===this._cellValue(s,l)?"":this._cellValue(s,l);this._copy(n)}break;case"row":case"rows":var d=this.attr("headercols"),h=this.attr("cols");for(e.sort(r.st.asc),o=0;o<e.length;o++)for(s=e[o],o>0&&(n+="\n"),i=d;i<h;i++)i>d&&(n+="\t"),n+=void 0===this._cellValue(s,i)?"":this._cellValue(s,i);this._copy(n)}}},r.QCELL.BasicQCELL.prototype.onPaste=function(){if(this.attr("currentdata").length>0)if(window.clipboardData)this._paste(window.clipboardData.getData("text"));else{var t=null,e=null,a="",o=this,i=this.attr("elementpool").get("root");(t=document.createElement("div")).setAttribute("id","clipboardDataDiv"),(e=document.createElement("textarea")).style.height=e.style.width="0px",t.appendChild(e),i.appendChild(t),e.focus(),window.setTimeout((function(){if(a=e.value,i.removeChild(document.getElementById("clipboardDataDiv")),r._.isFunction(o.attr("beforepastecallback"))){var t=o._idx("row","focus","current"),s=o._idx("col","focus","current");a=o.attr("beforepastecallback")(t,s,a)}o._paste(a),o._trigger("paste",a)}),100)}},r.QCELL.BasicQCELL.prototype._copy=function(t){var e=null,a=null,o=this.attr("elementpool").get("root");window.clipboardData?window.clipboardData.setData("text",t):((e=document.createElement("div")).style.position="absolute",e.style.left=this.attr("elementpool").get("root").offsetLeft+"px",e.style.top=this.attr("elementpool").get("root").offsetTop+"px",r.util.addClass(e,"rt-qc-clipboard"),e.setAttribute("id","clipboardDataDiv"),a=document.createElement("textarea"),r.util.addClass(a,"rt-qc-clipboard-textarea"),a.style.height=a.style.width="0px",a.value=t,e.appendChild(a),o.appendChild(e),a.focus(),a.select(),window.setTimeout((function(){o.removeChild(document.getElementById("clipboardDataDiv"))}),100))},r.QCELL.BasicQCELL.prototype._paste=function(t){var e,a,o,i,s,l,n=this._idx("row","focus","current"),c=this._idx("col","focus","current"),d="focus"===this.attr("copypastemode");if(e=t.split("\n"),r._.isArray(e)){if(""===e[e.length-1]&&e.pop(),n<this.attr("headerrows")||n>=this.attr("rows"))return;if(c<this.attr("headercols")||c>=this.attr("cols"))return;for(l=/[\r\n|\n\r]$/,a=0;a<e.length;a++){for(i=e[a].split("\t"),o=0;o<i.length&&(s=i[o],o===i.length-1&&l.test(s)&&(s=s.replace(s,"")),!(c+o>=this.getCols()));o++){var h=this._getColElement(c+o);if(null!=h&&(!r._.isNull(h.attr("maxbyte"))&&!r._.isUndefined(h.attr("maxbyte"))&&r.util.strbyte.getByteLength(s)>h.attr("maxbyte")?s=r.util.strbyte.cutByteLength(s,h.attr("maxbyte")):!r._.isNull(h.attr("maxlength"))&&!r._.isUndefined(h.attr("maxlength"))&&s.length>h.attr("maxlength")&&(s=s.slice(0,h.attr("maxlength"))),"number"===this._getColDataType(c+o))){var _=s;_=_.replaceAll(",",""),isNaN(Number(_))&&(s=0)}var u=this._getQCellCol(c+o).attr("celldisabled")[n+a];if(!0!==(u=void 0!==u&&u)){var p=this._cellValue(n+a,c+o);this._cellValue(n+a,c+o,s),p!==this._cellValue(n+a,c+o)&&this._processValueChanged(n+a,c+o)}if("cells"===this.attr("selectmode")&&this._selectCell(n+a,c+o),d)return}"rows"===this.attr("selectmode")&&this._selectRow(n+a)}l=null}},r.QCELL.BasicQCELL.prototype.onMouseWheel=function(t){try{var e,a=this.attr("vsinfo"),o=this.getID();if(a.bVScroll&&(t.stopPropagation(),t.preventDefault(),t.deltaY<0&&a.nPos<a.nLastPos||t.deltaY>0&&a.nPos>0)){var i=this.attr("accumulatedwheel")+t.deltaY;a.nPos-i>a.nLastPos?i=a.nPos-a.nLastPos:a.nPos-i<0&&(i=a.nPos),this.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",a.nTop+i*a.nLengthPerRow,"",{ignorecallback:!0}),this.attr("accumulatedwheel",i,"number"),r.util.rAF((function(){var t=(e=r.QCELL.getInstance(o)).attr("accumulatedwheel");0!==t&&(a.nBeforeTop=a.nTop,a.nTop+=t*a.nLengthPerRow,a.nPos=-a.nTop/a.nLengthPerRow,e._syncVSInfo(),e._updateNRs(),e.attr("accumulatedwheel",0,"number"),(e.attr("useall")||e.attr("usetreeall"))&&(a.nTopRow>a.nStartRow?r.$("#"+e.getID()+"_vsbp").prop("disabled",!1):r.$("#"+e.getID()+"_vsbp").prop("disabled",!0),a.nBottomRow===a.nEndRow?r.$("#"+e.getID()+"_vsbn").prop("disabled",!0):r.$("#"+e.getID()+"_vsbn").prop("disabled",!1)),e._trigger("scrollmove")),e=null}))}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onMouseWheel",t.message)}},r.QCELL.BasicQCELL.prototype.onMouseDown=function(t){try{var e=t.target,a=r.QCELL.def.css,o=this.attr("colresizeline");if(this._removeContextMenu(),r.util.hasClass(e,a.CELL)||r.util.hasClass(e,a.TYPE_DATEPICKER)){r.util.hasClass(e,a.TYPE_DATEPICKER)&&(r.util.hasClass(e.parentNode,a.CELL)?e=e.parentNode:r.util.hasClass(e.parentNode.parentNode,a.CELL)&&(e=e.parentNode.parentNode));var i=parseInt(e.getAttribute("data-row")),s=parseInt(e.getAttribute("data-col"));if(this._isBottomPanel(e))return;if(r.util.hasClass(e,a.CELL_VIEWPORT)&&t.which===r.def.which.LEFT_BUTTON)switch(this.attr("selectmode")){case"rows":if(t.ctrlKey===t.shiftKey)this._focusCell(e),this._clearSelection(),this._selectRow(i);else if(t.ctrlKey)this._focusCell(e),this._selectRow(i);else{var l,n=this._idx("row","focus");l=n<i?r._.range(n,i+1):r._.range(i,n+1).reverse(),this._clearSelection(),this._selectRows(l)}break;case"row":this._focusCell(e),this._getSelectedRows()[0]!==i&&(this._clearSelection(),this._selectRow(i));break;case"cols":if(t.ctrlKey===t.shiftKey)this._focusCell(e),this._clearSelection(),this._selectCol(s);else if(t.ctrlKey)this._focusCell(e),this._selectCol(s);else{var c,d=this._idx("col","focus");c=d<s?r._.range(d,s+1):r._.range(s,d+1).reverse(),this._clearSelection(),this._selectCols(c)}break;case"col":this._focusCell(e),this._getSelectedCols()[0]!==s&&(this._clearSelection(),this._selectCol(s));break;case"cell":this._focusCell(e),this._clearSelection(),this._selectCell(i,s);break;case"group":this._focusCell(e),this._clearSelection(),this._selectGroup(i,s);break;default:t.ctrlKey===t.shiftKey?(this._focusCell(e),this._clearSelection(),this._selectCell(i,s)):t.ctrlKey?(this._focusCell(e),this._selectCell(i,s)):(this._clearSelection(),this._selectCellRange(this._idx("row","focus"),this._idx("col","focus"),i,s))}}if(t.which===r.def.which.RIGHT_BUTTON&&(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),this._isContextMenu()||this._createContextMenu(t)),this.attr("colresize")&&null!==o){var h=this.attr("colresizetooltip"),_=parseInt(e.parentNode.getAttribute("data-col")),u=this.attr("layoutsize").viewport.offsetLeft,p=e.parentNode.offsetLeft+u,C=this._getColWidth(_);"none"===o.css("display")&&o.css("display","block"),o.css("left",p+C-1+"px"),o.attr({"data-targetcol":_,originleft:parseInt(o.css("left")),"client-x":t.clientX}),"none"===h.css("display")&&h.css("display","block"),h.css("left",p+C-1+"px"),h.text("width : "+C+"px"),r.$(e).addClass(a.COLRESIZE_AREA_HOVER)}!1===r.util.hasClass(e,a.FILTER_AREA)&&!1===r.util.hasClass(e,a.FILTER_AREA_ADJUST)&&!1===r.util.hasClass(e,a.FILTER_UI_AREA)&&!1===r.util.hasClass(e,a.FILTER_UI_BTN)&&!1===r.util.hasClass(r.$(e).parents("."+a.FILTER_UI_AREA)[0],a.FILTER_UI_AREA)&&this.attr("filteruivisible")&&this._removeFilterUIArea(),t.which===r.def.which.LEFT_BUTTON&&this.attr("mousedown",!0,"boolean")}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onMouseDown",t.message)}},r.QCELL.BasicQCELL.prototype.onMouseUp=function(t){var e=r.QCELL.def,a=this.attr("id"),o="#"+e.areaname.SHEETPANEL+"-span-"+a,i=this.getSelectedRows(),s=this.getSelectedCols(),l=-1,n=-1,c=this.attr("headerrows"),d=this.attr("headercols"),h=this.attr("rows"),_=this.attr("cols"),u=0,p=0,C=0,g=0,f=0,L="",m=this;if(!1!==this.attr("bottompanel")&&!1!==this.attr("useexcelstylepanel")){if("excel"===this.attr("bottompanelstyle"))switch(this.attr("selectmode")){case"row":case"rows":for(g=0;g<i.length;g++)for(f=d;f<_;f++)isNaN(parseInt(m._cellValue(i[g],f)))||(p+=parseInt(m._cellValue(i[g],f)),C++),u++;L="평균 : "+parseFloat(p/C)+", 개수 : "+u+", 합계 : "+p,0===p&&(L="개수 : "+u);break;case"col":case"cols":for(f=0;f<s.length;f++)for(g=c;g<h;g++)isNaN(parseInt(m._cellValue(g,s[f])))||(p+=parseInt(m._cellValue(g,s[f])),C++),u++;L="평균 : "+parseFloat(p/C)+", 개수 : "+u+", 합계 : "+p,0===p&&(L="개수 : "+u);break;case"group":if(0===i.length&&0===s.length)l=m.getIdx("row"),n=m.getIdx("col"),L=this._cellValue(l,n);else{for(g=0;g<i.length;g++)for(l=i[g],f=0;f<s.length;f++)n=s[f],isNaN(parseInt(m._cellValue(l,n)))||(p+=parseInt(m._cellValue(l,n)),C++),u++;L="평균 : "+parseFloat(p/C)+", 개수 : "+u+", 합계 : "+p,0===p&&(L="개수 : "+u)}break;default:if(1===i.length&&1===s.length)l=i[0],n=s[0],L=this.getCellLabel(l,n);else{for(g=0;g<i.length;g++)for(l=i[g],f=0;f<s.length;f++)n=s[f],isNaN(parseInt(m._cellValue(l,n)))||(p+=parseInt(m._cellValue(l,n)),C++),u++;L="평균 : "+parseFloat(p/C)+", 개수 : "+u+", 합계 : "+p,0===p&&(L="개수 : "+u)}}else if("index"===this.attr("bottompanelstyle"))L="[ "+((l=m.getIdx("row"))-this.getRows("header")+1)+" / "+(h-this.getRows("header"))+" ]";else if("custom"===this.attr("bottompanelstyle"))l=m.getIdx("row"),n=m.getIdx("col"),L=this._cellValue(l,n);else if("board"===this.attr("bottompanelstyle"))return;null!==this.attr("bottompanelcallback")&&r._.isFunction(this.attr("bottompanelcallback"))&&(l=m.getIdx("row"),n=m.getIdx("col"),L=this.attr("bottompanelcallback").call(this,l,n,L)),r.$(o).html(L)}},r.QCELL.BasicQCELL.prototype.onClick=function(t){try{this._adjustScrollPos();var e,a,o=t.target,i=r.QCELL.def.css;if(r.util.hasClass(o,"rt-qc-colheader-area")&&r.QCELL.config.useheadersort&&this._getQCellCol(this._getColFromTarget(o)).attr("sort")&&(!1===this._getQCellCol(this._getColFromTarget(o)).attr("options").wholeselect||void 0===this._getQCellCol(this._getColFromTarget(o)).attr("options").wholeselect))this._sortProcess(t);else if(r.util.hasClass(o,i.CELL)&&!1===r.util.hasClass(o,i.SORTABLE)||r.util.hasClass(o.parentElement,i.CELL)&&"SPAN"===o.tagName){if(o.hasChildNodes()&&("checkbox"===o.childNodes[0].type&&o.childNodes[0].className===i.CELL_ROWHEADER_CHECKBOX||"radio"===o.childNodes[0].type&&o.childNodes[0].className===i.CELL_ROWHEADER_RADIO)&&(e=o.getAttribute("data-row"),a=o.getAttribute("data-col"),this.attr("rowheadercheckboxclick")[e][a]&&(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),o.childNodes[0].checked?this._rowheaderCheckboxClick(this._idx("row","cursor"),this._idx("col","cursor"),!1):this._rowheaderCheckboxClick(this._idx("row","cursor"),this._idx("col","cursor"),!0))),e=this._idx("row","cursor"),a=this._idx("col","cursor"),this._isBottomPanel(o))return;if(this._updateIdx("click",e,a),r.util.hasClass(o,i.CELL_VIEWPORT)||r.util.hasClass(o.parentElement,i.CELL_VIEWPORT)){var s,l=this.getID();!0!==this.attr("useall")&&!0!==this.attr("usetreeall")&&!1===t.shiftKey&&!1===t.ctrlKey&&(setTimeout((function(){null!==(s=r.QCELL.getInstance(l))&&(s._idx("row","focus")===e&&s._idx("col","focus")===a||s._focusCell(e,a),s.attr("temprow",s._idx("row","focus"),"number"),s.attr("tempcol",s._idx("col","focus"),"number"),s._scrollToFocusCell(s._idx("row","focus"),s._idx("col","focus")),s.attr("isClick",!1,"boolean"),s=null)}),0),this.attr("isClick",!0,"boolean"))}}else if(r.util.hasClass(o,i.SORT_AREA)||r.util.hasClass(o,i.MULTI_SORT_ORDER))this._sortProcess(t);else if(r.util.hasClass(o,i.CELL_ROWHEADER_CHECKBOX))e=null!==o.parentNode?o.parentNode.getAttribute("data-row"):this._idx("row","cursor"),a=null!==o.parentNode?o.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this.attr("rowheadercheckboxclick")[e][a]&&(this._updateIdx("click",e,a),o.checked?this._rowheaderCheckboxClick(Number(o.parentNode.getAttribute("data-row")),Number(o.parentNode.getAttribute("data-col")),!0):this._rowheaderCheckboxClick(Number(o.parentNode.getAttribute("data-row")),Number(o.parentNode.getAttribute("data-col")),!1));else if(r.util.hasClass(o,i.CELL_ROWHEADER_RADIO))e=null!==o.parentNode?o.parentNode.getAttribute("data-row"):this._idx("row","cursor"),a=null!==o.parentNode?o.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this.attr("rowheadercheckboxclick")[e][a]&&(this._updateIdx("click",e,a),o.checked?this._rowheaderCheckboxClick(Number(o.parentNode.getAttribute("data-row")),Number(o.parentNode.getAttribute("data-col")),!0):this._rowheaderCheckboxClick(Number(o.parentNode.getAttribute("data-row")),Number(o.parentNode.getAttribute("data-col")),!1));else if(r.util.hasClass(o,i.EDITOR_AREA))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(r.util.hasClass(o,i.TYPE_DATEPICKER))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(r.util.hasClass(o,i.COLHEADER_CHECKBOX))e=null!==o.parentNode?o.parentNode.getAttribute("data-row"):this._idx("row","cursor"),a=null!==o.parentNode?o.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this._updateIdx("click",Number(e),Number(a));else if(r.util.hasClass(o.parentElement,i.TYPE_IMAGE_STYLE))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(r.util.hasClass(o,i.REMOVE_AREA)){var n=this;a=this._idx("col","cursor"),setTimeout((function(){n.removeColumn(a)}))}else this._updateIdx("click",-1,-1);t.target.getElementsByClassName(i.TYPE_INPUT_EDIT_STYLE).length}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onClick",t.message)}},r.QCELL.BasicQCELL.prototype.onDblClick=function(t){var e=t.target,a=r.QCELL.def.css;!1!==this.attr("isscrollleft")&&r.util.hasClass(e,a.CELL)&&this._updateIdx("dblclick",this._idx("row","cursor"),this._idx("col","cursor"))},r.QCELL.BasicQCELL.prototype.onMouseEnter=function(t){},r.QCELL.BasicQCELL.prototype.onMouseLeave=function(t){},r.QCELL.BasicQCELL.prototype.onFnTooltip=function(t,e,a,o){var i=r.$(t);if(!1===this.attr("tooltipvisible")){var s;if(e)s=this.getCellData(a,o),s=this._getQCellCol(o).attr("tooltipcallback")(a,o,s);else if(void 0===(s=this.getCellData(a,o))||""===s)return;var l=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=l.grouped?l.columnsinfo.keys(!0)[0]:"";if(!0===l.grouped&&this._getColID(o)===n){var c=this._getCellDOM(a,o);null!=c&&(s=void 0===c.textContent?"":c.textContent)}!0===this.attr("usetooltipinellipsis")?t.offsetWidth<t.scrollWidth&&this._createTooltip(i,window.event,s):this._createTooltip(i,window.event,s);var d=this.getID();i.on("mouseleave mousewheel DOMMouseScroll",(function(){var t=r.QCELL.getInstance(d);t._removeTooltip(),t=null})),i=null}else this._moveTooltip(r.$(t),window.event)},r.QCELL.BasicQCELL.prototype.onMouseMove=function(t){try{var e,a=r.QCELL.def.css,o=t.target,i=this.attr("colmoveline"),s=this.attr("colresizeline"),l=-1,n=-1;if(r.util.hasClass(o,a.CELL)?(l=parseInt(o.getAttribute("data-row")),n=parseInt(o.getAttribute("data-col")),this._idx("row","cursor")===l&&this._idx("col","cursor")===n||(this._updateIdx("cursor",l,n),0!==t.buttons&&t.which===r.def.which.LEFT_BUTTON&&this.attr("mousedown")&&null===this.attr("hdhandle")&&null===this.attr("vdhandle")&&this.onDrag(t)),this._updateIdx("hover",l,n),l>=this.attr("headerrows")&&n>=this.attr("headercols")&&(this._getQCellCol(n).attr("tooltip")&&void 0!==this._getQCellCol(n).attr("tooltipcallback")?this.onFnTooltip(o,!0,l,n):this._getQCellCol(n).attr("tooltip")&&"checkbox"!==this._getQCellCol(n).attr("type")&&"html"!==this._getQCellCol(n).attr("type")&&"image"!==this._getQCellCol(n).attr("type")&&"chart"!==this._getQCellCol(n).attr("type")&&this.onFnTooltip(o,!1,l,n))):this._idx("row","hover")===l&&this._idx("col","hover")===n||-1!==l&&-1!==n&&this._updateIdx("hover",l,n),this.attr("colmove")&&!0!==this.attr("colresize")&&null===this.attr("hdhandle")&&n>=this.attr("headercols")&&null!==i){var c=parseInt(this.attr("colmoveshadow").attr("data-col")),d=this._getColWidth(n),h=this.attr("layoutsize").viewport.offsetLeft,_=this.attr("layoutsize").container.clientX,u=o.offsetLeft+h;if(!0===this.attr("istopmove")&&0!==l&&!0!==this._getQCellCol(n).attr("topmove"))return void i.css("display","none");if(!0===this.attr("istopmove")){var p=Number(o.getAttribute("data-endcol"));for(isNaN(p)&&(p=1),d=0,e=0;e<p;e++)d+=this._getColWidth(n+e)}"none"===i.css("display")&&i.css("display","block"),t.clientX>u+d/2+_?(i.css("left",u+d-1+"px"),n>c&&(this.attr("colmoveexecution",!0,"boolean"),i.attr({"data-beforecol":c,"data-aftercol":n}))):(i.css("left",u-1+"px"),n<c&&(this.attr("colmoveexecution",!0,"boolean"),i.attr({"data-beforecol":c,"data-aftercol":n})))}if(this.attr("colresize")&&(this.attr("colmove",!1,"boolean"),null!==s)){var C=this.attr("colresizetooltip"),g=parseInt(s.attr("client-x")),f=parseInt(s.css("left")),L=parseInt(s.attr("data-targetcol")),m=parseInt(s.attr("originleft")),E=this._getColWidth(L);g-=t.clientX,"none"===s.css("display")&&s.css("display","block"),"none"===C.css("display")&&C.css("display","block");var b=f-g;s.css("left",b+"px"),s.attr({"client-x":t.clientX}),C.text("width : "+(E+(b-m))+"px")}this.attr("dragging")&&(this.attr("colmove")?this.attr("hdhandle")&&(this.attr("colmoveexecution",!1,"boolean"),null!==i&&"none"!==i.css("display")&&i.css("display","none")):!1===this.attr("colresize")&&this._MoveVScrollbarToDragging(t),!1===this.attr("colresize")&&this._MoveHScrollbarToDragging(t))}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onMouseMove",t.message)}},r.QCELL.BasicQCELL.prototype.onDrag=function(t){try{var e,a,o=this._idx("row","cursor"),i=this._idx("col","cursor"),s=o>=this.attr("headerrows")?o:this._idx("row","drag"),l=i>=this.attr("headercols")?i:this._idx("col","drag");if(this._updateIdx("drag",s,l),null===this.attr("startdragpos")&&this.attr("startdragpos",{nRow:this._idx("row","cursor","previous"),nCol:this._idx("col","cursor","previous")},"object"),!1===this.attr("colmove")&&!1===this.attr("colresize")&&this._selectDragArea(t),!1===this.attr("colmove")&&!0!==this.attr("colresize")&&1===t.which&&0===t.button&&!0===r.QCELL.config.useheadercolmove){var n,c,d=r.QCELL.def.css,h=this.attr("layoutsize"),_=[],u=this.attr("headerrows"),p=this.attr("frozenbottomrows"),C=this.attr("rows"),g=0,f=0,L=document.createElement("div");if(e=this.attr("startdragpos").nRow,a=this.attr("startdragpos").nCol,e<this.getRows("header")&&a>=this.getCols("header")&&(this._getQCellCol(a).attr("move")||this._getQCellCol(a).attr("topmove"))){if(this.attr("colmove",!0,"boolean"),this.attr("colmoveexecution",!1,"boolean"),this._getQCellCol(a).attr("topmove")){var m=this._getCellDOM(0,a),E=Number(m.getAttribute("data-endcol"));isNaN(E)&&(E=1);for(var b=null,y=0,v=0;v<E;v++){for(var w=this._getColCellDOMs(Number(a)),x=0;x<w.length;x++)b=w[x].cloneNode(!0),e=parseInt(b.getAttribute("data-row")),b.style.left=y+"px",b.style.display="block",isNaN(e)?b.style.top=parseInt(b.style.top)+f+"px":e<u?(b.style.top=g+"px",g+=parseInt(b.style.height)):(b.style.top=parseInt(b.style.top)+g+"px",e>=C-p&&(f=parseInt(b.style.top)+parseInt(b.style.height))),_.push(b);y+=this._getColWidth(a+v)}}else r._.each(this._getColCellDOMs(Number(a)),(function(t,r){b=t.cloneNode(!0),e=parseInt(b.getAttribute("data-row")),b.style.left="0px",b.style.display="block",isNaN(e)?b.style.top=parseInt(b.style.top)+f+"px":e<u?(b.style.top=g+"px",g+=parseInt(b.style.height)):(b.style.top=parseInt(b.style.top)+g+"px",e>=C-p&&(f=parseInt(b.style.top)+parseInt(b.style.height))),_.push(b)}));r._.last(_).style.borderBottomWidth="1px",c=r.$(L.cloneNode()).addClass(d.COLMOVE_SHADOW).attr("data-col",Number(a)).css({display:"none"}).append(_).appendTo(document.body),this.attr("colmoveshadow",c,"QBOX.$"),n=r.$(L.cloneNode()).addClass(d.COLMOVELINE).css({display:"none",height:h.colheader.offsetHeight+h.viewport.offsetHeight+h.footer.offsetHeight}).appendTo(this.attr("elementpool").get("container")),this.attr("colmoveline",n,"QBOX.$")}}this.attr("dragging",!0,"boolean")}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onDrag",t.message)}},r.QCELL.BasicQCELL.prototype.onDrop=function(t){!1===this.attr("colmove")&&!1===this.attr("colresize")&&this._selectDragArea(t),this.attr("dragging",!1,"boolean"),this._updateIdx("drag",-1,-1),this.attr("startdragpos",null,"object"),null!==this.attr("hdhandle")&&(clearInterval(this.attr("hdhandle")),this.attr("hdhandle",null,"number"),this.attr("hdcount",0,"number")),null!==this.attr("vdhandle")&&(clearInterval(this.attr("vdhandle")),this.attr("vdhandle",null,"number"),this.attr("vdcount",0,"number"))},r.QCELL.BasicQCELL.prototype._clickCell=function(t,e){var a=this._getCellDOM(t,e);if(r._.isElement(a)&&r.util.hasClass(a,r.QCELL.def.css.CELL)){var o={target:a,ctrlKey:!1,altKey:!1,shiftKey:!1,which:r.def.which.LEFT_BUTTON},i=this._getEventTarget("default");return a.focus(),this._updateIdx("cursor",t,e),this.onMouseDown(r._.extend(r.$.Event("mousedown"),o)),null!==i&&i.trigger(r._.extend(r.$.Event(this._getUserEventName("mousedown")),o)),this.onMouseUp(r._.extend(r.$.Event("mouseup"),o)),null!==i&&i.trigger(r._.extend(r.$.Event(this._getUserEventName("mouseup")),o)),this.onClick(r._.extend(r.$.Event("click"),o)),null!==i&&i.trigger(r._.extend(r.$.Event(this._getUserEventName("click")),o)),!0}return!1},r.QCELL.BasicQCELL.prototype._dblClickCell=function(t,e){var a=this._getCellDOM(t,e);if(r._.isElement(a)&&r.util.hasClass(a,r.QCELL.def.css.CELL)){var o={target:a,ctrlKey:!1,altKey:!1,shiftKey:!1,which:r.def.which.LEFT_BUTTON},i=this._getEventTarget("default");a.focus(),this._updateIdx("cursor",t,e);for(var s=0;s<2;s++)this.onMouseDown(r._.extend(r.$.Event("mousedown"),o)),null!==i&&i.trigger(r._.extend(r.$.Event(this._getUserEventName("mousedown")),o)),this.onMouseUp(r._.extend(r.$.Event("mouseup"),o)),null!==i&&i.trigger(r._.extend(r.$.Event(this._getUserEventName("mouseup")),o)),this.onClick(r._.extend(r.$.Event("click"),o)),null!==i&&i.trigger(r._.extend(r.$.Event(this._getUserEventName("click")),o));return this.onDblClick(r._.extend(r.$.Event("dblclick"),o)),null!==i&&i.trigger(r._.extend(r.$.Event(this._getUserEventName("dblclick")),o)),!0}return!1},r.QCELL.BasicQCELL.prototype._setInputformData=function(t){var e,a,o=this._getRowData(t),i=this.attr("id"),s=this.attr("headercols"),l=this.attr("cols");if(null!==o&&null!==this.attr("jqDialog")){for(this.attr("isInputForm",!0,"boolean"),this.attr("jqDialog").dialog("open"),e=s;e<l;e++){var n,c=this._getKeyOfCol(e);if(a=i+"_"+c+"_"+this.getColID(e),n=document.getElementById(a),"image"===this._getColType(e))n.setAttribute("src",o[c]);else if("checkbox"===this._getColType(e))n.checked=o[c];else if("datepicker"===this._getColType(e)){var d=r.moment(o[c],"YYYYMMDD").format("YYYY-MM-DD");"Invalid date"!==d&&(n.value=d)}else r.$(n).val(o[c])}this.attr("inputformdatarow",t,"number"),this.attr("inputformdata",o,"object")}},r.QCELL.BasicQCELL.prototype.onTab=function(t,e){if(r.$(e).hasClass("rt-qc-cell")||r.$(e).hasClass("rt-qc-cell-rowheader-checkbox")||r.$(e).hasClass("rt-qc-cell-rowheader-radio")||r.$(e).hasClass("rt-qc-colheader-checkbox")||r.$(e).hasClass("rt-qc-datepicker-type")){var a=r.$(e).hasClass("rt-qc-datepicker-type")?e.parentElement:e,o=parseInt(a.getAttribute("data-row")),i=parseInt(a.getAttribute("data-col"));isNaN(o)||isNaN(i)||this.clickCell(o,i)}},r.QCELL.BasicQCELL.prototype.onLongTab=function(t,e){if(r.$(e).hasClass("rt-qc-cell")||r.$(e).hasClass("rt-qc-cell-rowheader-checkbox")||r.$(e).hasClass("rt-qc-colheader-checkbox")||r.$(e).hasClass("rt-qc-cell-rowheader-radio")||r.$(e).hasClass("rt-qc-datepicker-type")){var a=r.$(e).hasClass("rt-qc-datepicker-type")?e.parentElement:e,o=parseInt(a.getAttribute("data-row")),i=parseInt(a.getAttribute("data-col"));isNaN(o)||isNaN(i)||this._setInputformData(o)}},r.QCELL.BasicQCELL.prototype.onSwipe=function(t,e,a,o,i,s){try{if("touchend"===t.type||"touchmove"===t.type){var l=this,n=0,c=0;switch(e){case"up":case"down":var d=this.attr("vsinfo");d.bVScroll&&(t.stopPropagation(),t.preventDefault(),setTimeout((function(){("up"===e&&d.nPos<d.nLastPos||"down"===e&&d.nPos>0)&&(n="down"===e?1:-1,c=Math.floor(a/3/d.nLengthPerRow)*n,d.nPos-c>d.nLastPos?c=d.nPos-d.nLastPos:d.nPos-c<0&&(c=d.nPos),l.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",d.nTop+c*d.nLengthPerRow,"",{ignorecallback:!0}),l.attr("accumTouch",c,"number"),r.util.rAF((function(){var t=l.attr("accumTouch");0!==t&&(d.nBeforeTop=d.nTop,d.nTop+=t*d.nLengthPerRow,d.nPos=-d.nTop/d.nLengthPerRow,l._syncVSInfo(),l._updateNRs(),l.attr("accumTouch",0,"number"))})))}),0));break;case"left":case"right":var h=this.attr("hsinfo");h.bHScroll&&(t.stopPropagation(),t.preventDefault(),setTimeout((function(){if("right"===e&&0!==h.nLeft||"left"===e&&Math.abs(h.nLeft)<Math.abs(h.nLength)){n="right"===e?1:-1,c=(0===Math.floor(a/h.nLengthPerCol)?1:Math.floor(a/h.nLengthPerCol))*n*h.nLengthPerCol;var t=h.nLeft;"left"===e&&Math.abs(t+c)>Math.abs(h.nLength)?t=-h.nLength:"right"===e&&t+c>0?t=0:t+=c,l.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",t)}}),0))}}else t.stopPropagation(),t.preventDefault()}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onSwipe",t.message)}},r.QCELL.BasicQCELL.prototype.onResize=function(t){try{var e=this.attr("layoutsize").root.offsetHeight,a=this.attr("layoutsize").root.offsetWidth;if(this.attr("percentwidth")||this.attr("percentheight")){clearTimeout(this.attr("timeoutid"));var o=this,i=this.getID();this.attr("timeoutid",setTimeout((function(){if(null!=(o=r.QCELL.getInstance(i))&&!0!==o.attr("isInputForm")&&!1!==o.attr("bResizeAction")){var t=o.getCustomPanel(),s=r.$(o.attr("parent")).height(),l=r.$(o.attr("parent")).width();if(e!==s||a!==l){o.attr("isResizing",!0,"boolean"),o.attr("filterarea",null,"jquery");var n,c,d=o.attr("hsinfo"),h=o.attr("vsinfo"),_=o._idx("row","focus","current"),u=o._idx("col","focus","current");if(n=d.nLeftCol,c=h.nTopRow,o._initHSInfo(),o._initVSInfo(),o._createElement()&&(o._refresh(),n!==d.nLeftCol&&o._scrollLeft(n),c!==h.nTopRow&&o._scrollTop(c),o._updateIdx("focus",-1,-1),o._focusCell(_,u),o.resetCustomPanel(t),!0===o.attr("makefrozenbottomdata"))){var p=o.attr("currentdata");!r._.isEmpty(p)&&r._.isArray(p)&&0!==p.length&&(!0!==p[p.length-1].rt_qc_fbrd?(p.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(o=r.QCELL.getInstance(i))&&o._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(o=r.QCELL.getInstance(i))&&o._trigger("frozendataupdated")}),0))}o.attr("isResizing",!1,"boolean")}}}),0),"number")}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL.onResize",t.message)}},r.QCELL.BasicQCELL.prototype._initCellMatrix=function(){try{var t=this.attr("cellmatrix");return t.containsKey("row")?t.get("row").RT_clear():t.put("row",[]),t.containsKey("col")?t.get("col").RT_clear():t.put("col",[]),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._initCellMatrix",t.message),!1}},r.QCELL.BasicQCELL.prototype._syncCellMatrix=function(t){var e=this.attr("cellmatrix");"col"===t?e.put("row",r._.unzip(e.get("col"))):e.put("col",r._.unzip(e.get("row")))},r.QCELL.BasicQCELL.prototype._getCellDOM=function(t,e){var r=this._getRowCellDOMs(t);if(void 0!==r&&r.length>0&&e>=0&&e<this.attr("cols")){var a=this.attr("headercols"),o=this.attr("frozencols");if(e<a+o)return r[e];var i=this.attr("hsinfo");if(e>=i.nLeftCol&&e<=i.nRightCol)return r[a+o+e-i.nLeftCol]}return null},r.QCELL.BasicQCELL.prototype._getRowCellDOMs=function(t){var e=this.attr("vsinfo"),r=this.attr("headerrows"),a=this.attr("frozenrows"),o=this.attr("frozenbottomrows"),i=this.attr("rows"),s=this._isPanel();if(r!==i&&!0===s&&!1===e.bVScroll&&t>e.nEndRow)return this._getCellGroupDOMs("row","frozenbottom")[t-e.nEndRow-1];if(t>=0&&t<i){if(t<r)return this._getCellGroupDOMs("row","header")[t];if(t<r+a)return this._getCellGroupDOMs("row","frozen")[t-r];if(!(t<i-o))return this._getCellGroupDOMs("row","frozenbottom")[t-e.nEndRow-1];if(t>=e.nTopRow&&t<=e.nBottomRow){for(var l=this._getCellGroupDOMs("row","normal"),n=0;n<l.length;n++){var c=l[n][0];if(Number(c.getAttribute("data-row"))===t)return l[n]}return this._getCellGroupDOMs("row","normal")[t-e.nTopRow]}}return[]},r.QCELL.BasicQCELL.prototype._getColCellDOMs=function(t){var e=this.attr("hsinfo"),r=this.attr("headercols"),a=this.attr("frozencols"),o=this.attr("cols");if(t>=0&&t<o){if(t<r)return this._getCellGroupDOMs("col","header")[t];if(t<r+a)return this._getCellGroupDOMs("col","frozen")[t-r];if(t>=e.nLeftCol&&t<=e.nRightCol)return this._getCellGroupDOMs("col","normal")[t-e.nLeftCol]}return[]},r.QCELL.BasicQCELL.prototype._getCellGroupDOMs=function(t,e){var r,a,o=this.attr("cellmatrix"),i=[];if("row"===t){var s=o.get("row"),l=this.attr("headerrows"),n=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),d=this.attr("footerrows");switch(e){case"header":r=0,a=l;break;case"frozen":r=l,a=n;break;case"normal":r=l+n,a=s.length-l-n-c-d;break;case"frozenbottom":r=s.length-c-d,a=c;break;case"footer":r=s.length-d,a=d}i=s.splice(r,a),s.RT_insertArray(r,i)}else if("col"===t){var h=o.get("col"),_=this.attr("headercols"),u=this.attr("frozencols");switch(e){case"header":r=0,a=_;break;case"frozen":r=_,a=u;break;case"normal":r=_+u,a=h.length-_-u}i=h.splice(r,a),h.RT_insertArray(r,i)}return i},r.QCELL.BasicQCELL.prototype._setCellGroupDOMs=function(t,e,r){var a,o,i=this.attr("cellmatrix");if("row"===t){var s=i.get("row"),l=this.attr("headerrows"),n=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),d=this.attr("footerrows");switch(e){case"header":a=0,o=l;break;case"frozen":a=l,o=n;break;case"normal":a=l+n,o=s.length-l-n-c-d;break;case"frozenbottom":a=s.length-c-d,o=c;break;case"footer":a=s.length-d,o=d}s.splice(a,o),s.RT_insertArray(a,r)}else if("col"===t){var h=i.get("col"),_=this.attr("headercols"),u=this.attr("frozencols");switch(e){case"header":a=0,o=_;break;case"frozen":a=_,o=u;break;case"normal":a=_+u,o=h.length-_-u}h.splice(a,o),h.RT_insertArray(a,r)}return r=null,!0},r.QCELL.BasicQCELL.prototype._isPanel=function(){return"panel"===this.attr("frozenbottomstyle")},r.QCELL.BasicQCELL.prototype._setCellGroupCSS=function(t,e){var a=r.QCELL.def.css,o=this._getCellGroupDOMs(t,e),i=[],s=[],l=this._isPanel();if("row"===t)switch(e){case"header":s=[a.CELL_FROZENROWS,a.CELL_NORMALROWS,a.CELL_FROZENBOTTOMROWS,a.CELL_FROZENBOTTOMROWS_PANEL,a.CELL_FOOTERROWS],i.push(a.CELL_HEADERROWS);break;case"frozen":s=[a.CELL_HEADERROWS,a.CELL_NORMALROWS,a.CELL_FROZENBOTTOMROWS,a.CELL_FROZENBOTTOMROWS_PANEL,a.CELL_FOOTERROWS],i.push(a.CELL_FROZENROWS);break;case"normal":s=[a.CELL_HEADERROWS,a.CELL_FROZENROWS,a.CELL_FROZENBOTTOMROWS,a.CELL_FROZENBOTTOMROWS_PANEL,a.CELL_FOOTERROWS],i.push(a.CELL_NORMALROWS);break;case"frozenbottom":s=[a.CELL_HEADERROWS,a.CELL_FROZENROWS,a.CELL_NORMALROWS,a.CELL_FOOTERROWS],i.push(a.CELL_FROZENBOTTOMROWS),!0===l?i.push(a.CELL_FROZENBOTTOMROWS_PANEL):i.push(a.CELL_FROZENBOTTOMROWS);break;case"footer":s=[a.CELL_HEADERROWS,a.CELL_FROZENROWS,a.CELL_NORMALROWS,a.CELL_FROZENBOTTOMROWS,a.CELL_FROZENBOTTOMROWS_PANEL],i.push(a.CELL_FOOTERROWS)}else if("col"===t)switch(e){case"header":s=[a.CELL_FROZENCOLS,a.CELL_NORMALCOLS],i.push(a.CELL_HEADERCOLS);break;case"frozen":s=[a.CELL_HEADERCOLS,a.CELL_NORMALCOLS],i.push(a.CELL_FROZENCOLS);break;case"normal":s=[a.CELL_HEADERCOLS,a.CELL_FROZENCOLS],i.push(a.CELL_NORMALCOLS)}if(o.length>0){var n=r._.flatten(o);return s.length>0&&r.util.removeClass(n,s),i.length>0&&r.util.addClass(n,i),!0}return!1},r.QCELL.BasicQCELL.prototype._addDynamicRows=function(t){var e=this.attr("vsinfo"),a=this.attr("cellmatrix").get("row"),o=this.attr("headerrows"),i=this.attr("footerrows");if(t>0){for(var s,l,n=r.QCELL.def.css,c=this.attr("hsinfo"),d=document.createElement("div"),h=this.attr("elementpool").get("rowheaderinner"),_=this.attr("elementpool").get("viewportinner"),u=this.attr("headercols"),p=this.attr("frozencols"),C=c.nDynamicCols,g=a.length-i===o?0:this._getSumOfRowHeight(o,a.length-i-1),f=0;f<t;f++){var L,m,E=-1===e.nEndRow||-1===e.nBottomRow?o+f:e.nBottomRow+f+1,b=this._getRowHeight(E),y=g,v=0;for(a.RT_insert(a.length-i,[]),l=0;l<u;l++)L=this._getColWidth(l),(s=this._createCell(d,!1)).style.width=L+"px",s.style.height=b+"px",this._getColWordwrap(l)?s.style.whiteSpace="pre-wrap":(s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center"),s.style.left=v+"px",s.style.top=y+"px",s.className+=" "+n.CELL_ROWHEADER+" "+n.CELL_HEADERCOLS,s.setAttribute("data-col",l),h.appendChild(s),a[a.length-i-1].push(s),v+=parseFloat(L);for(l=0;l<C;l++){var w=l<p?u+l:c.nLeftCol-p+l;L=this._getColWidth(w),m=this._getColTabindex(w),(s=this._createCell(d,m)).style.width=L+"px",s.style.height=b+"px",this._getColWordwrap(w)?s.style.whiteSpace="pre-wrap":s.style.lineHeight=b-2+"px",s.style.left=a[a.length-i-2][a[a.length-i-1].length].style.left,s.style.top=y+"px",s.setAttribute("data-col",w),s.className+=" "+n.CELL_VIEWPORT+" "+(l<p?n.CELL_FROZENCOLS:n.CELL_NORMALCOLS)+" "+this._getColStyleClassName(w,"data");var x=this._getColStyle(w,"data");switch(r._.isEmpty(x)||r._.isUndefined(x)||r._.isNull(x)||r.$(s).css(x),s.className+=" "+n.CELL_NORMALROWS,this._getColType(w)){case"input":s.className+=" "+n.TYPE_INPUT_CELL;break;case"inputbutton":s.className+=" "+n.TYPE_INPUTBUTTON_CELL;break;case"textarea":s.className+=" "+n.TYPE_TEXTAREA_CELL;break;case"selectmenu":s.className+=" "+n.TYPE_SELECTMENU_CELL;break;case"datepicker":s.className+=" "+n.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":s.className+=" "+n.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":s.className+=" "+n.TYPE_CHECKBOX_CELL;break;case"image":s.className+=" "+n.TYPE_IMAGE_CELL;break;case"html":s.className+=" "+n.TYPE_HTML_CELL;break;case"chart":s.className+=" "+n.TYPE_CHART_CELL;break;case"multicheckbox":s.className+=" "+n.TYPE_MULTICHECKBOX_CELL;break;case"number":s.className+=" "+n.TYPE_NUMBER_CELL;break;case"slider":s.className+=" "+n.TYPE_SLIDER_CELL;break;case"button":s.className+=" "+n.TYPE_BUTTON_CELL;break;case"editor":s.className+=" "+n.TYPE_EDITOR_CELL;break;default:s.className+=" "+n.TYPE_STATIC_CELL}_.appendChild(s),a[a.length-i-1].push(s)}g+=b}return this._syncCellMatrix("row"),!0}return!1},r.QCELL.BasicQCELL.prototype._removeDynamicRows=function(t){var e=this.attr("cellmatrix").get("row");if(t>0){var a=e.splice(e.length-this.attr("footerrows")-t,t);return r.$(r._.flatten(a)).remove(),this._syncCellMatrix("row"),!0}return!1},r.QCELL.BasicQCELL.prototype._addDynamicCols=function(t){var e=this.attr("hsinfo"),a=this.attr("cellmatrix").get("col"),o=this.attr("headercols"),i=this._isPanel();if(t>0){for(var s,l,n=r.QCELL.def.css,c=this.attr("vsinfo"),d=document.createElement("div"),h=this.attr("elementpool").get("colheaderinner"),_=this.attr("elementpool").get("viewportinner"),u=this.attr("highlightrepeat"),p=this.attr("rows"),C=this.attr("headerrows"),g=this.attr("frozenrows"),f=this.attr("frozenbottomrows"),L=c.nDynamicRows,m=a.length===o?0:this._getSumOfColWidth(o,a.length-1),E=0;E<t;E++){var b,y,v=-1===e.nEndCol?o+E:e.nRightCol+E+1,w=this._getColWidth(v),x=m,Q=0;if(e.nEndCol===e.nRightCol&&(v=e.nRightCol),v>e.nEndCol)break;for(a.push([]),l=0;l<C;l++)b=this._getRowHeight(l),y=this._getColTabindex(v),(s=this._createCell(d,y)).style.width=w+"px",s.style.height=b+"px",this._getColWordwrap(v)?s.style.whiteSpace="pre-wrap":s.style.lineHeight=b-2+"px",s.style.left=x+"px",s.style.top=Q+"px",s.className+=" "+n.CELL_COLHEADER+" "+n.CELL_HEADERROWS,s.setAttribute("data-row",l),h.appendChild(s),a[a.length-1].push(s),Q+=parseFloat(b);for(l=0;l<L;l++){var S=l<g?C+l:l>=L-f?p-L+l:c.nTopRow-g+l;b=this._getRowHeight(S),y=this._getColTabindex(v),(s=this._createCell(d,y)).style.width=w+"px",s.style.height=b+"px",this._getColWordwrap(v)?s.style.whiteSpace="pre-wrap":s.style.lineHeight=b-2+"px",s.style.left=x+"px",s.style.top=a[a.length-2][a[a.length-1].length].style.top,s.setAttribute("data-row",S),s.className+=" "+n.CELL_VIEWPORT,s.className+=l<g?" "+n.CELL_FROZENROWS:l>=L-f?!0===i?" "+n.CELL_FROZENBOTTOMROWS_PANEL:" "+n.CELL_FROZENBOTTOMROWS:" "+n.CELL_NORMALROWS,u>0&&(S-C+1)%u==0&&(s.className+=" "+n.CELL_HIGHLIGHTREPEAT),_.appendChild(s),a[a.length-1].push(s)}m+=w}return this._syncCellMatrix("col"),!0}return!1},r.QCELL.BasicQCELL.prototype._removeDynamicCols=function(t){var e=this.attr("cellmatrix").get("col");if(t>0){var a=e.splice(e.length-t,t);return r.$(r._.flatten(a)).remove(),this._syncCellMatrix("col"),!0}return!1},r.QCELL.BasicQCELL.prototype._makeRowUI=function(t,e){try{var a=this.attr("vsinfo"),o=this.attr("headerrows"),i=this._isPanel(),s=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(s=!0===this.attr("hierachystate").grouped?this.attr("hierachystate"):s,!1===a.bVScroll){if(s&&!0!==s.grouped&&i){var l=this;return!0!==this.attr("isSorting")&&setTimeout((function(){l.rebuild(!0)})),!0}var n=this.attr("hsinfo"),c=n.bHScroll;if(this._initLayoutSize(),this._calculateDynamicRows(),a.bVScroll){var d=this.attr("cellmatrix").get("row"),h=this.attr("footerrows");if(d.length-o-h+t>a.nDynamicRows?this._addDynamicRows(a.nDynamicRows-(d.length-o-h)):this._addDynamicRows(t),this._adjustFrozenRowsCount(),(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop()),this._setCellGroupCSS("row","normal"),this._resizeHScrollbar(),this._updateHSInfo(),c&&n.bHScroll&&n.nPos===n.nLastPos){var _=this.attr("scrollbarwidth");r._.each(r._.flatten(this._getCellGroupDOMs("col","normal")),(function(t){t.style.left=parseFloat(t.style.left)-_+"px"}))}}else this._addDynamicRows(t),(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop())}return this._resizeVScrollbar(e),this._updateVSInfo(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._makeRowUI",t.message),!1}},r.QCELL.BasicQCELL.prototype._removeRowUI=function(t,e){try{var a=this.attr("vsinfo"),o=this.attr("currentdata"),i=this._isPanel(),s=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");s=!0===this.attr("hierachystate").grouped?this.attr("hierachystate"):s;var l=this;if(a.bVScroll){if(s&&!0!==s.grouped&&i)return!0!==this.attr("isSorting")&&setTimeout((function(){l.rebuild(!0)})),!0;var n=a.nDynamicRows,c=this.attr("hsinfo");if(this._initLayoutSize(),this._calculateDynamicRows(),!1===a.bVScroll){if(o.length<n&&this._removeDynamicRows(n-o.length),this._adjustFrozenRowsCount(),this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),i&&(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop()),c.bHScroll&&c.nPos===c.nLastPos){var d=this.attr("scrollbarwidth");r._.each(r._.flatten(this._getCellGroupDOMs("col","normal")),(function(t){t.style.left=parseFloat(t.style.left)+d+"px"}))}this._resizeHScrollbar(),this._updateHSInfo()}}else{if(this._removeDynamicRows(t),s&&!0!==s.grouped&&i)return!0!==this.attr("isSorting")&&setTimeout((function(){l.rebuild(!0)})),!0;i&&(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop())}return this._resizeVScrollbar(e),this._updateVSInfo(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._removeRowUI",t.message),!1}},r.QCELL.BasicQCELL.prototype._adjustFrozenBottomRowsTop=function(){var t=this.attr("frozenbottomrows");if(t>0){var e=this,a=this._getCellGroupDOMs("row","frozenbottom"),o=this.attr("rows"),i=this.attr("layoutsize").viewport.clientHeight;return r._.each(a,(function(a,s){var l=o-t+s;r._.each(a,(function(t){t.style.top=i-e._getSumOfRowHeight(l,o-1)+"px"}))})),!0}return!1},r.QCELL.BasicQCELL.prototype._adjustNormalRowsTop=function(){if(this.attr("currentdata").length>0){var t=this,e=this._getCellGroupDOMs("row","normal"),a=0,o=this.attr("headerrows"),i=this.attr("frozenrows");return r._.each(e,(function(e,s){var l=o+i+s,n=t._getRowHeight(l),c=a;r._.each(e,(function(t){t.style.top=c+"px"})),a+=n})),!0}return!1},r.QCELL.BasicQCELL.prototype._getQCellCol=function(t){return this.attr("qcellcols")[t]},r.QCELL.BasicQCELL.prototype._getColDataMergeCol=function(t){return void 0===this._getQCellCol(t)||null===this._getQCellCol(t)||this._getQCellCol(t).attr("mergecol")},r.QCELL.BasicQCELL.prototype._getColDataMergeRef=function(t){if(void 0!==this._getQCellCol(t)&&null!==this._getQCellCol(t))return this._getQCellCol(t).attr("mergeref")},r.QCELL.BasicQCELL.prototype._getColDataType=function(t){return this._getQCellCol(t).attr("datatype")},r.QCELL.BasicQCELL.prototype._setColDataTypeNumber=function(t){return this._getQCellCol(t).attr("datatype","number","string")},r.QCELL.BasicQCELL.prototype._setColsDataType=function(t){if(!1===r._.isUndefined(t)&&t.length>0){for(var e=t[0],a=[],o=this.attr("cols"),i=this.attr("headercols"),s=this.attr("colkeys"),l=i;l<o;l++)a.push(e[s[l]]);for(var n=0;n<a.length;n++)"number"==typeof a[n]&&this._setColDataTypeNumber(n+i)}},r.QCELL.BasicQCELL.prototype._getColFormat=function(t){return this._getQCellCol(t).attr("format")},r.QCELL.BasicQCELL.prototype._getColOptions=function(t){return this._getQCellCol(t).attr("options")},r.QCELL.BasicQCELL.prototype._getColWordwrap=function(t){return this._getQCellCol(t).attr("wordwrap")},r.QCELL.BasicQCELL.prototype._showDisableText=function(t,e,a){if(!0===this._getQCellCol(a).attr("celldisabled")[e]){var o=this.getRowData(e),i=this._getKeyOfCol(a);if(void 0!==o["_rt_qc_d_"+i])return r.util.textContent(t,o["_rt_qc_d_"+i]),!0}return!1},r.QCELL.BasicQCELL.prototype._showDataFormat=function(t,e,a,o){var i="";try{if(!0===this._getQCellCol(e).attr("celldisabled")[t]){var s=this.getRowData(t),l=this._getKeyOfCol(e);if(void 0!==s["_rt_qc_d_"+l])return s["_rt_qc_d_"+l]}var n=this._getColFormat(e);if(""===r.$.trim(a)||r._.isUndefined(a)){if(!r._.isUndefined(n)&&!r._.isNull(n)){if("custom"===n.type&&!0===n.allowemptydata)return n.callback(String(a));if(void 0!==n.invalidchar)return n.invalidchar}i=a}else if(r._.isUndefined(n)||r._.isNull(n))i=a;else{var c=!1;switch(void 0===o&&void 0!==n.beforeformat&&r._.isFunction(n.beforeformat)&&(a=n.beforeformat(a,this.getRowData(t,e)),c=!0),n.type){case"string":if(r._.isString(a))for(var d=n.rule.split("@"),h=0;h<d.length;h++)""!==d[h]&&(a=r.util.replaceAll(a,d[h],""));i=n.rule.replace("@",a);break;case"number":var _={format:n.rule,locale:void 0===n.locale?this.attr("locale"):n.locale};if(i=r.$.formatNumber(r.util.replaceAll(a+"",",",""),_),void 0!==n.invalidchar&&"0"===i&&isNaN(Number(a))){i=n.invalidchar;break}if("#,###.##"===_.format){if("0"!==i&&-1!==(a+"").indexOf(".")&&-1===i.indexOf(".")){var u=_.format.split(".");""===i&&(i="0"),i+=".";for(var p=0;p<u[1].length;p++)i+="0"}else(""===i&&"0"===a||""===i&&0===a)&&(i="0");"0"===i&&isNaN(Number(a))&&!0===n.useinvaliddata&&(i=a)}else"0"===i&&isNaN(Number(a))&&!0===n.useinvaliddata?i=a:(r._.isNumber(a+"")?i=0:0!==a&&"0"!==a&&""!==a||(i=r.util.replaceAll(i,".",""),i=r.util.replaceAll(i,"0",""),i+="0"),-1!==n.rule.indexOf(".")&&0===i.indexOf(".")&&0!==n.rule.indexOf(".")&&(i="0"+i));break;case"date":r.moment.locale(void 0===n.locale?"kr"===this.attr("locale")?"ko":this.attr("locale"):n.locale),"Invalid date"===(i=r.moment(a,n.origin).format(n.rule))&&(i="");break;case"custom":i=n.callback(String(a));break;default:i=a}if(void 0===o&&void 0!==n.afterformat&&r._.isFunction(n.afterformat)&&(i=n.afterformat(i,this.getRowData(t,e))),!0===c){var C=this._getKeyOfCol(e);if(null!=C){var g=this.attr("currentdata")[t-this.attr("headerrows")];void 0!==g&&(g["_rt_qc_bf_"+C]=i)}}}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._showDataFormat",t.message),i=""}return i},r.QCELL.BasicQCELL.prototype._getColFormatStatic=function(t){return this._getQCellCol(t).attr("formatstatic")},r.QCELL.BasicQCELL.prototype._showDataFormatStatic=function(t,e){var a="";try{if(""===r.$.trim(e)||r._.isUndefined(e))a=e;else{var o=this._getColFormatStatic(t);if(r._.isUndefined(o)||r._.isNull(o))a=e;else switch(o.type){case"string":a=o.rule.replace("@",e);break;case"number":var i={format:o.rule,locale:void 0===o.locale?this.attr("locale"):o.locale};a=r.$.formatNumber(e+"",i),0===parseInt(e+"")&&(a=0);break;case"date":r.moment.locale(void 0===o.locale?"kr"===this.attr("locale")?"ko":this.attr("locale"):o.locale),a=r.moment(e,o.origin).format(o.rule);break;case"custom":a=o.callback(String(e));break;default:a=e}}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._showDataFormatStatic",t.message),a=""}return a},r.QCELL.BasicQCELL.prototype._getColWidth=function(t){return this.attr("colwidthsperpixel")[t]},r.QCELL.BasicQCELL.prototype._setColWidth=function(t,e){try{var a=this.attr("colwidths"),o=this.attr("colwidthsperpixel"),i=this.attr("hsinfo"),s=i.bHScroll,l=i.nDynamicCols,n=this.attr("headercols");if(e===o[t])return!1;if(e<15)e=15;else{var c,d=this.attr("frozencols"),h=this.attr("layoutsize").viewport.offsetWidth;e>h-(c=t<n+d?this._getSumOfColWidth(n,t-1):this._getSumOfColWidth(n,n+d-1))&&(e=h-c)}o[t]=e;for(var _=n,u=this.attr("cols");_<u;_++)a[_]=o[_]+"px";if(this.attr("percentcolwidth",!1,"boolean"),this._initLayoutSize(),this._calculateDynamicCols(),l>i.nDynamicCols?this._removeDynamicCols(l-i.nDynamicCols):l<i.nDynamicCols&&this._addDynamicCols(i.nDynamicCols-l),this.attr("frozencols")>0&&this._setCellGroupCSS("col","frozen"),this._setCellGroupCSS("col","normal"),this._resizeHScrollbar(),this._updateHSInfo(),this._clearDynamicCSS("col","data"),s!==i.bHScroll){this._createElement();var p=this.getID();setTimeout((function(){var t=r.QCELL.getInstance(p);null!==t&&null!==t.attr("_backGT")&&t.setGrandTotal(t.attr("_backGT"))}))}return this.resize(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._setColWidth",t.message),!1}},r.QCELL.BasicQCELL.prototype._getKeyOfCol=function(t){return this.attr("colkeys")[t]},r.QCELL.BasicQCELL.prototype._setKeyOfCol=function(t,e){if(t<this.getCols("header")||this.attr("colkeys").length<=t)return!1;this.attr("colkeys")[t]=e;var a=this._getQCellCol(t);a&&a.attr("key",e,"string"),this.getProperties().columns[t-this.getCols("header")].key=e;for(var o=this.attr("vsinfo"),i=o.nTopRow;i<=o.nBottomRow;i++){var s=this._getCellDOM(i,t);if(null!=s){var l=this.getCellData(i,t),n=this._showDataFormat(i,t,void 0===l?"":l);r.util.textContent(s,n)}}return!0},r.QCELL.BasicQCELL.prototype._getKeyOfColID=function(t){var e=this.attr("colidsinfo");return r._.has(e,t)?this._getKeyOfCol(e[t]):-1},r.QCELL.BasicQCELL.prototype._getColsOfKey=function(t){var e=this.attr("colkeysinfo");return e.containsKey(t)?e.get(t).values():[]},r.QCELL.BasicQCELL.prototype._getColID=function(t){return this.attr("colids")[t]},r.QCELL.BasicQCELL.prototype._getColFilltered=function(t){return this._getQCellCol(t).attr("fillter_prev")},r.QCELL.BasicQCELL.prototype._setColFilltered=function(t,e){this._getQCellCol(t).attr("fillter_prev",e,"object")},r.QCELL.BasicQCELL.prototype._getColOfID=function(t){return this.attr("colidsinfo")[t]},r.QCELL.BasicQCELL.prototype._moveColsSub=function(t,e,a,o){var i,s,l,n=this,c=this.attr("qcellcols"),d=this.attr("colkeysinfo"),h=this.attr("hsinfo"),_=h.nDynamicCols,u=this.attr("cols"),p=this.attr("headercols"),C=t<a?t:a,g=t<a?a:t;for(l=C;l<=g;l++)this._removeColStyleClassName(l);var f,L,m,E=[],b=this._getQCellCol(t).attr("style"),y=this.attr("rows");if(!r._.isEmpty(b)){if(r._.isObject(b.header))for(m=Object.keys(b.header),f=0;f<m.length;f++)for(l=0;l<this.attr("headerrows");l++)null!==(L=this._getCellDOM(l,t))&&r.$(L).css(m[f],"");if(r._.isObject(b.data))for(m=Object.keys(b.data),f=0;f<m.length;f++)for(l=this.attr("headerrows");l<y;l++)null!==(L=this._getCellDOM(l,t))&&r.$(L).css(m[f],"")}if(!0===this.attr("useRemoveUI")){var v=this.getProperties().columns[t-p];for(t>a?(this.getProperties().columns.splice(t-p,1),this.getProperties().columns.RT_insert(a-p,v)):(this.getProperties().columns.RT_insert(a+1-p,v),this.getProperties().columns.splice(t-p,1)),l=0;l<this.getProperties().columns.length;l++)E.push(r._.clone(this.getProperties().columns[l]))}r._.each([c,this.attr("colsprops"),this.attr("colwidths"),this.attr("colwidthsperpixel"),this.attr("colkeys"),this.attr("colids"),this.attr("headertext")],(function(r){r.RT_insertArray(a-(t<a?e-1:0),r.splice(t,e))})),!0===this.attr("useRemoveUI")&&(this.attr("colsprops",E,"array"),this.setPropertiesColumn(E)),d.clear(),r._.each(this.attr("colkeys"),(function(t,e){!1===d.containsKey(t)&&d.put(t,new window._QHashSet),d.get(t).add(e)}));for(var w=r._.map(c,(function(t){return t.attr("id")})),x=r._.range(0,u),Q=[],S=0;S<w.length;S++)Q.push([w[S],x[S]]);this.attr("colidsinfo",r._.fromPairs(Q),"object"),this._calculateDynamicCols(),_>h.nDynamicCols?this._removeDynamicCols(_-h.nDynamicCols):_<h.nDynamicCols&&this._addDynamicCols(h.nDynamicCols-_),this.attr("frozencols")>0&&this._setCellGroupCSS("col","frozen"),this._setCellGroupCSS("col","normal"),this._resizeHScrollbar(),this._updateHSInfo(),this._clearDynamicCSS("col","data");var k=this._getSyncInfo("col"),T=this._popColSyncInfos(t,e);if(t<a){var R=r._.range(t+e,a+1);this._pullColSyncInfo(r._.filter(R,(function(t){return k.containsKey(t)})),e),i=r._.range(a-(e-1),a+1),this._putColSyncInfos(i,T)}else{var A=r._.range(a,t).sort(r.st.desc);this._pushColSyncInfo(r._.filter(A,(function(t){return k.containsKey(t)})),e),i=r._.range(a,a+e),this._putColSyncInfos(i,T)}for(this._refreshDCs(),o||(r._.each(i,(function(t){s=r._.union(s,r._.flatten(n._getColCellDOMs(t)))})),r.$(s).effect("bounce",{distance:"5",times:1})),this._resetAriaLabel(),l=C;l<=g;l++)this._setRoleTitle(l);return setTimeout((function(){n._trigger("aftermovecol",{beforecol:t,cound:e,aftercol:a})})),!0},r.QCELL.BasicQCELL.prototype._moveCols=function(t,e,a,o){var i=this,s=r._.range(t,t+e),l=this.attr("cols"),n=this.attr("headercols");if(t!==a&&(a<t||a>=t+e)&&r._.every(s,(function(t){return t>=n&&t<l&&(!!o||i._getQCellCol(t).attr("move"))})))return this._moveColsSub(t,e,a,o);if(t!==a&&(a<t||a>=t+e)&&r._.every(s,(function(t){return t>=n&&t<l&&(!!o||i._getQCellCol(t).attr("topmove"))}))){var c,d=this._getCellDOM(0,t);if(c=Number(null===d?i.attr("colmoveshadow").attr("data-endcol"):d.getAttribute("data-endcol")),!0!==this._getQCellCol(t).attr("topmove")||!0!==this._getQCellCol(a).attr("topmove"))return!1;if(!isNaN(c)){if(t<a&&a<t+c)return!1;e=c}if(t<a){var h=this._getCellDOM(0,a),_=Number(h.getAttribute("data-endcol"));isNaN(_)||(a+=_,a--)}return this._moveColsSub(t,e,a,o)}return!1},r.QCELL.BasicQCELL.prototype._setFormatStatic=function(t,e){var a,o=!0;try{if(void 0!==e.type&&!1===r._.isString(e.type))a="string",r.QCELL.log("err","QCELL.create",'Please check "formatstatic.type"\'s type is "'+a+'".'),o=!1;else switch(e.type){case"date":void 0===e.origin&&!1===r._.isString(e.origin)?(a="string",r.QCELL.log("err","QCELL.create",'Please check "formatstatic.origin"\'s type is "'+a+'".'),o=!1):void 0===e.rule&&!1===r._.isString(e.rule)&&(a="string",r.QCELL.log("err","QCELL.create",'Please check "formatstatic.rule"\'s type is "'+a+'".'),o=!1);break;case"number":case"string":void 0===e.rule&&!1===r._.isString(e.rule)&&(a="string",r.QCELL.log("err","QCELL.create",'Please check "formatstatic.rule"\'s type is "'+a+'".'),o=!1);break;case"custom":void 0===e.callback&&!1===r._.isFunction(e.origin)&&(a="callback",r.QCELL.log("err","QCELL.create",'Please check "formatstatic.origin"\'s type is "'+a+'".'),o=!1)}o&&(this._getQCellCol(t).attr("formatstatic",e,"object"),this._refreshDCs()),o=!0}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._setCellLabel",t.message),o=!1}return o},r.QCELL.BasicQCELL.prototype._getColExportDataType=function(t){try{return this._getQCellCol(t).attr("exportdatatype")}catch(t){return""}},r.QCELL.BasicQCELL.prototype._getHeaderTextAlign=function(t){return this._getQCellCol(t).attr("header_text_algin")},r.QCELL.BasicQCELL.prototype._getDataTextAlign=function(t){return void 0===this._getQCellCol(t).attr("data_text_algin")||null===this._getQCellCol(t).attr("data_text_algin")?"left":this._getQCellCol(t).attr("data_text_algin")},r.QCELL.BasicQCELL.prototype._useDataTextAlign=function(t){return this._getQCellCol(t).attr("usedatatextalign")},r.QCELL.BasicQCELL.prototype._getColPrevProperty=function(t){return void 0===this._getQCellCol(t)||null===this._getQCellCol(t)||this._getQCellCol(t).attr("prev_param")},r.QCELL.BasicQCELL.prototype._getColTabindex=function(t){return this._getQCellCol(t).attr("tabindex")},r.QCELL.BasicQCELL.prototype._removeContextMenu=function(){if(!1===r._.isNull(this.attr("contextmneuui"))){if(void 0===this.attr("contextmneuui"))return;this.attr("contextmneuui").off("mousemove"),this.attr("contextmneuui").off("mouseleave"),this.attr("contextmneuui").remove(),this.attr("contextmneuui",null,"jquery"),this.attr("contextmenuid","","string"),r.$("rt-qc-contextmenu-root").remove()}var t=document.getElementsByClassName("rt-qc-contextmenu-root");if(null!=t)for(var e=0;e<t.length;e++)t[e].remove()},r.QCELL.BasicQCELL.prototype._initContextMenu=function(){var t=this.attr("id")+"._setContextMenu";try{return this._removeContextMenu(),this.attr("contextmenu",{},"object"),this.attr("contextmenuheader",{},"object"),this.attr("contextmenudata",{},"object"),this.attr("contextmenudisable",[],"array"),this.attr("contextmenuheaderdisable",[],"array"),this.attr("contextmenudatadisable",[],"array"),!0}catch(e){return r.QCELL.log("err",t,e.message),!1}},r.QCELL.BasicQCELL.prototype._setContextMenu=function(t){var e=this.attr("id")+"._setContextMenu";try{return this.attr("contextmenu",t,"object"),this.attr("contextmenuheader",t.header,"object"),this.attr("contextmenudata",t.data,"object"),this.attr("prevcontextmenu",r._.clone(t),"object"),this._createContextMenu(),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._createContextMenu=function(t){var e=this,a=this.attr("layoutsize").container.clientX,o=this.attr("layoutsize").container.clientY,i=this.attr("layoutsize").colheader.offsetHeight,s=this.attr("layoutsize").colheader.offsetLeft,l=this.attr("layoutsize").root,n=l.offsetWidth+a,c=l.offsetHeight+o,d=r.QCELL.def.css,h=this.attr("contextmenuheader"),_=this.attr("contextmenudata"),u=this.getID();r.$(document).bind("contextmenu",(function(t){if(e=r.QCELL.getInstance(u),r.$(t.target).hasClass("rt-qc-colheader-area")){if(r._.isNull(h)||r._.isUndefined(h))return!0;if(t.target.className.indexOf(d.CONTEXTMENU)>-1)t.preventDefault();else{if(r.$(t.target).hasClass("rt-qc-cell")){if(t.target.id.split("_")[0]!==u)return}else if(r.$(t.target).hasClass("rt-qc-colheader-area")&&t.target.parentElement.id.split("_")[0]!==u)return;if(t.preventDefault(),t.stopPropagation(),e._removeContextMenu(),e._initLayoutSize(),r._.isNull(e.attr("contextmneuui"))||void 0===e.attr("contextmneuui")){var l=document.createElement("ul").cloneNode();l.id=h.id,l.className+=d.CONTEXTMENU_AREA+" "+d.CONTEXTMENU_ROOT,e.attr("contextmneuui",r.$(e._createContextMenuContents(l,h.contents,1,h.id+"-")),"jquery")}e._calculateContextMenuPosition(t,e.attr("contextmneuui")),e.attr("contextmneuui").appendTo(e.attr("parent")),e.attr("contextmneuui").on("mousemove",(function(t){var a=t.target.parentNode;r.util.hasClass(a,d.CONTEXTMENU_MENU)||r.util.hasClass(a,d.CONTEXTMENU_SUB_MENU)?e.attr("contextmenuid",r.$(a).attr("id"),"string"):(a=a.parentNode,(r.util.hasClass(a,d.CONTEXTMENU_MENU)||r.util.hasClass(a,d.CONTEXTMENU_SUB_MENU))&&e.attr("contextmenuid",r.$(a).attr("id"),"string"))})),e.attr("contextmneuui").on("mouseleave",(function(t){e.attr("contextmenuid","","string")}))}}else{if(!(t.pageY>i+o&&t.pageY<c&&t.pageX>s+a&&t.pageX<n))return!0;if(r._.isNull(_)||r._.isUndefined(_))return!0;if(t.target.className.indexOf(d.CONTEXTMENU)>-1)t.preventDefault();else{if(r.$(t.target).hasClass("rt-qc-cell")&&t.target.id.split("_")[0]!==u)return;if(e._removeContextMenu(),t.preventDefault(),(r._.isNull(e.attr("contextmneuui"))||void 0===e.attr("contextmneuui"))&&e.attr("contextmneuui",e._createContextMenuLayout(document.createElement("ul"),t),"jquery"),void 0===e.attr("contextmneuui")||null===e.attr("contextmneuui"))return;e._calculateContextMenuPosition(t,e.attr("contextmneuui")),e.attr("contextmneuui").appendTo(e.attr("parent")),e.attr("contextmneuui").on("mousemove",(function(t){var a=t.target.parentNode;r.util.hasClass(a,d.CONTEXTMENU_MENU)||r.util.hasClass(a,d.CONTEXTMENU_SUB_MENU)?e.attr("contextmenuid",r.$(a).attr("id"),"string"):(a=a.parentNode,(r.util.hasClass(a,d.CONTEXTMENU_MENU)||r.util.hasClass(a,d.CONTEXTMENU_SUB_MENU))&&e.attr("contextmenuid",r.$(a).attr("id"),"string"))})),e.attr("contextmneuui").on("mouseleave",(function(t){e.attr("contextmenuid","","string")}))}}}))},r.QCELL.BasicQCELL.prototype._calculateContextMenuPosition=function(t,e){if(void 0!==e){var a,o,i=r.QCELL.def.css,s=this.attr("layoutsize").container.clientX,l=this.attr("layoutsize").container.clientY,n=this.attr("layoutsize").root.offsetHeight+l,c=this.attr("layoutsize").root.offsetWidth+s,d=r.$("."+i.CONTEXTMENU_ROOT).height()+this.attr("layoutsize").hscrollbar.offsetHeight,h=r.$("."+i.CONTEXTMENU_ROOT).width()+this.attr("layoutsize").vscrollbar.offsetWidth,_=parseInt(t.pageY),u=parseInt(t.pageX),p=0;(this.attr("useall")||this.attr("usetreeall"))&&(p=s),o=c<u+h?c-h+"px":u-p+"px",a=n<_+d?n-d+"px":_-l+this.attr("layoutsize").root.offsetTop+"px",e.css({left:o,top:a})}},r.QCELL.BasicQCELL.prototype._createContextMenuLayout=function(t,e){var a=r.QCELL.def.css,o=t.cloneNode(),i=this.attr("contextmenu"),s=this.attr("contextmenudata"),l=e.target,n=parseInt(l.getAttribute("data-col"));if(o.id=void 0===i.id?this.getID()+"_contextmenu":this.getID()+"_"+i.id,o.className+=a.CONTEXTMENU_AREA+" "+a.CONTEXTMENU_ROOT,(r._.isNull(s.except)||r._.isUndefined(s.except))&&!r._.isNull(s.base)&&!r._.isUndefined(s.base))return r.$(this._createContextMenuContents(o,s.base.contents,1,s.base.id+"-"));if(!r._.isNull(s.except)&&!r._.isUndefined(s.except)){for(var c=null,d=!1,h=0;h<s.except.length;h++){var _=s.except[h];if(n===_.col){d=!0,c=_;break}}return d?r.$(this._createContextMenuContents(o,c.contents,1,c.id+"-")):r.$(this._createContextMenuContents(o,s.base.contents,1,s.base.id+"-"))}},r.QCELL.BasicQCELL.prototype._createContextMenuContents=function(t,e,a,o){var i=r.QCELL.def.css,s=t.cloneNode(),l=this.attr("contextmenudisable"),n=1;s.style.zIndex=a;for(var c=0;c<e.length;c++){var d=e[c],h=document.createElement("li"),_=document.createElement("span"),u=_.cloneNode(),p=_.cloneNode(),C=o+n;if(!0===d.disabled&&!1===r._.contains(l,C)&&l.push(C),!1===r._.isUndefined(d.divine))r._.isBoolean(d.divine)&&!0===d.divine&&(h.className+=i.CONTEXTMENU_DIVINE);else{if(n++,h.id=C,h.className+=i.CONTEXTMENU_ITEM,_.className+=i.CONTEXTMENU_ITEM_IMG,u.className+=i.CONTEXTMENU_ITEM_LABEL,p.className+=i.CONTEXTMENU_ITEM_SUB,!1===r._.isUndefined(d.icon)?_.appendChild(this._createFontAwesomeElementImg(d.icon)):_.appendChild(document.createTextNode(" ")),!1===r._.isUndefined(d.label)?u.appendChild(document.createTextNode(d.label)):u.appendChild(document.createTextNode(" ")),p.appendChild(document.createTextNode(" ")),h.appendChild(_),h.appendChild(u),h.appendChild(p),!1===r._.isUndefined(d.callback)&&(r._.isFunction(d.callback)?this._addContextMenuClickEvent(h,d.callback,d):r._.isString(d.callback)&&this._addContextMenuStringClickEvent(h,d.callback,d)),this._addContextMenuClickEventInit(h),!0===r._.isUndefined(d.items))h.className+=" "+i.CONTEXTMENU_MENU;else{var g=document.createElement("ul");g.className+=i.CONTEXTMENU_AREA,g=this._createContextMenuContents(g,d.items,a+1,C+"-"),h.className+=" "+i.CONTEXTMENU_SUB_MENU,h.appendChild(g)}for(var f=0;f<l.length;f++)C===l[f]&&(h.className+=" "+i.CONTEXTMENU_DISABLE,!1===r._.isUndefined(d.callback)&&r._.isFunction(d.callback)&&r.$(h).off("click",d.callback),r.$(h).off("click"));this._addContextMenuMouseMoveEvent(h,i)}s.appendChild(h)}return s},r.QCELL.BasicQCELL.prototype._createFontAwesomeElementImg=function(t){var e,r="</i>";if(t.indexOf("<i")>-1&&t.indexOf(r)>-1){var a=t.substr(t.indexOf("<i"),t.lastIndexOf(r))+r,o=a.slice(a.indexOf('"')+1,a.lastIndexOf('"'));(e=document.createElement("i")).className+=o}else(e=document.createElement("img")).src=t;return e},r.QCELL.BasicQCELL.prototype._addContextMenuClickEvent=function(t,e,a){r.$(t).on("click",this.attr("eventparam"),(function(t){e(a)}))},r.QCELL.BasicQCELL.prototype._addContextMenuStringClickEvent=function(t,e,a){r.$(t).on("click",this.attr("eventparam"),(function(t){window[e](a)}))},r.QCELL.BasicQCELL.prototype._addContextMenuClickEventInit=function(t){var e=this;r.$(t).on("click",this.attr("eventparam"),(function(t){e._removeContextMenu()}))},r.QCELL.BasicQCELL.prototype._addContextMenuMouseMoveEvent=function(t,e){var a,o;r.$(t).mouseenter((function(t){var i=r.$(this.parentNode).width(),s=r.$(this).parent().children(),l=0;for(a=r.$(this).children(),o=0;o<s.length;o++)if(s[o]===r.$(this).get(0)){o<s.length-1&&(l=-1);break}for(o=0;o<a.length;o++){var n=r.$(a[o]);n.hasClass(e.CONTEXTMENU_AREA)&&("auto"===n.css("left")&&n.css({left:i+"px",top:l+"px"}),n.css({display:"inline-block"}))}})),r.$(t).mouseleave((function(t){for(a=r.$(this).children(),o=0;o<a.length;o++){var i=r.$(a[o]);i.hasClass(e.CONTEXTMENU_AREA)&&i.css({display:"none"})}}))},r.QCELL.BasicQCELL.prototype._setDisableContextmenu=function(t){var e,r=this.attr("contextmenudisable"),a=[];for(t=t.sort().reverse(),e=0;e<r.length;e++)for(var o=t.length;o>-1;o--)r[e]===t[o]&&a.push(t[o]);if(a.length>0)for(e=0;e<a.length;e++)t.splice(a[e],1);for(e=0;e<t.length;e++)r.push(t[e]);return r.sort(),this._removeContextMenu(),!0},r.QCELL.BasicQCELL.prototype._setAbleContextmenu=function(t){var e,r=this.attr("contextmenudisable"),a=[];for(t=t.sort().reverse(),e=0;e<r.length;e++)for(var o=t.length;o>-1;o--)r[e]===t[o]&&a.push(t[o]);for(e=0;e<t.length;e++)r.splice(a[e],1);return this._removeContextMenu(),!0},r.QCELL.BasicQCELL.prototype._getContextmenuId=function(){return this.attr("contextmenuid")},r.QCELL.BasicQCELL.prototype._isContextMenu=function(){try{return r._.isEmpty(this.attr("contextmenu").data)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._isContextMenu",t.message),!1}},r.QCELL.BasicQCELL.prototype._createCols=function(){var t,e,r=!0,a=this.attr("colsprops"),o=a.length,i=this.attr("qcellcols"),s=this.attr("rowheaders").length;for(t=0;t<s;t++){if(null===(e=this._createHeaderCol({key:"array"===this.attr("data").type?-1:""}))){r=!1;break}i.push(e)}if(r){for(t=0;t<o;t++){if(null===(e=this._createCol(t,a[t]))){r=!1;break}i.push(e)}r&&this._setHSRange()}return r},r.QCELL.BasicQCELL.prototype._createHeaderCol=function(t){try{return r.QCELL.BasicQCELL.QCellCol.create(r._.extend(r._.clone(t),{parent:this,id:"col_"+this.attr("qcellcols").length,width:this.attr("headercolwidth")+"px",move:!1}))}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createHeaderCol",t.message),null}},r.QCELL.BasicQCELL.prototype._createCol=function(t,e){try{return r.QCELL.BasicQCELL.QCellCol.create(t,r._.extend(r._.clone(e),{parent:this,id:"col_"+this.attr("qcellcols").length}))}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createCol",t.message),null}},r.QCELL.BasicQCELL.prototype._create=function(){if(this._initProps()&&this._initData()&&this._initRowheaderData()&&this._createElement()){void 0!==this.attr("groupdata")&&this.setGroup(this.attr("groupdata"));var t=this;return!0!==this.attr("bRebuildWithPrevData")&&setTimeout((function(){t._trigger("aftercreated")}),0),setTimeout((function(){t._trigger("viewport_changed")}),0),!0}return!1},r.QCELL.BasicQCELL.prototype._createElement=function(){try{return this._createHeaderMergeInfo()&&this._removeElement()&&this._createLayout()&&this._initLayoutSize()&&this._adjustFrozenCount()&&this._calculateDynamicCols()&&this._calculateDynamicRows()&&this._createFlesh()&&this._resizeHScrollbar()&&this._resizeVScrollbar()&&this._updateHSInfo()&&this._updateVSInfo()&&this._createDataMergeInfo()&&this._updateMerge()}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createElement",t.message),!1}},r.QCELL.BasicQCELL.prototype._removeElement=function(){try{return!!this._removeScrollbarUI()&&(r.$(this.attr("parent")).empty(),this.attr("elementpool").clear(),this.attr("cellmatrix").clear(),this.attr("focuscell",null,"element"),!0)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._removeElement",t.message),!1}},r.QCELL.BasicQCELL.prototype._removeScrollbarUI=function(){try{var t=this.attr("hsinfo"),e=this.attr("vsinfo"),a=this.attr("elementpool");return t.bHScroll&&a.containsKey("$jqhscrollbar")&&a.get("$jqhscrollbar").rt_qc_mCSbar("destroy"),e.bVScroll&&a.containsKey("$jqvscrollbar")&&a.get("$jqvscrollbar").rt_qc_mCSbar("destroy"),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._removeScrollbarUI",t.message),!1}},r.QCELL.BasicQCELL.prototype._setRoleTitle=function(t){if(this.attr("useall")||this.attr("usetreeall")){var e=void 0!==t?t:this.attr("elementpool").get("viewportinner");if(r._.isElement(e)){e.setAttribute("role","grid");var a,o="",i="",s=this.attr("rowheaderstitle");if(null!=s)for(a=0;a<s.length;a++)""!==o&&(o+=","),o+=i=s[a];for(a=this.getCols("header");a<this.getCols();a++)""!==(i=this._getTitleHeader(a))&&(""!==o&&(o+=","),o+=i);o="그리드 테이블 "+o,e.setAttribute("aria-label",o)}}},r.QCELL.BasicQCELL.prototype._createLayout=function(){var t=this.attr("parent");if(r._.isElement(t)){if(t.appendChild(this._createRoot(document.createElement("div"))),this._initEvent())return!0;r.$(t).empty()}return!1},r.QCELL.BasicQCELL.prototype._createRoot=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.ROOT,i.setAttribute("id",o.areaname.ROOT+"-"+a),i.appendChild(this._createPanel(t)),i.appendChild(this._createContainer(t)),i.appendChild(this._createPaginationPanel(t)),i.appendChild(this._createSheetPanel(t)),e.put("root",i),e.put("$root",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createPanel=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.PANEL,i.setAttribute("id",o.areaname.PANEL+"-"+a),i.appendChild(this._createGroupUIArea(t)),e.put("panel",i),e.put("$panel",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createGroupUIArea=function(t){var e=this.attr("id"),a=r.QCELL.def,o=t.cloneNode();return o.className+=a.css.GROUPUI,o.setAttribute("id",a.areaname.GROUPUI+"-"+e),r.$(o).droppable({hoverClass:"hover"}),o.appendChild(this._createGroupUIInner()),o},r.QCELL.BasicQCELL.prototype._createGroupUIInner=function(){var t=document.createElement("ol"),e=this.attr("id"),a=r.QCELL.def,o=a.css.GROUPUI_INNER+"-"+e,i=this;return t.className+=a.css.GROUPUI_INNER,t.setAttribute("id",o),t.appendChild(this._createGroupUIPlaceholder()),r.$(t).sortable({axis:"x",containment:"parent",stop:function(t,e){if(!e.item.hasClass(".placeholder")){var a=Number(e.item.attr("data-col")),o=i.attr("colkeys")[a];if(i.attr("groupuiinfo",[],"array"),r.$(this).find("li.placeholder").remove(),r.$(e.item).hasClass(r.QCELL.def.css.CELL)&&r.$(e.item).remove(),0===r.$(this).find("li[data-column="+o+"]").length){var s=r.$("<span></span>").addClass(r.QCELL.def.css.UI_ICON+" "+r.QCELL.def.css.UI_ICON_CLOSE).on("click",(function(e){var a=e.target.parentNode,o=t.target;r.$(a).remove(),0===r.$(o).find("li").length?(o.appendChild(i._createGroupUIPlaceholder()),i._clearGroup()):(i.attr("groupuiinfo",[],"array"),i._setGroupUIInfo(r.$(o).find("li").not(".placeholder")))})),l=r.$("<li></li>").attr("data-column",o).attr("data-col",a).append(s).append(e.item[0].innerText);r.$(t.target).append(l)}i._setGroupUIInfo(r.$(this).find("li").not(".placeholder"))}}}),t},r.QCELL.BasicQCELL.prototype._createGroupUIPlaceholder=function(){var t=document.createElement("li");return t.className="placeholder",t.innerHTML="이곳에 그룹화할 컬럼을 드롭해 주십시오",t},r.QCELL.BasicQCELL.prototype._createContainer=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.CONTAINER,i.setAttribute("id",o.areaname.CONTAINER+"-"+a),i.setAttribute("tabindex","0"),i.appendChild(this._createViewPort(t)),i.appendChild(this._createFooterRowHeader(t)),i.appendChild(this._createFooter(t)),i.appendChild(this._createEdgeHeader(t)),i.appendChild(this._createRowHeader(t)),i.appendChild(this._createColHeader(t)),i.appendChild(this._createHScrollbar(t)),i.appendChild(this._createVScrollbar(t)),e.put("container",i),e.put("$container",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createSheetPanel=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=" "+o.css.SHEETPANEL,i.setAttribute("id",o.areaname.SHEETPANEL+"-"+a),i.appendChild(this._createSheetPanelInner(t)),e.put("sheetpanel",i),e.put("$sheetpanel",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createSheetPanelInner=function(t){var e=r.QCELL.def,a=this.attr("id"),o=t.cloneNode(),i=document.createElement("span");return i.className+=" "+e.css.SHEETPANEL_INNER_SPAN,i.setAttribute("id",e.areaname.SHEETPANEL+"-span-"+a),o.appendChild(i),o.className+=" "+e.css.SHEETPANEL_INNER,o},r.QCELL.BasicQCELL.prototype._createPaginationPanel=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode(),s=this.attr("paginationinfo");if(i.className+=o.css.PAGINATIONPANEL,i.setAttribute("id",o.areaname.PAGINATIONPANEL+"-"+a),e.put("paginationpanel",i),e.put("$paginationpanel",r.$(i)),!1===r._.isUndefined(s.pageunit)){var l=this._calculatePaginationInfoCreate();i.appendChild(this._createPaginationInner(t)),l&&(this._updateCurrentData(r._.clone(s.result)),this._initRowheaderData())}return i},r.QCELL.BasicQCELL.prototype._createPaginationInner=function(t){var e=r.QCELL.def,a=t.cloneNode();return a.className+=e.css.PAGINATION_INNER,a.style.width=a.style.height="100%",a.appendChild(this._createPaginationCenterUI(t.cloneNode())),a.appendChild(this._createPaginationRightUI(t.cloneNode())),a},r.QCELL.BasicQCELL.prototype._createPaginationCenterUI=function(t){var e,a,o,i,s,l,n,c,d,h=r.QCELL.def,_=this.attr("eventparam"),u=this.attr("paginationinfo"),p=t.cloneNode(),C=document.createElement("input"),g=C.cloneNode(),f=document.createElement("span"),L=document.createElement("select"),m=Math.floor((u.pageindex-1)/u.pagecount),E=Math.floor(u.lastindex/u.pagecount),b=m*u.pagecount,y=m*u.pagecount+u.pagecount>u.lastindex?u.lastindex:m*u.pagecount+u.pagecount,v="container-"+this.getID();a=(e=this.attr("usedynamic")?document.createElement("button"):document.createElement("span")).cloneNode(),o=e.cloneNode(),i=e.cloneNode(),s=e.cloneNode();var w="",x=" ";if(this.attr("usedynamic")&&(a.setAttribute("tabindex","0"),o.setAttribute("tabindex","0"),i.setAttribute("tabindex","0"),s.setAttribute("tabindex","0"),w=" rt-qc-pagination-nav-btn-button",x=" rt-qc-pagination-nav-pager-button "),l=function(t){var e=t.data.target,r=parseInt(t.target.getAttribute("movepage")),a=t.target.getAttribute("movestate");e&&(e._movePage(r),e._trigger("movepage",a),null!=(d=document.getElementById(v))&&d.focus())},n=function(t){var e=t.data.target;e&&(e._movePage(e.attr("paginationinfo").pageindex,Number(r.$(t.target).val())),null!=(d=document.getElementById(v))&&d.focus())},p.className+=h.css.PAGINATION_UI_CENTER,a.appendChild(document.createTextNode("<<")),a.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,a.style.color="#ffffff",a.setAttribute("id","rt-qc-pagination-nav-first"),u.firstpage?(a.style.cursor="pointer",a.setAttribute("movepage",1),a.setAttribute("movestate","move-first"),r.$(a).on("click",_,l)):a.style.opacity="0.3",o.appendChild(document.createTextNode("<")),o.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,o.style.color="#ffffff",o.setAttribute("id","rt-qc-pagination-nav-prev"),u.prevpage?(o.style.cursor="pointer","simple"===u.mode?o.setAttribute("movepage",u.pageindex-1):m>0&&o.setAttribute("movepage",b),o.setAttribute("movestate","move-prev"),r.$(o).on("click",_,l)):o.style.opacity="0.3",i.appendChild(document.createTextNode(">")),i.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,i.style.color="#ffffff",i.setAttribute("id","rt-qc-pagination-nav-next"),u.nextpage?(i.style.cursor="pointer","simple"===u.mode?i.setAttribute("movepage",u.pageindex+1):m<E&&i.setAttribute("movepage",y+1),i.setAttribute("movestate","move-next"),r.$(i).on("click",_,l)):i.style.opacity="0.3",s.appendChild(document.createTextNode(">>")),s.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,s.style.color="#ffffff",s.setAttribute("id","rt-qc-pagination-nav-last"),u.lastpage?(s.style.cursor="pointer",s.setAttribute("movepage",u.lastindex),s.setAttribute("movestate","move-last"),r.$(s).on("click",_,l)):s.style.opacity="0.3",p.appendChild(a),p.appendChild(o),"simple"===u.mode)C.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_INPUT,C.setAttribute("value",u.pageindex),C.setAttribute("size",String(u.lastindex).length),C.setAttribute("maxlength",String(u.lastindex).length),C.style.textAlign="right",r.$(C).on("keydown",_,r.st.eventProcess),f.className+=h.css.PAGINATION_NAV,f.style.color="#ffffff",f.appendChild(document.createTextNode(" / "+u.lastindex)),p.appendChild(C),p.appendChild(f);else if(u.pageindex>0)for(var Q=b;Q<y;Q++)(c=e.cloneNode()).appendChild(document.createTextNode(Q+1)),c.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_PAGER+" "+x,u.pageindex===Q+1?c.className+=h.css.PAGINATION_NAV_PAGER_NOW:(c.style.cursor="pointer",c.setAttribute("movepage",Q+1),c.setAttribute("movestate","move-"+(Q+1)),c.setAttribute("tabindex","0"),r.$(c).on("click",_,l)),p.appendChild(c);else(c=e.cloneNode()).appendChild(document.createTextNode(1)),c.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_NOW_BTN,p.appendChild(c);return p.appendChild(i),p.appendChild(s),!1===r._.isUndefined(this.attr("paginationinfo").unitlist)&&r._.isArray(this.attr("paginationinfo").unitlist)&&(L.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_SELECT,L.title="QCELL Datas in Page",L.setAttribute("tabindex","0"),r._.each(this.attr("paginationinfo").unitlist,(function(t){var e=document.createElement("option");e.setAttribute("value",t),e.appendChild(document.createTextNode(t)),t===u.pageunit&&e.setAttribute("selected",!0),L.appendChild(e)})),r.$(L).on("change",_,n),p.appendChild(L)),!0===u.extendmove&&"extend"===u.mode&&(g.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_INPUT+" "+h.css.PAGINATION_NAV_EXTEND_MOVE,g.setAttribute("value",0===u.pageindex?1:u.pageindex),g.setAttribute("size",String(u.lastindex).length),g.setAttribute("maxlength",String(u.lastindex).length),g.style.textAlign="right",r.$(g).on("keydown",_,r.st.eventProcess),p.appendChild(g)),p},r.QCELL.BasicQCELL.prototype._createPaginationRightUI=function(t){var e=r.QCELL.def,a=this.attr("paginationinfo"),o=t.cloneNode(),i=document.createElement("span"),s=(a.pageindex>0?a.pageunit*(a.pageindex-1)+1:a.pageindex)+" - "+(a.pageindex*a.pageunit>a.datacount?a.datacount:a.pageindex*a.pageunit)+" of "+a.datacount;return o.className+=e.css.PAGINATION_UI_RIGHT,i.className+=e.css.PAGINATION_NAV+" "+e.css.PAGINATION_NAV_INFO,i.appendChild(document.createTextNode(s)),o.appendChild(i),o},r.QCELL.BasicQCELL.prototype._createViewPort=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.VIEWPORT,i.setAttribute("id",o.areaname.VIEWPORT+"-"+a),e.put("viewport",i),e.put("$viewport",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createFooterRowHeader=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.FOOTERROWHEADER,i.setAttribute("id",o.areaname.FOOTERROWHEADER+"-"+a),e.put("footerrowheader",i),e.put("$footerrowheader",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createFooter=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.FOOTER,i.setAttribute("id",o.areaname.FOOTER+"-"+a),e.put("footer",i),e.put("$footer",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createEdgeHeader=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.EDGEHEADER,i.setAttribute("id",o.areaname.EDGEHEADER+"-"+a),(this.attr("useall")||this.attr("usetreeall"))&&i.setAttribute("aria-hidden","true"),e.put("edgeheader",i),e.put("$edgeheader",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createRowHeader=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.ROWHEADER,i.setAttribute("id",o.areaname.ROWHEADER+"-"+a),(this.attr("useall")||this.attr("usetreeall"))&&i.setAttribute("aria-hidden","true"),e.put("rowheader",i),e.put("$rowheader",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createColHeader=function(t){var e=this.attr("elementpool"),a=this.attr("id"),o=r.QCELL.def,i=t.cloneNode();return i.className+=o.css.COLHEADER+" "+o.css.COLHEADER_AREA,i.setAttribute("id",o.areaname.COLHEADER+"-"+a),e.put("colheader",i),e.put("$colheader",r.$(i)),i},r.QCELL.BasicQCELL.prototype._createHScrollbar=function(t){var e,a=this.attr("elementpool"),o=this.attr("id"),i=r.QCELL.def;return(e=t.cloneNode()).className+=i.css.HSCROLLBAR,e.setAttribute("id",i.areaname.HSCROLLBAR+"-"+o),a.put("hscrollbar",e),a.put("$hscrollbar",r.$(e)),e.appendChild(this._createJqHScrollbar(t)),e},r.QCELL.BasicQCELL.prototype._createVScrollbar=function(t){var e,a=this.attr("elementpool"),o=this.attr("id"),i=r.QCELL.def;return(e=t.cloneNode()).className+=i.css.VSCROLLBAR,e.setAttribute("id",i.areaname.VSCROLLBAR+"-"+o),a.put("vscrollbar",e),a.put("$vscrollbar",r.$(e)),e.appendChild(this._createJqVScrollbar(t)),e},r.QCELL.BasicQCELL.prototype._createJqHScrollbar=function(t){var e=this.attr("elementpool"),a=t.cloneNode();return e.put("jqhscrollbar",a),e.put("$jqhscrollbar",r.$(a)),a},r.QCELL.BasicQCELL.prototype._createJqVScrollbar=function(t){var e,a=this.attr("elementpool");return e=t.cloneNode(),a.put("jqvscrollbar",e),a.put("$jqvscrollbar",r.$(e)),e},r.QCELL.BasicQCELL.prototype._createHScrollThumb=function(t){try{var e=this.attr("elementpool"),a=r.QCELL.def,o=e.get("jqhscrollbar"),i=t.cloneNode();return i.className+=a.css.HSCROLL_THUMB,i.style.height="1px",e.put("hscrollthumb",i),e.put("$hscrollthumb",r.$(i)),o.appendChild(i),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createHScrollThumb",t.message),!1}},r.QCELL.BasicQCELL.prototype._createVScrollThumb=function(t){try{var e=this.attr("elementpool"),a=r.QCELL.def,o=e.get("jqvscrollbar"),i=t.cloneNode();return i.className+=a.css.VSCROLL_THUMB,i.style.width="1px",e.put("vscrollthumb",i),e.put("$vscrollthumb",r.$(i)),o.appendChild(i),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createVScrollThumb",t.message),!1}},r.QCELL.BasicQCELL.prototype._createFlesh=function(){try{var t=!1;if(this._initCellMatrix()){var e=this.attr("headercols"),a=this.attr("footerrows"),o=[],i=document.createDocumentFragment(),s=this.attr("elementpool"),l=document.createElement("div"),n=s.get("root"),c=s.get("container"),d=s.get("paginationpanel");i.appendChild(c),e>0&&(o.push("edgeheader"),o.push("rowheader")),o.push("colheader"),o.push("viewport"),a>0&&(e>0&&o.push("footerrowheader"),o.push("footer")),o.push("hscrollthumb"),o.push("vscrollthumb");for(var h=0,_=o.length;h<_;h++){var u=o[h];if("edgeheader"===u?t=this._createEdgeHeaderInner(l):"rowheader"===u?t=this._createRowHeaderInner(l):"colheader"===u?t=this._createColHeaderInner(l):"viewport"===u?t=this._createViewPortInner(l):"footerrowheader"===u?t=this._createFooterRowHeaderInner(l):"footer"===u?t=this._createFooterInner(l):"hscrollthumb"===u?t=this._createHScrollThumb(l):"vscrollthumb"===u&&(t=this._createVScrollThumb(l)),!1===t)break}t&&(this._syncCellMatrix("row"),n.insertBefore(i,d))}return t}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createFlesh",t.message),!1}},r.QCELL.BasicQCELL.prototype._createEdgeHeaderInner=function(t){try{var e=this.attr("layoutsize"),a=this.attr("elementpool"),o=r.QCELL.def.css,i=a.get("edgeheader"),s=t.cloneNode();return s.className+=o.EDGEHEADER_INNER,s.style.width=e.edgeheader.clientWidth+"px",s.style.height=e.edgeheader.clientHeight+"px",a.put("edgeheaderinner",s),a.put("$edgeheaderinner",r.$(s)),!!this._createEdgeHeaderCells(t)&&(i.appendChild(s),!0)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createEdgeHeaderInner",t.message),!1}},r.QCELL.BasicQCELL.prototype._createRowHeaderInner=function(t){try{var e=this.attr("layoutsize"),a=this.attr("elementpool"),o=r.QCELL.def.css,i=a.get("rowheader"),s=t.cloneNode();return s.className+=o.ROWHEADER_INNER,s.style.width=e.rowheader.clientWidth+"px",s.style.height=e.rowheader.clientHeight+"px",a.put("rowheaderinner",s),a.put("$rowheaderinner",r.$(s)),!!this._createRowHeaderCells(t)&&(i.appendChild(s),!0)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createRowHeaderInner",t.message),!1}},r.QCELL.BasicQCELL.prototype._createColHeaderInner=function(t){try{var e=this.attr("layoutsize"),a=this.attr("elementpool"),o=r.QCELL.def.css,i=a.get("colheader"),s=t.cloneNode();return s.className+=o.COLHEADER_INNER+" "+o.COLHEADER_AREA,s.style.width=e.colheader.clientWidth+"px",s.style.height=e.colheader.clientHeight+"px",s.setAttribute("id","colheader_inner_"+this.getID()),a.put("colheaderinner",s),a.put("$colheaderinner",r.$(s)),!!this._createColHeaderCells(t)&&(i.appendChild(s),!0)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createColHeaderInner",t.message),!1}},r.QCELL.BasicQCELL.prototype._createViewPortInner=function(t){try{var e=this.attr("layoutsize"),a=this.attr("elementpool"),o=r.QCELL.def.css,i=a.get("viewport"),s=t.cloneNode();return s.className+=o.VIEWPORT_INNER,s.style.width=e.viewport.clientWidth+"px",s.style.height=e.viewport.clientHeight+"px",s.setAttribute("id","viewport_inner_"+this.getID()),0!==r._s&&-1!==r._s&&void 0!==r._s||(s.style.backgroundImage="url('data:image/png;base64,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')",s.style.backgroundPosition="right bottom",s.style.backgroundRepeat="no-repeat",s.style.backgroundSize="6%"),a.put("viewportinner",s),a.put("$viewportinner",r.$(s)),!!this._createViewPortCells(t)&&(i.appendChild(s),!0)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createViewPortInner",t.message),!1}},r.QCELL.BasicQCELL.prototype._createFooterRowHeaderInner=function(t){try{var e=this.attr("layoutsize"),a=this.attr("elementpool"),o=r.QCELL.def.css,i=a.get("footerrowheader"),s=t.cloneNode();return s.className+=o.FOOTERROWHEADER_INNER,s.style.width=e.footerrowheader.clientWidth+"px",s.style.height=e.footerrowheader.clientHeight+"px",a.put("footerrowheaderinner",s),a.put("$footerrowheaderinner",r.$(s)),!!this._createFooterRowHeaderCells(t)&&(i.appendChild(s),!0)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createFooterRowHeaderInner",t.message),!1}},r.QCELL.BasicQCELL.prototype._createFooterInner=function(t){try{var e=this.attr("layoutsize"),a=this.attr("elementpool"),o=r.QCELL.def.css,i=a.get("footer"),s=t.cloneNode();return s.className+=o.FOOTER_INNER,s.style.width=e.footer.clientWidth+"px",s.style.height=e.footer.clientHeight+"px",a.put("footerinner",s),a.put("$footerinner",r.$(s)),console.log(s),console.log(i),!!this._createFooterCells(t)&&(i.appendChild(s),!0)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createFooterInner",t.message),!1}},r.QCELL.BasicQCELL.prototype._createCell=function(t,e){var a,o=r.QCELL.def.css;return(a=t.cloneNode()).className+=o.CELL,!0!==this.attr("useall")&&!1!==e&&!0!==this.attr("usetreeall")&&a.setAttribute("tabindex","0"),a},r.QCELL.BasicQCELL.prototype._getHeaderCellSpan=function(t,e,a){var o=r.QCELL.def.css,i=r.$("<span></span>"),s=this._getColHtml(a);return i.addClass(o.COLHEADER_AREA),null!==s&&r._.isFunction(s.header)?(t=s.header(this,e,a,!0===r._.isUndefined(t)?"":t),i.html(t)):i.html(r.QCELL.st.replaceText2HeaderText(t)),i[0].outerHTML},r.QCELL.BasicQCELL.prototype._createEdgeHeaderCells=function(t){try{for(var e,a,o=r.QCELL.def.css,i=this.attr("elementpool"),s=this.attr("cellmatrix").get("row"),l=i.get("edgeheaderinner"),n=this.attr("headerrows"),c=this.attr("headercols"),d=this.attr("rowheight").header,h=this.attr("headercolwidth"),_=this.attr("rowheaders"),u=this.attr("rowheaderstitle"),p=this.attr("rowheaderssort"),C="msie"===r.$.browser.name?0:2,g=this.attr("id"),f=function(t){var e=Number(t.target.getAttribute("data-col"));y._trigger("rowheader_checkbox_all_changed",{status:t.target.checked,col:e})},L=0;L<n;L++){var m=null;s.push([]);for(var E=0;E<c;E++){if(0===L){if((m=this._createCell(t,!1)).style.width=h+"px",m.style.height=d*n+"px",m.style.lineHeight=d*n-C+"px",m.className+=" "+o.CELL_EDGEHEADER+" "+o.CELL_HEADERROWS+" "+o.CELL_HEADERCOLS,m.setAttribute("data-row",0),m.setAttribute("data-col",E),m.setAttribute("id",g+"_cell_0_"+E),m.style.left=h*E+"px","checkbox"===_[E]){var b=document.createElement("input");b.setAttribute("type",_[E]),b.setAttribute("name",this.attr("id")+"_rowheader_col_"+E+"_checkbox_all"),b.setAttribute("data-row",L),b.setAttribute("data-col",E),"checkbox"===_[E]?b.className+=o.CELL_ROWHEADER_CHECKBOX:b.className+=o.CELL_ROWHEADER_RADIO;var y=this;b.onchange=f,m.appendChild(b),"checkbox"===_[E]?m.className+=" "+o.EDGEHEADER_CELL_CHECKBOX:m.className+=" "+o.EDGEHEADER_CELL_RADIO}else if("custom"===_[E])this._setRowheaderCustom(m,0,E);else{if(void 0!==u){var v=u[E];e=document.createElement("span"),a=document.createTextNode(v),e.appendChild(a),m.appendChild(e)}if(void 0!==p){var w=p[E];void 0!==w&&!0===w&&(null===this.attr("defaultsortarea")&&this.attr("defaultsortarea",this._createDefaultSortArea(t),"jquery"),null===this._getQCellCol(E).attr("colsortarea")&&this._getQCellCol(E).attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),m.appendChild(this._getQCellCol(E).attr("colsortarea").get(0)))}}l.appendChild(m)}s[L].push(m)}}return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createEdgeHeaderCells",t.message),!1}},r.QCELL.BasicQCELL.prototype._isBottomPanel=function(t){return!!r.util.hasClass(t,"rt-qc-cell-frozenbottomrows-panel")},r.QCELL.BasicQCELL.prototype._getRowGroupOfDynamicRows=function(t){var e=r.QCELL.def.rowgroup,a=this.attr("frozenrows"),o=this.attr("frozenbottomrows"),i=this.attr("vsinfo").nDynamicRows;return!0==("panel"===this.attr("frozenbottomstyle"))&&i-1===t?e.FROZENBOTTOM:i<a?e.FROZEN:i<a+o?t<a?e.FROZEN:e.FROZENBOTTOM:t<a?e.FROZEN:t>=i-o?e.FROZENBOTTOM:e.NORMAL},r.QCELL.BasicQCELL.prototype._createRowHeaderCells=function(t){try{var e,a=this,o=r.QCELL.def.rowgroup,i=r.QCELL.def.css,s=this.attr("elementpool").get("rowheaderinner"),l=this.attr("cellmatrix").get("row"),n=this.attr("rowheaders"),c=this.attr("headerrows"),d=this.attr("headercols"),h=this.attr("rowheight").data,_=this.attr("layoutsize").rowheader.clientHeight,u=this.attr("headercolwidth"),p=this.attr("vsinfo").nDynamicRows,C=this.attr("currentdata").length,g="panel"===this.attr("frozenbottomstyle"),f=this.attr("id"),L=function(t){var e=Number(t.target.getAttribute("data-row")),o=Number(t.target.getAttribute("data-col"));r._.isNumber(e)&&r._.isNumber(o)&&(a._deselectRow(a._getSelectedRow()),a._clearFocus(),a._selectRow(e,!0))};for(p>C&&(p=C),e=0;e<p;e++){var m=this._getRowGroupOfDynamicRows(e),E=e+c,b=this.attr("paginationinfo");l.push([]),m===o.FROZENBOTTOM&&(E=C+c-(p-e));for(var y=0;y<d;y++){var v,w=this._createCell(t,!1),x=y;w.style.width=u+"px",w.style.height=h+"px",this._getColWordwrap(y)?w.style.whiteSpace="pre-wrap":(w.style.display="flex",w.style.justifyContent="center",w.style.alignItems="center"),w.style.left=u*y+"px",w.className+=" "+i.CELL_ROWHEADER+" "+i.CELL_HEADERCOLS,w.setAttribute("data-row",E),w.setAttribute("data-col",x),w.setAttribute("id",f+"_cell_"+E+"_"+x),w.onclick=L,s.appendChild(w),(this.attr("useall")||this.attr("usetreeall"))&&w.setAttribute("aria-hidden","true"),m===o.FROZENBOTTOM?(w.style.top=_-h*(p-e)+"px",!0===g?(w.className+=" "+i.CELL_FROZENBOTTOMROWS_PANEL,"sequence"!==n[y]&&"reverse"!==n[y]||r.util.textContent(w,void 0!==this._getRowData(E).rt_qc_seq?this._getRowData(E).rt_qc_seq:"")):(w.className+=" "+i.CELL_FROZENBOTTOMROWS,r._.isObject(b)&&r._.isEmpty(b)?"sequence"===n[y]||"reverse"===n[y]?r.util.textContent(w,"reverse"===n[y]?C+c-E:E-c+1):"checkbox"===n[y]||"radio"===n[y]?(v=this._createRowheaderCheckbox(w,E,x,n[y]),w.appendChild(v),"checkbox"===n[y]?w.className+=" "+i.ROWHEADER_CELL_CHECKBOX:w.className+=" "+i.ROWHEADER_CELL_RADIO):"state"===n[y]?w.className+=" "+i.ROWHEADER_STATE_INIT:"custom"===n[y]&&(w.className+=" "+i.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)):"sequence"===n[y]||"reverse"===n[y]?r.util.textContent(w,"reverse"===n[y]?b.datacount-(b.pageindex-1)*b.pageunit-E+c:E-c+1):"checkbox"===n[y]||"radio"===n[y]?(v=this._createRowheaderCheckbox(w,E,x,n[y]),w.appendChild(v),"checkbox"===n[y]?w.className+=" "+i.ROWHEADER_CELL_CHECKBOX:w.className+=" "+i.ROWHEADER_CELL_RADIO):"state"===n[y]?w.className+=" "+i.ROWHEADER_STATE_INIT:"custom"===n[y]&&(w.className+=" "+i.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)))):(w.style.top=h*e+"px",r._.isObject(b)&&r._.isEmpty(b)?"sequence"===n[y]||"reverse"===n[y]?r.util.textContent(w,"reverse"===n[y]?C-e:E-c+1):"checkbox"===n[y]||"radio"===n[y]?(v=this._createRowheaderCheckbox(w,E,x,n[y]),w.appendChild(v),"checkbox"===n[y]?w.className+=" "+i.ROWHEADER_CELL_CHECKBOX:w.className+=" "+i.ROWHEADER_CELL_RADIO):"state"===n[y]?w.className+=" "+i.ROWHEADER_STATE_INIT:"custom"===n[y]&&(w.className+=" "+i.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)):"sequence"===n[y]||"reverse"===n[y]?r.util.textContent(w,"reverse"===n[y]?b.datacount-((b.pageindex-1)*b.pageunit+e):(b.pageindex-1)*b.pageunit+(e+1)):"checkbox"===n[y]||"reverse"===n[y]?(v=this._createRowheaderCheckbox(w,E,x,n[y]),w.appendChild(v),"checkbox"===n[y]?w.className+=" "+i.ROWHEADER_CELL_CHECKBOX:w.className+=" "+i.ROWHEADER_CELL_RADIO):"state"===n[y]?w.className+=" "+i.ROWHEADER_STATE_INIT:"custom"===n[y]&&(w.className+=" "+i.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)),w.className+=" "+(m===o.FROZEN?i.CELL_FROZENROWS:i.CELL_NORMALROWS)),l[c+e].push(w)}}return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createRowHeaderCells",t.message),!1}},r.QCELL.BasicQCELL.prototype._createRowheaderCheckbox=function(t,e,a,o){o=void 0===o?"checkbox":o;var i=this.attr("rowheadercheckboxclick"),s=document.createElement("input"),l=this._getQCellCol(a).attr("cellinvisible")[e];if(s.setAttribute("type",o),s.setAttribute("name",this.attr("id")+"_rowheader_col_"+a+"_checkbox"),s.setAttribute("data-row",e),s.setAttribute("data-col",a),void 0!==this.attr("rowheaderstitlekey")&&null!==this.attr("rowheaderstitlekey")){var n=this.attr("rowheaderstitlekey");if(n.length>a){var c=this.getRowData(e);if(void 0!==n[a]&&!0===r._.isFunction(n[a])){var d=n[a](e,a,c);void 0!==d&&""!==d&&s.setAttribute("title",d)}void 0!==n[a]&&""!==n[a]&&void 0!==c[n[a]]&&""!==c[n[a]]&&s.setAttribute("title",c[n[a]])}}s.className+="checkbox"===o?r.QCELL.def.css.CELL_ROWHEADER_CHECKBOX:r.QCELL.def.css.CELL_ROWHEADER_RADIO,!0===this._getRowheaderData(e,a)?s.checked=!0:s.checked=!1,r._.isUndefined(i[e])||i[e][a]?s.removeAttribute("disabled"):s.setAttribute("disabled","disabled");var h=this;return s.onchange=function(t){h._trigger("rowheader_checkbox_changed",{status:t.target.checked,row:e,col:a})},r._.isUndefined(l)||(l?r.$(s).css({visibility:"hidden"}):r.$(s).css({visibility:"visible"})),!0===this._getQCellCol(a).attr("celldisabled")[e]&&s.setAttribute("disabled","disabled"),s},r.QCELL.BasicQCELL.prototype._removeEmptymessage=function(){var t=r.QCELL.def.css,e=document.getElementsByClassName(t.EMPTYMESSAGE+"_"+this.getID());if(e.length>0)for(var a=0;a<e.length;a++)e[a].parentNode.removeChild(e[a]);return!0},r.QCELL.BasicQCELL.prototype._createEmptymessage=function(t){var e=r.QCELL.def.css,a=0,o=0,i=this.attr("hsinfo").nDynamicCols,s=this.attr("layoutsize").viewport.clientHeight,l=this.attr("layoutsize").viewport.clientWidth,n=this.attr("rowheaders").length,c=this.attr("emptymessage");for(o=n;o<=i;o++)a+=r._.isUndefined(this._getColWidth(o))?0:this._getColWidth(o);return t.style.width=a>l?"100%":a+"px",t.style.height=s+"px",t.style.lineHeight=s-2+"px",t.className+=" "+e.CELL_VIEWPORT+" "+e.EMPTYMESSAGE+" "+e.EMPTYMESSAGE+"_"+this.getID(),r.util.textContent(t,c),t},r.QCELL.BasicQCELL.prototype._createFooterRowHeaderCells=function(t){try{for(var e=this.attr("elementpool"),a=r.QCELL.def.css,o=e.get("footerrowheaderinner"),i=this.attr("cellmatrix").get("row"),s=this.attr("footerrows"),l=this.attr("rowheight").footer,n=this.attr("headerrows"),c=this.attr("headercols"),d=this.attr("vsinfo").nDynamicRows,h=this.attr("headercolwidth"),_="msie"===r.$.browser.name?0:2,u=0;u<s;u++){i.push([]);for(var p=0;p<c;p++){var C=this._createCell(t);C.style.width=h+"px",C.style.height=l+"px",C.style.lineHeight=l-_+"px",C.className+=" "+a.CELL_FOOTERROWHEADER+" "+a.CELL_FOOTERROWS+" "+a.CELL_HEADERCOLS,C.setAttribute("data-col",p),C.style.left=h*p+"px",C.style.top=l*u+"px",o.appendChild(C),i[n+d+u].push(C)}}return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createFooterRowHeaderCells",t.message),!1}},r.QCELL.BasicQCELL.prototype._createFooterCells=function(t){try{for(var e,a=this.attr("hsinfo"),o=r.QCELL.def.css,i=this.attr("elementpool"),s=this.attr("cellmatrix").get("row"),l=this.attr("footerrows"),n=this.attr("rowheight").footer,c=this.attr("headerrows"),d=this.attr("headercols"),h=this.attr("frozencols"),_=this.attr("vsinfo").nDynamicRows,u=i.get("footerinner"),p="msie"===r.$.browser.name?0:2,C=0;C<l;C++){var g=0;void 0===s[c+_+C]&&s.push([]);for(var f=0;f<a.nDynamicCols;f++){e=this._getColTabindex(f);var L=this._createCell(t,e),m=f+d,E=this._getColWidth(m);L.style.width=E+"px",L.style.height=n+"px",this._getColWordwrap(m)?L.style.whiteSpace="pre-wrap":L.style.lineHeight=n-p+"px",L.style.left=g+"px",L.style.top=n*C+"px",L.className+=" "+(f<h?o.CELL_FROZENCOLS:o.CELL_NORMALCOLS)+" "+o.CELL_FOOTER+" "+o.CELL_FOOTERROWS,L.setAttribute("data-col",m),L.setAttribute("data-footer",!0),u.appendChild(L),s[c+_+C].push(L),g+=parseFloat(E)}}return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._createFooterCells",t.message),!1}},r.QCELL.BasicQCELL.prototype._getColHeaderDragDropArea=function(){if(null===this.attr("colheaderdndarea")){var t=document.createElement("div");this.attr("colheaderdndarea",this._createColHeaderDragDropArea(t),"jquery")}return this.attr("colheaderdndarea").clone(!0).get(0)},r.QCELL.BasicQCELL.prototype._createColHeaderDragDropArea=function(t){var e=r.QCELL.def.css;return r.$(t.cloneNode()).addClass(e.COLHEADER_DRAG_AND_DROP_AREA).on("mousedown",this.attr("eventparam"),(function(a){var o,i,s=a.target,l=a.data.target,n=l.attr("layoutsize"),c=[],d=l.attr("headerrows"),h=l.attr("frozenbottomrows"),_=l.attr("rows"),u=s.parentNode.getAttribute("data-col"),p=0,C=0;l.attr("colmove",!0,"boolean"),l.attr("colmoveexecution",!1,"boolean");var g,f=0;if(l._getQCellCol(u).attr("topmove")){var L=l._getCellDOM(0,Number(u));f=Number(L.getAttribute("data-endcol")),isNaN(f)&&(f=1);for(var m=null,E=0,b=0;b<f;b++){var y=l._getColCellDOMs(Number(u)+b);p=0,C=0;for(var v=0;v<y.length;v++)m=y[v].cloneNode(!0),g=parseInt(m.getAttribute("data-row")),m.style.left=E+"px",m.style.display="block",isNaN(g)?m.style.top=parseInt(m.style.top)+C+"px":g<d?(m.style.top=p+"px",p+=parseInt(m.style.height)):(m.style.top=parseInt(m.style.top)+p+"px",g>=_-h&&(C=parseInt(m.style.top)+parseInt(m.style.height))),c.push(m);E+=l._getColWidth(Number(u)+b)}}else r._.each(l._getColCellDOMs(u),(function(t,e){var r=t.cloneNode(!0);g=parseInt(r.getAttribute("data-row")),r.style.left="0px",r.style.display="block",isNaN(g)?r.style.top=parseInt(r.style.top)+C+"px":g<d?(r.style.top=p+"px",p+=parseInt(r.style.height)):(r.style.top=parseInt(r.style.top)+p+"px",g>=_-h&&(C=parseInt(r.style.top)+parseInt(r.style.height))),c.push(r)}));r._.last(c).style.borderBottomWidth="1px",o=r.$(t.cloneNode()).addClass(e.COLMOVE_SHADOW).attr("data-col",u).css({display:"none"}).append(c).appendTo(document.body),l._getQCellCol(u).attr("topmove")&&o.attr("data-endcol",f),l.attr("colmoveshadow",o,"jquery"),i=r.$(t.cloneNode()).addClass(e.COLMOVELINE).css({display:"none",height:n.colheader.offsetHeight+n.viewport.offsetHeight+n.footer.offsetHeight}).appendTo(l.attr("elementpool").get("container")),l.attr("colmoveline",i,"jquery")}))},r.QCELL.BasicQCELL.prototype._getColResizeArea=function(){if(null===this.attr("colresizearea")){var t=document.createElement("div");this.attr("colresizearea",this._createColResizeArea(t),"jquery")}return this.attr("colresizearea").clone(!0).get(0)},r.QCELL.BasicQCELL.prototype._createColResizeArea=function(t){var e=r.QCELL.def.css,a=0;return r.$(t.cloneNode()).addClass(e.COLRESIZE_AREA).on("mousedown",this.attr("eventparam"),(function(o){o.preventDefault(),a++;var i,s,l=o.target,n=o.data.target,c=n.attr("layoutsize");if(setTimeout((function(){a=0}),400),2===a){var d=r.$(l).parent().attr("data-col"),h=n.attr("headertext")[d],_=n._getColData(d),u=0,p=0,C=0;for(C=0;C<h.length;C++){try{h[C]=void 0===h[C]?"":h[C],h[C]=""+h[C],p=13*h[C].length}catch(t){p=0}p>u&&(u=p)}for(C=0;C<_.length;C++){try{_[C]=void 0===_[C]?"":_[C],_[C]=""+_[C],p=13*_[C].length}catch(t){p=0}p>u&&(u=p)}return d=parseInt(d),u=parseInt(u),void setTimeout((function(){n.setColWidth(d,u)}),0)}n.attr("colresize",!0,"boolean"),i=r.$(t.cloneNode()).addClass(e.COLRESIZELINE).css({display:"none",height:c.colheader.offsetHeight+c.viewport.offsetHeight+c.footer.offsetHeight}).appendTo(n.attr("elementpool").get("container")),n.attr("colresizeline",i,"jquery"),s=r.$(t.cloneNode()).addClass(e.COLRESIZETOOLTIP).css({display:"none"}).appendTo(n.attr("elementpool").get("container")),n.attr("colresizetooltip",s,"jquery")}))},r.QCELL.BasicQCELL.prototype._createInputForm=function(){var t,e,a,o,i=this.attr("elementpool").get("root"),s=this.attr("id"),l=r.QCELL.def,n=this;null!==document.getElementById(l.areaname.INPUTFORM+"-root"+s)&&i.removeChild(document.getElementById(l.areaname.INPUTFORM+"-root"+s)),null!==this.attr("jqDialog")&&this.attr("jqDialog").dialog("destroy"),(o=document.createElement("div")).setAttribute("id",l.areaname.INPUTFORM+"-root"+s),(t=document.createElement("div")).setAttribute("id",l.areaname.INPUTFORM+"-"+s),t.className+=l.css.INPUTFORM_INNER;var c,d=document.createElement("form"),h=document.createElement("fieldset"),_=this.attr("headercols"),u=this.attr("cols"),p=this.attr("headerrows");for(c=_;c<u;c++){var C,g=document.createElement("label"),f=document.createTextNode(this._cellValue(p-1,c)),L=this._getKeyOfCol(c);switch(a=s+"_"+L+"_"+this.getColID(c),this._getColType(c)){case"input":C=document.createElement("input");break;case"checkbox":(C=document.createElement("input")).setAttribute("type","checkbox");break;case"textarea":C=document.createElement("textarea");break;case"datepicker":(C=document.createElement("input")).setAttribute("type","date");break;case"image":C=document.createElement("img");break;case"selectmenu":C=document.createElement("select");for(var m,E,b,y=this._getColElement(c)._getDataArray(),v=0;v<y.length;v++)m=document.createElement("option"),E=y[v].label,b=y[v].value,m.setAttribute("value",b),m.innerHTML=E,r.$(C).append(m),m=null;break;default:C=document.createElement("output")}C.setAttribute("name",a),C.setAttribute("id",a),C.className+=l.css.INPUTFORM_ITEM,g.appendChild(f),g.setAttribute("for",a),g.className+=l.css.INPUTFORM_HEADER,h.appendChild(g),h.appendChild(C),h.appendChild(document.createElement("br"))}t.setAttribute("title","Input Form"),d.appendChild(h),t.appendChild(d);var w=document.createElement("input");w.setAttribute("type","submit"),w.setAttribute("tabindex","-1"),o.appendChild(t),i.appendChild(o);var x=r.$(t).dialog({autoOpen:!1,height:"auto",width:"80%",modal:!0,buttons:{적용:function(){var t=n.attr("inputformdata");if(null!==t&&-1!==n.attr("inputformdatarow")&&null!==n.attr("inputformdatarow")){for(c=_;c<u;c++){var e=n._getKeyOfCol(c);a=s+"_"+e+"_"+n.getColID(c);var o=document.getElementById(a),i=r.$(o).val();if("checkbox"===n._getColType(c))o.checked!==t[e]&&n.setCellDataEx(n.attr("inputformdatarow"),e,o.checked);else{if("datepicker"===n._getColType(c))i=r.util.replaceAll(i,"-","");else if("image"===n._getColType(c))continue;r._.isNumber(t[e])?t[e]!==parseInt(i)&&n.setCellDataEx(n.attr("inputformdatarow"),e,parseInt(i)):t[e]!==i&&n.setCellDataEx(n.attr("inputformdatarow"),e,i)}}n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean"),n.attr("jqDialog").dialog("close")}},취소:function(){n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean"),n.attr("jqDialog").dialog("close")}},beforeClose:function(){n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean")},close:function(){e[0].reset(),setTimeout((function(){n.onResize()}),0)}});e=x.find("form").on("submit",(function(t){t.preventDefault()})),this.attr("jqDialog",x,"jquery")},r.QCELL.BasicQCELL.prototype._initData=function(){var t=!0;try{var e=this.attr("onloadurl"),a=this;if(!1===r._.isUndefined(e)&&!1===r._.isNull(e)&&r._.isString(e))if(!0!==this.attr("bLoadurlstop"))setTimeout((function(){r.$.ajaxSetup({async:!1});var t=function(t){var e=null;if(r._.isArray(t))e=t;else if(r._.isObject(t)){var o=[];o.push(t),e=o}else try{e=JSON.parse(t)}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._initData",t.message),e=[]}null!==a.attr("onloadurlsucesscallback")&&r._.isFunction(a.attr("onloadurlsucesscallback"))&&(e=a.attr("onloadurlsucesscallback")(e)),a._setColsDataType(e),a._setCurrentData(e,!0),a.attr("original")&&a.attr("origindata",r.$.extend(!0,[],JSON.parse(t)),"array")},o=function(){null!==a.attr("onloadurlfailcallback")&&r._.isFunction(a.attr("onloadurlfailcallback"))&&a.attr("onloadurlfailcallback")()};null!==a.attr("onloadurlparam")?r.$.post(e,a.attr("onloadurlparam"),t).fail(o):r.$.post(e,t).fail(o)}),0);else{var o=this.attr("arrBackupData");r._.isArray(o)&&(this._setColsDataType(o),this._updateCurrentData(o),this.attr("arrBackupData",null,"array"),this.attr("idxinfo",this.attr("objBackupIdx"),"object"),this.attr("deletedrowsdata",this.attr("arrBackupDeletedrowsdata"),"array"),this.attr("objBackupIdx",null,"object"),this.attr("arrBackupDeletedrowsdata",null,"array"),o=[])}else{var i=!0===this.attr("bLoadurlstop")?this.attr("arrBackupData"):this.attr("data").input;this._setColsDataType(i),this._updateCurrentData(i),!0===this.attr("bLoadurlstop")&&(this.attr("arrBackupData",null,"array"),this.attr("idxinfo",this.attr("objBackupIdx"),"object"),this.attr("deletedrowsdata",this.attr("arrBackupDeletedrowsdata"),"array"),this.attr("objBackupIdx",null,"object"),this.attr("arrBackupDeletedrowsdata",null,"array"),this.attr("bLoadurlstop",!1,"boolean")),this.attr("original")&&this.attr("origindata",r.$.extend(!0,[],this.attr("data").input),"array")}t=!0,this.attr("bLoadurlstop",!1,"boolean")}catch(e){r.QCELL.log("err","QCELL.BasicQCELL._initData",e.message),t=!1}finally{r.$.ajaxSetup({async:!0})}return t},r.QCELL.BasicQCELL.prototype._updateCurrentData=function(t){this.removeAttr("currentdata");var e,a=this.getID();if(!r._.isEmpty(t)&&r._.isArray(t)&&0!==t.length)setTimeout((function(){try{null!=(e=r.QCELL.getInstance(a))&&e._removeEmptymessage()}catch(t){return!1}})),!0===this.attr("makefrozenbottomdata")&&(!0!==t[t.length-1].rt_qc_fbrd?(t.push({rt_qc_fbrd:!0}),setTimeout((function(){try{null!=(e=r.QCELL.getInstance(a))&&e._trigger("frozendatacreated")}catch(t){return!1}}),0)):setTimeout((function(){try{null!=(e=r.QCELL.getInstance(a))&&e._trigger("frozendataupdated")}catch(t){return!1}}),0));else if(r._.isEmpty(t)||r._.isArray(t)||0===t.length){var o=this.attr("emptymessage");r.$.trim(o).length>0&&!1!==this.attr("useemptymessage")&&setTimeout((function(){try{if(null!=(e=r.QCELL.getInstance(a))){e._removeEmptymessage();var t,o=document.createElement("div"),i=e.attr("elementpool").get("viewportinner");t=e._createEmptymessage(o),i.appendChild(t)}}catch(t){return!1}}))}this.attr("currentdata",void 0!==t&&r._.isArray(t)?t:[],"array"),this.attr("rows",this.attr("headerrows")+this.attr("currentdata").length,"number"),this._setVSRange(),setTimeout((function(){if(null!=(e=r.QCELL.getInstance(a))){var t=e.getCustomPanel();e.resetCustomPanel(t)}}))},r.QCELL.BasicQCELL.prototype._setCurrentData=function(t,e,a){if(r._.isArray(t)){var o,i,s=this,l=this.attr("hsinfo"),n=this.attr("vsinfo"),c=n.bVScroll;return o=this.attr("currentdata").length,this._updateCurrentData(t),this._initRowheaderData(),i=this.attr("currentdata").length,this._clearFocus(),this._clearSelection(),this._clearCellStyles(),o<i?this._makeRowUI(i-o,a):o>i&&this._removeRowUI(o-i,a),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._refreshDRs(),c!==n.bVScroll&&(!0===(!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate")).grouped?this._refreshDCs():this.resize()),e&&(l.bHScroll&&0!==l.nPos&&setTimeout((function(){s._scrollLeft(l.nStartCol)}),200),n.bVScroll&&0!==n.nPos&&setTimeout((function(){s._scrollTop(n.nStartRow)}),200)),!0}return!1},r.QCELL.BasicQCELL.prototype._setData=function(t){return this.getID(),!!r._.isArray(t)&&(this.attr("data").input=t,this.attr("isResizing",!1,"boolean"),this._rebuild(),!1===r._.isEmpty(this.attr("paginationinfo"))&&(this.attr("bRebuildWithPrevData",!0,"boolean"),this._movePage(1),this.attr("bRebuildWithPrevData",!1,"boolean")),!0!==this.attr("event_datachanged")&&(this.attr("event_datachanged",!0,"boolean"),this._trigger("datachanged"),this.attr("event_datachanged",!1,"boolean")),!0)},r.QCELL.BasicQCELL.prototype._getRowData=function(t){var e=this.attr("currentdata")[t-this.attr("headerrows")];return void 0!==e&&(e=r._.clone(e)),e},r.QCELL.BasicQCELL.prototype._getRowDataWithFormat=function(t){var e=this.attr("currentdata")[t-this.attr("headerrows")];if(void 0!==e)for(var a in e=r._.clone(e)){var o=this.getColsOfKey(a);o.length>0&&(e[a]=this._getCellLabel(t,o[0]))}return e},r.QCELL.BasicQCELL.prototype._setRowData=function(t,e){var a,o=this,i=!1;this.attr("currentdata")[t-this.attr("headerrows")]=e=r._.clone(e);for(var s=this.attr("headercols"),l=this.attr("cols");s<l&&(a=void 0===e[this._getKeyOfCol(s)]?"":e[this._getKeyOfCol(s)],!1!==(i=this._cellValue(t,s,a)));s++);return setTimeout((function(){o._trigger("rowdatachanged")}),0),i},r.QCELL.BasicQCELL.prototype._setRowDataEx=function(t,e){var a,o=this,i=!1;this.attr("currentdata")[t-this.attr("headerrows")]=e=r._.clone(e);for(var s=this.attr("headercols"),l=this.attr("cols");s<l;s++){a=void 0===e[this._getKeyOfCol(s)]?"":e[this._getKeyOfCol(s)];var n=void 0!==s?o._getColFormat(s):void 0;if(i=this._cellValue(t,s,a),void 0===n||!0!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_header&&!0!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_footer||(a=this._showDataFormat(t,s,a),e[this._getKeyOfCol(s)]=a),!1===i)break}return setTimeout((function(){o._trigger("rowdatachanged")}),0),i},r.QCELL.BasicQCELL.prototype._getColData=function(t,e){var a=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),o=a.grouped?a.columnsinfo.keys(!0)[0]:"",i=r._.pluck(this.attr("currentdata"),this._getKeyOfCol(t));if(!0===e&&a.grouped&&o===this._getColID(t))for(var s,l=this.attr("currentdata"),n=0;n<l.length;n++){var c=l[n],d=i[n];if(void 0===c)return;if(void 0===(s=c[a.level]))return[];var h=a.columnsinfo,_=h.keys(!0),u="",p=!1,C="";"parentchild"===a.mode?(p=h.get(_[0]).showLabel,C=h.get(_[0]).label,u=-1===this._getKeyOfColID(_[0])?_[0]:this._getKeyOfColID(_[0])):(p=h.get(_[s-1]).showLabel,C=h.get(_[s-1]).label,u=-1===this._getKeyOfColID(_[s-1])?_[s-1]:this._getKeyOfColID(_[s-1]),void 0===p&&(p=!0),void 0===C&&(C=u)),!0===p&&(d=c[C]),void 0===d&&(d=""),i[n]=d}return i},r.QCELL.BasicQCELL.prototype._setColData=function(t,e){for(var r=!0,a=this.attr("headerrows"),o=this.attr("currentdata").length,i=0,s=e.length;i<s&&!(!1===r||i>=o);i++)r=this._cellValue(i+a,t,e[i]);return r},r.QCELL.BasicQCELL.prototype._getCellLabel=function(t,e,r){return this._showDataFormat(t,e,this._cellValue(t,e),r)},r.QCELL.BasicQCELL.prototype._setCellLabel=function(t,e,a){var o=!1,i=this._getCellDOM(t,e);try{this._cellValue(t,e,a),null!==i&&r.util.textContent(i,a),o=!0}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._setCellLabel",t.message),o=!1}return o},r.QCELL.BasicQCELL.prototype._showProgressUI=function(t,e){var a=r.QCELL.def.css,o=this.attr("parent"),i=r.$(o).attr("id"),s=r.$(o).parent(),l=r.$(document.createElement("div")).attr("id",a.PROGRESS_UI).addClass(a.PROGRESS_UI).css({width:r.$(o).css("width"),height:r.$(o).css("height")});t?r.$(s).find("#"+i).before(l):r.$(s).find("."+a.PROGRESS_UI).fadeOut(void 0===e?500:e,(function(){r.$(this).remove()}))},r.QCELL.BasicQCELL.prototype._resetData=function(){var t=!1;try{this.attr("original")&&this._setData(r.$.extend(!0,[],this.attr("origindata"))),t=!0}catch(e){r.QCELL.log("err","QCELL.BasicQCELL._resetData",e.message),t=!1}return t},r.QCELL.BasicQCELL.prototype._getFocusRowData=function(){var t=this._getIdxInfo("focus","row"),e=t.current>-1?t.current:-1;return-1===e?{}:this._getRowData(e)},r.QCELL.BasicQCELL.prototype._checkData=function(t){var e,a=this.attr("currentdata");if(t.length!==a.length)return!1;if(0===t.length)return!1;for(e=0;e<t.length;e++)if(!r._.isEqual(t[e],a[e]))return!1;return!0},r.QCELL.BasicQCELL.prototype._findRowSub=function(t,e,r){var a,o=this.getRows();for(a=e;a<o;a++)if(this.getRowData(a)[r]===t)return a;return-1},r.QCELL.BasicQCELL.prototype._getColStyleEditorArea=function(){if(null===this.attr("colstyleeditorarea")){var t=document.createElement("div");this.attr("colstyleeditorarea",this._createColStyleEditorArea(t),"jquery")}return this.attr("colstyleeditorarea").clone(!0).get(0)},r.QCELL.BasicQCELL.prototype._createColStyleEditorArea=function(t){var e=r.QCELL.def.css;return r.$(t.cloneNode()).addClass(e.EDITOR_AREA).on("mousedown",this.attr("eventparam"),(function(t){var a=t.target,o=t.data.target,i=parseInt(a.parentNode.getAttribute("data-col")),s=document.createElement("div"),l=document.createElement("textarea"),n=s.cloneNode(),c=o.attr("id")+"_"+i+"_colStyleEditorArea",d=o.attr("id")+"_"+i+"_colStyleEditorWrap";if(o._getQCellCol(i).attr("colstyleeditorvisivle"))o._removeColStyleEditor(i);else{o._allRemoveColStyleEditor(),r.$(this).addClass(e.EDITOR_AREA_HOVER),o._getQCellCol(i).attr("colstyleeditorvisivle",!0,"boolean"),l.style.width="606px",l.style.height="306px",l.setAttribute("id",c),l.value=o._getQCellCol(i).attr("colstyleeditorbdata"),n.appendChild(l),n.setAttribute("id",d),r.util.addClass(n,e.COLSTYLEEDITOR_WRAP),r.$(n).appendTo(o.attr("elementpool").get("container"));var h=document.getElementById(c);window.sceditor.create(h,{locale:"ko",plugins:"undo",format:"xhtml",icons:"monocons",style:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/themes/content/default.min.css",emoticonsRoot:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/",toolbar:"bold,italic,underline,strike,subscript,superscript,left,center,right,justify,font,size,color,removeformat,cut,copy,paste,pastetext,source",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Georgia,Impact,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana, NanumGothic, Dotum"}),r.$(n).css(o._calculateColStyleEditorPosition(t,606,306));var _=window.sceditor.instance(h);o.attr("colstyleeditorui",r.$(n),"jquery"),o.attr("colstyleeditor",_,"object"),window.sceditor.instance(h).keyPress((function(t){o._colStyleEditorOnKeyDown(t,o,i)}),!1,!0).keyUp((function(t){o._colStyleEditorOnKeyUp(t,o,i)})),window.sceditor.instance(h).keyPress((function(t){o._colStyleTextAreaOnKeyDown(t,o,i)}),!0,!1).keyUp((function(t){o._colStyleTextAreaOnKeyUp(t,o,i)}),!0,!1)}}))},r.QCELL.BasicQCELL.prototype._colStyleTextAreaOnKeyDown=function(t,e,a){var o=t.keyCode,i=e.attr("colstyleeditor"),s=e._getQCellCol(a);o!==r.def.key.ENTER&&o!==r.def.key.TAB||(s.attr("colstyleeditordata",i.getSourceEditorValue(),"string"),e._hideColStyleEditor(a,"save",i),t.stopPropagation(),t.preventDefault())},r.QCELL.BasicQCELL.prototype._colStyleTextAreaOnKeyUp=function(t,e,a){var o=t.keyCode,i=e.attr("colstyleeditor"),s=e._getQCellCol(a);!1===t.altKey?o===r.def.key.ENTER||o===r.def.key.TAB?(s.attr("colstyleeditordata",i.getSourceEditorValue(),"string"),e._hideColStyleEditor(a,"save",i),t.stopPropagation(),t.preventDefault()):o===r.def.key.ESC&&e._hideColStyleEditor(a,"cancel",i):o!==r.def.key.ENTER&&10!==o||i.sourceEditorInsertText("\r")},r.QCELL.BasicQCELL.prototype._colStyleEditorOnKeyDown=function(t,e,a){var o=t.keyCode,i=e.attr("colstyleeditor"),s=e._getQCellCol(a);if(o===r.def.key.ENTER||o===r.def.key.TAB){var l=i.getWysiwygEditorValue();i.setSourceEditorValue(l),s.attr("colstyleeditordata",i.getSourceEditorValue(l),"string"),e._hideColStyleEditor(a,"save",i),t.stopPropagation(),t.preventDefault()}},r.QCELL.BasicQCELL.prototype._colStyleEditorOnKeyUp=function(t,e,a){var o=t.keyCode,i=e.attr("colstyleeditor"),s=e._getQCellCol(a);if(!1===t.altKey)if(o===r.def.key.ENTER||o===r.def.key.TAB){var l=i.getWysiwygEditorValue();i.setSourceEditorValue(l),s.attr("colstyleeditordata",i.getSourceEditorValue(l),"string"),e._hideColStyleEditor(a,"save",i),t.stopPropagation(),t.preventDefault()}else o===r.def.key.ESC&&e._hideColStyleEditor(a,"cancel",i);else if(o===r.def.key.ENTER||10===o){t.stopPropagation(),t.preventDefault();var n=i.getRangeHelper();if("msie"===r.$.browser.name){var c=document.createElement("br");n.insertNode(c);for(var d=c.parentNode.childNodes,h=0,_=0;_<d.length;_++)d[_].isEqualNode(c)&&h++;1===h&&n.insertNode(c.cloneNode())}else n.insertHTML("<br><br>")}},r.QCELL.BasicQCELL.prototype._calculateColStyleEditorPosition=function(t,e,r){var a=t.target,o=t.data.target,i=o.attr("layoutsize").viewport.offsetLeft,s=a.parentNode.offsetLeft+i,l=o.attr("layoutsize").viewport.offsetTop,n=parseInt(a.parentNode.getAttribute("data-col")),c=this._getColWidth(n);return{left:s+e>o.attr("layoutsize").root.offsetWidth?s+c-e+"px":s+"px",top:l+"px"}},r.QCELL.BasicQCELL.prototype._allRemoveColStyleEditor=function(){for(var t=this.attr("cols"),e=this.attr("headercols");e<t;e++)this._getQCellCol(e).attr("colstyleeditorvisivle")&&this._removeColStyleEditor(e)},r.QCELL.BasicQCELL.prototype._removeColStyleEditor=function(t){var e=r.QCELL.def.css;r.$("."+e.EDITOR_AREA).removeClass(e.EDITOR_AREA_HOVER),this.attr("colstyleeditorui").remove(),this.attr("colstyleeditorui",null,"jquery"),this._getQCellCol(t).attr("colstyleeditorvisivle",!1,"boolean")},r.QCELL.BasicQCELL.prototype._hideColStyleEditor=function(t,e,a){if("save"===e){var o=this._getQCellCol(t),i="QCELL_COL_DATA";o.attr("colstyleeditordata").indexOf(i)>-1&&-1===o.attr("colstyleeditordata").replace(i,"").indexOf(i)&&(o.attr("colstyleeditorbdata",o.attr("colstyleeditordata"),"string"),"normal"===r.QCELL.module&&this.attr("qcellcols")[t].attr("colelement").attr("editcellcol",!1,"boolean"),this._refresh())}a.destroy(),this._removeColStyleEditor(t)},r.$(window).on("resize."+r.QCELL.name,r._.debounce((function(t){r._.each(r.QCELL.getInstanceIDs(),(function(e){r.QCELL.getInstance(e)._defaultAction(t)}))}),300)),r.QCELL.BasicQCELL.prototype.onFocusIn=function(t){if(r.$(t.target).hasClass("rt-qc-container")){var e,a,o,i=this.getIdx("row","focus");if(this.getRows()-this.attr("headerrows")<=0)return;if(-1===i)return;if(a=i,o=this.getIdx("col","focus"),null===(e=this._getCellDOM(a,o))){var s=this.getID();return this._scrollToFocusCell(a,o),void setTimeout((function(){var t=r.QCELL.getInstance(s);if(null!=t)if(null!==(e=t._getCellDOM(a,o)))t._focusCell(a,o),r.$(e).focus();else{var i="container-"+s,l=document.getElementById(i);null!=l&&l.focus()}}),300)}null!==e&&(this._focusCell(a,o),r.$(e).focus())}},r.QCELL.BasicQCELL.prototype._getEventTarget=function(t){try{var e,a=this.attr("elementpool");switch(t){case"mousewheel":case"DOMMouseScroll":e=a.get("$edgeheader").add(a.get("$colheader")).add(a.get("$rowheader")).add(a.get("$viewport"));break;case"resize":e=r.$(window);break;default:e=a.get("$container")}return e}catch(t){return null}},r.QCELL.BasicQCELL.prototype._initEvent=function(){var t,e,a=this.attr("elementpool"),o=this;if(r._.isFunction(a.containsKey)&&a.containsKey("$sheetpanel")&&a.containsKey("$edgeheader")&&a.containsKey("$colheader")&&a.containsKey("$rowheader")&&a.containsKey("$viewport")){var i=this.attr("id"),s=this.attr("eventparam"),l=this._getEventTarget("mousewheel");return null!==l&&l.on("mousewheel DOMMouseScroll",s,r.st.eventProcess),null!==(l=this._getEventTarget("default"))&&l.on("mousedown mouseup click dblclick mouseenter mouseleave mousemove mouseover keydown change focusin",s,r.st.eventProcess),"msedge"!==r.$.browser.name&&"msie"!==r.$.browser.name&&a.get("$root").on("selectstart",(function(t){return!1})),r.util.isMobile()&&(this._createInputForm(),a.get("$root").swipe({swipeDown:function(t,e,r,a,i,s,l){o.onSwipe(t,e,r,a,i,s)},swipeUp:function(t,e,r,a,i,s,l){o.onSwipe(t,e,r,a,i,s)},swipeRight:function(t,e,r,a,i,s,l){o.onSwipe(t,e,r,a,i,s)},swipeLeft:function(t,e,r,a,i,s,l){o.onSwipe(t,e,r,a,i,s)},longTab:function(t,e){o.onLongTab(t,e)},tab:function(t,e){o.onTab(t,e)},threshold:25})),r.$(a.get("$sheetpanel")).on("selectstart",(function(t){return a.get("$root").off("selectstart"),!0})).off("selectstart",(function(t){return a.get("$root").on("selectstart",(function(t){return!1})),!1})),r.$(document).on("mouseup."+i,s,(function(a){var o=a.data.target,i=o.attr("vsinfo").nTopRow;if(o){if(o.attr("dragging")){var s,l,n=r.QCELL.def.css,c=a.target;r.util.hasClass(c,n.CELL_VIEWPORT)&&(s=parseInt(c.getAttribute("data-row")),l=parseInt(c.getAttribute("data-col")),o._updateIdx("drag",s,l)),o.onDrop(a)}if(o.attr("colmove")){var d=o.attr("colmoveshadow"),h=o.attr("colmoveline");if(o.attr("colmoveexecution")){var _=parseInt(h.attr("data-beforecol")),u=parseInt(h.attr("data-aftercol"));o._moveCols(_,1,u,!1)}null!==d&&(d.remove(),o.attr("colmoveshadow",null,"jquery")),null!==h&&(h.remove(),o.attr("colmoveline",null,"jquery")),t=o.getID(),!0===o.attr("makefrozenbottomdata")&&(e=o.attr("currentdata"),!r._.isEmpty(e)&&r._.isArray(e)&&0!==e.length&&(!0!==e[e.length-1].rt_qc_fbrd?(e.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(o=r.QCELL.getInstance(t))&&o._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(o=r.QCELL.getInstance(t))&&o._trigger("frozendataupdated")}),0)))}if(o.attr("colresize")){var p=o.attr("colresizeline"),C=o.attr("colresizetooltip"),g=parseInt(p.attr("data-targetcol")),f=parseInt(p.attr("originleft")),L=o._getColWidth(g);o._setColWidth(g,L+(parseInt(p.css("left"))-f)),null!==p&&(p.remove(),o.attr("colresizeline",null,"jquery")),null!==C&&(C.remove(),o.attr("colresizetooltip",null,"jquery")),o._scrollTop(i),t=o.getID(),!0===o.attr("makefrozenbottomdata")&&(e=o.attr("currentdata"),!r._.isEmpty(e)&&r._.isArray(e)&&0!==e.length&&(!0!==e[e.length-1].rt_qc_fbrd?(e.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(o=r.QCELL.getInstance(t))&&o._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(o=r.QCELL.getInstance(t))&&o._trigger("frozendataupdated")}),0)))}o.attr("colmove",!1,"boolean"),o.attr("colresize",!1,"boolean"),o.attr("mousedown",!1,"boolean"),o.attr("istopmove",!1,"boolean")}})).on("mousemove."+i,s,(function(t){var e=t.data.target;if(e&&e.attr("colmove")){var r=e.attr("layoutsize"),a=e.attr("colmoveshadow"),o=parseInt(a.attr("data-col"));if(null!==a){var i=e._getColWidth(o);if(e._getQCellCol(o).attr("topmove")){e.attr("istopmove",!0,"boolean");var s=a.attr("data-endcol");i=0;for(var l=0;l<s;l++)i+=e._getColWidth(o+l)}"none"===a.css("display")&&a.css({display:"block",width:i+"px",height:r.container.offsetHeight+"px"}),a.css({left:t.clientX+5+"px",top:t.pageY+"px"})}}})),this._bindUserEvents(),!0}return!1},r.QCELL.BasicQCELL.prototype._defaultAction=function(t){switch(t.type){case"mousewheel":case"DOMMouseScroll":this.onMouseWheel(t);break;case"mousedown":this.onMouseDown(t);break;case"mouseup":this.onMouseUp(t);break;case"click":this.onClick(t);break;case"dblclick":this.onDblClick(t);break;case"mouseenter":this.onMouseEnter(t);break;case"mouseleave":this.onMouseLeave(t);break;case"mousemove":this.onMouseMove(t);break;case"keydown":this.onKeyDown(t);break;case"resize":this.onResize(t);break;case"focusin":this.onFocusIn(t)}},r.QCELL.BasicQCELL.prototype._bindUserEvents=function(){var t=this;return r.$.each(this.attr("usereventinfo"),(function(e,r){t._bind(e,r,!1)})),!0},r.QCELL.BasicQCELL.prototype._getUserEventName=function(t){var e=r.s(t).trim().toLowerCase().value();return e+="resize"===e?"."+this.attr("id")+".user":".user"},r.QCELL.BasicQCELL.prototype.getParameter=function(t){return this.attr("eventparam_"+t)},r.QCELL.BasicQCELL.prototype._bind=function(t,e,a,o){if(""!==t&&r._.isFunction(e)){var i,s=this.attr("usereventinfo"),l=this.attr("eventparam"),n=r.s(t).trim().value().replace(/\s\s+/g," ").split(" ");if(n.length>0){for(var c=0,d=n.length;c<d;c++){var h=this._getEventTarget(n[c]),_=this._getUserEventName(n[c]);if(!r._.isUndefined(o)&&r._.isObject(o)){for(i in o)l[i]=o[i];this.attr("eventparam_"+t,o,"object")}r.QCELL.config.usebuttonclickcallback&&"buttonclick.user"===_?this.attr("buttonclickcallback",e,"function"):null!==h&&h.off(_).on(_,l,e),a&&(s[n[c]]=e)}return!0}}return!1},r.QCELL.BasicQCELL.prototype._unbind=function(t,e){if(""!==t){var a=this.attr("usereventinfo"),o=r.s(t).trim().value().replace(/ +/g," ").split(" ");if(o.length>0){for(var i=0,s=o.length;i<s;i++){var l=this._getEventTarget(o[i]),n=this._getUserEventName(o[i]);null!==l&&l.off(n),e&&delete a[o[i]]}return!0}}return!1},r.QCELL.BasicQCELL.prototype._trigger=function(t,e){var a=!1;try{var o=this._getEventTarget("default");if(null===o)return a;if("redrawed"===t){var i=this;setTimeout((function(){o.trigger(i._getUserEventName(t))}))}else void 0===e?o.trigger(this._getUserEventName(t)):o.trigger(this._getUserEventName(t),e),a=!0}catch(e){r.QCELL.log("err","QCELL.BasicQCELL.prototype._trigger","event=["+t+"] message=["+e.message+"]")}return a},r.QCELL.BasicQCELL.prototype._filedowntrigger=function(t,e){return this._getEventTarget("default").trigger({type:t,filedownresult:e}),!0},r.QCELL.BasicQCELL.prototype._orderbyExportInfo=function(t,e){var a,o=[],i=this.attr("rowheaders").length;if(i>0)for(a=0;a<i;a++)o.push(t[a]);for(a=0;a<e.length;a++){var s=Number(e[a]);o.push(r._.clone(t[s]))}return o},r.QCELL.BasicQCELL.prototype._exportCellInfoURLHuge=function(t){var e,a,o,i,s,l,n,c,d,h={},_=[],u=[],p=[],C=this.attr("cols"),g=this.attr("colwidthsperpixel"),f=this.attr("headertext"),L=this.attr("qcellcols"),m=this.attr("colkeys"),E=this.attr("layoutsize").colheader.clientWidth,b=[],y=[],v=this.attr("rowheaders").length,w=null;try{if(t.huge=!0,t.label=!0,t.border=!0,t.headershow=!0,t.colwidth=!0,t.progressui=!0,h.header={},h.header.title=[],h.header.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).header,h.data={},h.data.colskey=[],h.data.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).data,h.data.data=[{}],h.style=[],h.widths=[],!1===r._.isUndefined(t)&&!1===r._.isUndefined(t.orderColumns)&&r._.uniq(t.orderColumns).length===C-v&&(f=this._orderbyExportInfo(f,t.orderColumns),m=this._orderbyExportInfo(m,t.orderColumns),g=this._orderbyExportInfo(g,t.orderColumns)),!1===r._.isUndefined(t)&&!1===r._.isUndefined(t.delColumns)){var x=r._.clone(t.delColumns);for(x.sort().reverse(),C-=x.length,e=0;e<x.length;e++){var Q=Number(x[e]);f.splice(Q,1),m.splice(Q,1),g.splice(Q,1)}}if(!1===r._.isUndefined(t)&&!1===r._.isUndefined(t.addColumns)){for(C+=t.addColumns.length,s=0,l=t.addColumns.length;s<l;s++)r._.isUndefined(t.addColumns[s].position)?y.push(r.$.extend(!0,[],t.addColumns[s])):b.push(r.$.extend(!0,[],t.addColumns[s]));if(r._.isEmpty(b)||(b=r._.sortBy(b,"position")),b.length>0)for(s=0,l=b.length;s<l;s++)f.splice(Number(b[s].position),0,b[s].title),m.splice(Number(b[s].position),0,b[s].key),d=r._.isUndefined(b[s].width)?100:(d=b[s].width).indexOf("%")>-1?Math.ceil(E*(Number(d.replace("%",""))/100)):Number(d),g.splice(Number(b[s].position),0,d);if(y.length>0)for(n=0,c=y.length;n<c;n++)f.push(y[n].title),m.push(y[n].key),d=r._.isUndefined(y[n].width)?100:(d=y[n].width).indexOf("%")>-1?Math.ceil(E*(Number(d.replace("%",""))/100)):Number(d),g.push(d)}if(v>0){for(e=v;e<f.length;e++)for(_.push([]),a=0;a<f[e].length;a++)_[e-v].push(f[e][a]);for(e=0,o=_[0].length;e<o;e++){for(a=0,i=_.length;a<i;a++)u.push(_[a][e]);p.push(r.$.extend(!0,[],u)),u.RT_clear()}for(h.header.title=r.$.extend(!0,[],p),_.RT_clear(),_=null,p.RT_clear(),p=null,u.RT_clear(),u=null,e=v;e<C;e++)h.data.colskey.push(m[e]),h.widths.push(g[e]),L.length>e?(void 0!==(w=r._.isNull(L[e].attr("styleinfo"))?{}:L[e].attr("styleinfo")).data&&void 0!==w.data.css&&this._useDataTextAlign(e)&&(w.data.css["text-align"]=this._getDataTextAlign(e)),h.style.push(w)):h.style.push({})}else{for(e=0,o=f[0].length;e<o;e++){for(a=0,i=f.length;a<i;a++)u.push(f[a][e]);p.push(r._.clone(u)),u.RT_clear()}for(h.header.title=r._.clone(p),p.RT_clear(),p=null,u.RT_clear(),u=null,h.data.colskey=m,h.widths=g,e=0;e<C;e++)L.length>e?(void 0!==(w=r._.isNull(L[e].attr("styleinfo"))?{}:L[e].attr("styleinfo")).data&&void 0!==w.data.css&&this._useDataTextAlign(e)&&(w.data.css["text-align"]=this._getDataTextAlign(e)),h.style.push(w)):h.style.push({})}return h}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._exportCellInfoURLHuge",t.message),{}}},r.QCELL.BasicQCELL.prototype._excelDownloadURLHuge=function(t){var e=r._.clone(this);return e._showProgressUI(!0),!!(r.$.browser.msie&&r.$.browser.version<10)&&!(!e._excelDownload_checkRequiredProps(t,"url")||!e._excelDownload_checkValidationOfProps(t))&&e._excelDownloadURLHuge(t)},r.QCELL.BasicQCELL.prototype._excelDownloadURLHuge=function(t){var e=this.attr("id")+"._excelDownloadURLHuge";try{var a=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",o=t.filename+a,i=r.$("<input>").attr("type","hidden").attr("name","filename").val(o),s=r.$("<input>").attr("type","hidden").attr("name","info"),l=r.$("<input>").attr("type","hidden").attr("name","properties"),n=r.$("<input>").attr("type","hidden").attr("name","param"),c=this;return s.val(JSON.stringify(this._exportCellInfoURLHuge(t))),l.val(JSON.stringify(t)),n.val(JSON.stringify(t.param)),r.$.fileDownload(t.url,{httpMethod:"POST",data:{filename:i.val(),info:s.val(),properties:l.val(),param:n.val()}}).done((function(){c._showProgressUI(!1),setTimeout((function(){c._filedowntrigger("afterurlexceldown","success")}),0)})).fail((function(){c._showProgressUI(!1),setTimeout((function(){c._filedowntrigger("afterurlexceldown","fail")}),0)})),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._exportCellInfo=function(t){var e,a,o,i,s,l,n,c,d,h,_={},u=[],p=[],C=[],g=this.attr("cols"),f=r.$.extend(!0,[],this.attr("colwidthsperpixel")),L=r.$.extend(!0,[],this.attr("headertext")),m=r.$.extend(!0,[],this.attr("qcellcols")),E=r.$.extend(!0,[],this.attr("colkeys")),b=r.$.extend(!0,[],this.attr("currentdata")),y=void 0!==t&&t.huge,v=void 0!==t&&t.label,w=void 0!==t&&t.totaldata,x=this.attr("layoutsize").colheader.clientWidth,Q=[],S=[],k=this.attr("staticrowsinfo"),T=this.attr("rowheaders").length,R=0;(!0===this.attr("makefrozenbottomdata")||this._isPanel())&&(R=1);var A=null;try{_.header={},_.header.title=[],_.header.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).header,_.data={},_.data.colskey=[],_.data.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).data;var q=t.useorgindata;if(k.length>0&&(h=!0),!0===v&&("normal"===r.QCELL.module||"basic"===r.QCELL.module)){var B=function(t){return t.nRow===a};for(e=this.attr("headercols");e<g;e++)if("selectmenu"===m[e].attr("type")||"static"===m[e].attr("type")||"input"===m[e].attr("type")||"inputbutton"===m[e].attr("type")||"textarea"===m[e].attr("type")||"datepicker"===m[e].attr("type")||"number"===m[e].attr("type"))for(a=this.attr("headerrows");a<this.attr("rows")-R;a++)if(!0!==h||void 0===r._.find(k,B)){var O=!0===q?this._getCellLabel(a,e,!1):this._getCellLabel(a,e);0!==O||r._.isUndefined(this._cellValue(a,e))||(O=this._cellValue(a,e)),!0!==b[a-this.attr("headerrows")].rt_qc_footer&&(b[a-this.attr("headerrows")][E[e]]=O)}else b[a-this.attr("headerrows")][E[e]]=this._cellValue(a,e)}if(!0===t.usehtmltype)for(e=this.attr("headercols");e<g;e++)if("html"===m[e].attr("type")){var D=this._getColHtml(e);if(r._.isFunction(D.data))for(a=this.attr("headerrows");a<this.attr("rows")&&!0!==b[a-this.attr("headerrows")].rt_qc_fbrd;a++)try{var I=D.data(this,a,e,this._cellValue(a,e),b[a-this.attr("headerrows")],!0);b[a-this.attr("headerrows")][E[e]]=I}catch(t){b[a-this.attr("headerrows")][E[e]]=""}}if(!1===r._.isUndefined(y)&&!0===y?_.data.data=[{}]:_.data.data=b,!1===r._.isUndefined(w)&&!0===w&&(_.data.data=r._.clone(this.attr("data").input)),_.style=[],_.widths=[],!1===r._.isUndefined(t)&&!1===r._.isUndefined(t.orderColumns)&&r._.uniq(t.orderColumns).length===g-T&&(L=this._orderbyExportInfo(L,t.orderColumns),E=this._orderbyExportInfo(E,t.orderColumns),f=this._orderbyExportInfo(f,t.orderColumns)),!1===r._.isUndefined(t)&&!1===r._.isUndefined(t.delColumns)){var N=r._.clone(t.delColumns);for(N.sort().reverse(),g-=N.length,e=0;e<N.length;e++){var P=Number(N[e]);L.splice(P,1),E.splice(P,1),f.splice(P,1)}}if(!0===t.usesequence){!0===r._.isUndefined(t.addColumns)&&(t.addColumns=[]);for(var M=void 0===t.sequencetitle?"":t.sequencetitle,U=[],H=0;H<this.getRows("header");H++)U.push(M);t.addColumns.push({key:"rt_qc_seq",width:"50",title:U,position:T+""}),_.style.push({})}var F={},z={};if(_.objPos=F,_.objStyle=z,!1===r._.isUndefined(t)&&!1===r._.isUndefined(t.addColumns)){for(g+=t.addColumns.length,s=0,l=t.addColumns.length;s<l;s++)r._.isUndefined(t.addColumns[s].position)?S.push(r.$.extend(!0,[],t.addColumns[s])):(Q.push(r.$.extend(!0,[],t.addColumns[s])),z["c_"+t.addColumns[s].position]=t.addColumns[s].styleclassname);if(!r._.isEmpty(Q)){for(s=0;s<Q.length;s++){if(Q[s].position=Number(Q[s].position),isNaN(Q[s].position))return{};F["c_"+Q[s].position]=!0}Q=r._.sortBy(Q,"position")}if(Q.length>0)for(s=0,l=Q.length;s<l;s++)L.splice(Number(Q[s].position),0,Q[s].title),E.splice(Number(Q[s].position),0,Q[s].key),d=r._.isUndefined(Q[s].width)?100:(d=Q[s].width).indexOf("%")>-1?Math.ceil(x*(Number(d.replace("%",""))/100)):Number(d),f.splice(Number(Q[s].position),0,d);if(S.length>0)for(n=0,c=S.length;n<c;n++)L.push(S[n].title),E.push(S[n].key),d=r._.isUndefined(S[n].width)?100:(d=S[n].width).indexOf("%")>-1?Math.ceil(x*(Number(d.replace("%",""))/100)):Number(d),f.push(d)}var j,G=T;if(T>0){for(e=T;e<L.length;e++)for(u.push([]),a=0;a<L[e].length;a++)u[e-T].push(L[e][a]);for(e=0,o=u[0].length;e<o;e++){for(a=0,i=u.length;a<i;a++)p.push(u[a][e]);C.push(r.$.extend(!0,[],p)),p.RT_clear()}for(_.header.title=r.$.extend(!0,[],C),u.RT_clear(),u=null,C.RT_clear(),C=null,p.RT_clear(),p=null,e=T;e<g;e++)_.data.colskey.push(E[e]),_.widths.push(f[e]),!0!==F["c_"+e]?(void 0!==(A=r._.isNull(m[G].attr("styleinfo"))?{}:m[G].attr("styleinfo")).data&&void 0!==A.data.css&&this._useDataTextAlign(G)&&(A.data.css["text-align"]=this._getDataTextAlign(G)),void 0!==t.textalignclass&&(j=m[G].getStyleClassName("data"),void 0===A.data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),null!=j&&(void 0!==t.textalignclass.left&&t.textalignclass.left===j&&(A.data.css["text-align"]="left"),void 0!==t.textalignclass.center&&t.textalignclass.center===j&&(A.data.css["text-align"]="center"),void 0!==t.textalignclass.right&&t.textalignclass.right===j&&(A.data.css["text-align"]="right"))),_.style.push(A),G++):void 0!==z["c_"+e]&&null!=(j=z["c_"+e].data)?(void 0===(A={}).data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),void 0!==t.textalignclass.left&&t.textalignclass.left===j?(A.data.css["text-align"]="left",_.style.push(A)):void 0!==t.textalignclass.center&&t.textalignclass.center===j?(A.data.css["text-align"]="center",_.style.push(A)):void 0!==t.textalignclass.right&&t.textalignclass.right===j?(A.data.css["text-align"]="right",_.style.push(A)):_.style.push({data:{css:{"text-align":"center"}}})):_.style.push({data:{css:{"text-align":"center"}}})}else{for(e=0,o=L[0].length;e<o;e++){for(a=0,i=L.length;a<i;a++)p.push(L[a][e]);C.push(r._.clone(p)),p.RT_clear()}for(_.header.title=r._.clone(C),C.RT_clear(),C=null,p.RT_clear(),p=null,_.data.colskey=E,_.widths=f,e=0;e<g;e++)!0!==F["c_"+e]?(void 0!==(A=r._.isNull(m[G].attr("styleinfo"))?{}:m[G].attr("styleinfo")).data&&void 0!==A.data.css&&this._useDataTextAlign(G)&&(A.data.css["text-align"]=this._getDataTextAlign(G)),void 0!==t.textalignclass&&(j=m[G].getStyleClassName("data"),void 0===A.data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),null!=j&&(void 0!==t.textalignclass.left&&t.textalignclass.left===j&&(A.data.css["text-align"]="left"),void 0!==t.textalignclass.center&&t.textalignclass.center===j&&(A.data.css["text-align"]="center"),void 0!==t.textalignclass.right&&t.textalignclass.right===j&&(A.data.css["text-align"]="right"))),_.style.push(A),G++):void 0!==z["c_"+e]&&null!=(j=z["c_"+e].data)?(void 0===(A={}).data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),void 0!==t.textalignclass.left&&t.textalignclass.left===j?(A.data.css["text-align"]="left",_.style.push(A)):void 0!==t.textalignclass.center&&t.textalignclass.center===j?(A.data.css["text-align"]="center",_.style.push(A)):void 0!==t.textalignclass.right&&t.textalignclass.right===j?(A.data.css["text-align"]="right",_.style.push(A)):_.style.push({data:{css:{"text-align":"center"}}})):_.style.push({data:{css:{"text-align":"center"}}})}var W,V=[];if(void 0!==t.exceltitle&&r._.isString(t.exceltitle)&&void 0!==_.header&&void 0!==_.header.title&&r._.isArray(_.header.title)){for(W=0;W<_.data.colskey.length;W++)V.push(t.exceltitle);_.header.title.RT_insert(0,V)}if(void 0!==t.excelfooter&&r._.isString(t.excelfooter)){V=[];var K={};for(W=0;W<_.data.colskey.length;W++)K[_.data.colskey[W]]=t.excelfooter;_.data.data.push(K)}return _}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._exportCellInfo",t.message);var $=this;return setTimeout((function(){$._trigger("exceldownloadfail")})),{}}},r.QCELL.BasicQCELL.prototype._excelDownload=function(t){var e,a=r._.clone(this);if(void 0!==t.progressui&&!0===t.progressui&&a._showProgressUI(t.progressui),!1===(e=r.$.browser.msie&&r.$.browser.version<10?!(!a._excelDownload_checkRequiredProps(t,"url")||!a._excelDownload_checkValidationOfProps(t))&&a._excelDownloadURL(t):r._.isUndefined(t.url)?!(!a._excelDownload_checkRequiredProps(t,"loc")||!a._excelDownload_checkValidationOfProps(t))&&a._excelDownloadLOC(t):!(!a._excelDownload_checkRequiredProps(t,"url")||!a._excelDownload_checkValidationOfProps(t))&&a._excelDownloadURL(t))){var o=this;setTimeout((function(){o._trigger("exceldownloadfail")}))}return e},r.QCELL.BasicQCELL.prototype._excelDownload_checkRequiredProps=function(t,e){var a=!0;if(r._.isObject(t)&&!1===r._.isArray(t)){for(var o,i=0,s=(o="loc"===e?["filename"]:["filename","url"]).length;i<s;i++){var l=o[i];if(void 0===t[l]){r.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkRequiredProps",'Please check "'+l+'" property.'),a=!1;break}}o.RT_clear(),o=null}else r.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),a=!1;return a},r.QCELL.BasicQCELL.prototype._excelDownload_checkValidationOfProps=function(t){var e=!0,a=this;return r.$.each(t,(function(t,r){return e=a._excelDownload_checkValidationOfProp(t,r)})),e},r.QCELL.BasicQCELL.prototype._excelDownload_checkValidationOfProp=function(t,e){var a=!0,o=!0,i="";switch(t){case"filename":case"fileExt":case"url":i="string",!1===r._.isString(e)&&(a=!1);break;case"border":case"headershow":case"colwidth":case"progressui":case"huge":case"label":i="boolean",!1===r._.isBoolean(e)&&(a=!1);break;case"addColumns":i="object",!1===r._.isObject(e)?a=!1:r.$.each(e,(function(e,s){r.$.each(s,(function(e,s){switch(e){case"width":case"key":case"num":if(i="string",!1===r._.isString(s))return r.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+"."+e+'" property. This property\'s type is "'+i+'".'),a=!1,o=!1,!1;break;case"title":if(i="object",!1===r._.isObject(s))return r.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+"."+e+'" property. This property\'s type is "'+i+'".'),a=!1,o=!1,!1}}))}));break;case"delColumns":case"orderColumns":i="array",!0!==r._.isUndefined(e)&&!1!==r._.isArray(e)||(a=!1)}return!1===a&&o&&r.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+'" property\'s type is "'+i+'".'),a},r.QCELL.BasicQCELL.prototype._excelDownloadURL=function(t){var e=this.attr("id")+"._excelDownloadURL";try{var a=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",o=t.filename+a,i=r.$("<input>").attr("type","hidden").attr("name","filename").val(o),s=r.$("<input>").attr("type","hidden").attr("name","info"),l=r.$("<input>").attr("type","hidden").attr("name","properties"),n=r.$("<input>").attr("type","hidden").attr("name","param"),c=this;return s.val(JSON.stringify(this._exportCellInfo(t))),l.val(JSON.stringify(t)),n.val(JSON.stringify(t.param)),r.$.fileDownload(t.url,{httpMethod:"POST",data:{filename:i.val(),info:s.val(),properties:l.val(),param:n.val()}}).done((function(){void 0!==t.progressui&&!0===t.progressui&&c._showProgressUI(!1),setTimeout((function(){c._filedowntrigger("afterurlexceldown","success")}),0)})).fail((function(){void 0!==t.progressui&&!0===t.progressui&&c._showProgressUI(!1),setTimeout((function(){c._filedowntrigger("afterurlexceldown","fail")}),0)})),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._excelDownloadLOC=function(t){var e=this.attr("id")+"._excelDownloadLOC";try{var a,o,i,s,l=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",n=t.filename+l,c=[],d=[],h=[],_=this._exportCellInfo(t),u=!1!==r._.isUndefined(t.delColumns)&&!1!==r._.isUndefined(t.addColumns);if(t.usesequence&&(u=!0),void 0!==t.totaldata&&r._.isBoolean(t.totaldata)&&t.totaldata&&(_.data.data=r._.clone(this.attr("data").input)),!0===this.attr("excelexportwithformat"))for(o=0;o<this.attr("cols");o++)if(null!=(i=this._getKeyOfCol(o))&&""!==i&&(s=this._getColFormat(o),!r._.isUndefined(s)&&!r._.isNull(s)))for(a=0;a<_.data.data.length;a++)_.data.data[a][i]=this._showDataFormat(a,o,_.data.data[a][i]);return void 0!==t.headershow&&r._.isBoolean(t.headershow)&&t.headershow?(d=this._excelMerge(_.header,"header",!1,t),h=this._excelMerge(_.data,"data",u,t),c=this._unionMergeInfo(_.header.title.length,d,h),this._exportToExcel(_,n,c,t)):(c=this._excelMerge(_.data,"data",u,t),this._exportToExcel(_,n,c,t)),void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._exportToExcel=function(t,e,r,a){var o=this._SetWorkbook(t,r,a),i=window.XLSX.write(o,{bookType:"xlsx",bookSST:!0,type:"binary",compression:!0}),s=e;try{window.saveAs(new Blob([this._s2ab(i)],{type:"application/octet-stream"}),s)}catch(t){"undefined"!=typeof console&&console.log(t,i)}return i},r.QCELL.BasicQCELL.prototype._s2ab=function(t){var e,r=0;if("undefined"!=typeof ArrayBuffer){e=new ArrayBuffer(t.length);var a=new Uint8Array(e);for(r=0;r<t.length;++r)a[r]=255&t.charCodeAt(r);return e}for(e=new Array(t.length),r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e},r.QCELL.BasicQCELL.prototype._SetWorkbook=function(t,e,a){var o={SheetNames:[],Sheets:{}},i="Sheet";o.SheetNames.push(i);var s,l={},n=t.data.data.length,c=t.data.colskey.length,d=0;void 0!==a.headershow&&r._.isBoolean(a.headershow)&&a.headershow&&(d=t.header.title.length);var h={s:{c:0,r:0},e:{c:c-1,r:(s=d+n)-1}};l["!ref"]=window.XLSX.utils.encode_range(h),l["!merges"]=e;var _=[],u=this.attr("presentseqatfooter");if(void 0!==a.headershow&&r._.isBoolean(a.headershow)&&a.headershow)for(var p=0,C=t.widths.length;p<C;p++){var g=parseInt(t.widths[p]);void 0!==a.defaultColumnSize&&0===g&&(a.defaultColumnSize=r.util.replaceAll(a.defaultColumnSize,"px",""),a.defaultColumnSize=r.util.replaceAll(a.defaultColumnSize,"%",""),g=parseInt(a.defaultColumnSize)),isNaN(g)&&(g=0),_.push({wpx:.75*g})}l["!cols"]=_;var f=0,L=0,m="",E={},b=void 0!==a.exceltitle,y=void 0!==a.excelfooter,v={fill:{patternType:"none",fgColor:{rgb:"000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}},w={fill:{patternType:"none",fgColor:{rgb:"000000"},bgColor:{rgb:"#FFFFFF"}},font:{name:"맑은 고딕",sz:12,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"center"}};for(f=0;f<d;f++){var x=t.header.title[f];for(L=0;L<c;L++)v={fill:{patternType:"none",fgColor:{rgb:"FF000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}},v=this._cellStyleSetting(v,"header",a),m=window.XLSX.utils.encode_cell({c:L,r:f}),(E={}).v=x[L],E.t="s",E.s=!0===b&&0===f?w:v,E.z="@",l[m]=E,E={}}for(;f<s;f++){var Q=f-d,S=t.data.data[Q],k=t.data.colskey;for(L=0;L<c;L++){var T={fill:{patternType:"none",fgColor:{rgb:"FF000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!1,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}};if(!0!==a.forcebasicstyle&&(T=this._cellStyleSetting(T,"data",a)),y&&f+1===s&&(T.alignment.horizontal="center"),m=window.XLSX.utils.encode_cell({c:L,r:f}),E={},"rt_qc_seq"===k[L])!1===u&&!0===S.rt_qc_footer?(E.v="",E.s=v,E.t="s",E.z="@"):void 0!==a.excelfooter&&S.rt_qc_seq===a.excelfooter?(E.v=a.excelfooter,E.s=v,E.t="s",E.z="@"):(!0===S.rt_qc_fbrd?E.v=void 0===S.rt_qc_seq?" ":S.rt_qc_seq:E.v=Q+1,E.s=v,E.t="n",E.z="0_ ");else{if(E.v=r._.isUndefined(S[k[L]])||r._.isNull(S[k[L]])?"":""+S[k[L]],"string"===a.datatype)E.t="s",E.z="@";else if("string"===this._getColExportDataType(this._getColsOfKey(k[L])[0]))E.t="s",E.z="@";else{var R=0===this._getColsOfKey(k[L]).length?-1:this._getColsOfKey(k[L])[0],A=-1===R?null:this._getColFormat(R);if(null!=A)if("number"===A.type){var q=r.util.replaceAll(E.v,",","");isNaN(Number(q))?(E.t="s",E.z="@"):(E.v=Number(q),E.t="n",E.z=A.rule)}else E.t="s",E.z="@";else r._.isString(E.v)&&""===E.v.trim()?(E.t="s",E.z="@"):r._.isNumber(E.v)||!isNaN(Number(E.v))?(E.t="n",E.v=Number(E.v),E.z="0_ "):(E.t="s",E.z="@")}E.s=T}l[m]=E,E={}}}return o.Sheets[i]=l,o},r.QCELL.BasicQCELL.prototype._cellStyleSetting=function(t,e,a){return"header"===e&&(t.fill.bgColor.rgb="FFf8f8f8",t.fill.fgColor.rgb="FFf8f8f8",t.fill.patternType="solid",t.font.color.rgb="FF707070",t.font.bold=!0,t.alignment.horizontal="center"),void 0!==a.border&&r._.isBoolean(a.border)&&a.border&&(t.border={top:{style:"thin",color:{auto:1}},right:{style:"thin",color:{auto:1}},bottom:{style:"thin",color:{auto:1}},left:{style:"thin",color:{auto:1}}}),t},r.QCELL.BasicQCELL.prototype._unionMergeInfo=function(t,e,a){if(a.length>0)for(var o=0,i=a.length;o<i;o++)a[o].s.r=a[o].s.r+t,a[o].e.r=a[o].e.r+t;return r._.union(e,a)},r.QCELL.BasicQCELL.prototype._excelMerge=function(t,e,r,a){var o=t.mergeType,i=[];if("header"===e)i=t.title;else for(var s=t.colskey,l=t.data,n=this.attr("presentseqatfooter"),c=0,d=l.length;c<d;c++){for(var h=[],_=0,u=s.length;_<u;_++)"rt_qc_seq"===s[_]?void 0!==a.excelfooter&&c===d-1?h.push(a.excelfooter):!1===n&&!0===l[c].rt_qc_footer?h.push(""):h.push(c+1):h.push(l[c][s[_]]);i.push(h)}return this._mergeInfoSetting(o,i,e,r,a)},r.QCELL.BasicQCELL.prototype._mergeInfoSetting=function(t,e,a,o,i){var s,l,n,c,d,h,_,u,p,C,g=0,f=0,L=0,m=0,E={},b=0,y=0,v=0,w=0,x=e.length,Q=!0===r._.isEmpty(e)?this.attr("cols")-this.attr("rowheaders").length:e[0].length,S=[],k=this.attr("rowheaders").length,T=0,R=0,A=!0===i.usesequence?1:0;if("header"===a&&void 0!==i.exceltitle?(T=1,E.s={r:0,c:0},E.e={r:0,c:Q-1},E.s.c!==E.e.c&&S.push(E),E={}):"data"===a&&void 0!==i.excelfooter&&(R=1,E.s={r:x-1,c:0},E.e={r:x-1,c:Q-1},E.s.c!==E.e.c&&S.push(E),E={}),"row"===t)for(y=0;y<x-R;y++)for(b=0;b<Q;b++)!1===this._getColDataMergeCol(b+k)&&o||(0===b&&(f=0,m=0),(v=(_=b+k)+1)>=Q&&(v=_),e[y][_]===e[y][v]?m=v:(E.s={r:y,c:f},E.e={r:y,c:m},E.s.c!==E.e.c&&S.push(E),f=v,m=v,E={}),b+1===Q&&(E.s={r:y,c:f},E.e={r:y,c:m},E.s.c!==E.e.c&&S.push(E),E={}));else if("col"===t){for(b=A;b<Q;b++)if(!1!==this._getColDataMergeCol(b-A+k)||!o)for(y=0;y<x-R;y++)0===y&&(g=0,L=0),_=b,(w=y+1)>=x&&(w=y),e[y][_]===e[w][_]?L=w:(E.s={r:g,c:_},E.e={r:L,c:_},E.s.r!==E.e.r&&S.push(E),g=w,L=w,E={}),y+1===x&&(E.s={r:g,c:_},E.e={r:L,c:_},E.s.r!==E.e.r&&S.push(E),E={})}else if("rowandcol"===t&&"header"===a)for(y=T;y<x;y++)for(g=y,L=y,b=0;b<Q;b++)0===b&&(f=0,m=0),(v=b+1)>=Q&&(v=b),e[y][b]===e[y][v]?m=v:(g===(L=this._excelFindEndRow(g,f,m,e))&&f===m||this._checkMerge(g,f,S)||(E.s={r:g,c:f},E.e={r:L,c:m},S.push(E),E={}),f=v,m=v,L=g),b+1===Q&&(g===(L=this._excelFindEndRow(g,f,m,e))&&f===m||this._checkMerge(g,f,S)||(E.s={r:g,c:f},E.e={r:L,c:m},S.push(E),E={}));else if("colandrow"===t&&"header"===a)for(b=T;b<Q;b++)for(f=b,m=b,y=0;y<x;y++)0===y&&(g=0,L=0),(w=y+1)>=x&&(w=y),e[y][b]===e[w][b]?L=w:(m=this._excelFindEndCol(f,g,L,e,Q),g===L&&f===m||this._checkMerge(g,f,S)||(E.s={r:g,c:f},E.e={r:L,c:m},S.push(E),E={}),g=w,L=w,m=f),y+1===x&&(m=this._excelFindEndCol(f,g,L,e,Q),g===L&&f===m||this._checkMerge(g,f,S)||(E.s={r:g,c:f},E.e={r:L,c:m},S.push(E),E={}));else if("group"===t){for(c=[],u=0;u<k;u++)c[u]=[];for(b=A;b<Q;b++)if(!1!==this._getColDataMergeCol(b+k)||!o)if(c[b]=[],b===A)for(y=0;y<x-R;y++)0===y&&(g=0,L=0),(w=y+1)>=x&&(w=y),e[y][b]===e[w][b]?L=w:(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r&&c[b].push(E),g=w,L=w,E={}),y+1===x&&(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r&&c[b].push(E),E={});else if(void 0===c[b-1]&&(c[b-1]=[]),c[b-1].length>0)for(s=0,p=c[b-1].length;s<p;s++)for(h=(d=c[b-1][s]).s.r,C=d.e.r;h<C;h++)h===d.s.r&&(g=d.s.r,L=d.s.r),w=h+1,e[h][b]===e[w][b]?L=w:(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r&&c[b].push(E),g=w,L=w,E={}),h+1===C&&(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r&&c[b].push(E),E={});if(c.length>0)for(l=0;l<c.length;l++)if(c[l].length>0)for(n=0;n<c[l].length;n++)S.push(c[l][n])}else if("groupandrow"===t){for(c=[],u=0;u<k;u++)c[u]=[];var q,B=[];for(b=A;b<Q;b++)if(!1!==this._getColDataMergeCol(b+k)||!o)if(c[b]=[],b===A)for(y=0;y<x-R;y++){if(0===y&&(g=0,L=0),(w=y+1)>=x&&(w=y),e[y][b]===e[w][b])L=w;else{if(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r)c[b].push(E);else{for(q=b+1;q<Q&&e[y][b]===e[y][q];q++);b+1!==q&&(E.s={r:g,c:b},E.e={r:L,c:q-1},B.push(E))}g=w,L=w,E={}}if(y+1===x){if(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r)c[b].push(E);else{for(q=b+1;q<Q&&e[y][b]===e[y][q];q++);b+1!==q&&(E.s={r:g,c:b},E.e={r:L,c:q-1},B.push(E))}E={}}}else if(void 0===c[b-1]&&(c[b-1]=[]),c[b-1].length>0)for(s=0,p=c[b-1].length;s<p;s++)for(h=(d=c[b-1][s]).s.r,C=d.e.r;h<C;h++){if(h===d.s.r&&(g=d.s.r,L=d.s.r),w=h+1,e[h][b]===e[w][b])L=w;else{if(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r)c[b].push(E);else{for(q=b+1;q<Q&&e[h][b]===e[h][q];q++);b+1!==q&&(E.s={r:g,c:b},E.e={r:L,c:q-1},B.push(E))}g=w,L=w,E={}}if(h+1===C){if(E.s={r:g,c:b},E.e={r:L,c:b},E.s.r!==E.e.r)c[b].push(E);else{for(q=b+1;q<Q&&e[h][b]===e[h][q];q++);b+1!==q&&(E.s={r:g,c:b},E.e={r:L,c:q-1},B.push(E))}E={}}}if(c.length>0)for(l=0;l<c.length;l++)if(c[l].length>0)for(n=0;n<c[l].length;n++)S.push(c[l][n]);if(B.length>0)for(n=0;n<B.length;n++)S.push(B[n])}return S},r.QCELL.BasicQCELL.prototype._excelFindEndCol=function(t,e,r,a,o){var i,s=t,l=a[e][t],n=!0,c=0,d=0;for(d=t,i=o;d<i;d++){if(a[e][d]!==l){c=d;break}c=d}for(d=t,i=c;d<=i;d++){for(var h=e,_=r;h<=_;h++){if(a[h][d]!==l){s=--d,n=!1;break}s=d}if(!n)break}return s},r.QCELL.BasicQCELL.prototype._excelFindEndRow=function(t,e,r,a){for(var o=t,i=a[t][e],s=!0,l=t,n=a.length;l<n;l++){for(var c=e,d=r;c<=d;c++){if(a[l][c]!==i){o=--l,s=!1;break}o=l}if(!s)break}return o},r.QCELL.BasicQCELL.prototype._checkMerge=function(t,e,r){var a=!1;if(r.length>0)for(var o=0,i=r.length;o<i;o++)t>=r[o].s.r&&t<=r[o].e.r&&e>=r[o].s.c&&e<=r[o].e.c&&(a=!0);return a},r.QCELL.BasicQCELL.prototype._getMergeInfo=function(t,e,r){var a={};if(r.length>0)for(var o=0,i=r.length;o<i;o++)if(t>=r[o].s.r&&t<=r[o].e.r&&e>=r[o].s.c&&e<=r[o].e.c){a=r[o];break}return a},r.QCELL.BasicQCELL.prototype._convertHtmlColorCode=function(t){var e="";switch(t.toLowerCase()){case"indianred":e="#cd5c5c";break;case"lightcoral":e="#f08080";break;case"salmon":e="#fa8072";break;case"darksalmon":e="#e9967a";break;case"lightsalmon":e="#ffa07a";break;case"crimson":e="#dc143c";break;case"red":e="#ff0000";break;case"firebrick":e="#b22222";break;case"darkred":e="#8b0000";break;case"pink":e="#ffc0cb";break;case"lightpink":e="#ffb6c1";break;case"hotpink":e="#ff69b4";break;case"deeppink":e="#ff1493";break;case"mediumvioletred":e="#c71585";break;case"palevioletred":case"tomato":e="#db7093";break;case"coral":e="#ff7f50";break;case"orangered":e="#ff4500";break;case"darkorange":e="#ff8c00";break;case"orange":e="#ffa500";break;case"gold":e="#ffd700";break;case"yellow":e="#ffff00";break;case"lightyellow":e="#ffffe0";break;case"lemonchiffon":e="#fffacd";break;case"lightgoldenrodyellow":e="#fafad2";break;case"papayawhip":e="#ffefd5";break;case"moccasin":e="#ffe4b5";break;case"peachpuff":e="#ffdab9";break;case"palegoldenrod":e="#eee8aa";break;case"khaki":e="#f0e68c";break;case"darkkhaki":e="#bdb76b";break;case"lavender":e="#e6e6fa";break;case"thistle":e="#d8bfd8";break;case"plum":e="#dda0dd";break;case"violet":e="#ee82ee";break;case"orchid":e="#da70d6";break;case"fuchsia":case"magenta":e="#ff00ff";break;case"mediumorchid":e="#ba55d3";break;case"mediumpurple":e="#9370db";break;case"rebeccapurple":e="#663399";break;case"blueviolet":e="#8a2be2";break;case"darkviolet":e="#9400d3";break;case"darkorchid":e="#9932cc";break;case"darkmagenta":e="#8b008b";break;case"purple":e="#800080";break;case"indigo":e="#4b0082";break;case"slateblue":e="#6a5acd";break;case"darkslateblue":e="#483d8b";break;case"greenyellow":e="#adff2f";break;case"chartreuse":e="#7fff00";break;case"lawngreen":e="#7cfc00";break;case"lime":e="#00ff00";break;case"limegreen":e="#32cd32";break;case"palegreen":e="#98fb98";break;case"lightgreen":e="#90ee90";break;case"mediumspringgreen":e="#00fa9a";break;case"springgreen":e="#00ff7f";break;case"mediumseagreen":e="#3cb371";break;case"seagreen":e="#2e8b57";break;case"forestgreen":e="#228b22";break;case"green":e="#008000";break;case"darkgreen":e="#006400";break;case"yellowgreen":e="#9acd32";break;case"olivedrab":e="#6b8e23";break;case"olive":e="#808000";break;case"darkolivegreen":e="#556b2f";break;case"mediumaquamarine":e="#66cdaa";break;case"darkseagreen":e="#8fbc8b";break;case"lightseagreen":e="#20b2aa";break;case"darkcyan":e="#008b8b";break;case"teal":e="#008080";break;case"aqua":case"cyan":e="#00ffff";break;case"lightcyan":e="#e0ffff";break;case"paleturquoise":e="#afeeee";break;case"aquamarine":e="#7fffd4";break;case"turquoise":e="#40e0d0";break;case"mediumturquoise":e="#48d1cc";break;case"darkturquoise":e="#00ced1";break;case"cadetblue":e="#5f9ea0";break;case"steelblue":e="#4682b4";break;case"lightsteelblue":e="#b0c4de";break;case"powderblue":e="#b0e0e6";break;case"lightblue":e="#add8e6";break;case"skyblue":e="#87ceeb";break;case"lightskyblue":e="#87cefa";break;case"deepskyblue":e="#00bfff";break;case"dodgerblue":e="#1e90ff";break;case"cornflowerblue":e="#6495ed";break;case"mediumslateblue":e="#7b68ee";break;case"royalblue":e="#4169e1";break;case"blue":e="#0000ff";break;case"mediumblue":e="#0000cd";break;case"darkblue":e="#00008b";break;case"navy":e="#000080";break;case"midnightblue":e="#191970";break;case"cornsilk":e="#fff8dc";break;case"blanchedalmond":e="#ffebcd";break;case"bisque":e="#ffe4c4";break;case"navajowhite":e="#ffdead";break;case"wheat":e="#f5deb3";break;case"burlywood":e="#deb887";break;case"tan":e="#d2b48c";break;case"rosybrown":e="#bc8f8f";break;case"sandybrown":e="#f4a460";break;case"goldenrod":e="#daa520";break;case"darkgoldenrod":e="#b8860b";break;case"peru":e="#cd853f";break;case"chocolate":e="#d2691e";break;case"saddlebrown":e="#8b4513";break;case"sienna":e="#a0522d";break;case"brown":e="#a52a2a";break;case"maroon":e="#800000";break;case"white":e="#ffffff";break;case"snow":e="#fffafa";break;case"honeydew":e="#f0fff0";break;case"mintcream":e="#f5fffa";break;case"azure":e="#f0ffff";break;case"aliceblue":e="#f0f8ff";break;case"ghostwhite":e="#f8f8ff";break;case"whitesmoke":e="#f5f5f5";break;case"seashell":e="#fff5ee";break;case"beige":e="#f5f5dc";break;case"oldlace":e="#fdf5e6";break;case"floralwhite":e="#fffaf0";break;case"ivory":e="#fffff0";break;case"antiquewhite":e="#faebd7";break;case"linen":e="#faf0e6";break;case"lavenderblush":e="#fff0f5";break;case"mistyrose":e="#ffe4e1";break;case"gainsboro":e="#dcdcdc";break;case"lightgray":e="#d3d3d3";break;case"silver":e="#c0c0c0";break;case"darkgray":e="#a9a9a9";break;case"gray":e="#808080";break;case"dimgray":e="#696969";break;case"lightslategray":e="#778899";break;case"slategray":e="#708090";break;case"darkslategray":e="#2f4f4f";break;default:e="#000000"}return e},r.QCELL.BasicQCELL.prototype._htmlDownload=function(t){var e=r._.clone(this);return void 0!==t.progressui&&!0===t.progressui&&e._showProgressUI(t.progressui),!(r.$.browser.msie&&r.$.browser.version<10)&&!(!e._htmlDownload_checkRequiredProps(t)||!e._excelDownload_checkValidationOfProps(t))&&e._htmlDownloadLOC(t)},r.QCELL.BasicQCELL.prototype._htmlDownload_checkRequiredProps=function(t){var e=!0;if(r._.isObject(t)&&!1===r._.isArray(t)){for(var a,o=0,i=(a=["filename"]).length;o<i;o++){var s=a[o];if(void 0===t[s]){r.QCELL.log("err","QCELL.BasicQCELL._htmlDownload_checkRequiredProps",'Please check "'+s+'" property.'),e=!1;break}}a.RT_clear(),a=null}else r.QCELL.log("err","QCELL.BasicQCELL._htmlDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},r.QCELL.BasicQCELL.prototype._htmlDownloadLOC=function(t){var e=this.attr("id")+"._htmlDownloadLOC";try{var a=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".html",o=t.filename+a,i=[],s=[],l=[],n=this._exportCellInfo(t),c=!1!==r._.isUndefined(t.delColumns)&&!1!==r._.isUndefined(t.addColumns);if(void 0!==t.totaldata&&r._.isBoolean(t.totaldata)&&t.totaldata&&(n.data.data=r._.clone(this.attr("data").input)),void 0!==t.headershow&&r._.isBoolean(t.headershow)&&t.headershow){if(s=this._excelMerge(n.header,"header",!1),l=this._excelMerge(n.data,"data",c),i=this._unionMergeInfo(n.header.title.length,s,l),!0===t.export)return this._exportToHtml(n,o,i,t);this._exportToHtml(n,o,i,t)}else{if(i=this._excelMerge(n.data,"data",c,c),!0===t.export)return this._exportToHtml(n,o,i,t);this._exportToHtml(n,o,i,t)}return void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._exportToHtml=function(t,e,a,o){var i=this.attr("id")+"._exportToHtml";try{o.headershow=!0;var s,l,n=this._SetWorkbook(t,a,o),c=window.XLSX.write(n,{charset:"utf-8",bookType:"html",type:"string",filename:e,cellDates:!0,cellStyles:!0}),d=this,h=r.$.parseHTML(c,!0),_=r.$(h),u="",p="";_.each((function(){if(r.$(this).is("title"))r.$(this).text(e.replace(".html","")),u=r.$(this);else if(r.$(this).is("table")){var a=t.header.title.length,o=r.$(this).find("tr"),i=d.attr("rowheight"),n=t.style,c=function(e,a){var o=parseInt(a.getAttribute("data-row")),s=r.$(a);r._.isEmpty(n[e])||r._.isUndefined(n[e].data)||s.css(n[e].data.css),s.css(d.getCellStyle(o,e)),s.css("width",t.widths[e]),s.css("height",i.data)},h=function(e,a){var o=parseInt(a.getAttribute("data-row")),s=r.$(a);s.removeAttr("style"),s.addClass("rt-qc-header rt-qc-th"),r._.isEmpty(n[e])||r._.isUndefined(n[e].header)||s.css(n[e].header.css),s.css(d.getCellStyle(o,e)),s.css("height",i.header),s.css("width",t.widths[e])};for(s=0;s<o.length;s++)l=r.$(o[s]),r.$(l).children("td").each(c);for(s=0;s<a;s++)(l=r.$(o[s])).removeClass("rt-qc-cell"),r.$(l).children("td").each(h);p=r.$(this)}}));var C=u.html(),g=c.indexOf("<title>"),f=c.indexOf("</title>"),L=c.substring(0,g+7),m=c.substring(f);c=L.concat(C,m);var E=p.html(),b=c.indexOf("<table"),y=c.indexOf("</table>"),v=c.substring(0,b+53),w=c.substring(y),x=(c=v.concat(E,w)).indexOf("</head>"),Q=c.substring(0,x),S=c.substring(x);return c=Q.concat("<style>body{font-family: NanumGothic, Dotum, sans-serif !important; background-color: #fff;} .rt-qc-table, .rt-qc-cell {border-width: 1px; border-style: solid; border-color: #d3d5df; border-collapse: collapse; background-color: #fff;} .rt-qc-table {border-spacing: 0px; } .rt-qc-cell {padding: 0px; border-spacing: 0px; font-family: NanumGothic, Dotum, sans-serif !important; } .rt-qc-header {text-align: center; font-weight: bold; background-color: #7b7d87; border-color: #93959f; color: #fff;} .rt-qc-cell {font-size: 13px; } </style>",S),!0===o.export?c:(window.saveAs(new Blob([c],{type:"text/html"}),e),!0)}catch(t){return r.QCELL.log("err",i,t.message),!1}},r.QCELL.BasicQCELL.prototype._pdfDownload=function(t){var e=r._.clone(this);setTimeout((function(){e._showProgressUI(!0)}),0),setTimeout((function(){return!(r.$.browser.msie&&r.$.browser.version<10)&&!(!e._pdfDownload_checkRequiredProps(t)||!e._excelDownload_checkValidationOfProps(t))&&e._pdfDownloadLOC(t)}),300)},r.QCELL.BasicQCELL.prototype._pdfDownload_checkRequiredProps=function(t){var e=!0;if(r._.isObject(t)&&!1===r._.isArray(t)){for(var a,o=0,i=(a=["filename"]).length;o<i;o++){var s=a[o];if(void 0===t[s]){r.QCELL.log("err","QCELL.BasicQCELL._pdfDownload_checkRequiredProps",'Please check "'+s+'" property.'),e=!1;break}}a.RT_clear(),a=null}else r.QCELL.log("err","QCELL.BasicQCELL._pdfDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},r.QCELL.BasicQCELL.prototype._pdfDownloadLOC=function(t){var e=this.attr("id")+"._pdfDownloadLOC";try{var a=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".pdf",o=t.filename+a,i=[],s=[],l=[],n=this._exportCellInfo(t),c=!1!==r._.isUndefined(t.delColumns)&&!1!==r._.isUndefined(t.addColumns);return void 0!==t.totaldata&&r._.isBoolean(t.totaldata)&&t.totaldata&&(n.data.data=r._.clone(this.attr("data").input)),void 0!==t.headershow&&r._.isBoolean(t.headershow)&&t.headershow?(s=this._excelMerge(n.header,"header",!1),l=this._excelMerge(n.data,"data",c),i=this._unionMergeInfo(n.header.title.length,s,l),this._exportToPDF(n,o,i,t)):(i=this._excelMerge(n.data,"data",c),this._exportToPDF(n,o,i,t)),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._exportToPDF=function(t,e,a,o){var i,s=this.attr("id")+"._exportToPDF";try{o.headershow=!0;var l,n,c=this._SetWorkbook(t,a,o),d=window.XLSX.write(c,{charset:"utf-8",bookType:"html",type:"string",filename:e,cellDates:!0,cellStyles:!0}),h=this,_=r.$.parseHTML(d,!0),u=r.$(_),p="",C="";u.each((function(){if(r.$(this).is("title"))r.$(this).text(e.replace(".html","")),p=r.$(this);else if(r.$(this).is("table")){var a=t.header.title.length,o=r.$(this).find("tr"),i=h.attr("rowheight"),s=t.style,c=function(e,a){var o=parseInt(a.getAttribute("data-row"));r._.isEmpty(s[e])||r._.isUndefined(s[e].data)||r.$(a).css(s[e].data.css),r.$(a).css(h.getCellStyle(o,e)),r.$(a).css("width",t.widths[e]),r.$(a).css("height",i.data)},d=function(e,a){var o=parseInt(a.getAttribute("data-row"));r.$(a).removeAttr("style"),r.$(a).addClass("rt-qc-th"),r._.isEmpty(s[e])||r._.isUndefined(s[e].header)||r.$(a).css(s[e].header.css),r.$(a).css(h.getCellStyle(o,e)),r.$(a).css("height",i.header),r.$(a).css("width",t.widths[e])};for(l=0;l<o.length;l++)n=r.$(o[l]),r.$(n).children("td").each(c);for(l=0;l<a;l++)(n=r.$(o[l])).addClass("rt-qc-header"),r.$(n).children("td").each(d);C=r.$(this)}}));var g=p.html(),f=d.indexOf("<title>"),L=d.indexOf("</title>"),m=d.substring(0,f+7),E=d.substring(L);d=m.concat(g,E);var b=C.html(),y=d.indexOf("<table"),v=d.indexOf("</table>"),w=d.substring(0,y+53),x=d.substring(v),Q=(d=w.concat(b,x)).indexOf("</head>"),S=d.substring(0,Q),k=d.substring(Q);d=S.concat("<style>html, body{ background: #fff; background-color: #fff; margin: 0; padding: 0;}body{font-family: NanumGothic, Dotum, sans-serif !important;} .rt-qc-table {margin: auto; } .rt-qc-table, .rt-qc-cell {border-width: 1px; border-style: solid; border-color: #d3d5df; border-collapse: collapse;} .rt-qc-table {border-spacing: 0px; } .rt-qc-cell {padding: 0px; border-spacing: 0px; font-family: NanumGothic, Dotum, sans-serif !important; } .rt-qc-header {text-align: center; font-weight: bold; background-color: #7b7d87; border-color: #93959f; color: #ffffff;} .rt-qc-cell {font-size: 13px;} .rt-qc-td {background-color: #fff; color: #000; } .rt-qc-th {background-color: #7b7d87 !important; color: #fff !important;} </style>",k);var T=r.$(d).filter("#rt-qc-tbl"),R=r.$('<div id="editor"></div>');R.css({display:"none"}),R.append(T),r.$(document.body).append(R);var A="rt-qc-ifrm",q=document.createElement("iframe");q.setAttribute("frameborder","0"),q.style.width="100%",q.style.height="100%",q.style.visibility="hidden",q.id=A,document.body.appendChild(q);var B=document.getElementById(A);(B=B.contentWindow||B.contentDocument.document||B.contentDocument).document.open(),B.document.write(d),B.document.close(),r.$("#"+A).load((function(){window.html2canvas(r.$("#"+A).contents().find("body"),{scale:3,allowTaint:!1,logging:!1,background:"#fff",onrendered:function(t){t.style.background="#FFFFFF";var a=t.toDataURL("image/jpeg",1),o=296.94,i=210*t.height/t.width,s=i,l=new window.jsPDF({orientation:"p",unit:"mm",format:"a4",compress:!0}),n=0;for(l.addImage(a,"JPEG",0,n,210,i,"","FAST"),s-=o;s>=20;)n=s-i,l.addPage(),l.addImage(a,"JPEG",0,n,210,i,"","FAST"),s-=o;l.save(e),setTimeout((function(){r.$(R).remove(),r.$("#"+A).remove()}),1e3)}})})),i=!0}catch(t){r.QCELL.log("err",s,t.message),i=!1}finally{this._showProgressUI(!1)}return i},r.QCELL.BasicQCELL.prototype._txtDownload=function(t){var e=r._.clone(this);void 0!==t.progressui&&!0===t.progressui&&setTimeout((function(){e._showProgressUI(!0)}),0),setTimeout((function(){return!(r.$.browser.msie&&r.$.browser.version<10)&&!!e._txtDownload_checkRequiredProps(t)&&e._txtDownloadLOC(t)}),300)},r.QCELL.BasicQCELL.prototype._txtDownload_checkRequiredProps=function(t){var e=!0;if(r._.isObject(t)&&!1===r._.isArray(t)){for(var a,o=0,i=(a=["filename"]).length;o<i;o++){var s=a[o];if(void 0===t[s]){r.QCELL.log("err","QCELL.BasicQCELL._txtDownload_checkRequiredProps",'Please check "'+s+'" property.'),e=!1;break}}a.RT_clear(),a=null}else r.QCELL.log("err","QCELL.BasicQCELL._txtDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},r.QCELL.BasicQCELL.prototype._txtDownloadLOC=function(t){var e=this.attr("id")+"._txtDownloadLOC";try{var a,o,i,s,l,n=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".txt",c=t.filename+n,d=void 0===t.colsep?",":t.colsep,h=void 0===t.rowsep?"\n":t.rowsep,_=void 0!==t.headershow&&t.headershow,u=void 0!==t.label&&t.label,p=t.addColumns,C="",g="";if(_)for(a=0;a<this.getRows("header");a++){for(g="",!0===t.usesequence&&(g+=void 0===t.sequencetitle?" ":t.sequencetitle),o=this.getCols("header");o<this.getCols();o++){if(void 0!==p&&r._.isArray(p)){for(s="",l=0;l<p.length;l++)if(i=p[l],o===Number(i.position)){""!==g&&(g+=d),s+=i.title[a];break}g+=s}""!==g&&(g+=d),g+=this._cellValue(a,o)}if(void 0!==p&&r._.isArray(p)){for(s="",l=0;l<p.length;l++)i=p[l],this.getCols()===Number(i.position)&&(""!==g&&(g+=d),s+=i.title[a]);g+=s}""!==(C+=g)&&(C+=h)}for(a=this.getRows("header");a<this.getRows();a++){g="";var f=this.getRowData(a);for(!0===t.usesequence&&(!0===f.rt_qc_fbrd?g+=void 0===f.rt_qc_seq?" ":f.rt_qc_seq:g+=a),o=this.getCols("header");o<this.getCols();o++){if(void 0!==p&&r._.isArray(p)){for(s="",l=0;l<p.length;l++)if(i=p[l],o===Number(i.position)){""!==g&&(g+=d),s+=void 0===this.getCellDataEx(a,i.key)?"":this.getCellDataEx(a,i.key);break}g+=s}if(""!==g&&(g+=d),!0===f.rt_qc_fbrd)g+=void 0===this.getCellData(a,o)?"":this.getCellData(a,o);else if(!0===t.usehtmltype&&"html"===this._getColType(o)){var L,m=this._getColHtml(o);if(L=this._cellValue(a,o),L=this._showDataFormat(a,o,L),r._.isFunction(m.data)){var E=m.data(this,a,o,!0===r._.isUndefined(L)?"":L,this.getRowData(a,o),!0);r._.isString(E)?g+=E:g+=" "}else g+=L}else g+=!0===u?void 0===this._getCellLabel(a,o)?"":this._getCellLabel(a,o):void 0===this.getCellData(a,o)?"":this.getCellData(a,o)}if(void 0!==p&&r._.isArray(p)){for(s="",l=0;l<p.length;l++)i=p[l],this.getCols()===Number(i.position)&&(""!==g&&(g+=d),s+=void 0===this.getCellDataEx(a,i.key)?"":this.getCellDataEx(a,i.key));g+=s}""!==(C+=g)&&(C+=h)}return void 0!==t.footer&&r._.isString(t.footer)&&(C+=t.footer+h),window.saveAs(new Blob([C],{type:"text/txt"}),c),void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._createDataIndexPool=function(){var t=this,e=r._.filter(r._.range(0,this.attr("cols")),(function(e){return t._getQCellCol(e).attr("filter")}));e.length>0&&this._createDataIndex(e),null!==this.attr("additionaldataindex")&&this._createDataIndexEx(this.attr("additionaldataindex"))},r.QCELL.BasicQCELL.prototype._createDataIndex=function(t){var e=this.attr("data").input,a=this.attr("colids"),o=this.attr("colkeys"),i=this.attr("dataindexpool"),s=this;r._.each(t,(function(t){var l,n=a[t],c=o[t];"string"===s._getQCellCol(Number(t)).attr("datatype")&&(i.containsKey(n)?(l=i.get(n)).clear():(l=new window._QHashtable,i.put(n,l)),r._.each(e,(function(t,e){var r=t[c];null==r&&(r=""),!1===l.containsKey(r)&&l.put(r,new window._QHashSet),l.get(r).add(e)})))}))},r.QCELL.BasicQCELL.prototype._createDataIndexEx=function(t){var e=this.attr("data").input,a=this.attr("dataindexpool"),o=0;r._.each(t,(function(i){var s,l=t[o],n=t[o];o++,a.containsKey(l)?(s=a.get(l)).clear():(s=new window._QHashtable,a.put(l,s)),r._.each(e,(function(t,e){var r=t[n];null==r&&(r=""),!1===s.containsKey(r)&&s.put(r,new window._QHashSet),s.get(r).add(e)}))}))},r.QCELL.BasicQCELL.prototype._getColFillteredEx=function(t){if(r._.isNumber(t))return this._getColFilltered(t);var e=this.attr("_filterprev");if(null===e&&(e=new window._QHashtable,this.attr("_filterprev",e,"object")),null===e.get(t)){var a=this.attr("additionaldataindex");if(null==a)return;for(var o=0;o<a.length;o++)if(a[o]===t){e.put(t,{});break}}return e.get(t)},r.QCELL.BasicQCELL.prototype._setColFillteredEx=function(t,e){if(r._.isNumber(t))this._setColFilltered(t,e);else{var a=this.attr("_filterprev");null===a&&(a=new window._QHashtable,this.attr("_filterprev",a,"object")),a.put(t,e)}},r.QCELL.BasicQCELL.prototype._resetFilter=function(t){if(void 0===t){var e,r=this.attr("headercols"),a=this.attr("cols"),o=this.attr("_filterprev"),i=null!==o?o.keys():[];for(e=r;e<a;e++)this._getColFillteredEx(e)&&this._setColFillteredEx(e,null);for(e=0;e<i.length;e++)this._setColFillteredEx(i[e],null);return this._doFiltering(),!0}return!!this._getColFillteredEx(t)&&(this._setColFillteredEx(t,null),this._doFiltering(),!0)},r.QCELL.BasicQCELL.prototype._isUserFilter=function(t,e){var a=!1;if(r._.isString(t)){if(r._.isArray(e)){if(0===e.length)return 0;for(var o=0;o<e.length;o++)if(!r._.isString(e[o]))return 0;return 1}if(r._.isObject(e)){if(void 0!==e.key1&&void 0!==e.op1)return-1;if(void 0===e.value1&&void 0===e.comparison1){for(var i in e)a=!0;return!0===a?1:0}return void 0===e.value1||void 0===e.comparison1?0:-1}}return 0},r.QCELL.BasicQCELL.prototype._filter=function(t,e){var a,o={};if(this._isColFillteredEx(t)){if(r._.isNumber(t)&&"string"===this._getQCellCol(t).attr("datatype")||1===this._isUserFilter(t,e)){for(a=0;a<e.length;a++){if(!r._.isString(e[a]))return!1;o[e[a]]=!0}return this._setColFillteredEx(t,o),this._doFiltering(),!0}if(r._.isObject(e)){if(void 0===e.value1)return!1;if(void 0===e.comparison1)return!1;switch(e.comparison1){case">":case"<":case">=":case"<=":case"==":case"!=":break;default:return!1}if(void 0!==e.logical){if("and"!==e.logical&&"or"!==e.logical)return!1;if(void 0===e.value2)return!1;if(void 0===e.comparison2)return!1;switch(e.comparison2){case">":case"<":case">=":case"<=":case"==":case"!=":break;default:return!1}o.key1=e.value1,o.op1=e.comparison1,o.logical=e.logical,o.key2=e.value2,o.op2=e.comparison2}else o.key1=e.value1,o.op1=e.comparison1;return this._setColFillteredEx(t,o),this._doFiltering(),!0}}return!1},r.QCELL.BasicQCELL.prototype._doFiltering=function(){var t,e,a,o,i=this.attr("cols"),s=this.attr("headercols"),l={},n=0,c=[],d=[];for(this.attr("_filtering",!1,"boolean"),a=s;a<i;a++)"string"===this._getQCellCol(a).attr("datatype")?null!==(e=this._getColFilltered(a))?(this._setColStringFilter(a,e,l),d.push({col:a,state:!0}),n++):d.push({col:a,state:!1}):null!==(e=this._getColFilltered(a))?(this._setColNumberFilter(a,e,l),n++,d.push({col:a,state:!0})):d.push({col:a,state:!1});var h=this.attr("_filterprev"),_=null!==h?h.keys():[];for(a=0;a<_.length;a++){var u=this._getColFillteredEx(_[a]);1===this._isUserFilter(_[a],u)?(this._setColStringFilter(_[a],u,l),n++):-1===this._isUserFilter(_[a],u)&&(this._setColNumberFilter(_[a],u,l),n++)}if(n){var p=this.attr("data").input;for(t in l)if(l[t]===n){var C=p[Number(t)];if(void 0===C)continue;C=r._.clone(C),c.push(C)}this._setCurrentData(c,!0),this.attr("_filtering",!0,"boolean"),!1===r._.isEmpty(this.attr("paginationinfo"))&&void 0!==(o=this.attr("paginationinfo"))&&r._.isObject(o)&&(o.currentData=c,this._movePage(1))}else!1===r._.isEmpty(this.attr("paginationinfo"))&&void 0!==(o=this.attr("paginationinfo"))&&r._.isObject(o)&&(o.currentData=[]),this._setData(this.attr("data").input);for(a=0;a<d.length;a++)this._changeFilterIcon(d[a].col,d[a].state);!0===this.attr("hierachystate").grouped&&this._setHierachy(this.attr("_heirachyinfo"))},r.QCELL.BasicQCELL.prototype._changeFilterIcon=function(t,e){if(this._getQCellCol(t).attr("filter")){var a=r.QCELL.def.css;if(null==this._getCellDOM(this.attr("headerrows")-1,t))return;var o=this._getQCellCol(t).attr("colfilterarea");if(null===o&&(this._getQCellCol(t).attr("colfilterarea",this.attr("filterarea").clone(!0),"jquery"),o=this._getQCellCol(t).attr("colfilterarea")),o.hasClass(a.FILTER_AREA_ADJUST)&&e)return;if(o.hasClass(a.FILTER_AREA)&&!1===e)return;e?(o.removeClass(a.FILTER_AREA).removeClass(a.FILTER_AREA_ADJUST),o.addClass(a.FILTER_AREA_ADJUST)):(o.removeClass(a.FILTER_AREA).removeClass(a.FILTER_AREA_ADJUST),o.addClass(a.FILTER_AREA))}},r.QCELL.BasicQCELL.prototype._setColStringFilter=function(t,e,a){var o,i=this,s={};for(o in r._.each(e,(function(e,a){if(!1!==e){var o=!0===r._.isString(t)?t:i._getColID(t),l=i.attr("dataindexpool").get(o).get(a);null!==l&&l.values(!0).forEach((function(t){s[t.toString()]=1}))}})),s)a[o]=void 0===a[o]?1:a[o]+1},r.QCELL.BasicQCELL.prototype._setColNumberFilter=function(t,e,r){var a,o={},i={};if(this._processNumberFilter(t,e.key1,e.op1,i),void 0===e.logical)o=i;else if(this._processNumberFilter(t,e.key2,e.op2,i),"and"===e.logical)for(a in i)i[a]>1&&(o[a]=1);else for(a in i)o[a]=1;for(a in o)r[a]=void 0===r[a]?1:r[a]+1},r.QCELL.BasicQCELL.prototype._processNumberFilter=function(t,e,a,o){var i,s,l=!0===r._.isString(t)?t:this._getKeyOfCol(t),n=this.attr("data").input;for(i=0;i<n.length;i++)if(void 0!==(s=n[i])[l]&&null!==s[l]&&!isNaN(s[l]))switch(a){case">":s[l]>e&&this._makeNumberFilterSub(i,o);break;case"<":s[l]<e&&this._makeNumberFilterSub(i,o);break;case">=":s[l]>=e&&this._makeNumberFilterSub(i,o);break;case"<=":s[l]<=e&&this._makeNumberFilterSub(i,o);break;case"==":s[l]===e&&this._makeNumberFilterSub(i,o);break;case"!=":s[l]!==e&&this._makeNumberFilterSub(i,o)}},r.QCELL.BasicQCELL.prototype._makeNumberFilterSub=function(t,e){var r=t.toString();e[r]=void 0===e[r]?1:e[r]+1},r.QCELL.BasicQCELL._createFilterAreaSub=function(t){var e=t.target,a=t.data.target,o=r.QCELL.def.css,i=parseInt(e.parentNode.getAttribute("data-col")),s=r.$(a.attr("heFilterDiv").cloneNode()).addClass(o.FILTER_UI_AREA);a.attr("filteruivisible")&&a._removeFilterUIArea(),"string"===a._getQCellCol(i).attr("datatype")?a._createStringFilterUI(i,s):a._createNumberFilterUI(i,s),a._showFilterUIArea(e,i)},r.QCELL.BasicQCELL.prototype._getFilterArea=function(t){if(null===this.attr("filterarea")){var e=document.createElement("div");this.attr("filterarea",this._createFilterArea(e),"jquery")}return null===this._getQCellCol(t).attr("colfilterarea")&&this._getQCellCol(t).attr("colfilterarea",this.attr("filterarea").clone(!0),"jquery"),this._getQCellCol(t).attr("colfilterarea").get(0)},r.QCELL.BasicQCELL.prototype._createFilterArea=function(t){var e=r.QCELL.def.css;return this.attr("heFilterDiv",t,"element"),r.$(t.cloneNode()).addClass(e.FILTER_AREA).on("mousedown",this.attr("eventparam"),r.QCELL.BasicQCELL._createFilterAreaSub)},r.QCELL.BasicQCELL.prototype._createStringFilterUI=function(t,e){var a,o,i=r.QCELL.def.css,s=r.$(document.createElement("div")),l=r.$(document.createElement("button")).addClass(i.FILTER_UI_BTN),n=r.$(document.createElement("span")),c=this.attr("headertext")[t][this.attr("headertext")[t].length-1],d=0===this.attr("filteruiwidth")?"229px":this.attr("filteruiwidth")+"px";e.css({display:"none",height:"290px",width:d}),(a=s.clone()).addClass(i.FILTER_TITLE_AREA),n.clone().text(c).addClass(i.FILTER_TITLE_SPAN).appendTo(a),s.clone().addClass(i.FILTER_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("filteruivisible")&&e._removeFilterUIArea()})).appendTo(a),a.appendTo(e),s.clone().attr({id:"filter-dataindex-"+this.attr("id")}).css({width:"100%",height:"210px"}).appendTo(e),o=s.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"});var h="selectmenu"===this._getColType(t);n.clone().text(r.QCELL.def.resource.adjust).appendTo(l.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var a,o=e.data.target,i=r.QCELL.getInstance("filter-dataindex"),s=[],l={};for(a=1;a<i.attr("rows");a++)if(i._cellValue(a,0))if(h){var n=o._getDataByLabel(t,i._cellValue(a,1));s.push(n),l[n]=!0}else s.push(i._cellValue(a,1)),l[i._cellValue(a,1)]=!0;else l[i._cellValue(a,1)]=!1;o._setColFilltered(t,l),o._removeFilterUIArea(),o._doFiltering()})).appendTo(o)),n.clone().text(r.QCELL.def.resource.reset).appendTo(l.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){var r=e.data.target;r._setColFilltered(t,null),r._removeFilterUIArea(),r._doFiltering()})).appendTo(o)),o.appendTo(e),this.attr("filteruiarea",e,"jquery")},r.QCELL.BasicQCELL.prototype._createNumberFilterUI=function(t,e){var a,o,i,s,l,n=r.QCELL.def.css,c=r.$(document.createElement("div")),d=r.$(document.createElement("button")).addClass(n.FILTER_UI_BTN),h=r.$(document.createElement("span")),_=r.$(document.createElement("select")),u=r.$(document.createElement("option")),p=r.$(document.createElement("input")),C=this.attr("headertext")[t][this.attr("headertext")[t].length-1],g=this._getColFilltered(t);p.addClass(n.EXCLUDE_DRAGABLE),_.addClass(n.EXCLUDE_DRAGABLE),e.css({display:"none",width:"290px",height:"100px"}),(a=c.clone()).addClass(n.FILTER_TITLE_AREA),h.clone().text(C).addClass(n.FILTER_TITLE_SPAN).appendTo(a),c.clone().addClass(n.FILTER_UI_CLOSE+" "+n.EXCLUDE_DRAGABLE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("filteruivisible")&&e._removeFilterUIArea()})).appendTo(a),a.appendTo(e),o=c.clone().attr({id:"filter-input-area-"+this.attr("id")}),i=c.clone().attr({id:"filter-input-form1-"+this.attr("id")});var f=p.clone();f.attr({id:"filter-input1-"+this.attr("id")}).css({width:"120px",margin:"0px 5px 0px 0px"}).appendTo(i),u.clone().val(">").text("크다(>)").appendTo(_),u.clone().val("<").text("작다(<)").appendTo(_),u.clone().val(">=").text("크거나 같다(>=)").appendTo(_),u.clone().val("<=").text("작거나 같다(<=)").appendTo(_),u.clone().val("==").text("같다(==)").appendTo(_),u.clone().val("!=").text("같지 않다(!=)").appendTo(_);var L=_.clone();L.attr({id:"filter-select1-"+this.attr("id")}).css({height:"20px",margin:"0px 10px 0px 0px"}).appendTo(i),i.appendTo(o);var m=c.clone().attr({id:"filter-input-form2-"+this.attr("id")}),E=p.clone();E.attr({id:"filter-input2-"+this.attr("id")}).css({width:"120px",margin:"0px 5px 0px 0px"}).appendTo(m);var b=_.clone();b.attr({id:"filter-select2-"+this.attr("id")}).css({height:"20px",margin:"0px 10px 0px 0px"}).appendTo(m),e.css({height:"150px"}),s=c.clone().attr({id:"filter-radio-form-"+this.attr("id")}).css({margin:"5px 0px 5px 0px"});var y=p.clone();y.attr({type:"radio",name:"filter-operator-"+this.attr("id"),checked:"checked"}).val("and").appendTo(s),h.clone().text("and").css({"font-size":"12px"}).appendTo(s);var v=p.clone();v.attr({type:"radio",name:"filter-operator-"+this.attr("id")}).val("or").appendTo(s),h.clone().text("or").css({"font-size":"12px"}).appendTo(s),s.appendTo(o),m.appendTo(o),i.find("div").remove(),m.find("div").remove();var w=c.clone();w.addClass(n.FILTER_UI_ADDOPERATOR).on("click",this.attr("eventparam"),(function(t){var r=t.data.target;!0===r.attr("isNumberFilterExtened")?(s.hide(),m.hide(),e.css({height:"100px"}),r.attr("isNumberFilterExtened",!1,"boolean"),w.removeClass(n.FILTER_UI_ADDOPERATOR),w.removeClass(n.FILTER_UI_ADDOPERATOR_CLOSE),w.addClass(n.FILTER_UI_ADDOPERATOR)):(s.show(),m.show(),e.css({height:"150px"}),r.attr("isNumberFilterExtened",!0,"boolean"),w.removeClass(n.FILTER_UI_ADDOPERATOR),w.removeClass(n.FILTER_UI_ADDOPERATOR_CLOSE),w.addClass(n.FILTER_UI_ADDOPERATOR_CLOSE))})).appendTo(i),null===g?(s.hide(),m.hide(),e.css({height:"100px"})):null!==g&&(f.val(g.key1),L.val(g.op1),void 0!==g.logical?(E.val(g.key2),b.val(g.op2),"and"===g.logical?y.prop("checked",!0):v.prop("checked",!0),w.removeClass(n.FILTER_UI_ADDOPERATOR).addClass(n.FILTER_UI_ADDOPERATOR_CLOSE),this.attr("isNumberFilterExtened",!0,"boolean")):(s.hide(),m.hide(),e.css({height:"100px"}),this.attr("isNumberFilterExtened",!1,"boolean"))),o.appendTo(e),l=c.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"}),h.clone().text(r.QCELL.def.resource.adjust).appendTo(d.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var a,o,i,s=e.data.target,l=r.$("#filter-input1-"+s.attr("id")),n=r.$("#filter-select1-"+s.attr("id"));if(isNaN(Number(l.val()))||""===l.val())l.focus();else{var c={key1:Number(l.val()),op1:n.val()};if(!0===s.attr("isNumberFilterExtened")){if(o=r.$("#filter-input2-"+s.attr("id")),i=r.$("#filter-select2-"+s.attr("id")),a=r.$(':radio[name="filter-operator-'+s.attr("id")+'"]:checked'),isNaN(Number(o.val())))return void o.focus();c.key2=Number(o.val()),c.op2=i.val(),c.logical=a.val()}s._setColFilltered(t,c),s._removeFilterUIArea(),s._doFiltering()}})).appendTo(l)),h.clone().text(r.QCELL.def.resource.reset).appendTo(d.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){var r=e.data.target;r._setColFilltered(t,null),r._removeFilterUIArea(),r._doFiltering()})).appendTo(l)),l.appendTo(e),this.attr("filterinput",f,"jquery"),this.attr("filteruiarea",e,"jquery")},r.QCELL.BasicQCELL.prototype._showFilterUIArea=function(t,e){var a=this.attr("filteruiarea"),o=this.attr("layoutsize").viewport.offsetLeft,i=t.parentNode.offsetLeft+o,s=this._getColWidth(e),l=t.parentNode.offsetTop+8;a.appendTo(this.attr("elementpool").get("container")),a.prop("id",this.attr("id")+"_filterPopup"),r.util._dragElement(this.attr("id")+"_filterPopup"),"none"===a.css("display")&&a.css("display","block"),a.css({left:i+s-1+"px",top:l+"px"});var n="selectmenu"===this._getColType(e),c=this;if("string"===this._getQCellCol(e).attr("datatype")){var d,h=[],_=this._getColFilltered(e);this._createDataIndexPool(),this.attr("dataindexpool").get(this._getColID(e)).each((function(t){var r=null===_||_[t];d={check:r,indexpool:t},n&&(d.data=t,d.indexpool=c._getLabelByData(e,t)),h.push(d)}));var u=r.QCELL.NormalQCELL.create({id:"filter-dataindex",parentid:"filter-dataindex-"+this.attr("id"),rowheight:{header:30,data:30},selectmode:"row",columns:[{title:[""],key:"check",width:"15%",type:"checkbox",options:{wholeselect:!0,disabled:!1}},{title:["색인목록"],key:"indexpool",width:"85%",tooltip:!0}],data:{input:h}});u._createCols(),u._create(),r.QCELL.storage.put("filter-dataindex",u),u.bind("mousedown mousewheel DOMMouseScroll mouseenter mouseleave mousemove click dblclick keydown resize onDrag onDrop",(function(t){t.stopPropagation()}))}else setTimeout((function(){c.attr("filterinput").focus()}),0);this.attr("filteruivisible",!0,"boolean")},r.QCELL.BasicQCELL.prototype._removeFilterUIArea=function(){this.attr("filteruiarea").remove(),this.attr("filteruiarea",null,"jquery"),this.attr("filteruivisible",!1,"boolean"),r.QCELL._deleteInstance("filter-dataindex")},r.QCELL.BasicQCELL.prototype._isColFillteredEx=function(t){if(r._.isNumber(t))return this._getQCellCol(t).attr("filter");var e=this.attr("_filterprev");if(null===e&&(e=new window._QHashtable,this.attr("_filterprev",e,"object")),null===e.get(t)){var a=this.attr("additionaldataindex");if(null==a)return;for(var o=0;o<a.length;o++)if(a[o]===t){e.put(t,{});break}}return e.get(t)},r.QCELL.BasicQCELL.prototype._clearFocus=function(){this._idx("row","focus","previous",-1),this._idx("col","focus","previous",-1),this._idx("row","focus","current",-1),this._idx("col","focus","current",-1),this._clearFocusCSS()},r.QCELL.BasicQCELL.prototype._clearFocusCSS=function(){var t=this.attr("focuscell");if(null===t){var e=this.getIdx("row","focus","previous"),a=this.getIdx("col","focus","previous");-1!==e&&-1!==a&&(t=this._getCellDOM(e,a))}r._.isElement(t)&&this._removeFocusStyleClass(t)},r.QCELL.BasicQCELL.prototype._addFocusStyleClass=function(t){r.util.addClass(t,r.QCELL.def.css.CELL_FOCUS),this.attr("focuscell",t,"element")},r.QCELL.BasicQCELL.prototype._removeFocusStyleClass=function(t){r.util.removeClass(t,r.QCELL.def.css.CELL_FOCUS),this.attr("focuscell",null,"element")},r.QCELL.BasicQCELL.prototype._isFocusRow=function(t){return t===this._idx("row","focus","current")},r.QCELL.BasicQCELL.prototype._isFocusCol=function(t){return t===this._idx("col","focus","current")},r.QCELL.BasicQCELL.prototype._clearGroup=function(){var t=this.attr("groupstate");return!!t.grouped&&(t.grouped=!1,t.showpanel=!1,t.type="normal",t.data=[],t.columnsinfo.clear(),t.nodes.clear(),t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},t.expand=null,t.collapse=null,this._setCurrentData(this.attr("data").input,!1))},r.QCELL.BasicQCELL.prototype._checkValidationOfGroupProps=function(t){return r._.has(t,"columns")&&r._.isArray(t.columns)},r.QCELL.BasicQCELL.prototype._setGroup=function(t){if(this._checkValidationOfGroupProps(t)){var e=this,a=this.attr("groupstate"),o=a.columnsinfo,i=this.attr("headercols");return this.attr("_groupProps",r._.clone(t),"object"),a.grouped=!0,a.showpanel=!(!r._.has(t,"showpanel")||!r._.isBoolean(t.showpanel))&&t.showpanel,a.hidekeydata=!(!r._.has(t,"hidekeydata")||!r._.isBoolean(t.hidekeydata))&&t.hidekeydata,a.type=r._.has(t,"type")&&r._.isString(t.type)&&("normal"===t.type||"tree"===t.type||"step"===t.type||"group"===t.type)?t.type:"normal",a.expand=r._.has(t,"expand")&&r._.isFunction(t.expand)?t.expand:null,a.collapse=r._.has(t,"collapse")&&r._.isFunction(t.collapse)?t.collapse:null,a.presentkey=!(!r._.has(t,"presentkey")||!r._.isBoolean(t.presentkey)),a.leafnodekey=r._.has(t,"leafnodekey")&&r._.isString(t.leafnodekey)?t.leafnodekey:void 0,a.exclude=void 0===t.exclude?[]:t.exclude,r._.has(t,"sort")&&r._.isString(t.sort)?"none"===t.sort?a.sort="none":"asc"===t.sort?a.sort="asc":"desc"===t.sort?a.sort="desc":a.sort="asc":a.sort="asc",r._.each(t.columns,(function(t,s){var l=e._getColsOfKey(t.key),n=l[0],c=l.length>0?e._getColID(n):t.key;l.length>0&&(e._getQCellCol(n).attr("disabled",!0,"boolean"),e._moveCols(n,1,i+s,!0)),!1===o.containsKey(c)&&(o.put(c,{header:r._.has(t,"header")&&r._.isObject(t.header)?r._.clone(t.header):{},footer:r._.has(t,"footer")&&r._.isObject(t.footer)?r._.clone(t.footer):{},headerFooterCallback:r._.has(t,"headerFooterCallback")&&r._.isFunction(t.headerFooterCallback)?t.headerFooterCallback:void 0}),"tree"!==a.type&&"step"!==a.type||(o.get(c).expand=!r._.has(t,"expand")||!r._.isBoolean(t.expand)||t.expand))})),e._initColStyles(),r._.each(t.outer,(function(t,e){a.outer={},a.outer.header=r._.clone(t.header),a.outer.footer=r._.clone(t.footer),a.outer.headers=r._.clone(t.headers),a.outer.footers=r._.clone(t.footers),a.outer.outerCallback=r._.has(t,"outerCallback")&&r._.isFunction(t.outerCallback)?t.outerCallback:void 0})),this._initGroup()}return!1},r.QCELL.BasicQCELL.prototype._initGroupData=function(){var t,e,r=[],a=[],o=[],i=[],s=this.attr("groupstate").data,l=this.attr("headerrows"),n=this.attr("groupstate").columnsinfo.keys(!0),c={},d={};for(e=0;e<n.length;e++)c[n[e]]=[],d[n[e]]=[];for(t=0;t<s.length;t++)for(!0===s[t].qc_header&&(r.push(t+l),a.push(s[t].qc_header_nodes)),!0===s[t].qc_footer&&(o.push(t+l),i.push(s[t].qc_footer_nodes)),e=0;e<n.length;e++)!0===s[t]["qc_row_ui_"+n[e]]&&(c[n[e]].push(t+l),d[n[e]].push(s[t]["qc_row_ui_"+n[e]+"_nodes"]));this.attr("groupstate").headerrows=r,this.attr("groupstate").headerrownodes=a,this.attr("groupstate").footerrows=o,this.attr("groupstate").footerrownodes=i,this.attr("groupstate").groupuirows=c,this.attr("groupstate").groupuinodes=d},r.QCELL.BasicQCELL.prototype._initGroup=function(){return this._makeGroupNodes(),!!this._makeGroupData()&&("group"===this.attr("groupstate").type&&(this._initGroupData(),this.merge("data","group")),this._setCurrentData(this.attr("groupstate").data.RT_clone(),!1))},r.QCELL.BasicQCELL.prototype._makeGroupNodes=function(){var t=this.attr("groupstate"),e=t.nodes,r=t.columnsinfo.size();e.clear();for(var a=0,o=this.attr("data").input.length;a<o;a++)for(var i=0;i<r;i++)this._makeGroupNode(null,e,a,0,i);return!0},r.QCELL.BasicQCELL.prototype._makeGroupNode=function(t,e,a,o,i){var s,l=this.attr("groupstate"),n=this.attr("data").input,c=l.columnsinfo,d=c.keys(!0)[o],h=c.size(),_=n[a],u=-1===this._getKeyOfColID(d)?d:this._getKeyOfColID(d),p=_[u],C=l.type;if(s=c.get(d),o===i){var g,f=null;if(g="step"===C?h!==i+1:i!==h-1,e.containsKey(p)){if(f=e.get(p),!g)for(f.data.add(a);null!==f;)f.count+=1,f=f.parent}else if(f={colid:d,isparent:g,colkey:u,level:i,key:p,count:0,header:r._.size(s.header)>0,footer:r._.size(s.footer)>0,headerFooterCallback:s.headerFooterCallback,parent:t,_rowData:_},"tree"!==l.type&&"step"!==l.type&&"group"!==l.type||(f.expand=!r._.has(s,"expand")||"boolean"!=typeof s.expand||s.expand),e.put(p,f),g)f.childnodes=new window._QHashtable;else for(f.data=new window._QHashSet,f.data.add(a);null!==f;)f.count+=1,f=f.parent}else this._makeGroupNode(e.get(p),e.get(p).childnodes,a,o+1,i)},r.QCELL.BasicQCELL.prototype._makeGroupData=function(){var t=this.attr("groupstate");return!!t.grouped&&(t.data=[],t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},r._.isUndefined(t.outer)||r._.isUndefined(t.outer.header)&&r._.isUndefined(t.outer.headers)||this._makeGroupDatumOuterHeader(t.nodes),this._makeGroupDatum(t.nodes),0!==t.nodes.size()||r._.isUndefined(t.outer)||r._.isUndefined(t.outer.header)&&r._.isUndefined(t.outer.footer)&&r._.isUndefined(t.outer.headers)&&r._.isUndefined(t.outer.footers)||this._makeGroupZeroData(),r._.isUndefined(t.outer)||r._.isUndefined(t.outer.footer)&&r._.isUndefined(t.outer.footers)||this._makeGroupDatumOuterFooter(t.nodes),!0)},r.QCELL.BasicQCELL.prototype._makeGroupZeroData=function(){for(var t=this.attr("groupstate"),e=this.attr("data").input,r=0;r<e.length;r++)t.data.push(e[r]);return!0},r.QCELL.BasicQCELL.prototype._makeGroupDatumOuterHeader=function(t,e){var a=this.attr("groupstate");if(r._.isUndefined(a.outer.header)||this._makeGroupDatumOuterHeaderSub(t,e,a.outer.header),!r._.isUndefined(a.outer.headers))for(var o=0;o<a.outer.headers.length;o++)this._makeGroupDatumOuterHeaderSub(t,e,a.outer.headers[o])},r.QCELL.BasicQCELL.prototype._makeGroupDatumOuterHeaderSub=function(t,e,a){var o,i=this,s=this.attr("groupstate"),l=this.attr("data").type,n=this.attr("headerrows"),c=function(t,e){i._setGroupTotalHeaderFooterText(o,t,e,!0)},d=function(t,e){var r=!0;for(var a in t)if(t[a]!==e[a]){r=!1;break}return r},h=!0,_=-1,u="array"===l?[]:{},p={level:"-outer"};if("tree"===s.type||"step"===s.type){for(o=r._.clone(u),r._.each(a,c),h=!0,_=0;_<s.data.length;_++)if(d(s.data[_],o)){h=!1;break}h&&(s.data.push(o),s.headerrows.push(n+s.data.length-1),s.headerrownodes.push(p))}else if("group"===s.type){if(o=r._.clone(u),r._.each(a,c),void 0!==e)for(var C in e)r._.has(o,C)||(o[C]=e[C]);for(o.qc_header=!0,h=!0,_=0;_<s.data.length;_++)if(d(s.data[_],o)){h=!1;break}h&&(s.data.push(o),s.headerrows.push(n+s.data.length-1),s.headerrownodes.push(p))}else{for(o=r._.clone(u),r._.each(a,c),h=!0,_=0;_<s.data.length;_++)if(d(s.data[_],o)){h=!1;break}h&&(s.data.push(o),s.headerrows.push(n+s.data.length-1),s.headerrownodes.push(p))}},r.QCELL.BasicQCELL.prototype._makeGroupDatumOuterFooter=function(t,e){var a=this.attr("groupstate");if(r._.isUndefined(a.outer.footer)||this._makeGroupDatumOuterFooterSub(t,e,a.outer.footer),!r._.isUndefined(a.outer.footers))for(var o=0;o<a.outer.footers.length;o++)this._makeGroupDatumOuterFooterSub(t,e,a.outer.footers[o])},r.QCELL.BasicQCELL.prototype._makeGroupDatumOuterFooterSub=function(t,e,a){var o,i=this,s=this.attr("groupstate"),l=this.attr("data").type,n=this.attr("headerrows"),c=function(t,e){i._setGroupTotalHeaderFooterText(o,t,e,!1)},d="array"===l?[]:{},h={level:"-outer"};if("tree"===s.type||"step"===s.type)o=r._.clone(d),r._.each(a,c),s.data.push(o),s.footerrows.push(n+s.data.length-1),s.footerrownodes.push(h);else if("group"===s.type){if(o=r._.clone(d),r._.each(a,c),void 0!==e)for(var _ in e)r._.has(o,_)||(o[_]=e[_]);o.qc_footer=!0,s.data.push(o),s.footerrows.push(n+s.data.length-1),s.footerrownodes.push(h)}else o=r._.clone(d),r._.each(a,c),s.data.push(o),s.footerrows.push(n+s.data.length-1),s.footerrownodes.push(h)},r.QCELL.BasicQCELL.prototype._makeGroupDatum=function(t,e){var a,o=this,i=this.attr("groupstate"),s=i.columnsinfo,l="asc"===i.sort?t.keys().sort():"desc"===i.sort?t.keys().sort().reverse():t.keys(!0),n=this.attr("data").input,c=this.attr("data").type,d=this.attr("headerrows"),h=function(t,e){o._setGroupHeaderFooterText(m,C,t,e,!0)},_=function(t,e){o._setGroupHeaderFooterText(m,C,t,e,!1)},u=function(t){i.data.push(n[t])},p=-1;for(p=0;p<l.length;p++){var C,g="array"===c?[]:{},f=l[p];if(r._.isUndefined(f))break;var L,m=t.get(f),E=m.colid,b=m.isparent,y=1,v=s.get(E);if("tree"===i.type||"step"===i.type){var w=m.parent;for(C=r._.clone(g),i.data.push(C);null!==w;)C[w.colkey]=w.key,w=w.parent,y++;C[m.colkey]=m.key,C._qc_origindata=r._.clone(m._rowData),C._qc_level=y,i.treeuirows.push(d+i.data.length-1),i.treeuirownodes.push(m),m.expand&&(m.header&&(C=r._.clone(g),r._.each(v.header,h),i.data.push(C),i.headerrows.push(d+i.data.length-1),i.headerrownodes.push(m)),b?this._makeGroupDatum(m.childnodes):r._.each(m.data.values(!0),u),m.footer&&(C=r._.clone(g),r._.each(v.footer,_),i.data.push(C),i.footerrows.push(d+i.data.length-1),i.footerrownodes.push(m)))}else if("group"===i.type){if(void 0===e&&(e={}),e[m.colkey]=f,m.header){if(C=r._.clone(g),r._.each(v.header,h),void 0!==e)for(L in e)r._.has(C,L)||(C[L]=e[L]);C.qc_header=!0,C.qc_header_nodes=m,i.data.push(C),i.headerrows.push(d+i.data.length-1),i.headerrownodes.push(m)}if(r._.indexOf(i.groupuirows,d+i.data.length-1,!0)<0&&(void 0===i.groupuirows[m.colkey]&&(i.groupuirows[m.colkey]=[]),void 0===i.groupuinodes[m.colkey]&&(i.groupuinodes[m.colkey]=[]),i.groupuirows[m.colkey].push(d+i.data.length-1),i.groupuinodes[m.colkey].push(m)),b)a=i.data.length,this._makeGroupDatum(m.childnodes,e),i.data[a]["qc_row_ui_"+m.colid]=!0,i.data[a]["qc_row_ui_"+m.colid+"_nodes"]=m;else{if(a=i.data.length,m.expand)r._.each(m.data.values(!0),u);else{var x=[];x.push(m.data.values(!0)[0]),r._.each(x,u)}i.data[a]["qc_row_ui_"+m.colid]=!0,i.data[a]["qc_row_ui_"+m.colid+"_nodes"]=m}if(m.footer){if(C=r._.clone(g),r._.each(v.footer,_),void 0!==e)for(L in e)r._.has(C,L)||(C[L]=e[L]);C.qc_footer=!0,C.qc_footer_nodes=m,i.data.push(C),i.footerrows.push(d+i.data.length-1),i.footerrownodes.push(m)}}else m.header&&(C=r._.clone(g),r._.each(v.header,h),i.data.push(C),i.headerrows.push(d+i.data.length-1),i.headerrownodes.push(m)),b?this._makeGroupDatum(m.childnodes):r._.each(m.data.values(!0),u),m.footer&&(C=r._.clone(g),r._.each(v.footer,_),i.data.push(C),i.footerrows.push(d+i.data.length-1),i.footerrownodes.push(m))}},r.QCELL.BasicQCELL.prototype._getGroupSum=function(t,e){var a=this,o=this.attr("data").input,i=0;return t.isparent?t.childnodes.each((function(t,r){i+=a._getGroupSum(r,e)})):r._.each(t.data.values(),(function(t){i+=o[t][e]})),i},r.QCELL.BasicQCELL.prototype._getGroupCountif=function(t,e,a){var o=this,i=this.attr("data").input,s=0;return t.isparent?t.childnodes.each((function(t,r){s+=o._getGroupCountif(r,e,a)})):r._.each(t.data.values(),(function(t){i[t][e]===a&&(s+=1)})),s},r.QCELL.BasicQCELL.prototype._setGroupTotalHeaderFooterText=function(t,e,a,o,i){var s,l=this,n=[/^childcount\(.*\)$/,/^count\(.*\)$/,/^countif\(.*\)$/,/^groupvalue\(.*\)$/,/^sum\(.*\)$/,/^average\(.*\)$/,/.*\(|\)/gi,/[\"\']/gi,/^[0-9]*$/],c=this.attr("data").type,d=this.attr("data").input,h="",_=null;!1!==i&&(_=this.attr("groupstate").outer.outerCallback),r._.each(e,(function(e){var o,u;if(n[0].test(e))u=0,r._.isFunction(_)&&(u=_(a,u,t)),h+=u;else if(n[1].test(e))u=d.length,r._.isFunction(_)&&(u=_(a,u,t)),h+=u;else if(n[2].test(e)){var p=e.replace(n[6],""),C=r._.map(p.split(","),(function(t){return r.$.trim(t).replace(n[7],"")}));2===C.length&&(o="array"===c&&n[8].test(C[0])?parseInt(C[0]):C[0],u=l._getGroupCountif(s,o,C[1]),r._.isFunction(_)&&(u=_(a,u,t)),h+=u)}else if(n[3].test(e)){if(!1===i)return;var g=Number(e.replace(n[6],""));if(!1===isNaN(g)&&g<=s.level){for(var f=s;g<f.level;)f=f.parent;h+=f.key}}else if(n[4].test(e)||n[5].test(e)){var L=e.replace(n[6],"").replace(n[7],"");o=""===L?a:"array"===c&&n[8].test(L)?parseInt(L):L;for(var m=0,E=0;E<d.length;E++)m+=Number(void 0!==d[E][o]?d[E][o]:0);var b=m,y=l._getColsOfKey(o)[0],v=void 0!==y?l._getColFormat(y):void 0,w=d.length;u=n[5].test(e)?b/w:b,r._.isFunction(_)&&(u=_(a,u,t)),h+=void 0===v?u:l._showDataFormat(0,y,u)}else h+=e})),t[a]=h,!0===o?t.rt_qc_header=!0:!1===o?t.rt_qc_footer=!0:console.log("error")},r.QCELL.BasicQCELL.prototype._setGroupHeaderFooterText=function(t,e,a,o,i){var s=this,l=[/^childcount\(.*\)$/,/^count\(.*\)$/,/^countif\(.*\)$/,/^groupvalue\(.*\)$/,/^sum\(.*\)$/,/^average\(.*\)$/,/.*\(|\)/gi,/[\"\']/gi,/^[0-9]*$/],n=this.attr("data").type,c="";r._.each(a,(function(a){var i,d;if(l[0].test(a))d=t.isparent?t.childnodes.size():t.data.size(),void 0!==t.headerFooterCallback&&(d=t.headerFooterCallback(o,d,e)),c+=d;else if(l[1].test(a))d=t.count,void 0!==t.headerFooterCallback&&(d=t.headerFooterCallback(o,d,e)),c+=d;else if(l[2].test(a)){var h=a.replace(l[6],""),_=r._.map(h.split(","),(function(t){return r.$.trim(t).replace(l[7],"")}));2===_.length&&(i="array"===n&&l[8].test(_[0])?parseInt(_[0]):_[0],d=s._getGroupCountif(t,i,_[1]),void 0!==t.headerFooterCallback&&(d=t.headerFooterCallback(o,d,e)),c+=d)}else if(l[3].test(a)){var u=Number(a.replace(l[6],""));if(!1===isNaN(u)&&u<=t.level){for(var p=t;u<p.level;)p=p.parent;d=p.key,void 0!==t.headerFooterCallback&&(d=t.headerFooterCallback(o,d,e)),c+=d}}else if(l[4].test(a)||l[5].test(a)){var C=a.replace(l[6],"").replace(l[7],"");if(i=""===C?o:"array"===n&&l[8].test(C)?parseInt(C):C,s._getColsOfKey(i).length>0&&"number"===s._getColDataType(s._getColsOfKey(i)[0])){var g=s._getGroupSum(t,i),f=s._getColsOfKey(i)[0],L=s._getColFormat(f);d=l[5].test(a)?g/t.count:g,void 0!==t.headerFooterCallback&&(d=t.headerFooterCallback(o,d,e)),void 0!==L&&(d=s._showDataFormat(0,f,d)),c+=d}}else void 0!==t.headerFooterCallback&&(a=t.headerFooterCallback(o,a,e)),c+=a})),e[o]=c,!0===i?e.rt_qc_header=!0:!1===i?e.rt_qc_footer=!0:console.log("error")},r.QCELL.BasicQCELL.prototype._seekNextExpandedGroupTreeUIRow=function(t){var e=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),a=e.treeuirows,o=e.treeuirownodes,i=-1;return t>0?r.$.each(a,(function(e,r){var a=o[e];return a.level!==t-1&&(a.level===t?(i=r,!1):void 0)})):r.$.each(a,(function(e,r){if(o[e].level===t)return i=r,!1})),-1===i&&t>0?this._seekNextExpandedGroupTreeUIRow(t-1):i},r.QCELL.BasicQCELL.prototype._setExpandOfGroupTreeUIRow=function(t,e){var a,o,i,s,l,n,c,d,h,_,u,p,C=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),g=this.attr("data").input,f=C.treeuirows,L=C.treeuirownodes,m=C.headerrows,E=C.headerrownodes,b=C.footerrows,y=C.footerrownodes,v=this.attr("headerrows"),w="tree"===C.type||"step"===C.type?r._.indexOf(f,t,!0):-1;if(w>-1){var x=this,Q=L[w];if(e){if(!1!==Q.expand)return!1;var S,k,T,R=this.attr("data").type,A=Q.colid,q=C.columnsinfo.get(A),B="array"===R?[]:{};if(d=r._.findIndex(m,(function(e){return e>t})),h=r._.findIndex(b,(function(e){return e>t})),a=C.data.splice(t-v+1,C.data.length-(t-v+1)),o=f.splice(w+1,f.length-(w+1)),i=L.splice(w+1,L.length-(w+1)),s=d>-1?m.splice(d,m.length-d):[],l=d>-1?E.splice(d,E.length-d):[],n=h>-1?b.splice(h,b.length-h):[],c=h>-1?y.splice(h,y.length-h):[],S=C.data.length,Q.expand=!0,Q.header&&(T=r._.clone(B),r._.each(q.header,(function(t,e){x._setGroupHeaderFooterText(Q,T,t,e,!0)})),C.data.push(T),C.headerrows.push(v+C.data.length-1),C.headerrownodes.push(Q)),Q.isparent)!0===this.attr("treestate").grouped?this._makeTreeDatum(Q.childnodes):this._makeGroupDatum(Q.childnodes);else{var O=C.data.length;r._.each(Q.data.values().sort(r.st.asc),(function(t){C.data.push(g[t])})),C.data[O]["qc_row_ui"+Q.colkey]=!0}for(Q.footer&&(T=r._.clone(B),r._.each(q.footer,(function(t,e){x._setGroupHeaderFooterText(Q,T,t,e,!1)})),C.data.push(T),C.footerrows.push(v+C.data.length-1),C.footerrownodes.push(Q)),k=C.data.length-S,u=0,_=o.length;u<_;u++)o[u]=o[u]+k;for(u=0,_=s.length;u<_;u++)s[u]=s[u]+k;for(u=0,_=n.length;u<_;u++)n[u]=n[u]+k;C.treeuirows=f.concat(o),C.treeuirownodes=L.concat(i),C.headerrows=m.concat(s),C.headerrownodes=E.concat(l),C.footerrows=b.concat(n),C.footerrownodes=y.concat(c),C.data=C.data.concat(a)}else{if(!Q.expand)return!1;var D=0,I=0,N=0;if(d=r._.findLastIndex(m,(function(e){return e<t})),h=r._.findLastIndex(b,(function(e){return e<t})),a=C.data.splice(0,t-v+1),o=f.splice(0,w+1),i=L.splice(0,w+1),s=d>-1?m.splice(0,d+1):[],l=d>-1?E.splice(0,d+1):[],n=h>-1?b.splice(0,h+1):[],c=h>-1?y.splice(0,h+1):[],Q.isparent){var P=0,M=0;(M=!0===this.attr("treestate").grouped?this._seekNextExpandedTreeUIRow(Q,t):this._seekNextExpandedGroupTreeUIRow(Q.level))>-1?(D=M-t-1,r.$.each(f,(function(t,e){if(!(e<M))return!1;P+=1}))):(D=this.attr("rows")-t-1,P=f.length),f.splice(0,P),L.splice(0,P)}else D=Q.data.size()+(Q.header?1:0)+(Q.footer?1:0);for(f.length>0&&(r.$.each(m,(function(t,e){if(!(e<f[0]))return!1;I+=1})),m.splice(0,I),E.splice(0,I),r.$.each(b,(function(t,e){if(!(e<M))return!1;N+=1})),b.splice(0,N),y.splice(0,N)),u=0,_=f.length;u<_;u++)f[u]-=D;for(u=0,_=m.length;u<_;u++)m[u]-=D;for(u=0,_=b.length;u<_;u++)b[u]-=D;var U=o.concat(f),H=i.concat(L);if(t===U[U.length-1]&&0===H[H.length-1].level&&t===U[H.length-1]&&(r._.isUndefined(C.outer)||r._.isUndefined(C.outer.footer)||(D=C.data.length-1)),C.data.splice(0,D),C.treeuirows=o.concat(f),C.treeuirownodes=i.concat(L),C.headerrows=s.concat(m),C.headerrownodes=l.concat(E),C.footerrows=n.concat(b),C.footerrownodes=c.concat(y),C.data=a.concat(C.data),t===C.treeuirows[C.treeuirows.length-1]&&0===C.treeuirownodes[C.treeuirownodes.length-1].level&&t===C.treeuirows[C.treeuirownodes.length-1]&&!r._.isUndefined(C.outer)&&!r._.isUndefined(C.outer.footer))for(u=0;u<C.footerrows.length;u++)for(p=0;p<C.treeuirows.length;p++)C.footerrows[u]===C.treeuirows[p]&&(C.footerrows[u]=C.footerrows[u]+1);Q.expand=!1}C.footerrows=[],C.headerrows=[];for(var F=0;F<C.data.length;F++)void 0!==C.data[F].rt_qc_footer&&!0===C.data[F].rt_qc_footer&&C.footerrows.push(F+v),void 0!==C.data[F].rt_qc_header&&!0===C.data[F].rt_qc_header&&C.headerrows.push(F+v);var z=this._setCurrentData(C.data.RT_clone(),!1,!0);return Q.expand&&r._.isFunction(C.expand)?C.expand(Q.colid,Q.colkey,Q.key,t,this._getColOfID(Q.colid)):!Q.expand&&r._.isFunction(C.collapse)&&C.collapse(Q.colid,Q.colkey,Q.key,t,this._getColOfID(Q.colid)),this._trigger("treeuiclicked",{nRow:t,bExpand:e}),z}return!1},r.QCELL.BasicQCELL.prototype._setExpandOfGroupNodes=function(t,e,a,o){var i=this;r._.each(t.keys(),(function(r){var s=t.get(r);o?(s.isparent&&i._setExpandOfGroupNodes(s.childnodes,e,a,o),e<=s.level&&(s.expand=a)):e===s.level?s.expand=a:s.isparent&&e>s.level&&i._setExpandOfGroupNodes(s.childnodes,e,a,o)}))},r.QCELL.BasicQCELL.prototype._setExpandOfGroupLevel=function(t,e,r){var a=this.attr("groupstate");if(a.grouped)return this._setExpandOfGroupNodes(a.nodes,t,e,r),!!this._makeGroupData()&&this._setCurrentData(a.data,!1)},r.QCELL.BasicQCELL.prototype._setGroupTreeUICell=function(t,e,a){var o=this,i=r.QCELL.def.css,s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),l=document.createElement("span"),n=document.createElement("span"),c=parseInt(t.getAttribute("data-row")),d=parseInt(t.getAttribute("data-col")),h=s.type,_=!0===s.presentkey?e.key:a,u=!1,p=o._getQCellCol(d).attr("colstyleeditordata");if(r.util.bind([l,n],"click",(function(t){o.attr("_isExpand")?console.log("_isExpand"):(o.attr("_isExpand",!0,"boolean"),o._setExpandOfGroupTreeUIRow(c,!e.expand),o.attr("_isExpand",!1,"boolean"),o.attr("usetreeall"))})),!0===this.attr("treestate").grouped&&(void 0===(_=!0===e.showLabel?e._rowData[e.label]:e.key)&&(_=""),"parentchild"===this.attr("treestate").mode&&(_=a),e.level>1&&this.attr("treestate").exclude.length>0))for(var C=0;C<this.attr("treestate").exclude.length;C++)if(this.attr("treestate").exclude[C]===this._getKeyOfCol(d)){_="";break}null!==e?(l.style.marginLeft="step"===h?(e.level>0?0*e.level:0)+"px":(e.level>0?20*e.level:0)+"px",r.util.addClass(l,[i.GROUPTREEUI,i.GROUPTREEUI_ARROW,e.expand?i.GROUPTREEUI_ARROW_EXPAND:i.GROUPTREEUI_ARROW_COLLAPSE]),r.util.addClass(n,[i.GROUPTREEUI,i.GROUPTREEUI_FOLDER,e.expand?i.GROUPTREEUI_FOLDER_EXPAND:i.GROUPTREEUI_FOLDER_COLLAPSE])):l.style.marginLeft="0px",r.$(t).empty(),p.replace("QCELL_COL_DATA","").length>0?t.innerHTML=p.replace("QCELL_COL_DATA",_):r.util.textContent(t,_);for(var g=0;g<s.treeuirows.length;g++)if(s.treeuirows[g]===c){u=!0;break}return u&&(t.insertBefore(n,t.firstChild),t.insertBefore(l,t.firstChild)),!isNaN(c)&&c>0&&!isNaN(c)&&d>0&&this._setAriaLabel(t,c,d,_),!0},r.QCELL.BasicQCELL.prototype._setGroupTreeDataCell=function(t,e,a){var o,i=r.QCELL.def.css,s=document.createElement("span"),l=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=l.hidekeydata,c=l.type,d=l.leafnodekey,h=parseInt(t.getAttribute("data-col")),_=this._getQCellCol(h).attr("colstyleeditordata"),u=1,p=void 0===l.leafindent?0:l.leafindent,C=!1;if(this.attr("groupstate").grouped)u=l.columnsinfo.size();else if(this.attr("treestate").grouped){if(void 0===a)return;if(void 0===(u=a[l.level]))return void r.$(t).empty();var g=(o=l.columnsinfo).keys(!0),f="",L=!1,m="";if(g.length>1&&("parentchild"===l.mode?(L=o.get(g[0]).showLabel,m=o.get(g[0]).label,f=-1===this._getKeyOfColID(g[0])?g[0]:this._getKeyOfColID(g[0])):(L=o.get(g[u-1]).showLabel,m=o.get(g[u-1]).label,f=-1===this._getKeyOfColID(g[u-1])?g[u-1]:this._getKeyOfColID(g[u-1]),void 0===L&&(L=!0),void 0===m&&(m=f))),!0===L&&(e=a[m]),void 0===e&&(e=""),u>1&&this.attr("treestate").exclude.length>0)for(var E=0;E<this.attr("treestate").exclude.length;E++)if(this.attr("treestate").exclude[E]===this._getKeyOfCol(h)){e="",C=!0;break}}if(null!=d&&r._.isString(d)&&(e=a[d]),s.style.marginLeft="step"===c?20-p+"px":20*u-p+"px",r.util.addClass(s,[i.GROUPTREEUI,i.GROUPTREEUI_DOT]),r.$(t).empty(),("tree"===c||"step"===c)&&n)return!0;_.replace("QCELL_COL_DATA","").length>0?t.innerHTML=_.replace("QCELL_COL_DATA",e):r.util.textContent(t,e),!1===C&&t.insertBefore(s,t.firstChild);var b=parseInt(t.getAttribute("data-row"));return!isNaN(b)&&b>0&&!isNaN(b)&&h>0&&this._setAriaLabel(t,b,h,e),!0},r.QCELL.BasicQCELL.prototype._setGroupThroughGroupInfo=function(t){var e=this.attr("groupinfo"),a={type:e.type,columns:[]};return r._.each(t,(function(t){a.columns.push({key:t,expand:void 0===e.expand[t]||e.expand[t],header:void 0===e.header[t]?{}:e.header[t],footer:void 0===e.footer[t]?{}:e.footer[t]})})),this._setGroup(a)},r.QCELL.BasicQCELL.prototype._setGroupMakeHelper=function(t){var e=r.$(t.currentTarget).find("span").clone(!0),a=r.$(t.currentTarget).clone(!0).removeClass("ui-draggable-dragging").css({position:"relative",top:0,left:0,"z-index":9}).empty();return a.append(e),r.$("."+r.QCELL.def.css.ROOT).children(":last").is(".rt-qc-ui-draggable")||(r.$("."+r.QCELL.def.css.ROOT).append(a),r.$(a).draggable({connectToSortable:"."+r.QCELL.def.css.GROUPUI_INNER})),r.$("."+r.QCELL.def.css.ROOT).children(":last")},r.QCELL.BasicQCELL.prototype._setGroupUIInfo=function(t){var e=this.attr("groupuiinfo");r._.each(t,(function(t){e.push(t.getAttribute("data-column"))})),this._setGroupUIForGroup()},r.QCELL.BasicQCELL.prototype._setGroupUIForGroup=function(){for(var t=this.attr("groupuiinfo"),e=[],r=0;r<t.length;r++){var a={};a.key=t[r],e.push(a)}this._clearGroup(),t.length>0&&(this._clearGroup(),this._setGroup({type:"tree",columns:e}))},r.QCELL.BasicQCELL.prototype._getGroupNode=function(t,e){var a,o,i,s,l=this.attr("groupstate"),n=l.columnsinfo.keys(!0);for(a=l.nodes,s=0;s<n.length;s++)if(void 0!==(i=this._getKeyOfColID(n[s]))){if(o=t[i],r._.isUndefined(o))return null;if(null===a.get(o))return null;if(a.get(o).colkey===e)return a.get(o);a=a.get(o).childnodes}return null},r.QCELL.BasicQCELL.prototype._setExpandOfGroupUIRow=function(t,e,a){var o,i,s,l,n,c=this.attr("groupstate"),d=this.attr("data").input,h=c.groupuirows[a.colid],_=this.attr("headerrows"),u=-1;if("group"===c.type){i=0;do{u=r._.indexOf(h,t-i,!0)}while(-1===u&&t-_-i++>=0)}if(u>-1){if(t=h[u],e){if(!1!==a.expand)return!1;s=c.data.splice(t-_,1),o=c.data.splice(t-_,c.data.length-(t-_)),a.expand=!0;var p={};if(p[a.colkey]=a.key,a.isparent){var C=c.data.length;for(n in this._makeGroupDatum(a.childnodes,p),l=s[0])r._.has(c.data[C],n)||(c.data[C][n]=l[n])}else{var g=c.data.length;r._.each(a.data.values().sort(r.st.asc),(function(t){c.data.push(d[t])})),c.data[g]["qc_row_ui_"+a.colid]=!0,c.data[g]["qc_row_ui_"+a.colid+"_nodes"]=a}c.data=c.data.concat(o),this._initGroupData()}else{if(!a.expand)return!1;var f,L;o=c.data.splice(0,t-_+1),L=a.isparent?(f=this._seekNextExpandedGroupUIRow(t,a.level,a.colid))>-1?f-t-1:this.attr("rows")-t-1:a.data.size()-1,s=c.data.splice(0,L),c.data=o.concat(c.data),this._initGroupData(),a.expand=!1}var m=this._setCurrentData(c.data.RT_clone(),!1);return a.expand&&r._.isFunction(c.expand)?c.expand(a.colid,a.colkey,a.key,t,this._getColOfID(a.colid)):!a.expand&&r._.isFunction(c.collapse)&&c.collapse(a.colid,a.colkey,a.key,t,this._getColOfID(a.colid)),m}return!1},r.QCELL.BasicQCELL.prototype._setGroupUICell=function(t,e,a){var o=this,i=r.QCELL.def.css,s=document.createElement("span"),l=document.createElement("span"),n=parseInt(t.getAttribute("data-row"));return r.util.bind([s,l],"click",(function(t){o._setExpandOfGroupUIRow(n,!e.expand,e)})),s.style.marginLeft="0px",r.util.addClass(s,[i.GROUPTREEUI,i.GROUPTREEUI_ARROW,e.expand?i.GROUPTREEUI_ARROW_EXPAND:i.GROUPTREEUI_ARROW_COLLAPSE]),r.util.addClass(l,[i.GROUPTREEUI,i.GROUPTREEUI_FOLDER,e.expand?i.GROUPTREEUI_FOLDER_EXPAND:i.GROUPTREEUI_FOLDER_COLLAPSE]),r.$(t).empty(),r.util.textContent(t,a),t.insertBefore(l,t.firstChild),t.insertBefore(s,t.firstChild),!0},r.QCELL.BasicQCELL.prototype._seekNextExpandedGroupUIRow=function(t,e,a){var o=this.attr("groupstate"),i=o.groupuirows[a],s=o.groupuinodes[a],l=-1;return e>0?r.$.each(i,(function(t,r){var a=s[t];return a.level!==e-1&&(a.level===e?(l=r,!1):void 0)})):r.$.each(i,(function(r,a){if(s[r].level===e&&t<a)return l=a,!1})),-1===l&&e>0?this._seekNextExpandedGroupUIRow(e-1):l},r.QCELL.BasicQCELL.prototype._setGrandTotal=function(t){(!0===this.attr("_isGTF")||this.attr("_isGTH"))&&this._clearGrandTotal();var e,a,o=this,i=function(t,e){o._setGroupTotalHeaderFooterText(a,t,e,!1,!1)},s=[],l=[];if(r._.isArray(t.footer))for(e=0;e<t.footer.length;e++)a={_rtqc_state:"gt"},r._.each(t.footer[e],i),l.push(r._.clone(a));if(r._.isArray(t.header))for(e=0;e<t.header.length;e++)a={_rtqc_state:"gt"},r._.each(t.header[e],i),s.push(r._.clone(a));for(e=0;e<l.length;e++)this.insertRow(this.getRows(),l[e]),this.attr("_isGTF",!0,"boolean");for(e=s.length-1;e>=0;e--)this.insertRow(this.getRows("header"),s[e]),this.attr("_isGTH",!0,"boolean");return this.attr("_backGT",r._.clone(t),"object"),!0},r.QCELL.BasicQCELL.prototype._clearGrandTotal=function(){var t=this.getRows("header");this.attr("_isGTF",!1,"boolean"),this.attr("_isGTH",!1,"boolean");for(var e=this.getRows()-1;e>=t;e--)"gt"===this.getRowData(e)._rtqc_state&&this._deleteRows(e,1)},r.QCELL.BasicQCELL.prototype._setTree=function(t){if(!0===this.attr("useall"))return r.QCELL.isForceDynamic=!0,this.attr("usetreeall",!0,"boolean"),this._rebuild(),void this._setTree(t);if(this._onScrollHideEditCellsDOM(),this._checkValidationOfGroupProps(t)){var e=this,a=this.attr("treestate"),o=a.columnsinfo,i=this.attr("headercols");return this.attr("_treeProps",r._.clone(t),"object"),a.grouped=!0,a.level=r._.has(t,"level")&&r._.isString(t.level)?t.level:"level",a.treeUIColumn=r._.has(t,"treeUIColumn")&&r._.isString(t.treeUIColumn)?t.treeUIColumn:"level",a.expand=r._.has(t,"expand")&&r._.isFunction(t.expand)?t.expand:null,a.collapse=r._.has(t,"collapse")&&r._.isFunction(t.collapse)?t.collapse:null,a.leafindent=r._.has(t,"leafindent")?t.leafindent:0,a.linkedcheckbox="rowheader"===t.linkedcheckbox?"_rt_qc_rowheader":t.linkedcheckbox,a.exclude=void 0===t.exclude?[]:t.exclude,a.mode=t.mode,r._.has(t,"sort")&&r._.isString(t.sort)?"none"===t.sort?a.sort="none":"asc"===t.sort?a.sort="asc":"desc"===t.sort?a.sort="desc":a.sort="asc":a.sort="asc",r._.each(t.columns,(function(a,s){var l=e._getColsOfKey(a.key),n=l[0],c=l.length>0?e._getColID(n):a.key;l.length>0&&(e._getQCellCol(n).attr("disabled",!0,"boolean"),!1!==t.movefirst&&e._moveCols(n,1,i+s,!0)),!1===o.containsKey(c)&&(o.put(c,{header:r._.has(a,"header")&&r._.isObject(a.header)?r._.clone(a.header):{},footer:r._.has(a,"footer")&&r._.isObject(a.footer)?r._.clone(a.footer):{},headerFooterCallback:r._.has(a,"headerFooterCallback")&&r._.isFunction(a.headerFooterCallback)?a.headerFooterCallback:void 0}),o.get(c).expand=!r._.has(a,"expand")||!r._.isBoolean(a.expand)||a.expand,o.get(c).showLabel=a.showLabel,o.get(c).label=a.label,o.get(c).parentcode=a.parentkey)})),e._initColStyles(),r._.each(t.outer,(function(t,e){a.outer={},a.outer.header=r._.clone(t.header),a.outer.footer=r._.clone(t.footer),a.outer.headers=r._.clone(t.headers),a.outer.footers=r._.clone(t.footers),a.outer.outerCallback=r._.has(t,"outerCallback")&&r._.isFunction(t.outerCallback)?t.outerCallback:void 0})),"parentchild"===a.mode?this._initTreeEx():this._initTree()}return!1},r.QCELL.BasicQCELL.prototype._initTree=function(){if(this._makeTreeNodes(),this._makeTreeData()){this.attr("useall",!1,"boolean");var t=this.attr("treestate").data.RT_clone();return this.attr("usetreeall")&&this.attr("makefrozenbottomdata")&&t.push({rt_qc_fbrd:!0}),this._setCurrentData(t,!1)}return!1},r.QCELL.BasicQCELL.prototype._treecheckbox=function(t,e,r){var a=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(!0===a.grouped&&void 0!==a.linkedcheckbox&&a.linkedcheckbox===this._getKeyOfCol(e)){var o=this.getRowData(t);if(void 0!==o._rt_qc_treeinfo){var i=this._getColElement(e).attr("checkedvalue"),s=this._getColElement(e).attr("uncheckedvalue");if(void 0!==o._rt_qc_treeinfo.parent&&this._treecheckboxparentsub(a.linkedcheckbox,o._rt_qc_treeinfo.parent,r,i,s),void 0!==o._rt_qc_treeinfo.children)for(var l=0;l<o._rt_qc_treeinfo.children.length;l++)this._treecheckboxchildsub(a.linkedcheckbox,o._rt_qc_treeinfo.children[l],r,i,s);this.refresh()}}},r.QCELL.BasicQCELL.prototype._treecheckboxparentsubEx=function(t,e,r){var a=!0,o=this.attr("data").input;if(void 0===t._rt_qc_treeinfo.children)return!0;for(var i=0;i<t._rt_qc_treeinfo.children.length;i++){var s=o[t._rt_qc_treeinfo.children[i]];if(void 0===s)return!1;if(s[e]!==r)return!1;if(void 0!==s._rt_qc_treeinfo&&void 0!==s._rt_qc_treeinfo.children&&(a=this._treecheckboxparentsubEx(s,e,r)),!1===a)break}return a},r.QCELL.BasicQCELL.prototype._treecheckboxparentsub=function(t,e,r,a,o){var i=this.attr("data").input[e];r=this._treecheckboxparentsubEx(i,t,a),i[t]=!0===r?a:o,void 0!==i._rt_qc_treeinfo&&void 0!==i._rt_qc_treeinfo.parent&&this._treecheckboxparentsub(t,i._rt_qc_treeinfo.parent,r,a,o)},r.QCELL.BasicQCELL.prototype._treecheckboxchildsub=function(t,e,r,a,o){var i=this.attr("data").input[e];if(i[t]=!0===r?a:o,void 0!==i._rt_qc_treeinfo&&void 0!==i._rt_qc_treeinfo.children)for(var s=0;s<i._rt_qc_treeinfo.children.length;s++)this._treecheckboxchildsub(t,i._rt_qc_treeinfo.children[s],r,a,o)},r.QCELL.BasicQCELL.prototype._makeTreeNodes=function(){var t=this.attr("treestate"),e=t.nodes,a=t.level;e.clear(),t.state={};for(var o,i,s=t.columnsinfo,l=this.attr("data").input.RT_clone(),n=t.columnsinfo,c=n.keys(!0),d=null,h=0,_=l.length;h<_;h++){var u=l[h];if(i=e,void 0!==u[a]){o=Number(u[a]);for(var p=0;p<o;p++){var C=-1===this._getKeyOfColID(c[p])?c[p]:this._getKeyOfColID(c[p]);if(void 0!==C){var g=u[C];if(i.containsKey(g))d=i.get(g);else{var f="_rt_qc_index",L="_rt_qc_treeinfo";null!==d&&(u[L]={},1!==o&&(u[L].parent=d._rowData[f]),void 0===d._rowData[L]&&(d._rowData[L]={}),o>=d._rowData[C]&&(void 0===d._rowData[L].children&&(d._rowData[L].children=[]),d._rowData[L].children.push(h)));var m=n.get(c[p]).expand;d={colid:c[p],isparent:!1,colkey:C,level:o,key:g,count:0,header:r._.size(s.header)>0,footer:r._.size(s.footer)>0,headerFooterCallback:s.headerFooterCallback,parent:d,expand:m,_rowData:u,showLabel:n.get(c[p]).showLabel,label:n.get(c[p]).label},u[f]=h,i.put(g,d)}null!==d.childnodes&&void 0!==d.childnodes||(d.childnodes=new window._QHashtable),i=d.childnodes}}}}return!0},r.QCELL.BasicQCELL.prototype._makeTreeData=function(){var t=this.attr("treestate");return t.data=[],t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},r._.isUndefined(t.outer)||r._.isUndefined(t.outer.header)&&r._.isUndefined(t.outer.headers),this._makeTreeDatum(t.nodes),0!==t.nodes.size()||r._.isUndefined(t.outer)||r._.isUndefined(t.outer.header)&&r._.isUndefined(t.outer.footer)&&r._.isUndefined(t.outer.headers)&&r._.isUndefined(t.outer.footers),r._.isUndefined(t.outer)||r._.isUndefined(t.outer.footer)&&r._.isUndefined(t.outer.footers),!0},r.QCELL.BasicQCELL.prototype._makeTreeDatum=function(t){var e=this.attr("treestate"),a="asc"===e.sort?t.keys().sort():"desc"===e.sort?t.keys().sort().reverse():t.keys(!0),o=this.attr("headerrows"),i=-1;for(i=0;i<a.length;i++){var s=a[i];if(r._.isUndefined(s))break;var l=t.get(s);l.isparent=l.childnodes.size()>0,!0===l.isparent&&(e.treeuirows.push(o+e.data.length),e.treeuirownodes.push(l)),e.data.push(l._rowData),!0===l.isparent&&!0===l.expand&&this._makeTreeDatum(l.childnodes)}},r.QCELL.BasicQCELL.prototype._seekNextExpandedTreeUIRow=function(t,e){for(var r=t.childnodes.keys(!0),a=e+1,o=0;o<r.length;o++){var i=t.childnodes.get(r[o]);i.isparent&&!0===i.expand?a=this._seekNextExpandedTreeUIRow(i,a):a+=1}return a},r.QCELL.BasicQCELL.prototype._findParentNode=function(t,e){if(e.containsKey(t))return e.get(t);for(var r=e.keys(!0),a=0;a<r.length;a++){var o=e.get(r[a]),i=this._findParentNode(t,o.childnodes);if(null!==i)return i}return null},r.QCELL.BasicQCELL.prototype._insertTreeNode=function(t,e,a){var o,i=this.attr("treestate"),s=i.columnsinfo,l=0,n=i.nodes,c=null,d=0,h=s.keys(!0),_=void 0===a?"last":"first",u="",p=null,C=!0;if("parentchild"===i.mode){if(p=null,""!==t[0]){if(null===(p=this._findParentNode(t[0],n)))return!1;l=p.level+1,c=n=p}else l=1;if(d=0,void 0===(u=e[-1===this._getKeyOfColID(h[0])?h[0]:this._getKeyOfColID(h[0])]))return!1}else{for(var g=0;g<t.length-1;g++){if(""===t[g].trim())return!1;if(!n.containsKey(t[g])){C=!1;break}C=!0,c=n.get(t[g]),n=c.childnodes,d++}l=d+1,u=t[d]}if(!0===C){if(0!==d){if(""===t[d].trim())return!1;if(n.containsKey(t[d]))return!1}var f=s.get(h[d]);if(null===f)return!1;var L=f.expand,m="_rt_qc_index",E={colid:h[d],isparent:!1,colkey:h[d],level:l,key:u,count:0,header:r._.size(f.header)>0,footer:r._.size(f.footer)>0,headerFooterCallback:f.headerFooterCallback,parent:p,expand:L,_rowData:e};E.childnodes=new window._QHashtable;var b=this.attr("data").input;if(null===c){if(null!==(c=n.get(t[0])))return!1;if("last"===_)e[m]=this.attr("data").input.length,this.attr("data").input.push(e),n.put(u,E);else{for(o=0;o<b.length;o++)b[o][m]>0&&b[o][m]++;e[m]=0,b.RT_insertArray(0,[e]),n.putAt(u,E,0)}}else{if("last"===_)e[m]=this.attr("data").input.length,this.attr("data").input.push(e),c.childnodes.put(u,E);else{var y=c._rowData[m];if(!isNaN(y)){for(o=0;o<b.length;o++)b[o][m]>y&&b[o][m]++;e[m]=y+1,b.RT_insertArray(y+1,[e]),c.childnodes.putAt(u,E,0)}}c.isparent=!0}}if(this._makeTreeData()){var v=this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0);return this._setTreeState(this.attr("data").input.length,"i",e),v}return!1},r.QCELL.BasicQCELL.prototype._removeTreeNode=function(t){var e=this.attr("treestate"),r=e.nodes,a=null,o=0,i=null,s=!0;if("parentchild"===e.mode){if("parentchild"===e.mode){if(i=null,""!==t[0]&&null===(i=this._findParentNode(t[0],r)))return!1;a=i}}else for(var l=0;l<t.length-1;l++){if(!r.containsKey(t[l])){s=!1;break}s=!0,a=r.get(t[l]),r=a.childnodes,o++}if(!0===s){if(0!==o&&!1===r.containsKey(t[o]))return!1;if(null===a&&null===(a=r.get(t[0])))return!1;var n=null!=i?i:r.get(t[o]);return this._removeTreeDataNode(n),"parentchild"===e.mode?(this._findParentNodeEx(t[o],r),i.isparent=a.childnodes.size()>0):0===o&&1===t.length?r.remove(t[o]):(a.childnodes.remove(t[o]),a.isparent=a.childnodes.size()>0),!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)}return!1},r.QCELL.BasicQCELL.prototype._updateTreeNode=function(t,e){var r,a=this.attr("treestate"),o=a.nodes,i=null,s=0,l=!0;if("parentchild"===a.mode){if("parentchild"===a.mode){if(r=null,""!==t[0]&&null===(r=this._findParentNode(t[0],o)))return!1;i=r}}else for(var n=0;n<t.length-1;n++){if(!o.containsKey(t[n])){l=!1;break}l=!0,i=o.get(t[n]),o=i.childnodes,s++}if(!0===l){if(0!==s&&!1===o.containsKey(t[s]))return!1;if(null===i&&null===(i=o.get(t[0])))return!1;var c,d=null!=r?r:o.get(t[s]),h=d._rowData._rt_qc_index;if(isNaN(h))return!1;for(c in h+=this.attr("headerrows"),e)d._rowData[c]=e[c];return this._setTreeState(h,"u",d._rowData),this.refresh(),!0}return!1},r.QCELL.BasicQCELL.prototype._removeTreeDataNodeSub=function(t){var e="_rt_qc_index",r=this.attr("data").input,a=t._rowData[e];this._setTreeState(a,"d",t._rowData),r.splice(a,1);for(var o=r.length-1;o>=0;o--)r[o][e]>a&&(r[o][e]=r[o][e]-1)},r.QCELL.BasicQCELL.prototype._removeTreeDataNode=function(t){for(var e=t.childnodes,r=e.keys(),a=0;a<r.length;a++){var o=e.get(r[a]);o.childnodes.size()?this._removeTreeDataNode(o):this._removeTreeDataNodeSub(o)}this._removeTreeDataNodeSub(t)},r.QCELL.BasicQCELL.prototype._setTreeState=function(t,e,r){var a=void 0!==r?r:this.attr("currentdata")[t-this.attr("headerrows")],o=this.attr("treestate"),i=this._getTreeStateKey(a);if(""===i)return!1;if(void 0===o.state.update&&(o.state.update=new window._QHashtable),void 0===o.state.insert&&(o.state.insert=new window._QHashtable),void 0===o.state.delete&&(o.state.delete=new window._QHashtable),"u"===e){if(o.state.insert.containsKey(i))return void o.state.insert.put(i,a);if(o.state.delete.containsKey(i))return void o.state.delete.put(i,a);o.state.update.put(i,a)}else if("i"===e)o.state.update.containsKey(i)&&o.state.update.remove(i),o.state.delete.containsKey(i)&&o.state.delete.remove(i),o.state.insert.put(i,a);else if("d"===e){if(o.state.update.containsKey(i)&&o.state.update.remove(i),o.state.insert.containsKey(i))return void o.state.insert.remove(i);o.state.delete.put(i,a)}},r.QCELL.BasicQCELL.prototype._getTreeStateKey=function(t){var e,r,a=this.attr("treestate"),o="",i=a.level,s=this.attr("treestate").columnsinfo.keys(!0),l=this.attr("treestate").columnsinfo;if(void 0===i)return o;var n=t[i];if(isNaN(n))return"";if("parentchild"===a.mode){if(null===l.get(s[0]))return"";e=s[0],r=-1===this._getKeyOfColID(e)?e:this._getKeyOfColID(e);for(var c=this._findParentNode(t[r],a.nodes);void 0!==c.level&&c.level>0&&(o=o+"_qc_"+c.key,null!==(c=c.parent))&&1!==c.level;);}else for(var d=0;d<n;d++){if(null===l.get(s[d]))return"";if(e=s[d],void 0===t[r=-1===this._getKeyOfColID(e)?e:this._getKeyOfColID(e)]||""===t[r])return"";o=o+"_qc_"+t[r]}return o},r.QCELL.BasicQCELL.prototype._getTreeState=function(t){var e={};return"u"===t?e.update=this._getTreeStateSub("u"):"i"===t?e.insert=this._getTreeStateSub("i"):("d"===t||(e.update=this._getTreeStateSub("u"),e.insert=this._getTreeStateSub("i")),e.delete=this._getTreeStateSub("d")),e},r.QCELL.BasicQCELL.prototype._getTreeStateSub=function(t){var e,r=[],a=this.attr("treestate");if("u"===t?e=a.state.update:"i"===t?e=a.state.insert:"d"===t&&(e=a.state.delete),void 0===e)return r;for(var o=e.keys(!0),i=0;i<o.length;i++)r.push(e.get(o[i]));return r},r.QCELL.BasicQCELL.prototype._clearTreeState=function(){this.attr("treestate").state={}},r.QCELL.BasicQCELL.prototype._setHierachy=function(t){if(this._checkValidationOfHierachyProps(t)){var e=this.attr("hierachystate");return e.columninfo=t.column,this.attr("_hierachyProps",r._.clone(t),"object"),e.grouped=!0,e.expand=r._.has(t,"expand")&&r._.isFunction(t.expand)?t.expand:null,e.collapse=r._.has(t,"collapse")&&r._.isFunction(t.collapse)?t.collapse:null,r._.has(t,"sort")&&r._.isString(t.sort)?"none"===t.sort?e.sort="none":"asc"===t.sort?e.sort="asc":"desc"===t.sort?e.sort="desc":e.sort="asc":e.sort="asc",this._initColStyles(),r._.each(t.outer,(function(t,a){e.outer={},e.outer.header=r._.clone(t.header),e.outer.footer=r._.clone(t.footer),e.outer.headers=r._.clone(t.headers),e.outer.footers=r._.clone(t.footers),e.outer.outerCallback=r._.has(t,"outerCallback")&&r._.isFunction(t.outerCallback)?t.outerCallback:void 0})),this.attr("_heirachyinfo",t,"object"),this._initHeirachy()}return!1},r.QCELL.BasicQCELL.prototype._checkValidationOfHierachyProps=function(t){return r._.has(t,"column")&&r._.isObject(t.column)},r.QCELL.BasicQCELL.prototype._initHeirachy=function(){return this._makeHeirachyNodes(),!!this._makeHierachyData()&&this._setCurrentData(this.attr("hierachystate").data.RT_clone(),!1)},r.QCELL.BasicQCELL.prototype._getHierachyData=function(t){for(var e=[],a=0,o=this.attr("hierachystate").columninfo,i=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,s=o.key,l=0;l<i.length;l++)i[l][s]===t&&(e.push(r._.clone(i[l])),e[a][s]="",e[a].check=!1,a++);return e},r.QCELL.BasicQCELL.prototype._addHierachyData=function(t,e,r,a){var o=this._getHierachyData(""+a);if(o.length>0){t.currentTarget.textContent="-",this.setCellDataEx(e,"rt_qc_state","M"),this.insertRows(e+1,o);var i=this;setTimeout((function(){i._trigger("hierachyuiclick",{nRow:e,bExpand:!0})}))}},r.QCELL.BasicQCELL.prototype._removeHierachyData=function(t,e,r,a){var o=this._getHierachyData(""+a);if(o.length>0){t.currentTarget.textContent="+",this.setCellDataEx(e,"rt_qc_state","P"),this.deleteRows(e+1,o.length);var i=this;setTimeout((function(){i._trigger("hierachyuiclick",{nRow:e,bExpand:!1})}))}},r.QCELL.BasicQCELL.prototype._makeHeirachyNodes=function(){var t=this.attr("hierachystate"),e=t.nodes,r=this.getColOfKey(t.columninfo.key),a=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input;if(e.clear(),-1===r)return!1;var o=this._getColHtml(r),i=this.getID(),s=function(t,e,r,a,o){return void 0!==o.rt_qc_type&&"M"===o.rt_qc_type?"P"===o.rt_qc_state?'<button class="rt-qc-heirachy-button" onclick="QCELL.getInstance(\''+i+"')._addHierachyData(event,"+e+","+r+","+a+')">+</button>'+a:'<button class="rt-qc-heirachy-button" onclick="QCELL.getInstance(\''+i+"')._removeHierachyData(event,"+e+","+r+","+a+')">-</button>'+a:""};this._getColElement(r).attr("renderer",s,"function"),o.data=s;for(var l=0,n=a.length;l<n;l++)this._makeHierachyNode(null,e,l,0,0);return!0},r.QCELL.BasicQCELL.prototype._makeHierachyData=function(){for(var t=this.attr("hierachystate"),e=t.columninfo,a=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,o=t.nodes,i=o.keys(!0),s=[],l=0;l<i.length;l++){var n=o.get(i[l]),c=n.data.values().sort(r.st.asc);if(void 0!==e.header){var d={};for(var h in e.header){for(var _="",u=e.header[h],p=0;p<u.length;p++)"value()"===u[p]?_+=n._rowData[h]:"childcount()"===u[p]?_+=""+n.count:_+=u[p];d[h]=_}if(d.rt_qc_type="M",d.rt_qc_state=!0===e.expand?"M":"P",s.push(d),!0===e.expand)for(var C=0;C<c.length;C++)s.push(a[c[C]])}}return t.data=s,!0},r.QCELL.BasicQCELL.prototype._makeHierachyNode=function(t,e,a,o,i){var s=this.attr("hierachystate"),l=s.columninfo,n=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,c=s.columninfo,d=n[a],h=d[c.key];if(void 0!==h&&o===i){var _=null;if(e.containsKey(h))for(void 0!==(_=e.get(h)).data&&null!==_.data||(_.data=new window._QHashSet),_.data.add(a);null!==_;)_.count+=1,_=_.parent;else _={level:i,key:h,count:1,header:r._.size(l.header)>0,footer:r._.size(l.footer)>0,headerFooterCallback:l.headerFooterCallback,parent:t,_rowData:d},"tree"!==s.type&&"step"!==s.type&&"group"!==s.type||(_.expand=!r._.has(l,"expand")||"boolean"!=typeof l.expand||l.expand),e.put(h,_),_.childnodes=new window._QHashtable,_.data=new window._QHashSet,_.data.add(a)}},r.QCELL.BasicQCELL.prototype._initTreeEx=function(){if(!1===this._makeTreeNodesEx())return!1;if(this._makeTreeData()){var t=this.attr("treestate").data.RT_clone();return this._setCurrentData(t,!1)}return!1},r.QCELL.BasicQCELL.prototype._makeTreeNodesExSub=function(t,e,r,a,o,i,s,l,n,c,d,h){for(var _=t.keys(!0),u="_rt_qc_index",p="_rt_qc_treeinfo",C=null,g=e[r],f=0;f<_.length;f++){if(C=t.get(_[f]),_[f]===e[a]){null!==C&&(e[p]={},1!==o&&(e[p].parent=C._rowData[u]),void 0===C._rowData[p]&&(C._rowData[p]={}),o>=C._rowData[r]&&(void 0===C._rowData[p].children&&(C._rowData[p].children=[]),C._rowData[p].children.push(i)));var L={colid:_[0],isparent:!1,colkey:r,level:o,key:g,count:0,header:c,footer:d,headerFooterCallback:h,parent:C,expand:n,_rowData:e,showLabel:s,label:l};return e[u]=i,null!==L.childnodes&&void 0!==L.childnodes||(L.childnodes=new window._QHashtable),C.childnodes.put(g,L),!0}if(this._makeTreeNodesExSub(C.childnodes,e,r,a,o,i,s,l,n,c,d,h))return!0}return!1},r.QCELL.BasicQCELL.prototype._makeTreeNodesEx=function(){var t=this.attr("treestate"),e=t.nodes,a=t.level;e.clear(),t.state={};for(var o,i,s=t.columnsinfo,l=this.attr("data").input.RT_clone(),n=t.columnsinfo,c=n.keys(!0),d=n.get(c[0]).parentcode,h=-1===this._getKeyOfColID(c[0])?c[0]:this._getKeyOfColID(c[0]),_=null,u=n.get(c[0]).expand,p=0,C=l.length;p<C;p++){var g=l[p];if(i=e,void 0!==g[a]){if(o=Number(g[a]),isNaN(o))return!1;var f=g[h];if(1===o){if(i.containsKey(f))continue;var L="_rt_qc_index",m="_rt_qc_treeinfo";null!==_&&(g[m]={},1!==o&&(g[m].parent=_._rowData[L]),void 0===_._rowData[m]&&(_._rowData[m]={}),o>=_._rowData[h]&&(void 0===_._rowData[m].children&&(_._rowData[m].children=[]),_._rowData[m].children.push(p))),_={colid:c[0],isparent:!1,colkey:h,level:o,key:f,count:0,header:r._.size(s.header)>0,footer:r._.size(s.footer)>0,headerFooterCallback:s.headerFooterCallback,parent:_,expand:u,_rowData:g,showLabel:n.get(c[0]).showLabel,label:n.get(c[0]).label},g[L]=p,i.put(f,_)}else this._makeTreeNodesExSub(i,g,h,d,o,p,n.get(c[0]).showLabel,n.get(c[0]).label,u,r._.size(s.header)>0,r._.size(s.footer)>0,s.headerFooterCallback);null!==_.childnodes&&void 0!==_.childnodes||(_.childnodes=new window._QHashtable),i=_.childnodes}}return!0},r.QCELL.BasicQCELL.prototype._findParentNodeEx=function(t,e,r,a){if(e.containsKey(t))return!0===r?e.moveAt(t,a):(e.remove(t),e);for(var o=e.keys(!0),i=0;i<o.length;i++){var s=e.get(o[i]);if(null!==this._findParentNodeEx(t,s.childnodes,r,a))return s.childnodes}return null},r.QCELL.BasicQCELL.prototype._moveTreeNode=function(t,e){var r,a=this.attr("treestate"),o=a.nodes,i=null,s=0,l=!0;if("parentchild"===a.mode){if("parentchild"===a.mode){if(r=null,""!==t[0]&&null===(r=this._findParentNode(t[0],o)))return!1;i=r}}else for(var n=0;n<t.length-1;n++){if(!o.containsKey(t[n])){l=!1;break}l=!0,i=o.get(t[n]),o=i.childnodes,s++}if(!0===l){if(0!==s&&!1===o.containsKey(t[s]))return!1;if(null===i&&null===(i=o.get(t[0])))return!1;if("parentchild"===a.mode){if(null===this._findParentNodeEx(t[s],o,!0,e))return!1}else 0===s&&1===t.length?o.moveAt(t[s],e):i.childnodes.moveAt(t[s],e);return!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)}return!1},r.QCELL.BasicQCELL.prototype._adjustLevel=function(t,e){for(var r=this.attr("treestate").level,a=t.keys(),o=0;o<a.length;o++){var i=t.get(a[o]);i.level=e,i._rowData[r]=e,this._adjustLevel(i.childnodes,e+1)}},r.QCELL.BasicQCELL.prototype._moveTreeNodeEx=function(t,e,r){var a,o,i=this.attr("treestate"),s=i.nodes,l=i.level;if("parentchild"!==i.mode)return!1;if(a=null,""!==t[0]&&null===(a=this._findParentNode(t[0],s)))return!1;if(o=null,""!==e[0]&&null===(o=this._findParentNode(e[0],s)))return!1;if("parentchild"===i.mode){if(null===this._findParentNodeEx(t[0],s))return!1;var n={colid:a.colid,isparent:!1,colkey:a.colkey,level:o.level+1,key:a.key,count:a.count,header:a.header,footer:a.footer,headerFooterCallback:a.headerFooterCallback,parent:o,expand:a.expand,_rowData:a._rowData,showLabel:a.showLabel,label:a.label,childnodes:a.childnodes};a._rowData[l]=n.level,o.childnodes.putAt(t[0],n,r),this._adjustLevel(n.childnodes,n.level+1)}return!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)},r.QCELL.BasicQCELL.prototype._treeRefresh=function(t,e){var r=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),a=r.grouped?r.columnsinfo.keys(!0)[0]:"",o=r.treeUIColumn;r.grouped&&"parentchild"===r.mode&&(void 0!==o?this._getColsOfKey(o)[0]:this._getColsOfKey(a)[0])===e&&this.refresh()},r.QCELL.BasicQCELL.prototype._setHSRange=function(){try{var t=this.attr("hsinfo"),e=this.attr("headercols"),a=this.attr("cols");return a-e>0?(t.nStartCol=e+this.attr("frozencols"),t.nEndCol=a-1):t.nStartCol=t.nEndCol=-1,!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._setHSRange",t.message),!1}},r.QCELL.BasicQCELL.prototype._initHSInfo=function(){var t=this.attr("hsinfo");t.bHScroll=!1,t.nStartCol=t.nEndCol=t.nLeftCol=t.nRightCol=-1,t.nAdjustCols=t.nDynamicCols=t.nLength=t.nLastPos=t.nPos=t.nLeft=t.nBeforeLeft=t.nLengthPerCol=0,t.objUpdateInfo={bWholeUpdate:!1,objParams:{}}},r.QCELL.BasicQCELL.prototype._updateHSInfo=function(){try{var t=this.attr("hsinfo"),e=t.objUpdateInfo,a=this.attr("headercols"),o=this.attr("cols");if(e.objParams={},t.bHScroll){var i=0;if(e.bWholeUpdate=!0,t.nLeftCol=t.nStartCol+t.nPos,t.nDynamicCols>o-a)t.nRightCol=t.nEndCol;else{var s=this.attr("frozencols");if(t.nRightCol=t.nLeftCol+(t.nDynamicCols-s)-1,t.nRightCol>t.nEndCol)if(t.nLeftCol-=t.nRightCol-t.nEndCol,t.nRightCol=t.nEndCol,t.nLastPos===t.nPos){var l=this.attr("layoutsize").viewport.offsetWidth;i=this._getSumOfColWidth(a,a+s-1)+this._getSumOfColWidth(t.nLeftCol,t.nEndCol)-l}else i=this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+(t.nPos-(t.nLastPos-t.nAdjustCols))-1)}e.objParams.nAdjustedLeft=i}else e.bWholeUpdate=!1,o>0?(t.nLeftCol=a,t.nRightCol=o-1):t.nLeftCol=t.nRightCol=-1,e.objParams.nAdjustedLeft=0;return this._adjustFrozenCount(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._updateHSInfo",t.message),!1}},r.QCELL.BasicQCELL.prototype.onHScroll=function(t){var e=this.attr("hsinfo"),r=0;Math.abs(e.nLeft-t)>=e.nLengthPerCol&&(r=parseInt(-(t-e.nLeft)/e.nLengthPerCol),e.nBeforeLeft=e.nLeft,e.nLeft=e.nLeft-r*e.nLengthPerCol,e.nPos=-e.nLeft/e.nLengthPerCol,this._syncHSInfo(),this._updateNCs(),this._adjustScrollPos()),this.attr("adjustcol",!1,"boolean")},r.QCELL.BasicQCELL.prototype._syncHSInfo=function(){var t=this.attr("hsinfo"),e=t.objUpdateInfo,r=(t.nBeforeLeft-t.nLeft)/t.nLengthPerCol,a=this.attr("headercols"),o=this.attr("frozencols"),i=this.attr("layoutsize").viewport.offsetWidth,s=this._getSumOfColWidth(a,a+o-1),l=0;if(e.objParams={},Math.abs(r)>=t.nDynamicCols-o){var n=0,c=0;e.bWholeUpdate=!0,r>0?(e.strDirection="right",t.nPos>t.nLastPos-t.nAdjustCols?(n=t.nPos-(t.nLastPos-t.nAdjustCols),t.nLeftCol+=r-n,t.nRightCol+=r-n,c=t.nLastPos===t.nPos?s+this._getSumOfColWidth(t.nLeftCol,t.nEndCol)-i:this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+(t.nPos-(t.nLastPos-t.nAdjustCols))-1)):(t.nLeftCol+=r,t.nRightCol+=r)):(e.strDirection="left",t.nPos>=t.nLastPos-t.nAdjustCols?(n=t.nPos-(t.nLastPos-t.nAdjustCols),c=this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+n-1)):(l=t.nPos-r>=t.nLastPos-t.nAdjustCols?t.nPos-r-(t.nLastPos-t.nAdjustCols):0,t.nLeftCol+=r+l,t.nRightCol+=r+l)),e.objParams.nAdjustedLeft=c}else{var d=0;e.bWholeUpdate=!1,e.objParams.nMovedCount=r,r>0?(e.strDirection="right",t.nPos>t.nLastPos-t.nAdjustCols?(d=t.nEndCol-t.nRightCol,e.objParams.bWholePositionChanged=!0):(d=r,e.objParams.bWholePositionChanged=!1),t.nLeftCol+=d,t.nRightCol+=d):(e.strDirection="left",t.nPos>=t.nLastPos-t.nAdjustCols?e.objParams.bWholePositionChanged=!0:(e.objParams.bWholePositionChanged=!1,l=t.nPos-r>=t.nLastPos-t.nAdjustCols?t.nPos-r-(t.nLastPos-t.nAdjustCols):0,d=Math.abs(r)-l,t.nLeftCol-=d,t.nRightCol-=d)),e.objParams.nCutColsCount=d}},r.QCELL.BasicQCELL.prototype._resizeHScrollbar=function(){try{var t=this.attr("elementpool"),e=t.get("hscrollthumb"),a=t.get("$jqhscrollbar"),o=this.attr("layoutsize"),i=this.attr("hsinfo");if(i.bHScroll){var s,l,n=0,c=this.attr("headercols"),d=this.attr("frozencols"),h=this.attr("cols"),_=o.viewport.offsetWidth,u=o.hscrollbar.clientWidth,p=this._getSumOfColWidth(c,c+d-1);for(l=c;l<h;l++)if(this._getSumOfColWidth(c,l)>=_){n=l-c+1;break}for(i.nLengthPerCol=Math.round(u/n),i.nAdjustCols=0,i.nLastPos=i.nEndCol-(i.nStartCol+(i.nDynamicCols-d)-1),l=i.nStartCol+i.nLastPos;l<=i.nEndCol&&p+this._getSumOfColWidth(i.nStartCol+i.nLastPos+i.nAdjustCols,i.nEndCol)>_;l++)i.nAdjustCols+=1;if(i.nLastPos+=i.nAdjustCols,i.nPos>i.nLastPos&&(i.nPos=i.nLastPos,i.nLeft=-i.nPos*i.nLengthPerCol),i.nLeft!==-i.nPos*i.nLengthPerCol&&(i.nLeft=-i.nPos*i.nLengthPerCol),i.nLength=i.nLastPos*i.nLengthPerCol,isNaN(i.nLength))return void 0!==a.rt_qc_mCSbar&&a.rt_qc_mCSbar("destroy"),i.nLengthPerCol=i.nLastPos=i.nPos=i.nLeft=i.nBeforeLeft=i.nAdjustCols=i.nLength=0,e.style.width="0px",!0;r.$(e).attr("style","width:"+(u+i.nLength)+"px !important");var C=this;s=function(t){try{var e=this.mcs.left;r.util.rAF((function(){C.onHScroll(e),C._trigger("scrollmove")}))}catch(t){r.QCELL.log("err","HScrollbar.onScroll ",t.message)}},void 0!==a.rt_qc_mCSbar&&r.$(a).rt_qc_mCSbar("destroy").rt_qc_mCSbar({axis:"x",theme:"qcell-default",setWidth:"100%",setHeight:"100%",scrollInertia:0,snapAmount:i.nLengthPerCol,mouseWheel:{enable:!0,preventDefault:!0,normalizeDelta:!0,scrollAmount:i.nLengthPerCol},scrollButtons:{enable:!0,scrollAmount:i.nLengthPerCol},keyboard:{enable:!1},advanced:{updateOnContentResize:!1},callbacks:{onScroll:s,whileScrolling:s},target:this}),i.nLeft<0&&a.rt_qc_mCSbar("scrollTo",i.nLeft,"",{ignorecallback:!0}),s=null}else void 0!==a.rt_qc_mCSbar&&a.rt_qc_mCSbar("destroy"),i.nLengthPerCol=i.nLastPos=i.nPos=i.nLeft=i.nBeforeLeft=i.nAdjustCols=i.nLength=0,e.style.width="0px";return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._resizeHScrollbar",t.message),!1}},r.QCELL.BasicQCELL.prototype._scrollLeft=function(t){var e,a=this.attr("hsinfo");a.bHScroll&&(t<a.nStartCol?t=a.nStartCol:t>a.nStartCol+a.nLastPos&&(t=a.nStartCol+a.nLastPos),e=-1*(t-a.nStartCol)*a.nLengthPerCol,this.attr("isscrollleft",!1,"boolean"),isNaN(e)||e===a.nLeft||(this.attr("isscrollleft",!0,"boolean"),r.$(this.attr("elementpool").get("$jqhscrollbar")).rt_qc_mCSbar("scrollTo",e)))},r.QCELL.BasicQCELL.prototype._adjustCol=function(){try{var t=-1!==this._getSelectedRow()?this._getSelectedRow():this._idx("row","focus"),e=-1!==this._getSelectedCol()?this._getSelectedCol():this._idx("col","focus"),a=this._getCellDOM(t,e),o=this.attr("hsinfo");if(o.bHScroll&&o.nAdjustCols>0)if(e>=this.attr("headercols")+this.attr("frozencols"))switch(this._getHScrollAdjustment(a)){case"left":this._scrollLeft(o.nStartCol+o.nPos-1),this.attr("adjustcol",!0,"boolean");break;case"right":this._scrollLeft(o.nStartCol+o.nPos+1),this.attr("adjustcol",!0,"boolean");break;default:this.attr("adjustcol",!1,"boolean")}else this.attr("adjustcol",!1,"boolean");return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._adjustCol",t.message),!1}},r.QCELL.BasicQCELL.prototype._getHScrollAdjustment=function(t){var e=this.attr("hsinfo");if(e.bHScroll){var r=0;if(e.nPos===e.nLastPos){var a=this.attr("headercols"),o=this.attr("frozencols");if(o>0&&(r+=this._getSumOfColWidth(a,a+o-1)),t.offsetLeft<r)return"left"}else if(r+=this.attr("layoutsize").viewport.offsetWidth,t.offsetLeft+t.offsetWidth>r)return"right"}return"none"},r.QCELL.BasicQCELL.prototype._MoveHScrollbarToDragging=function(t){if(this.attr("dragging")){var e=this.attr("hsinfo");if(e.bHScroll){var r=this,a=this.attr("layoutsize"),o=this.attr("headercols"),i=this.attr("frozencols"),s=this._getSumOfColWidth(0,o-1),l=this._getSumOfColWidth(o,o+i-1),n=a.container.clientX+s+l,c=a.container.clientX+s+a.viewport.offsetWidth,d=0;n+30>=t.clientX?(this.attr("colmove")||this._idx("col","focus")>=o+i)&&e.nPos>0&&(n>=t.clientX?(d=-5,e.nPos+d<0&&(d=-e.nPos)):d=-1):c-30<=t.clientX&&e.nPos<e.nLastPos&&(c<=t.clientX?(d=5,e.nPos+d>e.nLastPos&&(d=e.nLastPos-e.nPos)):d=1),d!==this.attr("hdcount")&&(null!==this.attr("hdhandle")&&(clearInterval(this.attr("hdhandle")),this.attr("hdhandle",null,"number")),this.attr("hdcount",d,"number")),0!==d?null===this.attr("hdhandle")&&this.attr("hdhandle",setInterval((function(){if(d<0?e.nPos>0:e.nPos<e.nLastPos){if(-1===r.attr("selectmode").indexOf("row")){var a=r._idx("row","cursor"),o=d<0?r._getLeftColOfScreen():r._getRightColOfScreen();r._updateIdx("drag",a,o),!1===r.attr("colmove")&&!1===r.attr("colresize")&&r._selectDragArea(t)}r._scrollLeft(e.nStartCol+e.nPos+d)}else clearInterval(r.attr("hdhandle")),r.attr("hdhandle",null,"number"),r.attr("hdcount",0,"number")}),100),"number"):null!==this.attr("hdhandle")&&(clearInterval(r.attr("hdhandle")),r.attr("hdhandle",null,"number"),r.attr("hdcount",0,"number"))}}},r.QCELL.BasicQCELL.prototype._getLeftColOfScreen=function(){var t=this.attr("hsinfo");if(!1===t.bHScroll||t.nPos<=t.nLastPos-t.nAdjustCols)return t.nLeftCol;for(var e,r=this._getCellGroupDOMs("col","normal"),a=this.attr("headercols"),o=this.attr("frozencols"),i=this._getSumOfColWidth(a,a+o-1),s=r.length,l=0;l<s;){var n=r[l][0];if(n.offsetLeft+n.offsetWidth>i){e=parseInt(n.getAttribute("data-col"));break}l+=1}return e},r.QCELL.BasicQCELL.prototype._getRightColOfScreen=function(){var t=this.attr("hsinfo");if(!1===t.bHScroll||t.nPos===t.nLastPos)return t.nRightCol;var e,r=this._getCellGroupDOMs("col","normal"),a=this.attr("layoutsize"),o=this.attr("headerrows")-1,i=a.viewport.offsetWidth,s=r.length,l=0;for(r.reverse();l<s;){var n=r[l][o];if(e=parseInt(n.getAttribute("data-col")),0!==n.offsetWidth&&n.offsetLeft<i)break;l+=1}return e},r.QCELL.BasicQCELL.prototype._excelUpload=function(t){var e=!0,a=r._.clone(this);void 0!==t.progressui&&!0===t.progressui&&a._showProgressUI(t.progressui,t),r.$.browser.msie&&r.$.browser.version<10||r._.isUndefined(t.event)?a._excelUpload_checkRequiredProps(t,"url")&&a._excelUpload_checkValidationOfProps(t)?a._excelUploadURL(t):e=!1:a._excelUpload_checkRequiredProps(t,"loc")&&a._excelUpload_checkValidationOfProps(t)?a._excelUploadLOC(t):e=!1,void 0!==t.progressui&&!0===t.progressui&&a._showProgressUI(!1);var o=this;return!1===e?setTimeout((function(){o._trigger("exceluploadfail")})):setTimeout((function(){o._trigger("exceluploadsucess")})),e},r.QCELL.BasicQCELL.prototype._excelUpload_checkRequiredProps=function(t,e){var a=!0;if(r._.isObject(t)&&!1===r._.isArray(t)){for(var o,i=0,s=(o="loc"===e?["event","headerrows"]:["cellname","fileid","headerrows","url"]).length;i<s;i++){var l=o[i];if(void 0===t[l]){r.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkRequiredProps",'Please check "'+l+'" property.'),a=!1;break}}o.RT_clear(),o=null}else r.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkRequiredProps",'Please check first parameter\'s type is "object".'),a=!1;return a},r.QCELL.BasicQCELL.prototype._excelUpload_checkValidationOfProps=function(t){var e=!0,a=r._.clone(this);return r.$.each(t,(function(t,r){return e=a._excelUpload_checkValidationOfProp(t,r)})),e},r.QCELL.BasicQCELL.prototype._excelUpload_checkValidationOfProp=function(t,e){var a=!0,o="";switch(t){case"cellname":case"fileid":case"url":o="string",!1===r._.isString(e)&&(a=!1);break;case"headerrows":o="number",!1===r._.isNumber(Number(e))&&(a=!1);break;case"event":o="object",(!1===r._.isObject(e)||r._.isArray(e))&&(a=!1)}return!1===a&&r.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkValidationOfProp",'Please check "'+t+'" property\'s type is "'+o+'".'),a},r.QCELL.BasicQCELL.prototype._excelUploadURL=function(t){var e=this.attr("id")+"._excelUploadURL";try{var a=t.cellname,o=t.fileid,i=t.headerrows,s=t.url,l="___iFame",n="file",c=r.$("<iframe></iframe>").attr("id",l).attr("name",l).css("display","none"),d=r.$("<form></form>").attr("action",s).attr("method","post").attr("target",l).attr("enctype","multipart/form-data"),h=r.$("#"+o),_=r.$(h).clone();h[0].name=n,h.before(_);var u=this.attr("rowheaders").length>0,p=r._.clone(this.attr("colkeys"));u&&p.shift();var C=r.$("<input>").attr("type","hidden").attr("name","keys").val(p),g=r.$("<input>").attr("type","hidden").attr("name","rows").val(i),f=r.$("<input>").attr("type","hidden").attr("name","objName").val(a),L=r.$("<input>").attr("type","hidden").attr("name","ifrmId").val(l),m=r.$("<input>").attr("type","hidden").attr("name","fileName").val(n);return r._.isElement(r.$("#"+l))&&r.$("#"+l).remove(),d.append(h).append(C).append(g).append(f).append(L).append(m),c.appendTo("body").append(d),d.submit().remove(),!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._excelUploadLOC=function(t){var e=this.attr("id")+"._excelUploadLOC";try{var a=t.event.target.files[0];if(a){if("xlsx"!==a.name.split(".").pop(-1).toLowerCase())return r.QCELL.log("err",e,this.attr("msg").err.FILE_EXT_NOT_XLSX),!1;var o="undefined"!=typeof FileReader&&(FileReader.prototype||{}).readAsBinaryString,i=new FileReader,s=t.headerrows,l=r._.clone(this);o?i.readAsBinaryString(a):i.readAsArrayBuffer(a),i.onload=function(e){var a=e.target.result;o||(a=new Uint8Array(a)),t.cellformula=void 0!==t.cellformula&&t.cellformula,r._.isBoolean(t.cellformula)||(t.cellformula=!1);var i={type:o?"binary":"array",cellFormula:t.cellformula,cellDates:!0,dateNF:"yyyyMMdd"};void 0!==t.password&&(i.password=t.password);var n=!1;if(void 0!==t.mode&&(n="append"===t.mode),l._process_wb(window.XLSX.read(a,i),s,n,t.beforeUploadCallback,t.cellformula,t.usemultisheets),!0===t.state){var c,d=l.getRows();for(c=l.getRows("header");c<d;c++)l._setRowState(c,"i")}var h=l;setTimeout((function(){void 0!==h._trigger&&h._trigger("exceluploadlocend")}),0),l=null}}return!0}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype._process_wb_sub=function(t,e,a,o,i,s){var l,n=[],c=0,d=0,h=[],_=this.attr("rowheaders").length>0,u=r._.clone(this.attr("colkeys"));if(_){var p=0;for(p=0;p<this.attr("rowheaders").length;p++)u.shift()}for(l=this.getCols("header");l<this.getCols();l++){var C=this._getColFormat(l);null!==C&&"number"===C.type&&h.push({col:l,key:this._getKeyOfCol(l),rule:C.rule})}for(var g=[];c<e;c++)g.push(s.shift());if(void 0===o||!r._.isFunction(o)||!1!==o(g)){for(;d<s.length;d++){var f={};for(l=0;l<u.length;l++)try{f[u[l]]=r.$.trim(s[d][l])}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._process_wb",t.message),f[u[l]]=""}for(l=0;l<h.length;l++){var L,m=h[l];isNaN(Number(f[m.key]))?(m.rule=void 0===m.rule?"":m.rule,void 0!==f[m.key]?(L=r.$.parseNumber(f[m.key],m.rule),isNaN(Number(L))&&(L=0)):L=0,f[m.key]=L):f[m.key]=Number(f[m.key])}n.push(f)}if(!0===a){var E=r._.clone(this.attr("currentdata"));E=E.concat(n),this._setData(E)}else this._setData(n)}},r.QCELL.BasicQCELL.prototype._createSheetPopup=function(t,e,a,o,i){var s,l,n=r.QCELL.def.css,c=r.$(document.createElement("div")),d=r.$(document.createElement("button")).addClass(n.EXCELIMPORT_UI_BTN),h=r.$(document.createElement("span")),_=r.$(c.clone());_.css({display:"none",height:"290px",width:"229px","background-color":"white",position:"absolute",border:"1px solid"}),(s=c.clone()).addClass(n.EXCELIMPORT_TITLE_AREA),h.clone().text("Excel Import").addClass(n.EXCELIMPORT_TITLE_SPAN).appendTo(s),c.clone().addClass(n.EXCELIMPORT_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("excelimportuivisible")&&e._removeSheetPopup()})).appendTo(s),s.appendTo(_),c.clone().attr({id:"excelupload-dataindex-"+this.attr("id")}).css({width:"95%",height:"210px",padding:"5px"}).appendTo(_),l=c.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"}),h.clone().text(r.QCELL.def.resource.cancel).appendTo(d.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(t){t.data.target._removeSheetPopup()})).appendTo(l)),l.appendTo(_),this.attr("exceluploaduiarea",_,"jquery")},r.QCELL.BasicQCELL.prototype._showSheetPopup=function(t,e,a,o,i){var s=this.attr("exceluploaduiarea"),l=this;s.appendTo(this.attr("elementpool").get("container")),s.prop("id",this.attr("id")+"_exceluploadPopup"),r.util._dragElement(this.attr("id")+"_exceluploadPopup"),"none"===s.css("display")&&s.css("display","block"),s.css({right:"5px",top:"5px"});for(var n,c=[],d=0;d<t.SheetNames.length;d++)n={indexpool:t.SheetNames[d]},c.push(n);var h=r.QCELL.NormalQCELL.create({id:"excelupload-dataindex",parentid:"excelupload-dataindex-"+this.attr("id"),rowheight:{header:30,data:30},selectmode:"row",rowheaders:["sequence"],columns:[{title:["Sheet Name"],key:"indexpool",width:"100%",tooltip:!0}],data:{input:c}});h._createCols(),h._create(),r.QCELL.storage.put("excelupload-dataindex",h),h.bind("click dblclick keydown",(function(r){var s=h.getIdx("row","click"),n=h.getCellDataEx(s,"indexpool");if(-1!==s&&void 0!==n){var c=l._wbToJsonSheetName(t,i,n);l._process_wb_sub(t,e,a,o,i,c)}l._removeSheetPopup(),r.stopPropagation()})),h.bind("mousedown mousewheel DOMMouseScroll mouseenter mouseleave mousemove resize onDrag onDrop",(function(t){t.stopPropagation()})),this.attr("excelimportuivisible",!0,"boolean")},r.QCELL.BasicQCELL.prototype._removeSheetPopup=function(){this.attr("exceluploaduiarea").remove(),this.attr("exceluploaduiarea",null,"jquery"),this.attr("excelimportuivisible",!1,"boolean"),r.QCELL._deleteInstance("excelupload-dataindex")},r.QCELL.BasicQCELL.prototype._wbToJsonSheetName=function(t,e,r){var a=[];return a=!0!==e?window.XLSX.utils.sheet_to_json(t.Sheets[r],{header:1}):window.XLSX.utils.sheet_to_formulae(t.Sheets[r],{header:1}),!0===e&&(a=this._convertJSON(a)),a},r.QCELL.BasicQCELL.prototype._process_wb=function(t,e,r,a,o,i){var s;void 0===i&&(i=!1),i&&t.SheetNames.length>1?(this._createSheetPopup(t,e,r,a,o),this._showSheetPopup(t,e,r,a,o)):(s=this._wbToJson(t,o),this._process_wb_sub(t,e,r,a,o,s))},r.QCELL.BasicQCELL.prototype._checkExcelIndex=function(t){for(var e=0,r=65,a=65,o="";e<255;){if(t===o+String.fromCharCode(r))return e;r++,++e%25==0&&(r=65,o=String.fromCharCode(a),a++)}return-1},r.QCELL.BasicQCELL.prototype._convertJSON=function(t){var e,a,o,i=[],s=0;try{for(e=0;e<t.length;e++){var l=t[e],n=l.indexOf("=");if(-1!==n){var c=l.slice(0,n),d=l.slice(n+1,l.length);for(d=r.util.replaceAll(d,"'",""),a=0;o=c.charAt(a),/[a-zA-Z]/.test(o);)a++;var h=Number(c.slice(a,c.length));if(!isNaN(h)){var _=this._checkExcelIndex(c.slice(0,a));if(-1!==_){if(s!==h)for(;s!==h;)i.push([]),s++;i[s-1][_]=d}}}}for(e=0;e<i.length;e++)for(var u=0;u<i[e].length;u++)void 0===i[e][u]&&(i[e][u]="")}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._convertJSON",t.message),i=[]}return i},r.QCELL.BasicQCELL.prototype._wbToJson=function(t,e){var r=[];return r=!0!==e?window.XLSX.utils.sheet_to_json(t.Sheets[t.SheetNames[0]],{header:1}):window.XLSX.utils.sheet_to_formulae(t.Sheets[t.SheetNames[0]],{header:1}),!0===e&&(r=this._convertJSON(r)),r},r.QCELL.BasicQCELL.prototype._wbToCsv=function(t){var e=[];return t.SheetNames.forEach((function(r){var a=window.XLSX.utils.sheet_to_csv(t.Sheets[r]);a.length&&e.push(a)})),e.join("\n")},r.QCELL.BasicQCELL.prototype._splitAttrString=function(t){var e=[],a=function(t){this.value=t};a.prototype.toString=function(){return this.value},a.prototype.charAt=String.prototype.charAt;var o=new a(t),i=function(t,e){for(var a="",o="";o!==t&&""!==e.value;)/'|"/.test(o)?a=r.$.trim(a)+i(o,e):/\{/.test(o)?a=r.$.trim(a)+i("}",e):/\[/.test(o)?a=r.$.trim(a)+i("]",e):a+=o,o=e.charAt(0),e.value=e.value.slice(1);return r.$.trim(a)};do{var s=i(",",o);e.push(s)}while(""!==o.value);return e},r.QCELL.BasicQCELL.prototype._beforeFocusCell=function(){},r.QCELL.BasicQCELL.prototype._clearFocusAllCSS=function(){for(var t=this.attr("hsinfo"),e=this.attr("headerrows");e<=this.getRows();e++)for(var r=this.attr("headercols");r<=t.nRightCol;r++){var a=this._getCellDOM(e,r);null!==a&&this._removeFocusStyleClass(a)}},r.QCELL.BasicQCELL.prototype._adjustScrollPos=function(){var t=document.getElementById("colheader-"+this.getID()),e=document.getElementById("viewport-"+this.getID()),r=e.scrollLeft,a=e.scrollTop,o=document.getElementById("rowheader-"+this.getID());r!==t.scrollLeft&&(t.scrollLeft=r),t.scrollLeft=0,e.scrollLeft=0,a!==o.scrollTop&&(o.scrollTop=a),o.scrollTop=0,e.scrollTop=0},r.QCELL.BasicQCELL.prototype._scrollToFocusCell=function(t,e){try{var a,o,i,s=this.attr("rows"),l=this.attr("cols"),n=this.attr("headercols"),c=this.attr("headerrows"),d=this.attr("frozencols"),h=this.attr("frozenrows"),_=this.attr("frozenbottomrows"),u=this._getTopRowOfScreen(),p=this._getBottomRowOfScreen(),C=this._getLeftColOfScreen(),g=this._getRightColOfScreen(),f=this.attr("layoutsize").viewport.offsetWidth,L=this._getSumOfColWidth(n,n+d-1),m=!0;if(this._adjustScrollPos(),this._beforeFocusCell(),t<u){if(h>0?t>=c+h&&this._scrollTop(t):this._scrollTop(t),e<C)d>0?e>=n+d&&this._scrollLeft(e):this._scrollLeft(e);else if(e>g){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}else if(e===C)this._scrollLeft(e);else if(e===g){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}else if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(o=e;o<=g;o++)if(this._cellValue(t,e)!==this._cellValue(t,o)){m=!1;break}if(m){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}}}else if(t>p){if(_>0?t<s-_&&this._scrollTop(t-(p-u)+1):this._scrollTop(t-(p-u)+1),e<C)d>0?e>=n+d&&this._scrollLeft(e):this._scrollLeft(e);else if(e>g){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}else if(e===C)this._scrollLeft(e);else if(e===g){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}else if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(o=e;o<=g;o++)if(this._cellValue(t,e)!==this._cellValue(t,o)){m=!1;break}if(m){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}}}else if(t===p?(!0!==this.attr("useall")&&!0!==this.attr("usetreeall")||this.getIdx("row","click")===this.getIdx("row","cursor")&&this.getIdx("row","click")===this.getIdx("row","focus")&&this.getIdx("col","click")===this.getIdx("col","cursor")&&this.getIdx("col","click")===this.getIdx("col","focus"))&&this._scrollTop(t-(p-u)+1):t===u&&(this.attr("useall")||this.attr("usetreeall"),this._scrollTop(t)),e<C)d>0?e>=n+d&&this._scrollLeft(e):this._scrollLeft(e);else if(e>g){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}else if(e===C)this._adjustCol();else if(e===g){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}else if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(o=e;o<=g;o++)if(this._cellValue(t,e)!==this._cellValue(t,o)){m=!1;break}if(m){if(a=L,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(o=e+1;o<l&&this._cellValue(t,e)===this._cellValue(t,o);o++)e=o;for(o=e;o>=n;o--)if((a+=this._getColWidth(o))>=f){i=o;break}this._scrollLeft(i+1)}}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._scrollToFocusCell",t.message)}},r.QCELL.BasicQCELL.prototype._leftKey=function(t,e){try{var a,o,i,s=this._idx("row","focus","current"),l=this._idx("col","focus","current"),n=this._getSelectedRow(),c=this._getSelectedCol(),d=this.attr("cols"),h=this.attr("headercols");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(c>h&&c<d){if(--c,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":i=this._findNextCell(s,l,"left");break;case"cols":i=this._findNextCell(s,c,"left");break;default:i=this._findNextCell(n,c,"left")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":l>=this._getSelectedCol()?(a=r._.range(c,l+1).reverse(),this._selectCols(a)):(o=r._.range(l,this._getSelectedCol()+1),a=r._.range(l,c+1),this._deselectCols(o),this._selectCols(a));break;default:l>=this._getSelectedCol()||this._deselectCellRange(s,l,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(s,l,n,c)}this._scrollToFocusCell(n,c)}}else if(!t&&e){if(l>h&&l<d){switch(l=h,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"left")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(!0),this._selectCol(l);break;default:this._clearSelection(!0),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}}else if(t&&e&&c>h&&c<d){if(c=h,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":i=this._findNextCell(s,l,"left");break;case"cols":i=this._findNextCell(s,c,"left");break;default:i=this._findNextCell(n,c,"left")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":l>=this._getSelectedCol()?(a=r._.range(c,this._getSelectedCol()).reverse(),this._selectCols(a)):(o=r._.range(l,this._getSelectedCol()+1),a=r._.range(c,l+1).reverse(),this._deselectCols(o),this._selectCols(a));break;default:l>=this._getSelectedCol()?this._selectCellRange(s,this._getSelectedCol()-1,n,c):(this._deselectCellRange(s,l,n,this._getSelectedCol()),this._selectCellRange(s,l,n,c))}this._scrollToFocusCell(n,c)}}else if(l>h&&l<d){switch(--l,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"left")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(),this._selectCol(l);break;case"group":this._clearSelection(),this._selectGroup(s,l);break;default:this._clearSelection(),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._leftKey",t.message)}},r.QCELL.BasicQCELL.prototype._rightKey=function(t,e){try{var a,o,i,s=this._idx("row","focus","current"),l=this._idx("col","focus","current"),n=this._getSelectedRow(),c=this._getSelectedCol(),d=this.attr("cols"),h=this.attr("headercols");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(c>=h&&c<d-1){if(++c,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":i=this._findNextCell(s,l,"right");break;case"cols":i=this._findNextCell(s,c,"right");break;default:i=this._findNextCell(n,c,"right")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":l>this._getSelectedCol()?(o=r._.range(this._getSelectedCol(),l+1),a=r._.range(c,l+1).reverse(),this._deselectCols(o),this._selectCols(a)):this._selectCol(c);break;default:l>this._getSelectedCol()?(this._deselectCellRange(s,l,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(s,l,n,c)):s===this._getSelectedRow()?this._selectCell(n,c):this._selectCellRange(s,c,n,c)}this._scrollToFocusCell(n,c)}}else if(!t&&e){if(l>=h&&l<d-1){switch(l=d-1,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"right")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(),this._selectCol(l);break;default:this._clearSelection(!0),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}}else if(t&&e&&c>=h&&c<d-1){if(c=d-1,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":i=this._findNextCell(s,l,"right");break;case"cols":i=this._findNextCell(s,c,"right");break;default:i=this._findNextCell(n,c,"right")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":l>=this._getSelectedCol()?(o=r._.range(this._getSelectedCol(),l+1),a=r._.range(l,c+1),this._deselectCols(o),this._selectCols(a)):(a=r._.range(l,c+1),this._selectCols(a));break;default:l>this._getSelectedCol()?(this._deselectCellRange(s,l,n,this._getSelectedCol()),this._selectCellRange(s,l,n,c)):this._selectCellRange(s,this._getSelectedCol()+1,n,c)}this._scrollToFocusCell(n,c)}}else if(l>=h&&l<d-1){switch(++l,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"right")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(!0),this._selectCol(l);break;case"group":this._clearSelection(!0),this._selectGroup(s,l);break;default:this._clearSelection(!0),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._rightKey",t.message)}},r.QCELL.BasicQCELL.prototype._tabKey=function(t,e){try{var a,o,i,s,l=this._idx("row","focus","current"),n=this._idx("col","focus","current"),c=this.attr("cols"),d=this.attr("headercols"),h=this.attr("rows"),_=this.attr("headerrows"),u=!1;if(this._onScrollHideEditCellsDOM(),t){if(n>d&&n<c)--n,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(l=(a=this._findNextCell(l,n,"left")).row,n=a.col);else if(n=c-1,--l<_)return!1;if(o=this._getColType(n),u=!1,"static"===o||"html"===o||"image"===o){for(i=l;i>=_;i--){for(s=n;s>=d;s--)if(--n,"static"!==(o=this._getColType(n))&&"html"!==o&&"image"!==o){u=!0;break}if(!0===u)break}if(!1===u)return!1}}else{if(n>=d&&n<c-1)++n,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(l=(a=this._findNextCell(l,n,"right")).row,n=a.col);else if(n=d,h===++l)return!1;if(o=this._getColType(n),u=!1,"static"===o||"html"===o||"image"===o){for(i=l;i<h;i++){for(s=n;s<c-1;s++)if(++n,"static"!==(o=this._getColType(n))&&"html"!==o&&"image"!==o){u=!0;break}if(!0===u)break}if(!1===u)return!1}}switch(this._focusCell(l,n),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(l);break;case"col":case"cols":this._clearSelection(),this._selectCol(n);break;case"group":this._clearSelection(),this._selectGroup(l,n);break;default:this._clearSelection(),this._selectCell(l,n)}this._scrollToFocusCell(l,n)}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._rightKey",t.message)}return!0},r.QCELL.BasicQCELL.prototype._upKey=function(t,e){try{var a,o,i,s=this._idx("row","focus","current"),l=this._idx("col","focus","current"),n=this._getSelectedRow(),c=this._getSelectedCol(),d=this.attr("rows"),h=this.attr("headerrows");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(n>h&&n<d){if(--n,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":i=this._findNextCell(s,l,"up");break;case"rows":i=this._findNextCell(n,l,"up");break;default:i=this._findNextCell(n,c,"up")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":s>=this._getSelectedRow()?(a=r._.range(n,s+1).reverse(),this._selectRows(a)):(o=r._.range(s,this._getSelectedRow()+1),a=r._.range(s,n+1),this._deselectRows(o),this._selectRows(a));break;default:s>=this._getSelectedRow()||this._deselectCellRange(s,l,this._getSelectedRow(),c),this._selectCellRange(s,l,n,c)}this._scrollToFocusCell(n,c)}}else if(!t&&e){if(s>h&&s<d){switch(s=h,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"up")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(),this._selectCol(l);break;default:this._clearSelection(),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}}else if(t&&e&&n>h&&n<d){if(n=h,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":i=this._findNextCell(s,l,"up");break;case"rows":i=this._findNextCell(n,l,"up");break;default:i=this._findNextCell(n,c,"up")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":s>=this._getSelectedRow()?(a=r._.range(n,this._getSelectedRow()).reverse(),this._selectRows(a)):(o=r._.range(s,this._getSelectedRow()+1),a=r._.range(n,s+1).reverse(),this._deselectRows(o),this._selectRows(a));break;default:s>=this._getSelectedRow()?this._selectCellRange(this._getSelectedRow()-1,l,n,c):(this._deselectCellRange(s,l,this._getSelectedRow(),c),this._selectCellRange(s,l,n,c))}this._scrollToFocusCell(n,c)}}else if(s>h&&s<d){switch(--s,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"up")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(),this._selectCol(l);break;case"group":this._clearSelection(),this._selectGroup(s,l);break;default:this._clearSelection(),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._upKey",t.message)}},r.QCELL.BasicQCELL.prototype._downKey=function(t,e){try{var a,o,i,s=this._idx("row","focus","current"),l=this._idx("col","focus","current"),n=this._getSelectedRow(),c=this._getSelectedCol(),d=this.attr("rows"),h=this.attr("headerrows");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(n>=h&&n<d-1){if(++n,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":i=this._findNextCell(s,l,"down");break;case"rows":i=this._findNextCell(n,l,"down");break;default:i=this._findNextCell(n,c,"down")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":s>this._getSelectedRow()?(o=r._.range(this._getSelectedRow(),s+1),a=r._.range(n,s+1).reverse(),this._deselectRows(o),this._selectRows(a)):this._selectRow(n);break;default:s<=this._getSelectedRow()?this._selectCellRange(n,l,n,c):(this._deselectCellRange(s,l,this._getSelectedRow(),c),this._selectCellRange(s,l,n,c))}this._scrollToFocusCell(n,c)}}else if(!t&&e){if(s>=h&&s<d-1){switch(s=d-1,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"down")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(),this._selectCol(l);break;default:this._clearSelection(),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}}else if(t&&e&&n>=h&&n<d-1){if(n=d-1,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":i=this._findNextCell(s,l,"down");break;case"rows":i=this._findNextCell(n,l,"down");break;default:i=this._findNextCell(n,c,"down")}n=i.row,c=i.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":s<=this._getSelectedRow()?(a=r._.range(this._getSelectedRow(),n+1),this._selectRows(a)):(o=r._.range(this._getSelectedRow(),s+1),a=r._.range(s,n+1),this._deselectRows(o),this._selectRows(a));break;default:s<=this._getSelectedRow()?this._selectCellRange(this._getSelectedRow()+1,l,n,c):(this._deselectCellRange(s,l,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(s,l,n,c))}this._scrollToFocusCell(n,c)}}else if(s>=h&&s<d-1){switch(++s,!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(i=this._findNextCell(s,l,"down")).row,l=i.col),this._focusCell(s,l),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(),this._selectCol(l);break;case"group":this._clearSelection(),this._selectGroup(s,l);break;default:this._clearSelection(),this._selectCell(s,l)}this._scrollToFocusCell(s,l)}else{var _=this;setTimeout((function(){_._resizeHScrollbar()}))}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._downKey",t.message)}},r.QCELL.BasicQCELL.prototype._pageUpKey=function(t,e){try{var a=this._idx("row","focus","current"),o=this._idx("col","focus","current"),i=this._getSelectedRow(),s=this._getSelectedCol(),l=this._getTopRowOfScreen(),n=this._getBottomRowOfScreen();if(t||e){if(t&&!e&&i>this.attr("headerrows")&&i<this.attr("rows")){switch(this.attr("frozenrows")>0&&i<=this.attr("frozenrows")+this.attr("headerrows")-1?l=i=this.attr("headerrows"):i>=l&&i<=n?(i-=n-l,l-=n-l):(i=l,l-=n-l),i<=this.attr("headerrows")&&(l=i=this.attr("headerrows")),this.attr("selectmode")){case"rows":var c,d;a<this._getSelectedRow()?(c=r._.range(a,this._getSelectedRow()+1),d=a<i?r._.range(a,i+1):r._.range(i,a+1).reverse()):(c=r._.range(this._getSelectedRow(),a+1),d=r._.range(i,a+1).reverse()),this._deselectRows(c),this._selectRows(d);break;case"row":case"col":case"cols":case"cell":return!1;default:this._deselectCellRange(a,o,this._getSelectedRow(),s),this._selectCellRange(a,o,i,s)}this._scrollTop(l)}}else if(a>this.attr("headerrows")&&a<this.attr("rows")){if(this.attr("frozenrows")>0&&a<=this.attr("frozenrows")+this.attr("headerrows")-1)return!1;if(a>=l&&a<=n?(a-=n-l,l-=n-l):(a=l-(n-l),l-=n-l),a<=this.attr("headerrows"))return!1;switch(this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;case"group":this._clearSelection();var h=this;setTimeout((function(){h._selectGroup(a,o)}),100);break;default:this._clearSelection(),this._selectCell(a,o)}this._scrollTop(l)}}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._pageUpKey",t.message),!1}},r.QCELL.BasicQCELL.prototype._pageDownKey=function(t,e){try{var a=this._idx("row","focus","current"),o=this._idx("col","focus","current"),i=this._getSelectedRow(),s=this._getSelectedCol(),l=this.attr("vsinfo"),n=this._getTopRowOfScreen(),c=this._getBottomRowOfScreen();if(t||e){if(t&&!e&&i>=this.attr("headerrows")&&i<this.attr("rows")-1){switch(i>=this.attr("rows")-this.attr("frozenbottomrows")?n=i=this.attr("rows")-1:i<=this.attr("frozenrows")+this.attr("headerrows")-1?n=i=l.nStartRow+(c-n):i<n||i>c?n=i+=c-n:(i+=c-n,n+=c-n),i>this.attr("rows")&&(n=i=this.attr("rows")-1),this.attr("selectmode")){case"rows":var d,h;a>this._getSelectedRow()?(d=r._.range(this._getSelectedRow(),a+1),h=a>i?r._.range(i,a+1).reverse():r._.range(a,i+1)):(d=r._.range(a,this._getSelectedRow()+1),h=r._.range(a,i+1)),this._deselectRows(d),this._selectRows(h);break;case"row":case"col":case"cols":case"cell":return!1;default:this._deselectCellRange(a,o,this._getSelectedRow(),s),this._selectCellRange(a,o,i,s)}this._scrollTop(n)}}else if(a>=this.attr("headerrows")&&a<this.attr("rows")-1){if(a>=this.attr("rows")-this.attr("frozenbottomrows"))return!1;if(a>=n&&a<=c?a+=c-n:a=c,a>=this.attr("rows"))return!1;switch(this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;case"group":this._clearSelection();var _=this;setTimeout((function(){_._selectGroup(a,o)}),100);break;default:this._clearSelection(),this._selectCell(a,o)}n+=c-n,this._scrollTop(n)}}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._pageDownKey",t.message),!1}},r.QCELL.BasicQCELL.prototype._createMergeInfo=function(){return this._createHeaderMergeInfo()&&this._createDataMergeInfo()},r.QCELL.BasicQCELL.prototype._createHeaderMergeInfo=function(){var t=this.attr("merge"),e=this.attr("headerrows"),a=this.attr("headercols"),o=this.attr("headertext"),i=this.attr("frozencols");if("none"!==t.header){var s=this.attr("merge_header_info");r._.isUndefined(s)||r._.isNull(s)||s.RT_clear(),s=[];var l,n,c,d,h=[];if(i){for(l=0;l<e;l++){for(c=[],n=0,n=0;n<a;n++)c.push("");for(n=a;n<i+a;n++)d=void 0===o[n][l]?"":o[n][l],c.push(d);h.push(c)}for(this._merge(t.header,a,s,h,0,a),h=[],l=0;l<e;l++){for(c=[],n=0,n=0;n<a;n++)c.push("");for(n=i+a;n<o.length;n++)d=void 0===o[n][l]?"":o[n][l],c.push(d);h.push(c)}this._merge(t.header,a,s,h,0,i+a)}else{for(l=0;l<e;l++){for(c=[],n=0,n=0;n<a;n++)c.push("");for(n=a;n<o.length;n++)d=void 0===o[n][l]?"":o[n][l],c.push(d);h.push(c)}this._merge(t.header,a,s,h,0,a)}this.attr("merge_header_info",s,"array")}return!0},r.QCELL.BasicQCELL.prototype._isMergeCell=function(t,e){var a=t<this.attr("headerrows")?this.attr("merge_header_info"):this.attr("merge_data_info");return!!r._.isArray(a)&&this._findMergeInfo(t,e,a)},r.QCELL.BasicQCELL.prototype._isMasterCell=function(t,e){var r=this._getMergeInfo(t,e);return null!==r&&r.nStartRow===t&&r.nStartCol===e},r.QCELL.BasicQCELL.prototype._isLastHeaderRowMasterCell=function(t,e){var r=this._getMergeInfo(t,e);return null!==r&&r.nStartRow===t&&r.nStartCol===e&&r.nEndRow===this.attr("headerrows")-1},r.QCELL.BasicQCELL.prototype._merge=function(t,e,r,a,o,i){"row"===t?this._mergeRow(0,e,r,a,o,i):"col"===t?this._mergeCol(0,e,r,a,o,i):"rowandcol"===t?this._mergeRowAndCol(0,e,r,a,o,i):"colandrow"===t?this._mergeColAndRow(0,e,r,a,o,i):"group"===t?this._mergeGroup(0,e,r,a,o,i):"groupandrow"===t&&this._mergeGroupAndRow(0,e,r,a,o,i)},r.QCELL.BasicQCELL.prototype._makeMergeText=function(t,e,r,a,o){var i=this.attr("headerrows"),s=this.attr("headercols"),l=this.attr("currentdata");if(l.length>0)for(var n=t;n<r;n++){var c=[],d=0;if(void 0===l[n-i])break;for(d=0;d<s;d++)c.push("");for(d=e;d<=a;d++){var h=this._getKeyOfCol(d),_=void 0===l[n-i][h]?"":l[n-i][h];c.push(_)}o.push(c)}},r.QCELL.BasicQCELL.prototype._createDataMergeInfo=function(){var t=this.attr("currentdata"),e=this.attr("vsinfo"),a=this.attr("hsinfo"),o=this.attr("headerrows"),i=this.attr("headercols"),s=this.attr("frozencols"),l=this.attr("frozenrows"),n=this.attr("frozenbottomrows"),c=this.attr("merge");if("group"===c.data||"groupandrow"===c.data)this._createDataGroupMergeInfo();else if("none"!==c.data){var d=this.attr("merge_data_info");r._.isUndefined(d)||r._.isNull(d)||d.RT_clear(),d=[];var h=[],_=e.nTopRow,u=a.nLeftCol;if(s?(this._createFCDataMergeInfo(d,o,o+l-1),this._createFCDataMergeInfo(d,e.nTopRow,e.nBottomRow)):u=i,l&&(l&&e.bVScroll?this._createFRDataMergeInfo(d):_=o),_<0)return!0;this._makeMergeText(_,u,e.nBottomRow+1,a.nRightCol,h),this._merge(c.data,i,d,h,_,u),n&&(s&&e.bVScroll&&this._createFCDataMergeInfo(d,t.length-n+o,t.length+o-1),this._createFRBDataMergeInfo(d,u)),this.attr("merge_data_info",d,"array")}return!0},r.QCELL.BasicQCELL.prototype._createDataGroupMergeInfo=function(){var t=this.attr("currentdata"),e=this.attr("vsinfo"),a=this.attr("hsinfo"),o=this.attr("headerrows"),i=this.attr("headercols"),s=this.attr("frozenrows"),l=this.attr("frozenbottomrows"),n=this.attr("merge"),c=this.attr("merge_data_info");r._.isUndefined(c)||r._.isNull(c)||c.RT_clear(),c=[];var d=[],h=e.nTopRow;if(s&&(this._makeMergeText(o,i,o+s,a.nRightCol,d),this._merge(n.data,i,c,d,o,i),d.RT_clear()),this._makeMergeText(h,i,e.nBottomRow+1,a.nRightCol,d),this._merge(n.data,i,c,d,h,i),d.RT_clear(),l){var _=t.length-l+o,u=t.length+o;this._makeMergeText(_,i,u,a.nRightCol,d),this._merge(n.data,i,c,d,_,i)}this.attr("merge_data_info",c,"array")},r.QCELL.BasicQCELL.prototype._createFRDataMergeInfo=function(t){var e=this.attr("hsinfo"),r=this.attr("headerrows"),a=this.attr("headercols"),o=this.attr("frozenrows"),i=this.attr("merge");if("none"!==i.data){var s=[],l=e.nLeftCol;this._makeMergeText(r,e.nLeftCol,o+r,e.nRightCol,s),this._merge(i.data,a,t,s,r,l)}},r.QCELL.BasicQCELL.prototype._createFRBDataMergeInfo=function(t,e){var r=this.attr("currentdata"),a=this.attr("hsinfo"),o=this.attr("headerrows"),i=this.attr("headercols"),s=this.attr("frozenbottomrows"),l=this.attr("merge");if("none"!==l.data){var n=[];this._makeMergeText(r.length-s+o,e,r.length+o,a.nRightCol,n),this._merge(l.data,i,t,n,r.length-s+o,e)}},r.QCELL.BasicQCELL.prototype._createFCDataMergeInfo=function(t,e,r){var a=this.attr("headercols"),o=this.attr("frozencols"),i=this.attr("merge");if("none"!==i.data){var s=[];this._makeMergeText(e,a,r+1,o+a-1,s),this._merge(i.data,a,t,s,e,a)}},r.QCELL.BasicQCELL.prototype._makeMergeInfo=function(t,e,r,a,o){var i={};return i.nStartRow=t,i.nStartCol=e,i.nEndRow=r,i.nEndCol=a,i.strMergeData=o,i},r.QCELL.BasicQCELL.prototype._findMergeInfo=function(t,e,r){for(var a=0;a<r.length;a++){var o=r[a];if(o.nStartRow<=t&&o.nEndRow>=t&&o.nStartCol<=e&&o.nEndCol>=e)return!0}return!1},r.QCELL.BasicQCELL.prototype._getMergeInfo=function(t,e){var a=t<this.attr("headerrows")?this.attr("merge_header_info"):this.attr("merge_data_info"),o=null;return r._.isArray(a)&&r.$.each(a,(function(r,a){if(a.nStartRow<=t&&a.nEndRow>=t&&a.nStartCol<=e&&a.nEndCol>=e)return o=a,!1})),o},r.QCELL.BasicQCELL.prototype._mergeCol=function(t,e,a,o,i,s){var l,n=o.length?o[0].length:0,c=null,d=s;for(l=e;l<n;l++){if(this._getColDataMergeCol(d)){for(var h=void 0===o[t][l]?"":o[t][l],_=0,u=t+1;u<o.length;u++)h!==o[u][l]?(_&&(c=this._makeMergeInfo(u-++_+t+i,d,u-1+i,d,h),_=0,a.push(c)),h=o[u][l]):_++;_&&(c=this._makeMergeInfo(u-++_+t+i,d,u-1+i,d,h),a.push(c))}d++}for(d=s,l=e;l<n;l++){if(void 0!==this._getColDataMergeRef(d)){var p=this._getColsOfKey(this._getColDataMergeRef(d))[0];if(void 0!==p){for(var C=[],g=0;g<a.length;g++)if(a[g].nStartCol===p){var f=r._.clone(a[g]);f.nStartCol=f.nEndCol=d,C.push(f)}for(var L=0;L<C.length;L++){for(var m=!0,E=0;E<a.length;E++)if(C[L].nStartCol===a[E].nStartCol&&C[L].nStartRow===a[E].nStartRow&&C[L].nEndRow===a[E].nEndRow){m=!1;break}m&&a.push(C[L])}}}d++}},r.QCELL.BasicQCELL.prototype._mergeColAndRow=function(t,e,r,a,o,i){for(var s=i-e,l=a.length?a[0].length:0,n=null,c=e;c<l;c++){for(var d=void 0===a[t][c]?"":a[t][c],h=0,_=t+1;_<a.length;_++)d!==a[_][c]?(h?(this._findMergeInfo(_-++h+t+o,c+s,r)||(n=this._makeMergeInfo(_-h+t+o,c+s,_-1+o,c+s,d),this._mergeColAndRowSub(n,a,o,s),r.push(n)),h=0):this._findMergeInfo(_-1+o,c+s,r)?h=0:(n=this._makeMergeInfo(_-1+o,c+s,_-1+o,c+s,d),this._mergeColAndRowSub(n,a,o,s),n.nStartRow===n.nEndRow&&n.nStartCol===n.nEndCol?n=null:r.push(n)),d=a[_][c]):h++;h?this._findMergeInfo(_-++h+t+o,c+s,r)?this._findMergeInfo(_+o-1,c+s,r)||(n=this._makeMergeInfo(_+o-1,c+s,_+o-1,c+s,d),this._mergeColAndRowSub(n,a,o,s),n.nStartRow===n.nEndRow&&n.nStartCol===n.nEndCol?n=null:r.push(n)):(n=this._makeMergeInfo(_-h+t+o,c+s,_-1+o,c+s,d),this._mergeColAndRowSub(n,a,o,s),r.push(n)):this._findMergeInfo(_-1+o,c+s,r)||(n=this._makeMergeInfo(_-1+o,c+s,_-1+o,c+s,d),this._mergeColAndRowSub(n,a,o,s),n.nStartRow===n.nEndRow&&n.nStartCol===n.nEndCol?n=null:r.push(n))}},r.QCELL.BasicQCELL.prototype._mergeColAndRowSub=function(t,e,r,a){for(var o=e.length?e[0].length:0,i=t.nEndCol+1-a;i<o;i++){for(var s=t.nStartRow-r;s<=t.nEndRow-r;s++)if(e[s][i]!==t.strMergeData)return;if(t.nStartRow-1-r>=0&&e[t.nStartRow-1-r][i]===t.strMergeData)return;if(t.nEndRow+1<e.length&&e[t.nEndRow+1-r][i]===t.strMergeData)return;t.nEndCol++}},r.QCELL.BasicQCELL.prototype._mergeRowAndCol=function(t,e,r,a,o,i){for(var s=i-e,l=t;l<a.length;l++){var n=a[l];if(!n.length)break;var c=void 0===n[e]?"":n[e],d=0,h=e+1,_=null;for(h=e+1;h<n.length;h++)c!==n[h]?(d?(this._findMergeInfo(l+o,h-++d+s,r)||(_=this._makeMergeInfo(l+o,h-d+s,l+o,h-1+s,c),this._mergeRowAndColSub(_,a,o,s),r.push(_)),d=0):this._findMergeInfo(l+o,h-1+s,r)||(_=this._makeMergeInfo(l+o,h-1+s,l+o,h-1+s,c),this._mergeRowAndColSub(_,a,o,s),_.nStartRow===_.nEndRow&&_.nStartCol===_.nEndCol?_=null:r.push(_)),c=a[l][h]):d++;d?this._findMergeInfo(l+o,h-++d+s,r)||(_=this._makeMergeInfo(l+o,h-d+s,l+o,h+s-1,c),this._mergeRowAndColSub(_,a,o,s),r.push(_)):this._findMergeInfo(l+o,h-1+s,r)||(_=this._makeMergeInfo(l+o,h-1+s,l+o,h-1+s,c),this._mergeRowAndColSub(_,a,o,s),_.nStartRow===_.nEndRow&&_.nStartCol===_.nEndCol?_=null:r.push(_))}},r.QCELL.BasicQCELL.prototype._mergeRowAndColSub=function(t,e,a,o){for(var i=t.nEndRow+1-a;i<e.length;i++){for(var s=t.nStartCol-o,l=s;l<=t.nEndCol-o;l++){var n=e[i][l];if(!r._.isUndefined(n)&&n!==t.strMergeData)return}if(e[i][s-1]===t.strMergeData||e[i][t.nEndCol+1-o]===t.strMergeData)return;t.nEndRow++}},r.QCELL.BasicQCELL.prototype._mergeRow=function(t,e,r,a,o,i){for(var s=i-e,l=t;l<a.length;l++){var n=a[l],c=null;if(!n.length)break;for(var d=void 0===n[e]?"":n[e],h=0,_=e+1;_<n.length;_++)d!==n[_]?(h&&(c=this._makeMergeInfo(l+o,_+s-++h,l+o,_-1+s,d),h=0,r.push(c)),d=a[l][_]):h++;h&&(c=this._makeMergeInfo(l+o,_-++h+s,l+o,_-1+s,d),d=n[_],h=0,r.push(c))}},r.QCELL.BasicQCELL.prototype._mergeGroup=function(t,e,r,a,o,i){this._mergeGroupSub(t,e,r,a,o,i,a.length,e)},r.QCELL.BasicQCELL.prototype._mergeGroupSub=function(t,e,r,a,o,i,s,l){if(e!==(a.length?a[0].length:0)&&0!==a.length&&this._getColDataMergeCol(e)){var n=t,c=void 0===a[t][e]?"":a[t][e],d=0,h=null;for(n=t+1;n<s;n++){var _=a[n];c!==_[e]?(d&&(h=this._makeMergeInfo(n+o-++d,e+i-l,n+o-1,e+i-l,c),d=0,r.push(h),this._mergeGroupSub(h.nStartRow-o,e+1,r,a,o,i,n,l)),c=_[e]):d++}d&&(h=this._makeMergeInfo(n+o-++d,e+i-l,n+o-1,e+i-l,c),d=0,r.push(h),this._mergeGroupSub(h.nStartRow-o,e+1,r,a,o,i,n,l))}},r.QCELL.BasicQCELL.prototype._updateMergeHeader=function(){var t=this.attr("merge_header_info");return this._updateMergeSub(t,!0),!0},r.QCELL.BasicQCELL.prototype._updateMergeData=function(){var t=this.attr("merge_data_info");return this._updateMergeSub(t,!1),!0},r.QCELL.BasicQCELL.prototype._updateMerge=function(){this._updateMergeHeader(),this._updateMergeData();var t=this;return setTimeout((function(){t._trigger("redrawed")}),0),!0},r.QCELL.BasicQCELL.prototype._updateMergeSub=function(t,e){if(!r._.isUndefined(t)&&!r._.isNull(t)){var a=this;r._.each(t,(function(t){for(var o=null,i=0,s=0,l=0,n=0,c=[],d=0,h=0,_=null,u=null,p=null,C=null,g="datepicker"===a._getColType(t.nStartCol),f=t.nStartRow;f<=t.nEndRow;f++){for(var L=t.nStartCol;L<=t.nEndCol;L++){var m=a._getCellDOM(f,L);if(void 0!==m&&!r._.isNull(m)&&r._.isNull(o)&&(o=m,l=m.offsetWidth,n=m.offsetHeight),m&&(d+=m.offsetWidth,h=m.offsetHeight,m!==o&&(c.push(m),m.style.display="none")),e&&m&&f!==t.nStartRow&&f===t.nEndRow&&L===t.nStartCol){var E,b=0;for(b=0;b<m.childNodes.length;b++)E=m.childNodes[b],r.$(E).hasClass("rt-qc-sortarea")?(u=E.cloneNode(!0),o.appendChild(u)):r.$(E).hasClass("rt-qc-filterarea")?(p=E.cloneNode(!0),o.appendChild(p)):r.$(E).hasClass("rt-qc-colheader-checkbox")?(C=E.cloneNode(!0),o.textContent="",o.appendChild(C)):r.$(E).hasClass("rt-qc-removearea")&&(_=E.cloneNode(!0),o.appendChild(_))}}d&&(i=d),h&&(s+=h),d=0}if(o){if(t.masterCell=o,t.orginWidth=l,t.orginHeight=n,t.arCells=c,t.cloneSort=u,u||p||C||_){var y=a._getQCellCol(t.nStartCol);u&&(u.style.top=s-(s/2+5)+"px",t.sortCol=t.nStartCol,y.attr("cloneSort_master",r.$(o),"jquery"),y.attr("cloneSort_sort",r.$(u),"jquery"),y.attr("cloneSort_master_height",s,"number")),p&&(y.attr("colfilterarea",r.$(p),"jquery"),r.$(p).on("mousedown",a.attr("eventparam"),r.QCELL.BasicQCELL._createFilterAreaSub)),C&&(y.attr("headerelement",o.childNodes[0],"element"),r.$(y.attr("headerelement")).on("click",{target:y.attr("colelement")},r.st.eventProcess)),_&&(_.style.top=s-(s/2+7)+"px")}o.style.width=i+"px",o.style.height=s+"px",o.setAttribute("data-endcol",t.nEndCol-t.nStartCol+1),!0===g&&!1===e&&(o.children[0].style.height=s+"px",o.children[0].children[0].style.height=s+"px"),a._getColWordwrap(t.nStartCol)?o.style.whiteSpace="pre-wrap":(e?(o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center"):o.style.lineHeight=s-2+"px",o.style.whiteSpace="nowrap")}}))}},r.QCELL.BasicQCELL.prototype._clearMergeHeader=function(){var t=this.attr("merge_header_info");this._clearMergeSub(t,!0)},r.QCELL.BasicQCELL.prototype._clearMergeData=function(){var t=this.attr("merge_data_info");this._clearMergeSub(t,!1)},r.QCELL.BasicQCELL.prototype._clearMerge=function(){this._clearMergeHeader(),this._clearMergeData()},r.QCELL.BasicQCELL.prototype._clearMergeSub=function(t,e){if(!r._.isUndefined(t)&&!r._.isNull(t)){var a=this;r._.each(t,(function(t){var o=t.arCells;if(o){for(var i=0;i<o.length;i++)o[i].style.display="";o.RT_clear()}if(!r._.isUndefined(t.masterCell)&&!r._.isNull(t.masterCell)){if(t.masterCell.style.width=t.orginWidth+"px",t.masterCell.style.height=t.orginHeight+"px",a._getColWordwrap(t.nStartCol)?t.masterCell.style.whiteSpace="pre-wrap":e?(t.masterCell.style.whiteSpace="nowrap",t.masterCell.style.display="flex",t.masterCell.style.justifyContent="center",t.masterCell.style.alignItems="center"):t.masterCell.style.lineHeight=t.orginHeight-2+"px",t.cloneSort){r.$(t.masterCell).find("."+r.$(t.cloneSort).attr("class")).remove();var s=a._getQCellCol(t.sortCol);s.attr("cloneSort_master",null,"jquery"),s.attr("cloneSort_sort",null,"jquery"),t.cloneSort=null}t.masterCell=null}}))}},r.QCELL.BasicQCELL.prototype._findNextCellRow=function(t,e,r){return"up"===r||"down"===r||"left"===r?this._findNextCellRowLeft(t,e):"right"===r?this._findNextCellRowRight(t,e):void 0},r.QCELL.BasicQCELL.prototype._findNextCellRowLeft=function(t,e){var r=this.attr("currentdata"),a=this.attr("headerrows"),o=this.attr("headercols"),i=t-a,s=r.length,l=!1,n=this.attr("frozencols");if(n&&e>=o+n&&(l=!0),!s)return{row:t,col:e};if(i<0)return{row:0+a,col:e};if(i>=s)return{row:s+a,col:e};for(var c=void 0===r[i][this._getKeyOfCol(e)]?"":r[i][this._getKeyOfCol(e)],d=e-1;;){if(d<0)return{row:t,col:0+o};if(c!==(void 0===r[i][this._getKeyOfCol(d)]?"":r[i][this._getKeyOfCol(d)]))return{row:t,col:d+1};if(n&&l&&d+o<=o+n)return{row:t,col:d+1};d--}},r.QCELL.BasicQCELL.prototype._findNextCellRowRight=function(t,e){var r=this.attr("currentdata"),a=this.attr("headerrows"),o=this.attr("headercols"),i=t-a,s=r.length,l=this.attr("cols"),n=!1,c=this.attr("frozencols");if(c&&e<o+c&&(n=!0),!s)return{row:t,col:e};if(i<0)return{row:0+a,col:e};if(i>=s)return{row:s+a,col:e};var d=void 0===r[i][this._getKeyOfCol(e)]?"":r[i][this._getKeyOfCol(e)];if((e-1>=0?void 0===r[i][this._getKeyOfCol(e-1)]?"":r[i][this._getKeyOfCol(e-1)]:d)===d&&e!==o+c){var h=0;for(h=e+1;h<l;h++){if((void 0===r[i][this._getKeyOfCol(h)]?"":r[i][this._getKeyOfCol(h)])!==d)return{row:t,col:h};if(c&&n&&h+o>=o+c)return{row:t,col:h}}for(h=e-1;h>=0;h--){if((void 0===r[i][this._getKeyOfCol(h)]?"":r[i][this._getKeyOfCol(h)])!==d)return{row:t,col:h+1};if(c&&n&&h+o>=o+c)return{row:t,col:o+c}}return{row:t,col:o}}return{row:t,col:e}},r.QCELL.BasicQCELL.prototype._findNextCellCol=function(t,e,r){return!1===this._getColDataMergeCol(e)?{row:t,col:e}:"up"===r||"right"===r||"left"===r?this._findNextCellColUp(t,e):"down"===r?this._findNextCellColDown(t,e):void 0},r.QCELL.BasicQCELL.prototype._findNextCellColUp=function(t,e){var r=this.attr("currentdata"),a=this.attr("headerrows"),o=t-a,i=r.length,s=!1,l=!1,n=this.attr("frozenrows"),c=this.attr("frozenbottomrows");if(n&&t>=a+n&&(s=!0),c&&t>=a+i-c&&(l=!0),!i)return{row:t,col:e};if(o<0)return{row:0+a,col:e};if(o>=i)return{row:i+a,col:e};for(var d=this._getKeyOfCol(e),h=void 0===r[o][d]?"":r[o][d],_=o-1;;){if(_<0)return{row:a,col:e};if(h!==(void 0===r[_][d]?"":r[_][d]))return{row:_+1+a,col:e};if(n&&s&&_+a<a+n)return{row:_+a+1,col:e};if(c&&l&&_+a<a+i-c)return{row:_+a+1,col:e};_--}},r.QCELL.BasicQCELL.prototype._findNextCellColDown=function(t,e){var r=this.attr("currentdata"),a=this.attr("headerrows"),o=t-a,i=r.length,s=!1,l=!1,n=this.attr("frozenrows"),c=this.attr("frozenbottomrows");if(n&&t<a+n&&(s=!0),c&&t<a+i-c&&(l=!0),!i)return{row:t,col:e};if(o<0)return{row:0+a,col:e};if(o>=i)return{row:i+a,col:e};var d=this._getKeyOfCol(e),h=void 0===r[o][d]?"":r[o][d];if((o-1>=0?void 0===r[o-1][d]?"":r[o-1][d]:h)===h&&t!==a+n){var _=0;for(_=o+1;_<i;_++){if((void 0===r[_][d]?"":r[_][d])!==h)return{row:_+a,col:e};if(n&&s&&_+a>=a+n)return{row:_+a,col:e};if(c&&l&&_+a>=a+i-c)return{row:_+a,col:e}}return _===i?this._findNextCellCol(t,e,"up"):{row:t-1,col:e}}},r.QCELL.BasicQCELL.prototype._findNextCellRowAndCol=function(t,e,r){return"up"===r||"down"===r||"left"===r?this._findNextCellRowAndColLeft(t,e,r):"right"===r?this._findNextCellRowAndColRight(t,e):void 0},r.QCELL.BasicQCELL.prototype._findNextCellRowAndColUpAndDown=function(t,e,r,a,o){var i=this.attr("currentdata"),s=this.attr("headerrows"),l=i.length,n=!1,c=!1,d=this.attr("frozenrows"),h=this.attr("frozenbottomrows"),_=t-s;d&&r>=s+d&&(n=!0),h&&r>=s+l-h&&(c=!0);var u=void 0===i[_][this._getKeyOfCol(e)]?"":i[_][this._getKeyOfCol(e)],p=0,C=0;if("down"===o){var g=this._getKeyOfCol(e);if((_-1>=0?void 0===i[_-1][g]?"":i[_-1][g]:u)===u&&r!==s+d){for(p=_+1;p<l;p++){if((void 0===i[p][g]?"":i[p][g])!==u)return{row:p+s,col:e};if(d&&!n&&p+s>=s+d)return{row:p+s,col:e};if(h&&!c&&p+s>=s+l-h)return{row:p+s,col:e}}return p===l?this._findNextCellRowAndCol(r,a,"up"):{row:r-1,col:e}}return{row:t,col:e}}for(p=_-1;p>=0;p--){var f=0;if(d&&n&&p+s<s+d)return{row:s+d,col:e};if(h&&c&&p+s<s+l-h)return{row:s+l-h,col:e};for(f=e;f<=a;f++)if(u!==(void 0===i[p][this._getKeyOfCol(f)]?"":i[p][this._getKeyOfCol(f)]))return{row:t-C,col:e};C++}return{row:s,col:e}},r.QCELL.BasicQCELL.prototype._findNextCellRowAndColLeft=function(t,e,r){var a=this.attr("currentdata"),o=this.attr("headerrows"),i=this.attr("headercols"),s=t-o,l=a.length,n=!1,c=this.attr("frozencols");if(c&&e>=i+c&&(n=!0),!l)return{row:t,col:e};if(s<0)return{row:0+o,col:e};if(s>=l)return{row:l+o,col:e};for(var d=void 0===a[s][this._getKeyOfCol(e)]?"":a[s][this._getKeyOfCol(e)],h=e-1;;){if(h<0)return this._findNextCellRowAndColUpAndDown(t,0+i,t,e,r);if(d!==(void 0===a[s][this._getKeyOfCol(h)]?"":a[s][this._getKeyOfCol(h)]))return this._findNextCellRowAndColUpAndDown(t,h+1,t,e,r);if(c&&n&&h+i<=i+c)return this._findNextCellRowAndColUpAndDown(t,h+1,t,e,r);h--}},r.QCELL.BasicQCELL.prototype._findNextCellRowAndColRight=function(t,e,r){var a=this.attr("currentdata"),o=this.attr("headerrows"),i=this.attr("headercols"),s=t-o,l=a.length,n=this.attr("cols"),c=!1,d=this.attr("frozencols");if(d&&e<i+d&&(c=!0),!l)return{row:t,col:e};if(s<0)return{row:0+o,col:e};if(s>=l)return{row:l+o,col:e};var h=void 0===a[s][this._getKeyOfCol(e)]?"":a[s][this._getKeyOfCol(e)];if((e-1>=0?void 0===a[s][this._getKeyOfCol(e-1)]?"":a[s][this._getKeyOfCol(e-1)]:h)===h&&e!==i+d){var _=0;for(_=e+1;_<n;_++){if((void 0===a[s][this._getKeyOfCol(_)]?"":a[s][this._getKeyOfCol(_)])!==h)return this._findNextCellRowAndColUpAndDown(t,_,t,_,r);if(d&&c&&_+i>=i+d)return this._findNextCellRowAndColUpAndDown(t,_,t,_,r)}for(_=e-1;_>=0;_--){if((void 0===a[s][this._getKeyOfCol(_)]?"":a[s][this._getKeyOfCol(_)])!==h)return this._findNextCellRowAndColUpAndDown(t,_+1,t,_+1,r);if(d&&c&&_+i>=i+d)return this._findNextCellRowAndColUpAndDown(t,i+d,t,i+d,r)}return this._findNextCellRowAndColUpAndDown(t,i,t,i,r)}return this._findNextCellRowAndColUpAndDown(t,e,t,e,r)},r.QCELL.BasicQCELL.prototype._findNextCellColAndRow=function(t,e,r){return"up"===r||"right"===r||"left"===r?this._findNextCellColAndRowUp(t,e,r):"down"===r?this._findNextCellColAndRowDown(t,e,r):void 0},r.QCELL.BasicQCELL.prototype._findNextCellColAndRowLeftAndRight=function(t,e,r,a,o){var i=this.attr("currentdata"),s=this.attr("headerrows"),l=this.attr("headercols"),n=t-s,c=r-s,d=i.length,h=this.attr("cols"),_=!1,u=this.attr("frozencols");if(u&&a>=l+u&&(_=!0),!d)return{row:r,col:a};if(n<0)return{row:0+s,col:a};if(n>=d)return{row:d+s,col:a};var p=void 0===i[n][this._getKeyOfCol(a)]?"":i[n][this._getKeyOfCol(a)],C=a-1,g="",f=0;if("right"===o){var L=void 0===i[n][this._getKeyOfCol(a)]?"":i[n][this._getKeyOfCol(a)];if((a-1>=0?void 0===i[n][this._getKeyOfCol(a-1)]?"":i[n][this._getKeyOfCol(a-1)]:L)===L&&a!==l+u){for(f=a+1;f<h;f++){if((void 0===i[n][this._getKeyOfCol(f)]?"":i[n][this._getKeyOfCol(f)])!==L)return this._findNextCellColAndRowUp(t,f,"up");if(u&&!_&&f+l>=l+u)return{row:t,col:f}}for(f=a-1;f>=0;f--){if((void 0===i[n][this._getKeyOfCol(f)]?"":i[n][this._getKeyOfCol(f)])!==L)return{row:t,col:f+1};if(u&&!_&&f+l>=l+u)return{row:t,col:l+u}}return{row:t,col:l}}return{row:t,col:a}}for(;;){if(C<0)return{row:t,col:0+l};for(g=this._getKeyOfCol(C),f=n;f<=c;f++)if(p!==(void 0===i[f][g]?"":i[f][g]))return{row:t,col:C+1};if(u&&_&&C+l<=l+u)return{row:t,col:C+1};C--}},r.QCELL.BasicQCELL.prototype._findNextCellColAndRowUp=function(t,e,r){var a=this.attr("currentdata"),o=this.attr("headerrows"),i=t-o,s=a.length,l=!1,n=!1,c=this.attr("frozenrows"),d=this.attr("frozenbottomrows");if(c&&t>=o+c&&(l=!0),d&&t>=o+s-d&&(n=!0),!s)return{row:t,col:e};if(i<0)return{row:0+o,col:e};if(i>=s)return{row:s+o,col:e};for(var h=this._getKeyOfCol(e),_=void 0===a[i][h]?"":a[i][h],u=i-1;;){if(u<0)return this._findNextCellColAndRowLeftAndRight(o,e,t,e,r);if(_!==(void 0===a[u][h]?"":a[u][h]))return this._findNextCellColAndRowLeftAndRight(u+1+o,e,t,e,r);if(c&&l&&u+o<o+c)return this._findNextCellColAndRowLeftAndRight(u+1+o,e,t,e,r);if(d&&n&&u+o<o+s-d)return this._findNextCellColAndRowLeftAndRight(u+1+o,e,t,e,r);u--}},r.QCELL.BasicQCELL.prototype._findNextCellColAndRowDown=function(t,e,r){var a=this.attr("currentdata"),o=this.attr("headerrows"),i=t-o,s=a.length,l=!1,n=!1,c=this.attr("frozenrows"),d=this.attr("frozenbottomrows");if(c&&t<o+c&&(l=!0),d&&t<o+s-d&&(n=!0),!s)return{row:t,col:e};if(i<0)return{row:0+o,col:e};if(i>=s)return{row:s+o,col:e};var h=this._getKeyOfCol(e),_=void 0===a[i][h]?"":a[i][h];if((i-1>=0?void 0===a[i-1][h]?"":a[i-1][h]:_)===_&&t!==o+c){var u=0;for(u=i+1;u<s;u++){if((void 0===a[u][h]?"":a[u][h])!==_)return this._findNextCellColAndRowLeftAndRight(u+o,e,u+o,e,r);if(c&&l&&u+o>=o+c)return this._findNextCellColAndRowLeftAndRight(u+o,e,u+o,e,r);if(d&&n&&u+o>=o+s-d)return this._findNextCellColAndRowLeftAndRight(u+o,e,u+o,e,r)}return u===s?this._findNextCellColAndRow(t,e,"up"):this._findNextCellColAndRowLeftAndRight(t-1,e,t-1,e,r)}return this._findNextCellColAndRowLeftAndRight(t,e,t,e,r)},r.QCELL.BasicQCELL.prototype._findNextCellGroup=function(t,e,r){return!1===this._getColDataMergeCol(e)?{row:t,col:e}:"up"===r||"left"===r||"right"===r?this._findNextCellGroupUp(t,e,r):this._findNextCellGroupDown(t,e)},r.QCELL.BasicQCELL.prototype._findNextCellGroupUp=function(t,e,r){var a=this.attr("currentdata"),o=this.attr("headerrows"),i=this.attr("headercols"),s=a.length+o,l=!1,n=!1,c=this.attr("frozenrows"),d=this.attr("frozenbottomrows"),h=o;return c&&t>=o+c&&(l=!0),d&&t>=s-d&&(n=!0),s?(c&&l?h=o+c:c&&!l&&(h=o),d&&n&&(h=s-d),this._findNextCellGroupUpSub(t,e,h,i)):{row:t,col:e}},r.QCELL.BasicQCELL.prototype._findNextCellGroupUpSub=function(t,e,r,a){if(r===t)return{row:t,col:e};if(a>e)return{row:r,col:e};var o=this.attr("currentdata"),i=this.attr("headerrows"),s=t-i;if(a>this.attr("cols"))return{row:r,col:e};for(var l=this._getKeyOfCol(a),n=void 0===o[s][l]?"":o[s][l],c=t-1;c>=r;c--)if(n!==(void 0===o[c-i][l]?"":o[c-i][l]))return this._findNextCellGroupUpSub(t,e,c+1,++a);return this._findNextCellGroupUpSub(t,e,r,++a)},r.QCELL.BasicQCELL.prototype._findNextCellGroupDown=function(t,e,r){var a=this.attr("currentdata"),o=this.attr("headerrows"),i=this.attr("headercols"),s=a.length+o,l=!1,n=!1,c=this.attr("frozenrows"),d=this.attr("frozenbottomrows"),h=s;return c&&t>=o+c&&(l=!0),d&&t>=s-d&&(n=!0),t===o||t===o+c||t===s-d?{row:t,col:e}:s?(d&&!n&&(h=s-d),c&&!l&&(h=o+c),this._findNextCellGroupDownSub(t,e,h,i)):{row:t,col:e}},r.QCELL.BasicQCELL.prototype._findNextCellGroupDownSub=function(t,e,r,a){if(r===t)return{row:t,col:e};if(a>e)return{row:r,col:e};var o=this.attr("currentdata"),i=this.attr("headerrows"),s=t-i,l=o.length+i;if(a>this.attr("cols"))return{row:s,col:e};var n=this._getKeyOfCol(a),c=void 0===o[s][n]?"":o[s][n];if((void 0===o[s-1][n]?"":o[s-1][n])===c){var d=0;for(d=t+1;d<r;d++)if(c!==(void 0===o[d-i][n]?"":o[d-i][n]))return this._findNextCellGroupDownSub(t,e,d,++a);return a===e&&d===l?this._findNextCellGroupUp(t,e,"up"):this._findNextCellGroupDownSub(t,e,r,++a)}return this._findNextCellGroupDownSub(t,e,t,++a)},r.QCELL.BasicQCELL.prototype._findNextCell=function(t,e,r){var a=this.attr("merge");if("none"===a.data)return{row:t,col:e};var o=a.data;return"row"===o?this._findNextCellRow(t,e,r):"col"===o?this._findNextCellCol(t,e,r):"rowandcol"===o?this._findNextCellRowAndCol(t,e,r):"colandrow"===o?this._findNextCellColAndRow(t,e,r):"group"===o?this._findNextCellGroup(t,e,r):"groupandrow"===o?this._findNextCellGroupAndRow(t,e,r):{row:t,col:e}},r.QCELL.BasicQCELL.prototype._mergeGroupAndRow=function(t,e,r,a,o,i){this._mergeGroupAndRowSub(t,e,r,a,o,i,a.length,e)},r.QCELL.BasicQCELL.prototype._mergeGroupAndRowSub=function(t,e,r,a,o,i,s,l){var n=a.length?a[0].length:0;if(e!==n&&0!==a.length&&this._getColDataMergeCol(e)){var c,d=t,h=this.attr("headercols")>0?0:1,_=void 0===a[t][e]?"":a[t][e],u=0,p=null;for(d=t+1;d<s;d++){var C=a[d];if(_!==C[e]){if(u)p=this._makeMergeInfo(d+o-++u,e+i-l,d+o-1,e+i-l,_),u=0,r.push(p),this._mergeGroupAndRowSub(p.nStartRow-o,e+1,r,a,o,i,d,l);else for(c=e+1;c<n;c++){if(_!==a[d-1][c]){if((p=this._makeMergeInfo(d+o-1,e+i-l,d+o-1,c-l-h,_)).nStartCol===p.nEndCol)break;r.push(p);break}if(c+1===n){if((p=this._makeMergeInfo(d+o-1,e+i-l,d+o-1,c-l-h,_)).nStartCol===p.nEndCol)break;r.push(p)}}_=C[e]}else u++}if(u)p=this._makeMergeInfo(d+o-++u,e+i-l,d+o-1,e+i-l,_),u=0,r.push(p),this._mergeGroupAndRowSub(p.nStartRow-o,e+1,r,a,o,i,d,l);else for(c=e+1;c<n;c++){if(_!==a[d-1][c]){if((p=this._makeMergeInfo(d+o-1,e+i-l,d+o-1,c-l-h,_)).nStartCol===p.nEndCol)break;r.push(p);break}if(c+1===n){if((p=this._makeMergeInfo(d+o-1,e+i-l,d+o-1,c-l-h,_)).nStartCol===p.nEndCol)break;r.push(p)}}}},r.QCELL.BasicQCELL.prototype._findNextCellGroupAndRow=function(t,e,r){if(!1===this._getColDataMergeCol(e))return{row:t,col:e};for(var a,o=this.attr("merge_data_info"),i=0;i<o.length;i++)if((a=o[i]).nStartRow<=t&&t<=a.nEndRow&&a.nStartCol<=e&&e<=a.nEndCol)return"down"===r?a.nEndRow+1===this.getRows()||t===a.nStartRow&&e===a.nStartCol||a.nStartRow===a.nEndRow?{row:a.nStartRow,col:a.nStartCol}:{row:a.nEndRow+1,col:a.nStartCol}:"right"===r?t===a.nStartRow&&e===a.nStartCol?{row:a.nStartRow,col:a.nStartCol}:{row:a.nStartRow,col:a.nEndCol+1}:{row:a.nStartRow,col:a.nStartCol};return{row:t,col:e}},r.QCELL.BasicQCELL.prototype._mergedCheckboxClick=function(t,e,r){var a=this.attr("merge");if("col"===a.data||"group"===a.data||"groupandrow"===a.data){var o=t,i=this.getRows()-1,s=!0===r?this._getColElement(e).attr("checkedvalue"):this._getColElement(e).attr("uncheckedvalue");if(void 0!==this._getColDataMergeRef(e)){for(var l=this._getColDataMergeRef(e),n=this.getCellDataEx(t,l),c=t;c>=this.attr("headerrows");c--){if(n!==this.getCellDataEx(c,l)){o=c+1;break}this.setCellData(c,e,s)}for(var d=t;d<this.getRows();d++){if(n!==this.getCellDataEx(d,l)){i=d-1;break}this.setCellData(d,e,s)}this._trigger("merged_checkbox_changed",{status:s,col:e,startrow:o,endrow:i})}}},r.QCELL.BasicQCELL.prototype._afterPaginationNext=function(){var t=this.attr("paginationinfo");if(t.lastindex=Math.ceil(t.datacount/t.pageunit),"simple"===t.mode)t.pageindex<t.lastindex&&(t.nextpage=!0,t.lastpage=!0),t.pageindex>t.firstindex&&(t.prevpage=!0,t.firstpage=!0);else{var e=Math.ceil(t.pageindex/t.pagecount);e<Math.ceil(t.lastindex/t.pagecount)&&t.pageindex!==t.lastindex&&(t.nextpage=!0),e>1&&(t.prevpage=!0),t.pageindex<t.lastindex&&(t.lastpage=!0),t.pageindex>1&&(t.firstpage=!0)}if(0===t.result.length?(t.pageindex=0,t.firstindex=0,t.datacount=0,t.lastindex=0,t.nextpage=!1,t.lastpage=!1):t.firstindex=1,"create"===this.attr("_afterpagination")){var r=this.attr("_afterpagination_hep"),a=this.attr("_afterpagination_div");r.appendChild(this._createPaginationInner(a)),this._updateCurrentData(t.result),this._initRowheaderData(),r=null,a=null}else"movepage"===this.attr("_afterpagination")&&(this._updatePagination(),this._trigger("aftermovepage"))},r.QCELL.BasicQCELL.prototype._afterPagination=function(){var t,e=this.getID(),a=this.attr("paginationinfo"),o=a.beforeSendCallback,i=a.sendFailCallback,s=a.sendDoneCallback,l=a.parsingErrorCallback,n=a.sendAlwaysCallback,c=void 0!==a.useProgress&&a.useProgress,d=void 0!==a.currentData&&r._.isArray(a.currentData)&&a.currentData.length>0?a.currentData:r._.clone(this.attr("data").input);if(a.result.RT_clear(),a.result=null,a.result=[],!1!==r._.isUndefined(a.url)||!0!==r._.isUndefined(a.loadonce)&&!1!==a.loadonce){var h=0;if(!0===a.totalsort&&!1===r._.isEmpty(this.attr("sortinfo"))){var _=r._.clone(this.attr("sortinfo")),u=[];for(r._.each(_,(function(t){u.push(r._.clone(t))})),h=0;h<u.length;h++)u[h][0]=this._getKeyOfCol(u[h][0]);1===u.length?r.util.RT_sortBy(d,u[0][0],u[0][1],u[0][2]):u.length>1&&r.util.RT_sortBy(d,u)}for(h=(a.pageindex-1)*a.pageunit;h<a.pageindex*a.pageunit&&!1===r._.isUndefined(d[h])&&(a.result.push(d[h]),h!==d.length-1);h++);this._afterPaginationNext()}else{var p=[];!0===a.totalsort&&!1===r._.isEmpty(this.attr("sortinfo"))&&(r._.each(this.attr("sortinfo"),(function(a,o){t=r.QCELL.getInstance(e);var i={};i.sortKey=t._getKeyOfCol(a[0]),i.sortType=a[1],p.push(i),t=null})),a.sort=p),a.initsort&&(a.sort=void 0,this._clearSortUI(),a.initsort=!1);var C={pageindex:a.pageindex,pageunit:a.pageunit,param:JSON.stringify(a.param),sort:JSON.stringify(a.sort)};void 0!==o&&r._.isFunction(o)&&(C=o(C)),!0===c&&this.showProgress(),setTimeout((function(){r.$.post(a.url,C,(function(o){try{t=r.QCELL.getInstance(e),o=o instanceof Object?o:JSON.parse(o),a.result=o instanceof Object&&o.data instanceof Object?r._.clone(o.data):r._.clone(JSON.parse(o.data)),a.datacount=o instanceof Object?r._.clone(o.datacount):0,t._afterPaginationNext(),t=null}catch(i){t=r.QCELL.getInstance(e),void 0!==l&&r._.isFunction(l)&&l(i,o),o={},a.result={},a.datacount=0,t._afterPaginationNext(),t=null}o=null})).done((function(){void 0!==s&&r._.isFunction(s)&&s()})).fail((function(){void 0!==i&&r._.isFunction(i)&&i()})).always((function(){void 0!==n&&r._.isFunction(n)&&n(),!0===c&&((t=r.QCELL.getInstance(e)).hideProgress(),t=null)}),100)}))}d=null},r.QCELL.BasicQCELL.prototype._calculatePaginationInfo=function(t,e){var a,o=this.getID(),i=this.attr("paginationinfo"),s=i.beforeSendCallback,l=i.sendFailCallback,n=i.sendDoneCallback,c=i.parsingErrorCallback,d=i.sendAlwaysCallback,h=void 0!==i.useProgress&&i.useProgress,_=void 0!==i.currentData&&r._.isArray(i.currentData)&&i.currentData.length>0?i.currentData:r._.clone(this.attr("data").input);if(!0!==this.attr("isResizing")){if(this.attr("isResizing",!1,"boolean"),i.firstpage=!1,i.prevpage=!1,i.nextpage=!1,i.lastpage=!1,i.firstindex=1,i.lastindex=r._.isUndefined(i.lastindex)?1:i.lastindex,i.pageindex=r._.isUndefined(i.pageindex)?1:i.pageindex,i.datacount=_.length,i.result=r._.isUndefined(i.result)?[]:i.result,i.load=!r._.isUndefined(i.load)&&i.load,i.totalsort=!r._.isUndefined(i.totalsort)&&i.totalsort,i.initsort=!r._.isUndefined(i.initsort)&&i.initsort,i.mode=r._.isUndefined(i.mode)?"simple":i.mode,i.pagecount=r._.isUndefined(i.pagecount)?5:i.pagecount,i.extendmove=!r._.isUndefined(i.extendmove)&&i.extendmove,0!==i.datacount&&0===i.pageindex&&(i.pageindex=1),!1===r._.isUndefined(t)&&(i.pageindex=t),t<=i.firstindex?i.pageindex=i.firstindex:t>=i.lastindex&&(i.pageindex=i.lastindex),!1===r._.isUndefined(e)&&(i.pageunit=e,i.pageindex=i.firstindex),(!0===i.allowsameindex||i.pageindex!==this.attr("_prevPageIndex")||i.pageunit!==this.attr("_prevPageUnit"))&&!0!==this.attr("bRebuildWithPrevData")&&!0!==this.attr("clearingdata")){if(!1===r._.isUndefined(i.url)&&!1===r._.isUndefined(i.loadonce)&&!0===i.loadonce&&!1===i.load){!0===i.totalsort&&!1===r._.isEmpty(this.attr("sortinfo"))&&(i.sort=r._.clone(this.attr("sortinfo"))),i.initsort&&(i.sort=void 0,this._clearSortUI(),i.initsort=!1),r.$.ajaxSettings.async=!1;var u={param:JSON.stringify(i.param),sort:JSON.stringify(i.sort)};void 0!==s&&r._.isFunction(s)&&(u=s(u)),!0===h&&this.showProgress(),setTimeout((function(){r.$.post(i.url,u,(function(t){try{a=r.QCELL.getInstance(o),t=t instanceof Object?t:JSON.parse(t),a.attr("data").input=t instanceof Object&&t.data instanceof Object?r._.clone(t.data):r._.clone(JSON.parse(t.data)),_=t instanceof Object&&t.data instanceof Object?r._.clone(t.data):r._.clone(JSON.parse(t.data)),i.datacount=t instanceof Object?r._.clone(_.length):0,i.load=!0,a.attr("_prevPageIndex",i.pageindex,"number"),a.attr("_prevPageUnit",i.pageunit,"number"),a=null}catch(e){a=r.QCELL.getInstance(o),void 0!==c&&r._.isFunction(c)&&c(e,t),a.attr("data").input=[],_=[],i.datacount=0,i.load=!0,a.attr("_prevPageIndex",i.pageindex,"number"),a.attr("_prevPageUnit",i.pageunit,"number"),a=null}})).done((function(){void 0!==n&&r._.isFunction(n)&&n()})).fail((function(){void 0!==l&&r._.isFunction(l)&&l()})).always((function(){void 0!==d&&r._.isFunction(d)&&d(),!0===h&&((a=r.QCELL.getInstance(o)).hideProgress(),a=null)}),100),r.$.ajaxSettings.async=!0,(a=r.QCELL.getInstance(o))._afterPagination(),a=null}))}else this._afterPagination();_=null}}else this.attr("isResizing",!1,"boolean")},r.QCELL.BasicQCELL.prototype._movePage=function(t,e){var a=this.attr("paginationinfo");this.removeAttr("_backGT"),this.attr("colsearchuivisible")&&this._removeColSearUIArea(),this._isContextMenu()||this._removeContextMenu(),(r._.isUndefined(a.totalsort)||!1===a.totalsort)&&this._clearSortUI(),this.attr("_afterpagination","movepage","string");for(var o=this.attr("currentdata"),i=0;i<o.length;i++)void 0!==o[i]._rt_qc_style&&null!==o[i]._rt_qc_style&&delete o[i]._rt_qc_style;o=null,this._calculatePaginationInfo(t,e)},r.QCELL.BasicQCELL.prototype._updatePagination=function(){this._setCurrentData(r._.clone(this.attr("paginationinfo").result),!0);var t=this.attr("elementpool"),e=t.get("paginationpanel");if(t.get("$paginationpanel").empty(),e.appendChild(this._createPaginationInner(document.createElement("div"))),"normal"===r.QCELL.module)for(var a=this.attr("headercols"),o=this.attr("cols");a<o;a++)if("checkbox"===this._getColType(a)){for(var i=this._getColElement(a).attr("checkedvalue"),s=this.attr("currentdata").length,l=this.attr("headerrows"),n=0,c=0;c<s;c++){var d=c+l;this._cellValue(d,a)===i&&n++}n===s?this._getColElement(a)._isHeaderCheckbox(a)&&!1===this._getColElement(a)._getHeaderCheckedState(a)&&this._getColElement(a)._setHeaderChecked(a,!0):this._getColElement(a)._isHeaderCheckbox(a)&&this._getColElement(a)._getHeaderCheckedState(a)&&this._getColElement(a)._setHeaderChecked(a,!1)}},r.QCELL.BasicQCELL.prototype._setPaginationParam=function(t){try{return this.attr("paginationinfo").param=r._.clone(t),this.attr("paginationinfo").load=!1,!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._setPaginationParam",t.message),!1}},r.QCELL.BasicQCELL.prototype._calculatePaginationInfoCreate=function(t,e){var a=this,o=this.attr("paginationinfo"),i=o.beforeSendCallback,s=o.sendFailCallback,l=o.sendDoneCallback,n=o.sendAlwaysCallback,c=o.parsingErrorCallback,d=void 0!==o.useProgress&&o.useProgress,h=void 0!==o.currentData&&r._.isArray(o.currentData)&&o.currentData.length>0?o.currentData:r._.clone(this.attr("data").input);if(!0===this.attr("isResizing"))return this.attr("isResizing",!1,"boolean"),!1;if(this.attr("isResizing",!1,"boolean"),o.firstpage=!1,o.prevpage=!1,o.nextpage=!1,o.lastpage=!1,o.firstindex=1,o.lastindex=r._.isUndefined(o.lastindex)?1:o.lastindex,o.pageindex=r._.isUndefined(o.pageindex)?1:o.pageindex,o.datacount=h.length,o.result=r._.isUndefined(o.result)?[]:o.result,o.load=!r._.isUndefined(o.load)&&o.load,o.totalsort=!r._.isUndefined(o.totalsort)&&o.totalsort,o.initsort=!r._.isUndefined(o.initsort)&&o.initsort,o.mode=r._.isUndefined(o.mode)?"simple":o.mode,o.pagecount=r._.isUndefined(o.pagecount)?5:o.pagecount,o.extendmove=!r._.isUndefined(o.extendmove)&&o.extendmove,0!==o.datacount&&0===o.pageindex&&(o.pageindex=1),!1===r._.isUndefined(t)&&(o.pageindex=t),t<=o.firstindex?o.pageindex=o.firstindex:t>=o.lastindex&&(o.pageindex=o.lastindex),!1===r._.isUndefined(e)&&(o.pageunit=e,o.pageindex=o.firstindex),!0!==o.allowsameindex&&o.pageindex===this.attr("_prevPageIndex")&&o.pageunit===this.attr("_prevPageUnit"))return!1;if(!0===this.attr("bRebuildWithPrevData"))return!1;if(!1===r._.isUndefined(o.url)&&!1===r._.isUndefined(o.loadonce)&&!0===o.loadonce&&!1===o.load){!0===o.totalsort&&!1===r._.isEmpty(this.attr("sortinfo"))&&(o.sort=r._.clone(this.attr("sortinfo"))),o.initsort&&(o.sort=void 0,a._clearSortUI(),o.initsort=!1),r.$.ajaxSettings.async=!1;var _={param:JSON.stringify(o.param),sort:JSON.stringify(o.sort)};void 0!==i&&r._.isFunction(i)&&(_=i(_)),!0===d&&this.showProgress(),r.$.post(o.url,_,(function(t){try{t=t instanceof Object?t:JSON.parse(t),a.attr("data").input=t instanceof Object&&t.data instanceof Object?r._.clone(t.data):r._.clone(JSON.parse(t.data)),h=t instanceof Object&&t.data instanceof Object?r._.clone(t.data):r._.clone(JSON.parse(t.data)),o.datacount=t instanceof Object?r._.clone(h.length):0,o.load=!0,a.attr("_prevPageIndex",o.pageindex,"number"),a.attr("_prevPageUnit",o.pageunit,"number")}catch(e){void 0!==c&&r._.isFunction(c)&&c(e,t),a.attr("data").input=[],h=[],o.datacount=0,o.load=!0,a.attr("_prevPageIndex",o.pageindex,"number"),a.attr("_prevPageUnit",o.pageunit,"number")}})).done((function(){void 0!==l&&r._.isFunction(l)&&l()})).fail((function(){void 0!==s&&r._.isFunction(s)&&s()})).always((function(){void 0!==n&&r._.isFunction(n)&&n(),!0===d&&a.hideProgress()})),r.$.ajaxSettings.async=!0}if(o.result.RT_clear(),!0!==this.attr("clearingdata"))if(!1!==r._.isUndefined(o.url)||!0!==r._.isUndefined(o.loadonce)&&!1!==o.loadonce){var u=0;if(!0===o.totalsort&&!1===r._.isEmpty(this.attr("sortinfo"))){var p=r._.clone(this.attr("sortinfo")),C=[];for(r._.each(p,(function(t){C.push(r._.clone(t))})),u=0;u<C.length;u++)C[u][0]=this._getKeyOfCol(C[u][0]);1===C.length?r.util.RT_sortBy(h,C[0][0],C[0][1],C[0][2]):C.length>1&&r.util.RT_sortBy(h,C)}for(u=(o.pageindex-1)*o.pageunit;u<o.pageindex*o.pageunit&&!1===r._.isUndefined(h[u])&&(o.result.push(h[u]),u!==h.length-1);u++);}else{var g=[];!0===o.totalsort&&!1===r._.isEmpty(this.attr("sortinfo"))&&(r._.each(this.attr("sortinfo"),(function(t,e){var r={};r.sortKey=a._getKeyOfCol(t[0]),r.sortType=t[1],g.push(r)})),o.sort=g),o.initsort&&(o.sort=void 0,a._clearSortUI(),o.initsort=!1),r.$.ajaxSettings.async=!1;var f={pageindex:o.pageindex,pageunit:o.pageunit,param:JSON.stringify(o.param),sort:JSON.stringify(o.sort)};void 0!==i&&r._.isFunction(i)&&(f=i(f)),!0===d&&this.showProgress(),r.$.post(o.url,f,(function(t){try{t=t instanceof Object?t:JSON.parse(t),o.result=t instanceof Object&&t.data instanceof Object?r._.clone(t.data):r._.clone(JSON.parse(t.data)),o.datacount=t instanceof Object?r._.clone(t.datacount):0}catch(e){void 0!==c&&r._.isFunction(c)&&c(e,t),o.result={},o.datacount=0}})).done((function(){void 0!==l&&r._.isFunction(l)&&l()})).fail((function(){void 0!==s&&r._.isFunction(s)&&s()})).always((function(){void 0!==n&&r._.isFunction(n)&&n(),!0===d&&a.hideProgress()})),r.$.ajaxSettings.async=!0}if(o.lastindex=Math.ceil(o.datacount/o.pageunit),"simple"===o.mode)o.pageindex<o.lastindex&&(o.nextpage=!0,o.lastpage=!0),o.pageindex>o.firstindex&&(o.prevpage=!0,o.firstpage=!0);else{var L=Math.ceil(o.pageindex/o.pagecount);L<Math.ceil(o.lastindex/o.pagecount)&&o.pageindex!==o.lastindex&&(o.nextpage=!0),L>1&&(o.prevpage=!0),o.pageindex<o.lastindex&&(o.lastpage=!0),o.pageindex>1&&(o.firstpage=!0)}return 0===o.result.length?(o.pageindex=0,o.firstindex=0,o.datacount=0,o.lastindex=0,o.nextpage=!1,o.lastpage=!1):o.firstindex=1,!0},r.QCELL.BasicQCELL.prototype._initProps=function(){try{var t,e=this.attr("qcellcols"),a=this.attr("colkeysinfo");this.attr("cols",t=e.length,"number"),this.attr("headercols",this.attr("rowheaders").length,"number"),this.attr("headerrows",r._.max(e,(function(t){return t.attr("title").length})).attr("title").length,"number"),this.attr("colwidths",r._.map(e,(function(t){return t.attr("width")})),"array"),this.attr("colkeys",r._.map(e,(function(t){return t.attr("key")})),"array"),this.attr("colids",r._.map(e,(function(t){return t.attr("id")})),"array"),r._.each(this.attr("colkeys"),(function(t,e){!1===a.containsKey(t)&&a.put(t,new window._QHashSet),a.get(t).add(e)}));for(var o=r._.map(e,(function(t){return t.attr("id")})),i=r._.range(0,t),s=[],l=0;l<o.length;l++)s.push([o[l],i[l]]);if(this.attr("colidsinfo",r._.fromPairs(s),"object"),this.attr("headertext",r._.map(e,(function(t){return t.attr("title")})),"array"),null!==this.attr("hiddencolsprops")){var n=[],c=this.attr("hiddencolsprops");if(null!=c)for(var d=0;d<c.length;d++)n.push({key:c[d].key,title:c[d].title});this.attr("hiddenheadertext",n,"object")}return void 0!==r._.find(this.attr("colwidths"),(function(t){return t.indexOf("%")>-1}))&&this.attr("percentcolwidth",!0,"boolean"),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._initProps",t.message),null}},r.QCELL.BasicQCELL.prototype._getSumOfRowHeight=function(t,e){for(var r=0,a=this.attr("rowheight").header,o=this.attr("rowheight").data,i=this.attr("headerrows"),s=t;s<=e;s++)r+=s<i?a:o;return r},r.QCELL.BasicQCELL.prototype._getSumOfColWidth=function(t,e){for(var r=0,a=this.attr("colwidthsperpixel"),o=t;o<=e;o++)r+=a[o];return r},r.QCELL.BasicQCELL.prototype._getSumOfRowHeight=function(t,e){var a=this.attr("dynamicrowheight"),o=this.attr("rowheight").data,i=this.attr("headerrows"),s=0;if(t>=i?s=(e-t+1)*o:(s=(i-t)*this.attr("rowheight").header,s+=(e-i+1)*o),a.size()>0){for(var l=a.keys().sort(r.st.asc),n=t;n<=e;n++)r._.indexOf(l,n,!0)>-1&&(s+=a.get(n)-o);l=null}return s},r.QCELL.BasicQCELL.prototype._adjustFrozenCount=function(){return this._adjustFrozenColsCount()&&this._adjustFrozenRowsCount()},r.QCELL.BasicQCELL.prototype._adjustFrozenColsCount=function(){try{if(!1===this.attr("hsinfo").bHScroll)this.attr("frozencols",0,"number");else{var t=this.getProperties();this.attr("frozencols",t.frozencols,"number")}return this._setHSRange(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._adjustFrozenColsCount",t.message),!1}},r.QCELL.BasicQCELL.prototype._adjustFrozenRowsCount=function(){try{if(!1===this.attr("vsinfo").bVScroll)this.attr("frozenrows",0,"number"),!0!==this._isPanel()&&this.attr("frozenbottomrows",0,"number");else{var t=this.getProperties();this.attr("frozenrows",t.frozenrows,"number"),this.attr("frozenbottomrows",t.frozenbottomrows,"number")}return this._setVSRange(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._adjustFrozenRowsCount",t.message),!1}},r.QCELL.BasicQCELL.prototype._updateIdx=function(t,e,a,o){var i=this._idx("row",t,"current"),s=this._idx("col",t,"current");if(!1===r.QCELL.config.sethtmlclicktoidx&&void 0!==o)return this._idx("row",t,"current",-1),this._idx("col",t,"current",-1),!0;if(e!==i||a!==s){if(this._idx("row",t,"previous",i),this._idx("col",t,"previous",s),this._idx("row",t,"current",e),this._idx("col",t,"current",a),"click"===t&&-1!==e&&-1!==a){if(void 0!==o&&!r.$(o.target).hasClass("rt-qc-cell"))return!0;this._trigger("dataclicked")}return"focus"===t&&this._trigger("focuschanged"),!0}return"click"===t&&-1!==e&&-1!==a&&(void 0!==o&&!r.$(o.target).hasClass("rt-qc-cell")||(this._trigger("dataclicked"),!0))},r.QCELL.BasicQCELL.prototype._getTotalColWidth=function(){var t=this.attr("colwidths"),e=this.attr("headercols"),a=this.attr("layoutsize").container.clientWidth,o=this.attr("headercolwidth")*e;if(this.attr("percentcolwidth")){var i=r._.reduce(t.slice(0,e),(function(t,e){return t+parseFloat(e)}),0),s=r._.reduce(t.slice(e,t.length),(function(t,e){return t+parseFloat(e)}),0);return i+(a-o-(this.attr("vsinfo").bVScroll?this.attr("scrollbarwidth"):0))*s/100}return r._.reduce(t,(function(t,e){return t+parseFloat(e)}),0)},r.QCELL.BasicQCELL.prototype._calculateRealColWidth=function(){var t=this.attr("layoutsize"),e=this.attr("headercols");if(this.attr("percentcolwidth")){var a=0,o=0;this.attr("colwidthsperpixel",r._.map(this.attr("colwidths"),(function(r,i){if(i<e)return parseFloat(r);var s=t.viewport.offsetWidth,l=parseFloat(r),n=Math.ceil(s*parseFloat(r)/100);return 100===(a+=l)&&(n=s-o),o+=n,n})),"array")}else this.attr("colwidthsperpixel",r._.map(this.attr("colwidths"),(function(t){return parseFloat(t)})),"array")},r.QCELL.BasicQCELL.prototype._calculateDynamicCols=function(){try{var t=this.attr("hsinfo"),e=this.attr("headercols"),a=this.attr("cols"),o=0;if(this.attr("useall")||this.attr("usetreeall"))o=a-e;else if(a-e>0){var i,s,l,n,c,d=this.attr("frozencols"),h=this.attr("layoutsize").viewport.offsetWidth,_=this._getSumOfColWidth(e,e+d-1);for(i=e+d,l=a;i<l;i++){for(n=_,c=d,s=i;s<l&&!(n>=h);s++)n+=this._getColWidth(s),c+=1;c>o&&(o=c)}for(i=a-1,l=e+d;i>=l;i--){for(n=_,c=d,s=i;s>=l&&!(n>=h);s--)n+=this._getColWidth(s),c+=1;c>o&&(o=c)}}return t.nDynamicCols=o,!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._calculateDynamicCols",t.message),!1}},r.QCELL.BasicQCELL.prototype._calculateDynamicRows=function(){try{var t=this.attr("vsinfo"),e=this.attr("headerrows"),a=this.attr("rows"),o=0;if(a-e>0){var i,s,l,n,c=this.attr("frozenrows"),d=this.attr("frozenbottomrows"),h=this.attr("layoutsize").viewport.offsetHeight;for(l=this._getSumOfRowHeight(e,e+c-1)+(0===d?0:this._getSumOfRowHeight(a-d,a-1)),n=c+d,i=e+c,s=a-d;i<s&&!(l>=h);i++)l+=this._getRowHeight(i),n+=1;o=n,t.nDynamicRows=o}return t.nDynamicRows=o,!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._calculateDynamicRows",t.message),!1}},r.QCELL.BasicQCELL.prototype._initLayoutSize=function(){try{var t,e=this.attr("layoutsize"),a=this.attr("vsinfo"),o=this.attr("hsinfo"),i=this.attr("rowheight"),s=this.attr("paginationinfo"),l=this.attr("elementpool"),n=l.get("root"),c=l.get("panel"),d=l.get("container"),h=l.get("paginationpanel"),_=l.get("sheetpanel"),u=l.get("viewport"),p=l.get("footerrowheader"),C=l.get("footer"),g=l.get("edgeheader"),f=l.get("rowheader"),L=l.get("colheader"),m=l.get("hscrollbar"),E=l.get("vscrollbar"),b=this.attr("headerrows"),y=this.attr("footerrows"),v=this.attr("headercols"),w=i.header,x=i.data,Q=i.footer*y,S=this.attr("scrollbarwidth"),k=r.$(this.attr("parent")),T=k.width();n.style.width=this.attr("width"),n.style.height=this.attr("height"),e.root={offsetLeft:n.offsetLeft,offsetTop:n.offsetTop,offsetWidth:n.offsetWidth>k.width()?k.width():n.offsetWidth,offsetHeight:n.offsetHeight,clientWidth:n.clientWidth>k.width()?k.width():n.clientWidth,clientHeight:n.clientHeight},c.style.width=e.root.clientWidth+"px",c.style.height="0px",c.style.display="none",e.panel={offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},this.attr("useGroupUI")&&(c.style.width=e.root.clientWidth+"px",c.style.height="40px",c.style.display="block",e.panel={offsetTop:c.offsetTop,offsetWidth:c.offsetWidth,offsetHeight:c.offsetHeight,clientWidth:c.clientWidth,clientHeight:c.clientHeight}),_.style.width=c.style.width,_.style.height=this.attr("bottompanelheight")+"px",_.style.left=e.container.clientX+"px",_.style.top=e.root.offsetTop+(e.root.offsetHeight-parseFloat(_.style.height))+"px",_.style.display="none",e.sheetpanel={offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},this.attr("bottompanel")&&(_.style.display="block",e.sheetpanel={offsetTop:_.offsetTop,offsetWidth:_.offsetWidth,offsetHeight:_.offsetHeight,clientWidth:_.clientWidth,clientHeight:_.clientHeight}),h.style.width=c.style.width,h.style.height=!1===r._.isEmpty(s)?"30px":"0px",h.style.top=e.root.offsetTop+(e.root.offsetHeight-parseFloat(h.style.height))-e.sheetpanel.offsetHeight+"px",e.paginationpanel=!1===r._.isEmpty(s)?{offsetTop:h.offsetTop,offsetWidth:h.offsetWidth,offsetHeight:h.offsetHeight,clientWidth:h.clientWidth,clientHeight:h.clientHeight}:{offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},h.style.display=!1===r._.isEmpty(s)&&e.paginationpanel.clientHeight>0?"":"none","none"===c.style.display?d.style.top="":d.style.top=e.panel.offsetTop+e.panel.offsetHeight+"px",d.style.width=c.style.width,d.style.height=e.root.clientHeight-e.panel.offsetHeight-e.sheetpanel.offsetHeight-e.paginationpanel.offsetHeight+"px",t=l.get("$container").offset(),e.container={clientX:parseInt(t.left),clientY:parseInt(t.top),offsetTop:d.offsetTop,offsetWidth:d.offsetWidth,offsetHeight:d.offsetHeight,clientWidth:d.clientWidth,clientHeight:d.clientHeight},g.style.width=v*this.attr("headercolwidth")+"px",g.style.height=b*w+"px",e.edgeheader={offsetWidth:g.offsetWidth,offsetHeight:g.offsetHeight,clientWidth:g.clientWidth,clientHeight:g.clientHeight},a.bVScroll=this.attr("currentdata").length*x>e.container.offsetHeight-e.edgeheader.offsetHeight-Q,L.style.width=e.container.offsetWidth-e.edgeheader.offsetWidth-(a.bVScroll?S:0)+"px",void 0===e.colheader&&(e.colheader={}),e.colheader={offsetWidth:e.container.offsetWidth-e.edgeheader.offsetWidth-(a.bVScroll?S:0),offsetHeight:0,clientWidth:0,clientHeight:0},o.bHScroll=this._getTotalColWidth()>e.edgeheader.offsetWidth+e.colheader.offsetWidth,u.style.height=e.container.offsetHeight-e.edgeheader.offsetHeight-Q-(o.bHScroll?S:0)+"px",e.viewport={offsetWidth:0,offsetHeight:u.offsetHeight,clientWidth:0,clientHeight:0},!1===a.bVScroll&&o.bHScroll&&(a.bVScroll=this.attr("currentdata").length*x>e.viewport.offsetHeight,a.bVScroll&&(L.style.width=e.container.offsetWidth-e.edgeheader.offsetWidth-S+"px")),L.style.height=g.style.height,L.style.left=e.edgeheader.offsetWidth+g.offsetLeft+"px",e.colheader.offsetLeft=L.offsetLeft,e.colheader.offsetTop=L.offsetTop,e.colheader.offsetWidth=L.offsetWidth,e.colheader.offsetHeight=L.offsetHeight,e.colheader.clientWidth=L.clientWidth,e.colheader.clientHeight=L.clientHeight,u.style.width=L.style.width,u.style.left=L.style.left,u.style.top=e.edgeheader.offsetHeight+g.offsetTop+"px",e.viewport.offsetLeft=u.offsetLeft,e.viewport.offsetTop=u.offsetTop,e.viewport.offsetWidth=u.offsetWidth,e.viewport.clientWidth=u.clientWidth,e.viewport.clientHeight=u.clientHeight,f.style.width=g.style.width,f.style.height=u.style.height,f.style.top=u.style.top,e.rowheader={offsetWidth:f.offsetWidth,offsetHeight:f.offsetHeight,clientWidth:f.clientWidth,clientHeight:f.clientHeight},p.style.width=f.style.width,p.style.height=Q+"px",p.style.top=e.viewport.offsetHeight+u.offsetTop+"px",void 0===e.footerrowheader&&(e.footerrowheader={}),0===Q?(e.footerrowheader={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},p.style.display="none"):(e.footerrowheader={offsetWidth:p.offsetWidth,offsetHeight:p.offsetHeight,clientWidth:p.clientWidth,clientHeight:p.clientHeight},p.style.display=""),C.style.width=L.style.width,C.style.height=p.style.height,C.style.left=L.style.left,C.style.top=p.style.top,void 0===e.footer&&(e.footer={}),0===Q?(e.footer={offsetTop:e.viewport.offsetTop+e.viewport.offsetHeight,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},C.style.display="none"):(e.footer={offsetTop:C.offsetTop,offsetWidth:C.offsetWidth,offsetHeight:C.offsetHeight,clientWidth:C.clientWidth,clientHeight:C.clientHeight},C.style.display=""),this._calculateRealColWidth(),void 0===e.hscrollbar&&(e.hscrollbar={}),o.bHScroll?(m.style.display="",m.style.width=e.rowheader.offsetWidth+e.viewport.offsetWidth+1+"px",m.style.height=S+1+"px",m.style.top=e.footer.offsetTop+e.footer.offsetHeight+"px",e.hscrollbar={offsetWidth:m.offsetWidth,offsetHeight:m.offsetHeight,clientWidth:m.clientWidth,clientHeight:m.clientHeight}):(m.style.display="none",e.hscrollbar={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0}),void 0===e.vscrollbar&&(e.vscrollbar={}),a.bVScroll?(E.style.display="",E.style.width=S+"px",E.style.height=e.container.offsetHeight-e.hscrollbar.offsetHeight+2+"px",E.style.left=e.colheader.offsetLeft+e.colheader.offsetWidth+"px",e.vscrollbar={offsetWidth:E.offsetWidth,offsetHeight:E.offsetHeight,clientWidth:E.clientWidth,clientHeight:E.clientHeight}):(E.style.display="none",e.vscrollbar={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0}),this.attr("tooltipvisible",!1,"boolean");var R=this.getID();return setTimeout((function(){if(T>k.width()){var t=r.QCELL.getInstance(R);null!=t&&t._initLayoutSize()}}),0),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._initLayoutSize",t.message),!1}},r.QCELL.BasicQCELL.prototype._getRowHeight=function(t){var e=this.attr("dynamicrowheight"),r=this.attr("rowheight"),a=this.attr("headerrows"),o=r.header,i=r.data;return t<a?o:e.containsKey(t)?e.get(t):i},r.QCELL.BasicQCELL.prototype._initRowheaderData=function(){var t=this.attr("rowheaders"),e=this.attr("headerrows"),r=this.attr("currentdata").length,a=[],o=[],i=0,s=0;for(i=0;i<e;i++){var l=[];for(s=0;s<t.length;s++)"checkbox"===t[s]?l.push(!0):l.push(!1);o.push(l)}for(i=0;i<r;i++){var n=[],c=[];for(s=0;s<t.length;s++)"sequence"===t[s]?(n.push(i+1),c.push(!1)):"reverse"===t[s]?(n.push(r-i),c.push(!1)):"checkbox"===t[s]||"radio"===t[s]?(n.push(!1),c.push(!0)):"state"===t[s]?(n.push("n"),c.push(!1)):"custom"===t[s]&&(n.push(""),c.push(!1));a.push(n),o.push(c)}return this.attr("rowheaderdata",a,"array"),this.attr("rowheadercheckboxclick",o,"array"),!0},r.QCELL.BasicQCELL.prototype._updateRowheaderData=function(t,e){var a=this.attr("rowheaders"),o=this.attr("headerrows"),i=this.attr("currentdata").length,s=[],l=[],n=0,c=0;for(n=0;n<o;n++){var d=[];for(c=0;c<a.length;c++)"checkbox"===a[c]?d.push(!0):d.push(!1);l.push(d)}for(n=0;n<i;n++){var h=[],_=[];for(c=0;c<a.length;c++)if("sequence"===a[c])h.push(n+1),_.push(!1);else if("reverse"===a[c])h.push(i-n),_.push(!1);else if("checkbox"===a[c]){var u=!1,p=!0;!1===r._.isUndefined(t[n])&&(u=!r._.isUndefined(t[n][c])&&t[n][c]),!1===r._.isUndefined(e[n])&&(p=!!r._.isUndefined(e[n][c])||e[n][c]),h.push(u),_.push(p)}else"state"===a[c]?(h.push(this._getRowState(n+1)),_.push(!1)):(h.push(""),_.push(!1));s.push(h),l.push(_)}return this.attr("rowheaderdata",s,"array"),this.attr("rowheadercheckboxclick",l,"array"),!0},r.QCELL.BasicQCELL.prototype._getRowheaderData=function(t,e){return t-=this.attr("headerrows"),void 0!==this.attr("rowheaderdata")[t]&&this.attr("rowheaderdata")[t][e]},r.QCELL.BasicQCELL.prototype._setRowheaderData=function(t,e,a){var o=this.attr("rowheaders"),i=!0;if((t-=this.attr("headerrows"))>=this.attr("rowheaderdata").length)return!1;if("sequence"===o[e]||"reverse"===o[e])!1===r._.isNumber(a)&&(i=!1);else if("checkbox"===o[e])!1===r._.isBoolean(a)&&(i=!1);else{if("radio"===o[e]){for(var s=0;s<this.attr("rowheaderdata").length;s++)s===t?this.attr("rowheaderdata")[t][e]=a:this.attr("rowheaderdata")[s][e]=!1;return!1}i=!1}if(i)if(t<0)for(var l=0;l<this.attr("rowheaderdata").length;l++)this.attr("rowheaderdata")[l][e]=a;else this.attr("rowheaderdata")[t][e]=a;return i},r.QCELL.BasicQCELL.prototype._rowheaderCheckboxClick=function(t,e,r){var a,o=this._getCellDOM(t,e).childNodes[0],i=o.name,s=-1,l=-1,n=!1,c=!1;if(!0!==o.disabled)if(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),i.indexOf("_all")>-1){var d=i.replace("_all",""),h=document.getElementsByName(d);o.checked=r;for(var _=0;_<h.length;_++)s=(a=h[_].parentNode).getAttribute("data-row"),l=a.getAttribute("data-col"),n=this._getQCellCol(l).attr("cellinvisible")[s],c=this._getQCellCol(l).attr("celldisabled")[s],n||c||(h[_].checked=r);for(var u=this.attr("headerrows");u<this.attr("rows");u++)n=this._getQCellCol(e).attr("cellinvisible")[u],c=this._getQCellCol(e).attr("celldisabled")[u],n||c||this._setRowheaderData(u,e,r)}else{var p=this._getCellDOM(0,e).childNodes[0];if(this._setRowheaderData(t,e,r),o.checked=r,r){for(var C=0,g=this.attr("headerrows"),f=this.attr("rows");g<f;g++)!0===this._getRowheaderData(g,e)&&C++;C===this.attr("rowheaderdata").length&&(p.checked=!0)}else!0===p.checked&&(p.checked=!1)}},r.QCELL.BasicQCELL.prototype._setRowheaderState=function(t,e){var a=r.$(t),o=this._getRowState(e),i=r.QCELL.def.css;if("n"!==o||!a.hasClass(i.ROWHEADER_STATE_INIT))switch(a.removeClass(i.ROWHEADER_STATE_INSERT),a.removeClass(i.ROWHEADER_STATE_UPDATE),a.removeClass(i.ROWHEADER_STATE_DELETE),a.removeClass(i.ROWHEADER_STATE_INIT),o){case"n":a.addClass(i.ROWHEADER_STATE_INIT);break;case"i":a.addClass(i.ROWHEADER_STATE_INSERT);break;case"u":a.addClass(i.ROWHEADER_STATE_UPDATE);break;case"d":a.addClass(i.ROWHEADER_STATE_DELETE)}},r.QCELL.BasicQCELL.prototype._setRowheaderCustom=function(t,e,a){var o,i,s=this.attr("headerrows"),l=this.attr("rowheaderoptions");if(null!=l)for(var n=0;n<l.length;n++)void 0!==(o=l[n]).col&&o.col===a&&(e<s?void 0!==o.header&&r._.isFunction(o.header)&&(i=o.header(this,e,a),t.innerHTML=i):void 0!==o.data&&r._.isFunction(o.data)&&(i=o.data(this,e,a),t.innerHTML=i))},r.$((function(){var t,a="rt_qc_mCSbar",o="rt_qc_mCS",i=".rt_qc_mCSbar",s={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0},target:null},l=0,n={},c=window.attachEvent&&!window.addEventListener?1:0,d=!1,h=["rt_qc_mCSB_dragger_onDrag","rt_qc_mCSB_scrollTools_onDrag","rt_qc_mCS_img_loaded","rt_qc_mCS_disabled","rt_qc_","rt_qc_mCS_no_scrollbar","rt_qc_mCS-autoHide","rt_qc_mCS-dir-rtl","rt_qc_mCS_no_scrollbar_y","rt_qc_mCS_no_scrollbar_x","rt_qc_mCS_y_hidden","rt_qc_mCS_x_hidden","rt_qc_mCSB_draggerContainer","rt_qc_mCSB_buttonUp","rt_qc_mCSB_buttonDown","rt_qc_mCSB_buttonLeft","rt_qc_mCSB_buttonRight"],_={init:function(t){t=r.$.extend(!0,{},s,t);var a,c=u.call(this);if(t.live){a=t.liveSelector||this.selector||i;var d=r.$(a);if("off"===t.live)return void C(a);n[a]=setTimeout((function(){d.rt_qc_mCSbar(t),"once"===t.live&&d.length&&C(a)}),500)}else C(a);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":g(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!==e(t.mouseWheel)&&!0===t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=f(t.scrollButtons.scrollType),p(t),r.$(c).each((function(){var e=r.$(this);if(!e.data(o)){e.data(o,{idx:++l,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:e.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var a=e.data(o),i=a.opt,s=e.data("mcs-axis"),n=e.data("mcs-scrollbar-position"),c=e.data("mcs-theme");s&&(i.axis=s),n&&(i.scrollbarPosition=n),c&&(i.theme=c,p(i)),L.call(this),a&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),r.$("#rt_qc_mCSB_"+a.idx+"_container img:not(."+h[2]+")").addClass(h[2]),_.update.call(null,e)}}))},update:function(t,e){var a=t||u.call(this);return r.$(a).each((function(){var t=r.$(this);if(t.data(o)){var a=t.data(o),i=a.opt,s=r.$("#rt_qc_mCSB_"+a.idx+"_container"),l=r.$("#rt_qc_mCSB_"+a.idx),n=[r.$("#rt_qc_mCSB_"+a.idx+"_dragger_vertical"),r.$("#rt_qc_mCSB_"+a.idx+"_dragger_horizontal")];if(!s.length)return;a.tweenRunning&&$(t),e&&a&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(h[3])&&t.removeClass(h[3]),t.hasClass(h[4])&&t.removeClass(h[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),E.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||s.css("width",m(s)),a.overflowed=x.call(this),R.call(this),i.autoDraggerLength&&y.call(this),v.call(this),S.call(this);var c=[Math.abs(s[0].offsetTop),Math.abs(s[0].offsetLeft)];"x"!==i.axis&&(a.overflowed[0]?n[0].height()>n[0].parent().height()?Q.call(this):(Y(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),a.contentReset.y=null):(Q.call(this),"y"===i.axis?T.call(this):"yx"===i.axis&&a.overflowed[1]&&Y(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(a.overflowed[1]?n[1].width()>n[1].parent().width()?Q.call(this):(Y(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),a.contentReset.x=null):(Q.call(this),"x"===i.axis?T.call(this):"yx"===i.axis&&a.overflowed[0]&&Y(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),e&&a&&(2===e&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===e&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),K.call(this)}}))},scrollTo:function(t,e,a){if(null!=t){var i=u.call(this);return r.$(i).each((function(){var i=r.$(this);if(i.data(o)){var s=i.data(o),l=s.opt,n={trigger:"external",scrollInertia:l.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},c=r.$.extend(!0,{},n,e),d=W.call(this,t),h=c.scrollInertia>0&&c.scrollInertia<17?17:c.scrollInertia;d[0]=V.call(this,d[0],"y"),d[1]=V.call(this,d[1],"x"),c.moveDragger&&(d[0]*=s.scrollRatio.y,d[1]*=s.scrollRatio.x),c.dur=it()?0:h,setTimeout((function(){null!==d[0]&&void 0!==d[0]&&"x"!==l.axis&&s.overflowed[0]&&(c.dir="y",c.overwrite="all",Y(i,d[0].toString(),c,a)),null!==d[1]&&void 0!==d[1]&&"y"!==l.axis&&s.overflowed[1]&&(c.dir="x",c.overwrite="none",Y(i,d[1].toString(),c,a))}),c.timeout)}}))}},stop:function(){var t=u.call(this);return r.$(t).each((function(){var t=r.$(this);t.data(o)&&$(t)}))},disable:function(t){var e=u.call(this);return r.$(e).each((function(){var e=r.$(this);e.data(o)&&(e.data(o),K.call(this,"remove"),T.call(this),t&&Q.call(this),R.call(this,!0),e.addClass(h[3]))}))},destroy:function(){var t=u.call(this);return r.$(t).each((function(){var e=r.$(this);if(e.data(o)){var i=e.data(o),s=i.opt,l=r.$("#rt_qc_mCSB_"+i.idx),n=r.$("#rt_qc_mCSB_"+i.idx+"_container"),c=r.$(".rt_qc_mCSB_"+i.idx+"_scrollbar");s.live&&C(s.liveSelector||r.$(t).selector),K.call(this,"remove"),T.call(this),Q.call(this),e.removeData(o),tt(this,"mcs"),c.remove(),n.find("img."+h[2]).removeClass(h[2]),l.replaceWith(n.contents()),e.removeClass(a+" _"+o+"_"+i.idx+" "+h[6]+" "+h[7]+" "+h[5]+" "+h[3]).addClass(h[4])}}))}},u=function(){return"object"!==e(r.$(this))||r.$(this).length<1?i:this},p=function(t){t.autoDraggerLength=!(r.$.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(r.$.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(r.$.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=r.$.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=r.$.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},C=function(t){n[t]&&(clearTimeout(n[t]),tt(n,t))},g=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},f=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},L=function(){var t=r.$(this),e=t.data(o),i=e.opt,s=i.autoExpandScrollbar?" "+h[1]+"_expand":"",l=["<div id='rt_qc_mCSB_"+e.idx+"_scrollbar_vertical' class='rt_qc_mCSB_scrollTools rt_qc_mCSB_"+e.idx+"_scrollbar rt_qc_mCS-"+i.theme+" rt_qc_mCSB_scrollTools_vertical"+s+"'><div class='"+h[12]+"'><div id='rt_qc_mCSB_"+e.idx+"_dragger_vertical' class='rt_qc_mCSB_dragger' style='position:absolute;'><div class='rt_qc_mCSB_dragger_bar' /></div><div class='rt_qc_mCSB_draggerRail' /></div></div>","<div id='rt_qc_mCSB_"+e.idx+"_scrollbar_horizontal' class='rt_qc_mCSB_scrollTools rt_qc_mCSB_"+e.idx+"_scrollbar rt_qc_mCS-"+i.theme+" rt_qc_mCSB_scrollTools_horizontal"+s+"'><div class='"+h[12]+"'><div id='rt_qc_mCSB_"+e.idx+"_dragger_horizontal' class='rt_qc_mCSB_dragger' style='position:absolute;'><div class='rt_qc_mCSB_dragger_bar' /></div><div class='rt_qc_mCSB_draggerRail' /></div></div>"],n="yx"===i.axis?"rt_qc_mCSB_vertical_horizontal":"x"===i.axis?"rt_qc_mCSB_horizontal":"rt_qc_mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],d="yx"===i.axis?"<div id='rt_qc_mCSB_"+e.idx+"_container_wrapper' class='rt_qc_mCSB_container_wrapper' />":"",_=i.autoHideScrollbar?" "+h[6]:"",u="x"!==i.axis&&"rtl"===e.langDir?" "+h[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===e.langDir?"989999px":i.setLeft,t.addClass(a+" _"+o+"_"+e.idx+_+u).wrapInner("<div id='rt_qc_mCSB_"+e.idx+"' class='rt_qc_mCSBox rt_qc_mCS-"+i.theme+" "+n+"'><div id='rt_qc_mCSB_"+e.idx+"_container' class='rt_qc_mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+e.langDir+"' /></div>");var p=r.$("#rt_qc_mCSB_"+e.idx),C=r.$("#rt_qc_mCSB_"+e.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||C.css("width",m(C)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),p.addClass("rt_qc_mCSB_outside").after(c)):(p.addClass("rt_qc_mCSB_inside").append(c),C.wrap(d)),b.call(this);var g=[r.$("#rt_qc_mCSB_"+e.idx+"_dragger_vertical"),r.$("#rt_qc_mCSB_"+e.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},m=function(t){var e=[t[0].scrollWidth,Math.max.apply(Math,t.children().map((function(){return r.$(this).outerWidth(!0)})).get())],a=t.parent().width();return e[0]>a?e[0]:e[1]>a?e[1]:"100%"},E=function(){var t=r.$(this).data(o),e=t.opt,a=r.$("#rt_qc_mCSB_"+t.idx+"_container");if(e.advanced.autoExpandHorizontalScroll&&"y"!==e.axis){a.css({width:"auto","min-width":0,"overflow-x":"scroll"});var i=Math.ceil(a[0].scrollWidth);3===e.advanced.autoExpandHorizontalScroll||2!==e.advanced.autoExpandHorizontalScroll&&i>a.parent().width()?a.css({width:i,"min-width":"100%","overflow-x":"inherit"}):a.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='rt_qc_mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(a[0].getBoundingClientRect().right+.4)-Math.floor(a[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},b=function(){var t=r.$(this).data(o),e=t.opt,a=r.$(".rt_qc_mCSB_"+t.idx+"_scrollbar:first"),i=at(e.scrollButtons.tabindex)?"tabindex='"+e.scrollButtons.tabindex+"'":"",s=["<a title='QCell scroll up' href='#' class='"+h[13]+"' "+i+" />","<a title='QCell scroll down' href='#' class='"+h[14]+"' "+i+" />","<a title='QCell scroll left' href='#' class='"+h[15]+"' "+i+" />","<a title='QCell scroll right' href='#' class='"+h[16]+"' "+i+" />"],l=["x"===e.axis?s[2]:s[0],"x"===e.axis?s[3]:s[1],s[2],s[3]];e.scrollButtons.enable&&a.prepend(l[0]).append(l[1]).next(".rt_qc_mCSB_scrollTools").prepend(l[2]).append(l[3])},y=function(){var t=r.$(this).data(o),e=r.$("#rt_qc_mCSB_"+t.idx),a=r.$("#rt_qc_mCSB_"+t.idx+"_container"),i=[r.$("#rt_qc_mCSB_"+t.idx+"_dragger_vertical"),r.$("#rt_qc_mCSB_"+t.idx+"_dragger_horizontal")],s=[e.height()/a.outerHeight(!1),e.width()/a.outerWidth(!1)],l=[parseInt(i[0].css("min-height")),Math.round(s[0]*i[0].parent().height()),parseInt(i[1].css("min-width")),Math.round(s[1]*i[1].parent().width())],n=c&&l[1]<l[0]?l[0]:l[1],d=c&&l[3]<l[2]?l[2]:l[3];i[0].css({height:n,"max-height":i[0].parent().height()-10}).find(".rt_qc_mCSB_dragger_bar").css({"line-height":l[0]+"px"}),i[1].css({width:d,"max-width":i[1].parent().width()-10})},v=function(){var t=r.$(this).data(o),e=r.$("#rt_qc_mCSB_"+t.idx),a=r.$("#rt_qc_mCSB_"+t.idx+"_container"),i=[r.$("#rt_qc_mCSB_"+t.idx+"_dragger_vertical"),r.$("#rt_qc_mCSB_"+t.idx+"_dragger_horizontal")],s=[a.outerHeight(!1)-e.height(),a.outerWidth(!1)-e.width()],l=[s[0]/(i[0].parent().height()-i[0].height()),s[1]/(i[1].parent().width()-i[1].width())];t.scrollRatio={y:l[0],x:l[1]}},w=function(t,e,r){var a=r?h[0]+"_expanded":"",o=t.closest(".rt_qc_mCSB_scrollTools");"active"===e?(t.toggleClass(h[0]+" "+a),o.toggleClass(h[1]),t[0]._draggable=t[0]._draggable?0:1):t[0]._draggable||("hide"===e?(t.removeClass(h[0]),o.removeClass(h[1])):(t.addClass(h[0]),o.addClass(h[1])))},x=function(){var t=r.$(this).data(o),e=r.$("#rt_qc_mCSB_"+t.idx),a=r.$("#rt_qc_mCSB_"+t.idx+"_container"),i=null===t.overflowed?a.height():a.outerHeight(!1),s=null===t.overflowed?a.width():a.outerWidth(!1),l=a[0].scrollHeight,n=a[0].scrollWidth;return l>i&&(i=l),n>s&&(s=n),[i>e.height(),s>e.width()]},Q=function(){var t=r.$(this),e=t.data(o),a=e.opt,i=r.$("#rt_qc_mCSB_"+e.idx),s=r.$("#rt_qc_mCSB_"+e.idx+"_container"),l=[r.$("#rt_qc_mCSB_"+e.idx+"_dragger_vertical"),r.$("#rt_qc_mCSB_"+e.idx+"_dragger_horizontal")];if($(t),("x"!==a.axis&&!e.overflowed[0]||"y"===a.axis&&e.overflowed[0])&&(l[0].add(s).css("top",0),Y(t,"_resetY")),"y"!==a.axis&&!e.overflowed[1]||"x"===a.axis&&e.overflowed[1]){var n=0,c=0;"rtl"===e.langDir&&(n=i.width()-s.outerWidth(!1),c=Math.abs(n/e.scrollRatio.x)),s.css("left",n),l[1].css("left",c),Y(t,"_resetX")}},S=function(){var t=r.$(this),e=t.data(o),a=e.opt;e.bindEvents||(q.call(this),a.contentTouchScroll&&B.call(this),O.call(this),a.mouseWheel.enable&&k(t),U.call(this),F.call(this),a.advanced.autoScrollOnFocus&&H.call(this),a.scrollButtons.enable&&z.call(this),a.keyboard.enable&&j.call(this),e.bindEvents=!0)},k=function(t){var e=setTimeout((function(){r.$.event.special.mousewheel?(clearTimeout(e),D.call(t[0])):k(t)}),100)},T=function(){var t=r.$(this),e=t.data(o),a=e.opt,i=o+"_"+e.idx,s=".rt_qc_mCSB_"+e.idx+"_scrollbar",l=r.$("#rt_qc_mCSB_"+e.idx+",#rt_qc_mCSB_"+e.idx+"_container,#rt_qc_mCSB_"+e.idx+"_container_wrapper,"+s+" ."+h[12]+",#rt_qc_mCSB_"+e.idx+"_dragger_vertical,#rt_qc_mCSB_"+e.idx+"_dragger_horizontal,"+s+">a"),n=r.$("#rt_qc_mCSB_"+e.idx+"_container");a.advanced.releaseDraggableSelectors&&l.add(r.$(a.advanced.releaseDraggableSelectors)),a.advanced.extraDraggableSelectors&&l.add(r.$(a.advanced.extraDraggableSelectors)),e.bindEvents&&(r.$(document).add(r.$(!N()||window.top.document)).unbind("."+i),l.each((function(){r.$(this).unbind("."+i)})),clearTimeout(t[0]._focusTimeout),tt(t[0],"_focusTimeout"),clearTimeout(e.sequential.step),tt(e.sequential,"step"),clearTimeout(n[0].onCompleteTimeout),tt(n[0],"onCompleteTimeout"),e.bindEvents=!1)},R=function(t){var e=r.$(this),a=e.data(o),i=a.opt,s=r.$("#rt_qc_mCSB_"+a.idx+"_container_wrapper"),l=s.length?s:r.$("#rt_qc_mCSB_"+a.idx+"_container"),n=[r.$("#rt_qc_mCSB_"+a.idx+"_scrollbar_vertical"),r.$("#rt_qc_mCSB_"+a.idx+"_scrollbar_horizontal")],c=[n[0].find(".rt_qc_mCSB_dragger"),n[1].find(".rt_qc_mCSB_dragger")];"x"!==i.axis&&(a.overflowed[0]&&!t?(n[0].add(c[0]).add(n[0].children("a")).css("display","block"),l.removeClass(h[8]+" "+h[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(h[10])):(n[0].css("display","none"),l.addClass(h[10])),l.addClass(h[8]))),"y"!==i.axis&&(a.overflowed[1]&&!t?(n[1].add(c[1]).add(n[1].children("a")).css("display","block"),l.removeClass(h[9]+" "+h[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(h[11])):(n[1].css("display","none"),l.addClass(h[11])),l.addClass(h[9]))),a.overflowed[0]||a.overflowed[1]?e.removeClass(h[5]):e.addClass(h[5])},A=function(t){var e,a=t.type,o=t.target.ownerDocument!==document&&null!==window.frameElement?[r.$(window.frameElement).offset().top,r.$(window.frameElement).offset().left]:null,i=N()&&t.target.ownerDocument!==window.top.document&&null!==window.frameElement?[r.$(t.view.window.frameElement).offset().top,r.$(t.view.window.frameElement).offset().left]:[0,0];switch(a){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":e=o?[t.originalEvent.pageY-o[0]+i[0],t.originalEvent.pageX-o[1]+i[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];break;case"touchstart":case"touchmove":case"touchend":var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],l=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;e=t.target.ownerDocument!==document?[s.screenY,s.screenX,l>1]:[s.pageY,s.pageX,l>1];break;default:e=o?[t.pageY-o[0]+i[0],t.pageX-o[1]+i[1],!1]:[t.pageY,t.pageX,!1]}return e},q=function(){var t,e,a,i=r.$(this),s=i.data(o),l=s.opt,n=o+"_"+s.idx,h=["rt_qc_mCSB_"+s.idx+"_dragger_vertical","rt_qc_mCSB_"+s.idx+"_dragger_horizontal"],_=r.$("#rt_qc_mCSB_"+s.idx+"_container"),u=r.$("#"+h[0]+",#"+h[1]),p=l.advanced.releaseDraggableSelectors?u.add(r.$(l.advanced.releaseDraggableSelectors)):u,C=l.advanced.extraDraggableSelectors?r.$(!N()||window.top.document).add(r.$(l.advanced.extraDraggableSelectors)):r.$(!N()||window.top.document);function g(e,r,a,o){var n,c;_[0].idleTimer=l.scrollInertia<233?250:0,t.attr("id")===h[1]?(n="x",c=(t[0].offsetLeft-r+o)*s.scrollRatio[n]):(n="y",c=(t[0].offsetTop-e+a)*s.scrollRatio[n]),Y(i,c.toString(),{dir:n,drag:!0})}u.bind("contextmenu."+n,(function(t){t.preventDefault()})).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,(function(o){if(o.stopImmediatePropagation(),o.preventDefault(),et(o)){d=!0,c&&(document.onselectstart=function(){return!1}),P.call(_,!1),$(i);var s=(t=r.$(this)).offset(),n=A(o)[0]-s.top,h=A(o)[1]-s.left,u=t.height()+s.top,p=t.width()+s.left;n<u&&n>0&&h<p&&h>0&&(e=n,a=h),w(t,"active",l.autoExpandScrollbar)}})).bind("touchmove."+n,(function(r){r.stopImmediatePropagation(),r.preventDefault();var o=t.offset(),i=A(r)[0]-o.top,s=A(r)[1]-o.left;g(e,a,i,s)})),r.$(document).add(C).bind("mousemove."+n+" pointermove."+n+" MSPointerMove."+n,(function(r){if(t){var o=t.offset(),i=A(r)[0]-o.top,s=A(r)[1]-o.left;if(e===i&&a===s)return;g(e,a,i,s)}})).add(p).bind("mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n,(function(e){t&&(w(t,"active",l.autoExpandScrollbar),t=null),d=!1,c&&(document.onselectstart=null),P.call(_,!0)}))},B=function(){var e,a,i,s,l,n,c,h,_,u,p,C,g,f,L=r.$(this),m=L.data(o),E=m.opt,b=o+"_"+m.idx,y=r.$("#rt_qc_mCSB_"+m.idx),v=r.$("#rt_qc_mCSB_"+m.idx+"_container"),w=[r.$("#rt_qc_mCSB_"+m.idx+"_dragger_vertical"),r.$("#rt_qc_mCSB_"+m.idx+"_dragger_horizontal")],x=[],Q=[],S="yx"===E.axis?"none":"all",k=[],T=v.find("iframe"),R=["touchstart."+b+" pointerdown."+b+" MSPointerDown."+b,"touchmove."+b+" pointermove."+b+" MSPointerMove."+b,"touchend."+b+" pointerup."+b+" MSPointerUp."+b],q=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function B(r){if(!rt(r)||d||A(r)[2])t=0;else{t=1,g=0,f=0,e=1,L.removeClass("rt_qc_mCS_touch_action");var o=v.offset();a=A(r)[0]-o.top,i=A(r)[1]-o.left,k=[A(r)[0],A(r)[1]]}}function O(t){if(rt(t)&&!d&&!A(t)[2]&&(E.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!f||g)&&e)){c=Z();var r,o,s=y.offset(),l=A(t)[0]-s.top,n=A(t)[1]-s.left,h="mcsLinearOut";if(x.push(l),Q.push(n),k[2]=Math.abs(A(t)[0]-k[0]),k[3]=Math.abs(A(t)[1]-k[1]),m.overflowed[0]){var _=w[0].parent().height()-w[0].height();r=a-l>0&&l-a>-_*m.scrollRatio.y&&(2*k[3]<k[2]||"yx"===E.axis)}if(m.overflowed[1]){var u=w[1].parent().width()-w[1].width();o=i-n>0&&n-i>-u*m.scrollRatio.x&&(2*k[2]<k[3]||"yx"===E.axis)}r||o?(q||t.preventDefault(),g=1):(f=1,L.addClass("rt_qc_mCS_touch_action")),q&&t.preventDefault(),p="yx"===E.axis?[a-l,i-n]:"x"===E.axis?[null,i-n]:[a-l,null],v[0].idleTimer=250,m.overflowed[0]&&M(p[0],0,h,"y","all",!0),m.overflowed[1]&&M(p[1],0,h,"x",S,!0)}}function D(e){if(!rt(e)||d||A(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),$(L),n=Z();var r=y.offset();s=A(e)[0]-r.top,l=A(e)[1]-r.left,x=[],Q=[]}}function I(t){if(rt(t)&&!d&&!A(t)[2]){e=0,t.stopImmediatePropagation(),g=0,f=0,h=Z();var r=y.offset(),a=A(t)[0]-r.top,o=A(t)[1]-r.left;if(!(h-c>30)){var i="mcsEaseOut",L=(u=1e3/(h-n))<2.5,b=L?[x[x.length-2],Q[Q.length-2]]:[0,0];_=L?[a-b[0],o-b[1]]:[a-s,o-l];var w=[Math.abs(_[0]),Math.abs(_[1])];u=L?[Math.abs(_[0]/4),Math.abs(_[1]/4)]:[u,u];var k=[Math.abs(v[0].offsetTop)-_[0]*P(w[0]/u[0],u[0]),Math.abs(v[0].offsetLeft)-_[1]*P(w[1]/u[1],u[1])];p="yx"===E.axis?[k[0],k[1]]:"x"===E.axis?[null,k[1]]:[k[0],null],C=[4*w[0]+E.scrollInertia,4*w[1]+E.scrollInertia];var T=parseInt(E.contentTouchScroll)||0;p[0]=w[0]>T?p[0]:0,p[1]=w[1]>T?p[1]:0,m.overflowed[0]&&M(p[0],C[0],i,"y",S,!1),m.overflowed[1]&&M(p[1],C[1],i,"x",S,!1)}}}function P(t,e){var r=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?r[0]:r[3]:t>60?e>3?r[3]:r[2]:t>30?e>8?r[1]:e>6?r[0]:e>4?e:r[2]:e>8?e:r[3]}function M(t,e,r,a,o,i){t&&Y(L,t.toString(),{dur:e,scrollEasing:r,dir:a,overwrite:o,drag:i})}v.bind(R[0],(function(t){B(t)})).bind(R[1],(function(t){O(t)})),y.bind(R[0],(function(t){D(t)})).bind(R[2],(function(t){I(t)})),T.length&&T.each((function(){r.$(this).bind("load",(function(){N(this)&&r.$(this.contentDocument||this.contentWindow.document).bind(R[0],(function(t){B(t),D(t)})).bind(R[1],(function(t){O(t)})).bind(R[2],(function(t){I(t)}))}))}))},O=function(){var e,a=r.$(this),i=a.data(o),s=i.opt,l=i.sequential,n=o+"_"+i.idx,c=r.$("#rt_qc_mCSB_"+i.idx+"_container"),h=c.parent();function _(t,r,o){l.type=o&&e?"stepped":"stepless",l.scrollAmount=10,G(a,t,r,"mcsLinearOut",o?60:null)}c.bind("mousedown."+n,(function(r){t||e||(e=1,d=!0)})).add(document).bind("mousemove."+n,(function(r){if(!t&&e&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&document.selection.createRange().text)){var a=c.offset(),o=A(r)[0]-a.top+c[0].offsetTop,n=A(r)[1]-a.left+c[0].offsetLeft;o>0&&o<h.height()&&n>0&&n<h.width()?l.step&&_("off",null,"stepped"):("x"!==s.axis&&i.overflowed[0]&&(o<0?_("on",38):o>h.height()&&_("on",40)),"y"!==s.axis&&i.overflowed[1]&&(n<0?_("on",37):n>h.width()&&_("on",39)))}})).bind("mouseup."+n+" dragend."+n,(function(r){t||(e&&(e=0,_("off",null)),d=!1)}))},D=function(){if(r.$(this).data(o)){var t=r.$(this),e=t.data(o),a=e.opt,i=o+"_"+e.idx,s=r.$("#rt_qc_mCSB_"+e.idx),l=[r.$("#rt_qc_mCSB_"+e.idx+"_dragger_vertical"),r.$("#rt_qc_mCSB_"+e.idx+"_dragger_horizontal")],n=r.$("#rt_qc_mCSB_"+e.idx+"_container").find("iframe");n.length&&n.each((function(){r.$(this).bind("load",(function(){N(this)&&r.$(this.contentDocument||this.contentWindow.document).bind("mousewheel."+i,(function(t,e){d(t,e)}))}))})),s.bind("mousewheel."+i,(function(t,e){d(t,e)}))}function d(o,i){if($(t),!M(t,o.target)){var n,d,h,_,u,p,C,g="auto"!==a.mouseWheel.deltaFactor?parseInt(a.mouseWheel.deltaFactor):c&&o.deltaFactor<100?100:o.deltaFactor||100,f=a.scrollInertia;"x"===a.axis||"x"===a.mouseWheel.axis?(n="x",d=[Math.round(g*e.scrollRatio.x),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=s.width()?.9*s.width():d[0],_=Math.abs(r.$("#rt_qc_mCSB_"+e.idx+"_container")[0].offsetLeft),u=l[1][0].offsetLeft,p=l[1].parent().width()-l[1].width(),C="y"===a.mouseWheel.axis?o.deltaY||i:o.deltaX):(n="y",d=[Math.round(g*e.scrollRatio.y),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=s.height()?.9*s.height():d[0],_=Math.abs(r.$("#rt_qc_mCSB_"+e.idx+"_container")[0].offsetTop),u=l[0][0].offsetTop,p=l[0].parent().height()-l[0].height(),C=o.deltaY||i),"y"===n&&!e.overflowed[0]||"x"===n&&!e.overflowed[1]||((a.mouseWheel.invert||o.webkitDirectionInvertedFromDevice)&&(C=-C),a.mouseWheel.normalizeDelta&&(C=C<0?-1:1),(C>0&&0!==u||C<0&&u!==p||a.mouseWheel.preventDefault)&&(o.stopImmediatePropagation(),o.preventDefault()),o.deltaFactor<5&&!a.mouseWheel.normalizeDelta&&(h=o.deltaFactor,f=17),Y(t,(_-C*h).toString(),{dir:n,dur:f}))}}},I={},N=function(t){var e=!1,a=!1,o=null;if(void 0===t?a="#empty":void 0!==r.$(t).attr("id")&&(a=r.$(t).attr("id")),!1!==a&&void 0!==I[a])return I[a];if(t){try{o=(t.contentDocument||t.contentWindow.document).body.innerHTML}catch(t){r.QCELL.log("err","QCELL.Scroll",t.message)}e=null!==o}else{try{o=window.top.document.body.innerHTML}catch(t){r.QCELL.log("err","QCELL.Scroll",t.message)}e=null!==o}return!1!==a&&(I[a]=e),e},P=function(t){var e=this.find("iframe");if(e.length){var r=t?"auto":"none";e.css("pointer-events",r)}},M=function(t,e){var a=e.nodeName.toLowerCase(),i=t.data(o).opt.mouseWheel.disableOver;return r.$.inArray(a,i)>-1&&!(r.$.inArray(a,["select","textarea"])>-1&&!r.$(e).is(":focus"))},U=function(){var t,e=r.$(this),a=e.data(o),i=o+"_"+a.idx,s=r.$("#rt_qc_mCSB_"+a.idx+"_container"),l=s.parent();r.$(".rt_qc_mCSB_"+a.idx+"_scrollbar ."+h[12]).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,(function(e){d=!0,r.$(e.target).hasClass("rt_qc_mCSB_dragger")||(t=1)})).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,(function(t){d=!1})).bind("click."+i,(function(o){if(t&&(t=0,r.$(o.target).hasClass(h[12])||r.$(o.target).hasClass("rt_qc_mCSB_draggerRail"))){$(e);var i,n,c,d=r.$(this),_=d.find(".rt_qc_mCSB_dragger");if(d.parent(".rt_qc_mCSB_scrollTools_horizontal").length>0){if(!a.overflowed[1])return;i="x",n=o.pageX>_.offset().left?-1:1,c=Math.abs(s[0].offsetLeft)-n*(.9*l.width())}else{if(!a.overflowed[0])return;i="y",n=o.pageY>_.offset().top?-1:1,c=Math.abs(s[0].offsetTop)-n*(.9*l.height())}Y(e,c.toString(),{dir:i,scrollEasing:"mcsEaseInOut"})}}))},H=function(){var t=r.$(this),e=t.data(o),a=e.opt,i=o+"_"+e.idx,s=r.$("#rt_qc_mCSB_"+e.idx+"_container"),l=s.parent();s.bind("focusin."+i,(function(e){var o=r.$(document.activeElement),i=s.find(".mCustomScrollBox").length;o.is(a.advanced.autoScrollOnFocus)&&($(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?17*i:0,t[0]._focusTimeout=setTimeout((function(){var e=[ot(o)[0],ot(o)[1]],r=[s[0].offsetTop,s[0].offsetLeft],i=[r[0]+e[0]>=0&&r[0]+e[0]<l.height()-o.outerHeight(!1),r[1]+e[1]>=0&&r[0]+e[1]<l.width()-o.outerWidth(!1)],n="yx"!==a.axis||i[0]||i[1]?"all":"none";"x"===a.axis||i[0]||Y(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:n,dur:0}),"y"===a.axis||i[1]||Y(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:n,dur:0})}),t[0]._focusTimer))}))},F=function(){var t=r.$(this).data(o),e=o+"_"+t.idx,a=r.$("#rt_qc_mCSB_"+t.idx+"_container").parent();a.bind("scroll."+e,(function(t){0!==a.scrollTop()||a.scrollLeft()}))},z=function(){var t=r.$(this),e=t.data(o),a=e.opt,i=e.sequential,s=o+"_"+e.idx,l=".rt_qc_mCSB_"+e.idx+"_scrollbar";r.$(l+">a").bind("contextmenu."+s,(function(t){t.preventDefault()})).bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s+" mouseup."+s+" touchend."+s+" pointerup."+s+" MSPointerUp."+s+" mouseout."+s+" pointerout."+s+" MSPointerOut."+s+" click."+s,(function(o){if(o.preventDefault(),et(o)){var s=r.$(this).attr("class");switch(i.type=a.scrollButtons.scrollType,o.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;d=!0,e.tweenRunning=!1,l("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;d=!1,i.dir&&l("off",s);break;case"click":if("stepped"!==i.type||e.tweenRunning)return;l("on",s)}}function l(e,r){i.scrollAmount=a.scrollButtons.scrollAmount,G(t,e,r)}}))},j=function(){var t=r.$(this),e=t.data(o),a=e.opt,i=e.sequential,s=o+"_"+e.idx,l=r.$("#rt_qc_mCSB_"+e.idx),n=r.$("#rt_qc_mCSB_"+e.idx+"_container"),c=n.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",h=n.find("iframe"),_=["blur."+s+" keydown."+s+" keyup."+s];function u(o){var s,l;switch(o.type){case"blur":e.tweenRunning&&i.dir&&p("off",null);break;case"keydown":case"keyup":var h=o.keyCode?o.keyCode:o.which,_="on";if("x"!==a.axis&&(38===h||40===h)||"y"!==a.axis&&(37===h||39===h)){if((38===h||40===h)&&!e.overflowed[0]||(37===h||39===h)&&!e.overflowed[1])return;"keyup"===o.type&&(_="off"),r.$(document.activeElement).is(d)||(o.preventDefault(),o.stopImmediatePropagation(),p(_,h))}else if(33===h||34===h){if((e.overflowed[0]||e.overflowed[1])&&(o.preventDefault(),o.stopImmediatePropagation()),"keyup"===o.type){$(t);var u=34===h?-1:1;"x"===a.axis||"yx"===a.axis&&e.overflowed[1]&&!e.overflowed[0]?(s="x",l=Math.abs(n[0].offsetLeft)-u*(.9*c.width())):(s="y",l=Math.abs(n[0].offsetTop)-u*(.9*c.height())),Y(t,l.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}}else 35!==h&&36!==h||r.$(document.activeElement).is(d)||((e.overflowed[0]||e.overflowed[1])&&(o.preventDefault(),o.stopImmediatePropagation()),"keyup"===o.type&&("x"===a.axis||"yx"===a.axis&&e.overflowed[1]&&!e.overflowed[0]?(s="x",l=35===h?Math.abs(c.width()-n.outerWidth(!1)):0):(s="y",l=35===h?Math.abs(c.height()-n.outerHeight(!1)):0),Y(t,l.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})))}function p(r,o){i.type=a.keyboard.scrollType,i.scrollAmount=a.keyboard.scrollAmount,"stepped"===i.type&&e.tweenRunning||G(t,r,o)}}h.length&&h.each((function(){r.$(this).bind("load",(function(){N(this)&&r.$(this.contentDocument||this.contentWindow.document).bind(_[0],(function(t){u(t)}))}))})),l.attr("tabindex","0").bind(_[0],(function(t){u(t)}))},G=function(t,e,a,i,s){var l=t.data(o),n=l.opt,c=l.sequential,d=r.$("#rt_qc_mCSB_"+l.idx+"_container"),_="stepped"===c.type,u=n.scrollInertia<26?26:n.scrollInertia,p=n.scrollInertia<1?17:n.scrollInertia;switch(e){case"on":if(c.dir=[a===h[16]||a===h[15]||39===a||37===a?"x":"y",a===h[13]||a===h[15]||38===a||37===a?-1:1],$(t),at(a)&&"stepped"===c.type)return;C(_);break;case"off":clearTimeout(c.step),tt(c,"step"),$(t),(_||l.tweenRunning&&c.dir)&&C(!0)}function C(e){n.snapAmount&&(c.scrollAmount=n.snapAmount instanceof Array?"x"===c.dir[0]?n.snapAmount[1]:n.snapAmount[0]:n.snapAmount);var r="stepped"!==c.type,a=s||(e?r?u/1.5:p:1e3/60),o=e?r?7.5:40:2.5,h=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],_=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===c.dir[0]?h[1]+c.dir[1]*(_[1]*o):h[0]+c.dir[1]*(_[0]*o),f="x"===c.dir[0]?h[1]+c.dir[1]*parseInt(c.scrollAmount):h[0]+c.dir[1]*parseInt(c.scrollAmount),L="auto"!==c.scrollAmount?f:g,m=i||(e?r?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),E=!!e;e&&a<17&&(L="x"===c.dir[0]?h[1]:h[0]),Y(t,L.toString(),{dir:c.dir[0],scrollEasing:m,dur:a,onComplete:E}),e?c.dir=!1:(clearTimeout(c.step),c.step=setTimeout((function(){C()}),a))}},W=function(t){var e=r.$(this).data(o).opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===e.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===e.axis?null:t,a[1]=t.x?t.x:t.y||"y"===e.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},V=function(t,a){if(null!=t){var i,s=r.$(this),l=s.data(o),n=l.opt,c=r.$("#rt_qc_mCSB_"+l.idx+"_container"),d=c.parent(),h=e(t);a||(a="x"===n.axis?"x":"y");var u="x"===a?c.outerWidth(!1)-d.width():c.outerHeight(!1)-d.height(),p="x"===a?c[0].offsetLeft:c[0].offsetTop,C="x"===a?"left":"top";switch(h){case"function":return t();case"object":if(!(i=t.jquery?t:r.$(t)).length)return;return"x"===a?ot(i)[1]:ot(i)[0];case"string":case"number":if(at(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(u*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(p-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var g=p+parseInt(t.split("+=")[1]);return g>=0?0:Math.abs(g)}return-1!==t.indexOf("px")&&at(t.split("px")[0])?Math.abs(t.split("px")[0]):"top"===t||"left"===t?0:"bottom"===t?Math.abs(d.height()-c.outerHeight(!1)):"right"===t?Math.abs(d.width()-c.outerWidth(!1)):"first"===t||"last"===t?(i=c.find(":"+t),"x"===a?ot(i)[1]:ot(i)[0]):r.$(t).length?"x"===a?ot(r.$(t))[1]:ot(r.$(t))[0]:(c.css(C,t),void _.update.call(null,s[0]))}}},K=function(t){var e=r.$(this),a=e.data(o),i=a.opt,s=r.$("#rt_qc_mCSB_"+a.idx+"_container");if(t)return clearTimeout(s[0].autoUpdate),void tt(s[0],"autoUpdate");function l(t){clearTimeout(s[0].autoUpdate),_.update.call(null,e[0],t)}!function t(){clearTimeout(s[0].autoUpdate),0!==e.parents("html").length?s[0].autoUpdate=setTimeout((function(){return i.advanced.updateOnSelectorChange&&(a.poll.change.n=function(){!0===i.advanced.updateOnSelectorChange&&(i.advanced.updateOnSelectorChange="*");var t=0,e=s.find(i.advanced.updateOnSelectorChange);return i.advanced.updateOnSelectorChange&&e.length>0&&e.each((function(){t+=this.offsetHeight+this.offsetWidth})),t}(),a.poll.change.n!==a.poll.change.o)?(a.poll.change.o=a.poll.change.n,void l(3)):i.advanced.updateOnContentResize&&(a.poll.size.n=e[0].scrollHeight+e[0].scrollWidth+s[0].offsetHeight+e[0].offsetHeight+e[0].offsetWidth,a.poll.size.n!==a.poll.size.o)?(a.poll.size.o=a.poll.size.n,void l(1)):!i.advanced.updateOnImageLoad||"auto"===i.advanced.updateOnImageLoad&&"y"===i.axis||(a.poll.img.n=s.find("img").length,a.poll.img.n===a.poll.img.o)?void((i.advanced.updateOnSelectorChange||i.advanced.updateOnContentResize||i.advanced.updateOnImageLoad)&&t()):(a.poll.img.o=a.poll.img.n,void s.find("img").each((function(){!function(t){if(r.$(t).hasClass(h[2]))l();else{var e,a,o=new Image;o.onload=(e=o,a=function(){this.onload=null,r.$(t).addClass(h[2]),l(2)},function(){return a.apply(e,arguments)}),o.src=t.src}}(this)})))}),i.advanced.autoUpdateTimeout):e=null}()},$=function(t){var e=t.data(o);r.$("#rt_qc_mCSB_"+e.idx+"_container,#rt_qc_mCSB_"+e.idx+"_container_wrapper,#rt_qc_mCSB_"+e.idx+"_dragger_vertical,#rt_qc_mCSB_"+e.idx+"_dragger_horizontal").each((function(){J.call(this)}))},Y=function(t,e,a,i){var s=t.data(o);if(void 0!==s){var l=s.opt,n={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:l.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},c=r.$.extend(n,a),d=[c.dur,c.drag?0:c.dur],h=r.$("#rt_qc_mCSB_"+s.idx),_=r.$("#rt_qc_mCSB_"+s.idx+"_container"),u=_.parent(),p=l.callbacks.onTotalScrollOffset?W.call(t,l.callbacks.onTotalScrollOffset):[0,0],C=l.callbacks.onTotalScrollBackOffset?W.call(t,l.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=c.trigger,0===u.scrollTop()&&0===u.scrollLeft()||(r.$(".rt_qc_mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),u.scrollTop(0).scrollLeft(0)),"_resetY"!==e||s.contentReset.y||(Q("onOverflowYNone")&&l.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==e||s.contentReset.x||(Q("onOverflowXNone")&&l.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){var g,f,L,m,E,b,y,v,x;switch(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(Q("onOverflowY")&&l.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(Q("onOverflowX")&&l.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),l.snapAmount&&(e=function(t,e,r){return Math.round(t/e)*e-r}(e,l.snapAmount instanceof Array?"x"===c.dir?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount,l.snapOffset)),c.dir){case"x":g=r.$("#rt_qc_mCSB_"+s.idx+"_dragger_horizontal"),f="left",L=_[0].offsetLeft,m=[h.width()-_.outerWidth(!1),g.parent().width()-g.width()],E=[e,0===e?0:e/s.scrollRatio.x],b=p[1],y=C[1],v=b>0?b/s.scrollRatio.x:0,x=y>0?y/s.scrollRatio.x:0;break;case"y":g=r.$("#rt_qc_mCSB_"+s.idx+"_dragger_vertical"),f="top",L=_[0].offsetTop,m=[h.height()-_.outerHeight(!1),g.parent().height()-g.height()],E=[e,0===e?0:e/s.scrollRatio.y],b=p[0],y=C[0],v=b>0?b/s.scrollRatio.y:0,x=y>0?y/s.scrollRatio.y:0}E[1]<0||0===E[0]&&0===E[1]?E=[0,0]:E[1]>=m[1]?E=[m[0],m[1]]:E[0]=-E[0],t[0].mcs||(S(l),Q("onInit")&&l.callbacks.onInit.call(t[0],i)),clearTimeout(_[0].onCompleteTimeout),X(g[0],f,Math.round(E[1]),d[1],c.scrollEasing),!s.tweenRunning&&(0===L&&E[0]>=0||L===m[0]&&E[0]<=m[0])||X(_[0],f,Math.round(E[0]),d[0],c.scrollEasing,c.overwrite,{onStart:function(){c.callbacks&&c.onStart&&!s.tweenRunning&&(Q("onScrollStart")&&(S(l),l.callbacks.onScrollStart.call(t[0],i)),s.tweenRunning=!0,w(g),s.cbOffsets=[l.callbacks.alwaysTriggerOffsets||L>=m[0]+b,l.callbacks.alwaysTriggerOffsets||L<=-y])},onUpdate:function(){c.callbacks&&c.onUpdate&&Q("whileScrolling")&&(S(l),l.callbacks.whileScrolling.call(t[0],i))},onComplete:function(){if(c.callbacks&&c.onComplete){"yx"===l.axis&&clearTimeout(_[0].onCompleteTimeout);var e=_[0].idleTimer||0;_[0].onCompleteTimeout=setTimeout((function(){Q("onScroll")&&(S(l),l.callbacks.onScroll.call(t[0],i)),Q("onTotalScroll")&&E[1]>=m[1]-v&&s.cbOffsets[0]&&(S(l),l.callbacks.onTotalScroll.call(t[0],i)),Q("onTotalScrollBack")&&E[1]<=x&&s.cbOffsets[1]&&(S(l),l.callbacks.onTotalScrollBack.call(t[0],i)),s.tweenRunning=!1,_[0].idleTimer=0,w(g,"hide")}),e)}}})}}function Q(t){return s&&l.callbacks[t]&&"function"==typeof l.callbacks[t]}function S(e){var r=[_[0].offsetTop,_[0].offsetLeft],a=[g[0].offsetTop,g[0].offsetLeft],o=[_.outerHeight(!1),_.outerWidth(!1)],i=[h.height(),h.width()];t[0].mcs={content:_,top:r[0],left:r[1],draggerTop:a[0],draggerLeft:a[1],topPct:Math.round(100*Math.abs(r[0])/(Math.abs(o[0])-i[0])),leftPct:Math.round(100*Math.abs(r[1])/(Math.abs(o[1])-i[1])),direction:c.dir,target:null===e.target?null:e.target}}},X=function(t,e,r,a,o,i,s){t._mTween||(t._mTween={top:{},left:{}});var l,n,c=s||{},d=c.onStart||function(){},h=c.onUpdate||function(){},_=c.onComplete||function(){},u=Z(),p=0,C=t.offsetTop,g=t.style,f=t._mTween[e];"left"===e&&(C=t.offsetLeft);var L=r-C;function m(){a>0?(f.currVal=function(t,e,r,a,o){var i,s;switch(o){case"linear":case"mcsLinear":return r*t/a+e;case"mcsLinearOut":return t/=a,t--,r*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return(t/=a/2)<1?r/2*t*t+e:-r/2*(--t*(t-2)-1)+e;case"easeInOutStrong":return(t/=a/2)<1?r/2*Math.pow(2,10*(t-1))+e:(t--,r/2*(2-Math.pow(2,-10*t))+e);case"easeInOut":case"mcsEaseInOut":return(t/=a/2)<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e;case"easeOutSmooth":return t/=a,-r*(--t*t*t*t-1)+e;case"easeOutStrong":return r*(1-Math.pow(2,-10*t/a))+e;default:return e+r*(.499999999999997*(s=(i=(t/=a)*t)*t)*i+-2.5*i*i+5.5*s+-6.5*i+4*t)}}(f.time,C,L,a,o),g[e]=Math.round(f.currVal)+"px"):g[e]=r+"px",h.call()}f.stop=0,"none"!==i&&null!==f.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(f.id):clearTimeout(f.id),f.id=null),l=1e3/60,f.time=p+l,n=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return m(),setTimeout(t,.01)},f.id=n((function t(){f.stop||(p||d.call(),p=Z()-u,m(),p>=f.time&&(f.time=p>f.time?p+l-(p-f.time):p+l-1,f.time<p+1&&(f.time=p+1)),f.time<a?f.id=n(t):_.call())}))},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},J=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],r=0;r<e.length;r++){var a=e[r];t._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(t._mTween[a].id):clearTimeout(t._mTween[a].id),t._mTween[a].id=null,t._mTween[a].stop=1)}},tt=function(t,e){try{delete t[e]}catch(r){t[e]=null}},et=function(t){return!(t.which&&1!==t.which)},rt=function(t){var e=t.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},at=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ot=function(t){var e=t.parents(".rt_qc_mCSB_container");return[t.offset().top-e.offset().top,t.offset().left-e.offset().left]},it=function(){var t=function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden"in document)return t[e]+"Hidden";return null}();return!!t&&document[t]};r.$.fn[a]=function(t){return _[t]?_[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==e(t)&&t?void r.$.error("Method "+t+" does not exist"):_.init.apply(this,arguments)},r.$[a]=function(t){return _[t]?_[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==e(t)&&t?void r.$.error("Method "+t+" does not exist"):_.init.apply(this,arguments)},r.$[a].defaults=s,window[a]=!0,r.$(window).bind("load",(function(){r.$(i)[a](),r.$.extend(r.$.expr[":"],{mcsInView:r.$.expr[":"].mcsInView||function(t){var e,a,o=r.$(t),i=o.parents(".rt_qc_mCSB_container");if(i.length)return e=i.parent(),(a=[i[0].offsetTop,i[0].offsetLeft])[0]+ot(o)[0]>=0&&a[0]+ot(o)[0]<e.height()-o.outerHeight(!1)&&a[1]+ot(o)[1]>=0&&a[1]+ot(o)[1]<e.width()-o.outerWidth(!1)},mcsInSight:r.$.expr[":"].mcsInSight||function(t,e,a){var o,i,s,l,n=r.$(t),c=n.parents(".rt_qc_mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return o=[n.outerHeight(!1),n.outerWidth(!1)],s=[c[0].offsetTop+ot(n)[0],c[0].offsetLeft+ot(n)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],s[0]-i[0]*(l=[o[0]<i[0]?d[0]:d[1],o[1]<i[1]?d[0]:d[1]])[0][0]<0&&s[0]+o[0]-i[0]*l[0][1]>=0&&s[1]-i[1]*l[1][0]<0&&s[1]+o[1]-i[1]*l[1][1]>=0},mcsOverflow:r.$.expr[":"].mcsOverflow||function(t){var e=r.$(t).data(o);if(e)return e.overflowed[0]||e.overflowed[1]}})}))})),r.QCELL.BasicQCELL.prototype._getColSearchArea=function(){if(null===this.attr("colsearcharea")){var t=document.createElement("div");this.attr("colsearcharea",this._createColSearchArea(t),"jquery")}return this.attr("colsearcharea").clone(!0).get(0)},r.QCELL.BasicQCELL.prototype._createColSearchArea=function(t){var e=r.QCELL.def.css;return r.$(t.cloneNode()).addClass(e.COLSEARCH_AREA).on("mousedown",this.attr("eventparam"),(function(a){var o=a.target,i=a.data.target,s=parseInt(o.parentNode.getAttribute("data-col")),l=r.$(t.cloneNode()).addClass(e.COLSEARCH_UI_AREA);i.attr("colsearchuivisible")&&i._removeColSearUIArea(),r.$(this).addClass(e.COLSEARCH_AREA_HOVER),"string"===i._getQCellCol(s).attr("datatype")?i._createStringColSearchUIArea(s,l):i._createNumberColSearchUIArea(s,l),i._showColSearchUIArea(o,s)}))},r.QCELL.BasicQCELL.prototype._createStringColSearchUIArea=function(t,e){var a,o,i,s,l=r.QCELL.def.css,n=r.$(document.createElement("div")),c=r.$(document.createElement("button")).addClass(l.COLSEARCH_UI_BTN),d=r.$(document.createElement("span")),h=r.$(document.createElement("input")),_=this.attr("headertext")[t][this.attr("headertext")[t].length-1],u=this.attr("id")+"_colsearch_text_"+t,p=this.attr("id")+"_colsearch_msg_"+t,C=this.attr("headerrows"),g=this.attr("colsearchinfo"),f=this.attr("paginationinfo"),L="";void 0===g[t]&&(g[t]={},g[t].key="",g[t].arrColIdxs=[],g[t].move={}),e.css({display:"none",height:"120px",width:"180px"}),a=n.clone().css({"margin-bottom":"10px"}),d.clone().text(_).css({"font-weight":"bold","font-size":"15px"}).appendTo(a),n.clone().addClass(l.COLSEARCH_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("colsearchuivisible")&&e._removeColSearUIArea()})).appendTo(a),a.appendTo(e),o=n.clone(),h.clone().css({width:"100%",margin:"0px 5px 5px 0px"}).attr({id:u}).on("keydown",this.attr("eventparam"),(function(e){if(e.keyCode===r.def.key.ENTER){var a=this;setTimeout((function(){a.focus()}),500);var o,i=e.data.target,s=r.$("#"+u).val(),l=i.getIdx("row","focus"),n=[];if(r.$.trim(s).length>0){var c=i._getColData(t,!0);if(g[t].key!==s){for(o=0;o<c.length;o++)null!==c[o]&&void 0!==c[o]&&c[o].indexOf(s)>-1&&n.push(C+o);g[t].key=s,g[t].arrColIdxs=n,L=i._moveNexColSearchRow(t,l,n)}else if(r._.isUndefined(f))L=i._moveNexColSearchRow(t,l,g[t].arrColIdxs);else{for(o=0;o<c.length;o++)null!==c[o]&&void 0!==c[o]&&c[o].indexOf(s)>-1&&n.push(C+o);g[t].key=s,g[t].arrColIdxs=n,L=i._moveNexColSearchRow(t,l,n)}}else g[t].arrColIdxs=[],L="검색할 값을 입력하여 주십시오.";r.$("#"+p).text(L)}})).val(g[t].key).appendTo(o),o.appendTo(e),i=n.clone().css({"text-align":"center","margin-top":"10px"}),d.clone().text(r.QCELL.def.resource.search).appendTo(c.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var a,o=e.data.target,i=r.$("#"+u).val(),s=o.getIdx("row","focus"),l=[];if(r.$.trim(i).length>0){var n=o._getColData(t,!0);if(g[t].key!==i){for(a=0;a<n.length;a++)null!==n[a]&&void 0!==n[a]&&n[a].indexOf(i)>-1&&l.push(C+a);g[t].key=i,g[t].arrColIdxs=l,L=o._moveNexColSearchRow(t,s,l)}else if(r._.isUndefined(f))L=o._moveNexColSearchRow(t,s,g[t].arrColIdxs);else{for(a=0;a<n.length;a++)null!==n[a]&&void 0!==n[a]&&n[a].indexOf(i)>-1&&l.push(C+a);g[t].key=i,g[t].arrColIdxs=l,L=o._moveNexColSearchRow(t,s,l)}}else g[t].arrColIdxs=[],L="검색할 값을 입력하여 주십시오.";r.$("#"+p).text(L)})).appendTo(i)),d.clone().text(r.QCELL.def.resource.reset).appendTo(c.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){r.$("#"+u).val(""),g[t].key="",g[t].arrColIdxs=[],r.$("#"+p).text("")})).appendTo(i)),i.appendTo(e),s=n.clone().css({"text-align":"center","font-size":"11px","margin-top":"5px"}),d.clone().css({color:"red"}).attr("id",p).appendTo(s),s.appendTo(e),r.$(e).draggable({drag:function(){g[t].move.top=parseInt(e.css("top")),g[t].move.left=parseInt(e.css("left"))}}),this.attr("colsearchuiarea",e,"jquery")},r.QCELL.BasicQCELL.prototype._createNumberColSearchUIArea=function(t,e){var a,o,i,s,l,n=r.QCELL.def.css,c=r.$(document.createElement("div")),d=r.$(document.createElement("button")).addClass(n.COLSEARCH_UI_BTN),h=r.$(document.createElement("span")),_=r.$(document.createElement("input")),u=r.$(document.createElement("select")),p=r.$(document.createElement("option")),C=this.attr("headertext")[t][this.attr("headertext")[t].length-1],g=this.attr("id")+"_colsearch_text_"+t,f=this.attr("id")+"_colsearch_select_"+t,L=this.attr("id")+"_colsearch_msg_"+t,m=this.attr("headerrows"),E=this.attr("colsearchinfo"),b=this.attr("paginationinfo"),y="";void 0===E[t]&&(E[t]={},E[t].key="",E[t].operator="gt",E[t].arrColIdxs=[],E[t].move={}),e.css({display:"none",height:"140px",width:"220px"}),a=c.clone().css({"margin-bottom":"10px"}),h.clone().text(C).css({"font-weight":"bold","font-size":"15px"}).appendTo(a),c.clone().addClass(n.COLSEARCH_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("colsearchuivisible")&&e._removeColSearUIArea()})).appendTo(a),a.appendTo(e),o=c.clone(),i=c.clone(),_.clone().css({width:"100%",margin:"0px 5px 5px 0px"}).attr({id:g}).val(E[t].key).on("keydown",this.attr("eventparam"),(function(e){if(e.keyCode===r.def.key.ENTER){var a=this;setTimeout((function(){a.focus()}),500);var o,i=e.data.target,s=r.$("#"+g).val(),l=i.getIdx("row","focus"),n=[];if(r._.isNumber(parseFloat(r.$.trim(s)))&&!1===r._.isNaN(parseFloat(r.$.trim(s)))){var c=parseFloat(s),d=r.$("#"+f).val(),h=i._getColData(t,!0);if(E[t].key!==c||E[t].operator!==d){for(o=0;o<h.length;o++)switch(d){case"gt":h[o]>c&&n.push(m+o);break;case"ge":h[o]>=c&&n.push(m+o);break;case"lt":h[o]<c&&n.push(m+o);break;case"le":h[o]<=c&&n.push(m+o);break;case"eq":h[o]===c&&n.push(m+o);break;case"ne":h[o]!==c&&n.push(m+o)}E[t].key=c,E[t].operator=d,E[t].arrColIdxs=n,y=i._moveNexColSearchRow(t,l,n)}else if(r._.isUndefined(b))y=i._moveNexColSearchRow(t,l,E[t].arrColIdxs);else{for(o=0;o<h.length;o++)switch(d){case"gt":h[o]>c&&n.push(m+o);break;case"ge":h[o]>=c&&n.push(m+o);break;case"lt":h[o]<c&&n.push(m+o);break;case"le":h[o]<=c&&n.push(m+o);break;case"eq":h[o]===c&&n.push(m+o);break;case"ne":h[o]!==c&&n.push(m+o)}E[t].key=c,E[t].operator=d,E[t].arrColIdxs=n,y=i._moveNexColSearchRow(t,l,n)}}else E[t].arrColIdxs=[],y="검색할 값이 없거나 숫자가 아닙니다.";r.$("#"+L).text(y)}})).appendTo(o),o.appendTo(e),p.clone().val("gt").text("크다(>)").attr("selected","gt"===E[t].operator).appendTo(u),p.clone().val("lt").text("작다(<)").attr("selected","lt"===E[t].operator).appendTo(u),p.clone().val("ge").text("크거나 같다(>=)").attr("selected","ge"===E[t].operator).appendTo(u),p.clone().val("le").text("작거나 같다(<=)").attr("selected","le"===E[t].operator).appendTo(u),p.clone().val("eq").text("같다(==)").attr("selected","eq"===E[t].operator).appendTo(u),p.clone().val("ne").text("같지 않다(!=)").attr("selected","ne"===E[t].operator).appendTo(u),u.css({height:"20px",width:"100%",margin:"0"}).attr({id:f}).appendTo(i),i.appendTo(e),s=c.clone().css({"text-align":"center","margin-top":"10px"}).attr({id:g}),h.clone().text(r.QCELL.def.resource.search).appendTo(d.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var a,o=e.data.target,i=r.$("#"+g).val(),s=o.getIdx("row","focus"),l=[];if(r._.isNumber(parseFloat(r.$.trim(i)))&&!1===r._.isNaN(parseFloat(r.$.trim(i)))){var n=parseFloat(i),c=r.$("#"+f).val(),d=o._getColData(t,!0);if(E[t].key!==n||E[t].operator!==c){for(a=0;a<d.length;a++)switch(c){case"gt":d[a]>n&&l.push(m+a);break;case"ge":d[a]>=n&&l.push(m+a);break;case"lt":d[a]<n&&l.push(m+a);break;case"le":d[a]<=n&&l.push(m+a);break;case"eq":d[a]===n&&l.push(m+a);break;case"ne":d[a]!==n&&l.push(m+a)}E[t].key=n,E[t].operator=c,E[t].arrColIdxs=l,y=o._moveNexColSearchRow(t,s,l)}else if(r._.isUndefined(b))y=o._moveNexColSearchRow(t,s,E[t].arrColIdxs);else{for(a=0;a<d.length;a++)switch(c){case"gt":d[a]>n&&l.push(m+a);break;case"ge":d[a]>=n&&l.push(m+a);break;case"lt":d[a]<n&&l.push(m+a);break;case"le":d[a]<=n&&l.push(m+a);break;case"eq":d[a]===n&&l.push(m+a);break;case"ne":d[a]!==n&&l.push(m+a)}E[t].key=n,E[t].operator=c,E[t].arrColIdxs=l,y=o._moveNexColSearchRow(t,s,l)}}else E[t].arrColIdxs=[],y="검색할 값이 없거나 숫자가 아닙니다.";r.$("#"+L).text(y)})).appendTo(s)),h.clone().text(r.QCELL.def.resource.reset).appendTo(d.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){r.$("#"+g).val(""),r.$("#"+f+" option:eq(0)").prop("selected",!0),E[t].key="",E[t].operator="gt",E[t].arrColIdxs=[],r.$("#"+L).text("")})).appendTo(s)),s.appendTo(e),l=c.clone().css({"text-align":"center","font-size":"11px","margin-top":"5px"}),h.clone().css({color:"red"}).attr("id",L).appendTo(l),l.appendTo(e),r.$(e).draggable({drag:function(){E[t].move.top=parseInt(e.css("top")),E[t].move.left=parseInt(e.css("left"))}}),this.attr("colsearchuiarea",e,"jquery")},r.QCELL.BasicQCELL.prototype._moveNexColSearchRow=function(t,e,r){var a=this,o=0,i="";if(r.length>0){for(var s=0;s<r.length;s++){if(e<r[s]){o=r[s];break}s===r.length-1&&(o=r[0])}a._scrollTop(o),setTimeout((function(){a._clickCell(o,t)}),100)}else i="검색 데이터가 없습니다.";return i},r.QCELL.BasicQCELL.prototype._showColSearchUIArea=function(t,e){var a=r.QCELL.def.css,o=this.attr("colsearchuiarea"),i=this.attr("layoutsize").viewport.offsetLeft,s=t.parentNode.offsetLeft+i,l=t.parentNode.offsetTop+this.attr("layoutsize").colheader.offsetHeight-r.$("."+a.COLSEARCH_AREA).height()/2,n=this.attr("layoutsize").root.offsetWidth,c=parseInt(o.css("width")),d=parseInt(this._getColWidth(e)),h=this.attr("colsearchinfo"),_=r.$("."+a.COLSEARCH_AREA).width(),u=0,p=this.attr("id")+"_colsearch_text_"+e;o.appendTo(this.attr("elementpool").get("container")),"none"===o.css("display")&&o.css("display","inline-block"),u=s-_+2*c<n?s+d-_:s-c,!1===r._.isEmpty(h[e].move)&&(u=h[e].move.left,l=h[e].move.top),o.css({left:u+"px",top:l+"px"}),this.attr("colsearchuivisible",!0,"boolean"),setTimeout((function(){r.$("#"+p).focus()}),0)},r.QCELL.BasicQCELL.prototype._removeColSearUIArea=function(){var t=r.QCELL.def.css;r.$("."+t.COLSEARCH_AREA).removeClass(t.COLSEARCH_AREA_HOVER),this.attr("colsearchuiarea").remove(),this.attr("colsearchuiarea",null,"jquery"),this.attr("colsearchuivisible",!1,"boolean")},r.QCELL.BasicQCELL.prototype._getSelectedRow=function(){var t=this._getIdxInfo("selected","row");return t.size()>0?t.keys()[0]:-1},r.QCELL.BasicQCELL.prototype._getSelectedCol=function(){var t=this._getIdxInfo("selected","col");return t.size()>0?t.keys()[0]:-1},r.QCELL.BasicQCELL.prototype._getSelectedRows=function(){return this._getIdxInfo("selected","row").keys()},r.QCELL.BasicQCELL.prototype._getSelectedCols=function(){return this._getIdxInfo("selected","col").keys()},r.QCELL.BasicQCELL.prototype._clearSelection=function(){var t=this._getIdxInfo("selected","row"),e=this._getIdxInfo("selected","col");t.clear(),e.clear(),this._clearSelectionCSS()},r.QCELL.BasicQCELL.prototype._clearSelectionCSS=function(){r.util.removeClass(r._.flatten(this.attr("cellmatrix").get("row")),r.QCELL.def.css.CELL_SELECT),r.$(r.QCELL.def.css.CELL_SELECT).removeClass(r.QCELL.def.css.CELL_SELECT)},r.QCELL.BasicQCELL.prototype._selectRow=function(t,e){if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&!0!==e&&(t=this._findNextCell(t,this._idx("col","focus"),"up").row),t>=this.attr("headerrows"))switch(this.attr("selectmode")){case"row":case"rows":var a=this._getIdxInfo("selected","row");a.containsKey(t)?a.remove(t):r.util.addClass(this._getRowCellDOMs(t),r.QCELL.def.css.CELL_SELECT),a.put(t,!0)}},r.QCELL.BasicQCELL.prototype._deselectRow=function(t){if(t>=this.attr("headerrows"))switch(this.attr("selectmode")){case"row":case"rows":var e=this._getIdxInfo("selected","row");e.containsKey(t)&&(e.remove(t),r.util.removeClass(this._getRowCellDOMs(t),r.QCELL.def.css.CELL_SELECT))}},r.QCELL.BasicQCELL.prototype._selectRows=function(t){if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&("col"===this.attr("merge").data||"group"===this.attr("merge").data)){var e=this._findNextCell(t[t.length-1],this._idx("col","focus"),"up");this._idx("row","focus")>t[t.length-1]&&(t=r._.range(e.row,this._idx("row","focus")+1).reverse())}if("rows"===this.attr("selectmode")){var a=this,o=this.attr("headerrows"),i=this._getIdxInfo("selected","row"),s=[];r._.each(t,(function(t){t>=o&&(i.containsKey(t)?i.remove(t):(s=s.concat(a._getRowCellDOMs(t)),r.$(s).addClass(r.QCELL.def.css.CELL_SELECT)),i.put(t,!0))}))}},r.QCELL.BasicQCELL.prototype._deselectRows=function(t){if("rows"===this.attr("selectmode")){var e=r.QCELL.def.css,a=this,o=this.attr("headerrows"),i=a._getIdxInfo("selected","row"),s=[];r._.each(t,(function(t){t>=o&&i.containsKey(t)&&(i.remove(t),s=s.concat(a._getRowCellDOMs(t)))})),r.$(s).removeClass(e.CELL_SELECT)}},r.QCELL.BasicQCELL.prototype._selectCol=function(t){switch(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(t=this._findNextCell(this._idx("row","focus"),t,"up").col),this.attr("selectmode")){case"col":case"cols":var e=this._getIdxInfo("selected","col");e.containsKey(t)?e.remove(t):r.$(this._getColCellDOMs(t)).addClass(r.QCELL.def.css.CELL_SELECT),e.put(t,!0)}},r.QCELL.BasicQCELL.prototype._deselectCol=function(t){switch(this.attr("selectmode")){case"col":case"cols":var e=this._getIdxInfo("selected","col");e.containsKey(t)&&(e.remove(t),r.$(this._getColCellDOMs(t)).removeClass(r.QCELL.def.css.CELL_SELECT))}},r.QCELL.BasicQCELL.prototype._selectCols=function(t){if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"row"===this.attr("merge").data){var e=this._findNextCell(this._idx("row","focus"),t[t.length-1],"up");this._idx("col","focus")>t[t.length-1]&&(t=r._.range(e.col,this._idx("col","focus")+1).reverse())}if(t.length>0&&"cols"===this.attr("selectmode")){var a=this,o=this.attr("headercols"),i=this._getIdxInfo("selected","col"),s=[];r._.each(t,(function(t){t>=o&&(i.containsKey(t)?i.remove(t):s=s.concat(a._getColCellDOMs(t)),i.put(t,!0))})),r.$(s).addClass(r.QCELL.def.css.CELL_SELECT)}},r.QCELL.BasicQCELL.prototype._deselectCols=function(t){if("cols"===this.attr("selectmode")){var e=this,a=this.attr("headercols"),o=this._getIdxInfo("selected","col"),i=[];r._.each(t,(function(t){t>=a&&o.containsKey(t)&&(o.remove(t),i=i.concat(e._getColCellDOMs(t)))})),r.$(i).removeClass(r.QCELL.def.css.CELL_SELECT)}},r.QCELL.BasicQCELL.prototype._selectCell=function(t,e){if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var a=this._findNextCell(t,e,"up");t=a.row,e=a.col}switch(this.attr("selectmode")){case"cell":case"cells":var o=this.attr("headerrows"),i=this.attr("headercols"),s=this.attr("frozencols"),l=this.attr("cols");if(t>=o&&e>=i&&e<l){var n,c,d=this.attr("hsinfo"),h=this._getIdxInfo("selected","row"),_=this._getIdxInfo("selected","col");if((n=h.containsKey(t)?h.remove(t):new window._QHashSet).add(e),h.put(t,n),(c=_.containsKey(e)?_.remove(e):new window._QHashSet).add(t),_.put(e,c),e<i+s||e>=d.nLeftCol&&e<=d.nRightCol){var u=this._getCellDOM(t,e);r._.isElement(u)&&r.util.addClass(u,r.QCELL.def.css.CELL_SELECT)}}}},r.QCELL.BasicQCELL.prototype._deselectCell=function(t,e){switch(this.attr("selectmode")){case"cell":case"cells":var a=this.attr("headerrows"),o=this.attr("headercols"),i=this.attr("frozencols"),s=this.attr("cols");if(t>=a&&e>=o&&e<s){var l,n,c=this.attr("hsinfo"),d=this._getIdxInfo("selected","row"),h=this._getIdxInfo("selected","col");if(d.containsKey(t)&&((l=d.get(t)).remove(e),l.isEmpty()&&d.remove(t)),h.containsKey(e)&&((n=h.get(e)).remove(t),n.isEmpty()&&h.remove(e)),e<o+i||e>=c.nLeftCol&&e<=c.nRightCol){var _=this._getCellDOM(t,e);r._.isElement(_)&&r.util.removeClass(_,r.QCELL.def.css.CELL_SELECT)}}}},r.QCELL.BasicQCELL.prototype._selectCellRange=function(t,e,a,o){if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var i=this._findNextCell(a,o,"up");a=i.row,o=i.col}if("cells"===this.attr("selectmode")){var s=r.QCELL.def.css,l=this.attr("headerrows"),n=this.attr("headercols"),c=this.attr("cols");if(t>=l&&a>=l&&o>=n&&e>=n&&e<c&&o<c){var d,h,_,u,p,C=this._getIdxInfo("selected","row"),g=this._getIdxInfo("selected","col"),f=t>a,L=e>o;for(_=t;f?_>=a:_<=a;f?_--:_++){for(d=C.containsKey(_)?C.remove(_):new window._QHashSet,u=e;L?u>=o:u<=o;L?u--:u++)d.add(u),p=this._getCellDOM(_,u),r._.isElement(p)&&r.util.addClass(p,s.CELL_SELECT);C.put(_,d)}for(u=e;L?u>=o:u<=o;L?u--:u++){for(h=g.containsKey(u)?g.remove(u):new window._QHashSet,_=t;f?_>=a:_<=a;f?_--:_++)h.add(_);g.put(u,h)}}}},r.QCELL.BasicQCELL.prototype._deselectCellRange=function(t,e,a,o){if("cells"===this.attr("selectmode")){var i=r.QCELL.def.css,s=this.attr("headerrows"),l=this.attr("headercols"),n=this.attr("cols");if(t>=s&&a>=s&&o>=l&&e>=l&&e<n&&o<n){var c,d,h,_,u,p=this._getIdxInfo("selected","row"),C=this._getIdxInfo("selected","col"),g=t>a,f=e>o;for(h=t;g?h>=a:h<=a;g?h--:h++)if(p.containsKey(h)){for(c=p.get(h),_=e;f?_>=o:_<=o;f?_--:_++)c.remove(_),u=this._getCellDOM(h,_),r._.isElement(u)&&r.util.removeClass(u,i.CELL_SELECT);c.isEmpty()&&p.remove(h)}for(_=e;f?_>=o:_<=o;f?_--:_++)if(C.containsKey(_)){for(d=C.get(_),h=t;g?h>=a:h<=a;g?h--:h++)d.remove(h);d.isEmpty()&&C.remove(_)}}}},r.QCELL.BasicQCELL.prototype._selectDragArea=function(t){try{var e=this._idx("row","focus"),a=this._idx("col","focus"),o=this._idx("row","drag"),i=this._idx("col","drag");switch(this.attr("selectmode")){case"rows":!1===t.ctrlKey&&this._clearSelection(),this._selectRows(o>e?r._.range(e,o+1):r._.range(o,e+1).reverse());break;case"cols":!1===t.ctrlKey&&this._clearSelection(),this._selectCols(i>a?r._.range(a,i+1):r._.range(i,a+1).reverse());break;case"cells":!1===t.ctrlKey&&this._clearSelection(),this._selectCellRange(e,a,o,i)}}catch(t){r.QCELL.log("err","QCELL.BasicQCELL._selectDragArea",t.message)}},r.QCELL.BasicQCELL.prototype._isSelectedRow=function(t){return this._getIdxInfo("selected","row").containsKey(t)},r.QCELL.BasicQCELL.prototype._isSelectedCol=function(t){return this._getIdxInfo("selected","col").containsKey(t)},r.QCELL.BasicQCELL.prototype._isSelectedCell=function(t,e){var r=this._getIdxInfo("selected","row");return!!r.containsKey(t)&&r.get(t).contains(e)},r.QCELL.BasicQCELL.prototype._selectGroup=function(t,e){if(!1===r._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"group"===this.attr("merge").data){var a,o={},i=0,s=0,l=0,n=0,c=r.QCELL.def.css,d=this.attr("headerrows"),h=this.attr("headercols"),_=this.attr("rows"),u=this.attr("cols");if(this._isMergeCell(t,e)?(i=(o=this._getMergeInfo(t,e,this.attr("merge_data_info"))).nStartRow,s=o.nStartCol,l=o.nEndRow,n=o.nEndCol):(i=t,s=e,l=t,n=e),i>=d&&l<_&&s>h&&n<u){for(var p,C,g,f,L=this._getIdxInfo("selected","row"),m=this._getIdxInfo("selected","col"),E=[],b=n;h<=b;b--)for(var y=l;i<=y;y--){if(g=y,f=b,this._isMergeCell(y,b)){var v=this._getMergeInfo(y,b,this.attr("merge_data_info"));g=v.nStartRow,f=v.nStartCol}a=this._getCellDOM(g,f),r._.isElement(a)&&(r.util.addClass(a,c.CELL_SELECT),E.push({sr:g,sc:f}))}E.reverse();for(var w=0;w<E.length;w++){var x=E[w];p=L.containsKey(x.sr)?L.remove(x.sr):new window._QHashSet,C=m.containsKey(x.sc)?m.remove(x.sc):new window._QHashSet,p.add(x.sc),C.add(x.sr),L.put(x.sr,p),m.put(x.sc,C)}}}},r.QCELL.BasicQCELL.prototype._deselectGroup=function(t,e){},r.QCELL.BasicQCELL.prototype._getDefaultSortArea=function(t){if(null===this.attr("defaultsortarea")){var e=document.createElement("div");this.attr("defaultsortarea",this._createDefaultSortArea(e),"jquery")}return null===this._getQCellCol(t).attr("colsortarea")&&this._getQCellCol(t).attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),this._getQCellCol(t).attr("colsortarea").get(0)},r.QCELL.BasicQCELL.prototype._createDefaultSortArea=function(t){var e=r.QCELL.def.css,a=t.cloneNode(),o=this.attr("rowheight").header;return a.className+=e.SORT_AREA,a.style.top=o-(o/2+5)+"px",r.$(a)},r.QCELL.BasicQCELL.prototype._createMultiSortOrder=function(){var t=r.QCELL.def.css,e=document.createElement("span"),a=this.attr("rowheight").header;return e.className+=t.MULTI_SORT_ORDER,e.style.bottom=-(a-(a/2+7))+"px",r.$(e)},r.QCELL.BasicQCELL.prototype._sort=function(t){if(!0===this.attr("isSorting"))return!1;var e,a;if(this.attr("isSorting",!0,"boolean"),t.length>1){for(var o=!0,i=!0,s=0;s<t.length;s++)if(r._.isNumber(t[s][0])){if(i=!1,void 0===(a=this._getQCellCol(t[s][0])))return!1;if(!1===a.attr("sort")){o=!1;break}}if(o)return!1===i&&this._updateMultiSortIcon(t),this._multiSort(t),!0}else{if(e=t[0][0],r._.isString(e))return this._singleSort(e,t[0][1],t[0][2]),!0;if(!1===r._.isUndefined(e)){if((a=this._getQCellCol(e)).attr("sort"))return this._updateSingleSortIcon(t),this._singleSort(e,a.attr("sortinfoofcol").sorttype,a.attr("datatype")),!0}else this.attr("sortinfo",[],"array")}return!1},r.QCELL.BasicQCELL.prototype._makeSingleSortList=function(t){var e,r,a=this.attr("sortinfo"),o=this._getQCellCol(t);if(a.length>1){var i="asc";for(r=0;r<a.length;r++)if(a[r][0]===t)switch(a[r][1]){case"asc":i="desc";break;case"desc":i="";break;default:i="asc"}e=[[t,i,o.attr("datatype")]]}else if(1===a.length)if(a[0][0]===t)switch(a[0][1]){case"asc":e=[[a[0][0],"desc",a[0][2]]];break;case"desc":e=[[a[0][0],"",a[0][2]]];break;default:e=[[a[0][0],"asc",a[0][2]]]}else e=[[t,"asc",o.attr("datatype")]];else e=[[t,"asc",o.attr("datatype")]];return e},r.QCELL.BasicQCELL.prototype._updateSingleSortIcon=function(t){var e,a,o,i,s,l,n,c=r.QCELL.def.css,d=this.attr("sortinfo");for(o=0;o<d.length;o++)null===(e=this._getQCellCol(d[o][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),a=e.attr("colsortarea"),e.setSortInfoOfCol("none",0),a.removeClass(c.SORT_ASC).removeClass(c.SORT_DESC),a.empty(),e.attr("cloneSort_master")&&(i=e.attr("cloneSort_master"),s=e.attr("cloneSort_sort"),l=a.clone(),n=s.position(),l.css("top",n.top),s.remove(),i.append(l),e.attr("cloneSort_sort",l,"jquery"));var h=r._.isString(t[0][0])?this._getColsOfKey(t[0][0])[0]:t[0][0];null===(e=this._getQCellCol(h)).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),a=e.attr("colsortarea"),"asc"===t[0][1]?(a.addClass(c.SORT_ASC),e.setSortInfoOfCol("asc",e.attr("sortinfoofcol").order)):"desc"===t[0][1]&&(a.addClass(c.SORT_DESC),e.setSortInfoOfCol("desc",e.attr("sortinfoofcol").order)),e.setSortInfoOfCol(e.attr("sortinfoofcol").sorttype,1),e.attr("colsortarea",a,"jquery"),e.attr("cloneSort_master")&&(i=e.attr("cloneSort_master"),s=e.attr("cloneSort_sort"),l=a.clone(),n=s.position(),l.css("top",n.top),s.remove(),i.append(l),e.attr("cloneSort_sort",l,"jquery"))},r.QCELL.BasicQCELL.prototype._makeMultiSortList=function(t){var e,a,o=[],i=this._getQCellCol(t);if(r._.each(this.attr("sortinfo"),(function(t){o.push(r._.clone(t))})),o.length>1){var s=!0;for(a=0;a<o.length;a++)if(o[a][0]===t){switch(o[a][1]){case"asc":o[a][1]="desc";break;case"desc":o[a][1]="asc"}s=!1;break}s&&o.push([t,"asc",i.attr("datatype")]),e=o}else if(1===o.length)if(o[0][0]===t)switch(o[0][1]){case"asc":e=[[o[0][0],"desc",o[0][2]]];break;case"desc":e=[[o[0][0],"asc",o[0][2]]]}else o.push([t,"asc",i.attr("datatype")]),e=o;else e=[[t,"asc",i.attr("datatype")]];return e},r.QCELL.BasicQCELL.prototype._updateMultiSortIcon=function(t){var e,a,o,i,s=r.QCELL.def.css,l=this.attr("sortinfo");if(null!=l){for(i=0;i<l.length;i++)null===(e=this._getQCellCol(l[i][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),a=e.attr("colsortarea"),e.setSortInfoOfCol("none",0),a.removeClass(s.SORT_ASC).removeClass(s.SORT_DESC),a.empty();if(void 0!==t)for(i=0;i<t.length;i++)if(null===(e=this._getQCellCol(t[i][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),a=e.attr("colsortarea"),o=this._createMultiSortOrder(),"asc"===t[i][1]?(a.addClass(s.SORT_ASC),e.setSortInfoOfCol("asc",e.attr("sortinfoofcol").order)):(a.addClass(s.SORT_DESC),e.setSortInfoOfCol("desc",e.attr("sortinfoofcol").order)),e.setSortInfoOfCol(e.attr("sortinfoofcol").sorttype,i+1),o.text(e.attr("sortinfoofcol").order),a.get(0).appendChild(o.get(0)),e.attr("colsortarea",a,"jquery"),e.attr("cloneSort_master")){var n=e.attr("cloneSort_master"),c=e.attr("cloneSort_sort"),d=a.clone(),h=c.position();d.css("top",h.top);var _=d.get(0).childNodes,u=0;for(u=0;u<_.length;u++){var p=_[0],C=e.attr("cloneSort_master_height");p.style.bottom=-(C-(C/2+7))+"px"}c.remove(),n.append(d),e.attr("cloneSort_sort",d,"jquery")}}},r.QCELL.BasicQCELL.prototype._clearSortUI=function(){var t=this.attr("sortinfo");if(t.length>0){var e,a=this._getSyncInfo("col"),o=this;r._.each(t,(function(t){(e=o._getQCellCol(t[0])).attr("colsortarea",o.attr("defaultsortarea").clone(!0),"jquery"),e.setSortInfoOfCol("none",0),!0===a.containsKey(t[0])&&(a.get(t[0]).remove("sort"),a.get(t[0]).isEmpty()&&a.remove(t[0]))})),this.attr("sortinfo",[],"array"),this._refreshHRs()}},r.QCELL.BasicQCELL.prototype._sortProcess=function(t){if(!0===this.attr("isSorting"))return!1;this.attr("isSorting",!0,"boolean"),this._updateIdx("click",this._getRowFromTarget(t.target),this._getColFromTarget(t.target));var e=this._idx("col","click");if(-1!==e){var r,a=this._getQCellCol(e);if(t.shiftKey)r=this._makeMultiSortList(e),this._updateMultiSortIcon(r),this.attr("sortinfo",r,"array"),this._multiSort(r);else{if(r=this._makeSingleSortList(e),e<this.getCols("header")){var o=this.attr("rowheaders");void 0!==o[e]&&"desc"!==r[0][1]?o[e]="sequence":o[e]="reverse",r[0][2]="number",this.attr("rowheaders",o,"array"),a.attr("datatype","number","string")}this._updateSingleSortIcon(r),this.attr("sortinfo",[[e,a.attr("sortinfoofcol").sorttype,a.attr("datatype")]],"array"),e<this.getCols("header")?this._singleSort("_rt_qc_s_i",a.attr("sortinfoofcol").sorttype,a.attr("datatype")):this._singleSort(e,a.attr("sortinfoofcol").sorttype,a.attr("datatype"))}}},r.QCELL.BasicQCELL.prototype._getColStyleClassName=function(t,e){try{return null==this.attr("qcellcols")[t]?"":this.attr("qcellcols")[t].getStyleClassName(e)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._getColStyleClassName",t.message),""}},r.QCELL.BasicQCELL.prototype._removeColStyleClassName=function(t){var e,a,o=this.attr("headerrows"),i=this.attr("rows"),s=this._getColStyleClassName(t,"header"),l=this._getColStyleClassName(t,"data");if(""!==s)for(e=0;e<o;e++)null!==(a=this._getCellDOM(e,t))&&r.util.removeClass(a,s);if(""!==l)for(e=o;e<i;e++)null!==(a=this._getCellDOM(e,t))&&r.util.removeClass(a,l);return!0},r.QCELL.BasicQCELL.prototype._setHighlightRepeat=function(t){try{return this.attr("highlightrepeat",t,"number"),this._clearHighlightRepeatCSS(),this._refreshDRs(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._setHighlightRepeat",t.message),!1}},r.QCELL.BasicQCELL.prototype._clearHighlightRepeatCSS=function(){return r.util.removeClass(r._.flatten(this.attr("cellmatrix").get("row")),r.QCELL.def.css.CELL_HIGHLIGHTREPEAT),!0},r.QCELL.BasicQCELL.prototype._initColStyles=function(){var t=!0;return r.$.each(this.attr("qcellcols"),(function(e,r){if(!1===r.initStyle())return t=!1,!1})),t},r.QCELL.BasicQCELL.prototype._initColStyle=function(t){return this.attr("qcellcols")[t].initStyle()},r.QCELL.BasicQCELL.prototype._getColStyle=function(t,e){return this.attr("qcellcols")[t].getStyle(e)},r.QCELL.BasicQCELL.prototype._setColStyle=function(t,e,r,a){var o,i=this.attr("headerrows"),s=this.attr("rows"),l=!1;if(this.attr("qcellcols")[t].setStyle(e,r),i>0&&("header"===r||"all"===r)){for(o=0;o<i;o++)this._setCellStyle(o,t,e,a);l=!0}if("data"===r||"all"===r){for(o=i;o<s;o++)this._setCellStyle(o,t,e,a);l=!0}return l},r.QCELL.BasicQCELL.prototype._removeColStyle=function(t,e,r){var a,o=this.attr("headerrows"),i=this.attr("rows"),s=!1;if(this.attr("qcellcols")[t].removeStyle(e),o>0&&("header"===e||"all"===e)){for(a=0;a<o;a++)this._removeCellStyle(a,t,r);s=!0}if("data"===e||"all"===e){for(a=o;a<i;a++)this._removeCellStyle(a,t,r);s=!0}return s},r.QCELL.BasicQCELL.prototype._clearColStyles=function(){var t=!0;return r.$.each(r._.filter(this.attr("qcellcols"),(function(t){return r._.size(t.attr("style").header)>0||r._.size(t.attr("style").data)>0})),(function(e,r){if(!1===r.removeStyle("all"))return t=!1,!1})),t},r.QCELL.BasicQCELL.prototype._setRowStyle=function(t,e,r,a){var o,i=this.attr("headercols"),s=this.attr("cols"),l=!1;if(i>0&&("header"===r||"all"===r)){for(o=0;o<i;o++)this._setCellStyle(t,o,e,a);l=!0}if("data"===r||"all"===r){for(o=i;o<s;o++)this._setCellStyle(t,o,e,a);l=!0}return l},r.QCELL.BasicQCELL.prototype._removeRowStyle=function(t,e,r){var a,o=this.attr("headercols"),i=this.attr("cols"),s=!1;if(o>0&&("header"===e||"all"===e)){for(a=0;a<o;a++)this._removeCellStyle(t,a,r);s=!0}if("data"===e||"all"===e){for(a=o;a<i;a++)this._removeCellStyle(t,a,r);s=!0}return s},r.QCELL.BasicQCELL.prototype._hasCellStyle=function(t,e){try{var a=this._getIdxInfo("style","row");return!!a.containsKey(t)&&a.get(t).containsKey(e)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._hasCellStyle",t.message),!1}},r.QCELL.BasicQCELL.prototype._getCellStyle=function(t,e){var a=this._getIdxInfo("style","row");if(a.containsKey(t)){var o=a.get(t);if(o.containsKey(e))return r._.clone(o.get(e))}return{}},r.QCELL.BasicQCELL.prototype._setCellStyle=function(t,e,a,o){try{var i,s,l=this._getSyncInfo("row"),n=this._getSyncInfo("col"),c=this._getIdxInfo("style","row"),d=this._getIdxInfo("style","col"),h=this.attr("currentdata");if(t>=this.getRows("header")){void 0===h[t-this.getRows("header")]._rt_qc_style&&(h[t-this.getRows("header")]._rt_qc_style={});var _=this._getKeyOfCol(e);null!=_&&(h[t-this.getRows("header")]._rt_qc_style[_]={row:t,col:e,style:r._.clone(a)})}if(o){var u=this._getCellDOM(t,e);if(r._.isElement(u)){var p="";for(var C in a)p+=C+": "+a[C]+";";r.$(u).attr("style",(function(t,e){return(e||"")+p}))}}return!1===l.containsKey(t)&&l.put(t,new window._QHashSet),l.get(t).add("style"),!1===c.containsKey(t)&&c.put(t,new window._QHashtable),(i=c.get(t)).containsKey(e)?i.put(e,r._.extend(i.get(e),a)):i.put(e,r._.clone(a)),!1===n.containsKey(e)&&n.put(e,new window._QHashSet),n.get(e).add("style"),!1===d.containsKey(e)&&d.put(e,new window._QHashtable),(s=d.get(e)).containsKey(t)?s.put(t,r._.extend(s.get(t),a)):s.put(t,r._.clone(a)),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._setCellStyle",t.message),!1}},r.QCELL.BasicQCELL.prototype._setCellStyles=function(t,e,r,a,o,i){for(var s=t>r,l=e>a,n=!0,c=t;(s?c>=r:c<=r)&&!1!==n;s?c--:c++)for(var d=e;l?d>=a:d<=a;l?d--:d++)if(!1===this._setCellStyle(c,d,o,i)){n=!1;break}return n},r.QCELL.BasicQCELL.prototype._removeCellStyle=function(t,e,a){try{var o=this._getIdxInfo("style","row"),i=this._getIdxInfo("style","col"),s=this._getSyncInfo("row"),l=this._getSyncInfo("col");if(a){var n=this._getCellDOM(t,e);r._.isElement(n)&&r.$(n).css(r._.mapValues(this._getCellStyle(t,e),(function(t,e){return""})))}var c=this._getKeyOfCol(e),d=this.attr("currentdata");if(t-this.getRows("header")>=0&&null!=c&&void 0!==d[t-this.getRows("header")]._rt_qc_style&&void 0!==d[t-this.getRows("header")]._rt_qc_style[c]&&delete d[t-this.getRows("header")]._rt_qc_style[c],o.containsKey(t)){var h=o.get(t);if(h.containsKey(e)&&(h.remove(e),0===h.size()&&o.remove(t)),0===h.size()&&s.containsKey(t)){var _=s.get(t);_.remove("style"),_.isEmpty()&&s.remove(t)}}if(i.containsKey(e)){var u=i.get(e);if(u.containsKey(t)&&(u.remove(t),0===u.size()&&i.remove(e)),0===u.size()&&l.containsKey(e)){var p=l.get(e);p.remove("style"),p.isEmpty()&&l.remove(e)}}return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._removeCellStyle",t.message),!1}},r.QCELL.BasicQCELL.prototype._removeCellStyles=function(t,e,r,a,o){for(var i=t>r,s=e>a,l=!0,n=t;(i?n>=r:n<=r)&&!1!==l;i?n--:n++)for(var c=e;s?c>=a:c<=a;s?c--:c++)if(!1===this._removeCellStyle(n,c,o)){l=!1;break}return l},r.QCELL.BasicQCELL.prototype._removeCellStylesOfRow=function(t,e){var r=this._getIdxInfo("style","row");if(r.containsKey(t)){var a=r.get(t),o=this;a.each((function(r,a){o._removeCellStyle(t,r,e)}))}},r.QCELL.BasicQCELL.prototype._clearCellStyles=function(){try{var t=this._getIdxInfo("style","row"),e=this._getIdxInfo("style","col"),a=this._getSyncInfo("row"),o=this._getSyncInfo("col");return this._clearCellStyleCSS("row","all"),r._.each(t.keys(),(function(t){if(a.containsKey(t)){var e=a.get(t);e.remove("style"),e.isEmpty()&&a.remove(t)}})),t.clear(),r._.each(e.keys(),(function(t){if(o.containsKey(t)){var e=o.get(t);e.remove("style"),e.isEmpty()&&o.remove(t)}})),e.clear(),!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._clearCellStyles",t.message),!1}},r.QCELL.BasicQCELL.prototype._clearCellStyleCSS=function(t,e){var a=this;if("row"===t){var o,i=this._getIdxInfo("style","row"),s=this.attr("vsinfo"),l=this.attr("headerrows"),n=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),d=this.attr("rows");return o=r._.reject(i.keys().sort(r.st.asc),(function(t){return t<s.nTopRow&&t>=l+n||t>s.nBottomRow&&t<d-c})),"all"!==e&&(o=r._.filter(o,"header"===e?function(t){return t<l}:function(t){return t>=l})),r._.each(o,(function(t){i.get(t).each((function(e,o){var i=a._getCellDOM(t,e);r.$(i).css(r._.mapValues(o,(function(t,e){return""})))}))})),!0}if("col"===t){var h,_=this._getIdxInfo("style","col"),u=this.attr("hsinfo"),p=this.attr("headercols"),C=this.attr("frozencols");h=r._.reject(_.keys().sort(r.st.asc),(function(t){return t<u.nLeftCol&&t>=p+C||t>u.nRightCol})),"all"!==e&&(h=r._.filter(h,"header"===e?function(t){return t<p}:function(t){return t>=p})),r._.each(h,(function(t){_.get(t).each((function(e,o){var i=a._getCellDOM(e,t);r.$(i).css(r._.mapValues(o,(function(t,e){return""})))}))}))}return!1},r.QCELL.BasicQCELL.prototype._removeAllCellStyleCSS=function(){var t=this,e=this._getIdxInfo("style","row");r._.each(e.keys(),(function(a){e.get(a).each((function(e,o){var i=t._getCellDOM(a,e);r._.isElement(i)&&r.$(i).css(r._.mapValues(o,(function(t,e){return""})))}))}))},r.QCELL.BasicQCELL.prototype._setCellStyleCSS=function(t,e){var a="";for(var o in e)a+=o+": "+e[o]+";";r.$(t).attr("style",(function(t,e){return(e||"")+a}))},r.QCELL.BasicQCELL.prototype._removeCellStyleCSS=function(t,e){r._.each(r._.keys(e),(function(e){t.style[r.$.camelCase(e)]=""}))},r.QCELL.BasicQCELL.prototype._clearDynamicStyles=function(){return this._clearCellStyles()&&this._setHighlightRepeat(this.getProperties().highlightrepeat)},r.QCELL.BasicQCELL.prototype._clearDynamicCSS=function(t,e){"header"!==e&&(this._clearFocusCSS(),this._clearSelectionCSS()),this._clearCellStyleCSS(t,e)},r.QCELL.BasicQCELL.prototype._isCellStyleRow=function(t){return this._getIdxInfo("style","row").containsKey(t)},r.QCELL.BasicQCELL.prototype._isCellStyleCol=function(t){return this._getIdxInfo("style","col").containsKey(t)},r.QCELL.BasicQCELL.prototype._hasCellStyle=function(t,e){try{var a=this._getIdxInfo("style","row");return!!a.containsKey(t)&&a.get(t).containsKey(e)}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._hasCellStyle",t.message),!1}},r.QCELL.BasicQCELL.prototype._getIdxInfo=function(t,e){return this.attr("idxinfo")[t][e]},r.QCELL.BasicQCELL.prototype._getSyncInfo=function(t){return this.attr("syncinfo")[t]},r.QCELL.BasicQCELL.prototype._popColSyncInfos=function(t,e){for(var a=[],o=this._getSyncInfo("col"),i=this,s=function(t){switch(c.idxinfo={style:null,state:null},t){case"style":var e=i._getIdxInfo("style","col"),a=i._getIdxInfo("style","row"),o=e.remove(n);c.idxinfo.style=o,null!==a&&null!==o&&null!==o&&r._.each(o.keys(),(function(t){a.get(t).remove(n)}));break;case"state":var s=i._getIdxInfo("state","col");c.idxinfo.style=s.remove(n)}},l=t;l<t+e;l++){var n=l,c={idxinfo:null,syncinfo:null};if(o.containsKey(n)){var d=o.remove(n);r._.each(d.values(),s),c.syncinfo=d}a.push(c)}return a},r.QCELL.BasicQCELL.prototype._putColSyncInfos=function(t,e){var a=this,o=this._getSyncInfo("col");r._.each(t,(function(t,i){var s=e[i],l=s.syncinfo;null!==l&&(r._.each(l.values(),(function(e){switch(e){case"style":var o=a._getIdxInfo("style","col"),i=a._getIdxInfo("style","row"),l=s.idxinfo.style;null!==l&&(o.put(t,l),r._.each(l.keys(),(function(e){i.get(e).put(t,l.get(e))})));break;case"state":a._getIdxInfo("state","col").put(t,s.idxinfo.state);break;case"sort":var n=a._getQCellCol(t);a.attr("sortinfo")[n.attr("sortinfoofcol").order-1][0]=t}})),o.put(t,l))}))},r.QCELL.BasicQCELL.prototype._pushColSyncInfo=function(t,e){if(t.length>0){var a=this._getSyncInfo("col");if(a.size()>0){var o=this;r._.each(t,(function(t){var i=a.remove(t);r._.each(i.values(),(function(a){switch(a){case"style":var i=o._getIdxInfo("style","col"),s=o._getIdxInfo("style","row"),l=i.remove(t);i.put(t+e,l),null!==l&&r._.each(l.keys(),(function(r){var a=s.get(r);a.put(t+e,a.remove(t))}));break;case"state":var n=o._getIdxInfo("state","col");n.put(t+e,n.remove(t));break;case"sort":var c=o.attr("sortinfo");r._.each(c,(function(r){r[0]===t&&(r[0]=t+e)}))}})),a.put(t+e,i)}))}}},r.QCELL.BasicQCELL.prototype._pullColSyncInfo=function(t,e){if(t.length>0){var a=this._getSyncInfo("col");if(a.size()>0){var o=this;r._.each(t,(function(t){var i=a.remove(t);r._.each(i.values(),(function(a){switch(a){case"style":var i=o._getIdxInfo("style","col"),s=o._getIdxInfo("style","row"),l=i.remove(t);i.put(t-e,l),null!==l&&r._.each(l.keys(),(function(r){var a=s.get(r);a.put(t-e,a.remove(t))}));break;case"state":var n=o._getIdxInfo("state","col");n.put(t-e,n.remove(t));break;case"sort":var c=o.attr("sortinfo");r._.each(c,(function(r){r[0]===t&&(r[0]=t-e)}))}})),a.put(t-e,i)}))}}},r.QCELL.BasicQCELL.prototype._createTooltip=function(t,e,a){if(!0!==this.attr("disabletooltip")){var o=r.QCELL.def,i=o.cssprefix+this.attr("id")+"-tooltip",s='<div id="'+i+'" class="'+o.css.TOOLTIP+'"><div class="content"></div></div>',l=this.attr("elementpool").get("$root"),n=""===r.$.trim(t.html())?" ":t.html().replace(/\r\n/g,"<br>").replace(/\n/g,"<br>").replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/'/g,"'"),c=this._setTooltipPos(e);void 0!==a&&(n=a),this._removeTooltip(),!1===this.attr("tooltipvisible")&&(r.$.browser.msie?r.$(document.body).append(s):r.$(l).append(s),r.$("#"+i+" > .content").append(n),r.$("#"+i).hide().css(c).fadeIn(400),this.attr("tooltipvisible",!0,"boolean"))}},r.QCELL.BasicQCELL.prototype._moveTooltip=function(t,e){if(!0!==this.attr("disabletooltip")){var a=r.QCELL.def.cssprefix+this.attr("id")+"-tooltip",o=this._setTooltipPos(e);r.$("#"+a).hide().css(o).fadeIn(400)}},r.QCELL.BasicQCELL.prototype._setTooltipPos=function(t){var e;if(!0!==this.attr("disabletooltip"))return e=t.clientX,{top:t.clientY+21+"px",left:e+"px"}},r.QCELL.BasicQCELL.prototype._removeTooltip=function(){if(!0!==this.attr("disabletooltip")){var t=r.QCELL.def.css;r.$("."+t.TOOLTIP).remove(),this.attr("tooltipvisible",!1,"boolean")}},r.QCELL.BasicQCELL.prototype._refreshRs=function(){this._refreshHRs(),this._refreshDRs()},r.QCELL.BasicQCELL.prototype._refreshCs=function(){this._refreshHCs(),this._refreshDCs()},r.QCELL.BasicQCELL.prototype._refreshDRs=function(){this._refreshFRs(),this._refreshNRs(),this._refreshFBRs()},r.QCELL.BasicQCELL.prototype._refreshDCs=function(){this._refreshFCs(),this._refreshNCs()},r.QCELL.BasicQCELL.prototype._setVSRange=function(){try{var t=this.attr("vsinfo"),e=this.attr("headerrows"),a=this.attr("rows");return a-e>0?(t.nStartRow=e+this.attr("frozenrows"),t.nEndRow=a-this.attr("frozenbottomrows")-1):t.nStartRow=t.nEndRow=-1,!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._setVSRange",t.message),!1}},r.QCELL.BasicQCELL.prototype._initVSInfo=function(){var t=this.attr("vsinfo");t.bVScroll=!1,t.nStartRow=t.nEndRow=t.nTopRow=t.nBottomRow=-1,t.nAdjustRows=t.nDynamicRows=t.nLength=t.nLastPos=t.nPos=t.nTop=t.nBeforeTop=t.nLengthPerRow=0,t.objUpdateInfo={bWholeUpdate:!1,objParams:{}}},r.QCELL.BasicQCELL.prototype._updateVSInfo=function(){try{var t=this.attr("vsinfo"),e=t.objUpdateInfo,a=this.attr("currentdata").length,o=this.attr("headerrows"),i=this.attr("rows");if(e.objParams={},t.bVScroll){var s=0;if(e.bWholeUpdate=!0,t.nTopRow=t.nStartRow+t.nPos,t.nDynamicRows>a)t.nBottomRow=t.nEndRow;else{var l=this.attr("frozenrows"),n=this.attr("frozenbottomrows");if(t.nBottomRow=t.nTopRow+(t.nDynamicRows-l-n)-1,t.nBottomRow>t.nEndRow)if(t.nTopRow-=t.nBottomRow-t.nEndRow,t.nBottomRow=t.nEndRow,t.nLastPos===t.nPos){var c=this.attr("layoutsize").viewport.offsetHeight,d=this._getSumOfRowHeight(o,o+l-1),h=this._getSumOfRowHeight(i-n,i-1);s=d+this._getSumOfRowHeight(t.nTopRow,t.nEndRow)-(c-h)}else s=this._getSumOfRowHeight(t.nTopRow,t.nTopRow+(t.nPos-(t.nLastPos-t.nAdjustRows))-1)}e.objParams.nAdjustedTop=s,(this.attr("useall")||this.attr("usetreeall"))&&(t.nTopRow>t.nStartRow?r.$("#"+this.getID()+"_vsbp").prop("disabled",!1):r.$("#"+this.getID()+"_vsbp").prop("disabled",!0),t.nBottomRow===t.nEndRow?r.$("#"+this.getID()+"_vsbn").prop("disabled",!0):r.$("#"+this.getID()+"_vsbn").prop("disabled",!1))}else e.bWholeUpdate=!1,a>0?(t.nTopRow=o,t.nBottomRow=i-1):t.nTopRow=t.nBottomRow=-1;return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._updateVSInfo",t.message),!1}},r.QCELL.BasicQCELL.prototype.onVScroll=function(t){var e=this.attr("vsinfo"),a=this,o=0;Math.abs(e.nTop-t)>=e.nLengthPerRow&&(o=parseInt(-(t-e.nTop)/e.nLengthPerRow),e.nBeforeTop=e.nTop,e.nTop=e.nTop-o*e.nLengthPerRow,e.nPos=-e.nTop/e.nLengthPerRow,this._adjustScrollPos(),this._syncVSInfo(),this._updateNRs(),(this.attr("useall")||this.attr("usetreeall"))&&(e.nTopRow>e.nStartRow?r.$("#"+this.getID()+"_vsbp").prop("disabled",!1):r.$("#"+this.getID()+"_vsbp").prop("disabled",!0),e.nBottomRow===e.nEndRow?r.$("#"+this.getID()+"_vsbn").prop("disabled",!0):r.$("#"+this.getID()+"_vsbn").prop("disabled",!1),!0!==this.attr("isFocussing")&&setTimeout((function(){var t=document.getElementById("container-"+a.getID());null!=t&&t.focus()}),100)))},r.QCELL.BasicQCELL.prototype._syncVSInfo=function(){var t,e=this.attr("vsinfo"),r=e.objUpdateInfo,a=(e.nBeforeTop-e.nTop)/e.nLengthPerRow,o=this.attr("headerrows"),i=this.attr("frozenrows"),s=this.attr("frozenbottomrows"),l=this.attr("rows"),n=this.attr("layoutsize").viewport.offsetHeight,c=this._getSumOfRowHeight(o,o+i-1),d=this._getSumOfRowHeight(l-s,l-1);if(r.objParams={},Math.abs(a)>=e.nDynamicRows-i-s){var h=0,_=0;r.bWholeUpdate=!0,a>0?e.nPos>e.nLastPos-e.nAdjustRows?(h=e.nPos-(e.nLastPos-e.nAdjustRows),e.nTopRow+=a-h,e.nBottomRow+=a-h,_=e.nLastPos===e.nPos?c+this._getSumOfRowHeight(e.nTopRow,e.nEndRow)-(n-d):this._getSumOfRowHeight(e.nTopRow,e.nTopRow+(e.nPos-(e.nLastPos-e.nAdjustRows))-1)):(e.nTopRow+=a,e.nBottomRow+=a):e.nPos>=e.nLastPos-e.nAdjustRows?(h=e.nPos-(e.nLastPos-e.nAdjustRows),_=this._getSumOfRowHeight(e.nTopRow,e.nTopRow+h-1)):(t=e.nPos-a>=e.nLastPos-e.nAdjustRows?e.nPos-a-(e.nLastPos-e.nAdjustRows):0,e.nTopRow+=a+t,e.nBottomRow+=a+t),r.objParams.nAdjustedTop=_}else{var u=0;r.bWholeUpdate=!1,r.objParams.nMovedCount=a,a>0?(e.nPos>e.nLastPos-e.nAdjustRows?(u=e.nEndRow-e.nBottomRow,r.objParams.bWholePositionChanged=!0):(u=a,r.objParams.bWholePositionChanged=!1),e.nTopRow+=u,e.nBottomRow+=u):e.nPos>=e.nLastPos-e.nAdjustRows?r.objParams.bWholePositionChanged=!0:(t=e.nPos-a>=e.nLastPos-e.nAdjustRows?e.nPos-a-(e.nLastPos-e.nAdjustRows):0,u=Math.abs(a)-t,e.nTopRow-=u,e.nBottomRow-=u,r.objParams.bWholePositionChanged=!1),r.objParams.nCutRowsCount=u}},r.QCELL.BasicQCELL.prototype._resizeVScrollbar=function(t){try{var e=this.attr("elementpool"),a=e.get("vscrollthumb"),o=e.get("$jqvscrollbar"),i=this.attr("layoutsize"),s=this.attr("vsinfo");if(s.bVScroll){var l,n,c,d,h=0,_=this.attr("headerrows"),u=this.attr("frozenrows"),p=this.attr("frozenbottomrows"),C=this.attr("rows"),g=i.viewport.offsetHeight,f=i.vscrollbar.clientHeight,L=this._getSumOfRowHeight(_,_+u-1),m=this._getSumOfRowHeight(C-p,C-1);for(n=_;n<C;n++)if(this._getSumOfRowHeight(_,n)>=g){h=n-_+1;break}for(s.nLengthPerRow=Math.round(f/h),s.nAdjustRows=0,s.nLastPos=s.nEndRow-(s.nStartRow+(s.nDynamicRows-u-p)-1),n=s.nStartRow+s.nLastPos;n<=s.nEndRow&&L+m+this._getSumOfRowHeight(s.nStartRow+s.nLastPos+s.nAdjustRows,s.nEndRow)>g;n++)s.nAdjustRows+=1;s.nLastPos+=s.nAdjustRows,void 0===t&&(0!==s.nPos&&s.nPos+1<s.nLastPos&&(s.nPos=s.nLastPos-1,s.nTop=-s.nPos*s.nLengthPerRow),s.nPos>s.nLastPos&&(s.nPos=s.nLastPos,s.nTop=-s.nPos*s.nLengthPerRow),s.nTop!==-s.nPos*s.nLengthPerRow&&(s.nTop=-s.nPos*s.nLengthPerRow)),s.nLength=s.nLastPos*s.nLengthPerRow,f+s.nLength>1533917&&(s.nLengthPerRow=Math.floor((1533917-f)/s.nLastPos),s.nLengthPerRow<1&&(s.nLengthPerRow=1),s.nLength=s.nLastPos*s.nLengthPerRow),a.style.height=f+s.nLength+"px";var E=this;l=function(t){var e=this.mcs.top;if(void 0===t)try{r.util.rAF((function(){setTimeout((function(){E.onVScroll(e),E._trigger("scrollmove")}))}))}catch(t){r.QCELL.log("err","VScrollbar.onScroll ",t.message)}},c=function(t){E.onScrollTop()},d=function(t){E.onScrollBottom()},void 0!==o.rt_qc_mCSbar&&r.$(o).rt_qc_mCSbar("destroy").rt_qc_mCSbar({axis:"y",theme:"qcell-default",setWidth:"100%",setHeight:"100%",scrollInertia:0,snapAmount:s.nLengthPerRow,mouseWheel:{enable:!0,preventDefault:!0,normalizeDelta:!0,scrollAmount:s.nLengthPerRow},scrollButtons:{enable:!0,scrollAmount:s.nLengthPerRow},keyboard:{enable:!1},advanced:{updateOnContentResize:!1},callbacks:{onScroll:l,whileScrolling:l,onTotalScroll:d,onTotalScrollBack:c},documentTouchScroll:null!==r.util.isMobile(),target:this}),s.nTop<0&&o.rt_qc_mCSbar("scrollTo",s.nTop,"",{ignorecallback:!0}),l=null;var b=this.attr("elementpool").get("jqvscrollbar").getElementsByClassName("rt_qc_mCSB_scrollTools")[0];if(null!=b&&(this.attr("useall")||this.attr("usetreeall"))){var y,v,w,x,Q,S=document.createElement("button");S.setAttribute("id",this.getID()+"_vsbp"),S.setAttribute("type","button"),S.className+="rt_qc_mCSB_buttonPrev",S.onclick=function(){if(y=E._idx("row","focus","current"),v=E._idx("col","focus","current"),Q=E.attr("vsinfo"),w=E._getTopRowOfScreen(),x=E._getBottomRowOfScreen(),-1===y&&(y=Q.nTopRow),-1===v&&(v=E.getCols("header")),y--,E.attr("frozenrows")>0&&y<=E.attr("frozenrows")+E.attr("headerrows")-1)return!1;y>=w&&y<=x?(y-=x-w,w-=x-w):(y=w-(x-w),w-=x-w),y--,w--,y<=E.attr("headerrows")&&(w=Q.nStartRow),E._scrollTop(w),E._scrollLeft(E.getCols("header")),setTimeout((function(){var t=document.getElementById("container-"+E.getID());null!=t&&t.focus()}),100)};var k=document.createTextNode("이전 데이터 정보");S.appendChild(k),b.appendChild(S);var T=document.createElement("button");T.setAttribute("id",this.getID()+"_vsbn"),T.setAttribute("type","button"),T.className+="rt_qc_mCSB_buttonNext",T.onclick=function(){if(y=E._idx("row","focus","current"),v=E._idx("col","focus","current"),w=E._getTopRowOfScreen(),x=E._getBottomRowOfScreen(),Q=E.attr("vsinfo"),-1===y&&(y=Q.nBottomRow),-1===v&&(v=E.getCols("header")),y>=E.attr("headerrows")&&y<E.attr("rows")-1){if(y>=E.attr("rows")-E.attr("frozenbottomrows"))return!1;y>=w&&y<=x?y+=x-w:y=x,y>=E.attr("rows")&&(y=Q.nBottomRow+1),w+=x-w,++w>=Q.nEndRow&&(w=Q.nEndRow),E._scrollTop(w),E._scrollLeft(E.getCols("header")),setTimeout((function(){var t=document.getElementById("container-"+E.getID());null!=t&&t.focus()}),100)}};var R=document.createTextNode("다음 데이터 정보");T.appendChild(R),b.appendChild(T),r.$("#"+this.getID()+"_vsbp").prop("disabled",!0),r.$("#"+this.getID()+"_vsbn").prop("disabled",!1)}}else void 0!==o.rt_qc_mCSbar&&o.rt_qc_mCSbar("destroy"),s.nLengthPerRow=s.nLastPos=s.nPos=s.nTop=s.nBeforeTop=s.nAdjustRows=s.nLength=0,a.style.height="0px";return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._resizeVScrollbar",t.message),!1}},r.QCELL.BasicQCELL.prototype._scrollTop=function(t){var e,a=this.attr("vsinfo");a.bVScroll&&(t<a.nStartRow?t=a.nStartRow:t>a.nStartRow+a.nLastPos&&(t=a.nStartRow+a.nLastPos),(e=-1*(t-a.nStartRow)*a.nLengthPerRow)!==a.nTop&&(this.attr("adjustrow",!0,"boolean"),r.$(this.attr("elementpool").get("$jqvscrollbar")).rt_qc_mCSbar("scrollTo",e)))},r.QCELL.BasicQCELL.prototype._adjustRow=function(){try{var t=-1!==this._getSelectedRow()?this._getSelectedRow():this._idx("row","focus"),e=-1!==this._getSelectedCol()?this._getSelectedCol():this._idx("col","focus"),a=this._getCellDOM(t,e),o=this.attr("vsinfo");if(o.bVScroll&&o.nAdjustRows>0)if(t>=this.attr("headerrows")+this.attr("frozenrows")&&t<this.attr("rows")-this.attr("frozenbottomrows"))switch(this._getVScrollAdjustment(a)){case"top":this._scrollTop(o.nStartRow+o.nPos-1),this.attr("adjustrow",!0,"boolean");break;case"bottom":this._scrollTop(o.nStartRow+o.nPos+1),this.attr("adjustrow",!0,"boolean");break;default:this.attr("adjustrow",!1,"boolean")}else this.attr("adjustrow",!1,"boolean");return!0}catch(t){return r.QCELL.log("err","QCELL.BasicQCELL._adjustRow",t.message),!1}},r.QCELL.BasicQCELL.prototype._getVScrollAdjustment=function(t){var e=this.attr("vsinfo");if(e.bVScroll){var r=0;if(e.nPos===e.nLastPos){var a=this.attr("headerrows"),o=this.attr("frozenrows");if(o>0&&(r+=this._getSumOfRowHeight(a,a+o-1)),t.offsetTop<r)return"top"}else{var i=this.attr("frozenbottomrows"),s=this.attr("rows");if(r+=this.attr("layoutsize").viewport.offsetHeight,i>0&&(r-=this._getSumOfRowHeight(s-i,s-1)),t.offsetTop+t.offsetHeight>r)return"bottom"}}return"none"},r.QCELL.BasicQCELL.prototype._MoveVScrollbarToDragging=function(t){if(this.attr("dragging")){var e=this.attr("vsinfo");if(e.bVScroll){var r=this,a=this.attr("layoutsize"),o=this.attr("headerrows"),i=this.attr("frozenrows"),s=this.attr("frozenbottomrows"),l=this.attr("rows"),n=this._getSumOfRowHeight(0,o-1),c=this._getSumOfRowHeight(o,o+i-1),d=0===s?0:this._getSumOfRowHeight(l-s,l-1),h=a.container.clientY+n+c,_=a.container.clientY+n+a.viewport.offsetHeight-d,u=0;h+30>=t.clientY?this._idx("row","focus")>=o+i&&e.nPos>0&&(h>=t.clientY?(u=-5,e.nPos+u<0&&(u=-e.nPos)):u=-1):_-30<=t.clientY&&this._idx("row","focus")<l-s&&e.nPos<e.nLastPos&&(_<=t.clientY?(u=5,e.nPos+u>e.nLastPos&&(u=e.nLastPos-e.nPos)):u=1),u!==this.attr("vdcount")&&(null!==this.attr("vdhandle")&&(clearInterval(this.attr("vdhandle")),this.attr("vdhandle",null,"number")),this.attr("vdcount",u,"number")),0!==u?null===this.attr("vdhandle")&&this.attr("vdhandle",setInterval((function(){if(u<0?e.nPos>0:e.nPos<e.nLastPos){if(-1===r.attr("selectmode").indexOf("col")){var a=u<0?r._getTopRowOfScreen():r._getBottomRowOfScreen(),o=r._idx("col","cursor");r._updateIdx("drag",a,o),!1===r.attr("colmove")&&!1===r.attr("colresize")&&r._selectDragArea(t)}r._scrollTop(e.nStartRow+e.nPos+u)}else clearInterval(r.attr("vdhandle")),r.attr("vdhandle",null,"number"),r.attr("vdcount",0,"number")}),100),"number"):null!==this.attr("vdhandle")&&(clearInterval(r.attr("vdhandle")),r.attr("vdhandle",null,"number"),r.attr("vdcount",0,"number"))}}},r.QCELL.BasicQCELL.prototype._getTopRowOfScreen=function(){var t=this.attr("vsinfo");if(!1===t.bVScroll||t.nPos<=t.nLastPos-t.nAdjustRows)return t.nTopRow;for(var e,r=this._getCellGroupDOMs("row","normal"),a=this.attr("headerrows"),o=this.attr("frozenrows"),i=this._getSumOfRowHeight(a,a+o-1),s=r.length,l=0;l<s;){var n=r[l][0];if(n.offsetTop+n.offsetHeight>i){e=parseInt(n.getAttribute("data-row"));break}l+=1,n=null}return r=null,e},r.QCELL.BasicQCELL.prototype._getBottomRowOfScreen=function(){var t=this.attr("vsinfo");if(!1===t.bVScroll||t.nPos===t.nLastPos)return t.nBottomRow;var e=this._getCellGroupDOMs("row","normal"),r=this.attr("layoutsize"),a=this.attr("frozenbottomrows"),o=this.attr("rows"),i=0===a?0:this._getSumOfRowHeight(o-a,o-1),s=r.viewport.offsetHeight-i,l=e.length,n=0,c=-1;for(e.reverse();n<l;){var d=e[n][0];if(d.offsetTop<s){c=parseInt(d.getAttribute("data-row"));break}n+=1,d=null}return e=null,c},r.QCELL.BasicQCELL.prototype.onScrollTop=function(){this._trigger("scrolltop")},r.QCELL.BasicQCELL.prototype.onScrollBottom=function(){this._trigger("scrollbottom")},r.QCELL.BasicQCELL.prototype._getDefaultRemoveArea=function(t){if(null===this.attr("defaultremovearea")){var e=document.createElement("div");this.attr("defaultremovearea",this._createDefaultRemoveArea(e),"jquery")}return null===this._getQCellCol(t).attr("colremovearea")&&this._getQCellCol(t).attr("colremovearea",this.attr("defaultremovearea").clone(!0),"jquery"),this._getQCellCol(t).attr("colremovearea").get(0)},r.QCELL.BasicQCELL.prototype._createDefaultRemoveArea=function(t){var e=r.QCELL.def.css,a=t.cloneNode(),o=this.attr("rowheight").header;return a.className+=e.REMOVE_AREA,a.style.top=o-o/2-7+"px",r.$(a)},r.QCELL.BasicQCELL.prototype.rebuild=function(t){this.attr("useRebuildAPI",!0,"boolean");var e=this._rebuild(t);return this.attr("useRebuildAPI",!1,"boolean"),e},r.QCELL.BasicQCELL.prototype.resize=function(t){this.attr("isResizing",!0,"boolean");var e,a,o,i=this.getCustomPanel(),s=this.attr("hsinfo"),l=this.attr("vsinfo"),n=this._idx("row","focus","current"),c=this._idx("col","focus","current");if(e=s.nLeftCol,a=l.nTopRow,this._initHSInfo(),this._initVSInfo(),this._createElement()&&(this._refresh(),e!==s.nLeftCol&&this._scrollLeft(e),a!==l.nTopRow&&this._scrollTop(a),this._updateIdx("focus",-1,-1),this._focusCell(n,c),this.resetCustomPanel(i),!0===this.attr("makefrozenbottomdata"))){var d=this.attr("currentdata");if(!r._.isEmpty(d)&&r._.isArray(d)&&0!==d.length){var h=this.getID();!0!==d[d.length-1].rt_qc_fbrd?(d.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(o=r.QCELL.getInstance(h))&&o._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(o=r.QCELL.getInstance(h))&&o._trigger("frozendataupdated")}),0)}}return!0},r.QCELL.BasicQCELL.prototype.setBottomPanelData=function(t){var e=r.QCELL.def,a=this.attr("id"),o="#"+e.areaname.SHEETPANEL+"-span-"+a;return null!==document.getElementById(e.areaname.SHEETPANEL+"-span-"+a)&&(r.$(o).html(t),!0)},r.QCELL.BasicQCELL.prototype.refresh=function(){return this._refresh()},r.QCELL.BasicQCELL.prototype.initGrid=function(t){this.attr("useInitProp",!0,"boolean");var e=this._rebuild(t);return this.attr("useInitProp",!1,"boolean"),e},r.QCELL.BasicQCELL.prototype.getID=function(){return this.attr("id")},r.QCELL.BasicQCELL.prototype.getIdx=function(t,e,a){var o=this.attr("id")+".getIdx";if(arguments.length<1)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"focus":e,a=void 0===a?"current":a,"string"==typeof t&&"string"==typeof e)return"previous"===a?this._idx(t,e,a):this._idx(t,e);r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return-1},r.QCELL.BasicQCELL.prototype.getRows=function(t){var e=this.attr("id")+".getRows",a=0;if(void 0===t&&(t="all"),"string"==typeof t)switch(t){case"header":a=this.attr("headerrows");break;case"data":a=this.attr("rows")-this.attr("headerrows");break;case"frozen":a=this.attr("frozenrows");break;case"frozenbottom":a=this.attr("frozenbottomrows");break;case"footer":a=this.attr("footerrows");break;case"all":a=this.attr("rows")}else r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return a},r.QCELL.BasicQCELL.prototype.getCols=function(t){var e=this.attr("id")+".getCols",a=0;if(void 0===t&&(t="nomal"),"string"==typeof t)switch(t){case"header":a=this.attr("headercols");break;case"data":a=this.attr("cols")-this.attr("headercols");break;case"frozen":a=this.attr("frozencols");break;case"frozenright":a=this.attr("frozenrightcols");break;case"hidden":a=null!==this.attr("hiddencolsprops")?this.attr("hiddencolsprops").length:0;break;case"nomal":a=this.attr("cols");break;case"all":a=this.attr("cols")+(null!==this.attr("hiddencolsprops")&&void 0!==this.attr("hiddencolsprops")?this.attr("hiddencolsprops").length:0)}else r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return a},r.QCELL.BasicQCELL.prototype.getRowHeight=function(t){var e=this.attr("id")+".getRowHeight",a=0;if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("string"==typeof t)switch(t){case"header":case"data":case"footer":a=this.attr("rowheight")[t]}else r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return a},r.QCELL.BasicQCELL.prototype.getColWidths=function(){return this.attr("colwidthsperpixel")},r.QCELL.BasicQCELL.prototype.getColsOfKey=function(t){var e=this.attr("id")+".getColsOfKey";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return null===this.attr("colkeysinfo").get(t)?[]:this.attr("colkeysinfo").get(t).values();r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return[]},r.QCELL.BasicQCELL.prototype.getColOfKey=function(t){var e=this.attr("id")+".getColOfKey";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return null===this.attr("colkeysinfo").get(t)?-1:this.attr("colkeysinfo").get(t).values()[0];r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return[]},r.QCELL.BasicQCELL.prototype.getKeyOfCol=function(t){var e=this.attr("id")+".getKeyOfCol";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getKeyOfCol(t);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},r.QCELL.BasicQCELL.prototype.setKeyOfCol=function(t,e){var a=this.attr("id")+".setKeyOfCol";if(arguments.length<2)r.QCELL.log("log",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._setKeyOfCol(t,e);r.QCELL.log("log",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getColID=function(t){var e=this.attr("id")+".getColID";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColID(t);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},r.QCELL.BasicQCELL.prototype.getColOfID=function(t){var e=this.attr("id")+".getColOfID";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._getColOfID(t);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},r.QCELL.BasicQCELL.prototype.getColWidth=function(t){var e=this.attr("id")+".getColWidth";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColWidth(t);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},r.QCELL.BasicQCELL.prototype.getColWidthEx=function(t){var e=this.attr("id")+".getColWidthEx";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColWidth(t);if("string"==typeof t){var a=this.getColOfKey(t);if(-1===a){var o=this.attr("hiddencolsprops");if(null!=o)for(var i=0;i<o.length;i++)if(o[i].key===t)return"string"==typeof o[i].width&&(o[i].width=r.util.replaceAll(o[i].width,"px",""),o[i].width=r.util.replaceAll(o[i].width,"%",""),o[i].width=Number(o[i].width),isNaN(o[i].width)&&(o[i].width=0)),o[i].width;return-1}return this.getColWidth(a)}r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},r.QCELL.BasicQCELL.prototype.setColWidth=function(t,e){var a=this.attr("id")+".setColWidth";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("cols")&&t>=this.attr("headercols")&&this._setColWidth(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.setColWidthEx=function(t,e){var a=this.attr("id")+".setColWidthEx";if(!(arguments.length<2)){var o=this.getColOfKey(t);if(-1!==o)return this.setColWidth(o,e);var i=this.attr("hiddencolsprops");if(null!=i)for(var s=0;s<i.length;s++)if(i[s].key===t)return i[s].width=e,!0;return!1}return r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT),!1},r.QCELL.BasicQCELL.prototype.getColType=function(t){var e=this.attr("id")+".getColType";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColType(t);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},r.QCELL.BasicQCELL.prototype.setColFormatStatic=function(t,e){var a=this.attr("id")+".setColFormatStatic";return arguments.length<2?(r.QCELL.log("log",a,this.attr("msg").err.PARAM_COUNT),!1):"number"==typeof t?this._setFormatStatic(t,e):(r.QCELL.log("log",a,this.attr("msg").err.PARAM_TYPE),!1)},r.QCELL.BasicQCELL.prototype.getColAttribute=function(t,e){var a=this.attr("id")+".getColAttribute";if(arguments.length<2)r.QCELL.log("log",a,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t){if(void 0!==this._getQCellCol(t))return this._getQCellCol(t).attr(e)}else r.QCELL.log("log",a,this.attr("msg").err.PARAM_TYPE);return""},r.QCELL.BasicQCELL.prototype.getFrozenRows=function(){return this.attr("frozenrows")},r.QCELL.BasicQCELL.prototype.setFrozenRows=function(t){var e=this.attr("id")+".setFrozenRows";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenrows=t,this._rebuild(),!0;r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getFrozenCols=function(){return this.attr("frozencols")},r.QCELL.BasicQCELL.prototype.setFrozenCols=function(t){var e=this.attr("id")+".setFrozenCols";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){this.getProperties().frozencols=t;var a,o,i=[];for(a=this.getCols("header");a<this.getCols();a++){var s=this._getQCellCol(a).attr("celldisabled");i.push(r._.clone(s))}this._rebuild();var l=this.getCols("header");for(a=0;a<i.length;a++)for(o=0;o<i[a].length;o++)!0===i[a][o]&&this.setCellDisable(o,a+l,!0);return i=null,!0}r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getFrozenRightCols=function(){return this.attr("frozenrightcols")},r.QCELL.BasicQCELL.prototype.setFrozenRightCols=function(t){var e=this.attr("id")+".setFrozenRightCols";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenrightcols=t,this._rebuild(),!0;r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getFrozenBottomRows=function(){return this.attr("frozenbottomrows")},r.QCELL.BasicQCELL.prototype.setFrozenBottomRows=function(t){var e=this.attr("id")+".setFrozenBottomRows";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenbottomrows=t,this._rebuild(),!0;r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.removeColumn=function(t){var e=this.attr("id")+".removeColumn";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){if(null!==this._getQCellCol(t)&&null!==this._getQCellCol(t).attr("removecallback")&&!0===r._.isFunction(this._getQCellCol(t).attr("removecallback"))&&!1===this._getQCellCol(t).attr("removecallback")(t))return!1;var a=this.getProperties();if(t-=this.attr("headercols"),a.columns.length<=t||t<0||a.columns.length<=0)return!1;a.columns.splice(t,1),this._rebuild(!0);var o=this;return setTimeout((function(){void 0!==o._trigger&&o._trigger("removeend")}),0),!0}r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.insertColumn=function(t,e){var a=this.attr("id")+".insertColumn";if(arguments.length<2)r.QCELL.log("log",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&r._.isObject(e)){var o=this.getProperties();return t-=this.attr("headercols"),!(o.columns.length<t||t<0||o.columns.length<=0)&&(o.columns.RT_insert(t,e),this._rebuild(!0),!0)}r.QCELL.log("log",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.resetColumns=function(){var t=this.getProperties(),e=this.getInitProperties();return t.columns=r._.clone(e.columns),this._rebuild(!0),!0},r.QCELL.BasicQCELL.prototype.getColumnInfo=function(t){var e=this.attr("id")+".getColumnInfo";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){var a=this.getProperties();return t-=this.attr("headercols"),a.columns.length<=t||t<0||a.columns.length<=0?null:a.columns[t]}r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return null},r.QCELL.BasicQCELL.prototype.getCurrentColumnsInfo=function(){for(var t=[],e=this.attr("headercols"),r=this.attr("cols"),a=e;a<r;a++){var o={},i=this._getColPrevProperty(a);for(var s in i)"format"===s&&""===i.format.type&&""===i.format.rule||"html"===s&&null===i.html.data&&null===i.html.header||"header_text_align"!==s&&"id"!==s&&"invisibled"!==s&&"parent"!==s&&(o[s]="width"===s?this.getColWidth(a)+"px":i[s]);t.push(o)}return t},r.QCELL.BasicQCELL.prototype.setResizeAction=function(t){this.attr("bResizeAction",t,"boolean")},r.QCELL.BasicQCELL.prototype.getHighlightRepeat=function(){return this.attr("highlightrepeat")},r.QCELL.BasicQCELL.prototype.setHighlightRepeat=function(t){var e=this.attr("id")+".setHighlightRepeat";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>=0&&this._setHighlightRepeat(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.setColStyle=function(t,a,o){var i=this.attr("id")+".setColStyle";if(arguments.length<2)r.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(o=void 0===o?"all":o,"number"==typeof t&&"object"===e(a)&&"string"==typeof o)return t<this.attr("cols")&&t>=0&&this._setColStyle(t,a,o,!0);r.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.removeColStyle=function(t,e){var a=this.attr("id")+".removeColStyle";if(arguments.length<1)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"all":e,"number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=0&&this._removeColStyle(t,e,!0);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.setRowStyle=function(t,a,o){var i=this.attr("id")+".setRowStyle";if(arguments.length<2)r.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(o=void 0===o?"all":o,"number"==typeof t&&"object"===e(a)&&"string"==typeof o)return t<this.attr("rows")&&t>=0&&this._setRowStyle(t,a,o,!0);r.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.removeRowStyle=function(t,e){var a=this.attr("id")+".removeRowStyle";if(arguments.length<1)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"all":e,"number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=0&&this._removeRowStyle(t,e,!0);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getCellStyle=function(t,e){var a=this.attr("id")+".getCellStyle";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0?this._getCellStyle(t,e):{};r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return{}},r.QCELL.BasicQCELL.prototype.setCellStyle=function(t,a,o){var i=this.attr("id")+".setCellStyle";if(arguments.length<3)r.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof a&&"object"===e(o))return t<this.attr("rows")&&t>=0&&a<this.attr("cols")&&a>=0&&this._setCellStyle(t,a,o,!0);r.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.setCellStyles=function(t,a,o,i,s){var l=this.attr("id")+".setCellStyles";if(arguments.length<5)r.QCELL.log("err",l,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof a&&"number"==typeof o&&"number"==typeof i&&"object"===e(s))return t<this.attr("rows")&&t>=0&&a<this.attr("cols")&&a>=0&&o<this.attr("rows")&&o>=0&&i<this.attr("cols")&&i>=0&&this._setCellStyles(t,a,o,i,s,!0);r.QCELL.log("err",l,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.removeCellStyle=function(t,e){var a=this.attr("id")+".removeCellStyle";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._removeCellStyle(t,e,!0);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.removeCellStyles=function(t,e,a,o){var i=this.attr("id")+".setCellStyles";if(arguments.length<4)r.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e&&"number"==typeof a&&"number"==typeof o)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&a<this.attr("rows")&&a>=0&&o<this.attr("cols")&&o>=0&&this._removeCellStyles(t,e,a,o,!0);r.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.clearCellStyles=function(){return this._clearCellStyles()},r.QCELL.BasicQCELL.prototype.clearDynamicStyles=function(){return this._clearDynamicStyles()},r.QCELL.BasicQCELL.prototype.getSelectedRow=function(){return this._getSelectedRow()},r.QCELL.BasicQCELL.prototype.getSelectedCol=function(){return this._getSelectedCol()},r.QCELL.BasicQCELL.prototype.getSelectedRows=function(){return this._getSelectedRows().sort(r.st.asc)},r.QCELL.BasicQCELL.prototype.getSelectedCols=function(){return this._getSelectedCols().sort(r.st.asc)},r.QCELL.BasicQCELL.prototype.moveCol=function(t,e){var a=this.attr("id")+".moveCol";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("cols")&&t>=this.attr("headercols")&&e<this.attr("cols")&&e>=this.attr("headercols")&&this._moveCols(t,1,e,!1);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.scrollTop=function(t){var e=this.attr("id")+".scrollTop";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")&&this._scrollTop(t);if("string"==typeof t)return"top"===t?(this._scrollTop(this.attr("headerrows")),!0):"bottom"===t?(this._scrollTop(this.attr("rows")-1),!0):(r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),!1);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.scrollLeft=function(t){var e=this.attr("id")+".scrollLeft";if(arguments.length<1)r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("cols")&&t>=this.attr("headercols")&&this._scrollLeft(t);if("string"==typeof t)return"left"===t?(this._scrollLeft(this.attr("headercols")),!0):"right"===t?(this._scrollLeft(this.attr("cols")-1),!0):(r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),!1);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.isScroll=function(t){var e=this.attr("id")+".isScroll",a=!1;return arguments.length<1?r.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT):"string"==typeof t?"vertical"===t?a=this.attr("vsinfo").bVScroll:"horizontal"===t&&(a=this.attr("hsinfo").bHScroll):r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),a},r.QCELL.BasicQCELL.prototype.getUpdateInfo=function(){return{toprow:this.attr("vsinfo").nTopRow,bottomrow:this.attr("vsinfo").nBottomRow}},r.QCELL.BasicQCELL.prototype.getData=function(){return this.attr("currentdata")},r.QCELL.BasicQCELL.prototype.getAllData=function(){return this.attr("data").input},r.QCELL.BasicQCELL.prototype.getAllDataWithFormat=function(){for(var t=[],e=this.getRows("header");e<this.getRows();e++)t.push(this.getRowDataWithFormat(e));return t},r.QCELL.BasicQCELL.prototype.setData=function(t,e){var a=this.attr("id")+".setData";if(arguments.length<1)r.QCELL.log("log",a,this.attr("msg").err.PARAM_COUNT);else{if(r._.isArray(t))return!(!0===e||!this._checkData(t))||this._setData(t);r.QCELL.log("log",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.clearData=function(){var t=this.attr("id")+".clearData";return arguments.length>1?(r.QCELL.log("log",t,this.attr("msg").err.PARAM_COUNT),!1):(this.attr("clearingdata",!0,"boolean"),this._setData([]),this.attr("clearingdata",!1,"boolean"),!0)},r.QCELL.BasicQCELL.prototype.getRowData=function(t){var e=this.attr("id")+".getRowData";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowData(t):void 0;r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.getRowDataWithFormat=function(t){var e=this.attr("id")+".getRowDataWithFormat";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowDataWithFormat(t):void 0;r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.getSelectedRowData=function(){for(var t=this._getIdxInfo("selected","row").keys().sort(),e=[],r=0;r<t.length;r++)e.push(this.getRowData(t[r]));return e},r.QCELL.BasicQCELL.prototype.setRowData=function(t,a){var o=this.attr("id")+".setRowData";if(t=Number(t),arguments.length<2)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{var i=this.attr("data").type;if("number"==typeof t&&"array"===i&&r._.isArray(a)||"object"===i&&"object"===e(a)&&!1===r._.isArray(a)){var s=t<this.attr("rows")&&t>=this.attr("headerrows")&&this._setRowData(t,a);return!1!==s&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),s}r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.setRowDataEx=function(t,a){var o=this.attr("id")+".setRowData";if(arguments.length<2)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{var i=this.attr("data").type;if("number"==typeof t&&"array"===i&&r._.isArray(a)||"object"===i&&"object"===e(a)&&!1===r._.isArray(a)){var s=t<this.attr("rows")&&t>=this.attr("headerrows")&&this._setRowDataEx(t,a);return!1!==s&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),s}r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getColData=function(t){var e=this.attr("id")+".getColData";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("cols")&&t>=this.attr("headercols")?this._getColData(t):[];r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return[]},r.QCELL.BasicQCELL.prototype.setColData=function(t,e){var a=this.attr("id")+".setColData";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&r._.isArray(e))return t<this.attr("cols")&&t>=this.attr("headercols")&&this._setColData(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getCellData=function(t,e){var a=this.attr("id")+".getCellData";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=this.attr("headerrows")&&e<this.attr("cols")&&e>=this.attr("headercols")?this._cellValue(t,e):void 0;r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.getCellDataEx=function(t,e){var a=this.attr("id")+".getCellDataEx";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowData(t)[e]:void 0;r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.getInitCellDataEx=function(t,e){var a=this.attr("id")+".getInitCellDataEx";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){if(t<this.attr("rows")&&t>=this.attr("headerrows")){var o=this._getRowData(t);return void 0!==o.rt_qcell_initdata?o.rt_qcell_initdata[e]:this.getCellDataEx(t,e)}return}r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.setCellData=function(t,e,a){var o=this.attr("id")+".setCellData";if(arguments.length<3)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){var i=t<this.attr("rows")&&t>=this.attr("headerrows")&&e<this.attr("cols")&&e>=this.attr("headercols")&&this._cellValue(t,e,a);return!1!==i&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),i}r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.setCellDataEx=function(t,e,a){var o=this.attr("id")+".setCellDataEx",i=!0;if(arguments.length<3)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t&&"string"==typeof e){if(t>this.attr("rows")||t<this.attr("headerrows"))return!1;var s=this.getColsOfKey(e);if(s.length>0){var l;for(l=0;l<s.length;l++)i=this.setCellData(t,s[l],a);return i}var n=this.getRowData(t);if(void 0!==n)return n[e]=a,this.setRowData(t,n),!0}else r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE);return!1},r.QCELL.BasicQCELL.prototype.getCellLabel=function(t,e){var a=this.attr("id")+".getCellLabel";if(arguments.length<2)r.QCELL.log("log",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t>=0&&t<this.attr("rows")&&e>=0&&e<this.attr("cols")?this._getCellLabel(t,e):void 0;r.QCELL.log("log",a,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.setCellLabel=function(t,e,a){var o=this.attr("id")+".setCellLabel";return arguments.length<3?(r.QCELL.log("log",o,this.attr("msg").err.PARAM_COUNT),!1):"number"!=typeof t||"number"!=typeof e||"string"!=typeof a&&"number"!=typeof a?(r.QCELL.log("log",o,this.attr("msg").err.PARAM_TYPE),!1):t>=0&&t<this.attr("rows")&&e>=0&&e<this.attr("cols")&&this._setCellLabel(t,e,a)},r.QCELL.BasicQCELL.prototype.requestData=function(t){var e=this.attr("id")+".requestData",a=this,o="";try{"string"==typeof t.url?(!1===r._.isUndefined(t.param)&&(o=r._.isObject(t.param)?JSON.stringify(t.param):t.param),r.$.post(t.url,o,(function(e){return!1===r._.isUndefined(t.callback)&&r._.isFunction(t.callback)?t.callback(JSON.parse(e)):a._setData(JSON.parse(e))}))):r.QCELL.log("err",e,'Please check parameter. This url parameter\'s type is "string".')}catch(t){return r.QCELL.log("err",e,t.message),!1}},r.QCELL.BasicQCELL.prototype.showProgress=function(){var t=this.attr("id")+".showProgress";try{this._showProgressUI(!0)}catch(e){return r.QCELL.log("err",t,e.message),!1}return!0},r.QCELL.BasicQCELL.prototype.hideProgress=function(t){var e=this.attr("id")+".hideProgress";try{this._showProgressUI(!1,t)}catch(t){return r.QCELL.log("err",e,t.message),!1}return!0},r.QCELL.BasicQCELL.prototype.setHeaderCellValue=function(t,e,a){var o=this.attr("id")+".setHeaderCellValue";if(arguments.length<3)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){var i=this.attr("headercols"),s=this.attr("cols"),l=t<this.attr("headerrows")&&e>=i&&e<s&&this._cellValue(t,e,a);return!0===l&&(this._setRoleTitle(),this._resetAriaLabel(e)),l}r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.setHeaderCellValueEx=function(t,e,a){var o=this.attr("id")+".setHeaderCellValueEx";if(arguments.length<3)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){var i=this.attr("headercols"),s=this.attr("cols"),l=this.getColOfKey(e);return-1!==l?t<this.attr("headerrows")&&l>=i&&l<s&&this._cellValue(t,l,a):this._hiddenHeaderCellValue(t,e,a)}r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.getHeaderCellValueEx=function(t,e){var a=this.attr("id")+".getHeaderCellValueEx";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){var o=this.attr("headercols"),i=this.attr("cols"),s=this.getColOfKey(e);return-1!==s?t<this.attr("headerrows")&&s>=o&&s<i?this._cellValue(t,s):null:this._hiddenHeaderCellValue(t,e)}r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.resetData=function(){var t=this.attr("id")+".resetData";try{return this._resetData()}catch(e){return r.QCELL.log("err",t,e.message),!1}},r.QCELL.BasicQCELL.prototype.getFocusRowData=function(){var t=this.attr("id")+".getFocusRowData";try{return this._getFocusRowData()}catch(e){return r.QCELL.log("err",t,e.message),!1}},r.QCELL.BasicQCELL.prototype.findRow=function(t,e,r){var a=this._getKeyOfCol(r);return""===a||void 0===a?-1:this._findRowSub(t,e,a)},r.QCELL.BasicQCELL.prototype.findRowEx=function(t,e,r){return""===r||void 0===r?-1:this._findRowSub(t,e,r)},r.QCELL.BasicQCELL.prototype.swapData=function(t,e){var a=this.attr("currentdata"),o=this.getRows("header");if(t-o<0||e-o<0)return!1;if(t-o>=a.length||e-o>=a.length)return!1;var i=r._.clone(a[t-o]),s=r._.clone(a[e-o]);return a[t-o]=s,a[e-o]=i,this.refresh(),!0},r.QCELL.BasicQCELL.prototype.setFrozenDataEx=function(t,e){var a=this.attr("id")+".setFrozenDataEx",o=!0,i=this.getRows()-1;if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof i&&"string"==typeof t){if(i>this.attr("rows")||i<this.attr("headerrows"))return!1;var s=this.getRowData(i);if(!0!==this.attr("makefrozenbottomdata"))return!1;if(!0!==s.rt_qc_fbrd)return!1;if("rt_qc_seq"===t){for(var l=this.attr("rowheaders"),n=0;n<l.length;n++)if("sequence"===l[n]){var c=this._getCellDOM(i,n);null!==c&&(c.textContent=e)}}else{var d=this.getColsOfKey(t);if(d.length>0){var h;for(h=0;h<d.length;h++)o=this.setCellData(i,d[h],e);return o}}if(void 0!==s)return s[t]=e,this.setRowData(i,s),!0}else r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE);return!1},r.QCELL.BasicQCELL.prototype.getFrozenDataEx=function(t){var e=this.attr("id")+".getFrozenDataEx",a=this.getRows()-1;if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{var o=this.getRowData(a);if(!0!==this.attr("makefrozenbottomdata"))return;if(!0!==o.rt_qc_fbrd)return;if("rt_qc_seq"===t)for(var i=this.attr("rowheaders"),s=0;s<i.length;s++)if("sequence"===i[s])return this._getRowData(a)[t];if("number"==typeof a&&"string"==typeof t)return a<this.attr("rows")&&a>=this.attr("headerrows")?this._getRowData(a)[t]:void 0;r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.getFrozenCellStyleEx=function(t){var e=this.attr("id")+".getCellStyle";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{var a=this.getRows()-1,o=this.getRowData(a);if(!0!==this.attr("makefrozenbottomdata"))return{};if(!0!==o.rt_qc_fbrd)return{};if("number"==typeof a&&"number"==typeof t)return a<this.attr("rows")&&a>=0&&t<this.attr("cols")&&t>=0?this._getCellStyle(a,t):{};r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return{}},r.QCELL.BasicQCELL.prototype.getUseEmptyMessage=function(){return!1!==this.attr("useemptymessage")},r.QCELL.BasicQCELL.prototype.setUseEmptyMessage=function(t){this.getProperties().useemptymessage=!0===t,this.attr("useemptymessage",t,"boolean")},r.QCELL.BasicQCELL.prototype.swapData=function(t,e){if(r._.isString(e))if("first"===e)e=this.getRows("header");else{if("last"!==e)return!1;e=!0===this.attr("makefrozenbottomdata")?this.getRows()-2:this.getRows()-1}if(t===e)return!1;var a,o,i=this.getRowData(t),s=this.getRowData(e);if(void 0===i||void 0===s)return!1;if(this.setRowData(t,s),this.setRowData(e,i),this.attr("useall")||this.attr("usetreeall"))for(a=this.getCols("header");a<this.getCols();a++){var l=this._getCellDOM(t,a);null!=l&&(o=void 0===(o=this.getCellData(t,a))?"":o,this._setAriaLabel(l,t,a,o,!1));var n=this._getCellDOM(e,a);null!=n&&(o=void 0===(o=this.getCellData(e,a))?"":o,this._setAriaLabel(n,e,a,o,!1))}return!0},r.QCELL.BasicQCELL.prototype.moveData=function(t,e){if(r._.isString(e))if("first"===e)e=this.getRows("header");else{if("last"!==e)return!1;e=!0===this.attr("makefrozenbottomdata")?this.getRows()-1:this.getRows()}if(t===e)return!1;if(t<this.attr("headerrows")||e<this.attr("headerrows"))return!1;var a=this.attr("currentdata"),o=-1,i=-1;-1!==this.getIdx("row","focus")&&-1!==this.getIdx("col","focus")&&(o=this.getIdx("row","focus"),i=this.getIdx("col","focus"),a[o-this.attr("headerrows")]._rt_qc_focus={row:o,col:i});var s=this.getRowData(t);if(void 0===s)return!1;var l=[];if(l.push(s),(t-=this.attr("headerrows"))>(e-=this.attr("headerrows"))?(a.splice(t,1),a.RT_insertArray(e,l)):(a.RT_insertArray(e+1,l),a.splice(t,1)),e>a.length)return!1;if(e<0)return!1;var n=this.attr("vsinfo"),c=e+this.attr("headerrows");n.bVScroll?n.nTopRow<=c&&c<=n.nBottomRow?this._updateNRs():this._scrollTop(c):this._updateNRs();for(var d=-1,h=-1,_=0;_<a.length;_++)if(void 0!==a[_]._rt_qc_focus){d=_+this.attr("headerrows"),h=a[_]._rt_qc_focus.col,delete a[_]._rt_qc_focus;break}if(-1!==d&&-1!==h){var u=this;setTimeout((function(){switch(u._focusCell(d,h),u.attr("selectmode")){case"row":case"rows":u._clearSelection(),u._selectRow(d);break;case"col":case"cols":u._clearSelection(),u._selectCol(h);break;default:u._clearSelection(),u._selectCell(d,h)}}),0)}return!0},r.QCELL.BasicQCELL.prototype.resetCustomPanel=function(t){var e=r.QCELL.def,a=this.attr("id"),o="#"+e.areaname.SHEETPANEL+"-span-"+a;return!1!==this.attr("bottompanel")&&(null!==this.attr("bottompanelcallback")&&r._.isFunction(this.attr("bottompanelcallback"))&&(t=this.attr("bottompanelcallback").call(this,-1,-1,t)),r.$(o).html(t),!0)},r.QCELL.BasicQCELL.prototype.getCustomPanel=function(){var t=r.QCELL.def,e=this.attr("id"),a="#"+t.areaname.SHEETPANEL+"-span-"+e,o=r.$(a).text();if(!1!==this.attr("bottompanel"))return null!==this.attr("bottompanelcallback")&&r._.isFunction(this.attr("bottompanelcallback"))&&(o=this.attr("bottompanelcallback").call(this,-1,-1,"")),o},r.QCELL.BasicQCELL.prototype.lookup=function(t,e){var a,o={},i=this.attr("data").input;if(e=void 0===e?"or":e,!r._.isArray(t))return!1;a=t.length;for(var s=0;s<t.length;s++){var l=t[s];if(void 0===l.key||void 0===l.condition)return!1;for(var n=l.key,c=l.condition,d=0;d<i.length;d++)if(void 0!==i[d][n]&&r._.isString(i[d][n]))try{void 0!==i[d][n]&&r._.isString(i[d][n])&&-1!==i[d][n].indexOf(c)&&(void 0===o["k_"+d]?o["k_"+d]=1:o["k_"+d]=o["k_"+d]+1)}catch(t){continue}}var h=[],_=[];for(var u in o){var p=o[u],C=-1;("or"===e||p===a)&&(C=Number(u.replace("k_",""))),-1!==C&&_.push(C)}_.sort();for(var g=0;g<_.length;g++)h.push(r._.clone(i[_[g]]));return this._setCurrentData(h),!0},r.QCELL.BasicQCELL.prototype.resetLookup=function(){var t=this.attr("id")+".resetSearch";try{this._setCurrentData(this.attr("data").input)}catch(e){return r.QCELL.log("err",t,e.message),!1}return!0},r.QCELL.BasicQCELL.prototype.sort=function(t){var e=this.attr("id")+".sort";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isArray(t))return!0!==this.attr("isSorting")&&this._sort(t);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.sortEx=function(t){var e=this.attr("id")+".sortEx";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(!0===this.attr("isSorting"))return!1;if(r._.isArray(t))return this._sort(t);r.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.bind=function(t,e,a){var o=this.attr("id")+".bind";if(arguments.length<2)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t&&r._.isFunction(e))return this._bind(t,e,!0,a);r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.unbind=function(t){var e=this.attr("id")+".unbind";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._unbind(t,!0);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getUserEventInfo=function(){return r._.clone(this.attr("usereventinfo"))},r.QCELL.BasicQCELL.prototype.trigger=function(t){var e=this.attr("id")+".trigger";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._trigger(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.clickCell=function(t,e){var a=this.attr("id")+".clickCell";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._clickCell(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.dblClickCell=function(t,e){var a=this.attr("id")+".dblClickCell";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._dblClickCell(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.focusCell=function(t,e,a){var o=this,i=this.attr("id")+".focusCell";if(a=void 0===a?200:a,arguments.length<2)r.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){if(!(t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0))return!1;var s=this._getCellDOM(t,e);return r._.isElement(s)&&r.util.hasClass(s,r.QCELL.def.css.CELL)||(this.scrollTop(t),this.scrollLeft(e)),setTimeout((function(){o.clickCell(t,e)}),a),!0}r.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},r.QCELL.BasicQCELL.prototype.excelDownload=function(t){var a=this.attr("id")+".excelDownload",o=!1;return arguments.length<1?r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT):"object"===e(t)?(this._excelDownload(t),o=!0):r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o},r.QCELL.BasicQCELL.prototype.excelUpload=function(t){var a=this.attr("id")+".excelUpload",o=!1;return arguments.length<1?r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT):"object"===e(t)?(this._excelUpload(t),o=!0):r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o},r.QCELL.BasicQCELL.prototype.excelExportInfo=function(t){var a=this.attr("id")+".excelExportInfo",o={};return 0===arguments.length?o=this._exportCellInfo():arguments.length>1?r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT):"object"===e(t)?o=this._exportCellInfo(t):r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o},r.QCELL.BasicQCELL.prototype.htmlDownload=function(t){var a=this.attr("id")+".htmlDownload",o=!1;return arguments.length<1?(r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT),o=!1):"object"===e(t)?o=this._htmlDownload(t):(r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o=!1),o},r.QCELL.BasicQCELL.prototype.htmlExport=function(t){var a=this.attr("id")+".htmlExport",o=!1;return arguments.length<1?(r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT),o=!1):"object"===e(t)?(t.export=!0,t.filename="temp",o=this._htmlDownload(t)):(r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o=!1),o},r.QCELL.BasicQCELL.prototype.pdfDownload=function(t){var a=this.attr("id")+".pdfDownload",o=!1;return arguments.length<1?(r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT),o=!1):"object"===e(t)?o=this._pdfDownload(t):(r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o=!1),o},r.QCELL.BasicQCELL.prototype.txtDownload=function(t){var a=this.attr("id")+".txtDownload",o=!1;return arguments.length<1?(r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT),o=!1):"object"===e(t)?o=this._txtDownload(t):(r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o=!1),o},r.QCELL.BasicQCELL.prototype.excelDownloadURLHuge=function(t){var a=this.attr("id")+".excelDownloadURLHuge",o=!1;return arguments.length<1?r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT):"object"===e(t)?(this._excelDownloadURLHuge(t),o=!0):r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o},r.QCELL.BasicQCELL.prototype.exportCellInfoURLHuge=function(t){var a=this.attr("id")+".excelExportInfoURLHuge",o={};return 0===arguments.length?o=this._exportCellInfo():arguments.length>1?r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT):"object"===e(t)?o=this._exportCellInfoURLHuge(t):r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o},r.QCELL.BasicQCELL.prototype.merge=function(t,e){var r=null,a=this.attr("merge");switch(e){case"row":case"col":case"rowandcol":case"colandrow":case"group":case"none":break;default:return!1}if("header"===t)r=this.attr("merge_header_info"),this._clearMergeHeader(),r&&r.RT_clear(),a.header=e,this._createHeaderMergeInfo(),this._updateMergeHeader(),this._refresh();else{if("data"!==t)return!1;r=this.attr("merge_data_info"),this._clearMergeData(),r&&r.RT_clear(),a.data=e,this._createDataMergeInfo(),this._updateMergeData(),this._refresh()}return!0},r.QCELL.BasicQCELL.prototype.setPageIndex=function(t){var e=this.attr("id")+".setPageIndex",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):r._.isNumber(t)?(this._movePage(t),a=!0):r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),a},r.QCELL.BasicQCELL.prototype.getPageIndex=function(){return r._.clone(this.attr("paginationinfo").pageindex)},r.QCELL.BasicQCELL.prototype.setPageUnit=function(t){var e=this.attr("id")+".setPageUnit",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):r._.isNumber(t)?(this._movePage(this.attr("paginationinfo").pageindex,t),a=!0):r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),a},r.QCELL.BasicQCELL.prototype.getPageUnit=function(){return r._.clone(this.attr("paginationinfo").pageunit)},r.QCELL.BasicQCELL.prototype.setPaginationParam=function(t){var e=this.attr("id")+".setPaginationParam",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):r._.isObject(t)&&!1===r._.isArray(t)?(this._setPaginationParam(t),a=!0):r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),a},r.QCELL.BasicQCELL.prototype.getPaginationParam=function(){return r._.clone(this.attr("paginationinfo").param)},r.QCELL.BasicQCELL.prototype.setPaginationDatacount=function(t){var e=this.attr("id")+".setPaginationDatacount",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===r._.isNumber(t)?(this.attr("paginationinfo").datacount=t,a=!0):r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),a},r.QCELL.BasicQCELL.prototype.getPaginationDatacount=function(){return r._.clone(this.attr("paginationinfo").datacount)},r.QCELL.BasicQCELL.prototype.setPaginationUrl=function(t){var e=this.attr("id")+".setPaginationUrl",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===r._.isString(t)?(this.attr("paginationinfo").url=t,a=!0):r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),a},r.QCELL.BasicQCELL.prototype.getPaginationUrl=function(){return r._.clone(this.attr("paginationinfo").url)},r.QCELL.BasicQCELL.prototype.setPaginationLoadonce=function(t){var e=this.attr("id")+".setPaginationLoadonce",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===r._.isBoolean(t)?(this.attr("paginationinfo").loadonce=t,a=!0):r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),a},r.QCELL.BasicQCELL.prototype.getPaginationLoadonce=function(){return r._.clone(this.attr("paginationinfo").loadonce)},r.QCELL.BasicQCELL.prototype.setPaginationInitSort=function(){return this.attr("paginationinfo").initsort=!0,!0},r.QCELL.BasicQCELL.prototype.getRowheaderChecked=function(t){var e=this.attr("id")+".getRowheaderChecked",a=[];if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(r._.isNumber(t)){var o=this.attr("rowheaders")[t];if("checkbox"===o||"radio"===o){for(var i,s=void 0!==this.attr("staticrowsinfo")?this.attr("staticrowsinfo"):[],l=s.length,n=!1,c=this.attr("headerrows"),d=this.attr("rows");c<d;c++)if(!0===this._getRowheaderData(c,t)){if(void 0!==this._getQCellCol(t).attr("cellinvisible")[c]&&!0===this._getQCellCol(t).attr("cellinvisible")[c])continue;if(l>0)for(n=!1,i=0;i<l;i++)if(s[i].nRow===c){n=!0;break}if(n)continue;a.push(c)}}else r.QCELL.log("err",e,'This Rowheader Type is not "Checkbox".')}else r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return a},r.QCELL.BasicQCELL.prototype.setRowheaderChecked=function(t,e,a){var o=this.attr("id")+".setRowheaderChecked",i=!1;if(arguments.length<3)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else if(r._.isNumber(e)){var s=this.attr("rowheaders")[e];if("checkbox"===s||"radio"===s)if(r._.isNumber(t)&&r._.isBoolean(a)){var l=this._getCellDOM(t,e);if(this._setRowheaderData(t,e,a),null!==l){var n=l.childNodes[0];if(void 0!==n&&(n.checked=a),t<this.attr("headerrows"))for(var c=this.attr("headerrows");c<this.getRows();c++){var d=this._getCellDOM(c,e);if(null!==d){var h=d.childNodes[0];void 0!==h&&(h.checked=a)}}}else if("radio"===s)for(var _=this.getRows("header");_<this.getRows();_++){var u=this._getCellDOM(_,e);if(null!==u){var p=u.childNodes[0];void 0!==p&&(p.checked=this._getRowheaderData(_,e))}}i=!0}else r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE);else r.QCELL.log("err",o,'This Rowheader Type is not "Checkbox".')}else r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE);return i},r.QCELL.BasicQCELL.prototype.setRowheaderCheckedArr=function(t,e){var a=this.attr("id")+".setRowheaderChecked",o=!1;if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE);else if(r._.isArray(t)&&r._.isNumber(e)){for(var i=0;i<t.length;i++){var s=this._getCellDOM(t[i],e);this._setRowheaderData(t[i],e,!0),null!=s&&(s.childNodes[0].checked=!0)}o=!0}else r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE);return o},r.QCELL.BasicQCELL.prototype.setGroup=function(t){var e=this.attr("id")+".setGroup";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isObject(t)&&!1===r._.isArray(t))return this._setGroup(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.clearGroup=function(){return this._clearGroup()},r.QCELL.BasicQCELL.prototype.setGrandTotal=function(t){var e=this.attr("id")+".setGrandTotal";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isObject(t)&&!1===r._.isArray(t))return this._setGrandTotal(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.clearGrandTotal=function(){return this._clearGrandTotal()},r.QCELL.BasicQCELL.prototype.setTree=function(t){var e=this.attr("id")+".setTree";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isObject(t)&&!1===r._.isArray(t))return this._setTree(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.insertTreeNode=function(t,e,a){var o=this.attr("id")+".insertTreeNode";if(arguments.length<1)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if(r._.isObject(e)&&r._.isArray(t))return this._insertTreeNode(t,e,a);r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.removeTreeNode=function(t){var e=this.attr("id")+".removeTreeNode";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isArray(t))return this._removeTreeNode(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.updateTreeNode=function(t,e){var a=this.attr("id")+".updateTreeNode";if(arguments.length<1)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(r._.isArray(t))return this._updateTreeNode(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.moveTreeNode=function(t,e){var a=this.attr("id")+".updateTreeNode";if(arguments.length<1)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(r._.isArray(t))return this._moveTreeNode(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.moveTreeNodeEx=function(t,e,a){var o=this.attr("id")+".moveTreeNodeEx";if(arguments.length<1)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if(r._.isArray(t)&&r._.isArray(e))return this._moveTreeNodeEx(t,e,a);r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.getTreeState=function(t){var e=this.attr("id")+".getTreeState";return r._.isString(t)||void 0===t?this._getTreeState(t):(r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),"")},r.QCELL.BasicQCELL.prototype.clearTreeState=function(){return this._clearTreeState()},r.QCELL.BasicQCELL.prototype.setHierachy=function(t){var e=this.attr("id")+".setHierarchy";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isObject(t)&&!1===r._.isArray(t))return this._setHierachy(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.setDisableContextmenu=function(t){var e=this.attr("id")+".setDisableContextmenu",a=!0;if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(r._.isArray(t)){for(var o=0;o<t.length;o++)!1===r._.isString(t[o])&&(a=!1);if(a)return this._setDisableContextmenu(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}else r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return!1},r.QCELL.BasicQCELL.prototype.setAbleContextmenu=function(t){var e=this.attr("id")+".setAbleContextmenu",a=!0;if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(r._.isArray(t)){for(var o=0;o<t.length;o++)!1===r._.isString(t[o])&&(a=!1);if(a)return this._setAbleContextmenu(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}else r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return!1};r.QCELL.BasicQCELL.prototype.setContextmenu=function(t){var e=this.attr("id")+".setContextmenu",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!1===r._.isObject(t)||r._.isArray(t)?r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):(this._initContextMenu(),a=this._setContextMenu(t)),a},r.QCELL.BasicQCELL.prototype.getContextmenuId=function(){return this._getContextmenuId()},r.QCELL.BasicQCELL.prototype.filter=function(t,e){var a=this.attr("id")+".filter";if(arguments.length<1)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else if(r._.isArray(e)||r._.isObject(e)){if(r._.isNumber(t))return this._filter(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}else r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE);return!1},r.QCELL.BasicQCELL.prototype.filterEx=function(t,e){var a=this.attr("id")+".filterEx";if(arguments.length<1)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else if(r._.isArray(e)||r._.isObject(e)){if(r._.isNumber(t)||r._.isString(t))return this._filter(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}else r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE);return!1},r.QCELL.BasicQCELL.prototype.resetFilter=function(t){var e=this.attr("id")+".resetFilter";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isNumber(t))return this._resetFilter(t);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.BasicQCELL.prototype.resetFilterEx=function(t){var e=this.attr("id")+".resetFilterEx";return r._.isNumber(t)||r._.isString(t)||void 0===t?this._resetFilter(t):(r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),!1)},r.QCELL.config=r._.extend(r._.clone(r.QCELL.config),{width:"100%",height:"100%",moduletype:"basic",rowheaders:[],frozenrows:0,frozenbottomrows:0,frozenbottomstyle:"",makefrozenbottomdata:!1,frozencols:0,highlightrepeat:0,rowheight:{header:40,data:40,footer:40},data:{type:"object",input:[]},events:{},selectmode:"cells",merge:{header:"none",data:"none"},copy:!1,paste:!1,pagination:{},group:{type:"normal",expand:[],showpanel:!1,header:{},footer:{}},emptymessage:"",contextmenu:{header:{},data:{}},useGroupUI:!1,original:!1,bottompanel:!1,bottompanelheight:40,bottompanelstyle:"excel",useheadersort:!1,useheadercolmove:!1,excelexportwithformat:!1,usetooltipinellipsis:!1,policy:"dynamic",rowheaderssort:[],useexcelstylepanel:!0,disabletooltip:!1}),r.QCELL.isForceDynamic=!1,r.QCELL.def.msg=r._.extend(r._.clone(r.QCELL.def.msg),{kr:{err:{PARAM_COUNT:"매개변수의 개수를 확인하세요.",PARAM_TYPE:"매개변수의 데이터타입을 확인하세요.",FILE_EXT_NOT_XLSX:"엑셀 파일이 아니거나 파일의 확장자가 'xlsx'가 아닙니다. 확인하여 주십시오."}},en:{err:{PARAM_COUNT:"Please check parameter's count.",PARAM_TYPE:"Please check parameter's type.",FILE_EXT_NOT_XLSX:"Please check, This File is not Excel File or File`s extension is not 'xlsx'."}}}),r.QCELL.BasicQCELL.create=function(t){return r.QCELL.hasInstance(t.id)&&r.QCELL.deleteInstance(t.id),this._create(t)},r.QCELL.BasicQCELL._create=function(t){return this._checkRequiredProps(t)&&this._checkValidationOfProps(t)?new this(this._adjustProps(t)):null},r.QCELL.BasicQCELL._checkRequiredProps=function(t){var e=!0;if(r._.isObject(t)&&!1===r._.isArray(t)){for(var a=["id","parentid","columns"],o=0,i=a.length;o<i;o++){var s=a[o];if(void 0===t[s]){r.QCELL.log("err","QCELL.create",'Please check "'+s+'" property.'),e=!1;break}}void 0===t.data&&(t.data={input:[]}),a.RT_clear(),a=null}else r.QCELL.log("err","QCELL.create",'Please check first parameter\'s type is "object".'),e=!1;return e},r.QCELL.BasicQCELL._checkValidationOfProps=function(t){var e=!0;return r.$.each(t,(function(t,a){return e=r.QCELL.BasicQCELL._checkValidationOfProp(t,a)})),e},r.QCELL.BasicQCELL._checkValidationOfProp=function(t,e){var a=!0,o=!0,i="";switch(t){case"id":case"onloadurl":i="string",!1===r._.isString(e)&&(a=!1);break;case"parentid":if(i="string",!1===r._.isString(e))a=!1;else{var s=document.getElementById(e);r._.isElement(s)?r.$(s).is(":visible"):(r.QCELL.log("err","QCELL.create",'Please check that "'+t+'" property is "element".'),a=!1,o=!1)}break;case"width":case"height":i="string",!1===r._.isString(e)?!1===r._.isNumber(e)&&(a=!1):e.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0&&(r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "number" or "px" or "%" as value.'),a=!1,o=!1);break;case"rowheader":i="string",!1===r._.isString(e)?a=!1:"none"!==e&&"sequence"!==e&&"reverse"!==e&&"checkbox"!==e&&"state"!==e&&"custom"!==e&&"radio"!==e&&(r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "sequence" or "reverse" or "checkbox" or "state" or "custom" as value.'),a=!1,o=!1);break;case"selectmode":if(i="string",!1===r._.isString(e))a=!1;else switch(e){case"cells":case"cell":case"rows":case"row":case"cols":case"col":case"group":break;default:r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "free" or "row" or "rows" or "col" or "cols" or "group" as value.'),a=!1,o=!1}break;case"frozenrows":case"frozenbottomrows":case"frozencols":case"highlightrepeat":!1===r._.isNumber(e)&&(i="number",a=!1);break;case"copy":case"paste":case"useGroupUI":case"original":i="boolean",!1===r._.isBoolean(e)&&(a=!1);break;case"columns":i="array",!1===r._.isArray(e)&&(a=!1);break;case"rowheaders":i="array",!1===r._.isArray(e)?a=!1:!1===r._.every(e,(function(t){return"sequence"===t||"reverse"===t||"checkbox"===t||"radio"===t||"state"===t||"custom"===t}))&&(r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. It can use "sequence" or "reverse" or "checkbox" or "radio" or "state" or "custom" .'),a=!1,o=!1);break;case"data":i="object",!1===r._.isObject(e)||r._.isArray(e)?a=!1:!1===r._.every(r._.keys(e),(function(t){return"type"===t||"input"===t}))?(r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "type" or "input" as key.'),a=!1,o=!1):r.$.each(e,(function(e,i){if("type"===e){if(!1===r._.isString(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else{if("input"!==e)return;if(!1===r._.isArray(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),a=!1,o=!1,!1}}));break;case"rowheight":i="object",!1===r._.isObject(e)||r._.isArray(e)?a=!1:!1===r._.every(r._.keys(e),(function(t){return"header"===t||"data"===t||"footer"===t}))?(r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "header" or "data" or "footer" as key.'),a=!1,o=!1):r.$.each(e,(function(e,i){if(!1===r._.isNumber(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "number".'),a=!1,o=!1,!1}));break;case"events":if(i="object",!1===r._.isObject(e)||r._.isArray(e))a=!1;else if(!1===r._.every(e,(function(t,e){return"string"==typeof e&&r._.isFunction(t)})))return r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property\'s value is "Function".'),a=!1,o=!1,!1;break;case"group":i="object",!1===r._.isObject(e)||r._.isArray(e)?a=!1:r.$.each(e,(function(e,i){if("showpanel"===e){if(!1===r._.isBoolean(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1}else if("type"===e){if(!1===r._.isString(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else{if("expand"!==e&&"header"!==e&&"footer"!==e)return;if(!1===r._.isObject(i)||r._.isArray(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "object".'),a=!1,o=!1,!1}}));break;case"contextmenu":i="object",!1===r._.isObject(e)||r._.isArray(e)?a=!1:r.$.each(e,(function(e,i){if("id"===e){if(!1===r._.isString(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else if("contents"===e){if(!1===r._.isArray(i))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),a=!1,o=!1,!1;r._.each(i,(function(i){r.$.each(i,(function(i,s){if("header"===i){if(!1===r._.isObject(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+i+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1;r.$.each(s,(function(i,s){if("divine"===i&&!1===r._.isBoolean(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1;if("disabled"===i){if(!1===r._.isBoolean(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1}else if("icon"===i){if(!1===r._.isString(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else if("label"===i){if(!1===r._.isString(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else if("items"===i){if(!1===r._.isArray(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+'" property. This property\'s type is "array".'),a=!1,o=!1,!1}else if("callback"===i&&!1===r._.isFunction(s)&&(!1===r._.isString(s)||!1===r._.isFunction(window[s])))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+'" property. This property\'s type is "function".'),a=!1,o=!1,!1}))}else if("data"===i){if(!1===r._.isObject(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+i+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1;r.$.each(s,(function(i,s){"base"===i?r.$.each(s,(function(s,l){if("divine"===s&&!1===r._.isBoolean(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1;if("disabled"===s){if(!1===r._.isBoolean(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1}else if("icon"===s){if(!1===r._.isString(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else if("label"===s){if(!1===r._.isString(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else if("items"===s){if(!1===r._.isArray(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "array".'),a=!1,o=!1,!1}else if("callback"===s&&!1===r._.isFunction(l)&&(!1===r._.isString(l)||!1===r._.isFunction(window[l])))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "function".'),a=!1,o=!1,!1})):"except"===i&&r.$.each(s,(function(s,l){if("col"===s&&!1===r._.isNumber(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "number".'),a=!1,o=!1,!1;if("divine"===s&&!1===r._.isBoolean(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1;if("disabled"===s){if(!1===r._.isBoolean(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1}else if("icon"===s){if(!1===r._.isString(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else if("label"===s){if(!1===r._.isString(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "string".'),a=!1,o=!1,!1}else if("items"===s){if(!1===r._.isArray(l))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "array".'),a=!1,o=!1,!1}else if("callback"===s&&!1===r._.isFunction(l)&&(!1===r._.isString(l)||!1===r._.isFunction(window[l])))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+i+"."+s+'" property. This property\'s type is "function".'),a=!1,o=!1,!1}))}))}}))}))}}));break;case"pagination":i="object",r._.isArray(e)||!1===r._.isObject(e)?a=!1:r.$.each(e,(function(e,s){switch(e){case"unitlist":if(i="array",!1===r._.isArray(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),a=!1,o=!1,!1;break;case"param":if(i="object",!1===r._.isObject(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "object".'),a=!1,o=!1,!1;break;case"pageunit":case"pageIndex":case"pagecount":if(i="number",!1===r._.isNumber(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "number".'),a=!1,o=!1,!1;break;case"url":if(i="string",!1===r._.isString(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),a=!1,o=!1,!1;break;case"mode":if(i="string",!1===r._.isString(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),a=!1,o=!1,!1;if(0==("simple"===s||"extend"===s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "simple" or "extend".'),a=!1,o=!1,!1;break;case"load":case"extendmove":case"loadonce":case"totalsort":case"initsort":if(i="boolean",!1===r._.isBoolean(s))return r.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "boolean".'),a=!1,o=!1,!1}}))}return!1===a&&o&&r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property\'s type is "'+i+'".'),a},r.QCELL.BasicQCELL._adjustProps=function(t){var e=r._.mapValues(t,(function(t,e){return r.QCELL.BasicQCELL._adjustProp(e,t)}));return void 0!==e.rowheader&&"none"!==e.rowheader&&(e.rowheaders=[e.rowheader],delete e.rowheader),r._.assign(r._.clone(r.QCELL.config),e)},r.QCELL.BasicQCELL._adjustProp=function(t,e){var a=this._getDefaultValueOfProp(t);if(void 0!==e)switch(t){case"width":case"height":a=r._.isNumber(e)||r._.isString(e)&&-1===e.indexOf("%")&&-1===e.indexOf("px")?e+"px":e;break;case"data":a={type:void 0===e.type||"object"!==e.type&&"array"!==e.type?a.type:e.type,input:void 0===e.input?a.input:e.input};break;case"rowheight":a={header:void 0===e.header?a.header:e.header,data:void 0===e.data?a.data:e.data,footer:void 0===e.footer?a.footer:e.footer};break;case"group":a={showpanel:void 0===e.showpanel?a.showpanel:e.showpanel,type:void 0===e.type||"normal"!==e.type&&"tree"!==e.type?a.type:e.type,expand:void 0===e.expand?a.expand:e.expand,header:void 0===e.header?a.header:e.header,footer:void 0===e.footer?a.footer:e.footer};break;default:a=e}return a},r.QCELL.BasicQCELL._getDefaultValueOfProp=function(t){var e=r.QCELL.config[t];return r._.isArray(e)||r._.isObject(e)&&!1===r._.isArray(e)?r._.clone(e):e},r.QCELL.def.cssprefix="rt-qc-",r.QCELL.def.cellstyle="cell-style",r.QCELL.def.textstyle="text-style",r.QCELL.def.wrapstyle="wrap-style",r.QCELL.def.singlestyle="-style",r.QCELL.def.type=r._.extend(r.QCELL.def.type,{STATIC:"static",INPUT:"input",INPUTBUTTON:"inputbutton",HTML:"html",CHART:"chart",CHECKBOX:"checkbox",SELECTMENU:"selectmenu",TEXTAREA:"textarea",DATEPICKER:"datepicker",IMAGE:"image",RADIO:"radio",MULTICHECKBOX:"multicheckbox",NUMBER:"number",SLIDER:"slider",BUTTON:"button",EDITOR:"editor",INPUT_DATEPICKER:"inputdatepicker",INVISIBLE:"invisible"}),r.QCELL.def.rowgroup=r._.extend(r.QCELL.def.rowgroup,{}),r.QCELL.def.css=r._.extend(r.QCELL.def.css,{TYPE_STATIC_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.STATIC+"-"+r.QCELL.def.cellstyle,TYPE_INPUT_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.INPUT+"-"+r.QCELL.def.cellstyle,TYPE_INPUT_EDIT_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.INPUT+"-edit-"+r.QCELL.def.cellstyle,TYPE_HTML_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.HTML+"-"+r.QCELL.def.cellstyle,TYPE_CHECKBOX_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.CHECKBOX+"-"+r.QCELL.def.cellstyle,TYPE_RADIO_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.RADIO+"-"+r.QCELL.def.cellstyle,TYPE_SELECTMENU_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.SELECTMENU+"-"+r.QCELL.def.cellstyle,TYPE_TEXTAREA_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.TEXTAREA+"-"+r.QCELL.def.cellstyle,TYPE_DATEPICKER_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+"-"+r.QCELL.def.cellstyle,TYPE_IMAGE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.IMAGE+"-"+r.QCELL.def.cellstyle,TYPE_MULTICHECKBOX_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.MULTICHECKBOX+"-"+r.QCELL.def.cellstyle,TYPE_NUMBER_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.NUMBER+"-"+r.QCELL.def.cellstyle,TYPE_SLIDER_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.SLIDER+"-"+r.QCELL.def.cellstyle,TYPE_BUTTON_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.BUTTON+"-"+r.QCELL.def.cellstyle,TYPE_INPUT_TEXT_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.INPUT+"-"+r.QCELL.def.textstyle,TYPE_TEXTAREA_TEXT_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.TEXTAREA+"-"+r.QCELL.def.textstyle,TYPE_NUMBER_TEXT_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.NUMBER+"-"+r.QCELL.def.textstyle,TYPE_DATEPICKER_WRAP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+"-"+r.QCELL.def.wrapstyle,TYPE_SELECTMENU_WRAP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.SELECTMENU+"-"+r.QCELL.def.wrapstyle,TYPE_CHECKBOX_WRAP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.CHECKBOX+"-"+r.QCELL.def.wrapstyle,TYPE_MULTICHECKBOX_WRAP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.MULTICHECKBOX+"-"+r.QCELL.def.wrapstyle,TYPE_HTML_WRAP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.HTML+"-"+r.QCELL.def.wrapstyle,TYPE_SLIDER_WRAP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.SLIDER+"-"+r.QCELL.def.wrapstyle,TYPE_BUTTON_WRAP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.BUTTON+"-"+r.QCELL.def.wrapstyle,TYPE_EDITOR_WARP_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.EDITOR+"-"+r.QCELL.def.wrapstyle,TYPE_STATIC_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.STATIC+"-type-cell",TYPE_INPUT_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.INPUT+"-type-cell",TYPE_INPUTBUTTON_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.INPUTBUTTON+"-type-cell",TYPE_HTML_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.HTML+"-type-cell",TYPE_CHECKBOX_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.CHECKBOX+"-type-cell",TYPE_RADIO_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.RADIO+"-type-cell",TYPE_SELECTMENU_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.SELECTMENU+"-type-cell",TYPE_TEXTAREA_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.TEXTAREA+"-type-cell",TYPE_DATEPICKER_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+"-type-cell",TYPE_INPUTDATEPICKER_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.INPUT_DATEPICKER+"-type-cell",TYPE_IMAGE_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.IMAGE+"-type-cell",TYPE_MULTICHECKBOX_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.MULTICHECKBOX+"-type-cell",TYPE_NUMBER_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.NUMBER+"-type-cell",TYPE_SLIDER_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.SLIDER+"-type-cell",TYPE_BUTTON_CELL:r.QCELL.def.cssprefix+r.QCELL.def.type.BUTTON+"-type-cell",TYPE_SLIDER_SINGLE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.SLIDER+r.QCELL.def.singlestyle,TYPE_SLIDER_RESULT_SINGLE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.SLIDER+"-result"+r.QCELL.def.singlestyle,TYPE_BUTTON_SINGLE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.BUTTON+r.QCELL.def.singlestyle,TYPE_BUTTON_LABEL_SINGLE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.BUTTON+"-label"+r.QCELL.def.singlestyle,TYPE_EDITOR_SINGLE_STYLE:r.QCELL.def.csspx+r.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+r.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_DATE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+"-date"+r.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_IMG_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+"-img"+r.QCELL.def.singlestyle,TYPE_INVISIBLE_SINGLE_STYLE:r.QCELL.def.cssprefix+r.QCELL.def.type.INVISIBLE+r.QCELL.def.singlestyle,TYPE_DATEPICKER:r.QCELL.def.cssprefix+r.QCELL.def.type.DATEPICKER+"-type",TYPE_INPUT_DATEPICKER:r.QCELL.def.cssprefix+r.QCELL.def.type.INPUT_DATEPICKER+"-type"}),r.QCELL.module="normal",r.QCELL.NormalQCELL=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.BasicQCELL.call(this,t)},r.util.inherit(r.QCELL.NormalQCELL,r.QCELL.BasicQCELL),r.QCELL.NormalQCELL.prototype._initMOL=function(){r.QCELL.BasicQCELL.prototype._initMOL.call(this),r.util.addMethod(this,"_dataCellValue",(function(t,e,a){try{var o=this._getCellDOM(t,e),i="rt_qcell_initdata",s=!1;if(!1!==this.attr("useinitdata")?void 0===this.attr("currentdata")[t-this.attr("headerrows")][i]&&(this.attr("currentdata")[t-this.attr("headerrows")][i]=r._.clone(this.attr("currentdata")[t-this.attr("headerrows")])):this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]!==a&&(s=!0),this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=a,r._.isElement(o))if(void 0===a)r.util.textContent(o,""),this._setAriaLabel(o,t,e,"");else if(this._isBottomPanel(o))"checkbox"!==this._getColType(e)||!0!==a&&!1!==a||(a=""),void 0===a?r.util.textContent(o,""):r.util.textContent(o,a),this._setAriaLabel(o,t,e,a);else{var l=o.getElementsByTagName("input")[0];switch(this._getColType(e)){case"selectmenu":var n={},c=!1;this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=a,r.$.each(this._getColElement(e).attr("input"),(function(t,e){r.$.each(e,(function(t,r){return"value"===t&&a===r?(n=e,!1):"label"===t&&a===r?(n=e,c=!0,!1):void 0}))})),!0===c&&void 0!==n&&void 0!==n.value&&(this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=n.value),void 0!==n&&void 0!==n.label?r.util.textContent(o,n.label):""===a&&r.util.textContent(o,""),this._setAriaLabelEx(o,t,e,!1);break;case"checkbox":var d=this._getColElement(e).attr("checkedvalue"),h=this._getColElement(e).attr("uncheckedvalue");if(""!==a&&null!=a||(a=h),void 0===l&&(this._getColElement(e)._show(o,t,e),l=o.getElementsByTagName("input")[0]),d===a?(l.checked=!0,l.value=a):h===a&&(l.checked=!1,l.value=a),!0!==this.attr("_hcskip")&&this._getColElement(e)._isHeaderCheckbox(e)){var _,u=0,p=this._getKeyOfCol(e),C=this.attr("currentdata"),g=!0===this.attr("makefrozenbottomdata")?this.attr("frozenbottomrows"):0,f=(this.attr("rows"),this.attr("headerrows"));for(_=0,f=this.attr("rows")-this.attr("headerrows");_<f;_++)C[_][p]===a&&u++;var L,m=this.attr("headerrows")-1;do{if(null===(L=this._getCellDOM(m,e)))return;if("none"!==r.$(L).css("display"))break}while(m-- >=0);if(m<0)return;var E=L.childNodes[0].childNodes[0];void 0!==E&&u===C.length-g?h===a?(E.checked=!1,this._getColElement(e).attr("_checkedstate",!1,"boolean")):(E.checked=!0,this._getColElement(e).attr("_checkedstate",!0,"boolean")):(E.checked=!1,E.checked=!1,this._getColElement(e).attr("_checkedstate",!1,"boolean"))}break;case"image":l=o.getElementsByTagName("img")[0],r._.isUndefined(l)||r._.isString(a)&&(l.src=a),this._setAriaLabelEx(o,t,e,!1);break;case"html":case"chart":case"button":this._getColElement(e)._show(o,t,e),this._setAriaLabelEx(o,t,e,!1);break;case"inputbutton":case"datepicker":this._getColElement(e)._showDataLabel(o,t,e,a),this._setAriaLabelEx(o,t,e,!1);break;default:a=this._showDataFormat(t,e,a),r.util.textContent(o,a),this._setAriaLabel(o,t,e,a)}}if(!0===this.attr("pagesyncorgindata")&&(void 0===this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state||"i"!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state)&&(this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state="u"),"i"!==this.getRowState(t)&&"d"!==this.getRowState(t)){var b=!1,y=this.attr("currentdata")[t-this.attr("headerrows")],v=y[i],w=this.getRowState(t);if(void 0!==v)for(var x in y)if(i!==x&&v[x]!==y[x]){b=!0;break}!1===this.attr("useinitdata")&&(b=s),!0===b?"u"!==w&&this._updateRowState(t,"u"):"n"!==w&&(this.removeRowState(t),delete this.attr("currentdata")[t-this.attr("headerrows")][i])}return!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._dataCellValue",t.message),!1}}))},r.QCELL.NormalQCELL.prototype._initTag=function(){this.tag("QBOX.QCELL.NormalQCELL")},r.QCELL.NormalQCELL.prototype._initAttrs=function(t){r.QCELL.BasicQCELL.prototype._initAttrs.call(this,t),this.attr("oneclickedit",t.oneclickedit,"boolean"),this.attr("editcolids",[],"array"),this.attr("idxinfo",r._.extend(this.attr("idxinfo"),{state:{row:new window._QHashtable,col:new window._QHashtable}}),"object"),this.attr("idxinfo",r._.extend(this.attr("idxinfo"),{valuechanged:{row:new window._QHashtable,col:new window._QHashtable}}),"object"),this.attr("idxinfo",r._.extend(this.attr("idxinfo"),{celldisabled:{row:new window._QHashtable,col:new window._QHashtable}}),"object"),this.attr("idxinfo",r._.extend(this.attr("idxinfo"),{cellinvisible:{row:new window._QHashtable,col:new window._QHashtable}}),"object"),this.attr("deletedrowsdata",[],"array"),this.attr("staticrowsinfo",[],"array");var e=void 0===t.statetype?"immediate":t.statetype;this.attr("statetype",e,"string"),this._initAttr("delkeymode",t.delkeymode,"string"),this._initAttr("setstatewithapi",t.setstatewithapi,"boolean"),this._initAttr("useenterkeytonextcol",t.useenterkeytonextcol,"boolean"),this._initAttr("keepeditmode",t.keepeditmode,"boolean"),this._initAttr("datepickerautosettoday",t.datepickerautosettoday,"boolean"),this._initAttr("useinitdata",t.useinitdata,"boolean")},r.QCELL.NormalQCELL.prototype._initAttr=function(t,e,a){this.attr(t,void 0===e?r.QCELL.config[t]:e,a)},r.QCELL.NormalQCELL.prototype._clearAttrs=function(){r.QCELL.BasicQCELL.prototype._clearAttrs.call(this),r.$(document).off("mousedown."+this.attr("id"))},r.QCELL.NormalQCELL.QCellCol=function(t){if(!1===r.util.checkType(t,"object"))return null;r.Base.call(this,t)},r.util.inherit(r.QCELL.NormalQCELL.QCellCol,r.QCELL.BasicQCELL.QCellCol),r.util.addMethod(r.QCELL.NormalQCELL.QCellCol,"create",(function(t){return new r.QCELL.NormalQCELL.QCellCol(this._adjustProps(t))})),r.util.addMethod(r.QCELL.NormalQCELL.QCellCol,"create",(function(t,e){return this._create(t,e)})),r.QCELL.NormalQCELL.QCellCol.prototype._initMOL=function(){r.QCELL.BasicQCELL.QCellCol.prototype._initMOL.call(this)},r.QCELL.NormalQCELL.QCellCol.prototype._initTag=function(){this.tag("QBOX.QCELL.NormalQCELL.QCellCol")},r.QCELL.NormalQCELL.QCellCol.prototype._init=function(t){r.QCELL.BasicQCELL.QCellCol.prototype._init.call(this,t),this._createColElement()},r.QCELL.NormalQCELL.QCellCol.prototype._initAttrs=function(t){r.QCELL.BasicQCELL.QCellCol.prototype._initAttrs.call(this,t),this.attr("colelement",null,"object"),this._initAttr("type",t.type,"string"),this._initAttr("disabled",t.disabled,"boolean"),this._initAttr("mask",t.options.mask,"object"),this._initAttr("html",t.options.html,"object"),this._initAttr("chart",t.options.chart,"object"),this._initAttr("invisibled",t.options.invisibled,"boolean"),this._initAttr("celldisabled",[],"array"),this._initAttr("cellinvisible",[],"array"),this._initAttr("tabindex",t.tabindex,"boolean");var e=void 0!==t.options.required&&t.options.required;this._initAttr("required",e,"boolean")},r.QCELL.NormalQCELL.QCellCol.prototype._initAttr=function(t,e,a){r.QCELL.BasicQCELL.QCellCol.prototype._initAttr.call(this,t,e,a)},r.QCELL.colconfig=r._.extend(r._.clone(r.QCELL.colconfig),{disabled:!1,invisibled:!1,options:{},html:{data:null,datacallback:null,header:null},tabindex:!0}),r.QCELL.NormalQCELL.QCellCol._create=function(t,e){return this._checkRequiredProps(t,e)&&this._checkValidationOfProps(t,e)?new r.QCELL.NormalQCELL.QCellCol(this._adjustProps(e)):null},r.QCELL.NormalQCELL.QCellCol._checkRequiredProps=function(t,e){return!!r.QCELL.BasicQCELL.QCellCol._checkRequiredProps(t,e)},r.QCELL.NormalQCELL.QCellCol._checkValidationOfProps=function(t,e){var a=!1;return r.QCELL.BasicQCELL.QCellCol._checkValidationOfProps(t,e)&&r.$.each(e,(function(e,o){return a=r.QCELL.NormalQCELL.QCellCol._checkValidationOfProp(t,e,o)})),a},r.QCELL.NormalQCELL.QCellCol._checkValidationOfProp=function(t,e,a){var o=!0,i=!0,s="";switch(e){case"type":if(s="string",!1===r._.isString(a))o=!1;else switch(a){case"input":case"textarea":case"datepicker":case"selectmenu":case"image":case"checkbox":case"number":case"static":case"html":case"chart":case"multicheckbox":case"slider":case"button":case"editor":case"inputbutton":case"inputdatepicker":break;default:r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "input" or "textarea" or "datepicker" or "selectmenu" or "image" or "checkbox" or "number" or "html" or "chart" or "multicheckbox" or "slider" or "button" or "editor" as value.'),o=!1,i=!1}break;case"options":if(void 0!==a&&!1===r._.isObject(a)||!0===r._.isArray(a))s="object",o=!1;else if(void 0!==a.maxlength&&!1===r._.isNumber(a.maxlength))s="number",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.maxlength"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.numrange&&!1===r._.isString(a.numrange))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.numrange"\'s type is "'+s+'".'),o=!1,i=!1;else if(!0===r._.isString(a.numrange))!1===/^([+-]?\d*(\.?\d*))(\:)([+-]?\d*(\.?\d*))$/.test(a.numrange)&&(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+".numrange\"'s data setting."),o=!1,i=!1);else if(void 0!==a.limit&&null!==a.limit)void 0!==a.limit&&!1===r._.isObject(a.limit)?(s="object",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit"\'s type is "'+s+'".'),o=!1,i=!1):!1===r._.isString(a.limit.type)?(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.type"\'s type is "'+s+'".'),o=!1,i=!1):"all"===a.limit.type&&"string"===a.limit.type&&"number"===a.limit.type&&"other"===a.limit.type?(r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.type"\'s val is "string or number or other".'),o=!1,i=!1):"other"===a.limit.type&&void 0!==a.limit.expreg&&!1===r._.isString(a.limit.expreg)&&(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.expreg"\'s type is "'+s+'".'),o=!1,i=!1);else if(void 0!==a.exclude&&null!==a.exclude)void 0!==a.exclude&&!1===r._.isArray(a.exclude)&&(s="array",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.exclude"\'s type is "'+s+'".'),o=!1,i=!1);else if(void 0!==a.html&&null!==a.html)void 0!==a.html&&!1===r._.isObject(a.html)||!0===r._.isArray(a.html)?(s="object",o=!1):(void 0!==a.html.data&&!1===r._.isFunction(a.html.data)||void 0!==a.html.header&&!1===r._.isFunction(a.html.header)||void 0!==a.html.datacallback&&!1===r._.isFunction(a.html.datacallback))&&(s="function",o=!1);else if(void 0!==a.textareawidth&&!1===r._.isString(a.textareawidth))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.textareawidth"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.dateformat&&!1===r._.isString(a.dateformat))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.dateformat"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.timeformat&&!1===r._.isString(a.timeformat))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timeformat"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.timetype&&!1===r._.isString(a.timetype))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timetype"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.timeseparator&&!1===r._.isString(a.timeseparator))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.separator"\'s type is "'+s+'".'),o=!1,i=!1;else if(!0===r._.isString(a.timetype))switch(a.timetype){case"none":case"with":case"only":break;default:r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timetype." This property can use "none" or "with" or "only" as value.'),o=!1,i=!1}else if(void 0!==a.locale&&!1===r._.isString(a.locale))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.locale"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.yearrange&&!1===r._.isString(a.yearrange))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.yearrange"\'s type is "'+s+'".'),o=!1,i=!1;else if(!0===r._.isString(a.yearrange))!1===/^(((c\-)[0-9]{1,4})(\:)(c\+)[0-9]{1,4})|((\-)[0-9]{1,4}(\:)(\+)[0-9]{1,4})|([0-9]{1,4}(\:)[0-9]{1,4})$/.test(a.yearrange)&&(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+".yearrange\"'s data setting."),o=!1,i=!1);else if(void 0!==a.changeyear&&!1===r._.isBoolean(a.changeyear))s="boolean",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.changeyear"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.changemonth&&!1===r._.isBoolean(a.changemonth))s="boolean",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.changemonth"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.input&&!1===r._.isArray(a.input))s="array",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.input"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.itemcount&&!1===r._.isNumber(a.itemcount))s="number",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.itemcount"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.selectedEnd&&!1===r._.isBoolean(a.selectedEnd))s="boolean",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.selectedEnd"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.selectclickopen&&!1===r._.isBoolean(a.selectclickopen))s="boolean",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.selectclickopen"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.wholeselect&&!1===r._.isBoolean(a.wholeselect))s="boolean",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.wholeselect"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.checkedvalue&&!1===(r._.isBoolean(a.checkedvalue)||r._.isString(a.checkedvalue)))s="boolean or string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.checkedvalue"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.uncheckedvalue&&!1===(r._.isBoolean(a.uncheckedvalue)||r._.isString(a.uncheckedvalue)))s="boolean or string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.uncheckedvalue"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.imagealt&&!1===r._.isString(a.imagealt))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagealt"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.imageheight&&!1===r._.isString(a.imageheight))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageheight"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.imagewidth&&!1===r._.isString(a.imagewidth))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagewidth"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.imagestyle&&!1===r._.isObject(a.imagestyle))s="object",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagestyle"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.imageclick)!0!==r._.isString(a.imageclick)&&!0!==r._.isFunction(a.imageclick)&&(s="string or function",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageclick"\'s type is "'+s+'".'),o=!1,i=!1);else if(void 0!==a.imageuri&&!1===r._.isString(a.imageuri))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageuri"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.imageerroruri&&!1===r._.isString(a.imageerroruri))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageerroruri"\'s type is "'+s+'".'),o=!1,i=!1;else if(void 0!==a.buttonwidth&&!1===r._.isString(a.buttonwidth))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonwidth"\'s type is "'+s+'".'),o=!1,i=!1;else if(r._.isString(a.buttonwidth)&&a.buttonwidth.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0)r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonwidth" property. This property can use "number" or "px" or "%" as value.'),o=!1,i=!1;else if(void 0!==a.buttonheight&&!1===r._.isString(a.buttonheight))s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonheight"\'s type is "'+s+'".'),o=!1,i=!1;else if(r._.isString(a.buttonheight)&&a.buttonheight.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0)r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonheight" property. This property can use "number" or "px" or "%" as value.'),o=!1,i=!1;else if(void 0!==a.buttonposition&&!1===r._.isString(a.buttonposition))a.buttonposition="left";else if(r._.isString(a.buttonposition))switch(a.buttonposition){case"left":case"right":case"center":break;default:r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonlabel" property. This property can use "left" or "right" or "center" as value.'),o=!1,i=!1}else void 0!==a.buttonlabel&&!1===r._.isString(a.buttonlabel)?(s="string",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonlabel"\'s type is "'+s+'".'),o=!1,i=!1):void 0!==a.buttonclick&&!1===r._.isFunction(a.buttonclick)&&(s="function",r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonclick"\'s type is "'+s+'".'),o=!1,i=!1)}return!1===o&&i&&r.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'"\'s type is "'+s+'".'),o},r.QCELL.NormalQCELL.QCellCol._adjustProps=function(t){var e=r._.mapValues(r.QCELL.BasicQCELL.QCellCol._adjustProps(t),(function(t,e){return r.QCELL.NormalQCELL.QCellCol._adjustProp(e,t)}));return r._.assign(r._.clone(r.QCELL.colconfig),e)},r.QCELL.NormalQCELL.QCellCol._adjustProp=function(t,e){return void 0===e?r.QCELL.BasicQCELL._getDefaultValueOfProp(t):"disabled"===t?!0===r._.isBoolean(e)&&e:e},r.QCELL.NormalQCELL.QCellCol.prototype._createColElement=function(){var t=this.attr("parent").attr("id"),e=this.attr("id"),a=t+"_"+e+"_",o={colid:e,parentid:t,parent:this.attr("parent"),options:this.attr("options"),html:this.attr("html"),chart:this.attr("chart"),disabled:this.attr("disabled"),invisible:this.attr("invisible")};switch(this.attr("type")){case"input":o.id=a+"input",this.attr("colelement",new r.QCELL.Input(o),"object");break;case"inputbutton":o.id=a+"inputbutton",this.attr("colelement",new r.QCELL.InputButton(o),"object");break;case"textarea":o.id=a+"textarea",this.attr("colelement",new r.QCELL.Textarea(o),"object");break;case"datepicker":o.id=a+"datepicker",this.attr("colelement",new r.QCELL.Datepicker(o),"object");break;case"selectmenu":o.id=a+"selectmenu",this.attr("colelement",new r.QCELL.Selectmenu(o),"object");break;case"image":o.id=a+"image",this.attr("colelement",new r.QCELL.Image(o),"object");break;case"checkbox":o.id=a+"checkbox",this.attr("colelement",new r.QCELL.Checkbox(o),"object");break;case"html":o.id=a+"html",this.attr("colelement",new r.QCELL.Html(o),"object");break;case"chart":o.id=a+"chart",this.attr("colelement",new r.QCELL.Chart(o),"object");break;case"multicheckbox":o.id=a+"multicheckbox",this.attr("colelement",new r.QCELL.Multicheckbox(o),"object");break;case"number":o.id=a+"number",this.attr("colelement",new r.QCELL.Number(o),"object");break;case"slider":o.id=a+"slider",this.attr("colelement",new r.QCELL.Slider(o),"object");break;case"button":o.id=a+"button",this.attr("colelement",new r.QCELL.Button(o),"object");break;case"editor":o.id=a+"editor",this.attr("colelement",new r.QCELL.Editor(o),"object");break;case"inputdatepicker":o.id=a+"inputdatepicker",this.attr("colelement",new r.QCELL.InputDatepicker(o),"object")}},r.QCELL.ColElement=function(t){if(!1===r.util.checkType(t,"object"))return null;r.Element.call(this,t)},r.util.inherit(r.QCELL.ColElement,r.Element),r.QCELL.ColElement.prototype._initTag=function(){this.tag("QBOX.QCELL.ColElement")},r.QCELL.ColElement.prototype._init=function(t){r.Element.prototype._init.call(this,t),this._createElement(),this._initEvent()},r.QCELL.ColElement.prototype._initAttrs=function(t){r.Element.prototype._initAttrs.call(this,t),this.attr("parent",t.parent,"object"),this.attr("colid",t.colid,"string"),void 0!==t.options&&(this.titlekey=t.options.titlekey)},r.QCELL.ColElement.prototype._createElement=function(){},r.QCELL.ColElement.prototype._initEvent=function(){},r.QCELL.ColElement.prototype._show=function(){},r.QCELL.ColElement.prototype._hide=function(){},r.QCELL.ColElement.prototype.show=function(){},r.QCELL.ColElement.prototype.hide=function(){},r.QCELL.ColElement.prototype._changeMergeCellValue=function(t,e,a,o){var i,s,l,n,c=this.attr("parent"),d=c._findNextCell(t,e,"up"),h=c.attr("cols"),_=c.attr("rows"),u=c.attr("frozenrows"),p=c.attr("headercols"),C=c.attr("frozencols"),g=c._cellValue(t,e),f=c._getColType(e);switch(c.attr("merge").data){case"row":if(e<C+p)for(n=d.col;n<C+p&&g===c._cellValue(t,n);n++)if(c._cellValue(t,n,a),r._.isObject(o))switch(i=c._showDataFormat(t,n,void 0===a?"":a),s=c._getCellDOM(t,n),f){case"number":case"input":case"slider":null!==s&&r.util.textContent(s,i);break;case"datepicker":case"inputbutton":null!==s&&c._getColElement(e)._showDataLabel(s,t,e,i)}else"selectmenu"===f&&null!==(s=c._getCellDOM(t,n))&&c._getColElement(e)._showDataLabel(s,t,e,a);else for(n=d.col;n<h&&g===c._cellValue(t,n);n++)if(c._cellValue(t,n,a),r._.isObject(o))switch(i=c._showDataFormat(t,n,void 0===a?"":a),s=c._getCellDOM(t,n),f){case"number":case"input":case"slider":null!==s&&r.util.textContent(s,i);break;case"datepicker":case"inputbutton":null!==s&&c._getColElement(e)._showDataLabel(s,t,e,i)}else"selectmenu"===f&&null!==(s=c._getCellDOM(t,n))&&c._getColElement(e)._showDataLabel(s,t,e,a);break;case"col":if(t<u+c.attr("headerrows"))for(l=d.row;l<u+c.attr("headerrows")&&g===c._cellValue(l,e);l++)if(c._cellValue(l,e,a),r._.isObject(o))switch(i=c._showDataFormat(l,e,void 0===a?"":a),s=c._getCellDOM(l,e),f){case"number":case"input":case"slider":null!==s&&r.util.textContent(s,i);break;case"datepicker":case"inputbutton":null!==s&&c._getColElement(e)._showDataLabel(s,t,e,i)}else"selectmenu"===f&&null!==(s=c._getCellDOM(l,e))&&c._getColElement(e)._showDataLabel(s,t,e,a);else if(t>=c.attr("rows")-c.attr("frozenbottomrows"))for(l=d.row;l<_&&g===c._cellValue(l,e);l++)if(c._cellValue(l,e,a),r._.isObject(o))switch(f){case"number":case"input":case"slider":null!==s&&r.util.textContent(s,i);break;case"datepicker":case"inputbutton":null!==s&&c._getColElement(e)._showDataLabel(s,t,e,i)}else"selectmenu"===f&&null!==(s=c._getCellDOM(l,e))&&c._getColElement(e)._showDataLabel(s,t,e,a);else for(l=d.row;l<c.attr("rows")-c.attr("frozenbottomrows")&&g===c._cellValue(l,e);l++)if(c._cellValue(l,e,a),r._.isObject(o))switch(f){case"number":case"input":case"slider":null!==s&&r.util.textContent(s,i);break;case"datepicker":case"inputbutton":null!==s&&c._getColElement(e)._showDataLabel(s,t,e,i)}else"selectmenu"===f&&null!==(s=c._getCellDOM(l,e))&&c._getColElement(e)._showDataLabel(s,t,e,a);break;case"group":var L=[];if(t<u+c.attr("headerrows"))for(l=d.row;l<u+c.attr("headerrows")&&d.row===c._findNextCell(l,e,"up").row&&g===c._cellValue(l,e);l++)L.push(l);else if(t>=c.attr("rows")-c.attr("frozenbottomrows"))for(l=d.row;l<_&&d.row===c._findNextCell(l,e,"up").row&&g===c._cellValue(l,e);l++)L.push(l);else for(l=d.row;l<c.attr("rows")-c.attr("frozenbottomrows")&&d.row===c._findNextCell(l,e,"up").row&&g===c._cellValue(l,e);l++)L.push(l);for(l=0;l<L.length;l++)if(c._cellValue(L[l],e,a),r._.isObject(o))switch(i=c._showDataFormat(L[l],e,void 0===a?"":a),s=c._getCellDOM(L[l],e),f){case"number":case"input":case"slider":null!==s&&r.util.textContent(s,i);break;case"datepicker":case"inputbutton":null!==s&&c._getColElement(e)._showDataLabel(s,t,e,i)}else"selectmenu"===f&&null!==(s=c._getCellDOM(L[l],e))&&c._getColElement(e)._showDataLabel(s,t,e,a)}},r.QCELL.Checkbox=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Checkbox,r.QCELL.ColElement),r.QCELL.Checkbox.prototype._initTag=function(){this.tag("QBOX.QCELL.Checkbox")},r.QCELL.Checkbox.prototype._createDiv=function(t){var e=r.QCELL.def.css,a=document.createElement("div"),o=document.createElement("input"),i=document.createElement("label"),s=this.attr("parent");return!0===this.attr("likeradio")?o.setAttribute("type","radio"):o.setAttribute("type","checkbox"),!0!==this.attr("showheaderlabel")&&i.setAttribute("aria-hidden","true"),o.setAttribute("name",this.attr("id")),o.className+=r.QCELL.def.css.COLHEADER_CHECKBOX,i.setAttribute("for",this.attr("id")),a.className+=t?" "+e.COLHEADER_CHECKBOX:e.TYPE_CHECKBOX_WRAP_STYLE+" "+e.COLHEADER_CHECKBOX,a.appendChild(o),a.appendChild(i),(s.attr("useall")||s.attr("usetreeall"))&&o.setAttribute("tabindex","0"),a},r.QCELL.Checkbox.prototype._createElement=function(){try{return this.attr("headerelement",this._createDiv(!0),"element"),this._setElement(this._createDiv()),!0}catch(t){return r.QCELL.log("err","QCELL.Checkbox.prototype._createElement",t.message),!1}},r.QCELL.Checkbox.prototype._initEvent=function(){var t="click",e=this.attr("parent");t=!0===e.attr("useall")||!0===e.attr("usetreeall")?t+" focusin keydown":t,r.$(this.attr("element")).on(t,{target:this},r.st.eventProcess),r.$(this.attr("headerelement")).on(t,{target:this},r.st.eventProcess)},r.QCELL.Checkbox.prototype._defaultAction=function(t){switch(t.type){case"click":this.onClick(t);break;case"focusin":this.onFocusIn(t);break;case"keydown":this.onKeyDown(t)}},r.QCELL.Checkbox.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("tabindex",-1,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this._extendAttrs(t.options)},r.QCELL.Checkbox.prototype._extendAttrs=function(t){try{var e=!0;return!r._.isUndefined(t.checkedvalue)||!r._.isUndefined(t.uncheckedvalue)||r._.isUndefined(r.QCELL.config.options)||r._.isUndefined(r.QCELL.config.options.checkedvalue)||r._.isUndefined(r.QCELL.config.options.uncheckedvalue)||(t.checkedvalue=r.QCELL.config.options.checkedvalue,t.uncheckedvalue=r.QCELL.config.options.uncheckedvalue),r._.isUndefined(t.checkedvalue)&&r._.isUndefined(t.uncheckedvalue)?(t.checkedvalue=!0,t.uncheckedvalue=!1):r._.isString(t.checkedvalue)&&r._.isString(t.uncheckedvalue)?e=!1:r._.isBoolean(t.checkedvalue)&&r._.isBoolean(t.uncheckedvalue)?e=!0:(r._.isUndefined(t.checkedvalue)||r._.isUndefined(t.uncheckedvalue)?r.QCELL.log("err","QCELL.Checkbox",'checkedvalue and uncheckedvalue props is not same type, so setting default Boolean type "true" and "false".'):r.QCELL.log("err","QCELL.Checkbox",'checkedvalue and uncheckedvalue props is only support "stirng" or "boolean" types.'),t.checkedvalue=!0,t.uncheckedvalue=!1),this.attr("checkedvalue",t.checkedvalue,!0===e?"boolean":"string"),this.attr("uncheckedvalue",t.uncheckedvalue,!0===e?"boolean":"string"),r._.isUndefined(t.wholeselect)?t.wholeselect=!1:!1===r._.isBoolean(t.wholeselect)&&(r.QCELL.log("err","QCELL.Checkbox",'wholeselect property type is "boolean".'),t.wholeselect=!0),r._.isUndefined(t.likeradio)?t.likeradio=!1:!1===r._.isBoolean(t.likeradio)&&(r.QCELL.log("err","QCELL.Checkbox",'selectone property type is "boolean".'),t.likeradio=!1),this.attr("usefixedcheckbox",t.wholeselect,"boolean"),this.attr("likeradio",t.likeradio,"boolean"),this.attr("showheaderlabel",t.showheaderlabel,"boolean"),!0}catch(t){return r.QCELL.log("err","QCELL.Checkbox.prototype._extendAttrs",t.message),!1}},r.QCELL.Checkbox.prototype._headershow=function(t,e,a){try{var o=this.attr("parent"),i=o._cellValue(e,a),s=r.$(this.attr("headerelement")).clone(!0).get(0),l=this.attr("usefixedcheckbox"),n=this.attr("likeradio"),c=o.attr("headerrows"),d=o._getColElement(a).attr("checkedvalue"),h=s.childNodes[0],_=s.childNodes[1],u=o._cellValue(c-1,a);if(u=void 0===u||""===u?a+"":u,t.innerHTML="",s.setAttribute("data-row",e),s.setAttribute("data-col",a),h.setAttribute("data-row",e),h.setAttribute("data-col",a),h.title=u+"열 전체 선택",s.className+=" "+r.QCELL.def.css.COLHEADER_AREA,h.className+=" "+r.QCELL.def.css.COLHEADER_AREA,h.onchange=function(t){o._trigger("checkbox_all_changed",{status:t.target.checked,col:a})},e===c-1&&l&&!n){h.name=h.name+"_all";for(var p=0,C=!0===o.attr("makefrozenbottomdata")?o.attr("frozenbottomrows"):0,g=o.attr("rows")-o.attr("headerrows")-C,f=0;f<g;f++)o.attr("currentdata")[f][o._getKeyOfCol(a)]===d&&p++;if(p===o.attr("currentdata").length-C&&o.attr("currentdata").length>0&&(h.checked=!0),!0===this.attr("showheaderlabel")){_.setAttribute("data-row",e),_.setAttribute("data-col",a),_.className+=" "+r.QCELL.def.css.COLHEADER_AREA,_.setAttribute("for",h.name);var L=i.split("\n");if(L.length>0){s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center";for(var m=document.createElement("div"),E=0;E<L.length;E++){if(0!==E){var b=document.createElement("br");m.appendChild(b)}var y=document.createElement("span"),v=document.createTextNode(L[E]);y.setAttribute("data-row",e),y.setAttribute("data-col",a),m.setAttribute("data-row",e),m.setAttribute("data-col",a),y.appendChild(v),m.appendChild(y)}_.appendChild(m)}else{var w=document.createTextNode(i);_.appendChild(w)}}t.appendChild(s),o._getQCellCol(a).attr("move")&&t.appendChild(o._getColHeaderDragDropArea()),o._getQCellCol(a).attr("search")&&t.appendChild(o.attr("colsearcharea").clone(!0).get(0)),o._getQCellCol(a).attr("sort")&&t.appendChild(o._getDefaultSortArea(a)),o._getQCellCol(a).attr("resize")&&t.appendChild(o._getColResizeArea()),o._getQCellCol(a).attr("filter")&&t.appendChild(o._getFilterArea(a))}else{o._getQCellCol(a).attr("topmove")&&t.appendChild(o._getColHeaderDragDropArea()),void 0===i&&(i="");var x=i.split("\n");if((o.attr("useall")||o.attr("usetreeall"))&&t.setAttribute("aria-hidden","true"),x.length>0){t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center";for(var Q=document.createElement("div"),S=0;S<x.length;S++){if(S){var k=document.createElement("br");Q.appendChild(k)}var T=document.createElement("span"),R=document.createTextNode(x[S]);T.setAttribute("data-row",e),T.setAttribute("data-col",a),Q.setAttribute("data-row",e),Q.setAttribute("data-col",a),T.appendChild(R),Q.appendChild(T)}t.appendChild(Q)}else r.util.textContent(t,i)}return!0}catch(t){return r.QCELL.log("err","QCELL.Checkbox._headershow",t.message),!1}},r.QCELL.Checkbox.prototype._show=function(t,e,a){try{var o,i=this.attr("parent"),s=r.QCELL.def.css,l=i._cellValue(e,a),n=r.$(this.attr("element")).clone(!0).get(0),c=this.attr("checkedvalue"),d=this.attr("likeradio"),h=i._getQCellCol(a).attr("celldisabled")[e],_=i._getQCellCol(a).attr("cellinvisible")[e],u=n.childNodes[0];if(i._showDisableText(t,e,a))return;if(i._isBottomPanel(t))return void r.util.textContent(t,"");if(t.innerHTML="",n.setAttribute("data-row",e),n.setAttribute("data-col",a),u.setAttribute("data-row",e),u.setAttribute("data-col",a),u.onchange=function(t){i._trigger("checkbox_changed",{status:t.target.checked,row:e,col:a})},d&&r.util.addClass(u,s.TYPE_RADIO_STYLE),l===c&&(u.checked=!0,i.attr("isFocussing",!0,"boolean"),d&&(i.attr("useall")||i.attr("usetreeall"))?setTimeout((function(){u.focus(),i.attr("isFocussing",!1,"boolean")}),0):i.attr("isFocussing",!1,"boolean")),null!==this.titlekey&&!0===r._.isFunction(this.titlekey)){if(void 0!==(o=i.getRowData(e))){var p=this.titlekey(e,a,o);void 0!==p&&""!==p&&(i.attr("useall")||i.attr("usetreeall")?u.setAttribute("title",p):u.setAttribute("aria-label",p))}}else null!==this.titlekey&&""!==this.titlekey&&void 0!==this.titlekey&&void 0!==(o=i.getRowData(e))&&(i.attr("useall")||i.attr("usetreeall")?u.setAttribute("title",void 0!==o[this.titlekey]?o[this.titlekey]:""):u.setAttribute("aria-label",void 0!==o[this.titlekey]?o[this.titlekey]:""));return h?r.$(u).attr("disabled",h):r.$(u).removeAttr("disabled"),r.util.addClass(u,s.TYPE_CHECKBOX_STYLE),r.$(t).empty(),t.appendChild(n),this.attr("row",e,"number"),this.attr("col",a,"number"),_&&i._setInitCellInvisible(e,a),!0}catch(t){return r.QCELL.log("err","QCELL.Checkbox._show",t.message),!1}},r.QCELL.Checkbox.prototype._isHeaderCheckbox=function(t){var e=!1;return this.attr("parent")._getColElement(t).attr("usefixedcheckbox")&&(e=!0),e},r.QCELL.Checkbox.prototype._getHeaderCheckedState=function(t){var e=this.attr("id")+"._getHeaderCheckedState",a=this.attr("parent");return this._isHeaderCheckbox(t)?null!==a._getColElement(t).attr("_checkedstate")&&a._getColElement(t).attr("_checkedstate"):void r.QCELL.log("err",e,a.attr("msg").err.NOT_HAVE_HEADER_CHECKBOX)},r.QCELL.Checkbox.prototype._setHeaderChecked=function(t,e){var a=this.attr("id")+"._setHeaderChecked",o=this.attr("parent"),i=o.attr("headerrows")-1;do{var s=o._getCellDOM(i,t);if(null===s)return;if("none"!==r.$(s).css("display"))break}while(i-- >=0);i<0||(this._isHeaderCheckbox(t)?this._HeaderCheckBoxChecked(i,t,e):r.QCELL.log("err",a,o.attr("msg").err.NOT_HAVE_HEADER_CHECKBOX))},r.QCELL.Checkbox.prototype._outerClick=function(t,e,a){var o,i,s=this.attr("parent"),l=s._getCellDOM(t,e),n=l.getElementsByTagName("input")[0],c=s._getColElement(e).attr("checkedvalue"),d=s._getColElement(e).attr("uncheckedvalue"),h=s._getColElement(e).attr("likeradio"),_=s._getQCellCol(e).attr("celldisabled")[t],u=s.getIdx("row","focus"),p=s.getIdx("col","focus");if(s._clearFocusAllCSS(),r._.isElement(n)&&(s._onScrollHideEditCellsDOM(),s._clearSelection(),s._updateIdx("focus",-1,-1),!1===r._.isBoolean(_)||!1===_))if(!0===a||r._.isUndefined(a)&&!1===n.checked)if(r.util.hasClass(l,r.QCELL.def.css.CELL_VIEWPORT)){if(!0===h){for(o=0,i=s.attr("rows")-s.attr("headerrows");o<i;o++)s.attr("currentdata")[o][s._getKeyOfCol(e)]=d;n.checked=!0,n.value=c,s._cellValue(t,e,c)}else n.checked=!0,n.value=c,s._cellValue(t,e,c);s._selectCell(t,e),s._focusCell(t,e),s._scrollToFocusCell(t,e),s._processValueChanged(t,e),s._treecheckbox(t,e,!0),s._mergedCheckboxClick(t,e,!0)}else this._HeaderCheckBoxChecked(t,e,!0),-1!==u&&-1!==p&&(s._selectCell(u,p),s._focusCell(u,p));else if(!1===a||r._.isUndefined(a)&&!0===n.checked)if(r.util.hasClass(l,r.QCELL.def.css.CELL_VIEWPORT)){if(!0===h){for(o=0,i=s.attr("rows")-s.attr("headerrows");o<i;o++)s.attr("currentdata")[o][s._getKeyOfCol(e)]=d;n.checked=!0,n.value=c,s._cellValue(t,e,c)}else n.checked=!1,n.value=d,s._cellValue(t,e,d);s._selectCell(t,e),s._focusCell(t,e),s._scrollToFocusCell(t,e),s._processValueChanged(t,e),s._treecheckbox(t,e,!1),s._mergedCheckboxClick(t,e,!1)}else this._HeaderCheckBoxChecked(t,e,!1),-1!==u&&-1!==p&&(s._selectCell(u,p),s._focusCell(u,p))},r.QCELL.Checkbox.prototype._HeaderCheckBoxChecked=function(t,e,a){var o,i,s,l,n,c=this.attr("parent"),d=c._getCellDOM(t,e),h=c._getColElement(e).attr("checkedvalue"),_=c._getColElement(e).attr("uncheckedvalue"),u=[],p=!0,C=-1,g=-1,f=!1,L=!1,m="panel"===c.attr("frozenbottomstyle");if(r._.isUndefined(a)||a||(p=!p),c._getColElement(e).attr("_checkedstate",p,"boolean"),null!=d){var E=d.childNodes[0].childNodes[0],b=E.name.replace("_all","");u=document.getElementsByName(b),E.checked=p}for(o=0,s=u.length;o<s;o++)C=(n=u[o].parentNode).getAttribute("data-row"),g=n.getAttribute("data-col"),f=c._getQCellCol(g).attr("cellinvisible")[C],L=c._getQCellCol(g).attr("celldisabled")[C],f||L||(u[o].checked=p);for(c.attr("_hcskip",!0,"boolean"),i=c.attr("headerrows"),l=c.attr("rows");i<l;i++)if(!0!==m||!0!==c.getCellDataEx(i,"rt_qc_fbrd")){c._cellValue(i,e)!==h&&c._cellValue(i,e)!==_&&(c.attr("currentdata")[i-c.attr("headerrows")][c._getKeyOfCol(e)]=_),f=c._getQCellCol(e).attr("cellinvisible")[i],L=c._getQCellCol(e).attr("celldisabled")[i];var y=c.getRowData(i);(void 0===y||"gt"!==y._rtqc_state&&!0!==y.rt_qc_header&&!0!==y.rt_qc_footer)&&(f||L||(p?c._cellValue(i,e,h):c._cellValue(i,e,_)))}c.attr("_hcskip",!1,"boolean")},r.QCELL.Checkbox.prototype.onKeyDown=function(t){var e=this.attr("parent"),a=e.attr("vsinfo"),o=t.keyCode;if((e.attr("useall")||e.attr("usetreeall"))&&a.bVScroll){var i=Number(t.currentTarget.parentNode.getAttribute("data-row")),s=Number(t.currentTarget.parentNode.getAttribute("data-col"));if(isNaN(i)||isNaN(s))return;if((o===r.def.key.UP||o===r.def.key.LEFT)&&i===a.nStartRow)return t.stopPropagation(),void t.preventDefault();if((o===r.def.key.UP||o===r.def.key.LEFT)&&i===a.nTopRow){var l=i-1;return e._scrollTop(l-1),setTimeout((function(){var t=e._getCellDOM(l+1,s);if(null!==t){var r=t.getElementsByTagName("input")[0];void 0!==r&&r.focus()}}),100),t.stopPropagation(),void t.preventDefault()}if((o===r.def.key.DOWN||o===r.def.key.RIGHT)&&i===a.nEndRow)return t.stopPropagation(),void t.preventDefault();if((o===r.def.key.DOWN||o===r.def.key.RIGHT)&&i===a.nBottomRow)return t.stopPropagation(),void t.preventDefault();e.attr("isFocussing")&&(t.stopPropagation(),t.preventDefault())}},r.QCELL.Checkbox.prototype.onClick=function(t){var e=this.attr("parent"),a=t.target,o=Number(a.parentNode.getAttribute("data-row")),i=Number(a.parentNode.getAttribute("data-col"));"LABEL"===t.target.tagName?a=t.target.parentElement.firstElementChild:"SPAN"===t.target.tagName&&((a=t.target.parentElement.parentElement.parentElement.firstElementChild).checked=!a.checked),r._.isElement(a)&&(isNaN(o)||isNaN(i)||e._updateIdx("click",o,i),r.util.hasClass(a,r.QCELL.def.css.TYPE_CHECKBOX_WRAP_STYLE)?(a=a.childNodes[0]).checked?this._outerClick(o,i,!1):this._outerClick(o,i,!0):a.checked?this._outerClick(o,i,!0):this._outerClick(o,i,!1))},r.QCELL.Checkbox.prototype.onFocusIn=function(t){var e=this.attr("parent"),r=t.target,a=Number(r.parentNode.getAttribute("data-row")),o=Number(r.parentNode.getAttribute("data-col"));if((e.attr("useall")||e.attr("usetreeall"))&&-1!==a&&-1!==o)if(a>=e.getRows("header")){if(this.attr("likeradio"))return;e._focusCell(a,o),e._scrollToFocusCell(a,o)}else a>=e.attr("headerrows")&&e._scrollLeft(o)},r.QCELL.Datepicker=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Datepicker,r.QCELL.ColElement),r.QCELL.Datepicker.prototype._initTag=function(){this.tag("QBOX.QCELL.Datepicker")},r.QCELL.Datepicker.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("showkey",!1,"boolean"),this.attr("visible",!1,"boolean"),this.attr("changeyear",void 0!==t.options.changeyear&&t.options.changeyear,"boolean"),this.attr("changemonth",void 0!==t.options.changemonth&&t.options.changemonth,"boolean"),this.attr("insertdata","","string"),this.attr("dateformat",void 0===t.options.dateformat?"YYMMDD":t.options.dateformat,"string"),this.attr("locale",void 0===t.options.locale?"ko":t.options.locale,"string"),this.attr("yearrange",void 0===t.options.yearrange?"c-10:c+10":t.options.yearrange,"string"),this.minDate=void 0===t.options.mindate?null:t.options.mindate,this.maxDate=void 0===t.options.maxdate?null:t.options.maxdate,this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("format",t.options.format,"object"),this.attr("timetype",void 0===t.options.timetype?"none":t.options.timetype,"string"),this.attr("timeformat",void 0===t.options.timeformat?"HHmmss":t.options.timeformat,"string"),void 0!==r.$.timepicker&&this.attr("timeseparator",void 0===t.options.timeseparator?r.$.timepicker._defaults.separator:t.options.timeseparator,"string"),this.attr("dateimage",void 0===t.options.dateimage?"":t.options.dateimage,"string"),this.attr("dateimageside",void 0===t.options.dateimageside?"right":t.options.dateimageside,"string"),this.attr("dateimageonly",void 0!==t.options.dateimageonly&&t.options.dateimageonly,"boolean"),this.attr("direction",t.options.direction,"string"),this.attr("validator",t.options.validator,"function"),this.attr("initdate",t.options.initdate,"string")},r.QCELL.Datepicker.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")),t.className+=r.QCELL.def.css.TYPE_DATEPICKER_WRAP_STYLE,this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Datepicker.prototype._createElement",t.message),!1}},r.QCELL.Datepicker.prototype._initEvent=function(){},r.QCELL.Datepicker.prototype._defaultAction=function(t){},r.QCELL.Datepicker.prototype._show=function(t){try{var e=this.attr("parent"),a=this.attr("element"),o=parseInt(t.getAttribute("data-row")),i=parseInt(t.getAttribute("data-col")),s=e._getQCellCol(i).attr("cellinvisible")[o],l=e._getQCellCol(i).attr("celldisabled")[o],n=e.attr("elementpool").get("$container"),c=this,d=this.attr("locale"),h=this.attr("timetype");this.attr("useinitdate",!1,"boolean");var _=void 0===e._cellValue(o,i)||null===e._cellValue(o,i)?"":r.util.replaceAll(e._cellValue(o,i),"/","");e._onScrollHideEditCellsDOM(),""!==_&&void 0!==_||""!==(_=null!==this.attr("initdate")&&""!==this.attr("initdate")?this.attr("initdate"):"")&&this.attr("useinitdate",!0,"boolean");var u={defaultDate:_,changeYear:this.attr("changeyear"),changeMonth:this.attr("changemonth"),dateFormat:this.attr("dateformat").toLowerCase(),yearRange:this.attr("yearrange"),minDate:this.minDate,maxDate:this.maxDate,firstDay:0,onSelect:function(e,r){c.attr("insertdata",e,"string"),c.attr("isselect",!0,"boolean"),c._hide(t,"api")},showButtonPanel:!0,showAnim:"fold"};if(l)return!0;if(r.$.datepicker.setDefaults(r.$.datepicker.regional[d]),"none"===h)r.$(a).datepicker(u),!0===e.attr("datepickerautosettoday")?r.$.datepicker._gotoToday=function(e){r.$(e).datepicker("setDate",new Date);var a=new Date,o=a.getFullYear(),i="0"+(a.getMonth()+1);i=i.substring(i.length-2,i.length);var s="0"+a.getDate();s=s.substring(s.length-2,s.length),setTimeout((function(){c.attr("insertdata",o+i+s,"string"),c.attr("isselect",!0,"boolean"),c._hide(t,"api")}))}:r.$.datepicker._gotoToday=function(t){r.$(t).datepicker("setDate",new Date)};else{_=void 0!==_?_:"";var p=this.attr("timeseparator"),C=this.attr("timeformat"),g=void 0!==_?_.split(p)[0]:"",f=_.replace(g+p,""),L=this.attr("format"),m={defaultDate:g,timeFormat:this.attr("timeformat"),showButtonPanel:!0,onSelect:function(a,s){if(c.attr("insertdata",a,"string"),r._.isObject(L)){var l=e._showDataFormat(o,i,void 0===a?"":a);r.util.textContent(t,l)}}};void 0!==r.$.timepicker&&(r.$.timepicker.setDefaults(r.$.timepicker.regional[d]),r.$.timepicker.setDefaults({separator:p})),r._.extend(u,r._.extend(m,r.$.datepicker.parseTime(C,f,{}))),"with"===h?r.$(a).datetimepicker(u).off("click").on("click",(function(e){r.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&c._hide(t)})):"only"===h&&r.$(a).timepicker(u).off("click").on("click",(function(e){r.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&c._hide(t)}))}return n.append(a),t.focus(),this._calculateTopNLeft(a,t),this.attr("row",o,"number"),this.attr("col",i,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",_,"string"),this.attr("isselect",!1,"boolean"),e._addEditColId(this.attr("colid")),s&&e._setInitCellInvisible(o,i),r.$(a).bind("click",(function(e){r.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&c._hide(t)})),!0}catch(t){return r.QCELL.log("err","QCELL.Datepicker.prototype._show",t.message),!1}},r.QCELL.Datepicker.prototype._hidesub=function(t,e){this.attr("isselect",!1,"boolean"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata","","string"),t._removeEditColId(this.attr("colid"))},r.QCELL.Datepicker.prototype._hide=function(t,e){try{if(null===t)return;var a=this.attr("parent"),o=this.attr("element"),i=this.attr("row"),s=this.attr("col"),l=this.attr("insertdata"),n=this.attr("format"),c=this.attr("validator");if(-1===i||-1===s)return;if(r.$(o).datepicker("destroy"),r.$(o).detach(),void 0===l)return;if(!0===this.attr("isselect")&&c)return this._hidesub(a),void c(i,s,l);if(!0!==this.attr("isselect")&&!0===this.attr("useinitdate")&&l===this.attr("initdate"))return void this._hidesub(a);if(this.attr("isselect",!1,"boolean"),l!==a._cellValue(i,s)?("none"===a.attr("merge").data||r._.isUndefined(a.attr("merge").data)||!1===a._getColDataMergeCol(s)?(a._cellValue(i,s,l),this._showDataLabel(t,i,s,l),r._.isObject(n)&&this._showDataLabel(t,i,s,void 0===l?"":l)):this._changeMergeCellValue(i,s,l,n),a._processValueChanged(i,s)):void 0!==l&&(r._.isObject(n),this._showDataLabel(t,i,s,void 0===l?"":l)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&a.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():r.$(t).focus(),this._hidesub(a),a.attr("useall")){var d=!0!==a.attr("hideedit");a._setAriaLabelEx(t,i,s,d)}return!0}catch(t){return r.QCELL.log("err","QCELL.Datepicker.prototype._hide",t.message),!1}},r.QCELL.Datepicker.prototype._calculateTopNLeft=function(t,e){var a=this.attr("parent"),o=parseInt(r.$(e).css("height")),i=parseFloat(r.$(t).children().css("height")),s=parseInt(r.$(e).css("top"))+a.attr("layoutsize").colheader.offsetHeight+o,l=parseInt(r.$(e).position().top),n=0,c=!0,d=parseInt(r.$(e).css("width")),h=parseFloat(r.$(t).css("width")),_=parseInt(r.$(e).css("left"))+a.attr("layoutsize").rowheader.offsetWidth,u=void 0===window.scrollY?0:window.scrollY;"down"===this.attr("direction")?(r.$(t).css({top:s}),r.$(t).css({bottom:"auto"})):"up"===this.attr("direction")?(n=a.attr("layoutsize").root.offsetHeight-l-o,r.$(t).css({bottom:n}),r.$(t).css({top:"auto"})):(l&&a.attr("layoutsize").root.offsetHeight<s+i?window.pageYOffset+e.getBoundingClientRect().top+i+s>window.innerHeight+u?(n=a.attr("layoutsize").root.offsetHeight-l-o,r.$(t).css({bottom:n}),r.$(t).css({top:"auto"})):(c=!1,n=a.attr("layoutsize").root.offsetHeight-l-o,r.$(t).css({bottom:n}),r.$(t).css({top:"auto"})):a.attr("layoutsize").root.offsetHeight>s+i?(r.$(t).css({top:s}),r.$(t).css({bottom:"auto"})):window.pageYOffset+e.getBoundingClientRect().top+i+s>window.innerHeight+u?(n=a.attr("layoutsize").root.offsetHeight-l-o,r.$(t).css({bottom:n}),r.$(t).css({top:"auto"})):(r.$(t).css({top:s}),r.$(t).css({bottom:"auto"})),!1===c&&n<i&&s<i&&window.pageYOffset+e.getBoundingClientRect().top+i<window.innerHeight+u&&(r.$(t).css({top:s}),r.$(t).css({bottom:"auto"}))),a.attr("layoutsize").root.offsetWidth<_+h&&(_+h-a.attr("layoutsize").root.offsetWidth<d?_-=h-d:_-=1.5*(h-d)),r.$(t).css({left:_})},r.QCELL.Datepicker.prototype._showDataLabel=function(t,e,a,o){try{this.attr("row",e,"number"),this.attr("col",a,"number");var i,s=this.attr("parent"),l=this.attr("dateimage"),n=this.attr("dateimageside"),c=this.attr("dateimageonly"),d=s._showDataFormat(e,a,o),h=s._getQCellCol(a).attr("colstyleeditordata"),_=document.createElement("div"),u=document.createElement("img"),p="dblclick",C=0,g=s.getRowData(e);if(!0===g.rt_qc_footer||!0===g.rt_qc_header)return r.util.textContent(t,o),void s._setAriaLabel(t,e,a,o);if(r.$(_).css({height:r.$(t).height()+"px"}),s._isBottomPanel(t))return void(void 0===o?r.util.textContent(t,""):r.util.textContent(t,o));if(s._showDisableText(t,e,a))return;var f=_.cloneNode(),L=_.cloneNode();return _.setAttribute("data-row",e),_.setAttribute("data-col",a),r.util.addClass(_,r.QCELL.def.css.TYPE_DATEPICKER_SINGLE_STYLE),r.util.addClass(_,r.QCELL.def.css.TYPE_DATEPICKER),r.util.addClass(f,r.QCELL.def.css.TYPE_DATEPICKER_SINGLE_DATE_STYLE),r.util.addClass(f,r.QCELL.def.css.TYPE_DATEPICKER),r.util.addClass(L,r.QCELL.def.css.TYPE_DATEPICKER_SINGLE_IMG_STYLE),r.util.addClass(L,r.QCELL.def.css.TYPE_DATEPICKER),i=d,h.replace("QCELL_COL_DATA","").length>0&&(i=h.replace("QCELL_COL_DATA",d)),s.attr("oneclickedit")&&(p="click"),f.innerHTML=i,""!==l&&(C=25,u.src=l,L.appendChild(u),r.$(L).css("width",C+"px"),r.$(L.childNodes[0]).off(p).on(p,{target:this},this.onClick)),r.$(f).css("width","calc( 100% - "+C+"px )"),r.$(f).css("float","left"),r.$(L).css("float","right"),"left"===n&&(r.$(f).css("float","right"),r.$(L).css("float","left")),_.appendChild(f),_.appendChild(L),!1===c&&r.$(f).off(p).on(p,{target:this},this.onClick),r.$(t).empty(),s._setAriaLabel(t,e,a,d),t.appendChild(_),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL.Datepicker._showDataLabel",t.message),!1}},r.QCELL.Datepicker.prototype.onClick=function(t){var e=t.target,r=Number(e.parentNode.getAttribute("data-row")),a=Number(e.parentNode.getAttribute("data-col")),o=t.data.target,i=o.attr("parent"),s=i._getCellDOM(r,a);if(0===r&&0===a){var l=e.parentNode;r=Number(l.parentNode.getAttribute("data-row")),a=Number(l.parentNode.getAttribute("data-col")),s=i._getCellDOM(r,a)}o._show(s)},r.QCELL.Html=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Html,r.QCELL.ColElement),r.QCELL.Html.prototype._initTag=function(){this.tag("QBOX.QCELL.Html")},r.QCELL.Html.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),t.options.html=void 0===t.options.html?{}:t.options.html,this.attr("renderer",t.options.html.data,"function"),this.attr("afterrenderer",t.options.html.datacallback,"function"),this.attr("headerrenderer",t.options.html.header,"function"),this.attr("row",-1,"number"),this.attr("col",-1,"number")},r.QCELL.Html.prototype._headershow=function(t,e,a){try{var o=this.attr("parent"),i=o._cellValue(e,a),s=o._getColHtml(a);if(r.util.addClass(t,r.QCELL.def.css.TYPE_HTML_CELL),r._.isFunction(this.attr("headerrenderer"))&&r._.isFunction(s.header)){var l=s.header(o,e,a,!0===r._.isUndefined(i)?"":i);r._.isString(l)&&(t.innerHTML=l)}else t.innerHTML=o._getHeaderCellSpan(i,e,a);return!0}catch(t){return r.QCELL.log("err","QCELL.Html._headershow",t.message),!1}},r.QCELL.Html.prototype._show=function(t,e,a){try{var o=this.attr("parent"),i=o._cellValue(e,a),s=o._getColHtml(a),l=o.attr("currentdata"),n=o._getQCellCol(a).attr("cellinvisible")[e];if(r.util.addClass(t,r.QCELL.def.css.TYPE_HTML_CELL),i=o._showDataFormat(e,a,i),o._isBottomPanel(t))return void 0===i?r.util.textContent(t,""):r.util.textContent(t,i),!0;var c=void 0===l[e-o.attr("headerrows")]?{}:l[e-o.attr("headerrows")],d=i;if(r._.isFunction(this.attr("renderer"))&&r._.isFunction(s.data)){var h=s.data(o,e,a,!0===r._.isUndefined(i)?"":i,c);r._.isString(h)?(t.innerHTML=h,d=r.$(t).text()):r.$(t).empty(),r._.isFunction(this.attr("afterrenderer"))&&r._.isFunction(s.datacallback)&&setTimeout((function(){s.datacallback(o,e,a,!0===r._.isUndefined(i)?"":i,c)}),0)}else r.util.textContent(t,i);return this.attr("row",e,"number"),this.attr("col",a,"number"),n&&o._setInitCellInvisible(e,a),o._setAriaLabel(t,e,a,d),!0!==o.attr("useall")&&!0!==o.attr("usetreeall")||r.$(t).bind("focusin",(function(t){!0!==o.attr("isClick")&&o._adjustScrollPos()})),!0}catch(t){return r.QCELL.log("err","QCELL.Html._show",t.message),!1}},r.QCELL.Image=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Image,r.QCELL.ColElement),r.QCELL.Image.prototype._initTag=function(){this.tag("QBOX.QCELL.Image")},r.QCELL.Image.prototype._createElement=function(){try{var t=document.createElement("img");return t.setAttribute("name",this.attr("id")),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Image.prototype._createElement",t.message),!1}},r.QCELL.Image.prototype._initEvent=function(){r.$(this.attr("element")).on("click",{target:this},r.st.eventProcess)},r.QCELL.Image.prototype._defaultAction=function(t){"click"===t.type&&this.onClick(t)},r.QCELL.Image.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this._extendAttrs(t.options)},r.QCELL.Image.prototype._extendAttrs=function(t){try{var e=!0;return r._.isUndefined(t.imagealt)||r._.isString(t.imagealt)?r._.isUndefined(t.imageheight)||r._.isString(t.imageheight)?r._.isUndefined(t.imagewidth)||r._.isString(t.imagewidth)?r._.isUndefined(t.imagestyle)||r._.isObject(t.imagestyle)?r._.isUndefined(t.imageuri)||r._.isString(t.imageuri)?r._.isUndefined(t.imageerroruri)||r._.isString(t.imageerroruri)?r._.isUndefined(t.imageclick)||(r._.isFunction(t.imageclick)?e=!0:r._.isString(t.imageclick)?e=!1:r.QCELL.log("err","QCELL.Image",'imageclick property type is "function".')):r.QCELL.log("err","QCELL.Image",'imageerroruri property type is "string".'):r.QCELL.log("err","QCELL.Image",'imageuri property type is "string".'):r.QCELL.log("err","QCELL.Image",'imagestyle property type is "object".'):r.QCELL.log("err","QCELL.Image",'imagewidth property type is "string".'):r.QCELL.log("err","QCELL.Image",'imageheight property type is "string".'):r.QCELL.log("err","QCELL.Image",'imagealt property type is "string".'),this.attr("imagealt",t.imagealt,"string"),this.attr("imageheight",t.imageheight,"string"),this.attr("imagewidth",t.imagewidth,"string"),this.attr("imagestyle",t.imagestyle,"object"),this.attr("imageuri",t.imageuri,"string"),this.attr("imageerroruri",t.imageerroruri,"string"),this.attr("imageclick",t.imageclick,!0===e?"function":"string"),!0}catch(t){return r.QCELL.log("err","QCELL.Image.prototype._extendAttrs",t.message),!1}},r.QCELL.Image.prototype._show=function(t,e,a){try{var o=this.attr("parent"),i=r.QCELL.def.css,s=r.$(this.attr("element")).clone(!0).get(0),l=t.style,n=o._cellValue(e,a),c={"max-width":Number(l.width.replace("px",""))-4+"px","max-height":l.height},d=o._getQCellCol(a).attr("celldisabled")[e],h=o._getQCellCol(a).attr("cellinvisible")[e];return r.$(t).empty(),o._isBottomPanel(t)?(void 0===n?r.util.textContent(t,""):r.util.textContent(t,n),!0):(s.src=n,r.$(s).css({visibility:"visible"}),r.$(s).css(c),void 0===this.attr("imageerroruri")&&null===this.attr("imageerroruri")||(r.$.browser.msie&&r.$.browser.version<9?r.$(s).on("error",(function(t){r.$(t.target).css({visibility:"hidden"})})):s.onerror=function(t){r.$(t.target).css({visibility:"hidden"})}),r.$.each(o._getColOptions(a),(function(t,e){switch(t){case"imagealt":s.alt=e;break;case"imageheight":s.setAttribute("height",e);break;case"imagewidth":s.setAttribute("width",e);break;case"imagestyle":r.$.each(e,(function(t,e){c[t]=e.replace(/\;/gi,"")})),r.$(s).css(c);break;case"imageclick":!1!==r._.isBoolean(d)&&!1!==d||(s.onclick=function(t){var a=parseInt(t.target.parentElement.getAttribute("data-row")),o=parseInt(t.target.parentElement.getAttribute("data-col"));r._.isFunction(e)?e(t,a,o):void 0!==window[e]&&window[e](t,a,o)});break;case"imageuri":s.src=e;break;case"imageerroruri":r.$.browser.msie&&r.$.browser.version<9?r.$(s).on("error",(function(t){t.target.src=e})):s.onerror=function(t){t.target.src=e}}})),r.$(s).on("dragstart",(function(t){t.preventDefault()})),r.util.addClass(t,i.TYPE_IMAGE_STYLE),t.appendChild(s),h&&o._setInitCellInvisible(e,a),this.attr("row",e,"number"),this.attr("col",a,"number"),o._setAriaLabel(t,e,a,""),!0)}catch(t){return r.QCELL.log("err","QCELL.Image._show",t.message),!1}},r.QCELL.Image.prototype._outerClick=function(t,e){},r.QCELL.Image.prototype.onClick=function(t){var e=this.attr("parent"),a=t.target,o=Number(a.parentNode.getAttribute("data-row")),i=Number(a.parentNode.getAttribute("data-col"));r._.isElement(a)&&(e._clearSelection(),e._selectCell(o,i),e._focusCell(o,i))},r.QCELL.Input=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Input,r.QCELL.ColElement),r.QCELL.Input.prototype._initTag=function(){this.tag("QBOX.QCELL.Input")},r.QCELL.Input.prototype._setOptionsAttrs=function(t){this.attr("maxlength",t.maxlength,"number"),this.attr("maxbyte",t.maxbyte,"number"),this.attr("mask",t.mask,"object"),this.attr("format",t.format,"object"),this.attr("limit",t.limit,"object"),this.attr("numrange",t.numrange,"string"),this.attr("exclude",t.exclude,"array"),this.attr("validator",t.validator,"function"),this.attr("placeholder",t.placeholder,"string"),t.inputclass=void 0===t.inputclass?"":t.inputclass,r._.isString(t.inputclass)||(t.inputclass=""),this.attr("placeholder",t.placeholder,"string"),this.attr("inputclass",t.inputclass,"string"),this.titlekey=t.titlekey,this.attr("useenterkeytonext",t.useenterkeytonext,"boolean")},r.QCELL.Input.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("maxlength",t.options.maxlength,"number"),this.attr("maxbyte",t.options.maxbyte,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("mask",t.options.mask,"object"),this.attr("format",t.options.format,"object"),this.attr("limit",t.options.limit,"object"),this.attr("numrange",t.options.numrange,"string"),this.attr("exclude",t.options.exclude,"array"),this.attr("validator",t.options.validator,"function"),this.attr("bkeycode",void 0,"number"),this.attr("convert",t.options.convert,"object"),this.attr("isshow",!1,"boolean"),this.attr("placeholder",t.options.placeholder,"string"),t.options.inputclass=void 0===t.options.inputclass?"":t.options.inputclass,r._.isString(t.options.inputclass)||(t.options.inputclass=""),this.attr("inputclass",t.options.inputclass,"string"),void 0!==t.options.enterkey?(this.attr("useenterkeytonext",t.options.enterkey.tonext,"boolean"),this.attr("movescroll",t.options.enterkey.movescroll,"boolean"),this.attr("delaytime",t.options.enterkey.delaytime,"number")):(this.attr("useenterkeytonext",!1,"boolean"),this.attr("movescroll",!1,"boolean"),this.attr("delaytime",100,"number")),this.attr("delaytime")<100&&this.attr("delaytime",100,"number")},r.QCELL.Input.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),r.$(t).attr("autocomplete","off"),t.className+=r.QCELL.def.css.TYPE_INPUT_TEXT_STYLE+" "+this.attr("inputclass"),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Input.prototype._createElement",t.message),!1}},r.QCELL.Input.prototype._initEvent=function(){r.$(this.attr("element")).on("keydown keyup keypress blur paste",{target:this},r.st.eventProcess)},r.QCELL.Input.prototype._defaultAction=function(t){var e=t.keyCode,a=this.attr("bkeycode");switch(t.type){case"keydown":this.onKeyDown(t);break;case"keyup":this.onKeyUp(t);break;case"blur":if(void 0===e&&void 0===this.attr("bkeycode"))break;if(a===r.def.key.ENTER||a===r.def.key.TAB||a===r.def.key.ESC)break;this.onBlur(t);break;case"keypress":this.onKeyPress(t);break;case"paste":this.onPaste(t),t.stopPropagation()}},r.QCELL.Input.prototype._show=function(t,e){try{var a=this.attr("parent"),o=this.attr("element"),i=parseInt(t.getAttribute("data-row")),s=parseInt(t.getAttribute("data-col")),l=void 0===a._cellValue(i,s)?"":a._cellValue(i,s),n=r.$(t).empty(),c=a.attr("elementpool").get("$viewportinner"),d=a._getQCellCol(s).attr("cellinvisible")[i];if(a._isValidEditColId(this.attr("colid")))return;null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?l=r.util.replaceAll(l,"%",""):r._.isFunction(this.attr("convert").callback)&&(l=this.attr("convert").callback.call(this,i,s,l))),this.attr("isshow",!0,"boolean"),r.$(o).val(l),o.value=l;var h=a._cellValue(a.getRows("header")-1,s);return o.setAttribute("aria-label",i+"행 "+h+"열 "+l),void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(o.placeholder=this.attr("placeholder")),a._showMask(s,o),r.$(o).css({width:n.css("width"),height:n.css("height"),left:n.css("left"),top:n.css("top")}),c.append(o),o.focus(),o.select(),this.attr("row",i,"number"),this.attr("col",s,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[l],"array"),a._addEditColId(this.attr("colid")),d&&a._setInitCellInvisible(i,s),!0}catch(t){return r.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},r.QCELL.Input.prototype._hide=function(t,e){try{if(null===t)return;if(!1===this.attr("isshow")&&!0!==this.attr("parent").attr("oneclickedit"))return;var a,o=this.attr("parent"),i=this.attr("element"),s=this.attr("row"),l=this.attr("col"),n=i.value,c=this.attr("format"),d=this.attr("validator"),h=null===o._cellValue(s,l)||void 0===o._cellValue(s,l)?"":o._cellValue(s,l);if(!r._.isNull(this.attr("maxbyte"))&&!r._.isUndefined(this.attr("maxbyte"))&&r.util.strbyte.getByteLength(n)>this.attr("maxbyte")?n=r.util.strbyte.cutByteLength(n,this.attr("maxbyte")):!r._.isNull(this.attr("maxlength"))&&!r._.isUndefined(this.attr("maxlength"))&&n.length>this.attr("maxlength")&&(n=n.slice(0,this.attr("maxlength"))),this.attr("isshow",!1,"boolean"),-1===s||-1===l)return;void 0!==c&&(n=o._showUnMask(l,n,c)),n=null===(n=void 0===n?"":n)?"":n,null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?n+="%":r._.isFunction(this.attr("convert").afterCallback)&&(n=this.attr("convert").afterCallback.call(this,s,l,n)));var _=i.parentElement;setTimeout((function(){try{var t=0;if(void 0===_)return;if(null===_.childNodes)return;for(t=0;t<_.childNodes.length;t++)if(i===_.childNodes[t]){if(_.removeChild(i),null===_.childNodes)return;break}}catch(t){return}}),0),void 0!==this.attr("exclude")&&r._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{r._.isString(t)&&(n=n.split(t).join(""))}catch(t){r.QCELL.log("err","QCELL.Input.prototype._hide",t.message)}}));var u=!0;d&&(u=d(s,l,n));var p=n,C=h;if(r._.isObject(c)&&"number"===c.type&&""!==h&&void 0!==h&&("string"==typeof h&&(h=r.util.replaceAll(h,",",""),n=r.util.replaceAll(n,",","")),void 0===c.invalidchar||!isNaN(Number(n))&&""!==n?(h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)):n=h=c.invalidchar),!0===u?n!==h?""===n&&void 0===h?(r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a)):r.util.textContent(t,n),o._treeRefresh(s,l)):r._.isObject(c)&&"number"===c.type&&isNaN(Number(p))?(r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===C?"":C+""),r.util.textContent(t,a)):r.util.textContent(t,C),o._treeRefresh(s,l)):("none"===o.attr("merge").data||r._.isUndefined(o.attr("merge").data)||!1===o._getColDataMergeCol(l)?(o._cellValue(s,l,n),r._.isObject(c)&&(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a))):(this._changeMergeCellValue(s,l,n,c),o._cellValue(s,l,n)),o._processValueChanged(s,l)):(!r._.isObject(c)||"number"!==c.type||""!==p||""!==C&&void 0!==C?r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a)):r.util.textContent(t,n):r.util.textContent(t,p),o._treeRefresh(s,l)):(n=o._cellValue(s,l),r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a)):r.util.textContent(t,n),o._treeRefresh(s,l)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&o.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(o._getCellDOM(o._idx("row","focus","current"),o._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),o._removeEditColId(this.attr("colid")),o.attr("useall")||o.attr("usetreeall")){var g=!0!==o.attr("hideedit");o._setAriaLabelEx(t,s,l,g)}return u}catch(t){return r.QCELL.log("err","QCELL.Input.prototype._hide",t.message),!1}},r.QCELL.Input.prototype.onKeyDown=function(t){var e,a,o=this.attr("element"),i=this.attr("parent"),s=i._getCellDOM(this.attr("row"),this.attr("col")),l=i._getColElement(this.attr("col")).attr("mask"),n=t.keyCode,c=this.attr("row"),d=this.attr("col"),h=o.value,_=this;if(!(n!==r.def.key.UP&&n!==r.def.key.DOWN||!0!==_.attr("useenterkeytonext")||n!==r.def.key.UP&&n!==r.def.key.DOWN))return r._.isObject(l)&&(null!==(h=window.Inputmask.unmask(h,{alias:l.alias}))&&"null"!==h||(h="")),a=(e=0!==_.attr("delaytime")&&null!==_.attr("delaytime")?_.attr("delaytime"):200)>=200?100:0,e=200,setTimeout((function(){_.attr("insertdata",[h],"array"),_._hide(s,t.type)}),a),setTimeout((function(){var t=void 0===i._getCellDOM(c+1,d)||null===i._getCellDOM(c+1,d);!0===_.attr("movescroll")&&(t=!0);var e=c+1;n===r.def.key.UP&&(e=c-1),i.editCell(e,d,t)}),e),t.preventDefault(),void t.stopPropagation();this.attr("bkeycode",n,"number"),n===r.def.key.ENTER||n===r.def.key.TAB?(r._.isObject(l)&&(null!==(h=window.Inputmask.unmask(h,{alias:l.alias}))&&"null"!==h||(h="")),a=(e=0!==_.attr("delaytime")&&null!==_.attr("delaytime")?_.attr("delaytime"):200)>=200?100:0,setTimeout((function(){_.attr("insertdata",[h],"array"),_._hide(s,t.type)}),a),!0===i.attr("useenterkeytonextcol")&&n===r.def.key.ENTER?i._moveNextCell(c,d,e):!0===_.attr("useenterkeytonext")&&n===r.def.key.ENTER&&setTimeout((function(){var t=void 0===i._getCellDOM(c+1,d)||null===i._getCellDOM(c+1,d);!0===_.attr("movescroll")&&(t=!0),i.editCell(c+1,d,t)}),e),t.stopPropagation(),t.preventDefault()):n===r.def.key.ESC?this._hide(s,t.type):(n>=48&&n<=90||n>=96&&n<=111||229===n)&&(!r._.isNull(this.attr("maxbyte"))&&!r._.isUndefined(this.attr("maxbyte"))&&r.util.strbyte.getByteLength(h)>this.attr("maxbyte")?o.value=h.slice(0,-1):!r._.isNull(this.attr("maxlength"))&&!r._.isUndefined(this.attr("maxlength"))&&h.length>this.attr("maxlength")&&(o.value=h.slice(0,this.attr("maxlength"))))},r.QCELL.Input.prototype.onKeyPress=function(t){var e=this.attr("element"),a=this.attr("parent")._getColElement(this.attr("col")).attr("limit");if(!1===r._.isUndefined(a)&&r._.isObject(a)&&"other"===a.type){var o="",i=0;if(void 0!==a.exclude){var s=a.exclude;for(o=e.value,i=0;i<o.length;i++)if(-1!==s.indexOf(o.charAt(i))){e.value=o.substring(0,i)+o.substring(i+1,o.length);break}}}},r.QCELL.Input.prototype.onKeyUp=function(t){if(-1!==this.attr("col")){var e=this.attr("element"),a=this.attr("parent"),o=a._getCellDOM(this.attr("row"),this.attr("col")),i=a._getColElement(this.attr("col")).attr("limit"),s=a._getColElement(this.attr("col")).attr("numrange"),l=t.keyCode;if(!1===r._.isUndefined(i)&&r._.isObject(i)){var n=e.value;if("string"===i.type)e.value=n.replace(/[0-9]/gi,"");else if("number"===i.type)e.value=n.replace(/[^0-9\.\,\-]/gi,"");else if("other"===i.type){var c="",d=0;if(void 0!==i.exclude){var h=i.exclude;for(c=e.value,d=0;d<c.length;d++)if(-1!==h.indexOf(c.charAt(d))){e.value=c.substring(0,d)+c.substring(d+1,c.length);break}}else if(void 0!==i.expreg){var _=i.expreg;for(c=e.value,d=0;d<c.length;d++)if(-1===_.indexOf(c.charAt(d))){e.value=c.substring(0,d)+c.substring(d+1,c.length);break}}}}if(l>=48&&l<=90||l>=96&&l<=111||229===l)if(!r._.isNull(this.attr("maxbyte"))&&!r._.isUndefined(this.attr("maxbyte"))&&r.util.strbyte.getByteLength(e.value)>this.attr("maxbyte"))e.value=e.value.slice(0,-1);else if(!r._.isNull(this.attr("maxlength"))&&!r._.isUndefined(this.attr("maxlength"))&&e.value.length>this.attr("maxlength")){e.value=e.value.slice(0,this.attr("maxlength"));var u=this;setTimeout((function(){u.attr("ismp",!0,"boolean"),u.attr("insertdata",[n],"array"),u._hide(o,t.type),u.attr("ismp",!1,"boolean")}),0),t.stopPropagation(),t.preventDefault()}if(!1===r._.isUndefined(s)&&r._.isString(s)){var p=Number(s.split(":")[0]),C=Number(s.split(":")[1]);!1===/^[+-]?\d*(\.?\d*)$/.test(e.value)?e.value="":e.value<p?e.value=p:e.value>C&&(e.value=C)}}},r.QCELL.Input.prototype.onBlur=function(t){!0!==this.attr("ismp")&&this.attr("parent")._onScrollHideEditCellsDOM()},r.QCELL.Input.prototype.onPaste=function(t){var e=this.attr("element"),a=this.attr("parent"),o=this,i=t.originalEvent,s="";i.clipboardData&&i.clipboardData.getData?s=i.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData?s=t.clipboardData.getData("text/plain"):window.clipboardData&&window.clipboardData.getData&&(s=window.clipboardData.getData("Text"));var l=void 0===e.value||null===e.value?"":e.value;if(l+=s,!r._.isNull(this.attr("maxbyte"))&&!r._.isUndefined(this.attr("maxbyte"))&&r.util.strbyte.getByteLength(l)>this.attr("maxbyte")?setTimeout((function(){e.value=r.util.strbyte.cutByteLength(l,o.attr("maxbyte"))})):!r._.isNull(this.attr("maxlength"))&&!r._.isUndefined(this.attr("maxlength"))&&l.length>this.attr("maxlength")&&setTimeout((function(){e.value=l.slice(0,o.attr("maxlength"))})),"number"===a._getColDataType(this.attr("col"))){var n=l;n=n.replaceAll(",",""),isNaN(Number(n))&&(e.value=0,t.stopPropagation(),t.preventDefault())}},r.QCELL.Selectmenu=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Selectmenu,r.QCELL.ColElement),r.QCELL.Selectmenu.prototype._initTag=function(){this.tag("QBOX.QCELL.Selectmenu")},r.QCELL.Selectmenu.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("input",t.options.input,"array"),this.attr("position",{},"object"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("itemheight",-1,"number"),this.attr("itemcount",t.options.itemcount,"number"),this.attr("selectedEnd",t.options.selectedEnd,"boolean"),this.attr("selectclickopen",t.options.selectclickopen,"boolean"),this.attr("inputCallback",t.options.inputCallback,"function"),this.attr("direction",t.options.direction,"string")},r.QCELL.Selectmenu.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")+"_wrap"),t.className+=r.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE,this._setElement(t),this._calculateItemHeight(),!0}catch(t){return r.QCELL.log("err","QCELL.Selectmenu.prototype._createElement",t.message),!1}},r.QCELL.Selectmenu.prototype._initEvent=function(){var t=this;r.$(this.attr("element")).on("keydown keyup",{target:this},(function(e){switch(e.keyCode){case r.def.key.ESC:t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault();break;case r.def.key.LEFT:case r.def.key.RIGHT:case r.def.key.TAB:t._defaultSelect(),t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault();break;case r.def.key.ENTER:if(!0===t.attr("showkey"))return void t.attr("showkey",!1,"boolean");!0===t.attr("isopen")?r.$(t.attr("element")).selectmenu("open"):(t._defaultSelect(),t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault());break;default:return!0}}))},r.QCELL.Selectmenu.prototype._getDataArray=function(){var t;if(r._.isFunction(this.attr("inputCallback"))){var e=this.attr("row"),a=this.attr("col");return-1===e||-1===a||void 0===(t=this.attr("inputCallback")(e,a,this.attr("parent")))?[]:t}return this.attr("input")},r.QCELL.Selectmenu.prototype._defaultSelect=function(t){var e=this._getDataArray();if(void 0!==e.length&&e.length&&void 0===this.attr("insertdata")[0]){var r=e[0].value;this.attr("insertdata",[r],"array")}},r.QCELL.Selectmenu.prototype._defaultAction=function(t){},r.QCELL.Selectmenu.prototype._show=function(t,e){try{var a,o=this.attr("parent"),i=parseInt(t.getAttribute("data-row")),s=parseInt(t.getAttribute("data-col")),l=o._cellValue(i,s),n=r.$(t).empty(),c=o._getQCellCol(s).attr("cellinvisible")[i],d=this;if(this.attr("insertdata",[l],"array"),this.attr("row",i,"number"),this.attr("col",s,"number"),this._calculateItemHeight(),this._initSelect(),a=this.attr("element"),n.append(a),a.focus(),this.attr("isopen",!1,"boolean"),r.QCELL.config.htmlselectmenu)a.getElementsByTagName("select")[0].value=this.attr("parent")._cellValue(i,s),r.$(a.getElementsByTagName("select")).css("width",parseInt(n.css("width"))-4),r.$(a.getElementsByTagName("select")).css("height",parseInt(n.css("height"))-4),r.$(a.getElementsByTagName("select")).bind("change",(function(t){l=t.target.value;for(var e=d._getDataArray(),i=0;i<e.length&&e[i].value!==l;i++)if(e[i].value+""===l){l=Number(l);break}d.attr("insertdata",[l],"array"),r.$(a).trigger("selected",[d.attr("row"),d.attr("col"),l]),d.attr("selectedEnd")&&d._hide(o._getCellDOM(d.attr("row"),d.attr("col")),"selected")}));else{r.$(a.getElementsByTagName("select")).selectmenu({width:parseInt(n.css("width"))-4,position:this._calculatePosition(t),close:function(t,e){d.attr("isopen",!1,"boolean")},open:function(t,e){d.attr("isopen",!0,"boolean")},select:function(t,e){if(t.keyCode!==r.def.key.LEFT&&t.keyCode!==r.def.key.RIGHT){l=e.item.value;for(var i=d._getDataArray(),s=0;s<i.length&&i[s].value!==l;s++)if(i[s].value+""===l){l=Number(l);break}d.attr("insertdata",[l],"array"),r.$(a).trigger("selected",[d.attr("row"),d.attr("col"),e]),d.attr("selectedEnd")&&d._hide(o._getCellDOM(d.attr("row"),d.attr("col")),"selected")}}}),d.attr("selectclickopen")&&setTimeout((function(){r.$(a.getElementsByTagName("select")).selectmenu("open")}));var h="#"+this.attr("id")+"-button";r.$(h).focus(),r.$(h).css("margin-bottom","3px"),r._.isUndefined(this.attr("itemcount"))||r.$(a.getElementsByTagName("select")).selectmenu("menuWidget").css("height",this.attr("itemheight"))}var _=t.getElementsByClassName("rt-qc-ui-selectmenu-text");if(_.length>0){var u=_[0],p=o._cellValue(o.getRows("header")-1,s),C=this._getDataLabel(i,s);u.setAttribute("aria-label",i+"행 "+p+"열 "+C)}return this.attr("visible",!0,"boolean"),o._addEditColId(this.attr("colid")),c&&o._setInitCellInvisible(i,s),!0}catch(t){return r.QCELL.log("err","QCELL.Selectmenu.prototype._show",t.message),!1}},r.QCELL.Selectmenu.prototype._hide=function(t,e){try{if(null===t)return;var a=this.attr("parent"),o=this.attr("element"),i=this.attr("row"),s=this.attr("col"),l=this.attr("insertdata")[0];if(r.QCELL.config.htmlselectmenu||r.$(o.getElementsByTagName("select")).selectmenu("destroy"),r.$(o).remove().html(""),t.hasChildNodes())for(var n=0;n<t.childNodes.length;n++){var c=t.childNodes[n];r.$(c).hasClass(r.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE)&&t.removeChild(c)}if(l!==a._cellValue(i,s)?("none"===a.attr("merge").data||r._.isUndefined(a.attr("merge").data)||!1===a._getColDataMergeCol(s)?(a._cellValue(i,s,l),this._showDataLabel(t,i,s,l)):this._changeMergeCellValue(i,s,l,void 0),a._processValueChanged(i,s)):(r.util.textContent(t,l),this._showDataLabel(t,i,s,l)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&a.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),a._removeEditColId(this.attr("colid")),a.attr("useall")||a.attr("usetreeall")){var d=!0!==a.attr("hideedit");a._setAriaLabelEx(t,i,s,d),r.util.textContent(t,l),this._showDataLabel(t,i,s,l)}var h=t.textContent,_=this;return setTimeout((function(){var e=a._getCellDOM(i,s);null!=e&&e.textContent!==h&&_._showDataLabel(t,i,s,void 0===l?"":l)}),100),!0}catch(t){return r.QCELL.log("err","QCELL.Selectmenu.prototype._hide",t.message),!1}},r.QCELL.Selectmenu.prototype._initSelect=function(){try{var t,e,a=r.$(this.attr("element")).empty(),o=document.createElement("select"),i=null;o.setAttribute("id",this.attr("id")),o.className=r.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE;for(var s=this._getDataArray(),l=0;l<s.length;l++)i=document.createElement("option"),t=s[l].label,e=s[l].value,i.setAttribute("value",e),e===this.attr("insertdata")[0]&&i.setAttribute("selected","selected"),i.innerHTML=t,r.$(o).append(i),i=null;return a.append(o),this._setElement(a[0]),!0}catch(t){return r.QCELL.log("err","QCELL.Selectmenu.prototype._initSelect",t.message),!1}},r.QCELL.Selectmenu.prototype._calculateItemHeight=function(){var t=0,e=0,a=this._getDataArray();if(void 0!==a){if(!r._.isUndefined(this.attr("itemcount"))&&this.attr("itemcount")<a.length)for(e=0;e<this.attr("itemcount");e++)"mozilla"===r.$.browser.name||"msie"===r.$.browser.name&&8===r.$.browser.versionNumber?t+=21:"msie"===r.$.browser.name&&8!==r.$.browser.versionNumber?t+=20:t+=22;else for(e=0;e<a.length;e++)"mozilla"===r.$.browser.name||"msie"===r.$.browser.name&&8===r.$.browser.versionNumber?t+=21:"msie"===r.$.browser.name&&8!==r.$.browser.versionNumber?t+=20:t+=22;this.attr("itemheight",t,"number")}else this.attr("itemheight",t,"number")},r.QCELL.Selectmenu.prototype._calculatePosition=function(t){var e=this.attr("parent"),a=parseInt(r.$(t).css("height")),o=parseInt(r.$(t).css("top"))+e.attr("layoutsize").colheader.offsetHeight;return"down"===this.attr("direction")?{my:"left top",at:"left bottom"}:"up"===this.attr("direction")||e.attr("layoutsize").root.offsetHeight<o+a+this.attr("itemheight")?{my:"left bottom",at:"left top"}:{my:"left top",at:"left bottom"}},r.QCELL.Selectmenu.prototype._showDataLabel=function(t,e,a,o){try{this.attr("row",e,"number"),this.attr("col",a,"number");var i=this.attr("parent"),s=this._getDataArray(),l=i.getRowData(e);if(!0===l.rt_qc_footer||!0===l.rt_qc_header)return r.util.textContent(t,o),void i._setAriaLabel(t,e,a,o);if(i._isBottomPanel(t))return void(void 0===o?r.util.textContent(t,""):r.util.textContent(t,o));if(i._showDisableText(t,e,a))return;void 0===o&&(o="");var n="";if(!r._.isUndefined(s)&&!r._.isNull(s))for(var c=0;c<s.length;c++){if(o===s[c].value){r.util.textContent(t,s[c].label),n=s[c].label;break}c===s.length-1&&r.util.textContent(t,"")}return i._setAriaLabel(t,e,a,n),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL.Selectmenu._showDataLabel",t.message),!1}},r.QCELL.Selectmenu.prototype._getDataLabel=function(t,e){try{this.attr("row",t,"number"),this.attr("col",e,"number");var a=this.attr("parent").getCellData(t,e),o=this._getDataArray();if(!r._.isUndefined(o)&&!r._.isNull(o))for(var i=0;i<o.length;i++){if(a===o[i].value)return o[i].label;if(i===o.length-1)return""}return""}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL.Selectmenu._getDataLabel",t.message),""}},r.QCELL.Textarea=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Textarea,r.QCELL.ColElement),r.QCELL.Textarea.prototype._initTag=function(){this.tag("QBOX.QCELL.Textarea")},r.QCELL.Textarea.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata","","string"),this.attr("width",t.options.textareawidth,"string"),this.attr("height","150px","string"),this.attr("maxlength",t.options.maxlength,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("limit",t.options.limit,"object"),this.attr("exclude",t.options.exclude,"array"),this.attr("validator",t.options.validator,"function"),this.attr("bkeycode",void 0,"number"),t.options.inputclass=void 0===t.options.inputclass?"":t.options.inputclass,r._.isString(t.options.inputclass)||(t.options.inputclass=""),this.attr("inputclass",t.options.inputclass,"string"),this.attr("placeholder",t.options.placeholder,"string")},r.QCELL.Textarea.prototype._createElement=function(){try{var t=document.createElement("textarea");return t.setAttribute("id",this.attr("id")),r.$(t).attr("autocomplete","off"),t.className+=r.QCELL.def.css.TYPE_TEXTAREA_TEXT_STYLE+" "+this.attr("inputclass"),r.$(t).css({width:this.attr("width"),height:this.attr("height")}),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Textarea.prototype._createElement",t.message),!1}},r.QCELL.Textarea.prototype._initEvent=function(){r.$(this.attr("element")).on("keydown keyup keypress blur",{target:this},r.st.eventProcess)},r.QCELL.Textarea.prototype._defaultAction=function(t){var e=t.keyCode,a=this.attr("bkeycode");switch(t.type){case"keydown":this.onKeyDown(t);break;case"keyup":this.onKeyUp(t);break;case"blur":if(void 0===e&&void 0===a)break;if(a===r.def.key.ENTER||a===r.def.key.TAB||a===r.def.key.ESC)break;this.onBlur(t);break;case"keypress":this.onKeyPress(t)}},r.QCELL.Textarea.prototype._show=function(t,e){try{var a,o,i=this.attr("parent"),s=this.attr("element"),l=parseInt(t.getAttribute("data-row")),n=parseInt(t.getAttribute("data-col")),c=void 0===i._cellValue(l,n)?"":i._cellValue(l,n),d=r.$(t).empty(),h=i.attr("elementpool").get("$container"),_=i._getQCellCol(n).attr("cellinvisible")[l];if(i._isValidEditColId(this.attr("colid")))return;return s.value=c,void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(s.placeholder=this.attr("placeholder")),r._.isUndefined(this.attr("width"))&&(r.$(s).css("width",d.css("width")),this.attr("width",r.$(s).css("width"),"string")),h.append(s),s.focus(),s.select(),a=this._calculateTop(s,t),o=this._calculateLeft(s,t),r.$(s).css({left:o,top:a}),this.attr("row",l,"number"),this.attr("col",n,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",c,"string"),i._addEditColId(this.attr("colid")),_&&i._setInitCellInvisible(l,n),!0}catch(t){return r.QCELL.log("err","QCELL.Textarea.prototype._show",t.message),!1}},r.QCELL.Textarea.prototype._hide=function(t,e){try{if(null===t)return;var a=this.attr("parent"),o=this.attr("element"),i=this.attr("row"),s=this.attr("col"),l=o.value,n=this.attr("validator");"keydown"===e&&(l=this.attr("insertdata")),!r._.isNull(this.attr("maxbyte"))&&!r._.isUndefined(this.attr("maxbyte"))&&r.util.strbyte.getByteLength(l)>this.attr("maxbyte")?l=r.util.strbyte.cutByteLength(l,this.attr("maxbyte")):!r._.isNull(this.attr("maxlength"))&&!r._.isUndefined(this.attr("maxlength"))&&l.length>this.attr("maxlength")&&(l=l.slice(0,this.attr("maxlength"))),void 0!==this.attr("exclude")&&r._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{r._.isString(t)&&(l=l.split(t).join(""))}catch(t){r.QCELL.log("err","QCELL.Textarea.prototype._hide",t.message)}}));var c=o.parentElement;setTimeout((function(){try{var t=0;if(void 0===c)return;if(null===c.childNodes)return;for(t=0;t<c.childNodes.length;t++)if(o===c.childNodes[t]){if(c.removeChild(o),null===c.childNodes)return;break}}catch(t){return}}),0);var d=!0;if(n&&(d=n(i,s,l)),!0===d?l!==a._cellValue(i,s)?("none"===a.attr("merge").data||r._.isUndefined(a.attr("merge").data)||!1===a._getColDataMergeCol(s)?a._cellValue(i,s,l):this._changeMergeCellValue(i,s,l,void 0),a._processValueChanged(i,s)):!1===r._.isNull(t)&&r.util.textContent(t,l):(l=a._cellValue(i,s),!1===r._.isNull(t)&&r.util.textContent(t,l)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber){var h=a.attr("elementpool");h.get("$container").focus(),h=null}if("msie"!==r.$.browser.name?r.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata","","string"),this.attr("showkey",!1,"boolean"),a._removeEditColId(this.attr("colid")),a.attr("useall")||a.attr("usetreeall")){var _=!0!==a.attr("hideedit");a._setAriaLabelEx(t,i,s,_)}return!0}catch(t){return r.QCELL.log("err","QCELL.Textarea.prototype._hide",t.message),!1}},r.QCELL.Textarea.prototype._calculateTop=function(t,e){var a=this.attr("parent"),o=parseInt(r.$(e).css("height")),i=parseFloat(r.$(t).css("height")),s=parseInt(r.$(e).css("top"))+a.attr("layoutsize").colheader.offsetHeight;return a.attr("layoutsize").root.offsetHeight<s+i&&(s-=i-o),s},r.QCELL.Textarea.prototype._calculateLeft=function(t,e){var a=this.attr("parent"),o=parseInt(r.$(e).css("width")),i=parseFloat(r.$(t).css("width")),s=parseInt(r.$(e).css("left"))+a.attr("layoutsize").rowheader.offsetWidth;return a.attr("layoutsize").root.offsetWidth<s+i&&(s-=i-o),s},r.QCELL.Textarea.prototype.onKeyDown=function(t){var e=this.attr("element"),a=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),o=t.keyCode,i=e.value;if(this.attr("bkeycode",o,"number"),!1===t.altKey)if(o===r.def.key.ENTER||o===r.def.key.TAB){var s=this;setTimeout((function(){s.attr("insertdata",i,"string"),s._hide(a,t.type)}),100),t.stopPropagation(),t.preventDefault()}else o===r.def.key.ESC?this._hide(a,t.type):(o>=48&&o<=90||o>=96&&o<=111||229===o)&&!r._.isNull(this.attr("maxlength"))&&!r._.isUndefined(this.attr("maxlength"))&&i.length>this.attr("maxlength")&&(e.value=i.slice(0,-1));else o===r.def.key.ENTER&&(e.value+="\r")},r.QCELL.Textarea.prototype.onKeyPress=function(t){var e=this.attr("element"),a=this.attr("parent")._getColElement(this.attr("col")).attr("limit");if(!1===r._.isUndefined(a)&&r._.isObject(a)&&"other"===a.type){var o="",i=0;if(void 0!==a.exclude){var s=a.exclude;for(o=e.value,i=0;i<o.length;i++)if(-1!==s.indexOf(o.charAt(i))){e.value=o.substring(0,i)+o.substring(i+1,o.length);break}}}},r.QCELL.Textarea.prototype.onKeyUp=function(t){var e=this.attr("element"),a=this.attr("parent"),o=a._getCellDOM(this.attr("row"),this.attr("col")),i=a._getColElement(this.attr("col")).attr("limit"),s=t.keyCode;if(!1===r._.isUndefined(i)&&r._.isObject(i))if("string"===i.type)e.value=e.value.replace(/[0-9]/gi,"");else if("number"===i.type)e.value=e.value.replace(/[^0-9\.\,\-]/gi,"");else if("other"===i.type){var l="",n=0;if(void 0!==i.exclude){var c=i.exclude;for(l=e.value,n=0;n<l.length;n++)if(-1!==c.indexOf(l.charAt(n))){e.value=l.substring(0,n)+l.substring(n+1,l.length);break}}else if(void 0!==i.expreg){var d=i.expreg;for(l=e.value,n=0;n<l.length;n++)if(-1===d.indexOf(l.charAt(n))){e.value=l.substring(0,n)+l.substring(n+1,l.length);break}}}if((s>=48&&s<=90||s>=96&&s<=111||229===s)&&!r._.isNull(this.attr("maxlength"))&&!r._.isUndefined(this.attr("maxlength"))&&e.value.length>this.attr("maxlength")){e.value=e.value.slice(0,this.attr("maxlength"));var h=this;setTimeout((function(){h._hide(o,t.type)}),0)}},r.QCELL.Textarea.prototype.onBlur=function(t){this.attr("parent")._onScrollHideEditCellsDOM()},r.QCELL.Chart=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Chart,r.QCELL.ColElement),r.QCELL.Chart.prototype._initTag=function(){this.tag("QBOX.QCELL.Chart")},r.QCELL.Chart.prototype._initAttrs=function(t){if(r.QCELL.ColElement.prototype._initAttrs.call(this,t),void 0!==t.options.chart){var e=void 0===t.options.chart.datatype?"data":t.options.chart.datatype;e="data"===e?"data":"key"===e?"key":"data";var a=void 0===t.options.chart.type?"line":t.options.chart.type;switch(a){case"line":case"bar":case"tristate":case"discrete":case"bullet":case"pie":case"box":break;default:a="line"}var o=void 0===t.options.chart.keys?[]:t.options.chart.keys;this.attr("dataType",e,"string"),this.attr("chartType",a,"string"),this.attr("keys",o,"array"),this.attr("customoption",t.options.chart.customoption,"function"),this.attr("chartClicked",t.options.chart.chartClicked,"function"),this.attr("option",t.options.chart.option,"object")}},r.QCELL.Chart.prototype._show=function(t,e,a){try{var o,i=this.attr("parent"),s=i._cellValue(e,a),l=i.attr("currentdata"),n=this,c=i._getColChart(a),d=this.attr("option"),h=this.attr("keys"),_=i._getQCellCol(a).attr("cellinvisible")[e],u=i.attr("headerrows");if(i._isBottomPanel(t))return void(void 0===s?r.util.textContent(t,""):r.util.textContent(t,s));if("data"===this.attr("dataType"))o=s;else{o=[];for(var p=0;p<h.length;p++)o.push(l[e-u][h[p]])}if(void 0===o||0===o.length)return;null!==t.firstChild&&t.removeChild(t.firstChild);var C=document.createElement("span");C.style.textAlign="center",t.appendChild(C);var g={height:(i._getRowHeight(e)-10).toString(),width:(i._getColWidth(a)-10).toString(),type:this.attr("chartType")};if("bar"===this.attr("chartType")||"tristate"===this.attr("chartType")?g.barWidth=i._getColWidth(a)/(o.length+1):"pie"===this.attr("chartType")?g.height=i._getRowHeight(e).toString():"discrete"===this.attr("chartType")&&(g.width=i._getColWidth(a).toString()),null!==d)for(var f in d)g[f]=d[f];return r._.isFunction(this.attr("customoption"))&&(g=c.customoption(i,e,a,o,g)),"bar"!==g.type&&"tristate"!==g.type||void 0!==g.barWidth||(g.barWidth=i._getColWidth(a)/(o.length+1)),"pie"===g.type&&delete g.width,setTimeout((function(){r.$(C).sparkline(o,g),r.$(C).bind("sparklineClick",(function(t){i._clickCell(e,a),r._.isFunction(n.attr("customoption"))&&c.chartClicked(i,e,a,o,g)})),null!==C.firstChild&&(C.firstChild.style.verticalAlign="middle","pie"===g.type&&(C.firstChild.style.display="block",C.firstChild.style.margin="auto"))}),0),_&&i._setInitCellInvisible(e,a),!0}catch(t){return r.QCELL.log("err","QCELL.Chart._show",t.message),!1}},r.QCELL.Multicheckbox=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Multicheckbox,r.QCELL.ColElement),r.QCELL.Multicheckbox.prototype._initTag=function(){this.tag("QBOX.QCELL.Multicheckbox")},r.QCELL.Multicheckbox.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("input",t.options.input,"array"),this.attr("position",{},"object"),this.attr("width",-1,"number"),this.attr("tabindex",-1,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("likeradio",void 0!==t.options.likeradio&&t.options.likeradio,"boolean")},r.QCELL.Multicheckbox.prototype._getDataArray=function(){return this.attr("input")},r.QCELL.Multicheckbox.prototype._defaultSelect=function(t){var e=this._getDataArray();if(void 0!==e.length&&e.length&&void 0===this.attr("insertdata")[0]){var r=e[0].value;this.attr("insertdata",[r],"array")}},r.QCELL.Multicheckbox.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")+"_wrap"),t.setAttribute("data-row",this.attr("row")),t.setAttribute("data-col",this.attr("col")),t.className+=r.QCELL.def.css.TYPE_MULTICHECKBOX_WRAP_STYLE,this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Multicheckbox.prototype._createElement",t.message),!1}},r.QCELL.Multicheckbox.prototype._initEvent=function(){r.$(this.attr("element")).on("click keyup focusout",{target:this},r.st.eventProcess)},r.QCELL.Multicheckbox.prototype._defaultAction=function(t){switch(t.type){case"click":this.onClick(t);break;case"keyup":this.onKeyUp(t);break;case"focusout":this.onFocusOut(t)}},r.QCELL.Multicheckbox.prototype._initMulticheckbox=function(t,e,a,o){try{var i=r.$(this.attr("element")).empty(),s=document.createElement("span"),l=this.attr("input"),n=r.$(t).empty(),c=0;this.attr("insertdata",o,"array"),i.addClass(r.QCELL.def.css.CELL),i.addClass(r.QCELL.def.css.CELL_VIEWPORT),i.addClass(r.QCELL.def.css.CELL_FOCUS),i.addClass(r.QCELL.def.css.CELL_SELECT);for(var d=0;d<l.length;d++){var h=document.createElement("input"),_=document.createElement("label"),u=!1;if(h.setAttribute("type","checkbox"),h.setAttribute("name",this.attr("id")),h.setAttribute("id",this.attr("id")+"-"+d),h.setAttribute("data-row",e),h.setAttribute("data-col",a),h.className+=r.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE,this.attr("likeradio")&&(h.className+=" "+r.QCELL.def.css.TYPE_RADIO_STYLE),_.setAttribute("for",this.attr("id")+"-"+d),_.innerText=l[d].label,c+=l[d].label.length,!r._.isUndefined(o))for(var p=0;p<o.length;p++)if(l[d].value===o[p]){r.$(h).prop("checked",!0),this.attr("likeradio")&&u&&r.$(h).prop("checked",!1),u=!0;break}r.$(s).append(h),r.$(s).append(_)}s.style.height=n.css("height"),s.style.lineHeight=n.css("height"),i[0].setAttribute("data-row",e),i[0].setAttribute("data-col",a),i.append(s),this.attr("width",25*c<100?100:25*c,"number")}catch(t){return r.QCELL.log("err","QCELL.Multicheckbox.prototype._initMulticheckbox",t.message),!1}},r.QCELL.Multicheckbox.prototype._show=function(t,e,a){try{var o=this.attr("parent"),i=this.attr("element"),s=o._cellValue(e,a),l=r.$(t).empty(),n=o.attr("elementpool").get("$viewportinner"),c=o._getQCellCol(a).attr("cellinvisible")[e];return this._initMulticheckbox(t,e,a,s),r.$(i).css({width:this.attr("width"),height:l.css("height")}),this._adjustPosition(i,l),n.append(i),r.$(i).find("."+r.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE)[0].focus(),this.attr("row",e,"number"),this.attr("col",a,"number"),this.attr("insertdata",s,"array"),this.attr("visible",!0,"boolean"),o._addEditColId(this.attr("colid")),c&&o._setInitCellInvisible(e,a),!0}catch(t){return r.QCELL.log("err","QCELL.Multicheckbox._show",t.message),!1}},r.QCELL.Multicheckbox.prototype._hide=function(t,e){try{var a=this.attr("parent"),o=this.attr("element"),i=this.attr("row"),s=this.attr("col"),l=this.attr("insertdata");"esc"===e&&(l=this.attr("insertdata")),r.$(o).detach(),l!==a._cellValue(i,s)?("none"===a.attr("merge").data||r._.isUndefined(a.attr("merge").data)||!1===a._getColDataMergeCol(s)?(a._cellValue(i,s,l),this._showDataLabel(t,i,s,l)):this._changeMergeCellValue(i,s,l,void 0),a._updateIdx("valuechanged",i,s),a._trigger("valuechanged")):(r.util.textContent(t,l),this._showDataLabel(t,i,s,l)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&a.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),a._removeEditColId(this.attr("colid"))}catch(t){return r.QCELL.log("err","QCELL.Multicheckbox.prototype._hide",t.message),!1}},r.QCELL.Multicheckbox.prototype._adjustPosition=function(t,e){var a=this.attr("parent"),o=parseInt(r.$(t).css("width")),i=parseInt(r.$(t).css("height")),s=parseInt(e.css("left")),l=parseInt(e.css("top")),n=a.attr("layoutsize").root.offsetHeight;s+o>a.attr("layoutsize").root.offsetWidth?r.$(t).css("right",0):r.$(t).css("left",s),l+i>n?r.$(t).css("bottom",0):r.$(t).css("top",l)},r.QCELL.Multicheckbox.prototype._showDataLabel=function(t,e,a,o){try{this.attr("row",e,"number"),this.attr("col",a,"number");var i=this.attr("parent"),s=i.getRowData(e);if(!0===s.rt_qc_footer||!0===s.rt_qc_header)return r.util.textContent(t,o),void i._setAriaLabel(t,e,a,o);if(i._isBottomPanel(t))return void(void 0===o?r.util.textContent(t,""):r.util.textContent(t,o));if(i._showDisableText(t,e,a))return;var l=this._getDataArray(),n=[],c="";if(!r._.isUndefined(l)&&!r._.isNull(l)){if(!r._.isUndefined(o)){for(var d=0;d<o.length;d++)for(var h=0;h<l.length;h++){if(o[d]===l[h].value){n[d]=l[h].label;break}h===l.length-1&&(n[d]="")}for(var _=0;_<n.length;_++)0===_?c+=n[_]:""!==n[_-1]&&(c+=", "+n[_])}r.util.textContent(t,c)}return!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL.Multicheckbox._showDataLabel",t.message),!1}},r.QCELL.Multicheckbox.prototype._setMultiCheckboxCellData=function(t){var e,a=this.attr("parent"),o=Number(t.getAttribute("data-col")),i=a._getColElement(o),s=[];null===i&&(o=Number(t.getAttribute("data-col"))),i=a._getColElement(o),e=i.attr("input"),r.$(t).is("span")||r.$(t).is("div")||(t=t.parentNode),r.$(t).find('input[type="checkbox"]').each((function(t){this.checked&&s.push(e[t].value)})),this.attr("insertdata",s,"array")},r.QCELL.Multicheckbox.prototype._setMultiCheckboxClick=function(t,e){var a=this.attr("likeradio"),o=t.name,i=parseInt(t.getAttribute("data-row")),s=parseInt(t.getAttribute("data-col"));this.attr("row",i,"number"),this.attr("col",s,"number"),a&&(r.$('input[type="checkbox"][name="'+o+'"]').prop("checked",!1),r.$(t).prop("checked",!0))},r.QCELL.Multicheckbox.prototype.onFocusOut=function(t){var e=this.attr("element"),a=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),o=t.relatedTarget;if(r._.isElement(o)&&!a.parentNode.isSameNode(o)){var i=Number(o.getAttribute("data-row")),s=Number(o.getAttribute("data-col"));0===i&&0===s&&(this._setMultiCheckboxCellData(e),this._hide(a,t.type),a.focus())}else null===o&&this.attr("isopen")&&(this.attr("isopen",!1,"boolean"),this._hide(a,"esc"))},r.QCELL.Multicheckbox.prototype.onKeyUp=function(t){var e=this.attr("parent"),a=e._getCellDOM(this.attr("row"),this.attr("col")),o=t.keyCode,i=this.attr("isopen");if(null===a){var s=parseInt(t.target.getAttribute("data-row")),l=parseInt(t.target.getAttribute("data-col"));a=e._getCellDOM(s,l),this.attr("row",s,"number"),this.attr("col",l,"number")}switch(o){case r.def.key.ENTER:!1===i?this.attr("isopen",!0,"boolean"):(this.attr("isopen",!1,"boolean"),this._setMultiCheckboxCellData(t.target),this._hide(a,t.type));break;case r.def.key.ESC:this.attr("isopen",!1,"boolean"),this._hide(a,"esc");break;case r.def.key.TAB:!1===i&&this.attr("isopen",!0,"boolean")}},r.QCELL.Multicheckbox.prototype.onClick=function(t){var e=t.target,a=Number(e.parentNode.getAttribute("data-row")),o=Number(e.parentNode.getAttribute("data-col")),i=this.attr("parent"),s=this;if(r.util.hasClass(e,r.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE)||r.$(e).is("label"))this.attr("isopen",!0,"boolean"),this._setMultiCheckboxClick(e,e.checked);else{a=Number(e.getAttribute("data-row")),o=Number(e.getAttribute("data-col"));var l=i._getCellDOM(a,o);r.$(e.parentNode).off("keyup").on("keyup",(function(t){switch(t.keyCode){case r.def.key.ENTER:case r.def.key.ESC:s._hide(l,t.type)}}))}},r.QCELL.Number=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Number,r.QCELL.Input),r.QCELL.Number.prototype._initTag=function(){this.tag("QBOX.QCELL.Number")},r.QCELL.Number.prototype._initAttrs=function(t){r.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("min",t.options.min,"number"),this.attr("max",t.options.max,"number"),this.attr("step",t.options.step,"number")},r.QCELL.Number.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),t.setAttribute("type","number"),t.className+=r.QCELL.def.css.TYPE_NUMBER_TEXT_STYLE,void 0!==this.attr("max")&&null!==this.attr("max")&&t.setAttribute("max",this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&t.setAttribute("min",this.attr("min")),void 0!==this.attr("step")&&null!==this.attr("step")&&t.setAttribute("step",this.attr("step")),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Number.prototype._createElement",t.message),!1}},r.QCELL.Number.prototype._show=function(t,e){try{var a=this.attr("parent"),o=this.attr("element"),i=parseInt(t.getAttribute("data-row")),s=parseInt(t.getAttribute("data-col")),l=void 0===a._cellValue(i,s)?"":a._cellValue(i,s),n=r.$(t).empty(),c=a.attr("elementpool").get("$viewportinner"),d=a._getQCellCol(s).attr("cellinvisible")[i];return isNaN(l)&&(l=0),void 0!==this.attr("max")&&null!==this.attr("max")&&l>this.attr("max")&&(l=this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&l<this.attr("min")&&(l=this.attr("min")),r.$(o).val(l),o.value=l,a._showMask(s,o),r.$(o).css({width:n.css("width"),height:n.css("height"),left:n.css("left"),top:n.css("top")}),c.append(o),o.focus(),o.select(),this.attr("row",i,"number"),this.attr("col",s,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[l],"array"),a._addEditColId(this.attr("colid")),d&&a._setInitCellInvisible(i,s),!0}catch(t){return r.QCELL.log("err","QCELL.Number.prototype._show",t.message),!1}},r.QCELL.Number.prototype._hide=function(t,e){try{if(null===t)return;var a,o=this.attr("parent"),i=this.attr("element"),s=this.attr("row"),l=this.attr("col"),n=i.value,c=this.attr("format"),d=this.attr("validator"),h=o._cellValue(s,l);n=o._showUnMask(l,n,c),void 0!==this.attr("max")&&null!==this.attr("max")&&n>this.attr("max")&&(n=this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&n<this.attr("min")&&(n=this.attr("min")),r.$(i).detach(),void 0!==this.attr("exclude")&&r._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{r._.isString(t)&&(n=n.split(t).join(""))}catch(t){r.QCELL.log("err","QCELL.Number.prototype._hide",t.message)}}));var _=!0;d&&(_=d(s,l,n));var u=n,p=h;return r._.isObject(c)&&"number"===c.type&&("string"==typeof h&&(h=h.replaceAll(",",""),n=n.replaceAll(",","")),h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)),!0===_?n!==Number(o._cellValue(s,l))?""===n&&void 0===o._cellValue(s,l)?r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a)):r.util.textContent(t,n):("none"===o.attr("merge").data||r._.isUndefined(o.attr("merge").data)||!1===o._getColDataMergeCol(l)?(o._cellValue(s,l,n),r._.isObject(c)&&(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a))):this._changeMergeCellValue(s,l,n,c),o._processValueChanged(s,l)):!r._.isObject(c)||"number"!==c.type||""!==u||""!==p&&void 0!==p?r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a)):r.util.textContent(t,n):r.util.textContent(t,u):(n=o._cellValue(s,l),r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),r.util.textContent(t,a)):r.util.textContent(t,n)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&o.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(o._getCellDOM(o._idx("row","focus","current"),o._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),o._removeEditColId(this.attr("colid")),_}catch(t){return r.QCELL.log("err","QCELL.Number.prototype._hide",t.message),!1}},r.QCELL.Slider=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Slider,r.QCELL.ColElement),r.QCELL.Slider.prototype._initTag=function(){this.tag("QBOX.QCELL.Slider")},r.QCELL.Slider.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("min",t.options.min,"number"),this.attr("max",t.options.max,"number"),this.attr("step",t.options.step,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata",[],"array"),this.attr("validator",t.options.validator,"function")},r.QCELL.Slider.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("input"),a=document.createElement("label");return e.setAttribute("id",this.attr("id")),e.setAttribute("type","range"),r.util.addClass(e,r.QCELL.def.css.TYPE_SLIDER_SINGLE_STYLE),void 0!==this.attr("max")&&null!==this.attr("max")&&e.setAttribute("max",this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&e.setAttribute("min",this.attr("min")),void 0!==this.attr("step")&&null!==this.attr("step")&&e.setAttribute("step",this.attr("step")),a.setAttribute("id",this.attr("id")+"-result"),r.util.addClass(a,r.QCELL.def.css.TYPE_SLIDER_RESULT_SINGLE_STYLE),t.appendChild(e),t.appendChild(a),r.util.addClass(t,r.QCELL.def.css.TYPE_SLIDER_WRAP_STYLE),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Slider.prototype._createElement",t.message),!1}},r.QCELL.Slider.prototype._show=function(t,e){try{var a,o,i=this.attr("parent"),s=this.attr("element"),l=parseInt(t.getAttribute("data-row")),n=parseInt(t.getAttribute("data-col")),c=void 0===i._cellValue(l,n)?"":i._cellValue(l,n),d=r.$(t).empty(),h=i.attr("elementpool").get("$viewportinner"),_=s.childNodes[0],u=s.childNodes[1],p=i.attr("currentdata"),C=i.attr("colkeys")[n],g=i._getQCellCol(n).attr("cellinvisible")[l],f=[];return isNaN(c)&&(c=0),f=r._.pluck(p,C),r._.uniq(f),f=f.sort(),void 0!==this.attr("max")&&null!==this.attr("max")?(c>this.attr("max")&&(c=this.attr("max")),a=parseInt(this.attr("max"))):a=f[f.length],void 0!==this.attr("min")&&null!==this.attr("min")?(c<this.attr("min")&&(c=this.attr("min")),o=parseInt(this.attr("min"))):o=f[0],_.setAttribute("max",a),_.setAttribute("min",o),_.value=c,_.setAttribute("data-value",c),u.innerHTML=c,i._showMask(n,s),r.$(s).css({width:d.css("width"),height:d.css("height"),left:d.css("left"),top:d.css("top")}),r.$.browser.msie?_.addEventListener("change",(function(t){r.$(u).empty(),u.innerHTML=this.value})):_.addEventListener("input",(function(t){r.$(u).empty(),u.innerHTML=this.value})),h.append(s),s.focus(),this.attr("row",l,"number"),this.attr("col",n,"number"),this.attr("insertdata",[c],"array"),i._addEditColId(this.attr("colid")),g&&i._setInitCellInvisible(l,n),!0}catch(t){return r.QCELL.log("err","QCELL.Slider.prototype._show",t.message),!1}},r.QCELL.Slider.prototype._hide=function(t,e){try{if(null===t)return;var a=this.attr("parent"),o=this.attr("element"),i=this.attr("row"),s=this.attr("col"),l=o.childNodes[0].value,n=this.attr("validator");l=a._showUnMask(s,l),r.$(o).detach();var c=!0;return n&&(c=n(i,s,l)),!0===c?l!==a._cellValue(i,s)?""===l&&void 0===a._cellValue(i,s)?r.util.textContent(t,l):("none"===a.attr("merge").data||r._.isUndefined(a.attr("merge").data)||!1===a._getColDataMergeCol(s)?(a._cellValue(i,s,l),r.util.textContent(t,l)):this._changeMergeCellValue(i,s,l),a._processValueChanged(i,s)):r.util.textContent(t,l):(l=a._cellValue(i,s),r.util.textContent(t,l)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&a.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata",[],"array"),a._removeEditColId(this.attr("colid")),c}catch(t){return r.QCELL.log("err","QCELL.Slider.prototype._hide",t.message),!1}},r.QCELL.Button=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Button,r.QCELL.ColElement),r.QCELL.Button.prototype._initTag=function(){this.tag("QBOX.QCELL.Button")},r.QCELL.Button.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("input"),a=document.createElement("label");return e.setAttribute("type","button"),e.setAttribute("name",this.attr("id")),r.util.addClass(e,r.QCELL.def.css.TYPE_BUTTON_SINGLE_STYLE),r.util.addClass(e,this.attr("id")+"-style"),r._.isString(this.attr("buttonwidth"))&&(e.style.width=this.attr("buttonwidth").indexOf("%")>-1||this.attr("buttonwidth").indexOf("px")>-1?this.attr("buttonwidth"):this.attr("buttonwidth")+"px"),r._.isString(this.attr("buttonheight"))?e.style.height=this.attr("buttonheight").indexOf("%")>-1||this.attr("buttonheight").indexOf("px")>-1?this.attr("buttonheight"):this.attr("buttonheight")+"px":e.style.height="20px",r._.isString(this.attr("buttonlabel"))&&(e.value=this.attr("buttonlabel")),r._.isString(this.attr("buttonposition"))&&"right"===this.attr("buttonposition")?e.style.float="right":"center"===this.attr("buttonposition")?t.style.textAlign="center":e.style.float="left",a.setAttribute("for",this.attr("id")),r.util.addClass(a,r.QCELL.def.css.TYPE_BUTTON_LABEL_SINGLE_STYLE),r.util.addClass(t,r.QCELL.def.css.TYPE_BUTTON_WRAP_STYLE),t.appendChild(e),t.appendChild(a),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Button.prototype._createElement",t.message),!1}},r.QCELL.Button.prototype._initEvent=function(){r.$(this.attr("element")).on("click",{target:this},r.st.eventProcess)},r.QCELL.Button.prototype._defaultAction=function(t){"click"===t.type&&this.onClick(t)},r.QCELL.Button.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("buttonwidth",t.options.buttonwidth,"string"),this.attr("buttonheight",t.options.buttonheight,"string"),this.attr("buttonposition",t.options.buttonposition,"string"),this.attr("buttonlabel",t.options.buttonlabel,"string"),this.attr("buttonclick",t.options.buttonclick,"function"),this.attr("labeltype",t.options.labeltype,"string")},r.QCELL.Button.prototype._show=function(t,e,a){try{var o=this.attr("parent"),i=void 0===o._cellValue(e,a)?"":o._cellValue(e,a),s=r.$(this.attr("element")).clone(!0).get(0),l=o._getQCellCol(a).attr("celldisabled")[e],n=s.childNodes[0],c=s.childNodes[1],d=(parseInt(r.$(t).css("line-height"))-parseInt(r.$(n).css("height")))/2,h=o._getQCellCol(a).attr("cellinvisible")[e],_=this;if(o._isBottomPanel(t))return void 0===i?r.util.textContent(t,""):r.util.textContent(t,i),!0;r.$(t).empty(),"left"!==n.style.float&&"right"!==n.style.float||(n.style.position="relative",n.style.top=d+"px"),s.setAttribute("data-row",e),s.setAttribute("data-col",a),n.setAttribute("data-row",e),n.setAttribute("data-col",a);var u=o.getID()+"_"+a+"_"+e;return n.setAttribute("id",u),n.setAttribute("name",u),c.setAttribute("for",u),c.setAttribute("data-row",e),c.setAttribute("data-col",a),r._.isFunction(this.attr("buttonclick"))&&(r.$(n).on("click",(function(){var t=parseInt(this.getAttribute("data-row")),e=parseInt(this.getAttribute("data-col"));_.attr("row",t,"number"),_.attr("col",e,"number")})),n.addEventListener("click",_.attr("buttonclick").bind(this,o,e,a),!1)),"button"===this.attr("labeltype")?n.value=i:c.innerHTML=i,l?r.$(n).attr("disabled",l):r.$(n).removeAttr("disabled"),t.appendChild(s),this.attr("row",e,"number"),this.attr("col",a,"number"),h&&o._setInitCellInvisible(e,a),!0}catch(t){return r.QCELL.log("err","QCELL.Button._show",t.message),!1}},r.QCELL.Button.prototype._outerClick=function(t,e){var r=this.attr("parent");r._selectCell(t,e),r._focusCell(t,e)},r.QCELL.Button.prototype.onClick=function(t){var e=t.target,a=parseInt(e.getAttribute("data-row")),o=parseInt(e.getAttribute("data-col"));r._.isElement(e)&&this._outerClick(a,o)},r.QCELL.Editor=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.Editor,r.QCELL.ColElement),r.QCELL.Editor.prototype._initTag=function(){this.tag("QBOX.QCELL.Editor")},r.QCELL.Editor.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("textarea");return e.setAttribute("id",this.attr("id")+"_Editor"),e.style.width="600px",e.style.height="300px",e.className+=r.QCELL.def.css.TYPE_EDITOR_STYLE,t.appendChild(e),r.util.addClass(t,r.QCELL.def.css.TYPE_EDITOR_WARP_STYLE),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.Editor.prototype._createElement",t.message),!1}},r.QCELL.Editor.prototype._initAttrs=function(t){r.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("insertdata","","string"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("editor",{},"object"),this.attr("renderer",void 0===t.options.html?null:t.options.html.data,"function"),this.attr("editcellcol",!1,"boolean"),this.attr("editcellrow",[],"array"),this.attr("editorshow",!1,"boolean")},r.QCELL.Editor.prototype._show=function(t,e,a){try{var o=this.attr("parent"),i=this.attr("element"),s=r.$(t).clone(!0).empty(),l=o.attr("elementpool").get("$container"),n=r.$(o._getCellDOM(e,a)).clone(!0).get(0).innerHTML,c=o._getQCellCol(a).attr("cellinvisible")[e],d=i.childNodes[0],h=this;t.addClass+=r.QCELL.def.css.TYPE_HTML_CELL,d.style.width="606px",d.style.height="306px",d.value=n,l.append(i),i.focus();var _=document.getElementById(d.id);window.sceditor.create(_,{locale:"ko",plugins:"undo",format:"xhtml",icons:"monocons",emoticonsEnabled:!1,style:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/themes/content/default.min.css",emoticonsRoot:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/",toolbar:"bold,italic,underline,strike,subscript,superscript,left,center,right,justify,font,size,color,removeformat,cut,copy,paste,pastetext,source",fonts:"Malgun Gothic, NanumGothic, Dotum, Arial,Arial Black,Comic Sans MS,Courier New,Georgia,Impact,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana"}),r.$(i).css(this._calculateColStyleEditorPosition(s,606,306));var u=window.sceditor.instance(_);return this.attr("editor",u,"object"),u.keyPress((function(t){h.onEditorKeyDown(t)}),!1,!0).keyUp((function(t){h.onEditorKeyUp(t)}),!1,!0),u.keyPress((function(t){h.onKeyDown(t)}),!0,!1).keyUp((function(t){h.onKeyDown(t)}),!0,!1),this.attr("row",e,"number"),this.attr("col",a,"number"),o._addEditColId(this.attr("colid")),this.attr("editorshow",!0,"boolean"),c&&o._setInitCellInvisible(e,a),!0}catch(t){return r.QCELL.log("err","QCELL.Editor._show",t.message),!1}},r.QCELL.Editor.prototype._hide=function(t,e){try{if(null===t)return;var a=this.attr("parent"),o=parseInt(t.getAttribute("data-row")),i=parseInt(t.getAttribute("data-col")),s=this.attr("editor"),l=this.attr("insertdata"),n=r.$(a._getCellDOM(o,i)).clone(!0).get(0).innerHTML,c=this.attr("editcellcol"),d=this.attr("editcellrow");if(s.destroy(),r.$(this.attr("element")).remove(),"api"===e)l=n;else{var h=!1;c?(r.$.each(d,(function(t,e){if(e.row===o)return h=!0,!1})),h||d.push({row:o,data:l})):(this.attr("editcellcol",!0,"boolean"),d.push({row:o,data:l})),t.vale=""}return l=a._showDataFormat(o,i,l),t.innerHTML=l,"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&a.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata","","string"),a._removeEditColId(this.attr("colid")),this.attr("editorshow",!1,"boolean"),"api"!==e&&a._refresh(),!0}catch(t){return r.QCELL.log("err","QCELL.Editor.prototype._hide",t.message),!1}},r.QCELL.Editor.prototype._calculateColStyleEditorPosition=function(t,e,r){var a=this.attr("parent"),o=parseInt(t.css("left")),i=parseInt(t.css("top")),s=parseInt(t.css("width")),l=a.attr("layoutsize").root.offsetWidth,n=parseInt(t.css("height")),c=a.attr("layoutsize").root.offsetHeight,d=a.attr("layoutsize").colheader.offsetHeight,h=a.attr("layoutsize").rowheader.offsetWidth;return{left:o+s+h+e>l?o+s+h-e+6+"px":o+h+"px",top:i+n+d+r>c?i+d-r+6+"px":i+n+d+"px"}},r.QCELL.Editor.prototype._showDataLabel=function(t,e,a,o){try{this.attr("row",e,"number"),this.attr("col",a,"number");var i=this.attr("parent"),s=i._cellValue(e,a),l=i.attr("currentdata"),n=i._getColHtml(a),c=i.attr("qcellcols")[a].attr("colstyleeditordata"),d=this.attr("editcellcol"),h=this.attr("editcellrow"),_=!1,u=!1,p=!1,C="",g=i.getRowData(e);if(!0===g.rt_qc_footer||!0===g.rt_qc_header)return r.util.textContent(t,o),void i._setAriaLabel(t,e,a,o);if(i._isBottomPanel(t))return void(void 0===o?r.util.textContent(t,""):r.util.textContent(t,o));if(t.addClass+=r.QCELL.def.css.TYPE_HTML_CELL,s=i._showDataFormat(e,a,s),r._.isFunction(this.attr("renderer"))&&r._.isFunction(n.data)){var f=n.data(i,e,a,!0===r._.isUndefined(s)?"":s,l[e-i.attr("headerrows")]);r._.isString(f)&&(_=!0,C=f)}if(""!==c){var L=c.replace("QCELL_COL_DATA",s);u=!0,C=L}return d&&r.$.each(h,(function(t,r){if(r.row===e)return p=!0,C=r.data,!1})),_||u||p?t.innerHTML=C:r.util.textContent(t,s),r.$(t.childNodes[0]).off("dblclick").on("dblclick",{target:this},this.onDblClick),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL.Editor._showDataLabel",t.message),!1}},r.QCELL.Editor.prototype.onKeyDown=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),a=t.keyCode,o=this.attr("editor");if(a===r.def.key.ENTER||a===r.def.key.TAB){var i=this;setTimeout((function(){i.attr("insertdata",o.getSourceEditorValue(),"string"),i._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}},r.QCELL.Editor.prototype.onKeyUp=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),a=t.keyCode,o=this.attr("editor");if(!1===t.altKey)if(a===r.def.key.ENTER||a===r.def.key.TAB){var i=this;setTimeout((function(){i.attr("insertdata",o.getSourceEditorValue(),"string"),i._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}else a===r.def.key.ESC&&this._hide(e,"api");else a!==r.def.key.ENTER&&10!==a||o.sourceEditorInsertText("\r")},r.QCELL.Editor.prototype.onEditorKeyDown=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),a=t.keyCode,o=this.attr("editor");if(a===r.def.key.ENTER||a===r.def.key.TAB){var i=this,s=o.getWysiwygEditorValue();o.setSourceEditorValue(s),setTimeout((function(){i.attr("insertdata",o.getSourceEditorValue(s),"string"),i._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}},r.QCELL.Editor.prototype.onEditorKeyUp=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),a=t.keyCode,o=this.attr("editor");if(!1===t.altKey)if(a===r.def.key.ENTER||a===r.def.key.TAB){var i=this,s=o.getWysiwygEditorValue();o.setSourceEditorValue(s),setTimeout((function(){i.attr("insertdata",o.getSourceEditorValue(s),"string"),i._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}else a===r.def.key.ESC&&this._hide(e,"api");else if(a===r.def.key.ENTER||10===a){t.stopPropagation(),t.preventDefault();var l=o.getRangeHelper();if("msie"===r.$.browser.name){var n=document.createElement("br");l.insertNode(n);for(var c=n.parentNode.childNodes,d=0,h=0;h<c.length;h++)c[h].isEqualNode(n)&&d++;1===d&&l.insertNode(n.cloneNode())}else l.insertHTML("<br><br>")}},r.QCELL.Editor.prototype.onDblClick=function(t){var e=t.target,r=Number(e.parentNode.getAttribute("data-row")),a=Number(e.parentNode.getAttribute("data-col")),o=t.data.target,i=o.attr("parent"),s=i._getCellDOM(r,a);if(0===r&&0===a){var l=e.parentNode;r=Number(l.parentNode.getAttribute("data-row")),a=Number(l.parentNode.getAttribute("data-col")),s=i._getCellDOM(r,a)}i._onScrollHideEditCellsDOM(),o._show(s,r,a)},r.QCELL.InputButton=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.InputButton,r.QCELL.Input),r.QCELL.InputButton.prototype._initTag=function(){this.tag("QBOX.QCELL.InputButton")},r.QCELL.InputButton.prototype._initAttrs=function(t){r.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("buttonwidth",t.options.buttonwidth,"string"),this.attr("buttonheight",t.options.buttonheight,"string"),this.attr("buttonposition",t.options.buttonposition,"string"),this.attr("buttonlabel",t.options.buttonlabel,"string"),this.attr("buttonclick",t.options.buttonclick,"function"),void 0===this.attr("buttonposition")&&this.attr("buttonposition","right","string"),void 0===this.attr("buttonwidth")&&this.attr("buttonwidth","20px","string"),void 0===this.attr("buttonheight")&&this.attr("buttonheight","20px","string"),this.attr("placeholder",t.options.placeholder,"string"),this.attr("editable",!1!==t.options.editable,"boolean")},r.QCELL.InputButton.prototype._showDataLabel=function(t,e,a,o){try{this.attr("row",e,"number"),this.attr("col",a,"number"),r.$(t).empty();var i=this.attr("parent"),s=i.getRowData(e);if(!0===s.rt_qc_footer||!0===s.rt_qc_header)return r.util.textContent(t,o),void i._setAriaLabel(t,e,a,o);var l=document.createElement("button"),n=document.createTextNode("data");if(i._isBottomPanel(t))return void(void 0===o?r.util.textContent(t,""):r.util.textContent(t,o));if(i._isBottomPanel(t))return void(void 0===o?r.util.textContent(t,""):r.util.textContent(t,o));r.util.addClass(l,r.QCELL.def.css.TYPE_BUTTON_SINGLE_STYLE),r.util.addClass(l,this.attr("id")+"-style"),r._.isString(this.attr("buttonwidth"))&&(l.style.width=this.attr("buttonwidth").indexOf("%")>-1||this.attr("buttonwidth").indexOf("px")>-1?this.attr("buttonwidth"):this.attr("buttonwidth")+"px"),r._.isString(this.attr("buttonheight"))?l.style.height=this.attr("buttonheight").indexOf("%")>-1||this.attr("buttonheight").indexOf("px")>-1?this.attr("buttonheight"):this.attr("buttonheight")+"px":l.style.height="20px";var c=parseInt(r.$(t).css("height"))/2-parseInt(r.$(l).css("height"))/2;return r._.isString(this.attr("buttonlabel"))&&(l.value=this.attr("buttonlabel")),l.style.position="absolute",l.style.right="1px",l.style.top=c+"px",l.style.cursor="pointer",r._.isString(this.attr("buttonposition"))&&"right"===this.attr("buttonposition")?l.style.float="right":"center"===this.attr("buttonposition")?l.style.textAlign="center":l.style.float="left",r.$(l).bind("click",(function(t){switch(t.stopPropagation(),i._onScrollHideEditCellsDOM(),i._updateIdx("click",e,a),i._focusCell(e,a),i.attr("selectmode")){case"row":case"rows":i._clearSelection(),i._selectRow(e);break;case"col":case"cols":i._clearSelection(),i._selectCol(a);break;default:i._clearSelection(),i._selectCell(e,a)}r.QCELL.config.usebuttonclickcallback?(t.preventDefault(),i._callButtonclickCallback()):i._trigger("buttonclick")})),r.util.textContent(n,o),t.appendChild(n),t.appendChild(l),i._setAriaLabel(t,e,a,o),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL.InputButton._showDataLabel",t.message),!1}},r.QCELL.InputButton.prototype._show=function(t,e){try{return!0===this.attr("editable")&&r.QCELL.Input.prototype._show.call(this,t,e),!0}catch(t){return r.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},r.QCELL.InputButton.prototype._hide=function(t,e){try{if(null===t)return;var a,o=this.attr("parent"),i=this.attr("element"),s=this.attr("row"),l=this.attr("col"),n=i.value,c=this.attr("format"),d=this.attr("validator"),h=o._cellValue(s,l);n=o._showUnMask(l,n,c),r.$(i).detach(),void 0!==this.attr("exclude")&&r._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{r._.isString(t)&&(n=n.split(t).join(""))}catch(t){r.QCELL.log("err","QCELL.InputButton.prototype._hide",t.message)}}));var _=!0;d&&(_=d(s,l,n));var u=n,p=h;return r._.isObject(c)&&"number"===c.type&&("string"==typeof h&&(h=h.replaceAll(",",""),n=n.replaceAll(",","")),h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)),!0===_?n!==h?""===n&&void 0===h?r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),this._showDataLabel(t,s,l,a)):this._showDataLabel(t,s,l,n):("none"===o.attr("merge").data||r._.isUndefined(o.attr("merge").data)||!1===o._getColDataMergeCol(l)?(o._cellValue(s,l,n),r._.isObject(c)&&(a=o._showDataFormat(s,l,void 0===n?"":n),this._showDataLabel(t,s,l,a))):this._changeMergeCellValue(s,l,n,c),o._processValueChanged(s,l)):!r._.isObject(c)||"number"!==c.type||""!==u||""!==p&&void 0!==p?r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),this._showDataLabel(t,s,l,a)):this._showDataLabel(t,s,l,n):this._showDataLabel(t,s,l,u):(n=h,r._.isObject(c)?(a=o._showDataFormat(s,l,void 0===n?"":n),this._showDataLabel(t,s,l,a)):this._showDataLabel(t,s,l,n)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&o.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(o._getCellDOM(o._idx("row","focus","current"),o._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),o._removeEditColId(this.attr("colid")),_}catch(t){return r.QCELL.log("err","QCELL.InputButton.prototype._hide",t.message),!1}},r.QCELL.InputDatepicker=function(t){if(!1===r.util.checkType(t,"object"))return null;r.QCELL.ColElement.call(this,t)},r.util.inherit(r.QCELL.InputDatepicker,r.QCELL.Input),r.QCELL.InputDatepicker.prototype._initTag=function(){this.tag("QBOX.QCELL.InputDatepicker")},r.QCELL.InputDatepicker.prototype._initEvent=function(){r.$(this.attr("element")).on("keydown keyup keypress",{target:this},r.st.eventProcess)},r.QCELL.InputDatepicker.prototype._initAttrs=function(t){r.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("showkey",!1,"boolean"),this.attr("visible",!1,"boolean"),this.attr("changeyear",void 0!==t.options.changeyear&&t.options.changeyear,"boolean"),this.attr("changemonth",void 0!==t.options.changemonth&&t.options.changemonth,"boolean"),this.attr("insertdata","","string"),this.attr("dateformat",void 0===t.options.dateformat?"YYMMDD":t.options.dateformat,"string"),this.attr("locale",void 0===t.options.locale?"ko":t.options.locale,"string"),this.attr("yearrange",void 0===t.options.yearrange?"c-10:c+10":t.options.yearrange,"string"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("format",t.options.format,"object"),this.attr("placeholder",t.options.placeholder,"string"),this.attr("timetype",void 0===t.options.timetype?"none":t.options.timetype,"string"),this.attr("timeformat",void 0===t.options.timeformat?"HHmmss":t.options.timeformat,"string"),void 0!==r.$.timepicker&&this.attr("timeseparator",void 0===t.options.timeseparator?r.$.timepicker._defaults.separator:t.options.timeseparator,"string"),this.attr("dateimage",void 0===t.options.dateimage?"":t.options.dateimage,"string"),this.attr("dateimageside",void 0===t.options.dateimageside?"right":t.options.dateimageside,"string"),this.attr("dateimageonly",void 0!==t.options.dateimageonly&&t.options.dateimageonly,"boolean"),this.attr("direction",t.options.direction,"string")},r.QCELL.InputDatepicker.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),t.className+=r.QCELL.def.css.TYPE_INPUT_TEXT_STYLE+" "+this.attr("inputclass"),this._setElement(t),!0}catch(t){return r.QCELL.log("err","QCELL.InputDatepicker.prototype._createElement",t.message),!1}},r.QCELL.InputDatepicker.prototype._show=function(t,e){try{var a,o=this.attr("parent"),i=this.attr("element"),s=parseInt(t.getAttribute("data-row")),l=parseInt(t.getAttribute("data-col")),n=void 0===o._cellValue(s,l)?"":o._cellValue(s,l),c=r.$(t).empty(),d=o.attr("elementpool").get("$viewportinner"),h=this.attr("format"),_=o._getQCellCol(l).attr("cellinvisible")[s],u=this,p={defaultDate:a="yymmdd"===this.attr("dateformat").toLowerCase()?n:void 0!==h?o._showDataFormat(s,l,void 0===n?"":n):n,changeYear:this.attr("changeyear"),changeMonth:this.attr("changemonth"),dateFormat:this.attr("dateformat").toLowerCase(),yearRange:this.attr("yearrange"),firstDay:0,onSelect:function(e,r){u.attr("insertdata",e,"string"),u._hide(t,"api")},showAnim:"fold"};return null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?n=r.util.replaceAll(n,"%",""):r._.isFunction(this.attr("convert").callback)&&(n=this.attr("convert").callback.call(this,s,l,n))),this.attr("isshow",!0,"boolean"),i.value=a,void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(i.placeholder=this.attr("placeholder")),o._showMask(l,i),r.$(i).css({width:c.css("width"),height:c.css("height"),left:c.css("left"),top:c.css("top")}),r.$(i).datepicker(p),d.append(i),i.focus(),i.select(),this.attr("row",s,"number"),this.attr("col",l,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[n],"array"),o._addEditColId(this.attr("colid")),_&&o._setInitCellInvisible(s,l),!0}catch(t){return r.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},r.QCELL.InputDatepicker.prototype._hide=function(t,e){try{if(null===t)return;if(!1===this.attr("isshow")&&!0!==this.attr("parent").attr("oneclickedit"))return;var a,o,i,s=this.attr("parent"),l=this.attr("element"),n=this.attr("row"),c=this.attr("col"),d=l.value,h=this.attr("format"),_=this.attr("validator");if(-1===n||-1===c)return;if(this.attr("isshow",!1,"boolean"),d=s._showUnMask(c,d,h),void 0!==h)for(i=h.rule.toLowerCase(),i=r.util.replaceAll(i,"y",""),i=r.util.replaceAll(i,"m",""),i=r.util.replaceAll(i,"d",""),o=0;o<i.length;o++)d=r.util.replaceAll(d,i.charAt(o),"");null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?d+="%":r._.isFunction(this.attr("convert").afterCallback)&&(d=this.attr("convert").afterCallback.call(this,n,c,d)));var u=l.parentElement;setTimeout((function(){var t=0;if(void 0!==u)for(t=0;t<u.childNodes.length;t++)if(l===u.childNodes[t]){r.$(l).datepicker("hide"),r.$(l).datepicker("destroy"),r.$(l).detach();break}}),0),void 0!==this.attr("exclude")&&r._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{r._.isString(t)&&(d=d.split(t).join(""))}catch(t){r.QCELL.log("err","QCELL.Input.prototype._hide",t.message)}}));var p=!0;return _&&(p=_(n,c,d)),!0===p?d!==s._cellValue(n,c)?""===d&&void 0===s._cellValue(n,c)?r._.isObject(h)?(a=s._showDataFormat(n,c,void 0===d?"":d),r.util.textContent(t,a)):r.util.textContent(t,d):("none"===s.attr("merge").data||r._.isUndefined(s.attr("merge").data)?r._.isObject(h)?(a=s._showDataFormat(n,c,void 0===d?"":d),r.util.textContent(t,a),"Invalid date"!==a&&s._cellValue(n,c,d)):s._cellValue(n,c,d):this._changeMergeCellValue(n,c,d,h),s._processValueChanged(n,c)):r._.isObject(h)?(a=s._showDataFormat(n,c,void 0===d?"":d),r.util.textContent(t,a)):r.util.textContent(t,d):(d=s._cellValue(n,c),r._.isObject(h)?(a=s._showDataFormat(n,c,void 0===d?"":d),r.util.textContent(t,a)):r.util.textContent(t,d)),"msie"===r.$.browser.name&&8===r.$.browser.versionNumber&&s.attr("elementpool").get("$container").focus(),"msie"!==r.$.browser.name?r.$(s._getCellDOM(s._idx("row","focus","current"),s._idx("col","focus","current"))).focus():r.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),s._removeEditColId(this.attr("colid")),p}catch(t){return r.QCELL.log("err","QCELL.Input.prototype._hide",t.message),!1}},r.QCELL.NormalQCELL.prototype._beforeFocusCell=function(){this.attr("adjustrow",!1,"boolean"),this._hideEditCellsDOM()},r.QCELL.NormalQCELL.prototype.onKeyDown=function(t){try{r.QCELL.BasicQCELL.prototype.onKeyDown.call(this,t);var e=t.target,a=t.keyCode,o=r.QCELL.def.css;if(r.util.hasClass(e,o.TYPE_INPUT_EDIT_STYLE)&&(e=e.parentElement),r.util.hasClass(e,o.CELL)){var i=parseInt(e.getAttribute("data-row")),s=parseInt(e.getAttribute("data-col")),l=t.data.target._idx("row","focus"),n=t.data.target._idx("col","focus");if(i!==l&&(i=l),s!==n&&(s=n),-1===i||-1===s)return;if(!0===this.attr("useenterkeytonextcol")&&a===r.def.key.ENTER)return this._moveNextCell(i,s,0),t.stopPropagation(),void t.preventDefault();var c=this._getQCellCol(s).attr("celldisabled")[i];if(c=void 0!==c&&c,e!==this._getCellDOM(l,n)&&(e=this._getCellDOM(l,n)),i>=this.attr("headerrows")&&s>=this.attr("headercols")){var d=this._getCellDOM(i,s);if(this._isBottomPanel(d))return;switch(this._getColType(s)){case"input":case"textarea":case"selectmenu":case"number":case"inputbutton":case"inputdatepicker":if(!1===this._getColElement(s).attr("visible"))switch(a){case r.def.key.F2:case r.def.key.SPACE:case r.def.key.BACKSPACE:case r.def.key.ENTER:(r._.isUndefined(c)||!1===c)&&(this._getColElement(s).attr("showkey",!0,"boolean"),this._getColElement(s)._show(e,t.type)),t.stopPropagation(),t.preventDefault();break;case r.def.key.LEFT:case r.def.key.RIGHT:case r.def.key.UP:case r.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;case"datepicker":switch(a){case r.def.key.SPACE:case r.def.key.ENTER:(r._.isUndefined(c)||!1===c)&&this._getColElement(s)._show(e),t.stopPropagation(),t.preventDefault();break;case r.def.key.LEFT:case r.def.key.RIGHT:case r.def.key.UP:case r.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;case"checkbox":switch(a){case r.def.key.SPACE:case r.def.key.ENTER:(r._.isUndefined(c)||!1===c)&&this._getColElement(s)._outerClick(i,s),t.stopPropagation(),t.preventDefault();break;case r.def.key.LEFT:case r.def.key.RIGHT:case r.def.key.UP:case r.def.key.DOWN:t.stopPropagation(),t.preventDefault()}break;case"multicheckbox":if(!1===this._getColElement(s).attr("visible"))switch(a){case r.def.key.F2:case r.def.key.SPACE:case r.def.key.BACKSPACE:case r.def.key.ENTER:(r._.isUndefined(c)||!1===c)&&(this._getColElement(s).attr("showkey",!0,"boolean"),this._getColElement(s)._show(e,i,s)),t.stopPropagation(),t.preventDefault();break;case r.def.key.LEFT:case r.def.key.RIGHT:case r.def.key.UP:case r.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;default:switch(a){case r.def.key.LEFT:case r.def.key.RIGHT:case r.def.key.SPACE:case r.def.key.ENTER:case r.def.key.UP:case r.def.key.DOWN:t.stopPropagation(),t.preventDefault()}}}if(r.def.key.DELETE===a){var h,_,u=this.attr("parentid"),p=!1;if("select"===this.attr("delkeymode")){if(r.$("#"+u).find("."+o.CELL_SELECT).length>0){var C,g,f,L,m=this._getIdxInfo("selected","row").keys(!0),E=this._getIdxInfo("selected","col").keys(!0);0===m.length?(C=this.attr("headerrows"),g=this.attr("rows")):(C=m[0],g=m[m.length-1]),0===E.length?(f=this.attr("headercols"),L=this.attr("cols")-1):(f=E[0],L=E[E.length-1]);for(var b=f;b<=L;b++){h=this._getQCellCol(b).attr("celldisabled"),_=this._getQCellCol(b).attr("type");for(var y=C;y<=g;y++)if(!0!==(c=void 0!==(c=h[y])&&c))switch(_){case"input":case"textarea":case"number":case"inputbutton":case"datepicker":case"inputdatepicker":this._cellValue(y,b,""),p=!0}}}}else if("focus"===this.attr("delkeymode")&&(i=this.getIdx("row"),s=this.getIdx("col"),-1!==i&&-1!==s)){if(h=this._getQCellCol(s).attr("celldisabled"),_=this._getQCellCol(s).attr("type"),!0===(c=void 0!==(c=h[i])&&c))return;switch(_){case"input":case"textarea":case"number":case"inputbutton":case"datepicker":case"inputdatepicker":this._cellValue(i,s,""),p=!0}}p&&this._processValueChanged(i,s)}}else if(r.util.hasClass(e,"rt-qc-ui-selectmenu-button")&&!0===this.attr("useenterkeytonextcol")&&a===r.def.key.ENTER){var v=e.parentElement.parentElement,w=parseInt(v.getAttribute("data-row")),x=parseInt(v.getAttribute("data-col"));this._moveNextCell(w,x,0),t.stopPropagation(),t.preventDefault()}}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onKeyDown",t.message)}},r.QCELL.NormalQCELL.prototype.onMouseWheel=function(t){this._onScrollHideEditCellsDOM(),r.QCELL.BasicQCELL.prototype.onMouseWheel.call(this,t)},r.QCELL.NormalQCELL.prototype.onMouseDown=function(t){try{r.QCELL.BasicQCELL.prototype.onMouseDown.call(this,t)}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onMouseDown",t.message)}},r.QCELL.NormalQCELL.prototype.onDblClick=function(t){try{var e,a,o=t.target,i=o,s=r.QCELL.def.css,l=!1;do{if(r.util.hasClass(i,s.CELL)&&(e=parseInt(i.getAttribute("data-col")),a=parseInt(i.getAttribute("data-row")),r._.isNumber(e)&&r._.isNumber(a))){this._updateIdx("dblclick",a,e),l=!0;break}i=i.parentElement}while(null!==i);if(!1===l&&(-1!==this.attr("temprow")&&-1!==this.attr("tempcol")?this._updateIdx("dblclick",this.attr("temprow"),this.attr("tempcol")):this._updateIdx("dblclick",-1,-1)),this.attr("temprow",-1,"number"),this.attr("tempcol",-1,"number"),r.util.hasClass(o,s.CELL)&&r.util.hasClass(o,s.CELL_VIEWPORT)){e=parseInt(o.getAttribute("data-col")),a=parseInt(o.getAttribute("data-row"));var n=this._getRightColOfScreen(),c=this._getLeftColOfScreen(),d=this._getQCellCol(e).attr("celldisabled")[a],h=this._getQCellCol(e).attr("disabled"),_=this.attr("groupstate");if(this._isBottomPanel(o))return;if(r.util.isMobile())return this._setInputformData(a),t.stopPropagation(),void t.preventDefault();if(!1===this._getQCellCol(e).attr("celldisabled")[a]&&(h=!1),null!==_&&(-1===r._.indexOf(_.headerrows,a)&&-1===r._.indexOf(_.footerrows,a)||(h=!0)),!0===this.attr("_isGTF")||!0===this.attr("_isGTH")){var u=this.getRowData(a);!0!==u.rt_qc_footer&&!0!==u.rt_qc_header||(h=!0)}var p=this;if(!0!==h){if(e>=n||e<=c)return void setTimeout((function(){if(p._idx("col","focus")===e)switch(p._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(r._.isUndefined(d)||!1===d)&&p._getColElement(e)._show(o,t.type);break;case"datepicker":(r._.isUndefined(d)||!1===d)&&p._getColElement(e)._show(o);break;case"multicheckbox":case"editor":(r._.isUndefined(d)||!1===d)&&p._getColElement(e)._show(o,a,e)}}),200);if((this.attr("useall")||this.attr("usetreeall"))&&(e<=n||e>=c))return void setTimeout((function(){if(p._idx("col","focus")===e)switch(p._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(r._.isUndefined(d)||!1===d)&&p._getColElement(e)._show(o,t.type);break;case"datepicker":(r._.isUndefined(d)||!1===d)&&p._getColElement(e)._show(o);break;case"multicheckbox":case"editor":(r._.isUndefined(d)||!1===d)&&p._getColElement(e)._show(o,a,e)}}),200);if(!1===this.attr("oneclickedit")&&!1===this.attr("adjustrow")&&!1===this.attr("adjustcol"))switch(this._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"datepicker":case"inputbutton":case"inputdatepicker":(r._.isUndefined(d)||!1===d)&&this._getColElement(e)._show(o,t.type);break;case"multicheckbox":case"editor":(r._.isUndefined(d)||!1===d)&&this._getColElement(e)._show(o,a,e)}}}}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onDblClick",t.message)}},r.QCELL.NormalQCELL.prototype._getRowFromTarget=function(t){var e;do{if(void 0===t.getAttribute)return-1;if(e=parseInt(t.getAttribute("data-row")),!isNaN(e))return e;t=t.parentNode}while(null!==t);return-1},r.QCELL.NormalQCELL.prototype._getColFromTarget=function(t){var e;do{if(void 0===t.getAttribute)return-1;if(e=parseInt(t.getAttribute("data-col")),!isNaN(e))return e;t=t.parentNode}while(null!==t);return-1},r.QCELL.NormalQCELL.prototype.onClick=function(t){try{r.QCELL.BasicQCELL.prototype.onClick.call(this,t);var e,a,o=t.target,i=r.QCELL.def.css;if(!1===this.attr("isscrollleft")&&(r.util.hasClass(o,i.CELL)||r.util.hasClass(o,i.VIEWPORT_INNER)||r.util.hasClass(o,i.TYPE_DATEPICKER))&&(this._hideEditCellsDOM(),-1!==this._idx("row","hover")&&-1!==this._idx("col","hover")||this._onScrollHideEditCellsDOM()),r.util.hasClass(o,i.CELL)||r.util.hasClass(o,i.TYPE_DATEPICKER)||r.util.hasClass(o,i.TYPE_INPUT_EDIT_STYLE)){e=this._getRowFromTarget(o),a=this._getColFromTarget(o);var s,l,n=this._getQCellCol(a).attr("celldisabled")[e],c=this._getQCellCol(a).attr("disabled"),d=this.attr("groupstate");if(this._isBottomPanel(o))return;if(r.util.isMobile())return t.stopPropagation(),void t.preventDefault();if(!1===n&&(c=!1),null!==d&&(-1===r._.indexOf(d.headerrows,e)&&-1===r._.indexOf(d.footerrows,e)||(c=!0)),!0===this.attr("_isGTF")||!0===this.attr("_isGTH")){var h=this.getRowData(e);!0!==h.rt_qc_footer&&!0!==h.rt_qc_header||(c=!0)}if(!0!==c)if(this._updateIdx("dblclick",this._idx("row","cursor"),this._idx("col","cursor")),r.util.hasClass(o,i.TYPE_DATEPICKER)&&(r.util.hasClass(o.parentNode,i.CELL)?o=o.parentNode:r.util.hasClass(o.parentNode.parentNode,i.CELL)&&(o=o.parentNode.parentNode)),r.util.hasClass(o,i.TYPE_INPUT_EDIT_STYLE)&&r.util.hasClass(o.parentNode,i.CELL)&&(o=o.parentNode),n=void 0!==n&&n,r.util.hasClass(o,i.CELL_VIEWPORT)){if((this.attr("useall")||this.attr("usetreeall"))&&(l=this._getRowFromTarget(o),s=this._getColFromTarget(o),!isNaN(l)&&!isNaN(s))){var _=this._getCellDOM(l,s);null!=_&&"none"!==this._getHScrollAdjustment(_)&&!0===this.attr("hsinfo").bHScroll&&this._scrollLeft(s)}var u=this.getID();setTimeout((function(){var i=r.QCELL.getInstance(u);if(null!==i){if(!1===i.attr("isscrollleft")&&i.attr("oneclickedit")&&!1===i.attr("adjustrow")&&!1===i.attr("adjustcol"))switch(i._hideEditCellsDOM(),i._getColType(a)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(r._.isUndefined(n)||!1===n)&&i._getColElement(a)._show(o,t.type);break;case"datepicker":(r._.isUndefined(n)||!1===n)&&i._getColElement(a)._show(o);break;case"multicheckbox":case"editor":(r._.isUndefined(n)||!1===n)&&i._getColElement(a)._show(o,e,a)}switch(i.attr("isscrollleft",!1,"boolean"),i._getColType(a)){case"checkbox":case"image":case"button":(r._.isUndefined(n)||!1===n)&&i._getColElement(a)._outerClick(e,a)}}}),200)}else r.util.hasClass(o,i.CELL_COLHEADER)&&t.which===r.def.which.LEFT_BUTTON&&"checkbox"===this._getColType(a)&&this._getColElement(a)._outerClick(e,a)}else if(r.util.hasClass(o,i.COLHEADER_AREA))e=o.parentNode.getAttribute("data-row"),a=o.parentNode.getAttribute("data-col"),this._updateIdx("click",Number(e),Number(a));else{for(var p=o.parentElement;p;){if(r.util.hasClass(p,i.COLHEADER_AREA))return e=o.parentNode.getAttribute("data-row"),a=o.parentNode.getAttribute("data-col"),void this._updateIdx("click",Number(e),Number(a));p=p.parentElement}for(p=o.parentElement;p;){if(r.util.hasClass(p,i.CELL)){if(e=p.getAttribute("data-row"),a=p.getAttribute("data-col"),isNaN(Number(a))||"html"!==this._getColType(Number(a)))break;return this._updateIdx("click",Number(e),Number(a),t),this._focusCell(Number(e),Number(a)),void o.focus()}p=p.parentElement}this._updateIdx("dblclick",-1,-1)}}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onClick",t.message)}},r.QCELL.NormalQCELL.prototype.onMouseEnter=function(t){try{r.$(document).off("mousedown."+this.attr("id"))}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onMouseEnter",t.message)}},r.QCELL.NormalQCELL.prototype.onMouseLeave=function(t){try{if("filter-dataindex"===this.attr("id"))return!1;var e=!1;if(r.$(document).bind("mousedown."+this.attr("id"),{target:this},(function(t){!1===(r.util.hasClass(t.target,"rt-qc-ui-widget")||r.util.hasClass(t.target,"rt-qc-ui-menu-item-wrapper")||r.util.hasClass(t.target.parentNode,"rt-qc-ui-datepicker-year")||r.util.hasClass(t.target.parentNode,"rt-qc-ui-datepicker-month")||r.util.hasClass(t.target.parentNode,"rt-qc-ui-selectmenu")||r.util.hasClass(t.target.parentNode,"rt-qc-input-text-style"))&&(t.data.target._hideEditCellsDOM(),r.$(this).unbind(t))})),r.util.hasClass(t.target,r.QCELL.def.css.CELL_COLHEADER))return!0!==this.attr("keepeditmode")&&this._onScrollHideEditCellsDOM(),void(!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()));if(!1===(r.util.hasClass(t.target,"rt-qc-ui-widget")||r.util.hasClass(t.target,r.QCELL.def.css.VIEWPORT)||r.util.hasClass(t.target,r.QCELL.def.css.CELL)||r.util.hasClass(t.target,"rt-qc-ui-selectmenu-text")||r.util.hasClass(t.target,"rt-qc-selectmenu-wrap-style")||r.util.hasClass(t.target,"rt-qc-input-text-style"))){if(!0===this.attr("isdatepicker")&&r.util.hasClass(t.target,"hasDatepicker"))return;!0!==this.attr("keepeditmode")&&this._onScrollHideEditCellsDOM(),!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()),e=!0}if(!1===((r.util.hasClass(t.target,r.QCELL.def.css.CELL)||r.util.hasClass(t.target,"rt-qc-input-text-style")||t.target.className.indexOf("selectmenu")>-1)&&null!==t.toElement&&(r.util.hasClass(t.toElement.parentNode,"rt-qc-ui-selectmenu-menu")||r.$(t.toElement).is("div")||r.$(t.toElement).is("li")))&&(!0!==this.attr("keepeditmode")&&!1===r.QCELL.config.htmlselectmenu&&this._onScrollHideEditCellsDOM(),!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()),e=!0),!1===e){var a=this._getIdxInfo("focus","row").current,o=this._getIdxInfo("focus","col").current;void 0!==a&&void 0!==o&&-1!==a&&-1!==o&&("selectmenu"!==this._getColType(o)||r.util.hasClass(t.target,"rt-qc-ui-selectmenu-button")||r.util.hasClass(t.target,"rt-qc-cell")||r.util.hasClass(t.target,"rt-qc-ui-selectmenu-text")||this._onScrollHideEditCellsDOM())}r.util.hasClass(t.currentTarget,"rt-qc-container")&&!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus())}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onMouseLeave",t.message)}},r.QCELL.NormalQCELL.prototype.onMouseMove=function(t){try{r.QCELL.BasicQCELL.prototype.onMouseMove.call(this,t);var e=r.QCELL.def.css,a=t.target,o=-1,i=-1,s=a.parentNode;r.util.hasClass(s,e.CELL)&&(o=parseInt(s.getAttribute("data-row")),i=parseInt(s.getAttribute("data-col")),this._idx("row","cursor")===o&&this._idx("col","cursor")===i||(this._updateIdx("cursor",o,i),0!==t.buttons&&t.which===r.def.which.LEFT_BUTTON&&this.attr("mousedown")&&this.onDrag(t)))}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onMouseMove",t.message)}},r.QCELL.NormalQCELL.prototype.onDrag=function(t){try{r.QCELL.BasicQCELL.prototype.onDrag.call(this,t)}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onDrag",t.message)}},r.QCELL.NormalQCELL.prototype._callButtonclickCallback=function(){if(null!==this.attr("buttonclickcallback")&&r._.isFunction(this.attr("buttonclickcallback"))){this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));var t={type:"buttonclick",data:null===this.attr("eventparam_buttonclick")?{}:this.attr("eventparam_buttonclick")};t.data.target=this,this.attr("buttonclickcallback").call(this,t)}},r.QCELL.NormalQCELL.prototype.onResize=function(t){try{this._onScrollHideEditCellsDOM(),r.QCELL.BasicQCELL.prototype.onResize.call(this,t)}catch(t){r.QCELL.log("err","QCELL.NormalQCELL.onResize",t.message)}},r.QCELL.NormalQCELL.prototype._getColElement=function(t){return this.attr("qcellcols")[t].attr("colelement")},r.QCELL.NormalQCELL.prototype._getColTitlekey=function(t){var e=this.attr("qcellcols")[t].attr("colelement");return null!==e?e.titlekey:void 0},r.QCELL.NormalQCELL.prototype._getColType=function(t){return void 0===this.attr("qcellcols")[t]?"static":this.attr("qcellcols")[t].attr("type")},r.QCELL.NormalQCELL.prototype._getColHtml=function(t){return this.attr("qcellcols")[t].attr("html")},r.QCELL.NormalQCELL.prototype._getColChart=function(t){return this.attr("qcellcols")[t].attr("chart")},r.QCELL.NormalQCELL.prototype._getColDisabled=function(t){return this.attr("qcellcols")[t].attr("disabled")},r.QCELL.NormalQCELL.prototype._getColMask=function(t){return this.attr("qcellcols")[t].attr("mask")},r.QCELL.NormalQCELL.prototype._getColDatatype=function(t){return this.attr("qcellcols")[t].attr("datatype")},r.QCELL.NormalQCELL.prototype._getColFneditor=function(t){return this.attr("qcellcols")[t].attr("fneditor")},r.QCELL.NormalQCELL.prototype._hideEditCellsDOM=function(){var t=this.attr("editcolids");if(t.length>0){var e,a;this.attr("hideedit",!0,"boolean");for(var o=0;o<t.length;o++)a=this._getColElement(this.attr("colidsinfo")[t[o]]),e=this._getCellDOM(a.attr("row"),a.attr("col")),"multicheckbox"===this._getColType(this.attr("colidsinfo")[t[o]])?a._setMultiCheckboxCellData(a.attr("element")):"editor"===this._getColType(this.attr("colidsinfo")[t[o]])&&a._hide(e,"api"),("msie"!==r.$.browser.name&&"msedge"!==r.$.browser.name||a.attr("row")===this._idx("row","focus")&&a.attr("col")===this._idx("col","focus"))&&a.attr("row")===this._idx("row","focus")&&a.attr("col")===this._idx("col","focus")||a._hide(e,"api");e=a=null}this._removeTooltip(),this.attr("hideedit",!1,"boolean")},r.QCELL.NormalQCELL.prototype._onScrollHideEditCellsDOM=function(){try{var t=this.attr("editcolids");if(t.length>0){var e,a;this.attr("hideedit",!0,"boolean");for(var o=0;o<t.length;o++)a=this._getColElement(this.attr("colidsinfo")[t[o]]),e=this._getCellDOM(a.attr("row"),a.attr("col")),a._hide(e,"api");e=a=null}this._removeTooltip(),this.attr("hideedit",!1,"boolean")}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._onScrollHideEditCellsDOM",t.message),!1}},r.QCELL.NormalQCELL.prototype._isValidEditColId=function(t){var e,r=this.attr("editcolids");for(e=0;e<r.length;e++)if(r[e]===t)return!0;return!1},r.QCELL.NormalQCELL.prototype._addEditColId=function(t){var e=this.attr("editcolids");e.push(t),e=r._.uniq(e),this.attr("editcolids",e,"array")},r.QCELL.NormalQCELL.prototype._removeEditColId=function(t){var e=this.attr("editcolids");e=r._.without(e,t),this.attr("editcolids",e,"array")},r.QCELL.NormalQCELL.prototype._showMask=function(t,e){try{var a=this._getColMask(t);if(!r._.isUndefined(a)&&r._.isObject(a))if("currency"===a.alias){var o={alias:"currency"};o.prefix=void 0===a.prefix?"":a.prefix,o.digits=void 0===a.digits?0:a.digits,o.allowPlus=!1,r.$(e).inputmask(o)}else r.$(e).inputmask({mask:a.alias});return!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._showMask",t.message),!1}},r.QCELL.NormalQCELL.prototype._showUnMask=function(t,e,a){var o=e;try{var i=this._getColMask(t);if(!r._.isUndefined(i)&&r._.isObject(i)){if("currency"===i.alias){var s={alias:"currency"};return s.prefix=void 0===i.prefix?"":i.prefix,s.digits=void 0===i.digits?0:i.digits,o=window.Inputmask.unmask(o,s)}if(r._.isObject(a)&&"number"===a.type&&-1!==i.alias.indexOf(".")){var l=e.split(".");o="";for(var n=0;n<l.length;n++)""!==o&&(o+="."),o+=null===window.Inputmask.unmask(l[n],{alias:i.alias})?"0":window.Inputmask.unmask(l[n],{alias:i.alias})}else o=window.Inputmask.unmask(o,{alias:i.alias});null!==o&&"null"!==o||(o="")}}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._showUnMask",t.message),o=e}return o},r.QCELL.NormalQCELL.prototype._moveCols=function(t,e,a,o){this._onScrollHideEditCellsDOM(),r.QCELL.BasicQCELL.prototype._moveCols.call(this,t,e,a,o)},r.QCELL.NormalQCELL.prototype._setColWidth=function(t,e){this._onScrollHideEditCellsDOM(),r.QCELL.BasicQCELL.prototype._setColWidth.call(this,t,e)},r.QCELL.NormalQCELL.prototype._editcell=function(t,e){var a=this._getQCellCol(e).attr("celldisabled")[t];if(!0!==this._getQCellCol(e).attr("disabled")&&!a){var o=this._getCellDOM(t,e);if(null!==o){if(this._isBottomPanel(o))return;switch(this._hideEditCellsDOM(),this._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(r._.isUndefined(a)||!1===a)&&(this._getColElement(e).attr("showkey",!0,"boolean"),this._getColElement(e)._show(o,""));break;case"datepicker":(r._.isUndefined(a)||!1===a)&&this._getColElement(e)._show(o);break;case"multicheckbox":case"editor":(r._.isUndefined(a)||!1===a)&&this._getColElement(e)._show(o,t,e)}switch(this._getColType(e)){case"checkbox":case"image":case"button":(r._.isUndefined(a)||!1===a)&&this._getColElement(e)._outerClick(t,e)}}}},r.QCELL.NormalQCELL.prototype._moveNextCell=function(t,e,a){for(var o,i=this.getID();;){if(++e>=this.getCols()){if(e=this.getCols("header"),++t>=this.getRows())return;this.attr("movescroll",!0,"boolean")}var s=this._getQCellCol(e).attr("celldisabled")[t];if(s=void 0!==s&&s,r._.isUndefined(s)||!0!==s){var l=!1;switch(this._getColType(e)){case"input":case"textarea":case"selectmenu":case"button":case"datepicker":l=!0}if(!0===l)break}}setTimeout((function(){var a=void 0===(o=r.QCELL.getInstance(i))._getCellDOM(t,e)||null===o._getCellDOM(t,e);!0===o.attr("movescroll")&&(a=!0),o.editCell(t,e,a),o=null}),a)},r.QCELL.NormalQCELL.prototype._createCols=function(){return r.QCELL.BasicQCELL.prototype._createCols.call(this)},r.QCELL.NormalQCELL.prototype._createHeaderCol=function(t){try{return r.QCELL.NormalQCELL.QCellCol.create(r._.extend(r._.clone(t),{parent:this,id:"col_"+this.attr("qcellcols").length,width:this.attr("headercolwidth")+"px",move:!1}))}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._createHeaderCol",t.message),null}},r.QCELL.NormalQCELL.prototype._createCol=function(t,e){try{return r.QCELL.NormalQCELL.QCellCol.create(t,r._.extend(r._.clone(e),{parent:this,id:"col_"+this.attr("qcellcols").length}))}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._createCol",t.message),null}},r.QCELL.NormalQCELL.prototype._createColHeaderCells=function(t){try{for(var e=this.attr("hsinfo"),a=r.QCELL.def.css,o=this.attr("elementpool"),i=this.attr("headerrows"),s=this.attr("headercols"),l=this.attr("frozencols"),n=this.attr("rowheight").header,c=this.attr("cellmatrix").get("row"),d=this.attr("headertext"),h=o.get("colheaderinner"),_=this.attr("id"),u=0;u<i;u++){var p=0,C=u;void 0===c[u]&&c.push([]);for(var g=0;g<e.nDynamicCols;g++){var f=this._createCell(t,!1),L=g+s,m=this._getColWidth(L),E=this._getColType(L),b=this._getQCellCol(L).attr("style");if(f.setAttribute("data-row",C),f.setAttribute("data-col",L),f.setAttribute("id",_+"_cell_"+C+"_"+L),f.style.width=m+"px",f.style.height=n+"px",f.style.display="flex",f.style.justifyContent="center",f.style.alignItems="center",f.style.left=p+"px",f.style.top=n*u+"px",f.className+=" "+a.CELL_COLHEADER+" "+a.CELL_HEADERROWS+" "+(g<l?a.CELL_FROZENCOLS:a.CELL_NORMALCOLS)+" "+this._getColStyleClassName(L,"header")+" "+a.COLHEADER_AREA,!r._.isEmpty(b)){if(r._.isObject(b.header))for(var y=Object.keys(b.header),v=0;v<y.length;v++)r.$(f).css(y[v],b.header[y[v]]);this.attr("qcellcols")[L].attr("style",{header:b.header,data:b.data},"object")}var w=void 0===d[L][C]?"":d[L][C];"checkbox"===E||"html"===E?("checkbox"===E?f.className+=" "+a.COLHEADER_CELL_CHECKBOX+" "+a.COLHEADER_AREA:(this.attr("useall")||this.attr("usetreeall"))&&f.setAttribute("aria-hidden","true"),this._getColElement(L)._headershow(f,C,L)):(f.innerHTML=this._getHeaderCellSpan(w,C,L),(this.attr("useall")||this.attr("usetreeall"))&&f.setAttribute("aria-hidden","true"),(C===i-1||this._isLastHeaderRowMasterCell(C,L))&&this.attr("useGroupUI")&&r.$(f).draggable({helper:this._setGroupMakeHelper,revert:"invalid"})),0===C&&this._getQCellCol(L).attr("topmove")&&f.appendChild(this._getColHeaderDragDropArea()),(C===i-1||this._isLastHeaderRowMasterCell(C,L))&&(this._getQCellCol(L).attr("move")&&f.appendChild(this._getColHeaderDragDropArea()),this._getQCellCol(L).attr("search")&&f.appendChild(this._getColSearchArea()),this._getQCellCol(L).attr("sort")&&(r._.isUndefined(this._getQCellCol(L).attr("options").wholeselect)||!1===this._getQCellCol(L).attr("options").wholeselect)&&("checkbox"!==E||!1===this.attr("paginationinfo").totalsort||!1===r._.isUndefined(this.attr("paginationinfo"))&&r._.isUndefined(this.attr("paginationinfo").url))&&f.appendChild(this._getDefaultSortArea(L)),this._getQCellCol(L).attr("resize")&&f.appendChild(this._getColResizeArea()),this._getQCellCol(L).attr("filter")&&(this._getQCellCol(L).attr("colfilterarea",null,"jquery"),f.appendChild(this._getFilterArea(L))),this._getQCellCol(L).attr("editor")&&f.appendChild(this._getColStyleEditorArea()),this._getQCellCol(L).attr("remove")&&(f.appendChild(this._getDefaultRemoveArea(L)),this.attr("useRemoveUI",!0,"boolean"))),h.appendChild(f),c[u].push(f),p+=parseFloat(m)}}return this._createDataIndexPool(),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._createColHeaderCells",t.message),!1}},r.QCELL.NormalQCELL.prototype._getTitleHeader=function(t){for(var e=this._cellValue(0,t),r="",a=1;a<this.getRows("header");a++)""!==r&&(r+=","),r+=void 0===this._cellValue(a,t)?"":this._cellValue(a,t);return""!==r&&(r="( "+r+" )"),e+r},r.QCELL.NormalQCELL.prototype._getTitlekey=function(t,e,a,o,i){var s=this;if(!(e<this.attr("headerrows"))){var l,n,c,d,h=this._getColTitlekey(a),_=r.QCELL.def.css,u=this.getRows("header"),p=!0!==i?" 수정":"";if(u--,null!=h&&!0===r._.isFunction(h)){var C=this.getRowData(e);if(void 0===C)return;void 0!==(l=h(e,a,C))&&""!==l||(n=this._getTitleHeader(a),l=e-u+"행 "+n+"열 "+o+p),r.$(t).hasClass(_.CELL)?(t.setAttribute("role","gridcell"),void 0===t.getElementsByClassName("hide")[0]?(c=document.createElement("span"),r.util.addClass(c,"hide"),d=document.createTextNode(l),c.appendChild(d),t.insertBefore(c,t.firstChild)):r.$(t.getElementsByClassName("hide")[0]).text(l)):r.$(t).text(l)}else if(n=this._getTitleHeader(a),l=""!==p?e-u+"행 "+n+"열 "+o+p:e-u+"행 "+n+"열 "+p,r.$(t).hasClass(_.CELL)){var g=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(!0===g.grouped)for(var f=g.columnsinfo.keys(!0),L=0;L<f.length;L++)if(this._getColOfID(f[L])===a)return c=document.createElement("span"),r.util.addClass(c,"hide"),d=document.createTextNode(l),c.appendChild(d),void t.insertBefore(c,t.firstChild);if("html"===this._getColType(a)||"image"===this._getColType(a)||"checkbox"===this._getColType(a))void 0===t.getElementsByClassName("hide")[0]?(c=document.createElement("span"),r.util.addClass(c,"hide"),d=document.createTextNode(l),c.appendChild(d),t.insertBefore(c,t.firstChild)):r.$(t.getElementsByClassName("hide")[0]).text(l);else{var m=t.getElementsByTagName("button")[0],E=null;void 0!==m&&(E=m.cloneNode(!0)),r.$(t).html('<span class="hide">'+l+"</span>"+o),t.setAttribute("role","gridcell"),null!==E&&(E.onclick=function(t){s.focusCell(e,a),!0!==s.attr("oneclickedit")&&setTimeout((function(){s._editcell(e,a)}),100)},E.onfocus=function(t){s._focusCell(e,a),s._scrollToFocusCell(e,a)},t.appendChild(E))}}else r.$(t).text(l)}},r.QCELL.NormalQCELL.prototype._resetAriaLabel=function(t){for(var e=this.attr("vsinfo"),r=e.nTopRow;r<=e.nBottomRow;r++){var a=this._getCellDOM(r,t);if(null!=a){var o=this.getCellData(r,t);o=void 0===o?"":o,this._setAriaLabel(a,r,t,o,!1)}}},r.QCELL.NormalQCELL.prototype._setAriaLabel=function(t,e,a,o,i){var s=this,l=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=r.QCELL.def.css;if(o=void 0===o?"":o,l.grouped&&l.exclude.length>0){var c=0,d=this.getRowData(e);if(void 0!==l.level&&void 0!==d&&(c=d[l.level]),void 0!==c&&c>1)for(var h=0;h<l.exclude.length;h++)if(l.exclude[h]===this._getKeyOfCol(a)){o="",r.util.textContent(t,o);break}}if(this.attr("useall")||this.attr("usetreeall")){var _,u=this._getColType(a);if("input"===u||"selectmenu"===u||"datepicker"===u||"textarea"===u)if(0!==t.getElementsByClassName(n.TYPE_INPUT_EDIT_STYLE).length||this._isBottomPanel(t)){var p=t.getElementsByClassName(n.TYPE_INPUT_EDIT_STYLE)[0];!0===i&&r.$(p).focus(),this._getTitlekey(p,e,a,o),this._getTitlekey(t,e,a,o,!0)}else(_=document.createElement("button")).setAttribute("tabindex","0"),_.setAttribute("type","button"),_.className=n.TYPE_INPUT_EDIT_STYLE,t.appendChild(_),_.onclick=function(t){s.focusCell(e,a),!0!==s.attr("oneclickedit")&&setTimeout((function(){s._editcell(e,a)}),100)},_.onfocus=function(t){s._focusCell(e,a),s._scrollToFocusCell(e,a)},i&&r.$(_).focus(),this._getTitlekey(_,e,a,o),this._getTitlekey(t,e,a,o,!0);else this._getTitlekey(t,e,a,o,!0)}else{var C=this._getTitleHeader(a);t.setAttribute("aria-label",e+"행 "+C+"열 ")}},r.QCELL.NormalQCELL.prototype._setAriaLabelEx=function(t,e,r,a){if(!(r<this.getCols("header"))){var o=this.getCellLabel(e,r);this._setAriaLabel(t,e,r,o,a)}},r.QCELL.NormalQCELL.prototype._createViewPortCellsAll=function(t){try{var e,a,o,i,s,l,n,c,d=r.QCELL.def.rowgroup,h=r.QCELL.def.css,_=this.attr("elementpool").get("viewportinner"),u=this.attr("cellmatrix").get("row"),p=this.attr("currentdata"),C=this.attr("headerrows"),g=this.attr("headercols"),f=this.attr("frozencols"),L=this.attr("rowheight").data,m=this.attr("layoutsize").viewport.clientHeight,E=this.attr("vsinfo").nDynamicRows,b=this.attr("hsinfo").nDynamicCols,y=this.attr("highlightrepeat"),v=p.length,w=this.attr("emptymessage"),x=[],Q=[],S=this.attr("data").input,k="msie"===r.$.browser.name?0:2,T="panel"===this.attr("frozenbottomstyle"),R=this.attr("id");if(0===E&&0===S.length)r.$.trim(w).length>0&&!1!==this.attr("useemptymessage")&&(a=this._createEmptymessage(t),_.appendChild(a));else{var A=this.attr("cols"),q=this.attr("rows");for(this._setInitCellDisabled(q,A),this._setInitCellInvisible(q,A),e=0;e<E;e++){var B,O=e+C;for(i=0,t.cloneNode().setAttribute("role","rowgroup"),(c=t.cloneNode()).setAttribute("role","row"),c.setAttribute("aria-rowindex",O),B=this._getRowGroupOfDynamicRows(e),void 0===u[C+e]&&u.push([]),B===d.FROZENBOTTOM&&(O=v+C-(E-e)),s=0;s<b;s++){n=s+g;var D,I=this._getColType(n),N=this._getKeyOfCol(n),P=this._getQCellCol(n).attr("style");if(0===e&&(Q.push(this._useDataTextAlign(n)),x.push(this._getDataTextAlign(n))),l=this._getColTabindex(n),a=this._createCell(t,l),o=this._getColWidth(n),a.style.width=o+"px",a.style.height=L+"px",Q[s]&&(a.style.textAlign=x[s]),this._getColWordwrap(n)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=L-k+"px",a.style.left=i+"px",a.className+=" "+h.CELL_VIEWPORT+" "+(s<f?h.CELL_FROZENCOLS:h.CELL_NORMALCOLS)+" "+this._getColStyleClassName(n,"data"),a.setAttribute("data-row",O),a.setAttribute("data-col",n),a.setAttribute("id",R+"_cell_"+O+"_"+n),!r._.isEmpty(P)){if(r._.isObject(P.data))for(var M=Object.keys(P.data),U=0;U<M.length;U++)r.$(a).css(M[U],P.data[M[U]]);this.attr("qcellcols")[n].attr("style",{header:P.header,data:P.data},"object")}u[C+e].push(a),B===d.FROZENBOTTOM?(D=p[O-C][N],a.style.top=m-L*(E-e)+"px",!0===T?(I="static",a.className+=" "+h.CELL_FROZENBOTTOMROWS_PANEL):a.className+=" "+h.CELL_FROZENBOTTOMROWS):(D=p[e][N],a.style.top=L*e+"px",a.className+=" "+(B===d.FROZEN?h.CELL_FROZENROWS:h.CELL_NORMALROWS)),y>0&&(O-C+1)%y==0&&(a.className+=" "+h.CELL_HIGHLIGHTREPEAT),D=void 0===D?"":D;var H=this._showDataFormat(O,n,D);switch(!0===T&&B===d.FROZENBOTTOM&&(H=D,"checkbox"!==this._getColType(n)||!0!==H&&!1!==H||(H="")),I){case"input":case"number":case"slider":default:r.util.textContent(a,H),this._setAriaLabel(a,O,n,H);break;case"checkbox":case"image":case"html":case"chart":case"button":this._getColElement(n)._show(a,O,n);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":this._getColElement(n)._showDataLabel(a,O,n,D)}switch(I){case"input":a.className+=" "+h.TYPE_INPUT_CELL;break;case"inputbutton":a.className+=" "+h.TYPE_INPUTBUTTON_CELL;break;case"textarea":a.className+=" "+h.TYPE_TEXTAREA_CELL;break;case"selectmenu":a.className+=" "+h.TYPE_SELECTMENU_CELL;break;case"datepicker":a.className+=" "+h.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":a.className+=" "+h.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":a.className+=" "+h.TYPE_CHECKBOX_CELL;break;case"image":a.className+=" "+h.TYPE_IMAGE_CELL;break;case"html":a.className+=" "+h.TYPE_HTML_CELL;break;case"chart":a.className+=" "+h.TYPE_CHART_CELL;break;case"multicheckbox":a.className+=" "+h.TYPE_MULTICHECKBOX_CELL;break;case"number":a.className+=" "+h.TYPE_NUMBER_CELL;break;case"slider":a.className+=" "+h.TYPE_SLIDER_CELL;break;case"button":a.className+=" "+h.TYPE_BUTTON_CELL;break;case"editor":a.className+=" "+h.TYPE_EDITOR_CELL;break;default:a.className+=" "+h.TYPE_STATIC_CELL}_.appendChild(a),i+=parseFloat(o)}}}return this._setRoleTitle(this.attr("parent")),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._createViewPortCellsAll",t.message),!1}},r.QCELL.NormalQCELL.prototype._createViewPortCells=function(t){try{if(this.attr("useall")||this.attr("usetreeall"))return this._createViewPortCellsAll(t);var e,a,o,i,s,l,n=r.QCELL.def.rowgroup,c=r.QCELL.def.css,d=this.attr("elementpool").get("viewportinner"),h=this.attr("cellmatrix").get("row"),_=this.attr("currentdata"),u=this.attr("headerrows"),p=this.attr("headercols"),C=this.attr("frozencols"),g=this.attr("rowheight").data,f=this.attr("layoutsize").viewport.clientHeight,L=this.attr("vsinfo").nDynamicRows,m=this.attr("hsinfo").nDynamicCols,E=this.attr("highlightrepeat"),b=_.length,y=this.attr("emptymessage"),v=[],w=[],x=this.attr("data").input,Q="msie"===r.$.browser.name?0:2,S="panel"===this.attr("frozenbottomstyle"),k=this.attr("id");if(0===L&&0===x.length)r.$.trim(y).length>0&&!1!==this.attr("useemptymessage")&&(a=this._createEmptymessage(t),d.appendChild(a));else{var T=this.attr("cols"),R=this.attr("rows");for(this._setInitCellDisabled(R,T),this._setInitCellInvisible(R,T),L>b&&(L=b),e=0;e<L;e++){var A,q=e+u;for(i=0,A=this._getRowGroupOfDynamicRows(e),void 0===h[u+e]&&h.push([]),A===n.FROZENBOTTOM&&(q=b+u-(L-e)),s=0;s<m;s++){var B,O=s+p,D=this._getColType(O),I=this._getKeyOfCol(O),N=this._getQCellCol(O).attr("style");if(0===e&&(w.push(this._useDataTextAlign(O)),v.push(this._getDataTextAlign(O))),l=this._getColTabindex(O),a=this._createCell(t,l),o=this._getColWidth(O),a.style.width=o+"px",a.style.height=g+"px",w[s]&&(a.style.textAlign=v[s]),this._getColWordwrap(O)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=g-Q+"px",a.style.left=i+"px",a.className+=" "+c.CELL_VIEWPORT+" "+(s<C?c.CELL_FROZENCOLS:c.CELL_NORMALCOLS)+" "+this._getColStyleClassName(O,"data"),a.setAttribute("data-row",q),a.setAttribute("data-col",O),a.setAttribute("id",k+"_cell_"+q+"_"+O),!r._.isEmpty(N)){if(r._.isObject(N.data))for(var P=Object.keys(N.data),M=0;M<P.length;M++)r.$(a).css(P[M],N.data[P[M]]);this.attr("qcellcols")[O].attr("style",{header:N.header,data:N.data},"object")}h[u+e].push(a),A===n.FROZENBOTTOM?(B=_[q-u][I],a.style.top=f-g*(L-e)+"px",!0===S?(D="static",a.className+=" "+c.CELL_FROZENBOTTOMROWS_PANEL):a.className+=" "+c.CELL_FROZENBOTTOMROWS):(B=_[e][I],a.style.top=g*e+"px",a.className+=" "+(A===n.FROZEN?c.CELL_FROZENROWS:c.CELL_NORMALROWS)),E>0&&(q-u+1)%E==0&&(a.className+=" "+c.CELL_HIGHLIGHTREPEAT),B=null==B?"":B;var U=this._showDataFormat(q,O,B);switch(!0===S&&A===n.FROZENBOTTOM&&(U=B,"checkbox"!==this._getColType(O)||!0!==U&&!1!==U||(U="")),D){case"input":case"number":case"slider":case"inputdatepicker":default:r.util.textContent(a,U),this._setAriaLabel(a,q,O,U);break;case"checkbox":case"image":case"html":case"chart":case"button":this._getColElement(O)._show(a,q,O);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":this._getColElement(O)._showDataLabel(a,q,O,B)}switch(D){case"input":a.className+=" "+c.TYPE_INPUT_CELL;break;case"inputbutton":a.className+=" "+c.TYPE_INPUTBUTTON_CELL;break;case"textarea":a.className+=" "+c.TYPE_TEXTAREA_CELL;break;case"selectmenu":a.className+=" "+c.TYPE_SELECTMENU_CELL;break;case"datepicker":a.className+=" "+c.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":a.className+=" "+c.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":a.className+=" "+c.TYPE_CHECKBOX_CELL;break;case"image":a.className+=" "+c.TYPE_IMAGE_CELL;break;case"html":a.className+=" "+c.TYPE_HTML_CELL;break;case"chart":a.className+=" "+c.TYPE_CHART_CELL;break;case"multicheckbox":a.className+=" "+c.TYPE_MULTICHECKBOX_CELL;break;case"number":a.className+=" "+c.TYPE_NUMBER_CELL;break;case"slider":a.className+=" "+c.TYPE_SLIDER_CELL;break;case"button":a.className+=" "+c.TYPE_BUTTON_CELL;break;case"editor":a.className+=" "+c.TYPE_EDITOR_CELL;break;default:a.className+=" "+c.TYPE_STATIC_CELL}d.appendChild(a),i+=parseFloat(o)}}}return!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._createViewPortCells",t.message),!1}},r.QCELL.NormalQCELL.prototype._insertRows=function(t,e){try{var a=this,o=this.attr("vsinfo"),i=this.attr("currentdata"),s=this.attr("headerrows"),l=e.length,n=o.bVScroll,c=this.attr("rowheaderdata"),d=this.attr("rowheadercheckboxclick"),h=this.attr("originstate"),_=0;if(t>i.length&&!0===this.attr("makefrozenbottomdata")&&(t=i.length+s-1),this._onScrollHideEditCellsDOM(),this._setAddCellDisabled(t),this._setAddCellInvisible(t),i.RT_insertArray(t-s,e),!0===this.attr("pagesyncorgindata")){var u=this.attr("paginationinfo");_=(u.pageindex-1)*u.pageunit,this.attr("data").input.RT_insertArray(t+_-s,e);for(var p=0;p<l;p++)e[p].rt_qc_page_state="i"}this._updateCurrentData(i),c.RT_insertArray(t-s,[{}]),d.RT_insertArray(t-s,[{}]),this._updateRowheaderData(c,d),this._clearDynamicCSS("row","data"),this._makeRowUI(l,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,l,"i"),r._.each(r._.range(t,t+l),(function(e,r){a._setRowState(e,"i"),a.attr("original")&&h.i.push({nRow:t-s})})),this._refreshDRs(),this.attr("percentcolwidth")&&n!==o.bVScroll&&this._refreshDCs();for(var C=this.attr("rowheaders"),g=0;g<this.attr("headercols");g++)if("checkbox"===C[g])for(var f=this.attr("headerrows");f<this.getRows();f++){var L=this._getCellDOM(f,g);null===L||r.$(L).hasClass("rt-qc-cell-normalrows")||(L.classList+=" rt-qc-cell-normalrows rt-qc-rowheader-cell-checkbox")}return!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._insertRows",t.message),!1}},r.QCELL.NormalQCELL.prototype._deleteRows=function(t,e){try{var a,o,i,s=this,l=this.attr("vsinfo"),n=this.attr("currentdata"),c=this.attr("headerrows"),d=l.bVScroll,h=this.attr("rowheaderdata"),_=this.attr("rowheadercheckboxclick"),u=s.attr("originstate");if(t-c<0)return!1;if(t-c+e>n.length)return!1;if(this._onScrollHideEditCellsDOM(),this._setDeleteCellDisabled(t),this._setDeleteCellInvisible(t),e=e>n.length?n.length:e,a=n.splice(t-c,e),!0===this.attr("pagesyncorgindata")){var p=this.attr("paginationinfo"),C=(p.pageindex-1)*p.pageunit;this.attr("data").input.splice(t+C-c,e)}for(var g=0,f=a.length;g<f;g++)if("i"!==this._getRowState(t+g)&&s.attr("deletedrowsdata").push(a[g]),s.attr("original"))if("i"!==this._getRowState(t+g))u.d.push({nRow:t-c});else for(i=0;i<u.i.length;i++)u.i[i].nRow===t+g&&u.i.splice(i,1);return this._updateCurrentData(n),h.splice(t-c,e),_.splice(t-c,e),this._updateRowheaderData(h,_),o=this.attr("rows"),(this._idx("row","focus","current")>=o||this._getSelectedRows().sort(r.st.desc)[0]>=o)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(e,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,e,"d"),this._refreshDRs(),this.attr("percentcolwidth")&&d!==l.bVScroll&&this._refreshDCs(),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._deleteRows",t.message),!1}},r.QCELL.NormalQCELL.prototype._insertStaticRows=function(t,e){try{var a=this.attr("vsinfo"),o=this.attr("currentdata"),i=this.attr("headerrows"),s=e.length,l=a.bVScroll,n=this.attr("rowheaderdata"),c=this.attr("rowheadercheckboxclick"),d=this.attr("staticrowsinfo");if(t>this.getRows()&&(t=this.getRows()),this._onScrollHideEditCellsDOM(),o.RT_insertArray(t-i,e),this._updateCurrentData(o),n.RT_insertArray(t-i,[{}]),c.RT_insertArray(t-i,[{}]),!0===this.attr("pagesyncorgindata")){var h=this.attr("paginationinfo"),_=(h.pageindex-1)*h.pageunit;this.attr("data").input.RT_insertArray(t+_-i,e)}return this._updateRowheaderData(n,c),this._makeRowUI(s,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),r._.each(r._.range(t,t+s),(function(t,e){d.push({nRow:t})})),this._refreshDRs(),this.attr("percentcolwidth")&&l!==a.bVScroll&&this._refreshDCs(),this.setRowDisable(t,!0),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._insertRows",t.message),!1}},r.QCELL.NormalQCELL.prototype._deleteStaticRows=function(t,e){try{var a,o,i,s=this,l=this.attr("vsinfo"),n=this.attr("currentdata"),c=this.attr("headerrows"),d=l.bVScroll,h=this.attr("rowheaderdata"),_=this.attr("rowheadercheckboxclick"),u=s.attr("originstate"),p=this.attr("staticrowsinfo"),C=this.attr("headercols"),g=this.attr("cols"),f=r.QCELL.def.css;for(this._onScrollHideEditCellsDOM(),i=C;i<g;i++){var L=this._getCellDOM(t,i),m=this._getColID(i);r._.isUndefined(L)||r.util.removeClass(L,f.STATIC_ROW+" "+f.STATIC_ROW+"-"+m)}if(this._setDeleteCellDisabled(t),this._setDeleteCellInvisible(t),e=e>n.length?n.length:e,a=n.splice(t-c,e),!0===this.attr("pagesyncorgindata")){var E=this.attr("paginationinfo"),b=(E.pageindex-1)*E.pageunit;this.attr("data").input.splice(t+b-c,e)}for(var y=0,v=a.length;y<v;y++){if("i"!==this._getRowState(t+y)&&s.attr("deletedrowsdata").push(a[y]),s.attr("original"))if("i"!==this._getRowState(t+y))u.d.push({nRow:t-c});else for(i=0;i<u.i.length;i++)u.i[i].nRow===t+y&&u.i.splice(i,1);for(i=0;i<p.length;i++)p[i].nRow===t+y&&p.splice(i,1)}return this._updateCurrentData(n),h.splice(t-c,e),_.splice(t-c,e),this._updateRowheaderData(h,_),o=this.attr("rows"),(this._idx("row","focus","current")>=o||this._getSelectedRows().sort(r.st.desc)[0]>=o)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(e,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,e,"d"),this._deleteDStates(),this._refreshDRs(),this.attr("percentcolwidth")&&d!==l.bVScroll&&this._refreshDCs(),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._deleteStaticRows",t.message),!1}},r.QCELL.NormalQCELL.prototype._insertRowsEx=function(t){try{var e,a=this,o=this.attr("vsinfo"),i=this.attr("currentdata"),s=this.attr("headerrows"),l=t.length,n=o.bVScroll,c=this.attr("rowheaderdata"),d=this.attr("rowheadercheckboxclick"),h=a.attr("originstate");return this._onScrollHideEditCellsDOM(),t.sort((function(t,e){return e[0]-t[0]})),e=r._.pluck(t,0),r._.each(t,(function(t){if(i.RT_insert(t[0]-s,t[1]),c.RT_insertArray(t[0]-s,[{}]),d.RT_insertArray(t[0]-s,[{}]),!0===a.attr("pagesyncorgindata")){var e=a.attr("paginationinfo"),r=(e.pageindex-1)*e.pageunit;a.attr("data").input.RT_insertArray(t[0]+r-s,[{rt_qc_page_state:"i"}])}})),this._updateCurrentData(i),this._updateRowheaderData(c,d),this._makeRowUI(l,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfoEx(e,"i"),r._.each(e,(function(t,e){a._setAddCellDisabled(t),a._setAddCellInvisible(t),a._setRowState(t+(l-e-1),"i"),a.attr("original")&&h.i.push({nRow:t-s})})),this._refreshDRs(),this.attr("percentcolwidth")&&n!==o.bVScroll&&this._refreshDCs(),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._insertRowsEx",t.message),!1}},r.QCELL.NormalQCELL.prototype._deleteRowsEx=function(t){try{var e,a=this,o=this.attr("vsinfo"),i=this.attr("currentdata"),s=this.attr("headerrows"),l=o.bVScroll,n=this.attr("rowheaderdata"),c=this.attr("rowheadercheckboxclick"),d=a.attr("originstate");this._onScrollHideEditCellsDOM(),t.sort(r.st.desc);var h=!1,_=!1;return r._.each(t,(function(t){t-s<0?_=!0:t-s>=i.length&&(h=!0)})),!0!==_&&(!0!==h&&(r._.each(t,(function(t){a._setDeleteCellDisabled(t),a._setDeleteCellInvisible(t);var e=i.splice(t-s,1);if(n.splice(t-s,1),c.splice(t-s,1),!0===a.attr("pagesyncorgindata")){var r=a.attr("paginationinfo"),o=(r.pageindex-1)*r.pageunit;a.attr("data").input.splice(t+o-s,1)}if(e.length>0&&"i"!==a._getRowState(t)&&a.attr("deletedrowsdata").push(e[0]),a.attr("original"))if("i"!==this._getRowState(t))d.d.push({nRow:t-s});else for(var l=0;l<d.i.length;l++)d.i[l].nRow===t-s&&d.i.splice(l,1)})),this._updateCurrentData(i),this._updateRowheaderData(n,c),e=this.attr("rows"),(this._idx("row","focus","current")>=e||this._getSelectedRows().sort(r.st.desc)[0]>=e)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(t.length,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfoEx(t,"d"),this._refreshDRs(),this.attr("percentcolwidth")&&l!==o.bVScroll&&this._refreshDCs(),!0))}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._deleteRowsEx",t.message),!1}},r.QCELL.NormalQCELL.prototype._checkRequired=function(t){try{var e,a,o,i=[],s=this.attr("headercols"),l=this.attr("headerrows"),n=this.attr("cols"),c=this.attr("rows");for(a=s;a<n;a++)if(this._getQCellCol(a).attr("required"))for(e=l;e<c;e++)"string"==typeof(o=this._cellValue(e,a))?""!==(o=o.trim())&&null!=o||i.push({row:e,col:a}):null==o&&i.push({row:e,col:a});return i}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._checkRequired",t.message),[]}},r.QCELL.NormalQCELL.prototype._processValueChanged=function(t,e){var r,a,o=this.attr("rowheaders");for(r=0;r<o.length;r++)"state"===o[r]&&void 0!==(a=this._getCellDOM(t,r))&&this._setRowheaderState(a,t);null!=(a=this._getCellDOM(t,e))&&this._setAriaLabelEx(a,t,e),this._setMergedData(t,e),this._updateIdx("valuechanged",t,e),this._trigger("valuechanged"),!0===this.attr("treestate").grouped&&(this._setTreeState(t,"u"),this._treeRefresh(t,e))},r.QCELL.NormalQCELL.prototype._setMergedData=function(t,e){var r=this.attr("merge"),a=this._getColType(e),o=this.getCellData(t,e),i="";if("none"!==r.data){var s=r.data;if("checkbox"===a){var l=this._getColElement(e).attr("checkedvalue"),n=this._getColElement(e).attr("uncheckedvalue");i=o===l?n:l,"col"===s?this._setMergedDataSub_Col(t,e,o,i):"group"===s&&this._setMergedDataSub_Group(t,e,o,i)}}},r.QCELL.NormalQCELL.prototype._setMergedDataSub_Col=function(t,e,r,a){var o;for(o=t-1;o>=this.getRows("header")&&a===this.getCellData(o,e);o--)this.setCellData(o,e,r);for(o=t+1;o<this.getRows()&&a===this.getCellData(o,e);o++)this.setCellData(o,e,r)},r.QCELL.NormalQCELL.prototype._setMergedDataSub_Group=function(t,e,r,a){var o,i,s=this.getRows("header"),l=this.getRows();for(i=this.getCols("header");i<=e;i++){var n=this.getCellData(t,i);if(i===e&&(n=a),t-1>=this.getCols("header"))if(n===this.getCellData(t-1,i)){for(o=t;o>=s;o--)if((o!==t||i!==e)&&n!==this.getCellData(o,i)){s=o;break}}else s=t;for(o=t;o<l;o++)if((o!==t||i!==e)&&n!==this.getCellData(o,i)){l=o;break}}for(o=s;o<l;o++)this.setCellData(o,e,r)},r.QCELL.NormalQCELL.prototype._divisionSubmit=function(t,e){try{var a=0,o=0,i=this,s=function(t){t=t instanceof Object?t:JSON.parse(t),a=t instanceof Object?t.totalcnt:r._.clone(JSON.parse(t.totalcnt));var e=t instanceof Object&&t.data instanceof Object?r._.clone(t.data):r._.clone(JSON.parse(t.data)),o=i.attr("currentdata").length;if(o+e.length>a)for(var s=a;s<o+e.length;s++)e.pop();i._insertRows(i.attr("currentdata").length+1,e)};do{o++,r.$.ajax({url:t,async:!1,method:"POST",data:{pageindex:o,pagecnt:e}}).done(s)}while(i.attr("currentdata").length<a)}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._divisionSubmit",t.message),!1}return!0},r.QCELL.NormalQCELL.prototype._getCellLabel=function(t,e,a){var o="";switch(this._getColType(e)){case"checkbox":case"image":case"textarea":o=this._cellValue(t,e);break;case"selectmenu":var i=this._getColElement(e),s=this._cellValue(t,e),l=i._getDataArray();if(null==l)break;for(var n=0;n<l.length;n++)l[n].value===s&&(o=l[n].label);break;default:o=r.QCELL.BasicQCELL.prototype._getCellLabel.call(this,t,e,a)}return o},r.QCELL.NormalQCELL.prototype._getLabelByData=function(t,e){var r="";switch(this._getColType(t)){case"selectmenu":var a=this._getColElement(t)._getDataArray();if(null==a)break;for(var o=0;o<a.length;o++)a[o].value===e&&(r=a[o].label);break;default:r=null}return r},r.QCELL.NormalQCELL.prototype._getDataByLabel=function(t,e){var r="";switch(this._getColType(t)){case"selectmenu":var a=this._getColElement(t)._getDataArray();if(null==a)break;for(var o=0;o<a.length;o++)a[o].label===e&&(r=a[o].value);break;default:r=null}return r},r.QCELL.NormalQCELL.prototype._setInitCellDisabled=function(t,e){for(var r=0;r<e;r++)for(var a=this._getQCellCol(r).attr("celldisabled"),o=this._getQCellCol(r).attr("disabled"),i=0;i<t;i++)a.push(o)},r.QCELL.NormalQCELL.prototype._setAddCellDisabled=function(t){for(var e=this.attr("cols"),r=0;r<e;r++){var a=this._getQCellCol(r).attr("celldisabled"),o=this._getQCellCol(r).attr("disabled");a.splice(t,0,o)}},r.QCELL.NormalQCELL.prototype._setDeleteCellDisabled=function(t){for(var e=this.attr("cols"),r=0;r<e;r++)this._getQCellCol(r).attr("celldisabled").splice(t,1)},r.QCELL.NormalQCELL.prototype._setCellDisabled=function(t,e,a,o){try{var i,s,l,n=this._getSyncInfo("row"),c=this._getSyncInfo("col"),d=this._getIdxInfo("celldisabled","row"),h=this._getIdxInfo("celldisabled","col"),_=this,u=-1;if("static"===this._getQCellCol(e).attr("type"))void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(l=this._getCellDOM(t,e).childNodes[0],(r.util.hasClass(l,r.QCELL.def.css.CELL_ROWHEADER_CHECKBOX)||r.util.hasClass(l,r.QCELL.def.css.CELL_ROWHEADER_RADIO))&&(this._setRowheaderDisable(t,e,a),!0===a?l.setAttribute("disabled","disabled"):l.removeAttribute("disabled")));else if("checkbox"===this._getQCellCol(e).attr("type")||"button"===this._getQCellCol(e).attr("type")){if(void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(l=this._getCellDOM(t,e).childNodes[0]).childNodes.length>0){var p=l.childNodes[0];!0===a?p.setAttribute("disabled","disabled"):p.removeAttribute("disabled")}}else"image"===this._getQCellCol(e).attr("type")&&void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(l=this._getCellDOM(t,e).childNodes[0],!0===a?l.onclick=null:!1===r._.isUndefined(this._getColOptions(e).imageclick)&&(u=e,l.onclick=function(t){window[_._getColOptions(u).imageclick](t)}));return this._getQCellCol(e).attr("celldisabled")[t]=a,!1===n.containsKey(t)&&n.put(t,new window._QHashSet),n.get(t).add("celldisabled"),!1===d.containsKey(t)&&d.put(t,new window._QHashtable),(i=d.get(t)).containsKey(e)?!1===a?i.remove(e):i.put(e,r._.extend(i.get(e),a)):!1===a?i.remove(e):i.put(e,r._.clone(a)),!1===c.containsKey(e)&&c.put(e,new window._QHashSet),c.get(e).add("style"),!1===h.containsKey(e)&&h.put(e,new window._QHashtable),(s=h.get(e)).containsKey(t)?!0===a?s.put(t,r._.extend(s.get(t),a)):s.remove(t):!0===a?s.put(t,r._.clone(a)):s.remove(t),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._setCellDisabled",t.message),!1}},r.QCELL.NormalQCELL.prototype._clearCellDisabled=function(){var t,e,a,o=this.attr("headerrows"),i=this.attr("headercols"),s=this.attr("rows"),l=this.attr("cols"),n=this,c=-1,d=function(t){window[n._getColOptions(c).imageclick](t)};for(a=0;a<i;a++)for(e=o;e<s;e++)!0===this._getQCellCol(a).attr("celldisabled")[e]&&("static"===this._getQCellCol(a).attr("type")&&void 0!==this._getCellDOM(e,a)&&null!==this._getCellDOM(e,a)&&this._getCellDOM(e,a).childNodes.length>0&&(t=this._getCellDOM(e,a).childNodes[0],(r.util.hasClass(t,r.QCELL.def.css.CELL_ROWHEADER_CHECKBOX)||r.util.hasClass(t,r.QCELL.def.css.CELL_ROWHEADER_RADIO))&&(this._setRowheaderDisable(e,a,!1),t.removeAttribute("disabled"))),this._getQCellCol(a).attr("celldisabled")[e]=!1);for(a=i;a<l;a++)for(e=o;e<s;e++)!0===this._getQCellCol(a).attr("celldisabled")[e]&&("checkbox"===this._getQCellCol(a).attr("type")||"button"===this._getQCellCol(a).attr("type")?void 0!==this._getCellDOM(e,a)&&null!==this._getCellDOM(e,a)&&this._getCellDOM(e,a).childNodes.length>0&&(t=this._getCellDOM(e,a).childNodes[0]).childNodes.length>0&&t.childNodes[0].removeAttribute("disabled"):"image"===this._getQCellCol(a).attr("type")&&void 0!==this._getCellDOM(e,a)&&null!==this._getCellDOM(e,a)&&this._getCellDOM(e,a).childNodes.length>0&&(t=this._getCellDOM(e,a).childNodes[0],!1===r._.isUndefined(this._getColOptions(a).imageclick)&&(c=a,t.onclick=d)),this._getQCellCol(a).attr("celldisabled")[e]=!1)},r.QCELL.NormalQCELL.prototype._setRowheaderDisable=function(t,e,r){this.attr("rowheadercheckboxclick")[t][e]=!r},r.QCELL.NormalQCELL.prototype._checkValidationOfGroupProps=function(t){var e=this;return r.QCELL.BasicQCELL.prototype._checkValidationOfGroupProps.call(this,t)&&r._.every(t.columns,(function(t,r){var a=e._getColsOfKey(t.key);if(a.length>0){var o=a[0];return e._checkGroupPossibilityOfCol(o)}return!0}))},r.QCELL.NormalQCELL.prototype._checkGroupPossibilityOfCol=function(t){var e=!0;switch(this._getColType(t)){case"checkbox":case"image":case"html":case"selectmenu":case"chart":e=!1}return e},r.QCELL.NormalQCELL.prototype.onHScroll=function(t){this._onScrollHideEditCellsDOM(),r.QCELL.BasicQCELL.prototype.onHScroll.call(this,t)},r.QCELL.NormalQCELL.prototype._setInitCellInvisible=function(t,e){for(var r=0;r<e;r++)for(var a=this._getQCellCol(r).attr("cellinvisible"),o=this._getQCellCol(r).attr("invisibled"),i=0;i<t;i++)a.push(o)},r.QCELL.NormalQCELL.prototype._setAddCellInvisible=function(t){for(var e=this.attr("cols"),r=0;r<e;r++){var a=this._getQCellCol(r).attr("cellinvisible"),o=this._getQCellCol(r).attr("invisibled");a.splice(t,0,o)}},r.QCELL.NormalQCELL.prototype._setDeleteCellInvisible=function(t){for(var e=this.attr("cols"),r=0;r<e;r++)this._getQCellCol(r).attr("cellinvisible").splice(t,1)},r.QCELL.NormalQCELL.prototype._setCellInvisible=function(t,e,a){try{var o,i,s,l=this._getSyncInfo("row"),n=this._getSyncInfo("col"),c=this._getIdxInfo("cellinvisible","row"),d=this._getIdxInfo("cellinvisible","col");if(void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)){var h=document.createElement("div");h.className+=r.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE,h.setAttribute("data-row",t),h.setAttribute("data-col",e),a?this._getCellDOM(t,e).childNodes.length>0&&(s=r._.isElement(this._getCellDOM(t,e).childNodes[0])?this._getCellDOM(t,e).childNodes[0]:this._getCellDOM(t,e),parseInt(s.getAttribute("data-row"))===t&&(r.$(s).hasClass(r.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)||(r.$("#cell_"+t+"_"+e).prepend(h),r.$(s).css({visibility:"hidden"})))):this._getCellDOM(t,e).childNodes.length>0&&(s=r._.isElement(this._getCellDOM(t,e).childNodes[0])?this._getCellDOM(t,e).childNodes[0]:this._getCellDOM(t,e),parseInt(s.getAttribute("data-row"))===t&&(r.$(s).hasClass(r.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)?r.$(s).remove():r.$(s).hasClass(r.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)||r.$(s).css({visibility:"visible"})))}return this._getQCellCol(e).attr("cellinvisible")[t]=a,!1===l.containsKey(t)&&l.put(t,new window._QHashSet),l.get(t).add("celldisabled"),!1===c.containsKey(t)&&c.put(t,new window._QHashtable),(o=c.get(t)).containsKey(e)?o.put(e,r._.extend(o.get(e),a)):o.put(e,r._.clone(a)),!1===n.containsKey(e)&&n.put(e,new window._QHashSet),n.get(e).add("style"),!1===d.containsKey(e)&&d.put(e,new window._QHashtable),(i=d.get(e)).containsKey(t)?i.put(t,r._.extend(i.get(t),a)):i.put(t,r._.clone(a)),!0}catch(t){return r.QCELL.log("err","QCELL.NormalQCELL._setCellInvisible",t.message),!1}},r.QCELL.NormalQCELL.prototype._clearCellInvisible=function(){for(var t,e=this.attr("headerrows"),a=this.attr("headercols"),o=this.attr("rows"),i=this.attr("cols"),s=e;s<o;s++)for(var l=a;l<i;l++){if(null!=(t=this._getCellDOM(s,l))&&t.childNodes.length>0){var n=t.childNodes[0];r.$(n).hasClass(r.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)&&r.$(n).remove()}this._getQCellCol(l).attr("cellinvisible")[s]=!1,t=null}},r.QCELL.NormalQCELL.prototype._singleSort=function(t,e,a){this._onScrollHideEditCellsDOM(),this._trigger("beforesort");var o=this;!0===this.attr("paginationinfo").totalsort&&this._movePage(1);var i,s,l,n,c,d,h,_=r._.isString(t)?t:this._getKeyOfCol(t),u=this.attr("headerrows"),p=this.attr("headercols"),C=this.attr("cols"),g=this.attr("currentdata"),f=this._getIdxInfo("style","row"),L=this._getIdxInfo("style","col"),m=this._getSyncInfo("row"),E=this._getSyncInfo("col"),b="rt_styleidxinfo",y="rt_syncinfo",v="rt_originrow",w=this._getIdxInfo("state","row"),x="rt_stateidxinfo",Q=new window._QHashSet,S=this._getIdxInfo("celldisabled","row"),k="rt_celldisabledidxinfo",T=this._getIdxInfo("cellinvisible","row"),R=this._getIdxInfo("cellinvisible","col"),A="rt_cellinvisibleidxinfo",q=[];if(r._.isNumber(t)){var B=this._getColFormat(t);null!=B&&void 0!==B.beforeformat&&r._.isFunction(B.beforeformat)&&(_="_rt_qc_bf_"+_)}if(!0===this.attr("makefrozenbottomdata")&&g.length>0&&!0===g[g.length-1].rt_qc_fbrd&&g.pop(),!0!==this.attr("isfirstsort")&&g.length>0){for(i=0;i<g.length;i++)g[i]._rt_qc_s_i=i;this.attr("isfirstsort",!0,"boolean")}m.size()>0&&m.each((function(t,e){t>g.length||r._.each(e.values(),(function(e){switch(e){case"style":case"state":case"celldisabled":case"cellinvisible":Q.add(t)}}))}));var O=[],D=[];if(Q.values().length>0){var I=this;if(I._clearDynamicCSS("row","data"),I._clearCellDisabled(),I._clearCellInvisible(),r._.each(Q.values(),(function(t){t-u>=0&&(-1!==r._.indexOf(f.keys().sort(r.st.asc),t,!0)&&(g[t-u][b]=f.remove(t)),-1!==r._.indexOf(w.keys().sort(r.st.asc),t,!0)&&(g[t-u][x]=w.remove(t)),-1!==r._.indexOf(S.keys().sort(r.st.asc),t,!0)&&(g[t-u][k]=S.remove(t)),-1!==r._.indexOf(T.keys().sort(r.st.asc),t,!0)&&(g[t-u][A]=T.remove(t)),g[t-u][y]=m.remove(t),g[t-u][v]=t)})),!0===this.attr("_isGTF")||this.attr("_isGTH"))for(i=g.length-1;i>=0;i--)void 0!==g[i]._rtqc_state&&"gt"===g[i]._rtqc_state&&(h=r._.clone(g[i]),q.push({row:i,obj:h}),g.splice(i,1));if("none"===e?r.util.RT_sortBy(g,"_rt_qc_s_i",e,a):r.util.RT_sortBy(g,_,e,a),q.length>0)for(c=q.length-1;c>=0;c--)(d=[]).push(q[c].obj),g.RT_insertArray(q[c].row,d);for(i=0;i<g.length;i++){var N=g[i][b],P=g[i][x],M=g[i][k],U=g[i][A],H=g[i][y],F=g[i][v];if(delete g[i][b],delete g[i][x],delete g[i][k],delete g[i][A],delete g[i][y],delete g[i][v],void 0!==g[i]._rt_qc_style){for(var z in g[i]._rt_qc_style){var j=this._getColsOfKey(z)[0];if(void 0===j)break;var G=r._.clone(g[i]._rt_qc_style[z]);G.col=j,G.key=z,O.push({row:i+o.getRows("header"),style:G})}delete g[i]._rt_qc_style}if(H&&F){if(N)for(f.put(i+u,N),s=0;s<C;s++)if(null!==L.get(s))for(l=0;l<L.get(s).keys().length;l++)(n=L.get(s).keys()[l])===F&&L.get(s).put(i+u,L.get(s).remove(n));if(P&&w.put(i+u,P),M)for(s=p;s<C;s++)!0===M.get(s)&&D.push({row:i+u,col:s});if(U)for(T.put(i+u,U),s=0;s<C;s++)if(null!==R.get(s))for(l=0;l<R.get(s).keys().length;l++)n=R.get(s).keys()[l],!1===I._getQCellCol(s).attr("cellinvisible")[i+u]&&I._setCellInvisible(i+u,s,!0),n===F&&R.get(s).put(i+u,R.get(s).remove(n));m.put(i+u,H)}}}else{if(!0===this.attr("_isGTF")||this.attr("_isGTH"))for(i=g.length-1;i>=0;i--)void 0!==g[i]._rtqc_state&&"gt"===g[i]._rtqc_state&&(h=r._.clone(g[i]),q.push({row:i,obj:h}),g.splice(i,1));if("none"===e?r.util.RT_sortBy(g,"_rt_qc_s_i",e,a):r.util.RT_sortBy(g,_,e,a),q.length>0)for(c=q.length-1;c>=0;c--)(d=[]).push(q[c].obj),g.RT_insertArray(q[c].row,d)}if(!1===E.containsKey(t)&&E.put(t,new window._QHashSet),E.get(t).add("sort"),r._.each(E.keys(),(function(e){e!==t&&E.get(e).contains("sort")&&(E.get(e).remove("sort"),E.get(e).isEmpty()&&E.remove(e))})),r._.isNumber(t)&&setTimeout((function(){o.attr("qcellcols")[t]._initUserColStyle(),o.attr("qcellcols")[t]._initUserColStyle()}),0),this._setCurrentData(g,!1,!0),setTimeout((function(){o._trigger("aftersort")})),this.attr("isSorting",!1,"boolean"),O.length>0)for(var W=0;W<O.length;W++)this.setCellStyle(O[W].row,O[W].style.col,O[W].style.style);for(s=p;s<C;s++)(!0===this._getQCellCol(s).attr("_coldisable")||this._getGridCol(s).attr("disabled"))&&this.setColDisable(s,!0);if(D.length>0)for(c=0;c<D.length;c++)this._setCellDisabled(D[c].row,D[c].col,!0)},r.QCELL.NormalQCELL.prototype._multiSort=function(t){this._onScrollHideEditCellsDOM(),this._trigger("beforesort"),!0===this.attr("paginationinfo").totalsort&&this._movePage(1);var e,a,o,i,s,l,n,c,d=[],h=this.attr("headerrows"),_=this.attr("headercols"),u=this.attr("cols"),p=this.attr("currentdata"),C=this._getIdxInfo("style","row"),g=this._getIdxInfo("style","col"),f=this._getSyncInfo("row"),L=this._getSyncInfo("col"),m="rt_styleidxinfo",E="rt_syncinfo",b="rt_originrow",y=this._getIdxInfo("state","row"),v="rt_stateidxinfo",w=new window._QHashSet,x=this._getIdxInfo("celldisabled","row"),Q="rt_celldisabledidxinfo",S=this._getIdxInfo("cellinvisible","row"),k=this._getIdxInfo("cellinvisible","col"),T="rt_cellinvisibleidxinfo",R=this,A=[],q=[];for(!0===this.attr("makefrozenbottomdata")&&p.length>0&&!0===p[p.length-1].rt_qc_fbrd&&p.pop(),f.size()>0&&f.each((function(t,e){t>p.length||r._.each(e.values(),(function(e){switch(e){case"style":case"state":case"celldisabled":case"cellinvisible":w.add(t)}}))})),r._.each(t,(function(t){d.push(r._.clone(t))})),a=0;a<d.length;a++)e=r._.isString(d[a][0])?d[a][0]:this._getKeyOfCol(d[a][0]),d[a][0]=e;if(w.values().length>0){var B=this;if(B._clearDynamicCSS("row","data"),B._clearCellDisabled(),B._clearCellInvisible(),r._.each(w.values(),(function(t){-1!==r._.indexOf(C.keys().sort(r.st.asc),t,!0)&&(p[t-h][m]=C.remove(t)),-1!==r._.indexOf(y.keys().sort(r.st.asc),t,!0)&&(p[t-h][v]=y.remove(t)),-1!==r._.indexOf(x.keys().sort(r.st.asc),t,!0)&&(p[t-h][Q]=x.remove(t)),-1!==r._.indexOf(S.keys().sort(r.st.asc),t,!0)&&(p[t-h][T]=S.remove(t)),p[t-h][E]=f.remove(t),p[t-h][b]=t})),!0===this.attr("_isGTF")||this.attr("_isGTH"))for(a=p.length-1;a>=0;a--)void 0!==p[a]._rtqc_state&&"gt"===p[a]._rtqc_state&&(c=r._.clone(p[a]),q.push({row:a,obj:c}),p.splice(a,1));if(r.util.RT_sortBy(p,d),q.length>0)for(l=q.length-1;l>=0;l--)(n=[]).push(q[l].obj),p.RT_insertArray(q[l].row,n);for(a=0;a<p.length;a++){var O=p[a][m],D=p[a][v],I=p[a][Q],N=p[a][T],P=p[a][E],M=p[a][b];if(delete p[a][m],delete p[a][v],delete p[a][Q],delete p[a][T],delete p[a][E],delete p[a][b],P&&M){if(O)for(C.put(a+h,O),o=0;o<u;o++)if(null!==g.get(o))for(i=0;i<g.get(o).keys().length;i++)(s=g.get(o).keys()[i])===M&&g.get(o).put(a+h,g.get(o).remove(s));if(D&&y.put(a+h,D),I)for(o=_;o<u;o++)!0===I.get(o)&&A.push({row:a+h,col:o});if(N)for(S.put(a+h,N),o=0;o<u;o++)if(null!==k.get(o))for(i=0;i<k.get(o).keys().length;i++)s=k.get(o).keys()[i],!1===B._getQCellCol(o).attr("cellinvisible")[a+h]&&B._setCellInvisible(a+h,o,!0),s===M&&k.get(o).put(a+h,k.get(o).remove(s));f.put(a+h,P)}}}else{if(!0===this.attr("_isGTF")||this.attr("_isGTH"))for(a=p.length-1;a>=0;a--)void 0!==p[a]._rtqc_state&&"gt"===p[a]._rtqc_state&&(c=r._.clone(p[a]),q.push({row:a,obj:c}),p.splice(a,1));if(r.util.RT_sortBy(p,d),q.length>0)for(l=q.length-1;l>=0;l--)(n=[]).push(q[l].obj),p.RT_insertArray(q[l].row,n)}for(r._.each(t,(function(t){!1===L.containsKey(t[0])&&L.put(t[0],new window._QHashSet),L.get(t[0]).add("sort")})),this._setCurrentData(p),setTimeout((function(){R._trigger("aftersort")})),o=_;o<u;o++)!0===this._getQCellCol(o).attr("_coldisable")&&this.setColDisable(o,!0);if(A.length>0)for(l=0;l<A.length;l++)this._setCellDisabled(A[l].row,A[l].col,!0);this.attr("isSorting",!1,"boolean")},r.QCELL.NormalQCELL.prototype._getRowState=function(t){var e=this._getIdxInfo("state","row");return e.containsKey(t)?e.get(t):"n"},r.QCELL.NormalQCELL.prototype._setRowState=function(t,e){var r,a=this.attr("rowheaders"),o=this._getIdxInfo("state","row"),i=!1;switch(e){case"i":case"u":if("later"===this.attr("statetype")&&"u"===e&&"d"===this._getRowState(t))break;if("u"===e&&"i"===this._getRowState(t))break;o.put(t,e),i=!0;break;case"d":"later"===this.attr("statetype")&&(o.put(t,e),i=!0)}if(i){var s=this._getSyncInfo("row");!1===s.containsKey(t)&&s.put(t,new window._QHashSet),s.get(t).add("state")}for(var l=0;l<a.length;l++)"state"===a[l]&&null!=(r=this._getCellDOM(t,l))&&this._setRowheaderState(r,t);return i},r.QCELL.NormalQCELL.prototype._removeRowState=function(t){var e=this._getIdxInfo("state","row"),r=this.attr("rowheaders"),a=!1;if(e.containsKey(t)&&(e.remove(t),a=!0),a){var o=this._getSyncInfo("row");if(o.containsKey(t)){var i=o.get(t);i.remove("state"),i.isEmpty()&&o.remove(t)}}for(var s=0;s<r.length;s++)if("state"===r[s]){var l=this._getCellDOM(t,s);null!=l&&this._setRowheaderState(l,t)}return a},r.QCELL.NormalQCELL.prototype._clearRowStates=function(){var t=this._getIdxInfo("state","row"),e=this._getSyncInfo("row"),a=this.attr("rowheaders");r._.each(t.keys(),(function(t){if(e.containsKey(t)){var r=e.get(t);r.remove("state"),r.isEmpty()&&e.remove(t)}})),t.clear();for(var o=0;o<a.length;o++)if("state"===a[o])for(var i=this.getRows("header");i<this.getRows();i++){var s=this._getCellDOM(i,o);null!=s&&this._setRowheaderState(s,i)}return!0},r.QCELL.NormalQCELL.prototype._updateRowState=function(t,e){var r=!1;return"u"===e?"i"!==this._getRowState(t)&&(this._setRowState(t,e),r=!0):r=this._setRowState(t,e),r},r.QCELL.NormalQCELL.prototype._getState=function(t){var e,a=this,o=this._getIdxInfo("state","row"),i=this.attr("headerrows");return e=[],"d"===t&&"later"!==this.attr("statetype")?r._.each(this.attr("deletedrowsdata"),(function(t){e.push({row:-1,data:t})})):o.each((function(o,s){if(s===t){var l={row:o,data:a._getRowData(o)};if("i"===t)e.push(l);else if(a.attr("original")){var n=a.attr("origindata")[o-i];r._.isMatch(l.data,n)?l=r._.reject(e[s],(function(t){return t.row===o})):e.push(l)}else e.push(l)}})),e.sort((function(t,e){return t.row-e.row})),e},r.QCELL.NormalQCELL.prototype._clearStates=function(){var t=this._getIdxInfo("state","row"),e=this._getSyncInfo("row"),a=this.attr("rowheaders");this.attr("deletedrowsdata",[],"array"),r._.each(t.keys(),(function(t){if(e.containsKey(t)){var r=e.get(t);r.remove("state"),r.isEmpty()&&e.remove(t)}})),t.clear();for(var o=0;o<a.length;o++)if("state"===a[o])for(var i=this.getRows("header");i<this.getRows();i++){var s=this._getCellDOM(i,o);null!=s&&this._setRowheaderState(s,i)}return!0},r.QCELL.NormalQCELL.prototype._deleteDStates=function(){"later"!==this.attr("statetype")&&this.attr("deletedrowsdata").pop(),this.attr("original")&&this.attr("originstate").d.pop()},r.QCELL.NormalQCELL.prototype._getStates=function(){var t,e=this,a=this._getIdxInfo("state","row"),o=this.attr("headerrows");if(t={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&r._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),a.each((function(a,i){var s={row:a,data:e._getRowData(a)};if("i"===i)t[i].push(s);else if(e.attr("original")){var l=e.attr("originstate"),n=a-o,c=0;for(c=0;c<l.d.length;c++)l.d[c].nRow<=n&&n++;for(c=0;c<l.i.length;c++)l.i[c].nRow>=n&&n++;var d=e.attr("origindata")[n];r._.isMatch(s.data,d)?s=r._.reject(t[i],(function(t){return t.row===a})):t[i].push(s)}else t[i].push(s)})),!0===this.attr("pagesyncorgindata")){t.i=[],t.u=[];for(var i=0;i<this.attr("data").input.length;i++){var s=this.attr("data").input[i];"u"===s.rt_qc_page_state?t.u.push({row:i,data:r._.clone(this.attr("data").input[i])}):"i"===s.rt_qc_page_state&&t.i.push({row:i,data:r._.clone(this.attr("data").input[i])})}}return r._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))})),t},r.QCELL.NormalQCELL.prototype._getAllDataStates=function(t,e){var a,o,i=this._getIdxInfo("state","row"),s=this.attr("headerrows");for(null==t&&(t="m"),null==e&&(e="rownum"),a=this.attr("currentdata").RT_clone(),o=0;o<a.length;o++)a[o][e]=o+s,a[o][t]="";return i.each((function(e,r){a[e-s][t]=r})),"later"!==this.attr("statetype")&&r._.each(this.attr("deletedrowsdata"),(function(r){r[e]=-1,r[t]="d",a.push(r)})),a},r.QCELL.NormalQCELL.prototype._getAllDataStatesBySep=function(t,e,r,a){var o,i=this,s=this._getIdxInfo("state","row"),l={},n=this.attr("headercols"),c=this.attr("cols"),d=[];null==t&&(t="m"),null==e&&(e="rownum"),null==r&&(r="^"),null==a&&(a="|");var h,_,u,p=this._getAllDataStates(t,e),C=0;for(o=n;o<c;o++)h=this._getKeyOfCol(o),l[h]=1;if(s.each((function(t,e){if("u"===e)for(u in _=i._getRowData(t))l[u]=1})),p.length)for(o=0;o<p.length;o++)if(""===(_=p[o])[t]){for(u in _)l[u]=1;if(3==C++)break}var g,f=t+a+e;for(u in l)u!==t&&u!==e&&(d.push(u),f+=a+u);for(f+=r,o=0;o<p.length;o++){for(f+=(_=p[o])[t]+a+_[e],g=0;g<d.length;g++)f+=a+(void 0===_[d[g]]?"":_[d[g]]);f+=r}return f},r.QCELL.NormalQCELL.prototype._getStatesEx=function(t){var e,a,o=this,i=this._getIdxInfo("state","row");return t=void 0===t?"status":t,e=[],"later"!==this.attr("statetype")&&r._.each(this.attr("deletedrowsdata"),(function(r){(a={row:-1,data:r})[t]="d",e.push(a)})),i.each((function(r,i){(a={row:r,data:o._getRowData(r)})[t]=i,e.push(a)})),e.sort((function(t,e){return t.row-e.row})),e},r.QCELL.NormalQCELL.prototype._getStatesBySep=function(t,e,a){var o,i,s=this,l=this._getIdxInfo("state","row"),n="_qcellState",c="";t=void 0===t?"|":t,e=void 0===e?"^":e,a=void 0===a?[]:a,o=[],"later"!==this.attr("statetype")&&r._.each(this.attr("deletedrowsdata"),(function(t){(i={row:-1,data:t})[n]="d",o.push(i)})),l.each((function(t,e){void 0!==(i={row:t,data:s._getRowData(t)}).data&&(i[n]=e,o.push(i))})),o.sort((function(t,e){return t.row-e.row}));var d,h,_=!0,u=[];return o.forEach((function(t){if(!0===_){u.push("isChecked"),u.push("tmHeader");for(var e=s.getCols("header");e<s.getCols();e++)u.push(s.getKeyOfCol(e));for(var r=0;r<a.length;r++)u.push(a[r])}for(var o in t.data)u.push(o);_=!1})),u=r._.uniq(u),c="",o.forEach((function(r){if(""===c&&(c="m"+e+"rownum"+e,_=!0),!0===_){for(d=0;d<u.length;d++)c+=u[d],d+1===u.length?c+=t:c+=e;_=!1}var a=r.row;for(c+=r[n]+e+a+e,d=0;d<u.length;d++)h=r.data[u[d]],h="isChecked"===u[d]?void 0===h?"true":h:"tmHeader"===u[d]?void 0===h?r._qcellState.toUpperCase():h:void 0===h?"":h,c+=h,d+1===u.length?c+=t:c+=e})),c},r.QCELL.NormalQCELL.prototype._getFocusRowState=function(){var t,e=this,a=this._getIdxInfo("state","row"),o=this._getIdxInfo("focus","row"),i=o.current>-1?o.current:-1,s=this.attr("headerrows"),l=[],n=0;t={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&r._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),a.each((function(a,o){var i={row:a,data:e._getRowData(a)};if("i"===o)t[o].push(i);else if(e.attr("original")){var l=e.attr("originstate"),n=a-s,c=0;for(c=0;c<l.d.length;c++)l.d[c].nRow<=n&&n++;for(c=0;c<l.i.length;c++)l.i[c].nRow>=n&&n++;var d=e.attr("origindata")[n];r._.isMatch(i.data,d)?i=r._.reject(t[o],(function(t){return t.row===a})):t[o].push(i)}else t[o].push(i)})),r._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))}));for(var c=0;c<Object.keys(t).length;c++)for(var d=Object.keys(t)[c],h=0;h<t[d].length;h++)if(i>-1&&t[d][h].row===i){l[n]=d,n++;break}return l},r.QCELL.NormalQCELL.prototype._getSelectRowState=function(t){var e,a=this,o=this._getIdxInfo("state","row"),i=this._getIdxInfo("focus","row"),s=i.current>-1?i.current:-1,l=this.attr("headerrows"),n=[],c=0;e={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&r._.each(this.attr("deletedrowsdata"),(function(t){e.d.push({row:-1,data:t})})),o.each((function(t,o){var i={row:t,data:a._getRowData(t)};if("i"===o)e[o].push(i);else if(a.attr("original")){var s=a.attr("originstate"),n=t-l,c=0;for(c=0;c<s.d.length;c++)s.d[c].nRow<=n&&n++;for(c=0;c<s.i.length;c++)s.i[c].nRow>=n&&n++;var d=a.attr("origindata")[n];r._.isMatch(i.data,d)?i=r._.reject(e[o],(function(e){return e.row===t})):e[o].push(i)}else e[o].push(i)})),r._.each(e,(function(t,e){t.sort((function(t,e){return t.row-e.row}))}));for(var d=0;d<Object.keys(e).length;d++)for(var h=Object.keys(e)[d],_=0;_<e[h].length;_++)if(s>-1&&e[h][_].row===t){n[c]=h,c++;break}return n},r.QCELL.NormalQCELL.prototype._getAllStates=function(){var t,e,a=this,o=this._getIdxInfo("state","row"),i=this.attr("headerrows"),s=[];e=this.attr("currentdata").RT_clone(),t={d:[],i:[],u:[],m:[]},"later"!==this.attr("statetype")&&r._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),o.each((function(e,o){var l={row:e,data:a._getRowData(e)};if("i"===o)s.push(l.row),t[o].push(l);else if(a.attr("original")){var n=a.attr("originstate"),c=e-i,d=0;for(d=0;d<n.d.length;d++)n.d[d].nRow<=c&&c++;for(d=0;d<n.i.length;d++)n.i[d].nRow>=c&&c++;var h=a.attr("origindata")[c];r._.isMatch(l.data,h)?l=r._.reject(t[o],(function(t){return t.row===e})):(s.push(l.row),t[o].push(l))}else s.push(l.row),t[o].push(l)}));for(var l=0;l<e.length;l++)-1===s.indexOf(l+i)&&t.m.push({row:l+i,data:r._.clone(e[l])});return r._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))})),t},r.QCELL.NormalQCELL.prototype._updateRowSyncInfo=function(t,e,a){var o=this._getSyncInfo("row");if(o.size()>0){var i=o.keys().sort(r.st.desc);switch(a){case"i":var s;s=r._.filter(i.sort(r.st.desc),(function(e){return e>=t})),this._pushRowSyncInfo(s,e);break;case"d":for(var l,n=0;n<e;n++)if(o.containsKey(t+n))for(var c=o.get(t+n).values(),d=0,h=c.length;d<h;d++)switch(c[d]){case"style":this._removeCellStylesOfRow(t+n,!1);break;case"state":this._removeRowState(t+n)}i.reverse(),l=r._.filter(i,(function(r){return r>=t+e})),this._pullRowSyncInfo(l,e)}}},r.QCELL.NormalQCELL.prototype._updateRowSyncInfoEx=function(t,e){var a=this._getSyncInfo("row"),o=t.length;if(a.size()>0&&o>0){var i=this;switch(e){case"i":var s,l=[];s=r._.filter(a.keys().sort(r.st.asc),(function(e){return e>=t[o-1]})),r._.each(t,(function(t,e){var a=r._.filter(s,(function(e){return e>=t}));s.RT_difference(a),a.reverse(),l.push(a)})),r._.each(l,(function(t,e){i._pushRowSyncInfo(t,o-e)}));break;case"d":var n,c=[];r._.each(t,(function(t){if(a.containsKey(t))for(var e=a.get(t).values(),r=0,o=e.length;r<o;r++)switch(e[r]){case"style":i._removeCellStylesOfRow(t,!1);break;case"state":i._removeRowState(t)}})),n=r._.filter(a.keys().sort(r.st.asc),(function(e){return e>t[o-1]})),r._.each(t,(function(t,e){var a=r._.filter(n,(function(e){return e>t}));n.RT_difference(a),c.push(a)})),c.reverse(),r._.each(c,(function(t,e){i._pullRowSyncInfo(t,e+1)}))}}},r.QCELL.NormalQCELL.prototype._pushRowSyncInfo=function(t,e){if(t.length>0){var a=this._getSyncInfo("row");if(a.size()>0){var o=this;r._.each(t,(function(t){var i=a.remove(t);r._.each(i.values(),(function(a){switch(a){case"style":var i=o._getIdxInfo("style","row"),s=o._getIdxInfo("style","col"),l=i.remove(t);i.put(t+e,l),r._.each(l.keys(),(function(r){var a=s.get(r);a.put(t+e,a.remove(t))}));break;case"state":var n=o._getIdxInfo("state","row");n.put(t+e,n.remove(t))}})),a.put(t+e,i)}))}}},r.QCELL.NormalQCELL.prototype._pullRowSyncInfo=function(t,e){if(t.length>0){var a=this._getSyncInfo("row");if(a.size()>0){var o=this;r._.each(t,(function(t){var i=a.remove(t);r._.each(i.values(),(function(a){switch(a){case"style":var i=o._getIdxInfo("style","row"),s=o._getIdxInfo("style","col"),l=i.remove(t);i.put(t-e,l),r._.each(l.keys(),(function(r){var a=s.get(r);a.put(t-e,a.remove(t))}));break;case"state":var n=o._getIdxInfo("state","row");n.put(t-e,n.remove(t))}})),a.put(t-e,i)}))}}},r.QCELL.NormalQCELL.prototype._setFooterCSS=function(t,e,a){r.util.textContent(t,e),!0===this.getRowData(a).rt_qc_footer?r.util.addClass(t,"rt-qc-cell-rowheader-footer"):r.util.removeClass(t,"rt-qc-cell-rowheader-footer")},r.QCELL.NormalQCELL.prototype._setColTypeCSS=function(t,e){var a=r.QCELL.def.css,o=this._getColType(e);if(r.util.removeClass(t,a.TYPE_INPUT_CELL+" "+a.TYPE_INPUTBUTTON_CELL+" "+a.TYPE_TEXTAREA_CELL+" "+a.TYPE_SELECTMENU_CELL+" "+a.TYPE_DATEPICKER_CELL+" "+a.TYPE_INPUTDATEPICKER_CELL+" "+a.TYPE_CHECKBOX_CELL+" "+a.TYPE_IMAGE_CELL+" "+a.TYPE_HTML_CELL+" "+a.TYPE_CHART_CELL+" "+a.TYPE_MULTICHECKBOX_CELL+" "+a.TYPE_NUMBER_CELL+" "+a.TYPE_SLIDER_CELL+" "+a.TYPE_BUTTON_CELL+" "+a.TYPE_STATIC_CELL),!r.util.hasClass(t,a.COLHEADER_AREA)){switch(o){case"input":t.className+=" "+a.TYPE_INPUT_CELL;break;case"inputbutton":t.className+=" "+a.TYPE_INPUTBUTTON_CELL;break;case"textarea":t.className+=" "+a.TYPE_TEXTAREA_CELL;break;case"selectmenu":t.className+=" "+a.TYPE_SELECTMENU_CELL;break;case"datepicker":t.className+=" "+a.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":t.className+=" "+a.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":t.className+=" "+a.TYPE_CHECKBOX_CELL;break;case"image":t.className+=" "+a.TYPE_IMAGE_CELL;break;case"html":t.className+=" "+a.TYPE_HTML_CELL;break;case"chart":t.className+=" "+a.TYPE_CHART_CELL;break;case"multicheckbox":t.className+=" "+a.TYPE_MULTICHECKBOX_CELL;break;case"number":t.className+=" "+a.TYPE_NUMBER_CELL;break;case"slider":t.className+=" "+a.TYPE_SLIDER_CELL;break;case"button":t.className+=" "+a.TYPE_BUTTON_CELL;break;case"editor":t.className+=" "+a.TYPE_EDITOR_CELL;break;default:t.className+=" "+a.TYPE_STATIC_CELL}t=null}},r.QCELL.NormalQCELL.prototype._showGrandTotal=function(t,e,a,o){var i=r.QCELL.def.css,s=this.getRowData(e);void 0!==s&&"gt"===s._rtqc_state?(r.util.addClass(t,i.GRANDTOTAL),r.util.textContent(t,o)):r.util.removeClass(t,i.GRANDTOTAL),this._setAriaLabelEx(t,e,a)},r.QCELL.NormalQCELL.prototype._setTDSub=function(t,e,r,a,o){switch(e){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":this._setGroupTreeDataCell(t,r,o);break;default:this._setGroupTreeDataCell(t,a,o)}},r.QCELL.NormalQCELL.prototype._setTHSub=function(t,e,r,a,o){switch(r){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":this._setGroupTreeUICell(t,e,a);break;default:this._setGroupTreeUICell(t,e,o)}},r.QCELL.NormalQCELL.prototype._refreshHRs=function(){try{var t,e,a=this.getID(),o=this.attr("headertext"),i=this._getCellGroupDOMs("row","header"),s=this.attr("headerrows"),l=this.attr("headercols"),n=this.attr("id");this._clearMergeHeader(),this._createHeaderMergeInfo(),r._.each(i,(function(i,c){t=r.QCELL.getInstance(a);var d=c,h=t._isCellStyleRow(d);r._.each(i,(function(t,i){if(e=r.QCELL.getInstance(a),null!==t&&"true"!==t.getAttribute("data-footer")){var c=parseInt(t.getAttribute("data-col"));if(isNaN(c))return;var _=e._getColType(c),u=!!h&&e._hasCellStyle(d,c),p=void 0===o[c][d]?"":o[c][d];t.setAttribute("data-row",d),t.setAttribute("id",n+"_cell_"+d+"_"+c),c>=l&&("checkbox"===_||"html"===_?e._getColElement(c)._headershow(t,d,c):(t.innerHTML=e._getHeaderCellSpan(p,d,c),(d===s-1||e._isLastHeaderRowMasterCell(d,c))&&e.attr("useGroupUI")&&r.$(t).draggable({helper:e._setGroupMakeHelper,revert:"invalid"})),0===d&&e._getQCellCol(c).attr("topmove")&&t.appendChild(e._getColHeaderDragDropArea()),(d===s-1||e._isLastHeaderRowMasterCell(d,c))&&(e._getQCellCol(c).attr("move")&&t.appendChild(e._getColHeaderDragDropArea()),e._getQCellCol(c).attr("search")&&t.appendChild(e._getColSearchArea()),e._getQCellCol(c).attr("sort")&&(r._.isUndefined(e._getQCellCol(c).attr("options").wholeselect)||!1===e._getQCellCol(c).attr("options").wholeselect)&&("checkbox"!==_||!1===e.attr("paginationinfo").totalsort||!1===r._.isUndefined(e.attr("paginationinfo"))&&r._.isUndefined(e.attr("paginationinfo").url))&&t.appendChild(e._getDefaultSortArea(c)),e._getQCellCol(c).attr("resize")&&t.appendChild(e._getColResizeArea()),e._getQCellCol(c).attr("filter")&&t.appendChild(e._getFilterArea(c)),e._getQCellCol(c).attr("editor")&&t.appendChild(e._getColStyleEditorArea()),e._getQCellCol(c).attr("remove")&&t.appendChild(e._getDefaultRemoveArea(c)))),u&&e._setCellStyleCSS(t,e._getCellStyle(d,c))}t=null,e=null})),t=null})),this._updateMergeHeader()}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._refreshHRs",t.message)}},r.QCELL.NormalQCELL.prototype._getHFNodeLevel=function(t,e,a){var o,i=r._.indexOf(e.headerrows,a,!0);if(i>-1)o=e.headerrownodes[i];else{var s=r._.indexOf(e.footerrows,a,!0);s>-1&&(o=e.footerrownodes[s])}return null!==o&&void 0!==o.level?o.level:"lev0"},r.QCELL.NormalQCELL.prototype._refreshHCs=function(){try{var t,e,a=r.QCELL.def.css,o=this.getID(),i=this._getCellGroupDOMs("col","header"),s=this.attr("rowheaders"),l=this.attr("currentdata").length,n=this.attr("headerrows"),c=0,d=this.attr("staticrowsinfo"),h=!0,_=-1,u=this.attr("id"),p=0,C=!1!==this.attr("presentseqatfooter");this._isPanel()&&p++,r._.each(i,(function(i,g){t=r.QCELL.getInstance(o);var f=g,L=t._getColWidth(f),m=c,E=t._isCellStyleCol(f),b=t._getQCellCol(f).attr("style");r._.each(i,(function(t){if(e=r.QCELL.getInstance(o),null!==t&&(t.setAttribute("data-col",f),t.style.left=m+"px",L!==parseInt(t.style.width)&&(t.style.width=L+"px"),"true"!==t.getAttribute("data-footer"))){var i=parseInt(t.getAttribute("data-row")),c=i<n,g=!!E&&e._hasCellStyle(i,f),y=c?"header":"data";if(t.setAttribute("id",u+"_cell_"+i+"_"+f),r.util.addClass(t,e._getColStyleClassName(f,y)),h=!0,d.length>0)for(_=0;_<d.length;_++)d[_].nRow===i&&(h=!1);if(!r._.isEmpty(b)){if(r._.isObject(b[y]))for(var v=Object.keys(b[y]),w=0;w<v.length;w++)r.$(t).css(v[w],b[y][v[w]]);e.attr("qcellcols")[f].attr("style",{header:b.header,data:b.data},"object")}if(i>=n){var x,Q=e.attr("paginationinfo");if(r._.isObject(Q)&&r._.isEmpty(Q)){if("sequence"===s[f]||"reverse"===s[f]){if(e._isBottomPanel(t))return void(void 0!==e.getRowData(i).rt_qc_seq&&(r.util.textContent(t,e.getRowData(i).rt_qc_seq),e._setAriaLabelEx(t,i,f)));C||!0!==e.getRowData(i).rt_qc_footer?e._setFooterCSS(t,"reverse"===s[f]?l-(i-n+p):i-n+1,i):e._setFooterCSS(t,"",i),e._setAriaLabelEx(t,i,f)}else if("checkbox"===s[f]||"radio"===s[f]){if(r.$(t).empty(),e._isBottomPanel(t))return;h&&(x=e._createRowheaderCheckbox(t,i,f,s[f]),t.appendChild(x),"checkbox"===s[f]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else if("state"===s[f]){if(e._isBottomPanel(t))return;e._setRowheaderState(t,i)}else if("custom"===s[f]){if(e._isBottomPanel(t))return;e._setRowheaderCustom(t,i,f)}}else{var S=i;if(n>1&&(S=i-(n-1)),"sequence"===s[f]||"reverse"===s[f]){if(e._isBottomPanel(t))return void(void 0!==e.getRowData(i).rt_qc_seq&&(r.util.textContent(t,e.getRowData(i).rt_qc_seq),e._setAriaLabelEx(t,i,f)));C||!0!==e.getRowData(i).rt_qc_footer?e._setFooterCSS(t,"reverse"===s[f]?Q.datacount-((Q.pageindex-1)*Q.pageunit+(S-1)):(Q.pageindex-1)*Q.pageunit+S,i):e._setFooterCSS(t,"",i)}else if("checkbox"===s[f]||"radio"===s[f]){if(r.$(t).empty(),e._isBottomPanel(t))return void e._setAriaLabelEx(t,i,f);h&&(x=e._createRowheaderCheckbox(t,i,f,s[f]),t.appendChild(x),"checkbox"===s[f]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else if("state"===s[f]){if(e._isBottomPanel(t))return;e._setRowheaderState(t,i)}else if("custom"===s[f]){if(e._isBottomPanel(t))return;e._setRowheaderCustom(t,i,f)}e._setAriaLabelEx(t,i,f)}}g&&e._setCellStyleCSS(t,e._getCellStyle(i,f))}t=null,e=null})),c+=L,t=null}))}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._refreshHCs",t.message)}},r.QCELL.NormalQCELL.prototype._refreshFRs=function(){try{var t,e,a,o=r.QCELL.def.css,i=this.getID(),s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),l=s.grouped?s.columnsinfo.keys(!0)[0]:"",n=this._getCellGroupDOMs("row","frozen"),c=this.attr("rowheaders"),d=this.attr("currentdata"),h=d.length,_=this.attr("headerrows"),u=this.attr("headercols"),p=this.attr("highlightrepeat"),C=this.attr("selectmode").indexOf("row")>-1,g=this.attr("staticrowsinfo"),f=!0,L=-1,m=this.attr("id"),E=0,b=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&E++,s.grouped&&"parentchild"===s.mode&&void 0!==s.treeUIColumn){var y=this._getColsOfKey(s.treeUIColumn)[0];void 0!==y&&(l=this._getColID(y))}this._clearMergeData(),this._createDataMergeInfo(),r._.each(n,(function(n,y){e=r.QCELL.getInstance(i);var v=_+y,w=-1,x=-1,Q=-1,S=!1,k=!1,T=!1,R=null,A=d[v-_],q=e._isFocusRow(v),B=e._isSelectedRow(v),O=e._isCellStyleRow(v),D=p>0&&(v-_+1)%p==0;if(f=!0,g.length>0)for(L=0;L<g.length;L++)g[L].nRow===v&&(f=!1);s.grouped&&("tree"!==s.type&&"step"!==s.type||(w=r._.indexOf(s.treeuirows,v,!0)),w>-1?(S=!0,R=s.treeuirownodes[w],k=T=!1):(x=r._.indexOf(s.headerrows,v,!0))>-1?(k=!0,R=s.headerrownodes[x],T=!1):(Q=r._.indexOf(s.footerrows,v,!0))>-1&&(T=!0,R=s.footerrownodes[Q],k=!1)),r._.each(n,(function(e,n){if(a=r.QCELL.getInstance(i),"true"!==e.getAttribute("data-footer")){var d,p=parseInt(e.getAttribute("data-col")),y=a._getColID(p),w=a._getColType(p),x=a._getKeyOfCol(p),Q=!!q&&!!a._isFocusCol(p),I=!!B&&(!!C||a._isSelectedCell(v,p)),N=!!O&&a._hasCellStyle(v,p),P=a._getQCellCol(p).attr("colstyleeditordata"),M=a._getQCellCol(p).attr("cellinvisible")[v],U=a._getDataTextAlign(p),H=a._useDataTextAlign(p);if(e.setAttribute("data-row",v),e.setAttribute("id",m+"_cell_"+v+"_"+p),p<u){var F=a.attr("paginationinfo");if(r._.isObject(F)&&r._.isEmpty(F)){if("sequence"===c[p]||"reverse"===c[p]){if(a._isBottomPanel(e))return void(void 0!==a.getRowData(v).rt_qc_seq&&(r.util.textContent(e,a.getRowData(v).rt_qc_seq),a._setAriaLabelEx(e,v,p)));b||!0!==a.getRowData(v).rt_qc_footer?a._setFooterCSS(e,"reverse"===c[p]?h-(v-_+E):v-_+1,v):a._setFooterCSS(e,"",v)}else if("checkbox"===c[p]||"radio"===c[p]){if(r.$(e).empty(),a._isBottomPanel(e))return;f&&(d=a._createRowheaderCheckbox(e,v,p,c[p]),e.appendChild(d),"checkbox"===c[p]?e.className+=" "+o.ROWHEADER_CELL_CHECKBOX:e.className+=" "+o.ROWHEADER_CELL_RADIO)}else if("state"===c[p]){if(a._isBottomPanel(e))return;a._setRowheaderState(e,v)}else if("custom"===c[p]){if(a._isBottomPanel(e))return;a._setRowheaderCustom(e,v,p)}a._setAriaLabelEx(e,v,p)}else{var z=v;if(_>1&&(z=v-(_-1)),"sequence"===c[p]||"reverse"===c[p]){if(a._isBottomPanel(e))return void(void 0!==a.getRowData(v).rt_qc_seq&&(r.util.textContent(e,a.getRowData(v).rt_qc_seq),a._setAriaLabelEx(e,v,p)));b||!0!==a.getRowData(v).rt_qc_footer?a._setFooterCSS(e,"reverse"===c[p]?F.datacount-((F.pageindex-1)*F.pageunit+(z-1)):(F.pageindex-1)*F.pageunit+z,v):a._setFooterCSS(e,"",v),a._setAriaLabelEx(e,v,p)}else if("checkbox"===c[p]||"radio"===c[p]){if(r.$(e).empty(),a._isBottomPanel(e))return;f&&(d=a._createRowheaderCheckbox(e,v,p,c[p]),e.appendChild(d),"checkbox"===c[p]?e.className+=" "+o.ROWHEADER_CELL_CHECKBOX:e.className+=" "+o.ROWHEADER_CELL_RADIO)}else if("state"===c[p]){if(a._isBottomPanel(e))return;a._setRowheaderState(e,v)}else if("custom"===c[p]){if(a._isBottomPanel(e))return;a._setRowheaderCustom(e,v,p)}}}else{t=void 0===A[x]?"":A[x];var j=a._showDataFormat(v,p,t),G=a._showDataFormatStatic(p,t);if(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+y+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),s.grouped&&"step"===s.type)if(S)R.key===j&&R.level+u===p?a._setTHSub(e,R,w,j,t):""!==j?a._setTDSub(e,w,j,t,A):(r.util.textContent(e,j),a._setAriaLabelEx(e,v,p));else if(k||T)switch((k||T)&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+y+" rt-qc-gtui-lev"+a._getHFNodeLevel(R,s,v)),j=t),w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):(r.util.textContent(e,j),a._setAriaLabelEx(e,v,p));break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(p)._show(e,v,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(p)._showDataLabel(e,v,p,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(r.util.textContent(e,t),a._setAriaLabelEx(e,v,p))}else{for(var W={},V=0;V<s.treeuirows.length&&v>s.treeuirows[V];V++)W=s.treeuirownodes[V];if(p<=W.level+u)a._setTDSub(e,w,j,t,A);else switch(w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):(r.util.textContent(e,j),a._setAriaLabelEx(e,v,p));break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(p)._show(e,v,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(p)._showDataLabel(e,v,p,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(r.util.textContent(e,t),a._setAriaLabelEx(e,v,p))}}else if(s.grouped&&y===l&&"tree"===s.type)if(S)a._setTHSub(e,R,w,j,t);else if(k||T)switch((k||T)&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+y+" rt-qc-gtui-lev"+a._getHFNodeLevel(R,s,v)),j=t),w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):(r.util.textContent(e,j),a._setAriaLabelEx(e,v,p));break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(p)._show(e,v,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(p)._showDataLabel(e,v,p,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(r.util.textContent(e,t),a._setAriaLabelEx(e,v,p))}else a._setTDSub(e,w,j,t,A);else if(s.grouped&&"group"===s.type&&r._.indexOf(s.columnsinfo.keys(!0),y,!0)>=0)if(null!==(R=a._getGroupNode(A,x)))a._setGroupUICell(e,R,j);else if(k||T)switch(parseInt(e.getAttribute("data-row"))===v&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+y+" rt-qc-gtui-lev"+a._getHFNodeLevel(R,s,v)),j=t),w){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":r.util.textContent(e,j),a._setAriaLabelEx(e,v,p);break;default:r.util.textContent(e,t),a._setAriaLabelEx(e,v,p)}else{switch(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+y+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),w){case"static":case"input":case"datepicker":case"number":case"slider":r.util.textContent(e,j),a._setAriaLabelEx(e,v,p);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(p)._show(e,v,p);break;case"selectmenu":case"multicheckbox":case"inputbutton":a._getColElement(p)._showDataLabel(e,v,p,t);break;default:r.util.textContent(e,t),a._setAriaLabelEx(e,v,p)}if(g.length>0)for(L=0;L<g.length;L++)if(g[L].nRow===v){r.util.addClass(e," rt-qc-staticrow-"+y),r.util.textContent(e,G),a._setAriaLabelEx(e,v,p);break}a._showGrandTotal(e,v,p,t)}else if(k||T)switch(parseInt(e.getAttribute("data-row"))===v&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+y+" rt-qc-gtui-lev"+a._getHFNodeLevel(R,s,v)),j=t),w){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):(r.util.textContent(e,j),a._setAriaLabelEx(e,v,p));break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(r.util.textContent(e,t),a._setAriaLabelEx(e,v,p))}else{switch(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+y+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):(f?r.util.textContent(e,j):r.util.textContent(e,t),a._setAriaLabelEx(e,v,p));break;case"checkbox":case"image":case"html":case"chart":case"button":f?a._getColElement(p)._show(e,v,p):r.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":f?a._getColElement(p)._showDataLabel(e,v,p,t):r.util.textContent(e,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,v,p)}if(g.length>0)for(L=0;L<g.length;L++)if(g[L].nRow===v){r.util.addClass(e,o.STATIC_ROW+" "+o.STATIC_ROW+"-"+y),r.util.textContent(e,G);break}a._showGrandTotal(e,v,p,t)}}M&&a._setCellInvisible(v,p,!0),p>=u&&D&&r.util.addClass(e,o.CELL_HIGHLIGHTREPEAT),a._setColTypeCSS(e,p),Q&&a._addFocusStyleClass(e),I&&r.util.addClass(e,o.CELL_SELECT),N&&a._setCellStyleCSS(e,a._getCellStyle(v,p)),H&&(e.style.textAlign=U)}e=null,a=null})),e=null})),this._updateMergeData()}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._refreshFRs",t.message)}},r.QCELL.NormalQCELL.prototype._refreshFBRs=function(){try{var t,e,a,o=r.QCELL.def.css,i=this.attr("vsinfo"),s=this.getID(),l=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=l.grouped?l.columnsinfo.keys(!0)[0]:"",c=this._getCellGroupDOMs("row","frozenbottom"),d=this.attr("rowheaders"),h=this.attr("currentdata"),_=h.length,u=this.attr("headerrows"),p=this.attr("headercols"),C=this.attr("highlightrepeat"),g=this.attr("selectmode").indexOf("row")>-1,f=this.attr("staticrowsinfo"),L=!0,m=-1,E="panel"===this.attr("frozenbottomstyle"),b=this.attr("id"),y=0,v=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&y++,l.grouped&&"parentchild"===l.mode&&void 0!==l.treeUIColumn){var w=this._getColsOfKey(l.treeUIColumn)[0];void 0!==w&&(n=this._getColID(w))}this._clearMergeData(),this._createDataMergeInfo(),r._.each(c,(function(c,w){e=r.QCELL.getInstance(s);var x=i.nEndRow+w+1,Q=-1,S=-1,k=-1,T=!1,R=!1,A=!1,q=null,B=h[x-u],O=e._isFocusRow(x),D=e._isSelectedRow(x),I=e._isCellStyleRow(x),N=C>0&&(x-u+1)%C==0;if(L=!0,!(x<=u)){if(f.length>0)for(m=0;m<f.length;m++)f[m].nRow===x&&(L=!1);l.grouped&&("tree"!==l.type&&"step"!==l.type||(Q=r._.indexOf(l.treeuirows,x,!0)),Q>-1?(T=!0,q=l.treeuirownodes[Q],R=A=!1):(S=r._.indexOf(l.headerrows,x,!0))>-1?(R=!0,q=l.headerrownodes[S],A=!1):(k=r._.indexOf(l.footerrows,x,!0))>-1&&(A=!0,q=l.footerrownodes[k],R=!1)),r._.each(c,(function(e,i){if(a=r.QCELL.getInstance(s),"true"!==e.getAttribute("data-footer")){var c,h=parseInt(e.getAttribute("data-col")),u=a._getColID(h),C=a._getColType(h),w=a._getKeyOfCol(h),Q=!!O&&!!a._isFocusCol(h),S=!!D&&(!!g||a._isSelectedCell(x,h)),k=!!I&&a._hasCellStyle(x,h),P=a.attr("headerrows"),M=a._getQCellCol(h).attr("colstyleeditordata"),U=a._getQCellCol(h).attr("cellinvisible")[x],H=a._getDataTextAlign(h),F=a._useDataTextAlign(h);if(!0===E&&"checkbox"!==C&&(C="static"),e.setAttribute("data-row",x),e.setAttribute("id",b+"_cell_"+x+"_"+h),h<p){var z=a.attr("paginationinfo");if(r._.isObject(z)&&r._.isEmpty(z)){if("sequence"===d[h]||"reverse"===d[h]){if(a._isBottomPanel(e))return void(void 0!==a.getRowData(x).rt_qc_seq?(r.util.textContent(e,a.getRowData(x).rt_qc_seq),a._setAriaLabelEx(e,x,h)):(r.util.textContent(e,""),a._setAriaLabelEx(e,x,h)));v||!0!==a.getRowData(x).rt_qc_footer?a._setFooterCSS(e,"reverse"===d[h]?_-(x-P+y):x-P+1,x):a._setFooterCSS(e,"",x),a._setAriaLabelEx(e,x,h)}else if("checkbox"===d[h]||"radio"===d[h]){if(r.$(e).empty(),a._isBottomPanel(e))return;L&&(c=a._createRowheaderCheckbox(e,x,h,d[h]),e.appendChild(c),"checkbox"===d[h]?e.className+=" "+o.ROWHEADER_CELL_CHECKBOX:e.className+=" "+o.ROWHEADER_CELL_RADIO)}else if("state"===d[h]){if(a._isBottomPanel(e))return;a._setRowheaderState(e,x)}else if("custom"===d[h]){if(a._isBottomPanel(e))return;a._setRowheaderCustom(e,x,h)}}else{var j=x;if(P>1&&(j=x-(P-1)),"sequence"===d[h]||"reverse"===d[h])v||!0!==a.getRowData(x).rt_qc_footer?a._setFooterCSS(e,"reverse"===d[h]?z.datacount-((z.pageindex-1)*z.pageunit+(j-1)):(z.pageindex-1)*z.pageunit+j,x):a._setFooterCSS(e,"",x),a._setAriaLabelEx(e,x,h);else if("checkbox"===d[h]||"radio"===d[h]){if(r.$(e).empty(),a._isBottomPanel(e))return;L&&(c=a._createRowheaderCheckbox(e,x,h,d[h]),e.appendChild(c),"checkbox"===d[h]?e.className+=" "+o.ROWHEADER_CELL_CHECKBOX:e.className+=" "+o.ROWHEADER_CELL_RADIO)}else"state"===d[h]?a._setRowheaderState(e,x):"custom"===d[h]&&a._setRowheaderCustom(e,x,h)}}else{t=void 0===B[w]?"":B[w];var G=a._showDataFormat(x,h,t),W=a._showDataFormatStatic(h,t);if(!0===E&&(G=t,W=t),r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),l.grouped&&"step"===l.type)if(T)q.key===G&&q.level+p===h?a._setTHSub(e,q,C,G,t):""!==G?a._setTDSub(e,C,G,t,B):r.util.textContent(e,G),a._setAriaLabelEx(e,x,h);else if(R||A)switch((R||A)&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+a._getHFNodeLevel(q,l,x)),G=t),C){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",G):r.util.textContent(e,G),a._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(h)._showDataLabel(e,x,h,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,x,h)}else{for(var V={},K=0;K<l.treeuirows.length&&x>l.treeuirows[K];K++)V=l.treeuirownodes[K];if(h<=V.level+p)a._setTDSub(e,C,G,t,B);else switch(C){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",G):r.util.textContent(e,G),a._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(h)._showDataLabel(e,x,h,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,x,h)}}else if(l.grouped&&u===n&&"tree"===l.type)if(T)a._setTHSub(e,q,C,G,t);else if(R||A)switch((R||A)&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+a._getHFNodeLevel(q,l,x)),G=t),C){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",G):r.util.textContent(e,G),a._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(h)._showDataLabel(e,x,h,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,x,h)}else a._setTDSub(e,C,G,t,B);else if(l.grouped&&"group"===l.type&&r._.indexOf(l.columnsinfo.keys(!0),u,!0)>=0)if(null!==(q=a._getGroupNode(B,w)))a._setGroupUICell(e,q,G);else if(R||A){switch(parseInt(e.getAttribute("data-row"))===x&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+a._getHFNodeLevel(q,l,x)),G=t),C){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":r.util.textContent(e,G);break;default:r.util.textContent(e,t)}a._setAriaLabelEx(e,x,h)}else switch(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),C){case"static":case"input":case"datepicker":case"number":case"slider":r.util.textContent(e,G),a._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(h)._show(e,x,h);break;case"selectmenu":case"multicheckbox":case"inputbutton":a._getColElement(h)._showDataLabel(e,x,h,t);break;default:r.util.textContent(e,t),a._setAriaLabelEx(e,x,h)}else if(R||A){switch(parseInt(e.getAttribute("data-row"))===x&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+a._getHFNodeLevel(q,l,x)),G=t),C){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",G):r.util.textContent(e,G);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):r.util.textContent(e,t)}a._setAriaLabelEx(e,x,h)}else{switch(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),C){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",G):L?r.util.textContent(e,G):r.util.textContent(e,t),a._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":L?a._getColElement(h)._show(e,x,h):r.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":L?a._getColElement(h)._showDataLabel(e,x,h,t):r.util.textContent(e,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,x,h)}if(f.length>0)for(m=0;m<f.length;m++)if(f[m].nRow===x){r.util.addClass(e,o.STATIC_ROW+" "+o.STATIC_ROW+"-"+u),r.util.textContent(e,W),a._setAriaLabelEx(e,x,h);break}a._showGrandTotal(e,x,h,t)}}U&&a._setCellInvisible(x,h,!0),h>=p&&N&&r.util.addClass(e,o.CELL_HIGHLIGHTREPEAT),a._setColTypeCSS(e,h),Q&&a._addFocusStyleClass(e),S&&r.util.addClass(e,o.CELL_SELECT),k&&a._setCellStyleCSS(e,a._getCellStyle(x,h)),F&&(e.style.textAlign=H)}e=null,a=null})),e=null}})),this._updateMergeData()}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._refreshFBRs",t.message)}},r.QCELL.NormalQCELL.prototype._refreshNRs=function(){try{var t,e,a,o=r.QCELL.def.css,i=this.attr("vsinfo"),s=this.getID(),l=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=l.grouped?l.columnsinfo.keys(!0)[0]:"",c=this._getCellGroupDOMs("row","normal"),d=this.attr("rowheaders"),h=this.attr("currentdata"),_=h.length,u=this.attr("headerrows"),p=this.attr("headercols"),C=this.attr("highlightrepeat"),g=this.attr("selectmode").indexOf("row")>-1,f=this.attr("staticrowsinfo"),L=!0,m=-1,E=this.attr("id"),b=0,y=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&b++,l.grouped&&"parentchild"===l.mode&&void 0!==l.treeUIColumn){var v=this._getColsOfKey(l.treeUIColumn)[0];void 0!==v&&(n=this._getColID(v))}this._clearMergeData(),this._createDataMergeInfo(),r._.each(c,(function(c,v){e=r.QCELL.getInstance(s);var w=i.nTopRow+v,x=-1,Q=-1,S=-1,k=!1,T=!1,R=!1,A=null,q=h[w-u],B=e._isFocusRow(w),O=e._isSelectedRow(w),D=e._isCellStyleRow(w),I=C>0&&(w-u+1)%C==0;if(L=!0,f.length>0)for(m=0;m<f.length;m++)f[m].nRow===w&&(L=!1);l.grouped&&("tree"!==l.type&&"step"!==l.type||(x=r._.indexOf(l.treeuirows,w,!0)),x>-1?(k=!0,A=l.treeuirownodes[x],T=R=!1):(Q=r._.indexOf(l.headerrows,w,!0))>-1?(T=!0,A=l.headerrownodes[Q],R=!1):(S=r._.indexOf(l.footerrows,w,!0))>-1&&(R=!0,A=l.footerrownodes[S],T=!1)),r._.each(c,(function(e,i){if(a=r.QCELL.getInstance(s),"true"!==e.getAttribute("data-footer")){var c=parseInt(e.getAttribute("data-col"));if(isNaN(c))return;var h,C=a._getColID(c),v=a._getColType(c),x=a._getKeyOfCol(c),Q=!!B&&!!a._isFocusCol(c),S=!!O&&(!!g||a._isSelectedCell(w,c)),N=!!D&&a._hasCellStyle(w,c),P=a._getQCellCol(c).attr("colstyleeditordata"),M=a._getQCellCol(c).attr("cellinvisible")[w],U=a._getDataTextAlign(c),H=a._useDataTextAlign(c);if(e.setAttribute("data-row",w),e.setAttribute("id",E+"_cell_"+w+"_"+c),c<p){var F=a.attr("paginationinfo");if(r._.isObject(F)&&r._.isEmpty(F)){if("sequence"===d[c]||"reverse"===d[c]){if(a._isBottomPanel(e))return void(void 0!==a.getRowData(w).rt_qc_seq&&(r.util.textContent(e,a.getRowData(w).rt_qc_seq),a._setAriaLabelEx(e,w,c)));y||!0!==a.getRowData(w).rt_qc_footer?a._setFooterCSS(e,"reverse"===d[c]?_-(w-u+b):w-u+1,w):a._setFooterCSS(e,"",w),a._setAriaLabelEx(e,w,c)}else if("checkbox"===d[c]||"radio"===d[c]){if(r.$(e).empty(),a._isBottomPanel(e))return;L&&(h=a._createRowheaderCheckbox(e,w,c,d[c]),e.appendChild(h),"checkbox"===d[c]?e.className+=" "+o.ROWHEADER_CELL_CHECKBOX:e.className+=" "+o.ROWHEADER_CELL_RADIO)}else if("state"===d[c]){if(a._isBottomPanel(e))return;a._setRowheaderState(e,w)}else if("custom"===d[c]){if(a._isBottomPanel(e))return;a._setRowheaderCustom(e,w,c)}}else{var z=w;if(u>1&&(z=w-(u-1)),"sequence"===d[c]||"reverse"===d[c]){if(a._isBottomPanel(e))return void(void 0!==a.getRowData(w).rt_qc_seq&&(r.util.textContent(e,a.getRowData(w).rt_qc_seq),a._setAriaLabelEx(e,w,c)));y||!0!==a.getRowData(w).rt_qc_footer?a._setFooterCSS(e,"reverse"===d[c]?F.datacount-((F.pageindex-1)*F.pageunit+(z-1)):(F.pageindex-1)*F.pageunit+z,w):a._setFooterCSS(e,"",w),a._setAriaLabelEx(e,w,c)}else if("checkbox"===d[c]||"radio"===d[c]){if(r.$(e).empty(),a._isBottomPanel(e))return;L&&(h=a._createRowheaderCheckbox(e,w,c,d[c]),e.appendChild(h),"checkbox"===d[c]?e.className+=" "+o.ROWHEADER_CELL_CHECKBOX:e.className+=" "+o.ROWHEADER_CELL_RADIO)}else if("state"===d[c]){if(a._isBottomPanel(e))return;a._setRowheaderState(e,w)}else if("custom"===d[c]){if(a._isBottomPanel(e))return;a._setRowheaderCustom(e,w,c)}}}else{t=void 0!==q?void 0===q[x]?"":q[x]:"";var j=a._showDataFormat(w,c,t),G=a._showDataFormatStatic(c,t);if(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+C+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),l.grouped&&"step"===l.type)if(k)A.key===j&&A.level+p===c?a._setTHSub(e,A,v,j,t):""!==j?a._setTDSub(e,v,j,t,q):r.util.textContent(e,j),a._setAriaLabelEx(e,w,c);else if(T||R)switch((T||R)&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+C+" rt-qc-gtui-lev"+a._getHFNodeLevel(A,l,w)),j=t),v){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):a._isBottomPanel(e)?r.util.textContent(e,t):r.util.textContent(e,j),a._setAriaLabelEx(e,w,c);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(c)._show(e,w,c);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(c)._showDataLabel(e,w,c,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,w,c)}else{for(var W={},V=0;V<l.treeuirows.length&&w>l.treeuirows[V];V++)W=l.treeuirownodes[V];if(c<=W.level+p)a._setTDSub(e,v,j,t,q);else switch(v){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):(a._isBottomPanel(e)?r.util.textContent(e,t):r.util.textContent(e,j),a._setAriaLabelEx(e,w,c));break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(c)._show(e,w,c);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(c)._showDataLabel(e,w,c,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,w,c)}}else if(l.grouped&&C===n&&"tree"===l.type)if(k)a._setTHSub(e,A,v,j,t);else if(T||R)switch((T||R)&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+C+" rt-qc-gtui-lev"+a._getHFNodeLevel(A,l,w)),j=t),v){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):a._isBottomPanel(e)?r.util.textContent(e,t):r.util.textContent(e,j),a._setAriaLabelEx(e,w,c);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(c)._show(e,w,c);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":a._getColElement(c)._showDataLabel(e,w,c,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,w,c)}else a._setTDSub(e,v,j,t,q);else if(l.grouped&&"group"===l.type&&r._.indexOf(l.columnsinfo.keys(!0),C,!0)>=0)if(null!==(A=a._getGroupNode(q,x)))a._setGroupUICell(e,A,j);else if(T||R){switch(parseInt(e.getAttribute("data-row"))===w&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+C+" rt-qc-gtui-lev"+a._getHFNodeLevel(A,l,w)),j=t),v){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":a._isBottomPanel(e)?r.util.textContent(e,t):r.util.textContent(e,j);break;default:r.util.textContent(e,t)}a._setAriaLabelEx(e,w,c)}else switch(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+C+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),v){case"static":case"input":case"datepicker":case"number":case"slider":a._isBottomPanel(e)?r.util.textContent(e,t):r.util.textContent(e,j),a._setAriaLabelEx(e,w,c);break;case"checkbox":case"image":case"html":case"chart":case"button":a._getColElement(c)._show(e,w,c);break;case"selectmenu":case"multicheckbox":case"inputbutton":a._getColElement(c)._showDataLabel(e,w,c,t);break;default:r.util.textContent(e,t),a._setAriaLabelEx(e,w,c)}else if(T||R)switch(parseInt(e.getAttribute("data-row"))===w&&(r.util.addClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+C+" rt-qc-gtui-lev"+a._getHFNodeLevel(A,l,w)),j=t),v){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):a._isBottomPanel(e)?r.util.textContent(e,t):r.util.textContent(e,j),a._setAriaLabelEx(e,w,c);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,w,c)}else{switch(r.util.removeClass(e,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+C+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),v){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",j):a._isBottomPanel(e)?r.util.textContent(e,t):L?r.util.textContent(e,j):r.util.textContent(e,t),a._setAriaLabelEx(e,w,c);break;case"checkbox":case"image":case"html":case"chart":case"button":L?a._getColElement(c)._show(e,w,c):r.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":L?a._getColElement(c)._showDataLabel(e,w,c,t):r.util.textContent(e,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):r.util.textContent(e,t),a._setAriaLabelEx(e,w,c)}if(f.length>0)for(m=0;m<f.length;m++)if(f[m].nRow===w){r.util.addClass(e,o.STATIC_ROW+" "+o.STATIC_ROW+"-"+C),r.util.textContent(e,G),a._setAriaLabelEx(e,w,c);break}a._showGrandTotal(e,w,c,t)}}M&&a._setCellInvisible(w,c,!0),c>=p&&I&&r.util.addClass(e,o.CELL_HIGHLIGHTREPEAT),a._setColTypeCSS(e,c),Q&&a._addFocusStyleClass(e),S&&r.util.addClass(e,o.CELL_SELECT),N&&a._setCellStyleCSS(e,a._getCellStyle(w,c)),H&&(e.style.textAlign=U)}e=null,a=null})),e=null})),this._updateMergeData()}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._refreshNRs",t.message)}},r.QCELL.NormalQCELL.prototype._refreshFCs=function(){try{var t,e,a,o,i=r.QCELL.def.css,s=this.getID(),l=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=l.grouped?l.columnsinfo.keys(!0)[0]:"",c=this.attr("headertext"),d=this._getCellGroupDOMs("col","frozen"),h=this.attr("currentdata"),_=this.attr("headerrows"),u=this.attr("headercols"),p=this.attr("selectmode").indexOf("col")>-1,C=null,g=this.attr("staticrowsinfo"),f=!0,L=-1,m=this.attr("id");if(l.grouped&&"parentchild"===l.mode&&void 0!==l.treeUIColumn){var E=this._getColsOfKey(l.treeUIColumn)[0];void 0!==E&&(n=this._getColID(E))}this._clearMerge(),this._createMergeInfo(),t=0,r._.each(d,(function(d,E){a=r.QCELL.getInstance(s);var b=u+E,y=a._getColWidth(b),v=t,w=a._getColID(b),x=a._getColType(b),Q=a._getKeyOfCol(b),S=w===n,k=a._isFocusCol(b),T=a._isSelectedCol(b),R=a._isCellStyleCol(b),A=a._getQCellCol(b).attr("colstyleeditordata"),q=a._getQCellCol(b).attr("style"),B=a._getDataTextAlign(b),O=a._useDataTextAlign(b);r._.each(d,(function(t){if(o=r.QCELL.getInstance(s),t.setAttribute("data-col",b),t.style.left=v+"px",y!==parseInt(t.style.width)&&(t.style.width=y+"px"),"true"!==t.getAttribute("data-footer")){var a=parseInt(t.getAttribute("data-row")),n=a<_,d=!!k&&!!o._isFocusRow(a),E=!n&&!!T&&(!!p||o._isSelectedCell(a,b)),D=!!R&&o._hasCellStyle(a,b),I=n?"header":"data",N=void 0===c[b][a]?"":c[b][a],P=o._getQCellCol(b).attr("cellinvisible")[a];if(t.setAttribute("id",m+"_cell_"+a+"_"+b),r.util.addClass(t,o._getColStyleClassName(b,I)),f=!0,g.length>0)for(L=0;L<g.length;L++)g[L].nRow===a&&(f=!1);if(!r._.isEmpty(q)){if(r._.isObject(q[I]))for(var M=Object.keys(q[I]),U=0;U<M.length;U++)r.$(t).css(M[U],q[I][M[U]]);o.attr("qcellcols")[b].attr("style",{header:q.header,data:q.data},"object")}if(n)"checkbox"===x||"html"===x?o._getColElement(b)._headershow(t,a,b):(t.innerHTML=o._getHeaderCellSpan(N,a,b),(a===_-1||o._isLastHeaderRowMasterCell(a,b))&&o.attr("useGroupUI")&&r.$(t).draggable({helper:o._setGroupMakeHelper,revert:"invalid"})),0===a&&o._getQCellCol(b).attr("topmove")&&t.appendChild(o._getColHeaderDragDropArea()),(a===_-1||o._isLastHeaderRowMasterCell(a,b))&&(o._getQCellCol(b).attr("move")&&t.appendChild(o._getColHeaderDragDropArea()),o._getQCellCol(b).attr("search")&&t.appendChild(o._getColSearchArea()),o._getQCellCol(b).attr("sort")&&(r._.isUndefined(o._getQCellCol(b).attr("options").wholeselect)||!1===o._getQCellCol(b).attr("options").wholeselect)&&("checkbox"!==x||!1===o.attr("paginationinfo").totalsort||!1===r._.isUndefined(o.attr("paginationinfo"))&&r._.isUndefined(o.attr("paginationinfo").url))&&t.appendChild(o._getDefaultSortArea(b)),o._getQCellCol(b).attr("resize")&&t.appendChild(o._getColResizeArea()),o._getQCellCol(b).attr("filter")&&t.appendChild(o._getFilterArea(b)),o._getQCellCol(b).attr("editor")&&t.appendChild(o._getColStyleEditorArea()),o._getQCellCol(b).attr("remove")&&t.appendChild(o._getDefaultRemoveArea(b)));else{var H=h[a-_];if(void 0===H)return;e=void 0===H[Q]?"":H[Q];var F=o._showDataFormat(a,b,e),z=o._showDataFormatStatic(b,e),j=!1,G=!1,W=-1,V=-1,K=-1,$=!1;if(r.util.removeClass(t,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),o._isBottomPanel(t)&&(x="static"),l.grouped&&"step"===l.type)if(W=-1,V=-1,K=-1,$=!1,(W=r._.indexOf(l.treeuirows,a,!0))>-1?($=!0,C=l.treeuirownodes[W],j=G=!1):(V=r._.indexOf(l.headerrows,a,!0))>-1?(j=!0,C=l.headerrownodes[V],G=!1):(K=r._.indexOf(l.footerrows,a,!0))>-1&&(G=!0,C=l.footerrownodes[K],j=!1),$)C.key===F?o._setTHSub(t,C,x,F,e):""!==F?o._setTDSub(t,x,F,e,H):r.util.textContent(t,F),o._setAriaLabelEx(t,a,b);else if(j||G)switch((j||G)&&(r.util.addClass(t,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+o._getHFNodeLevel(C,l,a)),F=e),x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):r.util.textContent(t,F),o._setAriaLabelEx(t,a,b);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(b)._show(t,a,b);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(b)._showDataLabel(t,a,b,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):r.util.textContent(t,e),o._setAriaLabelEx(t,a,b)}else{for(var Y={},X=0;X<l.treeuirows.length&&a>l.treeuirows[X];X++)Y=l.treeuirownodes[X];if(b<=Y.level+u)o._setTDSub(t,x,F,e,H);else switch(x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):r.util.textContent(t,F),o._setAriaLabelEx(t,a,b);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(b)._show(t,a,b);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(b)._showDataLabel(t,a,b,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):r.util.textContent(t,e),o._setAriaLabelEx(t,a,b)}}else if(l.grouped&&S&&"tree"===l.type)if(W=-1,V=-1,K=-1,$=!1,"tree"===l.type&&(W=r._.indexOf(l.treeuirows,a,!0)),W>-1?($=!0,C=l.treeuirownodes[W],j=G=!1):(V=r._.indexOf(l.headerrows,a,!0))>-1?(j=!0,C=l.headerrownodes[V],G=!1):(K=r._.indexOf(l.footerrows,a,!0))>-1&&(G=!0,C=l.footerrownodes[K],j=!1),$)o._setTHSub(t,C,x,F,e);else if(j||G)if(l.grouped&&"group"===l.type&&r._.indexOf(l.columnsinfo.keys(!0),w,!0)>=0)if(null!==(C=o._getGroupNode(H,Q)))o._setGroupUICell(t,C,F);else switch((j||G)&&(r.util.addClass(t,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+o._getHFNodeLevel(C,l,a)),F=e),x){case"static":case"input":case"datepicker":case"number":case"slider":r.util.textContent(t,F),o._setAriaLabelEx(t,a,b);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(b)._show(t,a,b);break;case"selectmenu":case"multicheckbox":case"inputbutton":o._getColElement(b)._showDataLabel(t,a,b,e);break;default:r.util.textContent(t,e),o._setAriaLabelEx(t,a,b)}else switch((j||G)&&(r.util.addClass(t,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+o._getHFNodeLevel(C,l,a)),F=e),x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):r.util.textContent(t,F),o._setAriaLabelEx(t,a,b);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(b)._show(t,a,b);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(b)._showDataLabel(t,a,b,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):r.util.textContent(t,e),o._setAriaLabelEx(t,a,b)}else o._setTDSub(t,x,F,e,H);else if(l.grouped&&(r._.indexOf(l.headerrows,a,!0)>-1&&(j=!0),r._.indexOf(l.footerrows,a,!0)>-1&&(G=!0)),j||G){if(parseInt(t.getAttribute("data-row"))===a&&(r.util.addClass(t,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+o._getHFNodeLevel(C,l,a)),F=e),g.length>0)for(L=0;L<g.length;L++)if(g[L].nRow===a){F=z;break}switch(x){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):r.util.textContent(t,F);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):r.util.textContent(t,e)}o._setAriaLabelEx(t,a,b)}else{switch(r.util.removeClass(t,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):f?r.util.textContent(t,F):r.util.textContent(t,e),o._setAriaLabelEx(t,a,b);break;case"checkbox":case"image":case"html":case"chart":case"button":f?o._getColElement(b)._show(t,a,b):r.util.textContent(t,e);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":f?o._getColElement(b)._showDataLabel(t,a,b,e):r.util.textContent(t,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):r.util.textContent(t,e),o._setAriaLabelEx(t,a,b)}if(g.length>0)for(L=0;L<g.length;L++)if(g[L].nRow===a){r.util.addClass(t,i.STATIC_ROW+" "+i.STATIC_ROW+"-"+w),r.util.textContent(t,z),o._setAriaLabelEx(t,a,b);break}o._showGrandTotal(t,a,b,e)}}P&&o._setCellInvisible(a,b,!0),o._setColTypeCSS(t,b),d&&o._addFocusStyleClass(t),E&&r.util.addClass(t,i.CELL_SELECT),D&&o._setCellStyleCSS(t,o._getCellStyle(a,b)),O&&(t.style.textAlign=B)}t=null,o=null})),t+=y,a=null})),this._updateMerge()}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._refreshFCs",t.message)}},r.QCELL.NormalQCELL.prototype._refreshNCs=function(){try{var t,e,a,o,i,s=r.QCELL.def.css,l=this.attr("hsinfo"),n=this.getID(),c=l.objUpdateInfo,d=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=d.grouped?d.columnsinfo.keys(!0)[0]:"",_=this.attr("headertext"),u=this._getCellGroupDOMs("col","normal"),p=this.attr("currentdata"),C=this.attr("headerrows"),g=this.attr("headercols"),f=this.attr("frozencols"),L=this._getSumOfColWidth(g,g+f-1),m=this.attr("selectmode").indexOf("col")>-1,E=null,b=this.attr("staticrowsinfo"),y=!0,v=-1,w=this.attr("id");if(d.grouped&&"parentchild"===d.mode&&void 0!==d.treeUIColumn){var x=this._getColsOfKey(d.treeUIColumn)[0];void 0!==x&&(h=this._getColID(x))}this._clearMerge(),this._createMergeInfo(),e=c.objParams.nAdjustedLeft,t=L,r._.each(u,(function(c,u){o=r.QCELL.getInstance(n);var f=l.nLeftCol+u,L=o._getColWidth(f),x=t-e,Q=o._getColID(f),S=o._getColType(f),k=o._getKeyOfCol(f),T=Q===h,R=o._isFocusCol(f),A=o._isSelectedCol(f),q=o._isCellStyleCol(f),B=o._getQCellCol(f).attr("colstyleeditordata"),O=o._getQCellCol(f).attr("style"),D=o._getDataTextAlign(f),I=o._useDataTextAlign(f);r._.each(c,(function(t){if(i=r.QCELL.getInstance(n),t.setAttribute("data-col",f),t.style.left=x+"px",L!==parseInt(t.style.width)&&(t.style.width=L+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),o=e<C,l=!!R&&!!i._isFocusRow(e),c=!o&&!!A&&(!!m||i._isSelectedCell(e,f)),h=!!q&&i._hasCellStyle(e,f),u=o?"header":"data",N=void 0===_[f][e]?"":_[f][e],P=i._getQCellCol(f).attr("cellinvisible")[e];if(t.setAttribute("id",w+"_cell_"+e+"_"+f),r.util.addClass(t,i._getColStyleClassName(f,u)),y=!0,b.length>0)for(v=0;v<b.length;v++)b[v].nRow===e&&(y=!1);if(!r._.isEmpty(O)){if(r._.isObject(O[u]))for(var M=Object.keys(O[u]),U=0;U<M.length;U++)r.$(t).css(M[U],O[u][M[U]]);i.attr("qcellcols")[f].attr("style",{header:O.header,data:O.data},"object")}if(o)"checkbox"===S||"html"===S?i._getColElement(f)._headershow(t,e,f):(t.innerHTML=i._getHeaderCellSpan(N,e,f),(e===C-1||i._isLastHeaderRowMasterCell(e,f))&&i.attr("useGroupUI")&&r.$(t).draggable({helper:i._setGroupMakeHelper,revert:"invalid"})),0===e&&i._getQCellCol(f).attr("topmove")&&t.appendChild(i._getColHeaderDragDropArea()),(e===C-1||i._isLastHeaderRowMasterCell(e,f))&&(i._getQCellCol(f).attr("move")&&t.appendChild(i._getColHeaderDragDropArea()),i._getQCellCol(f).attr("search")&&t.appendChild(i._getColSearchArea()),i._getQCellCol(f).attr("sort")&&(r._.isUndefined(i._getQCellCol(f).attr("options").wholeselect)||!1===i._getQCellCol(f).attr("options").wholeselect)&&("checkbox"!==S||!1===i.attr("paginationinfo").totalsort||!1===r._.isUndefined(i.attr("paginationinfo"))&&r._.isUndefined(i.attr("paginationinfo").url))&&t.appendChild(i._getDefaultSortArea(f)),i._getQCellCol(f).attr("resize")&&t.appendChild(i._getColResizeArea()),i._getQCellCol(f).attr("filter")&&t.appendChild(i._getFilterArea(f)),i._getQCellCol(f).attr("editor")&&t.appendChild(i._getColStyleEditorArea()),i._getQCellCol(f).attr("remove")&&t.appendChild(i._getDefaultRemoveArea(f)));else{var H=p[e-C];if(void 0===H)return;a=void 0===H[k]?"":H[k];var F=i._showDataFormat(e,f,a),z=i._showDataFormatStatic(f,a),j=!1,G=!1,W=-1,V=-1,K=-1,$=!1;if(!0===H.rt_qc_fbrd&&e===p.length&&(F=z=a),d.grouped&&"step"===d.type)if(W=-1,V=-1,K=-1,$=!1,(W=r._.indexOf(d.treeuirows,e,!0))>-1?($=!0,E=d.treeuirownodes[W],j=G=!1):(V=r._.indexOf(d.headerrows,e,!0))>-1?(j=!0,E=d.headerrownodes[V],G=!1):(K=r._.indexOf(d.footerrows,e,!0))>-1&&(G=!0,E=d.footerrownodes[K],j=!1),$)E.key===F&&E.level+g===f?i._setTHSub(t,E,S,F,a):""!==F?i._setTDSub(t,S,F,a,H):r.util.textContent(t,F),i._setAriaLabelEx(t,e,f);else if(j||G)switch((j||G)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+i._getHFNodeLevel(E,d,e)),F=a),S){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",F):r.util.textContent(t,F),i._setAriaLabelEx(t,e,f);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(f)._show(t,e,f);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(f)._showDataLabel(t,e,f,a);break;default:B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,f)}else{for(var Y={},X=0;X<d.treeuirows.length&&e>d.treeuirows[X];X++)Y=d.treeuirownodes[X];if(f<=Y.level+g)i._setTDSub(t,S,F,a,H);else switch(S){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",F):r.util.textContent(t,F),i._setAriaLabelEx(t,e,f);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(f)._show(t,e,f);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(f)._showDataLabel(t,e,f,a);break;default:B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,f)}}else if(d.grouped&&T&&"tree"===d.type)if(W=-1,V=-1,K=-1,$=!1,"tree"!==d.type&&"step"!==d.type||(W=r._.indexOf(d.treeuirows,e,!0)),W>-1?($=!0,E=d.treeuirownodes[W],j=G=!1):(V=r._.indexOf(d.headerrows,e,!0))>-1?(j=!0,E=d.headerrownodes[V],G=!1):(K=r._.indexOf(d.footerrows,e,!0))>-1&&(G=!0,E=d.footerrownodes[K],j=!1),$)i._setTHSub(t,E,S,F,a);else if(j||G)switch((j||G)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+i._getHFNodeLevel(E,d,e)),F=a),S){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",F):r.util.textContent(t,F),i._setAriaLabelEx(t,e,f);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(f)._show(t,e,f);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(f)._showDataLabel(t,e,f,a);break;default:B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,f)}else i._setTDSub(t,S,F,a,H);else if(d.grouped&&"group"===d.type&&r._.indexOf(d.columnsinfo.keys(!0),Q,!0)>=0)if(null!==(E=i._getGroupNode(p[e-C],k)))i._setGroupUICell(t,E,F);else if(d.grouped&&(r._.indexOf(d.headerrows,e,!0)>-1&&(j=!0),r._.indexOf(d.footerrows,e,!0)>-1&&(G=!0)),j||G){switch(parseInt(t.getAttribute("data-row"))===e&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+i._getHFNodeLevel(E,d,e)),F=a),S){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":r.util.textContent(t,F);break;default:r.util.textContent(t,a)}i._setAriaLabelEx(t,e,f)}else switch(S){case"static":case"input":case"datepicker":case"number":case"slider":r.util.textContent(t,F),i._setAriaLabelEx(t,e,f);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(f)._show(t,e,f);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(f)._showDataLabel(t,e,f,a);break;default:r.util.textContent(t,a),i._setAriaLabelEx(t,e,f)}else if(d.grouped&&(r._.indexOf(d.headerrows,e,!0)>-1&&(j=!0),r._.indexOf(d.footerrows,e,!0)>-1&&(G=!0)),j||G){switch(parseInt(t.getAttribute("data-row"))===e&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+i._getHFNodeLevel(E,d,e)),F=a),S){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",F):r.util.textContent(t,F);break;default:B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",a):r.util.textContent(t,a)}i._setAriaLabelEx(t,e,f)}else{switch(S){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",F):y?r.util.textContent(t,F):r.util.textContent(t,a),i._setAriaLabelEx(t,e,f);break;case"checkbox":case"image":case"html":case"chart":case"button":y?i._getColElement(f)._show(t,e,f):r.util.textContent(t,a);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":y?i._getColElement(f)._showDataLabel(t,e,f,a):r.util.textContent(t,a);break;default:B.replace("QCELL_COL_DATA","").length>0?t.innerHTML=B.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,f)}if(b.length>0)for(v=0;v<b.length;v++)if(b[v].nRow===e){r.util.addClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+Q),r.util.textContent(t,z);break}i._showGrandTotal(t,e,f,a)}}P&&i._setCellInvisible(e,f,!0),i._setColTypeCSS(t,f),l&&i._addFocusStyleClass(t),c&&r.util.addClass(t,s.CELL_SELECT),h&&i._setCellStyleCSS(t,i._getCellStyle(e,f)),I&&(t.style.textAlign=D)}t=null,i=null})),t+=L,o=null})),this._updateMerge()}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._refreshNCs",t.message)}},r.QCELL.NormalQCELL.prototype._updateNRs=function(){try{var t,e,a,o,i,s=r.QCELL.def.css,l=this.attr("vsinfo"),n=this.getID(),c=l.objUpdateInfo,d=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=d.grouped?d.columnsinfo.keys(!0)[0]:"",_=this._getCellGroupDOMs("row","normal"),u=[],p=this.attr("rowheaders"),C=this.attr("currentdata"),g=C.length,f=this.attr("headerrows"),L=this.attr("frozenrows"),m=this.attr("frozenbottomrows"),E=this.attr("rows"),b=this.attr("headercols"),y=this.attr("highlightrepeat"),v=this.attr("layoutsize").viewport.offsetHeight,w=this._getSumOfRowHeight(f,f+L-1),x=this._getSumOfRowHeight(E-m,E-1),Q=this.attr("selectmode").indexOf("row")>-1,S=this.attr("staticrowsinfo"),k=!0,T=-1,R=this.attr("id"),A=0,q=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&A++,d.grouped&&"parentchild"===d.mode&&void 0!==d.treeUIColumn){var B=this._getColsOfKey(d.treeUIColumn)[0];void 0!==B&&(h=this._getColID(B))}if(this._clearMergeData(),this._createDataMergeInfo(),c.bWholeUpdate)e=c.objParams.nAdjustedTop,t=w,r._.each(_,(function(c,_){o=r.QCELL.getInstance(n);var u=parseInt(c[0].getAttribute("data-row")),L=l.nTopRow+_,m=o._getRowHeight(L),E=t-e,v=-1,w=-1,x=-1,B=!1,O=!1,D=!1,I=null,N=C[L-f],P=o._isFocusRow(u),M=o._isFocusRow(L),U=o._isSelectedRow(u),H=o._isSelectedRow(L),F=o._isCellStyleRow(u),z=o._isCellStyleRow(L),j=y>0&&(L-f+1)%y==0;if(d.grouped&&("tree"!==d.type&&"step"!==d.type||(v=r._.indexOf(d.treeuirows,L,!0)),v>-1?(B=!0,I=d.treeuirownodes[v],O=D=!1):(w=r._.indexOf(d.headerrows,L,!0))>-1?(O=!0,I=d.headerrownodes[w],D=!1):(x=r._.indexOf(d.footerrows,L,!0))>-1&&(D=!0,I=d.footerrownodes[x],O=!1)),k=!0,S.length>0)for(T=0;T<S.length;T++)S[T].nRow===L&&(k=!1);r._.each(c,(function(t,e){if(i=r.QCELL.getInstance(n),t.setAttribute("data-row",L),t.style.top=E+"px",m!==parseInt(t.style.height)&&(t.style.height=m+"px"),"true"!==t.getAttribute("data-footer")){var o,l=parseInt(t.getAttribute("data-col")),c=i._getColID(l),_=i._getColType(l),C=i._getKeyOfCol(l),y=!!P&&!!i._isFocusCol(l),v=!!M&&!!i._isFocusCol(l),w=!!U&&(!!Q||i._isSelectedCell(u,l)),x=!!H&&(!!Q||i._isSelectedCell(L,l)),G=!!F&&i._hasCellStyle(u,l),W=!!z&&i._hasCellStyle(L,l),V=i._getQCellCol(l).attr("colstyleeditordata"),K=i._getQCellCol(l).attr("cellinvisible")[L],$=i._getDataTextAlign(l),Y=i._useDataTextAlign(l);if(t.setAttribute("id",R+"_cell_"+L+"_"+l),l<b){var X=i.attr("paginationinfo");if(r._.isObject(X)&&r._.isEmpty(X)){if("sequence"===p[l]||"reverse"===p[l]){if(i._isBottomPanel(t))return void(void 0!==i.getRowData(L).rt_qc_seq&&(r.util.textContent(t,i.getRowData(L).rt_qc_seq),i._setAriaLabelEx(t,L,l)));q||!0!==i.getRowData(L).rt_qc_footer?i._setFooterCSS(t,"reverse"===p[l]?g-(L-f+A):L-f+1,L):i._setFooterCSS(t,"",L)}else if("checkbox"===p[l]||"radio"===p[l]){if(i._isBottomPanel(t))return;r.$(t).empty(),k&&(o=i._createRowheaderCheckbox(t,L,l,p[l]),t.appendChild(o),"checkbox"===p[l]?t.className+=" "+s.ROWHEADER_CELL_CHECKBOX:t.className+=" "+s.ROWHEADER_CELL_RADIO)}else"state"===p[l]?i._setRowheaderState(t,L):"custom"===p[l]&&i._setRowheaderCustom(t,L,l);i._setAriaLabelEx(t,L,l)}else{var Z=L;if(f>1&&(Z=L-(f-1)),"sequence"===p[l]||"reverse"===p[l]){if(i._isBottomPanel(t))return void 0!==i.getRowData(L).rt_qc_seq&&r.util.textContent(t,i.getRowData(L).rt_qc_seq),void i._setAriaLabelEx(t,L,l);q||!0!==i.getRowData(L).rt_qc_footer?i._setFooterCSS(t,"reverse"===p[l]?X.datacount-((X.pageindex-1)*X.pageunit+(Z-1)):(X.pageindex-1)*X.pageunit+Z,L):i._setFooterCSS(t,"",L)}else if("checkbox"===p[l]||"radio"===p[l]){if(i._isBottomPanel(t))return;r.$(t).empty(),k&&(o=i._createRowheaderCheckbox(t,L,l,p[l]),t.appendChild(o),"checkbox"===p[l]?t.className+=" "+s.ROWHEADER_CELL_CHECKBOX:t.className+=" "+s.ROWHEADER_CELL_RADIO)}else"state"===p[l]?i._setRowheaderState(t,L):"custom"===p[l]&&i._setRowheaderCustom(t,L,l);i._setAriaLabelEx(t,L,l)}}else{a=void 0===N[C]?"":N[C];var J=i._showDataFormat(L,l,a),tt=i._showDataFormatStatic(l,a);if(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),d.grouped&&"step"===d.type)if(B)I.key===J&&I.level+b===l?i._setTHSub(t,I,_,J,a):""!==J?i._setTDSub(t,_,J,a,N):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l);else if(O||D){if(S.length>0)for(T=0;T<S.length;T++)if(S[T].nRow===L){J=tt;break}switch((O||D)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,L)),J=a),_){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(t,L,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(l)._showDataLabel(t,L,l,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l)}}else{for(var et={},rt=0;rt<d.treeuirows.length&&L>d.treeuirows[rt];rt++)et=d.treeuirownodes[rt];if(l<=et.level+b)i._setTDSub(t,_,J,a,N);else{if(S.length>0)for(T=0;T<S.length;T++)if(S[T].nRow===L){J=tt;break}switch(_){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(t,L,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(l)._showDataLabel(t,L,l,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l)}}}else if(d.grouped&&c===h&&"tree"===d.type)if(B)i._setTHSub(t,I,_,J,a);else if(O||D)switch((O||D)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,L)),J=a),_){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(t,L,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(l)._showDataLabel(t,L,l,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l)}else i._setTDSub(t,_,J,a,N);else if(d.grouped&&"group"===d.type&&r._.indexOf(d.columnsinfo.keys(!0),c,!0)>=0)if(null!==(I=i._getGroupNode(N,C)))i._setGroupUICell(t,I,J);else if(O||D){switch(parseInt(t.getAttribute("data-row"))===L&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,L)),J=a),_){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":r.util.textContent(t,J);break;default:r.util.textContent(t,a)}i._setAriaLabelEx(t,L,l)}else if(O||D){switch(parseInt(t.getAttribute("data-row"))===L&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,L)),J=a),_){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":r.util.textContent(t,J);break;default:r.util.textContent(t,a)}i._setAriaLabelEx(t,L,l)}else switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),_){case"static":case"input":case"datepicker":case"number":case"slider":default:r.util.textContent(t,J),i._setAriaLabelEx(t,L,l);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(t,L,l);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(l)._showDataLabel(t,L,l,a)}else if(O||D){switch(parseInt(t.getAttribute("data-row"))===L&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,L)),J=a),_){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,a)}i._setAriaLabelEx(t,L,l)}else{switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+c+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),_){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):k?r.util.textContent(t,J):r.util.textContent(t,a),i._setAriaLabelEx(t,L,l);break;case"checkbox":case"image":case"html":case"chart":case"button":k?i._getColElement(l)._show(t,L,l):r.util.textContent(t,a);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":k?i._getColElement(l)._showDataLabel(t,L,l,a):r.util.textContent(t,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,L,l)}if(S.length>0)for(T=0;T<S.length;T++){if(S[T].nRow===L){r.util.addClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+c),r.util.textContent(t,tt);break}r.util.removeClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+c)}i._showGrandTotal(t,L,l,a)}}K&&i._setCellInvisible(L,l,!0),l>=b&&(j?!1===r.util.hasClass(t,s.CELL_HIGHLIGHTREPEAT)&&r.util.addClass(t,s.CELL_HIGHLIGHTREPEAT):r.util.hasClass(t,s.CELL_HIGHLIGHTREPEAT)&&r.util.removeClass(t,s.CELL_HIGHLIGHTREPEAT),i._setColTypeCSS(t,l),v&&!1===y?i._addFocusStyleClass(t):y&&!1===v&&i._removeFocusStyleClass(t)),x&&!1===w?r.util.addClass(t,s.CELL_SELECT):w&&!1===x&&r.util.removeClass(t,s.CELL_SELECT),G&&i._removeCellStyleCSS(t,i._getCellStyle(u,l)),W&&i._setCellStyleCSS(t,i._getCellStyle(L,l)),Y&&(t.style.textAlign=$)}i=null,t=null})),o=null,t+=m}));else{var O,D=c.objParams.bWholePositionChanged,I=c.objParams.nMovedCount,N=c.objParams.nCutRowsCount;N>0&&(I>0?(u=_.splice(0,N),t=w,O=l.nTopRow):(u=_.splice(_.length-N,N),t=w+this._getSumOfRowHeight(l.nTopRow,l.nTopRow+N-1),O=l.nTopRow+N),D||r._.each(_,(function(e,a){var s,l,c;o=r.QCELL.getInstance(n),s=O+a,l=o._getRowHeight(s),c=t,r._.each(e,(function(t){i=r.QCELL.getInstance(n);var e=parseInt(t.getAttribute("data-col")),a=i._getDataTextAlign(e),o=i._useDataTextAlign(e);t.style.top=c+"px",o&&(t.style.textAlign=a),i=null,t=null})),t+=l,o=null})),O=I>0?l.nBottomRow-N+1:l.nTopRow,t=I>0?w+this._getSumOfRowHeight(l.nTopRow,l.nBottomRow-N):w,r._.each(u,(function(e,l){o=r.QCELL.getInstance(n);var c=parseInt(e[0].getAttribute("data-row")),_=O+l,u=o._getRowHeight(_),L=t,m=-1,E=-1,v=-1,w=!1,x=!1,B=!1,I=null,N=C[_-f],P=o._isFocusRow(c),M=o._isFocusRow(_),U=o._isSelectedRow(c),H=o._isSelectedRow(_),F=o._isCellStyleRow(c),z=o._isCellStyleRow(_),j=y>0&&(_-f+1)%y==0;if(S.length>0)for(T=0;T<S.length;T++)S[T].nRow===_&&(k=!1);d.grouped&&("tree"!==d.type&&"step"!==d.type||(m=r._.indexOf(d.treeuirows,_,!0)),m>-1?(w=!0,I=d.treeuirownodes[m],x=B=!1):(E=r._.indexOf(d.headerrows,_,!0))>-1?(x=!0,I=d.headerrownodes[E],B=!1):(v=r._.indexOf(d.footerrows,_,!0))>-1&&(B=!0,I=d.footerrownodes[v],x=!1)),r._.each(e,(function(t){if(i=r.QCELL.getInstance(n),t.setAttribute("data-row",_),u!==parseInt(t.style.height)&&(t.style.height=u+"px"),D||(t.style.top=L+"px"),"true"!==t.getAttribute("data-footer")){var e,o=parseInt(t.getAttribute("data-col")),l=i._getColID(o),C=i._getColType(o),m=i._getKeyOfCol(o),E=!!P&&!!i._isFocusCol(o),y=!!M&&!!i._isFocusCol(o),v=!!U&&(!!Q||i._isSelectedCell(c,o)),O=!!H&&(!!Q||i._isSelectedCell(_,o)),G=!!F&&i._hasCellStyle(c,o),W=!!z&&i._hasCellStyle(_,o),V=i._getQCellCol(o).attr("colstyleeditordata"),K=i._getQCellCol(o).attr("cellinvisible")[_],$=i._getDataTextAlign(o),Y=i._useDataTextAlign(o);if(t.setAttribute("id",R+"_cell_"+_+"_"+o),o<b){var X=i.attr("paginationinfo");if(r._.isObject(X)&&r._.isEmpty(X)){if("sequence"===p[o]||"reverse"===p[o])q||!0!==i.getRowData(_).rt_qc_footer?i._setFooterCSS(t,"reverse"===p[o]?g-(_-f+A):_-f+1,_):i._setFooterCSS(t,"",_);else if("checkbox"===p[o]||"radio"===p[o]){if(i._isBottomPanel(t))return void i._setAriaLabelEx(t,_,o);r.$(t).empty(),k&&(e=i._createRowheaderCheckbox(t,_,o,p[o]),t.appendChild(e),"checkbox"===p[o]?t.className+=" "+s.ROWHEADER_CELL_CHECKBOX:t.className+=" "+s.ROWHEADER_CELL_RADIO)}else"state"===p[o]?i._setRowheaderState(t,_):"custom"===p[o]&&i._setRowheaderCustom(t,_,o);i._setAriaLabelEx(t,_,o)}else{var Z=_;if(f>1&&(Z=_-(f-1)),"sequence"===p[o]||"reverse"===p[o])q||!0!==i.getRowData(_).rt_qc_footer?i._setFooterCSS(t,"reverse"===p[o]?X.datacount-((X.pageindex-1)*X.pageunit+(Z-1)):(X.pageindex-1)*X.pageunit+Z,_):i._setFooterCSS(t,"",_);else if("checkbox"===p[o]||"radio"===p[o]){if(i._isBottomPanel(t))return void i._setAriaLabelEx(t,_,o);r.$(t).empty(),k&&(e=i._createRowheaderCheckbox(t,_,o,p[o]),t.appendChild(e),"checkbox"===p[o]?t.className+=" "+s.ROWHEADER_CELL_CHECKBOX:t.className+=" "+s.ROWHEADER_CELL_RADIO)}else"state"===p[o]?i._setRowheaderState(t,_):"custom"===p[o]&&i._setRowheaderCustom(t,_,o);i._setAriaLabelEx(t,_,o)}}else{a=void 0===N[m]?"":N[m];var J=i._showDataFormat(_,o,a),tt=i._showDataFormatStatic(o,a);if(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),d.grouped&&"step"===d.type)if(w)I.key===J&&I.level+b===o?i._setTHSub(t,I,C,J,a):""!==J?i._setTDSub(t,C,J,a,N):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o);else if(x||B)switch((x||B)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,_)),J=a),C){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(o)._show(t,_,o);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(o)._showDataLabel(t,_,o,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o)}else{for(var et={},rt=0;rt<d.treeuirows.length&&_>d.treeuirows[rt];rt++)et=d.treeuirownodes[rt];if(o<=et.level+b)i._setTDSub(t,C,J,a,N);else switch(C){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(o)._show(t,_,o);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(o)._showDataLabel(t,_,o,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o)}}else if(d.grouped&&l===h&&"tree"===d.type)if(w)i._setTHSub(t,I,C,J,a);else if(x||B)switch((x||B)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,_)),J=a),C){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(o)._show(t,_,o);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(o)._showDataLabel(t,_,o,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o)}else i._setTDSub(t,C,J,a,N);else if(d.grouped&&"group"===d.type&&r._.indexOf(d.columnsinfo.keys(!0),l,!0)>=0)if(null!==(I=i._getGroupNode(N,m)))i._setGroupUICell(t,I,J);else if(x||B){switch(parseInt(t.getAttribute("data-row"))===_&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,_)),J=a),C){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":r.util.textContent(t,J);break;default:r.util.textContent(t,a)}i._setAriaLabelEx(t,_,o)}else switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),C){case"static":case"input":case"datepicker":case"number":case"slider":default:r.util.textContent(t,J),i._setAriaLabelEx(t,_,o);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(o)._show(t,_,o);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(o)._showDataLabel(t,_,o,a)}else if(x||B){switch(parseInt(t.getAttribute("data-row"))===_&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+i._getHFNodeLevel(I,d,_)),J=a),C){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):r.util.textContent(t,J);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,a)}i._setAriaLabelEx(t,_,o)}else{switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),C){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):k?r.util.textContent(t,J):r.util.textContent(t,a),i._setAriaLabelEx(t,_,o);break;case"checkbox":case"image":case"html":case"chart":case"button":k?i._getColElement(o)._show(t,_,o):r.util.textContent(t,a);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":k?i._getColElement(o)._showDataLabel(t,_,o,a):r.util.textContent(t,a);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",a):r.util.textContent(t,J),i._setAriaLabelEx(t,_,o)}if(S.length>0)for(T=0;T<S.length;T++){if(S[T].nRow===_){r.util.addClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+l),r.util.textContent(t,tt);break}r.util.removeClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+l)}i._showGrandTotal(t,_,o,a)}}K&&i._setCellInvisible(_,o,!0),o>=b&&(j?!1===r.util.hasClass(t,s.CELL_HIGHLIGHTREPEAT)&&r.util.addClass(t,s.CELL_HIGHLIGHTREPEAT):r.util.hasClass(t,s.CELL_HIGHLIGHTREPEAT)&&r.util.removeClass(t,s.CELL_HIGHLIGHTREPEAT),i._setColTypeCSS(t,o),y&&!1===E?i._addFocusStyleClass(t):E&&!1===y&&i._removeFocusStyleClass(t)),O&&!1===v?r.util.addClass(t,s.CELL_SELECT):v&&!1===O&&r.util.removeClass(t,s.CELL_SELECT),G&&i._removeCellStyleCSS(t,i._getCellStyle(c,o)),W&&i._setCellStyleCSS(t,i._getCellStyle(_,o)),Y&&(t.style.textAlign=$)}i=null,t=null})),t+=u,o=null}))),D?(I>0?(_=_.concat(u),e=l.nLastPos===l.nPos?w+this._getSumOfRowHeight(l.nTopRow,l.nEndRow)-(v-x):this._getSumOfRowHeight(l.nTopRow,l.nTopRow+(l.nPos-(l.nLastPos-l.nAdjustRows))-1)):(_=u.concat(_),e=this._getSumOfRowHeight(l.nTopRow,l.nTopRow+(l.nAdjustRows-(l.nLastPos-l.nPos))-1)),t=w,r._.each(_,(function(a,i){var s,c,d;o=r.QCELL.getInstance(n),s=l.nTopRow+i,c=o._getRowHeight(s),d=t-e,r._.each(a,(function(t){t.style.top=d+"px",t=null})),t+=c,o=null})),this._setCellGroupDOMs("row","normal",_)):I>0?this._setCellGroupDOMs("row","normal",_.concat(u)):this._setCellGroupDOMs("row","normal",u.concat(_)),this._syncCellMatrix("row")}this._updateMergeData(),u=null,_=null,p=null,C=null;var P=this;setTimeout((function(){P._trigger("viewport_changed")}))}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._updateNRs",t.message)}},r.QCELL.NormalQCELL.prototype._updateNCs=function(){try{var t,e,a,o,i,s=r.QCELL.def.css,l=this.attr("hsinfo"),n=this.getID(),c=l.objUpdateInfo,d=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=d.grouped?d.columnsinfo.keys(!0)[0]:"",_=this.attr("headertext"),u=this._getCellGroupDOMs("col","normal"),p=[],C=this.attr("currentdata"),g=this.attr("headerrows"),f=this.attr("headercols"),L=this.attr("frozencols"),m=this.attr("layoutsize").viewport.offsetWidth,E=this._getSumOfColWidth(f,f+L-1),b=this.attr("selectmode").indexOf("col")>-1,y=null,v=this.attr("staticrowsinfo"),w=!0,x=-1,Q=this.attr("id");if(d.grouped&&"parentchild"===d.mode&&void 0!==d.treeUIColumn){var S=this._getColsOfKey(d.treeUIColumn)[0];void 0!==S&&(h=this._getColID(S))}if(this._clearMerge(),this._createMergeInfo(),c.bWholeUpdate)e=c.objParams.nAdjustedLeft,t=E,r._.each(u,(function(c,u){o=r.QCELL.getInstance(n);var p=parseInt(c[0].getAttribute("data-col")),L=l.nLeftCol+u,m=o._getColWidth(L),E=t-e,S=o._getColID(L),k=o._getColType(L),T=o._getKeyOfCol(L),R=S===h,A=o._isFocusCol(p),q=o._isFocusCol(L),B=o._isSelectedCol(p),O=o._isSelectedCol(L),D=o._isCellStyleCol(p),I=o._isCellStyleCol(L),N=o._getQCellCol(L).attr("colstyleeditordata"),P=o._getQCellCol(L).attr("style"),M=o._getDataTextAlign(L),U=o._useDataTextAlign(L);r._.each(c,(function(t){if(i=r.QCELL.getInstance(n),t.setAttribute("data-col",L),t.style.left=E+"px",m!==parseInt(t.style.width)&&(t.style.width=m+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),o=e<g,l=!!A&&!!i._isFocusRow(e),c=!!q&&!!i._isFocusRow(e),h=!o&&!!B&&(!!b||i._isSelectedCell(e,p)),u=!o&&!!O&&(!!b||i._isSelectedCell(e,L)),H=!!D&&i._hasCellStyle(e,p),F=!!I&&i._hasCellStyle(e,L),z=o?"header":"data",j=void 0===_[L][e]?"":_[L][e],G=i._getQCellCol(L).attr("cellinvisible")[e];if(t.style.display=o?"flex":"",t.setAttribute("id",Q+"_cell_"+e+"_"+L),r.util.removeClass(t,i._getColStyleClassName(p,z)),r.util.addClass(t,i._getColStyleClassName(L,z)),w=!0,v.length>0)for(x=0;x<v.length;x++)v[x].nRow===e&&(w=!1);if(!r._.isEmpty(P)){if(r._.isObject(P[z]))for(var W=Object.keys(P[z]),V=0;V<W.length;V++)r.$(t).css(W[V],P[z][W[V]]);i.attr("qcellcols")[L].attr("style",{header:P.header,data:P.data},"object")}if(o)"checkbox"===k||"html"===k?i._getColElement(L)._headershow(t,e,L):(t.innerHTML=i._getHeaderCellSpan(j,e,L),(e===g-1||i._isLastHeaderRowMasterCell(e,L))&&i.attr("useGroupUI")&&r.$(t).draggable({helper:i._setGroupMakeHelper,revert:"invalid"})),0===e&&i._getQCellCol(L).attr("topmove")&&t.appendChild(i._getColHeaderDragDropArea()),(e===g-1||i._isLastHeaderRowMasterCell(e,L))&&(i._getQCellCol(L).attr("move")&&t.appendChild(i._getColHeaderDragDropArea()),i._getQCellCol(L).attr("search")&&t.appendChild(i._getColSearchArea()),i._getQCellCol(L).attr("sort")&&(r._.isUndefined(i._getQCellCol(L).attr("options").wholeselect)||!1===i._getQCellCol(L).attr("options").wholeselect)&&("checkbox"!==k||!1===i.attr("paginationinfo").totalsort||!1===r._.isUndefined(i.attr("paginationinfo"))&&r._.isUndefined(i.attr("paginationinfo").url))&&t.appendChild(i._getDefaultSortArea(L)),i._getQCellCol(L).attr("resize")&&t.appendChild(i._getColResizeArea()),i._getQCellCol(L).attr("filter")&&t.appendChild(i._getFilterArea(L)),i._getQCellCol(L).attr("editor")&&t.appendChild(i._getColStyleEditorArea()),i._getQCellCol(L).attr("remove")&&t.appendChild(i._getDefaultRemoveArea(L)));else{var K=C[e-g];if(void 0===K)return;a=void 0===K[T]?"":K[T];var $=i._showDataFormat(e,L,a),Y=i._showDataFormatStatic(L,a),X=!1,Z=!1,J=-1,tt=-1,et=-1,rt=!1;if(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),d.grouped&&(r._.indexOf(d.headerrows,e,!0)>-1?(X=!0,Z=!1):r._.indexOf(d.footerrows,e,!0)>-1&&(Z=!0,X=!1)),d.grouped&&"step"===d.type)if(J=-1,tt=-1,et=-1,rt=!1,(J=r._.indexOf(d.treeuirows,e,!0))>-1?(rt=!0,y=d.treeuirownodes[J],X=Z=!1):(tt=r._.indexOf(d.headerrows,e,!0))>-1?(X=!0,y=d.headerrownodes[tt],Z=!1):(et=r._.indexOf(d.footerrows,e,!0))>-1&&(Z=!0,y=d.footerrownodes[et],X=!1),rt)y.key===$&&y.level+f===L?i._setTHSub(t,y,k,$,a):""!==$?i._setTDSub(t,k,$,a,K):r.util.textContent(t,$),i._setAriaLabelEx(t,e,L);else if(X||Z)switch((X||Z)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),$=a),k){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):(i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,$),r.util.textContent(t,$)),i._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(L)._show(t,e,L);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(L)._showDataLabel(t,e,L,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,L)}else{for(var at={},ot=0;ot<d.treeuirows.length&&e>d.treeuirows[ot];ot++)at=d.treeuirownodes[ot];if(L<=at.level+f)i._setTDSub(t,k,$,a,K);else switch(k){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,$),i._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(L)._show(t,e,L);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(L)._showDataLabel(t,e,L,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,L)}}else if(d.grouped&&R&&"tree"===d.type)if(J=-1,tt=-1,et=-1,rt=!1,"tree"===d.type&&(J=r._.indexOf(d.treeuirows,e,!0)),J>-1?(rt=!0,y=d.treeuirownodes[J],X=Z=!1):(tt=r._.indexOf(d.headerrows,e,!0))>-1?(X=!0,y=d.headerrownodes[tt],Z=!1):(et=r._.indexOf(d.footerrows,e,!0))>-1&&(Z=!0,y=d.footerrownodes[et],X=!1),rt)i._setTHSub(t,y,k,$,a);else if(X||Z)switch((X||Z)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),$=a),k){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):(i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,$),r.util.textContent(t,$)),i._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(L)._show(t,e,L);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(L)._showDataLabel(t,e,L,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,L)}else i._setTDSub(t,k,$,a,K);else if(d.grouped&&"group"===d.type&&r._.indexOf(d.columnsinfo.keys(!0),S,!0)>=0)if(null!==(y=i._getGroupNode(C[e-g],T)))i._setGroupUICell(t,y,$);else if(X||Z){switch(parseInt(t.getAttribute("data-row"))===e&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),$=a),k){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,$);break;default:r.util.textContent(t,a)}i._setAriaLabelEx(t,e,L)}else switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),k){case"static":case"input":case"datepicker":case"number":case"slider":i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,$),i._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(L)._show(t,e,L);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(L)._showDataLabel(t,e,L,a);break;default:r.util.textContent(t,a),i._setAriaLabelEx(t,e,L)}else if(X||Z){switch(parseInt(t.getAttribute("data-row"))===e&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),$=a),k){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,$);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a)}i._setAriaLabelEx(t,e,L)}else{switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),k){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):w?i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,$):r.util.textContent(t,a),i._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":w?i._getColElement(L)._show(t,e,L):r.util.textContent(t,a);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":w?i._getColElement(L)._showDataLabel(t,e,L,a):r.util.textContent(t,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,L)}if(v.length>0)for(x=0;x<v.length;x++){if(v[x].nRow===e){r.util.addClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+S),r.util.textContent(t,Y);break}r.util.removeClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+S)}i._showGrandTotal(t,e,L,a)}}G&&i._setCellInvisible(e,L,!0),i._setColTypeCSS(t,L),c&&!1===l?i._addFocusStyleClass(t):l&&!1===c&&i._removeFocusStyleClass(t),u&&!1===h?r.util.addClass(t,s.CELL_SELECT):h&&!1===u&&r.util.removeClass(t,s.CELL_SELECT),H&&i._removeCellStyleCSS(t,i._getCellStyle(e,p)),F&&i._setCellStyleCSS(t,i._getCellStyle(e,L)),U&&(t.style.textAlign=M)}t=null,i=null})),t+=m,o=null}));else{var k,T=c.objParams.bWholePositionChanged,R=c.objParams.nMovedCount,A=c.objParams.nCutColsCount;A>0&&(R>0?(p=u.splice(0,A),t=E,k=l.nLeftCol):(p=u.splice(u.length-A,A),t=E+this._getSumOfColWidth(l.nLeftCol,l.nLeftCol+A-1),k=l.nLeftCol+A),T||r._.each(u,(function(e,a){var i,s,l;o=r.QCELL.getInstance(n),i=k+a,s=o._getColWidth(i),l=t,r._.each(e,(function(t){t.style.left=l+"px",t=null})),t+=s,o=null})),k=R>0?l.nRightCol-A+1:l.nLeftCol,t=R>0?E+this._getSumOfColWidth(l.nLeftCol,l.nRightCol-A):E,r._.each(p,(function(e,l){o=r.QCELL.getInstance(n);var c=parseInt(e[0].getAttribute("data-col")),u=k+l,p=o._getColWidth(u),L=t,m=o._getColID(u),E=o._getColType(u),S=o._getKeyOfCol(u),R=m===h,A=o._isFocusCol(c),q=o._isFocusCol(u),B=o._isSelectedCol(c),O=o._isSelectedCol(u),D=o._isCellStyleCol(c),I=o._isCellStyleCol(u),N=o._getQCellCol(u).attr("colstyleeditordata"),P=o._getQCellCol(u).attr("style"),M=o._getDataTextAlign(u),U=o._useDataTextAlign(u);r._.each(e,(function(t){if(i=r.QCELL.getInstance(n),t.setAttribute("data-col",u),p!==parseInt(t.style.width)&&(t.style.width=p+"px"),T||(t.style.left=L+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),o=e<g,l=!!A&&!!i._isFocusRow(e),h=!!q&&!!i._isFocusRow(e),k=!o&&!!B&&(!!b||i._isSelectedCell(e,c)),H=!o&&!!O&&(!!b||i._isSelectedCell(e,u)),F=!!D&&i._hasCellStyle(e,c),z=!!I&&i._hasCellStyle(e,u),j=o?"header":"data",G=void 0===_[u][e]?"":_[u][e],W=i._getQCellCol(u).attr("cellinvisible")[e];if(t.style.display=o?"flex":"",t.setAttribute("id",Q+"_cell_"+e+"_"+u),r.util.removeClass(t,i._getColStyleClassName(c,j)),r.util.addClass(t,i._getColStyleClassName(u,j)),w=!0,v.length>0)for(x=0;x<v.length;x++)v[x].nRow===e&&(w=!1);if(!r._.isEmpty(P)){if(r._.isObject(P[j]))for(var V=Object.keys(P[j]),K=0;K<V.length;K++)r.$(t).css(V[K],P[j][V[K]]);i.attr("qcellcols")[u].attr("style",{header:P.header,data:P.data},"object")}if(o)"checkbox"===E||"html"===E?i._getColElement(u)._headershow(t,e,u):(t.innerHTML=i._getHeaderCellSpan(G,e,u),(e===g-1||i._isLastHeaderRowMasterCell(e,u))&&i.attr("useGroupUI")&&r.$(t).draggable({helper:i._setGroupMakeHelper,revert:"invalid"})),0===e&&i._getQCellCol(u).attr("topmove")&&t.appendChild(i._getColHeaderDragDropArea()),(e===g-1||i._isLastHeaderRowMasterCell(e,u))&&(i._getQCellCol(u).attr("move")&&t.appendChild(i._getColHeaderDragDropArea()),i._getQCellCol(u).attr("search")&&t.appendChild(i._getColSearchArea()),i._getQCellCol(u).attr("sort")&&(r._.isUndefined(i._getQCellCol(u).attr("options").wholeselect)||!1===i._getQCellCol(u).attr("options").wholeselect)&&("checkbox"!==E||!1===i.attr("paginationinfo").totalsort||!1===r._.isUndefined(i.attr("paginationinfo"))&&r._.isUndefined(i.attr("paginationinfo").url))&&t.appendChild(i._getDefaultSortArea(u)),i._getQCellCol(u).attr("resize")&&t.appendChild(i._getColResizeArea()),i._getQCellCol(u).attr("filter")&&t.appendChild(i._getFilterArea(u)),i._getQCellCol(u).attr("editor")&&t.appendChild(i._getColStyleEditorArea()),i._getQCellCol(u).attr("remove")&&t.appendChild(i._getDefaultRemoveArea(u)));else{var $=C[e-g];if(void 0===$)return;a=void 0===$[S]?"":$[S];var Y=i._showDataFormat(e,u,a),X=i._showDataFormatStatic(u,a),Z=!1,J=!1,tt=-1,et=-1,rt=-1,at=!1;if(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),d.grouped&&(r._.indexOf(d.headerrows,e,!0)>-1?(Z=!0,J=!1):r._.indexOf(d.footerrows,e,!0)>-1&&(J=!0,Z=!1)),d.grouped&&"step"===d.type)if(tt=-1,et=-1,rt=-1,at=!1,(tt=r._.indexOf(d.treeuirows,e,!0))>-1?(at=!0,y=d.treeuirownodes[tt],Z=J=!1):(et=r._.indexOf(d.headerrows,e,!0))>-1?(Z=!0,y=d.headerrownodes[et],J=!1):(rt=r._.indexOf(d.footerrows,e,!0))>-1&&(J=!0,y=d.footerrownodes[rt],Z=!1),at)y.key===Y&&y.level+f===u?i._setTHSub(t,y,E,Y,a):""!==Y?i._setTDSub(t,E,Y,a,$):r.util.textContent(t,Y),i._setAriaLabelEx(t,e,u);else if(Z||J)switch((Z||J)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),Y=a),E){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,Y),i._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(u)._show(t,e,u);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(u)._showDataLabel(t,e,u,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,u)}else{for(var ot={},it=0;it<d.treeuirows.length&&e>d.treeuirows[it];it++)ot=d.treeuirownodes[it];if(u<=ot.level+f)i._setTDSub(t,E,Y,a,$);else switch(E){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,Y),i._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(u)._show(t,e,u);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(u)._showDataLabel(t,e,u,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,u)}}else if(d.grouped&&R&&"tree"===d.type)if(tt=-1,et=-1,rt=-1,at=!1,"tree"===d.type&&(tt=r._.indexOf(d.treeuirows,e,!0)),tt>-1?(at=!0,y=d.treeuirownodes[tt],Z=J=!1):(et=r._.indexOf(d.headerrows,e,!0))>-1?(Z=!0,y=d.headerrownodes[et],J=!1):(rt=r._.indexOf(d.footerrows,e,!0))>-1&&(J=!0,y=d.footerrownodes[rt],Z=!1),at)i._setTHSub(t,y,E,Y,a);else if(Z||J)switch((Z||J)&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),Y=a),E){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,Y),i._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(u)._show(t,e,u);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(u)._showDataLabel(t,e,u,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,u)}else i._setTDSub(t,E,Y,a,$);else if(d.grouped&&"group"===d.type&&r._.indexOf(d.columnsinfo.keys(!0),m,!0)>=0)if(null!==(y=i._getGroupNode(C[e-g],S)))i._setGroupUICell(t,y,Y);else if(Z||J){switch(parseInt(t.getAttribute("data-row"))===e&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),Y=a),E){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,Y);break;default:r.util.textContent(t,a)}i._setAriaLabelEx(t,e,u)}else switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),E){case"static":case"input":case"datepicker":case"number":case"slider":i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,Y),i._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(u)._show(t,e,u);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(u)._showDataLabel(t,e,u,a);break;default:r.util.textContent(t,a),i._setAriaLabelEx(t,e,u)}else if(Z||J){switch(parseInt(t.getAttribute("data-row"))===e&&(r.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+i._getHFNodeLevel(y,d,e)),Y=a),E){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,Y);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a)}i._setAriaLabelEx(t,e,u)}else{switch(r.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),E){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):w?i._isBottomPanel(t)?r.util.textContent(t,a):r.util.textContent(t,Y):r.util.textContent(t,a),i._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":w?i._getColElement(u)._show(t,e,u):r.util.textContent(t,a);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":w?i._getColElement(u)._showDataLabel(t,e,u,a):r.util.textContent(t,a);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",a):r.util.textContent(t,a),i._setAriaLabelEx(t,e,u)}if(v.length>0)for(x=0;x<v.length;x++){if(v[x].nRow===e){r.util.addClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+m),r.util.textContent(t,X);break}r.util.removeClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+m)}i._showGrandTotal(t,e,u,a)}}W&&i._setCellInvisible(e,u,!0),i._setColTypeCSS(t,u),h&&!1===l?i._addFocusStyleClass(t):l&&!1===h&&i._removeFocusStyleClass(t),H&&!1===k?r.util.addClass(t,s.CELL_SELECT):k&&!1===H&&r.util.removeClass(t,s.CELL_SELECT),F&&i._removeCellStyleCSS(t,i._getCellStyle(e,c)),z&&i._setCellStyleCSS(t,i._getCellStyle(e,u)),U&&(t.style.textAlign=M)}t=null,i=null})),t+=p,o=null}))),T?(R>0?(u=u.concat(p),e=l.nLastPos===l.nPos?E+this._getSumOfColWidth(l.nLeftCol,l.nEndCol)-m:this._getSumOfColWidth(l.nLeftCol,l.nLeftCol+(l.nPos-(l.nLastPos-l.nAdjustCols))-1)):(u=p.concat(u),e=this._getSumOfColWidth(l.nLeftCol,l.nLeftCol+(l.nAdjustCols-(l.nLastPos-l.nPos))-1)),t=E,r._.each(u,(function(a,i){var s,c,d;o=r.QCELL.getInstance(n),s=l.nLeftCol+i,c=o._getColWidth(s),d=t-e,r._.each(a,(function(t){t.style.left=d+"px",t=null})),t+=c,o=null})),this._setCellGroupDOMs("col","normal",u)):R>0?this._setCellGroupDOMs("col","normal",u.concat(p)):this._setCellGroupDOMs("col","normal",p.concat(u)),this._syncCellMatrix("col")}this._updateMerge(),u=null,p=null}catch(t){r.QCELL.log("err","QCELL.NormalQCELL._updateNCs",t.message)}},r.QCELL.NormalQCELL.prototype.onVScroll=function(t){this._onScrollHideEditCellsDOM(),r.QCELL.BasicQCELL.prototype.onVScroll.call(this,t)},r.QCELL.NormalQCELL.prototype.addRow=function(t){var a=this.attr("id")+".addRow",o=this.attr("data").type;if(t=void 0===t?"array"===o?[]:{}:t,"array"===o&&r._.isArray(t)||"object"===o&&"object"===e(t)&&!1===r._.isArray(t)){var i=this._insertRows(this.attr("rows"),[t]);if(!0===i){var s=this;setTimeout((function(){s._trigger("rowinserted")}),0)}return i}return r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),!1},r.QCELL.NormalQCELL.prototype.addRows=function(t){var a=this.attr("id")+".addRows";if(arguments.length<1)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>0&&this._insertRows(this.attr("rows"),r._.map(r._.range(t),(function(){return{}})));if(r._.isArray(t)){var o=this.attr("data").type;if("array"===o&&r._.every(t,(function(t){return r._.isArray(t)}))||"object"===o&&r._.every(t,(function(t){return!1===r._.isArray(t)&&"object"===e(t)}))){var i=t.length>0&&this._insertRows(this.attr("rows"),t);if(!0===i){var s=this;setTimeout((function(){s._trigger("rowinserted")}),0)}return i}}else r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.insertRow=function(t,a){var o=this.attr("id")+".insertRow",i=this.attr("data").type;if(a=void 0===a?"array"===i?[]:{}:a,"number"==typeof t&&"array"===i&&r._.isArray(a)||"object"===i&&"object"===e(a)&&!1===r._.isArray(a)){var s=t>=this.attr("headerrows")&&this._insertRows(t,[a]);if(!0===s){var l=this;setTimeout((function(){l._trigger("rowinserted")}),0)}return s}return r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE),!1},r.QCELL.NormalQCELL.prototype.insertRows=function(t,a){var o=this.attr("id")+".insertRows";if(arguments.length<2)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t){if("number"==typeof a)return t>=this.attr("headerrows")&&a>0&&this._insertRows(t,r._.map(r._.range(a),(function(){return{}})));if(r._.isArray(a)){var i=this.attr("data").type;if("array"===i&&r._.every(a,(function(t){return r._.isArray(t)}))||"object"===i&&r._.every(a,(function(t){return!1===r._.isArray(t)&&"object"===e(t)}))){var s=t>=this.attr("headerrows")&&a.length>0&&this._insertRows(t,a);if(!0===s){var l=this;setTimeout((function(){l._trigger("rowinserted")}),0)}return s}}else r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.insertRowsEx=function(t){var e=this._insertRowsEx(t);if(!0===e){var r=this;setTimeout((function(){r._trigger("rowinserted")}),0)}return e},r.QCELL.NormalQCELL.prototype.removeRow=function(){var t=this._deleteRows(this.attr("rows")-1,1);if(!0===t){var e=this;setTimeout((function(){e._trigger("rowdeleted")}),0)}return t},r.QCELL.NormalQCELL.prototype.removeRows=function(t){var e=this.attr("id")+".removeRows";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){var a=t>0&&this._deleteRows(this.attr("rows")-t,t);if(!0===a){var o=this;setTimeout((function(){o._trigger("rowdeleted")}),0)}return a}r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.deleteRow=function(t){var e=this.attr("id")+".deleteRow";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){if(this.getRows()<=t)return!1;var a=t>=this.attr("headerrows")&&this._deleteRows(t,1);if(!0===a){var o=this;setTimeout((function(){o._trigger("rowdeleted")}),0)}return a}r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.deleteRows=function(t,e){var a=this.attr("id")+".deleteRows";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){if(this.getRows()<=t)return!1;var o=t>=this.attr("headerrows")&&e>0&&this._deleteRows(t,e);if(!0===o){var i=this;setTimeout((function(){i._trigger("rowdeleted")}),0)}return o}r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.deleteRowsEx=function(t){var e=this._deleteRowsEx(t);if(!0===e){var r=this;setTimeout((function(){r._trigger("rowdeleted")}),0)}return e},r.QCELL.NormalQCELL.prototype.getState=function(t){var e=this.attr("id")+".getState",a=[];if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("string"==typeof t)switch(t){case"d":case"i":case"u":a=this._getState(t)}else r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return a},r.QCELL.NormalQCELL.prototype.getStates=function(){return this._getStates()},r.QCELL.NormalQCELL.prototype.clearStates=function(){return this._clearStates()},r.QCELL.NormalQCELL.prototype.getStatesEx=function(t){return this._getStatesEx(t)},r.QCELL.NormalQCELL.prototype.getStatesBySep=function(t,e,r){return this._getStatesBySep(t,e,r)},r.QCELL.NormalQCELL.prototype.getAllStatesBySep=function(t,e,r,a){return this._getAllDataStatesBySep(t,e,r,a)},r.QCELL.NormalQCELL.prototype.setCellDisable=function(t,e,a,o){var i=this.attr("id")+".setCellDisable";if(arguments.length<3)r.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(e>this.getCols())return!1;if(r._.isNumber(t)&&r._.isNumber(e)){this._setCellDisabled(t,e,a);var s,l=this.attr("currentdata"),n=this._getKeyOfCol(e);if(void 0!==o&&void 0!==(s=l[t-this.attr("headerrows")])&&(s["_rt_qc_d_"+n]=o,!0===a)){var c=this._getCellDOM(t,e);null!=c&&r.util.textContent(c,o)}return!1===a&&void 0!==(s=l[t-this.attr("headerrows")])&&void 0!==s["_rt_qc_d_"+n]&&(delete s["_rt_qc_d_"+n],this.setCellDataEx(t,n,s[n])),!0}r.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.setCellsDisable=function(t,e,a,o,i){var s=this.attr("id")+".setCellsDisable";if(arguments.length<5)r.QCELL.log("err",s,this.attr("msg").err.PARAM_COUNT);else{if(r._.isNumber(t)&&r._.isNumber(e)&&r._.isNumber(a)&&r._.isNumber(o)){var l,n;for(l=t;l<=a;l++)for(n=e;n<=o;n++)this._setCellDisabled(l,n,i);return!0}r.QCELL.log("err",s,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.setRowDisable=function(t,e,a){var o=this.attr("id")+".setRowDisable";if(arguments.length<2)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if(r._.isNumber(t)&&r._.isBoolean(e)){var i,s=this.attr("cols"),l=this.attr("headercols");if(r._.isUndefined(a))a="data";else if(!r._.isString(a))return r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE),!1;if("rowheader"===a||"all"===a)for(i=0;i<l;i++)this.setCellDisable(t,i,e);if("data"===a||"all"===a)for(i=l;i<s;i++)this.setCellDisable(t,i,e);return!0}r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.setColDisable=function(t,e){var a=this.attr("id")+".setColDisable";if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(r._.isNumber(t)){if(t<this.getCols("header")||t>=this.getCols())return!1;for(var o=this.attr("headerrows"),i=this.attr("rows"),s=o;s<i;s++)this._setCellDisabled(s,t,e,!0);var l=this._getQCellCol(t);return null!==l&&l.attr("_coldisable",e,"boolean"),!0}r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.getColDisable=function(t){var e=this.attr("id")+".getColDisable";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(r._.isNumber(t)){var a=this._getQCellCol(t);return null!==a&&null!==a.attr("_coldisable")&&a.attr("_coldisable")}r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.getDisable=function(){return!0===this.attr("bQcellDisable")},r.QCELL.NormalQCELL.prototype.setDisable=function(t){var e=this.attr("id")+".setDisable";if(!(arguments.length<1)){for(var a=this.attr("headercols"),o=this.attr("cols"),i=a;i<o;i++)this.setColDisable(i,t);return this.attr("bQcellDisable",t,"boolean"),!0}return r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),!1},r.QCELL.NormalQCELL.prototype.closeEditMode=function(){return this._onScrollHideEditCellsDOM(),!0},r.QCELL.NormalQCELL.prototype.getRowState=function(t){return this._getRowState(t)},r.QCELL.NormalQCELL.prototype.setRowState=function(t,e){return this._setRowState(t,e)},r.QCELL.NormalQCELL.prototype.removeRowState=function(t){return this._removeRowState(t)},r.QCELL.NormalQCELL.prototype.clearRowStates=function(){return this._clearRowStates()},r.QCELL.NormalQCELL.prototype.checkRequired=function(){return this._checkRequired()},r.QCELL.NormalQCELL.prototype.divisionSubmit=function(t,e){var a=this.attr("id")+".divisionSubmit";if(r._.isEmpty(this.attr("paginationinfo")))if(arguments.length<2)r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(r._.isString(t)&&r._.isNumber(e))return this._divisionSubmit(t,e);r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}else r.QCELL.log("err",a,this.attr("msg").err.CAN_NOT_USE_WITH_PAGINATION);return!1},r.QCELL.NormalQCELL.prototype.insertStaticRow=function(t,a){var o=this.attr("id")+".insertRow",i=this.attr("data").type;return a=void 0===a?"array"===i?[]:{}:a,"number"==typeof t&&"array"===i&&r._.isArray(a)||"object"===i&&"object"===e(a)&&!1===r._.isArray(a)?t>=this.attr("headerrows")&&this._insertStaticRows(t,[a]):(r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE),!1)},r.QCELL.NormalQCELL.prototype.deleteStaticRow=function(t){var e=this.attr("id")+".deleteStaticRow";if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>=this.attr("headerrows")&&this._deleteStaticRows(t,1);r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.getFocusRowState=function(){return this._getFocusRowState()},r.QCELL.NormalQCELL.prototype.getSelectRowState=function(t){return this._getSelectRowState(t)},r.QCELL.NormalQCELL.prototype.setCellInvisible=function(t,e,a){var o=this.attr("id")+".setCellInvisible";if(arguments.length<3)r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if(r._.isNumber(t)&&r._.isNumber(e)&&r._.isBoolean(a))return this._setCellInvisible(t,e,a),!0;r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},r.QCELL.NormalQCELL.prototype.getColSum=function(t){var e=this.attr("headerrows"),a=this.attr("colkeys")[t],o=0,i=this;return r.$(this.attr("currentdata")).each((function(t,s){i.isStaticRow(t+e-1)||r._.isNumber(s[a])&&(o+=parseFloat(s[a]))})),o},r.QCELL.NormalQCELL.prototype.isStaticRow=function(t){for(var e=this.attr("staticrowsinfo"),r=!1,a=0;a<e.length;a++)if(e[a].nRow===t){r=!0;break}return r},r.QCELL.NormalQCELL.prototype.editCell=function(t,e,a){var o,i=this.getID();if(!(t>=this.getRows()||t<this.getRows("header"))){if(this.focusCell(t,e),!1!==a)this.scrollTop(t),this.scrollLeft(e);else if(null===this._getCellDOM(t,e))return;var s=200;return!0===this.attr("hsinfo").bHScroll&&this.attr("hsinfo").nRightCol===e&&(s=300),setTimeout((function(){var a=(o=r.QCELL.getInstance(i))._getQCellCol(e).attr("celldisabled")[t],s=o._getCellDOM(t,e);if(null!==s){switch(o._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":(r._.isUndefined(a)||!1===a)&&o._getColElement(e)._show(s,"");break;case"datepicker":(r._.isUndefined(a)||!1===a)&&o._getColElement(e)._show(s);break;case"multicheckbox":case"editor":(r._.isUndefined(a)||!1===a)&&o._getColElement(e)._show(s,t,e)}o=null}}),s),!0}},r.QCELL.NormalQCELL.prototype.getAllStates=function(){return this._getAllStates()},r.QCELL.NormalQCELL.prototype.setColOptions=function(t,e){if(t<this.getCols("header"))return!1;var a=this._getQCellCol(t);if(null==a)return!1;var o=r._.clone(e);a.attr("options",o,"object"),a._initAttr("format",o.format,"object");var i=this._getColMask(t);if(a._initAttr("mask",o.mask,"object"),a._initAttr("html",o.html,"object"),a._initAttr("chart",o.chart,"object"),a._initAttr("invisibled",o.invisibled,"boolean"),"input"===this._getColType(t)){var s=this._getColElement(t);s._setOptionsAttrs(o),!r._.isUndefined(i)&&r._.isObject(i)&&(r.$(s.attr("element")).inputmask().remove(),s._initEvent())}for(var l=this.attr("vsinfo"),n=l.nTopRow;n<=l.nBottomRow;n++){var c=this._getCellDOM(n,t);if(null!=c){var d=this.getCellData(n,t),h=this._showDataFormat(n,t,void 0===d?"":d);r.util.textContent(c,h)}}return!0},r.QCELL.NormalQCELL.prototype.getColOptions=function(t){return t<this.getCols("header")?null:this._getColOptions(t)},r.QCELL.NormalQCELL.prototype.isHeaderCheckbox=function(t){var e=this.attr("id")+".isHeaderCheckbox",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t||r._.isNull(this._getColElement(t))||"checkbox"!==this._getColType(t)?r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):a=this._getColElement(t)._isHeaderCheckbox(t),a},r.QCELL.NormalQCELL.prototype.getHeaderCheckedState=function(t){var e=this.attr("id")+".getHeaderCheckedState",a=!1;return arguments.length<1?r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t||r._.isNull(this._getColElement(t))||"checkbox"!==this._getColType(t)?r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):a=this._getColElement(t)._getHeaderCheckedState(t),a},r.QCELL.NormalQCELL.prototype.setHeaderChecked=function(t,e){var a=this.attr("id")+".setHeaderChecked";arguments.length<2?r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t?r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE):r._.isNull(this._getColElement(t))&&"checkbox"!==this._getColType(t)?r.QCELL.log("err",a,this.attr("msg").err.TYPE_NOT_CHECKBOX):"boolean"!=typeof e?r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE):this._getColElement(t)._setHeaderChecked(t,e)},r.QCELL.NormalQCELL.prototype.getCheckedRows=function(t){var e=this.attr("id")+".getCheckedRows",a=[];if(arguments.length<1)r.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("number"!=typeof t)r.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);else if(r._.isNull(this._getColElement(t))&&"checkbox"!==this._getColType(t))r.QCELL.log("err",e,this.attr("msg").err.TYPE_NOT_CHECKBOX);else for(var o=this.attr("headerrows"),i=this.attr("rows"),s=this._getColElement(t).attr("checkedvalue");o<i;o++)s===this._cellValue(o,t)&&a.push(o);return a},r.QCELL.NormalQCELL.prototype.setSelectmenuValue=function(t,e,a){var o=this.attr("id")+".setSelectmenuValue",i=!1;return arguments.length<3?r.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT):r._.isNumber(t)&&r._.isNumber(e)&&(r._.isString(a)||r._.isNumber(a))&&!r._.isNull(this._getColElement(e))&&"selectmenu"===this._getColType(e)?i=this._getColElement(e)._showDataLabel(this._getCellDOM(t,e),t,e,a):r.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE),i},r.QCELL.NormalQCELL.prototype.getSelectmenuLabel=function(t,e){var a=this.attr("id")+".getSelectmenuLabel",o="";return arguments.length<2?r.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT):r._.isNumber(t)&&r._.isNumber(e)&&!r._.isNull(this._getColElement(e))&&"selectmenu"===this._getColType(e)?o=this._getColElement(e)._getDataLabel(t,e):r.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE),o},r.QCELL.config=r._.extend(r._.clone(r.QCELL.config),{moduletype:"normal",oneclickedit:!1,htmlselectmenu:!1,usebuttonclickcallback:!1,delkeymode:"select",setstatewithapi:!0,sethtmlclicktoidx:!0,useenterkeytonextcol:!1,keepeditmode:!1,datepickerautosettoday:!1,useinitdata:!0}),r.QCELL.def.msg.kr.err=r._.extend(r._.clone(r.QCELL.def.msg.kr.err),{TYPE_NOT_CHECKBOX:"지정한 열의 타입은 'checkbox'가 아닙니다.",NOT_HAVE_HEADER_CHECKBOX:"지정한 열의 options 중 'wholeselect' 값이 설정되어 있지 않거나 사용 설정된 상태가 아닙니다.",CAN_NOT_USE_WITH_PAGINATION:"pagination 속성과 같이 사용할 수 없습니다."}),r.QCELL.def.msg.en.err=r._.extend(r._.clone(r.QCELL.def.msg.en.err),{TYPE_NOT_CHECKBOX:"Please check, This col`s Type. Is a 'checkbox'.",NOT_HAVE_HEADER_CHECKBOX:"Please check, This col`s options. Is not set up 'wholeselect' or 'wholeselect' value is not true.",CAN_NOT_USE_WITH_PAGINATION:"Please check, can`t use with a 'pagination' attribute."}),r.QCELL.NormalQCELL.create=function(t){return r.QCELL.BasicQCELL.create.call(this,t)},r.QCELL.NormalQCELL._create=function(t){return r.QCELL.BasicQCELL._create.call(this,t)},r.QCELL.NormalQCELL._checkRequiredProps=function(t){return!!r.QCELL.BasicQCELL._checkRequiredProps(t)},r.QCELL.NormalQCELL._checkValidationOfProps=function(t){var e=!1;return r.QCELL.BasicQCELL._checkValidationOfProps(t)&&r.$.each(t,(function(t,a){return e=r.QCELL.NormalQCELL._checkValidationOfProp(t,a)})),e},r.QCELL.NormalQCELL._checkValidationOfProp=function(t,e){var a=!0,o="";return"oneclickedit"===t&&(o="boolean",!1===r._.isBoolean(e)&&(a=!1)),!1===a&&r.QCELL.log("err","QCELL.create",'Please check "'+t+'" property\'s type is "'+o+'".'),a},r.QCELL.NormalQCELL._adjustProps=function(t){var e=r._.mapValues(r.QCELL.BasicQCELL._adjustProps(t),(function(t,e){return r.QCELL.NormalQCELL._adjustProp(e,t)}));return r._.assign(r._.clone(r.QCELL.config),e)},r.QCELL.NormalQCELL._adjustProp=function(t,e){return void 0===e?r.QCELL.BasicQCELL._getDefaultValueOfProp(t):e},window.QCELL=r.QCELL,t.exports=r.QCELL},198:(t,e,r)=>{"use strict";r.d(e,{A:()=>pt});var a=r(601),o=r.n(a),i=r(314),s=r.n(i),l=r(417),n=r.n(l),c=new URL(r(629),r.b),d=new URL(r(453),r.b),h=new URL(r(51),r.b),_=new URL(r(409),r.b),u=new URL(r(653),r.b),p=new URL(r(579),r.b),C=new URL(r(363),r.b),g=new URL(r(107),r.b),f=new URL(r(21),r.b),L=new URL(r(837),r.b),m=new URL(r(798),r.b),E=new URL(r(628),r.b),b=new URL(r(190),r.b),y=new URL(r(318),r.b),v=new URL(r(114),r.b),w=new URL(r(556),r.b),x=new URL(r(644),r.b),Q=new URL(r(472),r.b),S=new URL(r(25),r.b),k=new URL(r(928),r.b),T=new URL(r(986),r.b),R=new URL(r(529),r.b),A=new URL(r(863),r.b),q=new URL(r(322),r.b),B=new URL(r(910),r.b),O=new URL(r(944),r.b),D=new URL(r(12),r.b),I=new URL(r(62),r.b),N=new URL(r(463),r.b),P=s()(o()),M=n()(c),U=n()(d),H=n()(h),F=n()(_),z=n()(u),j=n()(p),G=n()(C),W=n()(g),V=n()(f),K=n()(L),$=n()(m),Y=n()(E),X=n()(b),Z=n()(y),J=n()(v),tt=n()(w),et=n()(x),rt=n()(Q),at=n()(S),ot=n()(k),it=n()(T),st=n()(R),lt=n()(A),nt=n()(q),ct=n()(B),dt=n()(O),ht=n()(D),_t=n()(I),ut=n()(N);P.push([t.id,`.rt-qc-root {\n\tborder-width: 1px;\n\tborder-style: solid;\n\tborder-color: #d3d5df;\n}\n\n.rt-qc-root,\n.rt-qc-root *,\n.rt-qc-colmoveshadow,\n.rt-qc-colmoveshadow * {\n\tfont-family: NanumGothic, Dotum, sans-serif !important;/* QCELL 폰트 설정 */\n\tfont-smoothing: antialiased;\n}\n\n.rt-qc-panel {\n\tborder-bottom-width:1px;\n\tborder-bottom-style:solid;\n\tborder-bottom-color: #d3d5df;\n}\n\n\n.rt-qc-sheetpanel {\n\tborder-top-width:1px;\n\tborder-top-style:solid;\n\tborder-top-color: #d3d5df;\n}\n\n.rt-qc-sheetpanel-inner {\n\twidth: 90%;\n height: 100%;\n margin: 0 auto;\n}\n\n.rt-qc-sheetpanel-inner::before {\n\tdisplay: inline-block;\n\tcontent: "";\n\theight: 100%;\n\tvertical-align: middle;\n}\n\n.rt-qc-sheetpanel-inner-span {\n\ttext-align: right;\n\tcolor: #575757;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\twidth: 100%;\n\t\n\t-webkit-user-select: text; /* Chrome, Opera, Safari */\n\t-moz-user-select: text; /* Firefox 2+ */\n\t-ms-user-select: text; /* IE 10+ */\n\t-khtml-user-select: text;\n\tuser-select: text; /* Standard syntax */\n}\n\n.rt-qc-paginationpanel {\n\tborder-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: #9295a0;\n background-color: #9295a0;\n}\n\n.rt-qc-hscrollbar {\n\tborder-width:1px 1px 0px 0px;\n}\n\n.rt-qc-vscrollbar {\n\tborder-width:0px 0px 1px 1px;\n}\n\n.rt-qc-hscrollbar, .rt-qc-vscrollbar {\n\tborder-color:#d3d5df;\n\tborder-style:solid;\n}\n\n.rt-qc-cell {\n\tfont-size: 13px; /* QCELL의 셀 폰트 크기 설정 */\n}\n\n/* 선택된 셀에 적용할 스타일 설정 */\n.rt-qc-cell-select {\n\tbackground-color: #4e65b6 !important;\n\tborder-color: #3c4e8c !important;\n\tcolor:#fff !important; \n}\n\n/* 포커스가 있는 셀에 적용할 스타일 설정 */\n.rt-qc-cell-focus,\n.rt-qc-cell-focus.rt-qc-cell-select {\n\tfont-weight:bold !important;\n\tbackground-color: #ffffff !important;\n\tborder: 1px solid #3c4e8c !important;\n\tcolor:#000 !important; \n\t\n}\n\n.rt-qc-cell-edgeheader {\n\tborder-bottom-width:1px !important;\n}\n\n.rt-qc-cell-viewport, .rt-qc-cell-footer {\n\tborder-color: #c9d1e9;\n\tcolor: #000;/* 데이터 표시 영역의 폰트칼라 설정 */\n}\n\n/* 텍스트 padding 설정 */\n.rt-qc-cell-colheader, .rt-qc-cell-viewport, .rt-qc-cell-footer {\n\tpadding-left:5px;\n\tpadding-right:5px;\n}\n\n.rt-qc-cell-headerrows, .rt-qc-cell-frozenbottomrows, .rt-qc-cell-footerrows {\n\tborder-width:1px 1px 0px 0px;\n}\n\n.rt-qc-cell-headerrows, .rt-qc-cell-frozenbottomrows-panel, .rt-qc-cell-footerrows {\n\tborder-width:1px 1px 0px 0px;\n}\n.rt-qc-cell-headerrows {\n\tborder-bottom-width:1px;\n}\n\n.rt-qc-cell-frozenbottomrows-panel{\n\tbackground-color:#c0c0c0 !important;\t\n\tborder-color: #c0c0c0!important;\n\tcolor : white ;\n z-index: 10000;\n}\n\n/* 틀고정 영역 셀 스타일 설정 */\n.rt-qc-cell-frozencols, .rt-qc-cell-frozenrows, .rt-qc-cell-frozenbottomrows {\n\tbackground-color: #f5fbee;/*틀고정 영역에 배경색을 반드시 설정해야 함.*/\n\tborder-color: #c9d1e9;\n}\n\n\n/* highlightrepeat 스타일 설정 */\n.rt-qc-cell-highlightrepeat {\n\tbackground-color: #f2f5fb;\n}\n\n/* 헤더 영역 셀 스타일 설정 */\n.rt-qc-cell-headerrows, .rt-qc-cell-headercols {\n\ttext-align: center;\n\tfont-weight: bold;\n\tbackground-color:#f4f9fd;\n\tborder-color:#c9d1e9;\n\t/* border-top-color:#4c63a3 !important; */\n\tcolor: #4c63a3;\n}\n\n.rt-qc-colheaderdndarea {\n\tleft: 3px;\n\ttop: 3px;\n\twidth: 14px;\n\theight: 50%;\n\tcursor: move;\n\tbackground: url(${M}) no-repeat;\n}\n\n.rt-qc-colmoveshadow {\n\tbackground-color: #fff;\n\tborder-width: 1px;\n\tborder-style: solid;\n\tborder-color: #d3d5df;\n}\n\n.rt-qc-colmoveline {\n\tborder-right-width: 2px;\n\tborder-right-style: dotted;\n\tborder-right-color: #000;\n\twidth: 2px;\n}\n\n.rt-qc-colresizearea {\n\tcursor: e-resize;\n\tright: 3px;\n\tbottom: 3px;\n\twidth: 12px;\n\theight: 8px;\n\tbackground: url(${U}) no-repeat;\n}\n\n.rt-qc-colresizearea:hover {\n\tbackground: url(${H}) no-repeat;\n}\n\n.rt-qc-colresizearea-hover {\n\tbackground: url(${H}) no-repeat;\n}\n\n.rt-qc-colresizeline {\n\tborder-style: dotted;\n\tborder-width: 0px 2px 0px 0px;\n\tborder-color: #f24a97;\n\twidth: 2px;\n}\n\n.rt-qc-colresizetooltip {\n width: 90px;\n height: 25px;\n opacity: 0.8;\n font-size: 12px;\n text-align: center;\n border: 1px solid #f6ae9a;\n border-radius: 2px;\n color: #f24a97;\n background-color: #fff;\n padding-top: 4px;\n}\n\n.rt-qc-sortarea {\n\tright: 15px;\n\twidth: 7px;\n\theight: 10px;\n\tbackground: url(${F}) no-repeat;\n\tcursor: pointer;\n}\n\n.rt-qc-sort-asc {\n\tbackground: url(${z}) no-repeat;\n}\n\n.rt-qc-sort-desc {\n\tbackground: url(${j}) no-repeat;\n}\n\n.rt-qc-multisort-order {\n\tfont-size: 11px;\n\tfont-weight: normal;\n\tleft: 9px;\n\tcolor: orange;\n}\n\n.rt-qc-progress-ui {\n\tbackground-color: #f1f4f5;\n\tbackground-image: url(${G});\n\tbackground-repeat: no-repeat;\n\tbackground-position: center;\n\topacity: 0.8;\n}\n\n.rt-qc-coleditor-area {\n\tcursor: pointer;\n left: 1px;\n bottom: 1px;\n width: 8px;\n height: 8px;\n background: url(${W}) no-repeat;\n}\n\n.rt-qc-coleditor-area:hover {\n\tbackground: url(${V}) no-repeat;\n}\n\n.rt-qc-coleditor-area-hover {\n\tbackground: url(${V}) no-repeat;\n}\n\n.rt-qc-emptymessasge {\n\tborder: none !important;\n\ttext-align: center;\n}\n\n.rt-qc-pagination-ui-center {\n\twidth: 100%;\n\theight: 100%;\n\tfloat: left;\n\ttext-align: center;\n\tline-height: 25px;\n}\n\n.rt-qc-pagination-ui-right {\n\tright: 0;\n\ttop: 0;\n\tline-height: 25px;\n}\n\n.rt-qc-pagination-nav {\n color: #ffffff !important;\n font-weight: bold;\n display: inline-block;\n font-size: 12px;\n vertical-align: middle;\n text-align: center !important;\n padding: 0 8px;\n}\n\n.rt-qc-pagination-nav-btn {\n color: #fff !important;\n}\n.rt-qc-pagination-nav-btn-button { \n border : none;\n background-color : transparent;\n}\n\n.rt-qc-pagination-nav-pager, .rt-qc-pagination-nav-pager-skip {\n\tcolor: #34353c !important;\n}\n\n.rt-qc-pagination-nav-pager-button {\t\n border : none;\n background-color : transparent;\t\n}\n\n.rt-qc-pagination-nav-pager:hover {\n\tborder: 1px solid #7b7d87;\n padding: 0 7px;\n}\n\n.rt-qc-pagination-nav-pager-now {\n color: #34353c !important;\n border: 1px solid #d7dae3;\n background-color: transparent;\n padding: 0 7px;\n}\n\n.rt-qc-pagination-nav-extend-move {\n\tmargin-left: 10px;\n}\n\n.rt-qc-pagination-ui-center .rt-qc-pagination-nav-input {\n display: inline-block;\n height: 30px;\n border: 1px solid #686c79;\n background-color: #686c79;\n color: #ffffff !important;\n font-weight: bold;\n vertical-align: middle;\n}\n\n.rt-qc-pagination-nav-select {\n margin-left: 10px;\n height: 24px;\n\tcolor: #000000 !important;\n}\n\n.rt-qc-pagination-nav-info {\n color: #ffffff !important;\n}\n\n@media (max-width: 520px) {\n\t.rt-qc-pagination-nav-info {\n\t\tdisplay: none;\n\t}\n}\n\n.rt-qc-gtui {\n\tdisplay: inline-block;\n height: 12px;\n vertical-align: middle;\n cursor:pointer;\n}\n\n.rt-qc-gtui-arrow {\n width: 10px;\n}\n\n.rt-qc-gtui-arrow-expand {\n\tbackground: url(${K}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-arrow-collapse {\n\tbackground: url(${$}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-folder {\n\twidth: 22px;\n\tpadding: 0 5px 0 5px;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-folder-expand {\n\tbackground: url(${Y}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-folder-collapse {\n\tbackground: url(${X}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-dot {\n\twidth: 10px;\n\tmargin-right: 5px;\n\tbackground: url(${Z}) 50% 50% no-repeat;\n}\n\n.rt-qc-gtui-header, .rt-qc-gtui-footer {\n\tbackground-color: #dde5f4 !important;\n\tcolor:#000 !important;\n} \n\n.rt-qc-filterarea {\n\tcursor: pointer;\n\tright: 3px;\n\ttop: 3px;\n\twidth: 8px;\n\theight: 8px;\n\tbackground: url(${J}) no-repeat;\n}\n.rt-qc-filterarea-adjust {\n\tcursor: pointer;\n\tright: 3px;\n\ttop: 3px;\n\twidth: 8px;\n\theight: 8px;\n\tbackground: url(${tt}) no-repeat;\n}\n\n.rt-qc-filterarea:hover {\n\tbackground: url(${et}) no-repeat;\n}\n\n.rt-qc-filterarea-hover {\n\tbackground: url(${et}) no-repeat;\n}\n\n.rt-qc-filter-ui-area {\n\twidth: 250px;\n\tborder: 1px solid #686c79;\n\t/*border-radius: 3px;*/\n\tpadding: 10px;\n\tbackground-color: #ffffff;\n\tz-index : 600;\n}\n.rt-qc-filter-title-area \n{\n\tmargin: 0px 0px 10px 0px ;\n\tcursor: grab;\n}\n.rt-qc-filter-title-span\n{\n\tfont-weight\t: bold;\n\tfont-size\t: 15px\n}\n\n\n.rt-qc-filter-ui-btn {\n\tcursor: pointer;\n\tmargin: 0px 5px 0px 0px;\n\tborder-radius: 3px;\n\tcolor: #fff;\n\tpadding: 3px 10px;\n}\n\n.rt-qc-filter-ui-close {\n\tcursor: pointer;\n\twidth: 12px;\n\theight: 12px;\n\tfloat: right;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${rt}) no-repeat;\n}\n\n.rt-qc-filter-ui-addoperator {\n\tcursor: pointer;\n\twidth: 8px;\n\theight: 8px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${at}) no-repeat;\n}\n.rt-qc-filter-ui-addoperator_close {\n\tcursor: pointer;\n\twidth: 8px;\n\theight: 8px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${ot}) no-repeat;\n}\n\n.rt-qc-contextmenu-area {\n\tcolor: #000;\n\tbackground-color: #fff;\n\tborder: 1px solid #93959f;\n\tdisplay: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmin-width: 170px;\n}\n\n.rt-qc-contextmenu-root {\n\tdisplay: inline-block;\n}\n\n.rt-qc-contextmenu-area li {\n\tlist-style: none;\n\tposition: relative;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.rt-qc-contextmenu-area li:hover ul {\n\tdisplay: none;\n}\n\n.rt-qc-contextmenu-item {\n\tfont-size: 16px;\n\tline-height: 30px;\n\theight: 30px;\n\tcursor: pointer;\n}\n\n.rt-qc-contextmenu-item:hover {\n\tbackground-color: #24cbe6;\n\tcolor: #fff;\n}\n\n.rt-qc-contextmenu-item > span {\n\tdisplay: inline-block;\n}\n\n.rt-qc-contextmenu-item img {\n\twidth: 25px;\n\theight: 25px;\n\tvertical-align: middle;\n}\n\n.rt-qc-contextmenu-menu {}\n.rt-qc-contextmenu-sub-menu {}\n\n.rt-qc-contextmenu-item-img {\n\twidth: 20%;\n\ttext-align: center;\n}\n\n.rt-qc-contextmenu-item-label {\n\twidth: 70%;\n}\n\n.rt-qc-contextmenu-item-sub {\n\twidth: 10%;\n}\n\n.rt-qc-contextmenu-sub-menu > .rt-qc-contextmenu-item-sub {\n\tbackground: url(${it}) no-repeat;\n\tbackground-size: 30px 30px;\n\tbackground-position-x: right;\n\tbackground-position-y: center;\n}\n\n.rt-qc-contextmenu-divine {\n\tborder-top: 1px dashed #93959f;\n}\n\n.qcell_col_9_inputbutton-style {\n\tmargin-right:5px\n\t}\n\n.rt-qc-contextmenu-disable {\n\tcursor: not-allowed;\n}\n\n.rt-qc-colsearch-area {\n\tleft: 3px;\n\tbottom: 3px;\n\twidth: 12px;\n\theight: 12px;\n\tcursor: pointer;\n\tbackground: url(${st}) no-repeat;\n z-index: 0;\n}\n\n.rt-qc-colsearch-area-hover {\n\tbackground: url(${lt}) no-repeat;\n}\n\n.rt-qc-colsearch-area:hover {\n\tbackground: url(${lt}) no-repeat;\n}\n\n.rt-qc-colsearch-ui-area {\n\tpadding: 10px;\n\tbackground-color: #fff;\n\tborder: 1px solid #686c79;\n\t/*border-radius: 3px;*/\n\tz-index : 9999;\n}\n\n.rt-qc-colsearch-ui-btn {\n\tcursor: pointer;\n\tmargin-right: 5px;\n\tborder-radius: 3px;\n\tcolor: #fff;\n\tpadding: 3px 10px;\n}\n\n.rt-qc-colsearch-ui-close {\n\tcursor: pointer;\n\twidth: 12px;\n\theight: 12px;\n\tfloat: right;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${nt}) no-repeat;\n}\n\n.rt-qc-tooltip {\n\tposition: fixed; \n\ttop: 0px; \n\tleft: 0px; \n\tdisplay: block; \n\tz-index: 100;\n}\n.rt-qc-tooltip > .content {\n\tpadding: 1px 6px 1px 6px; \n\tborder: 4px solid #f9e98e;\n\tmin-width: 40px;\n\tbackground: #fbf7aa; \n\tcolor: #000000; \n\tfont-size: 12px; \n\tborder-radius: 5px; \n\t-moz-border-radius: 5px; \n\t-webkit-border-radius: 5px;\n}\n\n/* cell type에 따라 구분용 class */\n.rt-qc-static-type-cell {}\n.rt-qc-input-type-cell {\n\t/*\n\tbackground-image: url( "../img/edit.png" );\n background-repeat: no-repeat;\n\tbackground-position: 100% 50%;\n\t*/\n}\n\n.rt-qc-input-edit-cell-style {\n\tright :3px;\n\twidth : 1px;\n\theight : 1px;\n\tposition : absolute;\n\ttop : 7px;\n\toverflow: hidden;\n}\n.rt-qc-number-type-cell {\n\n}\n\n.rt-qc-textarea-type-cell {}\n.rt-qc-selectmenu-type-cell {\n\t/*\n\tbackground-image: url( "../img/select.png" );\n background-repeat: no-repeat;\n\tbackground-position: 90% 50%;\n\t*/\n}\n.rt-qc-datepicker-type-cell {}\n.rt-qc-inputdatepicker-type-cell {}\n.rt-qc-datepicker-style {\n\twidth: 100%;\n}\n.rt-qc-datepicker-date-style {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n.rt-qc-datepicker-img-style {}\n.rt-qc-datepicker-img-style img {\n\tvertical-align: middle;\n position: relative;\n left: 5px;\n width: 16px;\n height: 16px;\n}\n.rt-qc-checkbox-type-cell {}\n.rt-qc-image-type-cell {}\n.rt-qc-html-type-cell {}\n\n.rt-qc-edgeheader-cell-checkbox{}\n.rt-qc-colheader-cell-checkbox{}\n.rt-qc-rowheader-cell-checkbox{}\n\n.rt-qc-edgeheader-cell-radio{}\n.rt-qc-colheader-cell-radio{}\n.rt-qc-rowheader-cell-radio{}\n\n.rt-qc-rowheader-state-init{\n\tbackground: url(${ct}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\n}\n.rt-qc-rowheader-state-insert{\n\tbackground: url(${dt}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\n}\n.rt-qc-rowheader-state-update{\n\tbackground: url(${ht}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\t\t\n}\n.rt-qc-rowheader-state-delete{\n\tbackground: url(${_t}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\t\t\n}\n\n.rt-qc-static-row{\n\tbackground-color: #F2FC3F !important;\n}\n\n.rt-qc-inputform-header{\n\tbackground-color: #d3d3d3 !important;\n\tdisplay:block;\n\twidth:100%;\n}\n.rt-qc-inputform-item{\n\tdisplay:block;\n\twidth:100%;\n}\n\n.rt-qc-grandtotal-row{\n\tbackground-color: #FF9F40 !important;\n}\n\n.rt-qc-removearea {\n\tright: 3px;\n\twidth: 14px;\n\theight: 14px;\n\tbackground: url(${ut}) no-repeat center;\n\tbackground-size : cover;\n\tcursor: pointer;\n}\n.hide {\n overflow: hidden;\n position: absolute;\n left: -0.1rem;\n top: -0.1rem;\n width: 0.1rem;\n height: 0.1rem;\n opacity: 0;\n}\t`,""]);const pt=P},73:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var a=r(601),o=r.n(a),i=r(314),s=r.n(i)()(o());s.push([t.id,".rt-qc-colmoveshadow,.rt-qc-colmoveshadow *,.rt-qc-root,.rt-qc-root *{box-sizing:border-box!important}.rt-qc-container{outline:0;position:relative}.rt-qc-cell,.rt-qc-coleditor-area,.rt-qc-colheader,.rt-qc-colheaderdndarea,.rt-qc-colmoveline,.rt-qc-colmoveshadow,.rt-qc-colresizearea,.rt-qc-colresizeline,.rt-qc-colresizetooltip,.rt-qc-colsearch-area,.rt-qc-colsearch-ui-area,.rt-qc-container,.rt-qc-contextmenu-area,.rt-qc-contextmenu-area li:hover ul,.rt-qc-edgeheader,.rt-qc-filter-ui-area,.rt-qc-filterarea,.rt-qc-filterarea-adjust,.rt-qc-footer,.rt-qc-frowheader,.rt-qc-hscrollbar,.rt-qc-multisort-order,.rt-qc-pagination-ui-right,.rt-qc-paginationpanel,.rt-qc-panel,.rt-qc-progress-ui,.rt-qc-removearea,.rt-qc-rowheader,.rt-qc-sheetpanel,.rt-qc-sortarea,.rt-qc-viewport,.rt-qc-vscrollbar{position:absolute}.rt-qc-cell,.rt-qc-colheader,.rt-qc-edgeheader,.rt-qc-footer,.rt-qc-frowheader,.rt-qc-hscrollbar,.rt-qc-rowheader,.rt-qc-viewport,.rt-qc-vscrollbar{overflow:hidden}.rt-qc-viewport-inner{outline:0}.rt-qc-cell{vertical-align:middle;border-width:0 1px 1px 0;border-style:solid;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.rt-qc-cell-colheader>span{display:inline-block;vertical-align:middle}.rt-qc-cell-colheader,.rt-qc-cell-footer,.rt-qc-cell-rowheader,.rt-qc-cell-viewport{text-overflow:ellipsis;white-space:nowrap}.rt-qc-cell-frozencols{z-index:1}.rt-qc-cell-frozenbottomrows,.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:2}.rt-qc-cell-frozenbottomrows-panel,.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:2}.rt-qc-cell-frozencols.rt-qc-cell-frozenbottomrows,.rt-qc-cell-frozencols.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenbottomrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:3}.rt-qc-cell-frozencols.rt-qc-cell-frozenbottomrows-panel,.rt-qc-cell-frozencols.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenbottomrows-panel,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:3}.rt-qc-colmoveshadow{overflow:hidden;box-sizing:border-box!important}.rt-qc-colmoveline{border-top-width:0;border-left-width:0;border-bottom-width:0}.rt-qc-colmoveline,.rt-qc-colmoveshadow,.rt-qc-colresizeline,.rt-qc-colresizetooltip{z-index:9999}.rt-qc-progress-ui{z-index:1000}.rt-qc-checkbox-cell-style,.rt-qc-image-cell-style{text-align:center}.rt-qc-input-text-style{outline:0}.rt-qc-input-text-style::-ms-clear{display:none}.rt-qc-number-text-style{outline:0}.rt-qc-number-text-style::-ms-clear{display:none}.rt-qc-textarea-text-style{overflow:visible;resize:none;outline:0}.rt-qc-datepicker-wrap-style{width:287px}.rt-qc-datepicker-wrap-style *{box-sizing:initial!important}.rt-qc-checkbox-wrap-style{text-align:center;margin:0;width:100%;height:100%}.rt-qc-datepicker-wrap-style,.rt-qc-input-text-style,.rt-qc-multicheckbox-wrap-style,.rt-qc-number-text-style,.rt-qc-selectmenu-wrap-style,.rt-qc-slider-wrap-style,.rt-qc-textarea-text-style{position:absolute;z-index:9999}.rt-qc-multicheckbox-wrap-style{text-align:center}.rt-qc-checkbox-wrap-style,.rt-qc-edgeheader-cell-checkbox,.rt-qc-html-type-cell,.rt-qc-rowheader-cell-checkbox,.rt-qc-selectmenu-wrap-style{display:list-item}.rt-qc-checkbox-wrap-style::marker,.rt-qc-edgeheader-cell-checkbox::marker,.rt-qc-html-type-cell::marker,.rt-qc-rowheader-cell-checkbox::marker,.rt-qc-selectmenu-wrap-style::marker{visibility:hidden}.rt-qc-button-wrap-style{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;height:100%}.rt-qc-button-style{vertical-align:middle}.rt-qc-radio-cell-style{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.rt-qc-radio-cell-style+label{display:inline-block;position:relative;padding-left:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.rt-qc-radio-cell-style+label:before{content:'';position:absolute;left:-2px;top:-12px;width:12px;height:12px;text-align:center;background:#fafafa;border:1px solid #cacece;border-radius:100%;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0 -15px 10px -12px rgba(0,0,0,.05)}.rt-qc-radio-cell-style:checked+label:after{content:'';position:absolute;left:0;top:-10px;width:8px;height:8px;background:#99a1a7;border-radius:100%;box-shadow:inset 0 0 10px rgba(0,0,0,.3)}.rt-qc-multicheckbox-cell-style{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.rt-qc-multicheckbox-cell-style+label{display:inline-block;position:relative;padding-left:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.rt-qc-multicheckbox-cell-style+label:before{content:'';position:absolute;left:5px;top:14px;width:10px;height:10px;text-align:center;background:#fafafa;border:1px solid #cacece;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0 -15px 10px -12px rgba(0,0,0,.05)}.rt-qc-multicheckbox-cell-style:checked+label:after{content:'\\2714';text-shadow:1px 1px #fff;position:absolute;top:1px;left:7px;font-size:10px}.rt-qc-multicheckbox-cell-style:focus+label::before{border:2px solid #3b99fc}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style+label{display:inline-block;position:relative;padding-left:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style+label:before{content:'';position:absolute;left:3px;top:13px;width:12px;height:12px;text-align:center;background:#fafafa;border:1px solid #cacece;border-radius:100%;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0 -15px 10px -12px rgba(0,0,0,.05)}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style:checked+label:after{content:'';position:absolute;top:17px;left:7px;width:8px;height:8px;background:#99a1a7;border-radius:100%;box-shadow:inset 0 0 10px rgba(0,0,0,.3)}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style:focus+label::before{border:2px solid #3b99fc;border-radius:100%}.rt-qc-group-ui{width:100%;height:100%}.rt-qc-group-ui-inner{padding:0;margin:7px 10px}.rt-qc-group-ui-inner>li{display:inline-block;padding:2px 5px 2px 5px;border:1px solid #c5c5c5;border-radius:3px;margin-left:10px;background-color:#f3f7ff;box-shadow:0 0 5px #888;font-family:arial!important}.rt-qc-group-ui-inner>li:first-chld{margin-left:0}.hover>.rt-qc-group-ui-inner>li.placeholder{font-weight:700}.rt-qc-group-ui-inner .rt-qc-ui-icon.rt-qc-ui-icon-close{display:inline-block;top:0;position:relative;left:-2px;cursor:pointer}.rt-qc-slider-style{padding:0;-webkit-appearance:none;width:97%;height:25px;margin-top:14px}.rt-qc-slider-style:focus{outline:0}.rt-qc-slider-style::-webkit-slider-runnable-track{width:100%;height:2px;cursor:pointer;animate:.2s;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#3071a9;border-radius:1.3px;border:.2px solid #010101}.rt-qc-slider-style::-webkit-slider-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:10px;width:15px;border-radius:3px;background:#fff;cursor:pointer;-webkit-appearance:none;margin-top:-4px}.rt-qc-slider-style:focus::-webkit-slider-runnable-track{background:#367ebd}.rt-qc-slider-style::-moz-range-track{width:100%;height:2px;cursor:pointer;animate:.2s;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#3071a9;border-radius:1.3px;border:.2px solid #010101}.rt-qc-slider-style::-moz-range-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:10px;width:15px;border-radius:3px;background:#fff;cursor:pointer}.rt-qc-slider-style::-ms-track{width:100%;height:2px;cursor:pointer;animate:.2s;background:0 0;border-color:transparent;border-width:16px 0;color:transparent}.rt-qc-slider-style::-ms-fill-lower{background:#2a6495;border:.2px solid #010101;border-radius:2.6px;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}.rt-qc-slider-style::-ms-fill-upper{background:#3071a9;border:.2px solid #010101;border-radius:2.6px;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}.rt-qc-slider-style::-ms-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:10px;width:15px;border-radius:3px;background:#fff;cursor:pointer}.rt-qc-slider-style:focus::-ms-fill-lower{background:#3071a9}.rt-qc-slider-style:focus::-ms-fill-upper{background:#367ebd}.rt-qc-slider-style::-ms-tooltip{display:none}.rt-qc-slider-result-style{position:absolute;top:0;right:40px}.rt-qc-colStyleEditor-wrap{position:relative}.rt-qc-editor-wrap-style{position:absolute}.rt-qc-cell.rt-qc-cell-viewport>p{margin:0}.rt-qc-invisible-style{height:100%;width:100%;z-index:999;position:absolute}",""]);const l=s},494:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var a=r(601),o=r.n(a),i=r(314),s=r.n(i),l=r(417),n=r.n(l),c=new URL(r(10),r.b),d=new URL(r(466),r.b),h=new URL(r(859),r.b),_=s()(o()),u=n()(c),p=n()(d),C=n()(h);_.push([t.id,`/*\n== malihu jquery custom scrollbar plugin ==\nPlugin URI: http://manos.malihu.gr/jquery-custom-content-scroller\n*/\n\n\n\n/*\nCONTENTS: \n\t1. BASIC STYLE - Plugin's basic/essential CSS properties (normally, should not be edited). \n\t2. VERTICAL SCROLLBAR - Positioning and dimensions of vertical scrollbar. \n\t3. HORIZONTAL SCROLLBAR - Positioning and dimensions of horizontal scrollbar.\n\t4. VERTICAL AND HORIZONTAL SCROLLBARS - Positioning and dimensions of 2-axis scrollbars. \n\t5. TRANSITIONS - CSS3 transitions for hover events, auto-expanded and auto-hidden scrollbars. \n\t6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS \n\t\t6.1 THEMES - Scrollbar colors, opacity, dimensions, backgrounds etc. via ready-to-use themes.\n*/\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n1. BASIC STYLE \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSbar{ -ms-touch-action: pinch-zoom; touch-action: pinch-zoom; /* direct pointer events to js */ }\n\t.rt_qc_mCSbar.rt_qc_mCS_no_scrollbar, .rt_qc_mCSbar.rt_qc_mCS_touch_action{ -ms-touch-action: auto; touch-action: auto; }\n\t\n\t.rt_qc_mCSBox{ /* contains plugin's markup */\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t\theight: 100%;\n\t\tmax-width: 100%;\n\t\toutline: none;\n\t\tdirection: ltr;\n\t}\n\n\t.rt_qc_mCSB_container{ /* contains the original content */\n\t\toverflow: hidden;\n\t\twidth: auto;\n\t\theight: auto;\n\t}\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n2. VERTICAL SCROLLBAR \ny-axis\n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_inside > .rt_qc_mCSB_container{ margin-right: 30px; }\n\n\t.rt_qc_mCSB_container.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden{ margin-right: 0px; } /* non-visible scrollbar */\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_contain.rt_qc_mCS {/* RTL direction/left-side scrollbar */\n\t\tmargin-right: 0px;\n\t\tmargin-left: 30px;\n\t}\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_container.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden{ margin-left: 0; } /* RTL direction/left-side scrollbar */\n\n\t.rt_qc_mCSB_scrollTools{ /* contains scrollbar markup (draggable element, dragger rail, buttons etc.) */\n\t\tposition: absolute;\n\t\twidth: 16px;\n\t\theight: auto;\n\t\tleft: auto;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t}\n\n\t.rt_qc_mCSB_outside + .rt_qc_mCSB_scrollTools{ right: -26px; } /* scrollbar position: outside */\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCSB_scrollTools{ /* RTL direction/left-side scrollbar */\n\t\tright: auto;\n\t\tleft: 0;\n\t}\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCSB_scrollTools{ left: -26px; } /* RTL direction/left-side scrollbar (scrollbar position: outside) */\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{ /* contains the draggable element and dragger rail markup */\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\tright: 0; \n\t\theight: auto;\n\t}\n\n\t.rt_qc_mCSB_scrollTools a + .rt_qc_mCSB_draggerContainer{ margin: 20px 0; }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 2px;\n\t\theight: 100%;\n\t\tmargin: 0 auto;\n\t\t-webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px;\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger{ /* the draggable element */\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 30px; /* minimum dragger height */\n\t\tz-index: 1;\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ /* the dragger element */\n\t\tposition: relative;\n\t\twidth: 4px;\n\t\theight: 100%;\n\t\tmargin: 0 auto;\n\t\t-webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px;\n\t\ttext-align: center;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 12px; /* auto-expanded scrollbar */ }\n\t\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{ width: 8px; /* auto-expanded scrollbar */ }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\theight: 20px;\n\t\twidth: 100%;\n\t\toverflow: hidden;\n\t\tmargin: 0 auto;\n\t\tcursor: pointer;\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ bottom: 0; }\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n3. HORIZONTAL SCROLLBAR \nx-axis\n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container{\n\t\tmargin-right: 0;\n\t\tmargin-bottom: 30px;\n\t}\n\t\n\t.rt_qc_mCSB_horizontal.rt_qc_mCSB_outside > .rt_qc_mCSB_container{ min-height: 100%; }\n\n\t.rt_qc_mCSB_horizontal > .rt_qc_mCSB_container.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden{ margin-bottom: 0; } /* non-visible scrollbar */\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{\n\t\twidth: auto;\n\t\theight: 16px;\n\t\ttop: auto;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t}\n\n\t.rt_qc_mCSBox + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal,\n\t.rt_qc_mCSBox + .rt_qc_mCSB_scrollTools + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ bottom: -26px; } /* scrollbar position: outside */\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal a + .rt_qc_mCSB_draggerContainer{ margin: 0 20px; }\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 2px;\n\t\tmargin: 7px 0;\n\t}\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{\n\t\twidth: 30px; /* minimum dragger width */\n\t\theight: 100%;\n\t\tleft: 0;\n\t}\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 4px;\n\t\tmargin: 6px auto;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 12px; /* auto-expanded scrollbar */\n\t\tmargin: 2px auto;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\theight: 8px; /* auto-expanded scrollbar */\n\t\tmargin: 4px 0;\n\t}\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonLeft,\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonRight{\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\twidth: 20px;\n\t\theight: 100%;\n\t\toverflow: hidden;\n\t\tmargin: 0 auto;\n\t\tcursor: pointer;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonLeft{ left: 0; }\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonRight{ right: 0; }\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n4. VERTICAL AND HORIZONTAL SCROLLBARS \nyx-axis \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_container_wrapper{\n\t\tposition: absolute;\n\t\theight: auto;\n\t\twidth: auto;\n\t\toverflow: hidden;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tmargin-right: 30px;\n\t\tmargin-bottom: 30px;\n\t}\n\t\n\t.rt_qc_mCSB_container_wrapper > .rt_qc_mCSB_container{\n\t\tpadding-right: 30px;\n\t\tpadding-bottom: 30px;\n\t\t-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;\n\t}\n\t\n\t.rt_qc_mCSB_vertical_horizontal > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_vertical{ bottom: 20px; }\n\t\n\t.rt_qc_mCSB_vertical_horizontal > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ right: 20px; }\n\t\n\t/* non-visible horizontal scrollbar */\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_vertical{ bottom: 0; }\n\t\n\t/* non-visible vertical scrollbar/RTL direction/left-side scrollbar */\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden + .rt_qc_mCSB_scrollTools ~ .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ right: 0; }\n\t\n\t/* RTL direction/left-side scrollbar */\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ left: 20px; }\n\t\n\t/* non-visible scrollbar/RTL direction/left-side scrollbar */\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden + .rt_qc_mCSB_scrollTools ~ .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ left: 0; }\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper{ /* RTL direction/left-side scrollbar */\n\t\tmargin-right: 0;\n\t\tmargin-left: 30px;\n\t}\n\t\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden > .rt_qc_mCSB_container{ padding-right: 0; }\n\t\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden > .rt_qc_mCSB_container{ padding-bottom: 0; }\n\t\n\t.rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden{\n\t\tmargin-right: 0; /* non-visible scrollbar */\n\t\tmargin-left: 0;\n\t}\n\t\n\t/* non-visible horizontal scrollbar */\n\t.rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden{ margin-bottom: 0; }\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n5. TRANSITIONS \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\n\t\t-webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t\t-moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t\t-o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t\ttransition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger_bar, /* auto-expanded scrollbar */\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerRail{\n\t\t-webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t\t-moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t\t-o-transition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t\ttransition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t}\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t/* \n\t----------------------------------------\n\t6.1 THEMES \n\t----------------------------------------\n\t*/\n\t\n\t/* default theme ("light") */\n\n\t.rt_qc_mCSB_scrollTools{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; }\n\t\n\t.rt_qc_mCS-autoHide > .rt_qc_mCSBox > .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCS-autoHide > .rt_qc_mCSBox ~ .rt_qc_mCSB_scrollTools{ opacity: 0; filter: "alpha(opacity=0)"; -ms-filter: "alpha(opacity=0)"; }\n\t\n\t.rt_qc_mCSbar > .rt_qc_mCSBox > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_onDrag,\n\t.rt_qc_mCSbar > .rt_qc_mCSBox ~ .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_onDrag,\n\t.rt_qc_mCSBox:hover > .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCSBox:hover ~ .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCS-autoHide:hover > .rt_qc_mCSBox > .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCS-autoHide:hover > .rt_qc_mCSBox ~ .rt_qc_mCSB_scrollTools{ opacity: 1; filter: "alpha(opacity=100)"; -ms-filter: "alpha(opacity=100)"; }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.4);\n\t\tfilter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.75);\n\t\tfilter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.85);\n\t\tfilter: "alpha(opacity=85)"; -ms-filter: "alpha(opacity=85)"; \n\t}\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.9);\n\t\tfilter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\n\t\tbackground-image: url(${u}); /* css sprites */\n\t\tbackground-repeat: no-repeat;\n\t\topacity: 0.4; filter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{\n\t\tbackground-position: 0 0;\n\t\t/* \n\t\tsprites locations \n\t\tlight: 0 0, -16px 0, -32px 0, -48px 0, 0 -72px, -16px -72px, -32px -72px\n\t\tdark: -80px 0, -96px 0, -112px 0, -128px 0, -80px -72px, -96px -72px, -112px -72px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\n\t\tbackground-position: 0 -20px;\n\t\t/* \n\t\tsprites locations\n\t\tlight: 0 -20px, -16px -20px, -32px -20px, -48px -20px, 0 -92px, -16px -92px, -32px -92px\n\t\tdark: -80px -20px, -96px -20px, -112px -20px, -128px -20px, -80px -92px, -96px -92px, -112 -92px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{\n\t\tbackground-position: 0 -40px;\n\t\t/* \n\t\tsprites locations \n\t\tlight: 0 -40px, -20px -40px, -40px -40px, -60px -40px, 0 -112px, -20px -112px, -40px -112px\n\t\tdark: -80px -40px, -100px -40px, -120px -40px, -140px -40px, -80px -112px, -100px -112px, -120px -112px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\n\t\tbackground-position: 0 -56px;\n\t\t/* \n\t\tsprites locations \n\t\tlight: 0 -56px, -20px -56px, -40px -56px, -60px -56px, 0 -128px, -20px -128px, -40px -128px\n\t\tdark: -80px -56px, -100px -56px, -120px -56px, -140px -56px, -80px -128px, -100px -128px, -120px -128px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp:hover,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown:hover,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft:hover,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight:hover{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp:active,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown:active,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft:active,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight:active{ opacity: 0.9; filter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; }\n\t\n\n\t/* theme: "dark" */\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: rgba(0,0,0,0.9); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -80px 0; }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -80px -20px; }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -80px -40px; }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -80px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\n\n\t/* theme: "light-2", "dark-2" */\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 4px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.1);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 4px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.75);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 4px;\n\t\tmargin: 6px auto;\n\t}\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px 0; }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\tbackground-position: -32px -20px; }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{\tbackground-position: -40px -40px; }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -56px; }\n\t\n\t\n\t/* theme: "dark-2" */\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.1);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.75);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px 0; }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -20px; }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -40px; }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\n\n\t/* theme: "light-thick", "dark-thick" */\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 4px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.1);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 6px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.75);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 4px;\n\t\tmargin: 6px 0;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 6px;\n\t\tmargin: 5px auto;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -16px 0; }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\tbackground-position: -16px -20px; }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{\tbackground-position: -20px -40px; }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -20px -56px; }\n\n\n\t/* theme: "dark-thick" */\n\t\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.1);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.75);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -96px 0; }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -96px -20px; }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -100px -40px; }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -100px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\n\n\t/* theme: "light-thin", "dark-thin" */\n\t\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.1); }\n\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 2px; }\n\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{ width: 100%; }\n\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 2px;\n\t\tmargin: 7px auto;\n\t}\n\n\n\t/* theme "dark-thin" */\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{\tbackground-position: -80px 0; }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -80px -20px; }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -80px -40px; }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -80px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "rounded", "rounded-dark", "rounded-dots", "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.15); }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger{ height: 14px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 14px;\n\t\tmargin: 0 1px;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{ width: 14px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 14px;\n\t\tmargin: 1px 0;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 16px; /* auto-expanded scrollbar */\n\t\theight: 16px;\n\t\tmargin: -1px 0;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{ width: 4px; /* auto-expanded scrollbar */ }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 16px; /* auto-expanded scrollbar */\n\t\twidth: 16px;\n\t\tmargin: 0 -1px;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\theight: 4px; /* auto-expanded scrollbar */\n\t\tmargin: 6px 0;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: 0 -72px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: 0 -92px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: 0 -112px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: 0 -128px; }\n\t\n\t\n\t/* theme "rounded-dark", "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -80px -72px; }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -80px -92px; }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -80px -112px; }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -80px -128px; }\n\t\n\t\n\t/* theme "rounded-dots", "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_draggerRail{ width: 4px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: transparent;\n\t\tbackground-position: center;\n\t}\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-image: url(${p});\n\t\tbackground-repeat: repeat-y;\n\t\topacity: 0.3;\n\t\tfilter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; \n\t}\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\theight: 4px;\n\t\tmargin: 6px 0;\n\t\tbackground-repeat: repeat-x;\n\t}\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -16px -72px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -16px -92px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -20px -112px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -20px -128px; }\n\t\n\t\n\t/* theme "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-image: url(${C});\n\t}\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -96px -72px; }\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -96px -92px; }\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -100px -112px; }\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -100px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "3d", "3d-dark", "3d-thick", "3d-thick-dark" */\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-repeat: repeat-y;\n\t\tbackground-image: -moz-linear-gradient(left, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);\n\t\tbackground-image: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0)));\n\t\tbackground-image: -webkit-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -o-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -ms-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: linear-gradient(to right, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-repeat: repeat-x;\n\t\tbackground-image: -moz-linear-gradient(top, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);\n\t\tbackground-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0)));\n\t\tbackground-image: -webkit-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -o-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -ms-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t}\n\t\n\t\n\t/* theme "3d", "3d-dark" */\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger{ height: 70px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{ width: 70px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools{\n\t\topacity: 1;\n\t\tfilter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; \n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 8px;\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t\tbox-shadow: inset 1px 0 1px rgba(0,0,0,0.5), inset -1px 0 1px rgba(255,255,255,0.2);\n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \t \n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #555; }\n\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 8px; }\n\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 8px;\n\t\tmargin: 4px 0;\n\t\tbox-shadow: inset 0 1px 1px rgba(0,0,0,0.5), inset 0 -1px 1px rgba(255,255,255,0.2);\n\t}\n\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 8px;\n\t\tmargin: 4px auto;\n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -128px; }\n\t\n\t\n\t/* theme "3d-dark" */\n\t\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.1);\n\t\tbox-shadow: inset 1px 0 1px rgba(0,0,0,0.1);\n\t}\n\t\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1); }\n\t\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme: "3d-thick", "3d-thick-dark" */\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools{\n\t\topacity: 1;\n\t\tfilter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; \n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{ -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; }\n\t\n\t.rt_qc_mCSB_inside + .rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCSB_inside + .rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_vertical{ right: 1px; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_vertical{ box-shadow: inset 1px 0 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5); }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal{\n\t\tbottom: 1px;\n\t\tbox-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5);\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbox-shadow: inset 1px 0 0 rgba(255,255,255,0.4);\n\t\twidth: 12px;\n\t\tmargin: 2px;\n\t\tposition: absolute;\n\t\theight: auto;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #555; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 12px;\n\t\twidth: auto;\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.05);\n\t\tbox-shadow: inset 1px 1px 16px rgba(0,0,0,0.1);\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: transparent; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -40px -128px; }\n\t\n\t\n\t/* theme: "3d-thick-dark" */\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools{ box-shadow: inset 0 0 14px rgba(0,0,0,0.2); }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.2); }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ box-shadow: inset 1px 0 0 rgba(255,255,255,0.4), inset -1px 0 0 rgba(0,0,0,0.2); }\n\t \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.2); }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #777; }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{\n\t\tbackground-color: #fff; background-color: rgba(0,0,0,0.05);\n\t\tbox-shadow: inset 1px 1px 16px rgba(0,0,0,0.1);\n\t}\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: transparent; }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme: "minimal", "minimal-dark" */\n\t\n\t.rt_qc_mCSB_outside + .rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCSB_outside + .rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_vertical{\n\t\tright: 0; \n\t\tmargin: 12px 0; \n\t}\n\t\n\t.rt_qc_mCSBox.rt_qc_mCS-minimal + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCSBox.rt_qc_mCS-minimal + .rt_qc_mCSB_scrollTools + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCSBox.rt_qc_mCS-minimal-dark + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCSBox.rt_qc_mCS-minimal-dark + .rt_qc_mCSB_scrollTools + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{\n\t\tbottom: 0; \n\t\tmargin: 0 12px; \n\t}\n\t\n\t/* RTL direction/left-side scrollbar */\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_vertical{\n\t\tleft: 0; \n\t\tright: auto;\n\t}\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: transparent; }\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger{ height: 50px; }\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{ width: 50px; }\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.2);\n\t\tfilter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; \n\t}\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.5);\n\t\tfilter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; \n\t}\n\t\n\t\n\t/* theme: "minimal-dark" */\n\t\n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t\tfilter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; \n\t}\n\t\n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.5);\n\t\tfilter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; \n\t}\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "light-3", "dark-3" */\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 6px;\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t}\n\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 6px; }\n\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 6px;\n\t\tmargin: 5px 0;\n\t}\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\twidth: 12px;\n\t}\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\theight: 12px;\n\t\tmargin: 2px 0;\n\t}\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -128px; }\n\t\n\t\n\t/* theme "dark-3" */\n\t\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); }\n\t\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "inset", "inset-dark", "inset-2", "inset-2-dark", "inset-3", "inset-3-dark" */\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 12px;\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t}\n\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ \n\t\twidth: 6px;\n\t\tmargin: 3px 5px;\n\t\tposition: absolute;\n\t\theight: auto;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 6px;\n\t\tmargin: 5px 3px;\n\t\tposition: absolute;\n\t\twidth: auto;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 12px;\n\t\tmargin: 2px 0;\n\t}\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -128px; }\n\t\n\t\n\t/* theme "inset-dark", "inset-2-dark", "inset-3-dark" */\n\t\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); }\n\t\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t\n\t/* theme "inset-2", "inset-2-dark" */\n\t\n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: transparent;\n\t\tborder-width: 1px;\n\t\tborder-style: solid;\n\t\tborder-color: #fff;\n\t\tborder-color: rgba(255,255,255,0.2);\n\t\t-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;\n\t}\n\t\n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ border-color: #000; border-color: rgba(0,0,0,0.2); }\n\t\n\t\n\t/* theme "inset-3", "inset-3-dark" */\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.6); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.6); }\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.75); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); }\n\t\n\t/* ---------------------------------------- */\n\n\t/* theme: "qcell-default" */\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 10px;\n\t\tbackground-color: #fff;\n\t\tbackground-color: rgba(255,255,255,0.1);\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 10px;\n\t\tbackground-color: #fff;\n\t\tbackground-color: rgba(255,255,255,0.75);\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 10px;\n\t\tmargin: 2px 0;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 10px;\n\t\tmargin: 2px auto;\n\t}\n\t\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #e2e2e6;\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #7b7d86;\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #7b7d86; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #7b7d86; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -128px 0; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -128px -20px; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -140px -41px; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -140px -57px; }\n\t\n\t/* ---------------------------------------- */`,""]);const g=_},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",a=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),a&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),a&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,a,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(a)for(var l=0;l<this.length;l++){var n=this[l][0];null!=n&&(s[n]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);a&&s[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),e.push(d))}},e}},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},601:t=>{"use strict";t.exports=function(t){return t[1]}},72:t=>{"use strict";var e=[];function r(t){for(var r=-1,a=0;a<e.length;a++)if(e[a].identifier===t){r=a;break}return r}function a(t,a){for(var i={},s=[],l=0;l<t.length;l++){var n=t[l],c=a.base?n[0]+a.base:n[0],d=i[c]||0,h="".concat(c," ").concat(d);i[c]=d+1;var _=r(h),u={css:n[1],media:n[2],sourceMap:n[3],supports:n[4],layer:n[5]};if(-1!==_)e[_].references++,e[_].updater(u);else{var p=o(u,a);a.byIndex=l,e.splice(l,0,{identifier:h,updater:p,references:1})}s.push(h)}return s}function o(t,e){var r=e.domAPI(e);return r.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,o){var i=a(t=t||[],o=o||{});return function(t){t=t||[];for(var s=0;s<i.length;s++){var l=r(i[s]);e[l].references--}for(var n=a(t,o),c=0;c<i.length;c++){var d=r(i[c]);0===e[d].references&&(e[d].updater(),e.splice(d,1))}i=n}}},659:t=>{"use strict";var e={};t.exports=function(t,r){var a=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,r)=>{"use strict";t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var a="";r.supports&&(a+="@supports (".concat(r.supports,") {")),r.media&&(a+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(a+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),a+=r.css,o&&(a+="}"),r.media&&(a+="}"),r.supports&&(a+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(a,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},859:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII="},466:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg=="},629:(t,e,r)=>{"use strict";t.exports=r.p+"cde3eb37d2e1d732a7e3.png"},453:(t,e,r)=>{"use strict";t.exports=r.p+"c0a2f0a86ad43bccd6d6.png"},51:(t,e,r)=>{"use strict";t.exports=r.p+"e06bce03725e8eae52ff.png"},529:(t,e,r)=>{"use strict";t.exports=r.p+"e4949d095544f9f6339d.png"},863:(t,e,r)=>{"use strict";t.exports=r.p+"82f655c470657e263722.png"},107:(t,e,r)=>{"use strict";t.exports=r.p+"deb42a8f9bdab8258db4.png"},21:(t,e,r)=>{"use strict";t.exports=r.p+"f7f48d547e176aef16e5.png"},25:(t,e,r)=>{"use strict";t.exports=r.p+"13ed1c65978f4020fa6a.png"},928:(t,e,r)=>{"use strict";t.exports=r.p+"9b9e5601b8e92cfc15ed.png"},472:(t,e,r)=>{"use strict";t.exports=r.p+"cf17885bda2090955715.png"},114:(t,e,r)=>{"use strict";t.exports=r.p+"f5b9e4600b993d7c15a3.png"},644:(t,e,r)=>{"use strict";t.exports=r.p+"b332c225924811955b70.png"},556:(t,e,r)=>{"use strict";t.exports=r.p+"262f7047c15f67938eb0.png"},798:(t,e,r)=>{"use strict";t.exports=r.p+"7461bf5c81f039b5349d.png"},837:(t,e,r)=>{"use strict";t.exports=r.p+"bdff706f5f3c937e20c8.png"},318:(t,e,r)=>{"use strict";t.exports=r.p+"2d6f55fd9854663f7aa0.png"},190:(t,e,r)=>{"use strict";t.exports=r.p+"2063e67670eabbe08666.png"},628:(t,e,r)=>{"use strict";t.exports=r.p+"5bc8277cf199d850ab1a.png"},463:(t,e,r)=>{"use strict";t.exports=r.p+"3332fcf7e2e919a02b8d.png"},62:(t,e,r)=>{"use strict";t.exports=r.p+"c60516270777bee173fe.png"},910:(t,e,r)=>{"use strict";t.exports=r.p+"1b3e50ff32fd8cd301f8.png"},944:(t,e,r)=>{"use strict";t.exports=r.p+"278ab06fc1417e702a7e.png"},12:(t,e,r)=>{"use strict";t.exports=r.p+"8b0fe626ee1f018a8d0f.png"},10:(t,e,r)=>{"use strict";t.exports=r.p+"5b35a39c5f877ba43637.png"},322:(t,e,r)=>{"use strict";t.exports=r.p+"cf17885bda2090955715.png"},653:(t,e,r)=>{"use strict";t.exports=r.p+"1e4ab48d0ebabfe3d60c.png"},409:(t,e,r)=>{"use strict";t.exports=r.p+"1b1e25d6e625a94444f7.png"},579:(t,e,r)=>{"use strict";t.exports=r.p+"ae8a9da394dac0b9613c.png"},986:(t,e,r)=>{"use strict";t.exports=r.p+"64a176ed8c98be3354b3.png"},363:(t,e,r)=>{"use strict";t.exports=r.p+"669597e9324aec578be1.gif"},155:e=>{"use strict";e.exports=t}},r={};function a(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,exports:{}};return e[t](i,i.exports,a),i.exports}a.m=e,a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=r[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),a.b=document.baseURI||self.location.href,a.nc=void 0;var o={};return(()=>{"use strict";a.r(o),a.d(o,{default:()=>v});var t=a(72),e=a.n(t),r=a(825),i=a.n(r),s=a(659),l=a.n(s),n=a(56),c=a.n(n),d=a(540),h=a.n(d),_=a(113),u=a.n(_),p=a(73),C={};C.styleTagTransform=u(),C.setAttributes=c(),C.insert=l().bind(null,"head"),C.domAPI=i(),C.insertStyleElement=h(),e()(p.A,C),p.A&&p.A.locals&&p.A.locals;var g=a(198),f={};f.styleTagTransform=u(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=h(),e()(g.A,f),g.A&&g.A.locals&&g.A.locals;var L=a(494),m={};m.styleTagTransform=u(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=h(),e()(L.A,m),L.A&&L.A.locals&&L.A.locals;var E=a(155),b=a.n(E),y=a(395);const v=(0,E.forwardRef)((function(t,e){var r=t.width,a=t.height,o=t.objProperty,i=(0,E.useRef)(null);return(0,E.useImperativeHandle)(e,(function(){return{getQCELLInstance:function(){return i.current?y.getInstance(o.id):null},getQCELL:function(){return y}}})),(0,E.useEffect)((function(){var t=function(){if(o)if(o.id){var t="".concat(o.id,"_qcell");i.current.id=t;var e=r||"100%",s=a;s?(o.parentid=t,i.current.style.width=e,i.current.style.height=s,y.create(o),y.getInstance(o.id)||console.error("QCELL create error")):console.warn("height not defined")}else console.warn("objProperty.id not defined");else console.warn("objProperty not defined")};if(!i.current||!document.body.contains(i.current)){var e=new MutationObserver((function(){i.current&&document.body.contains(i.current)&&(t(),e.disconnect())}));return i.current&&e.observe(document.body,{childList:!0,subtree:!0}),function(){y.getInstance(o.id)&&y.deleteInstance(o.id),e.disconnect()}}t()}),[r,a,o]),b().createElement("div",{ref:i})}))})(),o})()));
|